From 5df6bde716579e1abaab202be91f98441d86741a Mon Sep 17 00:00:00 2001 From: Mentor Gashi Date: Wed, 22 Nov 2023 03:32:00 +0100 Subject: [PATCH] Updates --- .../{index-39b6018d.js => index-900ae9d8.js} | 168 +++++++++--------- assets/index-c0212d9b.css | 1 - assets/index-c7657b32.css | 1 + index.html | 6 +- 4 files changed, 88 insertions(+), 88 deletions(-) rename assets/{index-39b6018d.js => index-900ae9d8.js} (50%) delete mode 100644 assets/index-c0212d9b.css create mode 100644 assets/index-c7657b32.css diff --git a/assets/index-39b6018d.js b/assets/index-900ae9d8.js similarity index 50% rename from assets/index-39b6018d.js rename to assets/index-900ae9d8.js index 19eaca4..462a8b5 100644 --- a/assets/index-39b6018d.js +++ b/assets/index-900ae9d8.js @@ -1,4 +1,4 @@ -var Iee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vnt=Iee((pi,hi)=>{function Ree(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 Us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oee(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 _L={exports:{}},Mb={},kL={exports:{}},an={};/** +var Eee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mnt=Eee((pi,hi)=>{function Iee(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ree(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var SL={exports:{}},Pb={},$L={exports:{}},an={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Iee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vnt=Iee((pi, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Kg=Symbol.for("react.element"),Aee=Symbol.for("react.portal"),Fee=Symbol.for("react.fragment"),Lee=Symbol.for("react.strict_mode"),Dee=Symbol.for("react.profiler"),jee=Symbol.for("react.provider"),Nee=Symbol.for("react.context"),zee=Symbol.for("react.forward_ref"),Bee=Symbol.for("react.suspense"),Hee=Symbol.for("react.memo"),Wee=Symbol.for("react.lazy"),tR=Symbol.iterator;function Vee(e){return e===null||typeof e!="object"?null:(e=tR&&e[tR]||e["@@iterator"],typeof e=="function"?e:null)}var PL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ML=Object.assign,TL={};function Op(e,t,n){this.props=e,this.context=t,this.refs=TL,this.updater=n||PL}Op.prototype.isReactComponent={};Op.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")};Op.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EL(){}EL.prototype=Op.prototype;function aP(e,t,n){this.props=e,this.context=t,this.refs=TL,this.updater=n||PL}var sP=aP.prototype=new EL;sP.constructor=aP;ML(sP,Op.prototype);sP.isPureReactComponent=!0;var nR=Array.isArray,IL=Object.prototype.hasOwnProperty,lP={current:null},RL={key:!0,ref:!0,__self:!0,__source:!0};function OL(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)IL.call(t,r)&&!RL.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1()=>(t||e((t={exports:{}}).exports,t),t.exports);var vnt=Iee((pi, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yee=m,Xee=Symbol.for("react.element"),Qee=Symbol.for("react.fragment"),Zee=Object.prototype.hasOwnProperty,Jee=Yee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ete={key:!0,ref:!0,__self:!0,__source:!0};function AL(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Zee.call(t,r)&&!ete.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Xee,type:e,key:i,ref:a,props:o,_owner:Jee.current}}Mb.Fragment=Qee;Mb.jsx=AL;Mb.jsxs=AL;_L.exports=Mb;var g=_L.exports,S$={},FL={exports:{}},Ci={},LL={exports:{}},DL={};/** + */var Kee=m,Yee=Symbol.for("react.element"),Xee=Symbol.for("react.fragment"),Qee=Object.prototype.hasOwnProperty,Zee=Kee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jee={key:!0,ref:!0,__self:!0,__source:!0};function RL(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Qee.call(t,r)&&!Jee.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Yee,type:e,key:i,ref:a,props:o,_owner:Zee.current}}Pb.Fragment=Xee;Pb.jsx=RL;Pb.jsxs=RL;SL.exports=Pb;var g=SL.exports,C$={},OL={exports:{}},Ci={},AL={exports:{}},FL={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Iee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vnt=Iee((pi, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(j,W){var U=j.length;j.push(W);e:for(;0>>1,Y=j[Z];if(0>>1;Zo(ne,U))reo(ge,ne)?(j[Z]=ge,j[re]=U,Z=re):(j[Z]=ne,j[Q]=U,Z=Q);else if(reo(ge,U))j[Z]=ge,j[re]=U,Z=re;else break e}}return W}function o(j,W){var U=j.sortIndex-W.sortIndex;return U!==0?U:j.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,y=!1,v=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(j){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=j)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function $(j){if(b=!1,S(j),!v)if(n(l)!==null)v=!0,H(T);else{var W=n(u);W!==null&&B($,W.startTime-j)}}function T(j,W){v=!1,b&&(b=!1,x(I),I=-1),y=!0;var U=p;try{for(S(W),f=n(l);f!==null&&(!(f.expirationTime>W)||j&&!A());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var Y=Z(f.expirationTime<=W);W=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),S(W)}else r(l);f=n(l)}if(f!==null)var se=!0;else{var Q=n(u);Q!==null&&B($,Q.startTime-W),se=!1}return se}finally{f=null,p=U,y=!1}}var k=!1,M=null,I=-1,N=5,E=-1;function A(){return!(e.unstable_now()-Ej||125Z?(j.sortIndex=U,t(u,j),n(l)===null&&j===n(u)&&(b?(x(I),I=-1):b=!0,B($,U-Z))):(j.sortIndex=Y,t(l,j),v||y||(v=!0,H(T))),j},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(j){var W=p;return function(){var U=p;p=W;try{return j.apply(this,arguments)}finally{p=U}}}})(DL);LL.exports=DL;var tte=LL.exports;/** + */(function(e){function t(j,W){var U=j.length;j.push(W);e:for(;0>>1,Y=j[Z];if(0>>1;Zo(ne,U))reo(ge,ne)?(j[Z]=ge,j[re]=U,Z=re):(j[Z]=ne,j[Q]=U,Z=Q);else if(reo(ge,U))j[Z]=ge,j[re]=U,Z=re;else break e}}return W}function o(j,W){var U=j.sortIndex-W.sortIndex;return U!==0?U:j.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,y=!1,v=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(j){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=j)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function $(j){if(b=!1,S(j),!v)if(n(l)!==null)v=!0,H(T);else{var W=n(u);W!==null&&B($,W.startTime-j)}}function T(j,W){v=!1,b&&(b=!1,x(I),I=-1),y=!0;var U=p;try{for(S(W),f=n(l);f!==null&&(!(f.expirationTime>W)||j&&!A());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var Y=Z(f.expirationTime<=W);W=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),S(W)}else r(l);f=n(l)}if(f!==null)var se=!0;else{var Q=n(u);Q!==null&&B($,Q.startTime-W),se=!1}return se}finally{f=null,p=U,y=!1}}var k=!1,M=null,I=-1,N=5,E=-1;function A(){return!(e.unstable_now()-Ej||125Z?(j.sortIndex=U,t(u,j),n(l)===null&&j===n(u)&&(b?(x(I),I=-1):b=!0,B($,U-Z))):(j.sortIndex=Y,t(l,j),v||y||(v=!0,H(T))),j},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(j){var W=p;return function(){var U=p;p=W;try{return j.apply(this,arguments)}finally{p=U}}}})(FL);AL.exports=FL;var ete=AL.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var Iee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vnt=Iee((pi, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jL=m,bi=tte;function Xe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$$=Object.prototype.hasOwnProperty,nte=/^[: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]*$/,oR={},iR={};function rte(e){return $$.call(iR,e)?!0:$$.call(oR,e)?!1:nte.test(e)?iR[e]=!0:(oR[e]=!0,!1)}function ote(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 ite(e,t,n,r){if(t===null||typeof t>"u"||ote(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mo(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jr[e]=new Mo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jr[t]=new Mo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jr[e]=new Mo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jr[e]=new Mo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jr[e]=new Mo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jr[e]=new Mo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jr[e]=new Mo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jr[e]=new Mo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jr[e]=new Mo(e,5,!1,e.toLowerCase(),null,!1,!1)});var cP=/[\-:]([a-z])/g;function dP(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(cP,dP);Jr[t]=new Mo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(cP,dP);Jr[t]=new Mo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(cP,dP);Jr[t]=new Mo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jr[e]=new Mo(e,1,!1,e.toLowerCase(),null,!1,!1)});Jr.xlinkHref=new Mo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jr[e]=new Mo(e,1,!1,e.toLowerCase(),null,!0,!0)});function fP(e,t,n,r){var o=Jr.hasOwnProperty(t)?Jr[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S$=Object.prototype.hasOwnProperty,tte=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},oR={};function nte(e){return S$.call(oR,e)?!0:S$.call(rR,e)?!1:tte.test(e)?oR[e]=!0:(rR[e]=!0,!1)}function rte(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ote(e,t,n,r){if(t===null||typeof t>"u"||rte(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mo(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jr[e]=new Mo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jr[t]=new Mo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jr[e]=new Mo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jr[e]=new Mo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jr[e]=new Mo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jr[e]=new Mo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jr[e]=new Mo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jr[e]=new Mo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jr[e]=new Mo(e,5,!1,e.toLowerCase(),null,!1,!1)});var uP=/[\-:]([a-z])/g;function cP(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uP,cP);Jr[t]=new Mo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uP,cP);Jr[t]=new Mo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uP,cP);Jr[t]=new Mo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jr[e]=new Mo(e,1,!1,e.toLowerCase(),null,!1,!1)});Jr.xlinkHref=new Mo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jr[e]=new Mo(e,1,!1,e.toLowerCase(),null,!0,!0)});function dP(e,t,n,r){var o=Jr.hasOwnProperty(t)?Jr[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{HC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tm(e):""}function ate(e){switch(e.tag){case 5:return tm(e.type);case 16:return tm("Lazy");case 13:return tm("Suspense");case 19:return tm("SuspenseList");case 0:case 2:case 15:return e=WC(e.type,!1),e;case 11:return e=WC(e.type.render,!1),e;case 1:return e=WC(e.type,!0),e;default:return""}}function M$(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 hf:return"Fragment";case pf:return"Portal";case _$:return"Profiler";case pP:return"StrictMode";case k$:return"Suspense";case P$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BL:return(e.displayName||"Context")+".Consumer";case zL:return(e._context.displayName||"Context")+".Provider";case hP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mP:return t=e.displayName||null,t!==null?t:M$(e.type)||"Memo";case Al:t=e._payload,e=e._init;try{return M$(e(t))}catch{}}return null}function ste(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 M$(t);case 8:return t===pP?"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 lu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lte(e){var t=WL(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 yv(e){e._valueTracker||(e._valueTracker=lte(e))}function VL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WL(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function U1(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 T$(e,t){var n=t.checked;return ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sR(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lu(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 UL(e,t){t=t.checked,t!=null&&fP(e,"checked",t,!1)}function E$(e,t){UL(e,t);var n=lu(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")?I$(e,t.type,n):t.hasOwnProperty("defaultValue")&&I$(e,t.type,lu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lR(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 I$(e,t,n){(t!=="number"||U1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nm=Array.isArray;function Of(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=bv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lm(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cm={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},ute=["Webkit","ms","Moz","O"];Object.keys(cm).forEach(function(e){ute.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cm[t]=cm[e]})});function YL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cm.hasOwnProperty(e)&&cm[e]?(""+t).trim():t+"px"}function XL(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=YL(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var cte=ur({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function A$(e,t){if(t){if(cte[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Xe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Xe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Xe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Xe(62))}}function F$(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 L$=null;function gP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var D$=null,Af=null,Ff=null;function dR(e){if(e=Qg(e)){if(typeof D$!="function")throw Error(Xe(280));var t=e.stateNode;t&&(t=Ob(t),D$(e.stateNode,e.type,t))}}function QL(e){Af?Ff?Ff.push(e):Ff=[e]:Af=e}function ZL(){if(Af){var e=Af,t=Ff;if(Ff=Af=null,dR(e),t)for(e=0;e>>=0,e===0?32:31-(wte(e)/Cte|0)|0}var xv=64,wv=4194304;function rm(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 Y1(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=rm(s):(i&=a,i!==0&&(r=rm(i)))}else a=n&~o,a!==0?r=rm(a):i!==0&&(r=rm(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 Yg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ka(t),e[t]=n}function kte(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=fm),xR=String.fromCharCode(32),wR=!1;function yD(e,t){switch(e){case"keyup":return ene.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mf=!1;function nne(e,t){switch(e){case"compositionend":return bD(t);case"keypress":return t.which!==32?null:(wR=!0,xR);case"textInput":return e=t.data,e===xR&&wR?null:e;default:return null}}function rne(e,t){if(mf)return e==="compositionend"||!$P&&yD(e,t)?(e=gD(),f1=wP=Bl=null,mf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_R(n)}}function SD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $D(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=U1(e.document)}return t}function _P(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fne(e){var t=$D(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&SD(n.ownerDocument.documentElement,n)){if(r!==null&&_P(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=kR(n,i);var a=kR(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,gf=null,W$=null,hm=null,V$=!1;function PR(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;V$||gf==null||gf!==U1(r)||(r=gf,"selectionStart"in r&&_P(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hm&&Hm(hm,r)||(hm=r,r=Z1(W$,"onSelect"),0bf||(e.current=X$[bf],X$[bf]=null,bf--)}function Un(e,t){bf++,X$[bf]=e.current,e.current=t}var uu={},fo=yu(uu),Wo=yu(!1),Ic=uu;function ep(e,t){var n=e.type.contextTypes;if(!n)return uu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Vo(e){return e=e.childContextTypes,e!=null}function ey(){Zn(Wo),Zn(fo)}function AR(e,t,n){if(fo.current!==uu)throw Error(Xe(168));Un(fo,t),Un(Wo,n)}function OD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Xe(108,ste(e)||"Unknown",o));return ur({},n,r)}function ty(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uu,Ic=fo.current,Un(fo,e),Un(Wo,Wo.current),!0}function FR(e,t,n){var r=e.stateNode;if(!r)throw Error(Xe(169));n?(e=OD(e,t,Ic),r.__reactInternalMemoizedMergedChildContext=e,Zn(Wo),Zn(fo),Un(fo,e)):Zn(Wo),Un(Wo,n)}var Vs=null,Ab=!1,rS=!1;function AD(e){Vs===null?Vs=[e]:Vs.push(e)}function $ne(e){Ab=!0,AD(e)}function bu(){if(!rS&&Vs!==null){rS=!0;var e=0,t=En;try{var n=Vs;for(En=1;e>=a,o-=a,qs=1<<32-ka(t)+o|n<I?(N=M,M=null):N=M.sibling;var E=p(x,M,S[I],$);if(E===null){M===null&&(M=N);break}e&&M&&E.alternate===null&&t(x,M),w=i(E,w,I),k===null?T=E:k.sibling=E,k=E,M=N}if(I===S.length)return n(x,M),rr&&Gu(x,I),T;if(M===null){for(;II?(N=M,M=null):N=M.sibling;var A=p(x,M,E.value,$);if(A===null){M===null&&(M=N);break}e&&M&&A.alternate===null&&t(x,M),w=i(A,w,I),k===null?T=A:k.sibling=A,k=A,M=N}if(E.done)return n(x,M),rr&&Gu(x,I),T;if(M===null){for(;!E.done;I++,E=S.next())E=f(x,E.value,$),E!==null&&(w=i(E,w,I),k===null?T=E:k.sibling=E,k=E);return rr&&Gu(x,I),T}for(M=r(x,M);!E.done;I++,E=S.next())E=y(M,x,I,E.value,$),E!==null&&(e&&E.alternate!==null&&M.delete(E.key===null?I:E.key),w=i(E,w,I),k===null?T=E:k.sibling=E,k=E);return e&&M.forEach(function(z){return t(x,z)}),rr&&Gu(x,I),T}function C(x,w,S,$){if(typeof S=="object"&&S!==null&&S.type===hf&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case vv:e:{for(var T=S.key,k=w;k!==null;){if(k.key===T){if(T=S.type,T===hf){if(k.tag===7){n(x,k.sibling),w=o(k,S.props.children),w.return=x,x=w;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Al&&HR(T)===k.type){n(x,k.sibling),w=o(k,S.props),w.ref=Ph(x,k,S),w.return=x,x=w;break e}n(x,k);break}else t(x,k);k=k.sibling}S.type===hf?(w=mc(S.props.children,x.mode,$,S.key),w.return=x,x=w):($=x1(S.type,S.key,S.props,null,x.mode,$),$.ref=Ph(x,w,S),$.return=x,x=$)}return a(x);case pf:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(x,w.sibling),w=o(w,S.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=dS(S,x.mode,$),w.return=x,x=w}return a(x);case Al:return k=S._init,C(x,w,k(S._payload),$)}if(nm(S))return v(x,w,S,$);if(Ch(S))return b(x,w,S,$);Mv(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(x,w.sibling),w=o(w,S),w.return=x,x=w):(n(x,w),w=cS(S,x.mode,$),w.return=x,x=w),a(x)):n(x,w)}return C}var np=HD(!0),WD=HD(!1),Zg={},ts=yu(Zg),Gm=yu(Zg),qm=yu(Zg);function oc(e){if(e===Zg)throw Error(Xe(174));return e}function AP(e,t){switch(Un(qm,t),Un(Gm,e),Un(ts,Zg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:O$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=O$(t,e)}Zn(ts),Un(ts,t)}function rp(){Zn(ts),Zn(Gm),Zn(qm)}function VD(e){oc(qm.current);var t=oc(ts.current),n=O$(t,e.type);t!==n&&(Un(Gm,e),Un(ts,n))}function FP(e){Gm.current===e&&(Zn(ts),Zn(Gm))}var sr=yu(0);function sy(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oS=[];function LP(){for(var e=0;en?n:4,e(!0);var r=iS.transition;iS.transition={};try{e(!1),t()}finally{En=n,iS.transition=r}}function a7(){return Ji().memoizedState}function Mne(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},s7(e))l7(t,n);else if(n=jD(e,t,n,r),n!==null){var o=ko();Pa(n,e,r,o),u7(n,t,r)}}function Tne(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(s7(e))l7(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,Ta(s,a)){var l=t.interleaved;l===null?(o.next=o,RP(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=jD(e,t,o,r),n!==null&&(o=ko(),Pa(n,e,r,o),u7(n,t,r))}}function s7(e){var t=e.alternate;return e===lr||t!==null&&t===lr}function l7(e,t){mm=ly=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function u7(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yP(e,n)}}var uy={readContext:Zi,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},Ene={readContext:Zi,useCallback:function(e,t){return za().memoizedState=[e,t===void 0?null:t],e},useContext:Zi,useEffect:VR,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,g1(4194308,4,t7.bind(null,t,e),n)},useLayoutEffect:function(e,t){return g1(4194308,4,e,t)},useInsertionEffect:function(e,t){return g1(4,2,e,t)},useMemo:function(e,t){var n=za();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=za();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Mne.bind(null,lr,e),[r.memoizedState,e]},useRef:function(e){var t=za();return e={current:e},t.memoizedState=e},useState:WR,useDebugValue:BP,useDeferredValue:function(e){return za().memoizedState=e},useTransition:function(){var e=WR(!1),t=e[0];return e=Pne.bind(null,e[1]),za().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=lr,o=za();if(rr){if(n===void 0)throw Error(Xe(407));n=n()}else{if(n=t(),Nr===null)throw Error(Xe(349));Oc&30||qD(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,VR(YD.bind(null,r,i,e),[e]),r.flags|=2048,Xm(9,KD.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=za(),t=Nr.identifierPrefix;if(rr){var n=Ks,r=qs;n=(r&~(1<<32-ka(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Km++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{BC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?em(e):""}function ite(e){switch(e.tag){case 5:return em(e.type);case 16:return em("Lazy");case 13:return em("Suspense");case 19:return em("SuspenseList");case 0:case 2:case 15:return e=HC(e.type,!1),e;case 11:return e=HC(e.type.render,!1),e;case 1:return e=HC(e.type,!0),e;default:return""}}function P$(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pf:return"Fragment";case ff:return"Portal";case $$:return"Profiler";case fP:return"StrictMode";case _$:return"Suspense";case k$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NL:return(e.displayName||"Context")+".Consumer";case jL:return(e._context.displayName||"Context")+".Provider";case pP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hP:return t=e.displayName||null,t!==null?t:P$(e.type)||"Memo";case Ol:t=e._payload,e=e._init;try{return P$(e(t))}catch{}}return null}function ate(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return P$(t);case 8:return t===fP?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function su(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function BL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ste(e){var t=BL(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vv(e){e._valueTracker||(e._valueTracker=ste(e))}function HL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=BL(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function V1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function M$(e,t){var n=t.checked;return ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function aR(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=su(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function WL(e,t){t=t.checked,t!=null&&dP(e,"checked",t,!1)}function T$(e,t){WL(e,t);var n=su(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?E$(e,t.type,n):t.hasOwnProperty("defaultValue")&&E$(e,t.type,su(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sR(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function E$(e,t,n){(t!=="number"||V1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tm=Array.isArray;function Rf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fm(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var um={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lte=["Webkit","ms","Moz","O"];Object.keys(um).forEach(function(e){lte.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),um[t]=um[e]})});function qL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||um.hasOwnProperty(e)&&um[e]?(""+t).trim():t+"px"}function KL(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=qL(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ute=ur({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function O$(e,t){if(t){if(ute[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Xe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Xe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Xe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Xe(62))}}function A$(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var F$=null;function mP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var L$=null,Of=null,Af=null;function cR(e){if(e=Xg(e)){if(typeof L$!="function")throw Error(Xe(280));var t=e.stateNode;t&&(t=Rb(t),L$(e.stateNode,e.type,t))}}function YL(e){Of?Af?Af.push(e):Af=[e]:Of=e}function XL(){if(Of){var e=Of,t=Af;if(Af=Of=null,cR(e),t)for(e=0;e>>=0,e===0?32:31-(xte(e)/wte|0)|0}var bv=64,xv=4194304;function nm(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function K1(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=nm(s):(i&=a,i!==0&&(r=nm(i)))}else a=n&~o,a!==0?r=nm(a):i!==0&&(r=nm(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Kg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_a(t),e[t]=n}function _te(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=dm),bR=String.fromCharCode(32),xR=!1;function gD(e,t){switch(e){case"keyup":return Jte.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hf=!1;function tne(e,t){switch(e){case"compositionend":return vD(t);case"keypress":return t.which!==32?null:(xR=!0,bR);case"textInput":return e=t.data,e===bR&&xR?null:e;default:return null}}function nne(e,t){if(hf)return e==="compositionend"||!SP&&gD(e,t)?(e=hD(),d1=xP=zl=null,hf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$R(n)}}function wD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function CD(){for(var e=window,t=V1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=V1(e.document)}return t}function $P(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dne(e){var t=CD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wD(n.ownerDocument.documentElement,n)){if(r!==null&&$P(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=_R(n,i);var a=_R(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,mf=null,H$=null,pm=null,W$=!1;function kR(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;W$||mf==null||mf!==V1(r)||(r=mf,"selectionStart"in r&&$P(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pm&&Bm(pm,r)||(pm=r,r=Q1(H$,"onSelect"),0yf||(e.current=Y$[yf],Y$[yf]=null,yf--)}function Un(e,t){yf++,Y$[yf]=e.current,e.current=t}var lu={},fo=vu(lu),Wo=vu(!1),Ec=lu;function Jf(e,t){var n=e.type.contextTypes;if(!n)return lu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Vo(e){return e=e.childContextTypes,e!=null}function J1(){Zn(Wo),Zn(fo)}function OR(e,t,n){if(fo.current!==lu)throw Error(Xe(168));Un(fo,t),Un(Wo,n)}function ID(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Xe(108,ate(e)||"Unknown",o));return ur({},n,r)}function ey(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lu,Ec=fo.current,Un(fo,e),Un(Wo,Wo.current),!0}function AR(e,t,n){var r=e.stateNode;if(!r)throw Error(Xe(169));n?(e=ID(e,t,Ec),r.__reactInternalMemoizedMergedChildContext=e,Zn(Wo),Zn(fo),Un(fo,e)):Zn(Wo),Un(Wo,n)}var Ws=null,Ob=!1,nS=!1;function RD(e){Ws===null?Ws=[e]:Ws.push(e)}function Sne(e){Ob=!0,RD(e)}function yu(){if(!nS&&Ws!==null){nS=!0;var e=0,t=En;try{var n=Ws;for(En=1;e>=a,o-=a,Gs=1<<32-_a(t)+o|n<I?(N=M,M=null):N=M.sibling;var E=p(x,M,S[I],$);if(E===null){M===null&&(M=N);break}e&&M&&E.alternate===null&&t(x,M),w=i(E,w,I),k===null?T=E:k.sibling=E,k=E,M=N}if(I===S.length)return n(x,M),rr&&Uu(x,I),T;if(M===null){for(;II?(N=M,M=null):N=M.sibling;var A=p(x,M,E.value,$);if(A===null){M===null&&(M=N);break}e&&M&&A.alternate===null&&t(x,M),w=i(A,w,I),k===null?T=A:k.sibling=A,k=A,M=N}if(E.done)return n(x,M),rr&&Uu(x,I),T;if(M===null){for(;!E.done;I++,E=S.next())E=f(x,E.value,$),E!==null&&(w=i(E,w,I),k===null?T=E:k.sibling=E,k=E);return rr&&Uu(x,I),T}for(M=r(x,M);!E.done;I++,E=S.next())E=y(M,x,I,E.value,$),E!==null&&(e&&E.alternate!==null&&M.delete(E.key===null?I:E.key),w=i(E,w,I),k===null?T=E:k.sibling=E,k=E);return e&&M.forEach(function(z){return t(x,z)}),rr&&Uu(x,I),T}function C(x,w,S,$){if(typeof S=="object"&&S!==null&&S.type===pf&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case gv:e:{for(var T=S.key,k=w;k!==null;){if(k.key===T){if(T=S.type,T===pf){if(k.tag===7){n(x,k.sibling),w=o(k,S.props.children),w.return=x,x=w;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ol&&BR(T)===k.type){n(x,k.sibling),w=o(k,S.props),w.ref=kh(x,k,S),w.return=x,x=w;break e}n(x,k);break}else t(x,k);k=k.sibling}S.type===pf?(w=hc(S.props.children,x.mode,$,S.key),w.return=x,x=w):($=b1(S.type,S.key,S.props,null,x.mode,$),$.ref=kh(x,w,S),$.return=x,x=$)}return a(x);case ff:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(x,w.sibling),w=o(w,S.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=cS(S,x.mode,$),w.return=x,x=w}return a(x);case Ol:return k=S._init,C(x,w,k(S._payload),$)}if(tm(S))return v(x,w,S,$);if(wh(S))return b(x,w,S,$);Pv(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(x,w.sibling),w=o(w,S),w.return=x,x=w):(n(x,w),w=uS(S,x.mode,$),w.return=x,x=w),a(x)):n(x,w)}return C}var tp=zD(!0),BD=zD(!1),Qg={},ts=vu(Qg),Um=vu(Qg),Gm=vu(Qg);function rc(e){if(e===Qg)throw Error(Xe(174));return e}function OP(e,t){switch(Un(Gm,t),Un(Um,e),Un(ts,Qg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R$(t,e)}Zn(ts),Un(ts,t)}function np(){Zn(ts),Zn(Um),Zn(Gm)}function HD(e){rc(Gm.current);var t=rc(ts.current),n=R$(t,e.type);t!==n&&(Un(Um,e),Un(ts,n))}function AP(e){Um.current===e&&(Zn(ts),Zn(Um))}var sr=vu(0);function ay(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rS=[];function FP(){for(var e=0;en?n:4,e(!0);var r=oS.transition;oS.transition={};try{e(!1),t()}finally{En=n,oS.transition=r}}function o7(){return Ji().memoizedState}function Pne(e,t,n){var r=eu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},i7(e))a7(t,n);else if(n=LD(e,t,n,r),n!==null){var o=ko();ka(n,e,r,o),s7(n,t,r)}}function Mne(e,t,n){var r=eu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(i7(e))a7(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Ma(s,a)){var l=t.interleaved;l===null?(o.next=o,IP(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=LD(e,t,o,r),n!==null&&(o=ko(),ka(n,e,r,o),s7(n,t,r))}}function i7(e){var t=e.alternate;return e===lr||t!==null&&t===lr}function a7(e,t){hm=sy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s7(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vP(e,n)}}var ly={readContext:Zi,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},Tne={readContext:Zi,useCallback:function(e,t){return za().memoizedState=[e,t===void 0?null:t],e},useContext:Zi,useEffect:WR,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,m1(4194308,4,JD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return m1(4194308,4,e,t)},useInsertionEffect:function(e,t){return m1(4,2,e,t)},useMemo:function(e,t){var n=za();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=za();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Pne.bind(null,lr,e),[r.memoizedState,e]},useRef:function(e){var t=za();return e={current:e},t.memoizedState=e},useState:HR,useDebugValue:zP,useDeferredValue:function(e){return za().memoizedState=e},useTransition:function(){var e=HR(!1),t=e[0];return e=kne.bind(null,e[1]),za().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=lr,o=za();if(rr){if(n===void 0)throw Error(Xe(407));n=n()}else{if(n=t(),Nr===null)throw Error(Xe(349));Rc&30||UD(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,WR(qD.bind(null,r,i,e),[e]),r.flags|=2048,Ym(9,GD.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=za(),t=Nr.identifierPrefix;if(rr){var n=qs,r=Gs;n=(r&~(1<<32-_a(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qm++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ya]=t,e[Um]=r,y7(e,t,!1,!1),t.stateNode=e;e:{switch(a=F$(n,r),n){case"dialog":Kn("cancel",e),Kn("close",e),o=r;break;case"iframe":case"object":case"embed":Kn("load",e),o=r;break;case"video":case"audio":for(o=0;oip&&(t.flags|=128,r=!0,Mh(i,!1),t.lanes=4194304)}else{if(!r)if(e=sy(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mh(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rr)return ro(t),null}else 2*xr()-i.renderingStartTime>ip&&n!==1073741824&&(t.flags|=128,r=!0,Mh(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xr(),t.sibling=null,n=sr.current,Un(sr,r?n&1|2:n&1),t):(ro(t),null);case 22:case 23:return qP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ai&1073741824&&(ro(t),t.subtreeFlags&6&&(t.flags|=8192)):ro(t),null;case 24:return null;case 25:return null}throw Error(Xe(156,t.tag))}function jne(e,t){switch(PP(t),t.tag){case 1:return Vo(t.type)&&ey(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rp(),Zn(Wo),Zn(fo),LP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return FP(t),null;case 13:if(Zn(sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Xe(340));tp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zn(sr),null;case 4:return rp(),null;case 10:return IP(t.type._context),null;case 22:case 23:return qP(),null;case 24:return null;default:return null}}var Ev=!1,uo=!1,Nne=typeof WeakSet=="function"?WeakSet:Set,pt=null;function Sf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){hr(e,t,r)}else n.current=null}function l_(e,t,n){try{n()}catch(r){hr(e,t,r)}}var JR=!1;function zne(e,t){if(U$=X1,e=$D(),_P(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(G$={focusedElem:e,selectionRange:n},X1=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,C=v.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:ga(t.type,b),C);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Xe(163))}}catch($){hr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return v=JR,JR=!1,v}function gm(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&&l_(t,n,i)}o=o.next}while(o!==r)}}function Db(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 u_(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 w7(e){var t=e.alternate;t!==null&&(e.alternate=null,w7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ya],delete t[Um],delete t[Y$],delete t[Cne],delete t[Sne])),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 C7(e){return e.tag===5||e.tag===3||e.tag===4}function eO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C7(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 c_(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=J1));else if(r!==4&&(e=e.child,e!==null))for(c_(e,t,n),e=e.sibling;e!==null;)c_(e,t,n),e=e.sibling}function d_(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(d_(e,t,n),e=e.sibling;e!==null;)d_(e,t,n),e=e.sibling}var Gr=null,ya=!1;function _l(e,t,n){for(n=n.child;n!==null;)S7(e,t,n),n=n.sibling}function S7(e,t,n){if(es&&typeof es.onCommitFiberUnmount=="function")try{es.onCommitFiberUnmount(Tb,n)}catch{}switch(n.tag){case 5:uo||Sf(n,t);case 6:var r=Gr,o=ya;Gr=null,_l(e,t,n),Gr=r,ya=o,Gr!==null&&(ya?(e=Gr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Gr.removeChild(n.stateNode));break;case 18:Gr!==null&&(ya?(e=Gr,n=n.stateNode,e.nodeType===8?nS(e.parentNode,n):e.nodeType===1&&nS(e,n),zm(e)):nS(Gr,n.stateNode));break;case 4:r=Gr,o=ya,Gr=n.stateNode.containerInfo,ya=!0,_l(e,t,n),Gr=r,ya=o;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&l_(n,t,a),o=o.next}while(o!==r)}_l(e,t,n);break;case 1:if(!uo&&(Sf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){hr(n,t,s)}_l(e,t,n);break;case 21:_l(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,_l(e,t,n),uo=r):_l(e,t,n);break;default:_l(e,t,n)}}function tO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nne),t.forEach(function(r){var o=Yne.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=xr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hne(r/1960))-r,10e?16:e,Hl===null)var r=!1;else{if(e=Hl,Hl=null,fy=0,fn&6)throw Error(Xe(331));var o=fn;for(fn|=4,pt=e.current;pt!==null;){var i=pt,a=i.child;if(pt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lxr()-UP?hc(e,0):VP|=n),Uo(e,t)}function I7(e,t){t===0&&(e.mode&1?(t=wv,wv<<=1,!(wv&130023424)&&(wv=4194304)):t=1);var n=ko();e=al(e,t),e!==null&&(Yg(e,t,n),Uo(e,n))}function Kne(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),I7(e,n)}function Yne(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Xe(314))}r!==null&&r.delete(t),I7(e,n)}var R7;R7=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wo.current)Bo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bo=!1,Lne(e,t,n);Bo=!!(e.flags&131072)}else Bo=!1,rr&&t.flags&1048576&&FD(t,ry,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;v1(e,t),e=t.pendingProps;var o=ep(t,fo.current);Df(t,n),o=jP(null,t,r,e,o,n);var i=NP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vo(r)?(i=!0,ty(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,OP(t),o.updater=Fb,t.stateNode=o,o._reactInternals=t,t_(t,r,e,n),t=o_(null,t,r,!0,i,n)):(t.tag=0,rr&&i&&kP(t),yo(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(v1(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Qne(r),e=ga(r,e),o){case 0:t=r_(null,t,r,e,n);break e;case 1:t=XR(null,t,r,e,n);break e;case 11:t=KR(null,t,r,e,n);break e;case 14:t=YR(null,t,r,ga(r.type,e),n);break e}throw Error(Xe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ga(r,o),r_(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ga(r,o),XR(e,t,r,o,n);case 3:e:{if(m7(t),e===null)throw Error(Xe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ND(e,t),ay(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=op(Error(Xe(423)),t),t=QR(e,t,r,n,o);break e}else if(r!==o){o=op(Error(Xe(424)),t),t=QR(e,t,r,n,o);break e}else for(fi=Zl(t.stateNode.containerInfo.firstChild),mi=t,rr=!0,xa=null,n=WD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tp(),r===o){t=sl(e,t,n);break e}yo(e,t,r,n)}t=t.child}return t;case 5:return VD(t),e===null&&Z$(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,q$(r,o)?a=null:i!==null&&q$(r,i)&&(t.flags|=32),h7(e,t),yo(e,t,a,n),t.child;case 6:return e===null&&Z$(t),null;case 13:return g7(e,t,n);case 4:return AP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=np(t,null,r,n):yo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ga(r,o),KR(e,t,r,o,n);case 7:return yo(e,t,t.pendingProps,n),t.child;case 8:return yo(e,t,t.pendingProps.children,n),t.child;case 12:return yo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Un(oy,r._currentValue),r._currentValue=a,i!==null)if(Ta(i.value,a)){if(i.children===o.children&&!Wo.current){t=sl(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=el(-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),J$(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Xe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),J$(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}yo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Df(t,n),o=Zi(o),r=r(o),t.flags|=1,yo(e,t,r,n),t.child;case 14:return r=t.type,o=ga(r,t.pendingProps),o=ga(r.type,o),YR(e,t,r,o,n);case 15:return f7(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ga(r,o),v1(e,t),t.tag=1,Vo(r)?(e=!0,ty(t)):e=!1,Df(t,n),BD(t,r,o),t_(t,r,o,n),o_(null,t,r,!0,e,n);case 19:return v7(e,t,n);case 22:return p7(e,t,n)}throw Error(Xe(156,t.tag))};function O7(e,t){return iD(e,t)}function Xne(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ui(e,t,n,r){return new Xne(e,t,n,r)}function YP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qne(e){if(typeof e=="function")return YP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hP)return 11;if(e===mP)return 14}return 2}function nu(e,t){var n=e.alternate;return n===null?(n=Ui(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function x1(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")YP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case hf:return mc(n.children,o,i,t);case pP:a=8,o|=8;break;case _$:return e=Ui(12,n,t,o|2),e.elementType=_$,e.lanes=i,e;case k$:return e=Ui(13,n,t,o),e.elementType=k$,e.lanes=i,e;case P$:return e=Ui(19,n,t,o),e.elementType=P$,e.lanes=i,e;case HL:return Nb(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zL:a=10;break e;case BL:a=9;break e;case hP:a=11;break e;case mP:a=14;break e;case Al:a=16,r=null;break e}throw Error(Xe(130,e==null?e:typeof e,""))}return t=Ui(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function mc(e,t,n,r){return e=Ui(7,e,r,t),e.lanes=n,e}function Nb(e,t,n,r){return e=Ui(22,e,r,t),e.elementType=HL,e.lanes=n,e.stateNode={isHidden:!1},e}function cS(e,t,n){return e=Ui(6,e,null,t),e.lanes=n,e}function dS(e,t,n){return t=Ui(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zne(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=UC(0),this.expirationTimes=UC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=UC(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function XP(e,t,n,r,o,i,a,s,l){return e=new Zne(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ui(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},OP(i),e}function Jne(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D7)}catch(e){console.error(e)}}D7(),FL.exports=Ci;var xu=FL.exports;const Ov=Or(xu);var uO=xu;S$.createRoot=uO.createRoot,S$.hydrateRoot=uO.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function sS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function t_(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rne=typeof WeakMap=="function"?WeakMap:Map;function l7(e,t,n){n=Js(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cy||(cy=!0,d_=r),t_(e,t)},n}function u7(e,t,n){n=Js(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){t_(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){t_(e,t),typeof r!="function"&&(Jl===null?Jl=new Set([this]):Jl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function VR(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rne;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Gne.bind(null,e,t,n),t.then(e,e))}function UR(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function GR(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Js(-1,1),t.tag=2,Zl(n,t,1))),n.lanes|=1),e)}var One=dl.ReactCurrentOwner,Bo=!1;function yo(e,t,n,r){t.child=e===null?BD(t,null,n,r):tp(t,e.child,n,r)}function qR(e,t,n,r,o){n=n.render;var i=t.ref;return Lf(t,o),r=DP(e,t,n,r,i,o),n=jP(),e!==null&&!Bo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,al(e,t,o)):(rr&&n&&_P(t),t.flags|=1,yo(e,t,r,o),t.child)}function KR(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!KP(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,c7(e,t,i,r,o)):(e=b1(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bm,n(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,e=tu(i,r),e.ref=t.ref,e.return=t,t.child=e}function c7(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Bm(i,r)&&e.ref===t.ref)if(Bo=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Bo=!0);else return t.lanes=e.lanes,al(e,t,o)}return n_(e,t,n,r,o)}function d7(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Un(Sf,ai),ai|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Un(Sf,ai),ai|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Un(Sf,ai),ai|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Un(Sf,ai),ai|=r;return yo(e,t,o,n),t.child}function f7(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function n_(e,t,n,r,o){var i=Vo(n)?Ec:fo.current;return i=Jf(t,i),Lf(t,o),n=DP(e,t,n,r,i,o),r=jP(),e!==null&&!Bo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,al(e,t,o)):(rr&&r&&_P(t),t.flags|=1,yo(e,t,n,o),t.child)}function YR(e,t,n,r,o){if(Vo(n)){var i=!0;ey(t)}else i=!1;if(Lf(t,o),t.stateNode===null)g1(e,t),ND(t,n,r),e_(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Zi(u):(u=Vo(n)?Ec:fo.current,u=Jf(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&zR(t,a,r,u),Al=!1;var p=t.memoizedState;a.state=p,iy(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Wo.current||Al?(typeof c=="function"&&(J$(t,n,c,r),l=t.memoizedState),(s=Al||NR(t,n,s,r,p,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,DD(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ma(t.type,s),a.props=u,f=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Zi(l):(l=Vo(n)?Ec:fo.current,l=Jf(t,l));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&zR(t,a,r,l),Al=!1,p=t.memoizedState,a.state=p,iy(t,r,a,o);var v=t.memoizedState;s!==f||p!==v||Wo.current||Al?(typeof y=="function"&&(J$(t,n,y,r),v=t.memoizedState),(u=Al||NR(t,n,u,r,p,v,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return r_(e,t,n,r,i,o)}function r_(e,t,n,r,o,i){f7(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&AR(t,n,!1),al(e,t,i);r=t.stateNode,One.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=tp(t,e.child,null,i),t.child=tp(t,null,s,i)):yo(e,t,s,i),t.memoizedState=r.state,o&&AR(t,n,!0),t.child}function p7(e){var t=e.stateNode;t.pendingContext?OR(e,t.pendingContext,t.pendingContext!==t.context):t.context&&OR(e,t.context,!1),OP(e,t.containerInfo)}function XR(e,t,n,r,o){return ep(),PP(o),t.flags|=256,yo(e,t,n,r),t.child}var o_={dehydrated:null,treeContext:null,retryLane:0};function i_(e){return{baseLanes:e,cachePool:null,transitions:null}}function h7(e,t,n){var r=t.pendingProps,o=sr.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Un(sr,o&1),e===null)return Q$(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=jb(a,r,0,null),e=hc(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=i_(n),t.memoizedState=o_,e):BP(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Ane(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=tu(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=tu(s,i):(i=hc(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?i_(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=o_,r}return i=e.child,e=i.sibling,r=tu(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function BP(e,t){return t=jb({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mv(e,t,n,r){return r!==null&&PP(r),tp(t,e.child,null,n),e=BP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ane(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=sS(Error(Xe(422))),Mv(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=jb({mode:"visible",children:r.children},o,0,null),i=hc(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&tp(t,e.child,null,a),t.child.memoizedState=i_(a),t.memoizedState=o_,i);if(!(t.mode&1))return Mv(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(Xe(419)),r=sS(i,r,void 0),Mv(e,t,a,r)}if(s=(a&e.childLanes)!==0,Bo||s){if(r=Nr,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,il(e,o),ka(r,e,o,-1))}return qP(),r=sS(Error(Xe(421))),Mv(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=qne.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,fi=Ql(o.nextSibling),mi=t,rr=!0,ba=null,e!==null&&(Bi[Hi++]=Gs,Bi[Hi++]=qs,Bi[Hi++]=Ic,Gs=e.id,qs=e.overflow,Ic=t),t=BP(t,r.children),t.flags|=4096,t)}function QR(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Z$(e.return,t,n)}function lS(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function m7(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(yo(e,t,r.children,n),r=sr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&QR(e,n,t);else if(e.tag===19)QR(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Un(sr,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ay(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),lS(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ay(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}lS(t,!0,n,null,i);break;case"together":lS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function g1(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function al(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Oc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Xe(153));if(t.child!==null){for(e=t.child,n=tu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fne(e,t,n){switch(t.tag){case 3:p7(t),ep();break;case 5:HD(t);break;case 1:Vo(t.type)&&ey(t);break;case 4:OP(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Un(ry,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Un(sr,sr.current&1),t.flags|=128,null):n&t.child.childLanes?h7(e,t,n):(Un(sr,sr.current&1),e=al(e,t,n),e!==null?e.sibling:null);Un(sr,sr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return m7(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Un(sr,sr.current),r)break;return null;case 22:case 23:return t.lanes=0,d7(e,t,n)}return al(e,t,n)}var g7,a_,v7,y7;g7=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};a_=function(){};v7=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rc(ts.current);var i=null;switch(n){case"input":o=M$(e,o),r=M$(e,r),i=[];break;case"select":o=ur({},o,{value:void 0}),r=ur({},r,{value:void 0}),i=[];break;case"textarea":o=I$(e,o),r=I$(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Z1)}O$(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Am.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Am.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Kn("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};y7=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ph(e,t){if(!rr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ro(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lne(e,t,n){var r=t.pendingProps;switch(kP(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ro(t),null;case 1:return Vo(t.type)&&J1(),ro(t),null;case 3:return r=t.stateNode,np(),Zn(Wo),Zn(fo),FP(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ba!==null&&(h_(ba),ba=null))),a_(e,t),ro(t),null;case 5:AP(t);var o=rc(Gm.current);if(n=t.type,e!==null&&t.stateNode!=null)v7(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Xe(166));return ro(t),null}if(e=rc(ts.current),kv(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ya]=t,r[Vm]=i,e=(t.mode&1)!==0,n){case"dialog":Kn("cancel",r),Kn("close",r);break;case"iframe":case"object":case"embed":Kn("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ya]=t,e[Vm]=r,g7(e,t,!1,!1),t.stateNode=e;e:{switch(a=A$(n,r),n){case"dialog":Kn("cancel",e),Kn("close",e),o=r;break;case"iframe":case"object":case"embed":Kn("load",e),o=r;break;case"video":case"audio":for(o=0;oop&&(t.flags|=128,r=!0,Ph(i,!1),t.lanes=4194304)}else{if(!r)if(e=ay(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ph(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rr)return ro(t),null}else 2*xr()-i.renderingStartTime>op&&n!==1073741824&&(t.flags|=128,r=!0,Ph(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xr(),t.sibling=null,n=sr.current,Un(sr,r?n&1|2:n&1),t):(ro(t),null);case 22:case 23:return GP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ai&1073741824&&(ro(t),t.subtreeFlags&6&&(t.flags|=8192)):ro(t),null;case 24:return null;case 25:return null}throw Error(Xe(156,t.tag))}function Dne(e,t){switch(kP(t),t.tag){case 1:return Vo(t.type)&&J1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return np(),Zn(Wo),Zn(fo),FP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return AP(t),null;case 13:if(Zn(sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Xe(340));ep()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zn(sr),null;case 4:return np(),null;case 10:return EP(t.type._context),null;case 22:case 23:return GP(),null;case 24:return null;default:return null}}var Tv=!1,uo=!1,jne=typeof WeakSet=="function"?WeakSet:Set,pt=null;function Cf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){hr(e,t,r)}else n.current=null}function s_(e,t,n){try{n()}catch(r){hr(e,t,r)}}var ZR=!1;function Nne(e,t){if(V$=Y1,e=CD(),$P(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(U$={focusedElem:e,selectionRange:n},Y1=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,C=v.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:ma(t.type,b),C);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Xe(163))}}catch($){hr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return v=ZR,ZR=!1,v}function mm(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&s_(t,n,i)}o=o.next}while(o!==r)}}function Lb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function l_(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function b7(e){var t=e.alternate;t!==null&&(e.alternate=null,b7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ya],delete t[Vm],delete t[K$],delete t[wne],delete t[Cne])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function x7(e){return e.tag===5||e.tag===3||e.tag===4}function JR(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||x7(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function u_(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Z1));else if(r!==4&&(e=e.child,e!==null))for(u_(e,t,n),e=e.sibling;e!==null;)u_(e,t,n),e=e.sibling}function c_(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(c_(e,t,n),e=e.sibling;e!==null;)c_(e,t,n),e=e.sibling}var Gr=null,va=!1;function $l(e,t,n){for(n=n.child;n!==null;)w7(e,t,n),n=n.sibling}function w7(e,t,n){if(es&&typeof es.onCommitFiberUnmount=="function")try{es.onCommitFiberUnmount(Mb,n)}catch{}switch(n.tag){case 5:uo||Cf(n,t);case 6:var r=Gr,o=va;Gr=null,$l(e,t,n),Gr=r,va=o,Gr!==null&&(va?(e=Gr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Gr.removeChild(n.stateNode));break;case 18:Gr!==null&&(va?(e=Gr,n=n.stateNode,e.nodeType===8?tS(e.parentNode,n):e.nodeType===1&&tS(e,n),Nm(e)):tS(Gr,n.stateNode));break;case 4:r=Gr,o=va,Gr=n.stateNode.containerInfo,va=!0,$l(e,t,n),Gr=r,va=o;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&s_(n,t,a),o=o.next}while(o!==r)}$l(e,t,n);break;case 1:if(!uo&&(Cf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){hr(n,t,s)}$l(e,t,n);break;case 21:$l(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,$l(e,t,n),uo=r):$l(e,t,n);break;default:$l(e,t,n)}}function eO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jne),t.forEach(function(r){var o=Kne.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=xr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bne(r/1960))-r,10e?16:e,Bl===null)var r=!1;else{if(e=Bl,Bl=null,dy=0,fn&6)throw Error(Xe(331));var o=fn;for(fn|=4,pt=e.current;pt!==null;){var i=pt,a=i.child;if(pt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lxr()-VP?pc(e,0):WP|=n),Uo(e,t)}function T7(e,t){t===0&&(e.mode&1?(t=xv,xv<<=1,!(xv&130023424)&&(xv=4194304)):t=1);var n=ko();e=il(e,t),e!==null&&(Kg(e,t,n),Uo(e,n))}function qne(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T7(e,n)}function Kne(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Xe(314))}r!==null&&r.delete(t),T7(e,n)}var E7;E7=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wo.current)Bo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bo=!1,Fne(e,t,n);Bo=!!(e.flags&131072)}else Bo=!1,rr&&t.flags&1048576&&OD(t,ny,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;g1(e,t),e=t.pendingProps;var o=Jf(t,fo.current);Lf(t,n),o=DP(null,t,r,e,o,n);var i=jP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vo(r)?(i=!0,ey(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,RP(t),o.updater=Ab,t.stateNode=o,o._reactInternals=t,e_(t,r,e,n),t=r_(null,t,r,!0,i,n)):(t.tag=0,rr&&i&&_P(t),yo(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(g1(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Xne(r),e=ma(r,e),o){case 0:t=n_(null,t,r,e,n);break e;case 1:t=YR(null,t,r,e,n);break e;case 11:t=qR(null,t,r,e,n);break e;case 14:t=KR(null,t,r,ma(r.type,e),n);break e}throw Error(Xe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),n_(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),YR(e,t,r,o,n);case 3:e:{if(p7(t),e===null)throw Error(Xe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,DD(e,t),iy(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=rp(Error(Xe(423)),t),t=XR(e,t,r,n,o);break e}else if(r!==o){o=rp(Error(Xe(424)),t),t=XR(e,t,r,n,o);break e}else for(fi=Ql(t.stateNode.containerInfo.firstChild),mi=t,rr=!0,ba=null,n=BD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ep(),r===o){t=al(e,t,n);break e}yo(e,t,r,n)}t=t.child}return t;case 5:return HD(t),e===null&&Q$(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,G$(r,o)?a=null:i!==null&&G$(r,i)&&(t.flags|=32),f7(e,t),yo(e,t,a,n),t.child;case 6:return e===null&&Q$(t),null;case 13:return h7(e,t,n);case 4:return OP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tp(t,null,r,n):yo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),qR(e,t,r,o,n);case 7:return yo(e,t,t.pendingProps,n),t.child;case 8:return yo(e,t,t.pendingProps.children,n),t.child;case 12:return yo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Un(ry,r._currentValue),r._currentValue=a,i!==null)if(Ma(i.value,a)){if(i.children===o.children&&!Wo.current){t=al(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Js(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Z$(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Xe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Z$(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}yo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lf(t,n),o=Zi(o),r=r(o),t.flags|=1,yo(e,t,r,n),t.child;case 14:return r=t.type,o=ma(r,t.pendingProps),o=ma(r.type,o),KR(e,t,r,o,n);case 15:return c7(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),g1(e,t),t.tag=1,Vo(r)?(e=!0,ey(t)):e=!1,Lf(t,n),ND(t,r,o),e_(t,r,o,n),r_(null,t,r,!0,e,n);case 19:return m7(e,t,n);case 22:return d7(e,t,n)}throw Error(Xe(156,t.tag))};function I7(e,t){return rD(e,t)}function Yne(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ui(e,t,n,r){return new Yne(e,t,n,r)}function KP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xne(e){if(typeof e=="function")return KP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pP)return 11;if(e===hP)return 14}return 2}function tu(e,t){var n=e.alternate;return n===null?(n=Ui(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function b1(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")KP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case pf:return hc(n.children,o,i,t);case fP:a=8,o|=8;break;case $$:return e=Ui(12,n,t,o|2),e.elementType=$$,e.lanes=i,e;case _$:return e=Ui(13,n,t,o),e.elementType=_$,e.lanes=i,e;case k$:return e=Ui(19,n,t,o),e.elementType=k$,e.lanes=i,e;case zL:return jb(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jL:a=10;break e;case NL:a=9;break e;case pP:a=11;break e;case hP:a=14;break e;case Ol:a=16,r=null;break e}throw Error(Xe(130,e==null?e:typeof e,""))}return t=Ui(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function hc(e,t,n,r){return e=Ui(7,e,r,t),e.lanes=n,e}function jb(e,t,n,r){return e=Ui(22,e,r,t),e.elementType=zL,e.lanes=n,e.stateNode={isHidden:!1},e}function uS(e,t,n){return e=Ui(6,e,null,t),e.lanes=n,e}function cS(e,t,n){return t=Ui(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qne(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=VC(0),this.expirationTimes=VC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=VC(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function YP(e,t,n,r,o,i,a,s,l){return e=new Qne(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ui(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},RP(i),e}function Zne(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(F7)}catch(e){console.error(e)}}F7(),OL.exports=Ci;var bu=OL.exports;const Rv=Or(bu);var lO=bu;C$.createRoot=lO.createRoot,C$.hydrateRoot=lO.hydrateRoot;/** * @remix-run/router v1.9.0 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Lc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ire(){return Math.random().toString(36).substr(2,8)}function dO(e,t){return{usr:e.state,key:e.key,idx:t}}function Zm(e,t,n,r){return n===void 0&&(n=null),ar({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ys(t):t,{state:n,key:t&&t.key||r||ire()})}function Dc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ys(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function are(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=wr.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(ar({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=wr.Pop;let C=c(),x=C==null?null:C-u;u=C,l&&l({action:s,location:b.location,delta:x})}function p(C,x){s=wr.Push;let w=Zm(b.location,C,x);n&&n(w,C),u=c()+1;let S=dO(w,u),$=b.createHref(w);try{a.pushState(S,"",$)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign($)}i&&l&&l({action:s,location:b.location,delta:1})}function y(C,x){s=wr.Replace;let w=Zm(b.location,C,x);n&&n(w,C),u=c();let S=dO(w,u),$=b.createHref(w);a.replaceState(S,"",$),i&&l&&l({action:s,location:b.location,delta:0})}function v(C){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof C=="string"?C:Dc(C);return Kt(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let b={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(cO,f),l=C,()=>{o.removeEventListener(cO,f),l=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let x=v(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:y,go(C){return a.go(C)}};return b}var br;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(br||(br={}));const sre=new Set(["lazy","caseSensitive","path","id","index","children"]);function lre(e){return e.index===!0}function g_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(Kt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Kt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),lre(o)){let l=ar({},o,t(o),{id:s});return r[s]=l,l}else{let l=ar({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=g_(o.children,t,a,r)),l}})}function _f(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ys(t):t,o=Lp(r.pathname||"/",n);if(o==null)return null;let i=j7(e);cre(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Kt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=tl([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Kt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),j7(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:vre(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 N7(i.path))o(i,a,l)}),t}function N7(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=N7(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 cre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dre=/^:\w+$/,fre=3,pre=2,hre=1,mre=10,gre=-2,fO=e=>e==="*";function vre(e,t){let n=e.split("/"),r=n.length;return n.some(fO)&&(r+=gre),t&&(r+=pre),n.filter(o=>!fO(o)).reduce((o,i)=>o+(dre.test(i)?fre:i===""?hre:mre),r)}function yre(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 bre(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=Sre(s[f]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function wre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Cre(e){try{return decodeURI(e)}catch(t){return Lc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Sre(e,t){try{return decodeURIComponent(e)}catch(n){return Lc(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Lp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function $re(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ys(e):e;return{pathname:n?n.startsWith("/")?n:_re(n,t):t,search:Pre(r),hash:Mre(o)}}function _re(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function fS(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 Vb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eM(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ys(e):(o=ar({},e),Kt(!o.pathname||!o.pathname.includes("?"),fS("?","pathname","search",o)),Kt(!o.pathname||!o.pathname.includes("#"),fS("#","pathname","hash",o)),Kt(!o.search||!o.search.includes("#"),fS("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=$re(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const tl=e=>e.join("/").replace(/\/\/+/g,"/"),kre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Mre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class tM{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function z7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const B7=["post","put","patch","delete"],Tre=new Set(B7),Ere=["get",...B7],Ire=new Set(Ere),Rre=new Set([301,302,303,307,308]),Ore=new Set([307,308]),pS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Are={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Eh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},H7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fre=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Lre(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Kt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let te=e.detectErrorBoundary;o=X=>({hasErrorBoundary:te(X)})}else o=Fre;let i={},a=g_(e.routes,o,void 0,i),s,l=e.basename||"/",u=ar({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,p=null,y=null,v=null,b=e.hydrationData!=null,C=_f(a,e.history.location,l),x=null;if(C==null){let te=Li(404,{pathname:e.history.location.pathname}),{matches:X,route:oe}=xO(a);C=X,x={[oe.id]:te}}let w=!C.some(te=>te.route.lazy)&&(!C.some(te=>te.route.loader)||e.hydrationData!=null),S,$={historyAction:e.history.action,location:e.history.location,matches:C,initialized:w,navigation:pS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},T=wr.Pop,k=!1,M,I=!1,N=!1,E=[],A=[],z=new Map,L=0,O=-1,D=new Map,H=new Set,B=new Map,j=new Map,W=new Map,U=!1;function Z(){return c=e.history.listen(te=>{let{action:X,location:oe,delta:Ie}=te;if(U){U=!1;return}Lc(W.size===0||Ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ve=Ae({currentLocation:$.location,nextLocation:oe,historyAction:X});if(Ve&&Ie!=null){U=!0,e.history.go(Ie*-1),De(Ve,{state:"blocked",location:oe,proceed(){De(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(Ie)},reset(){let Ke=new Map($.blockers);Ke.set(Ve,Eh),Q({blockers:Ke})}});return}return xe(X,oe)}),$.initialized||xe(wr.Pop,$.location),S}function Y(){c&&c(),f.clear(),M&&M.abort(),$.fetchers.forEach((te,X)=>Le(X)),$.blockers.forEach((te,X)=>ye(X))}function se(te){return f.add(te),()=>f.delete(te)}function Q(te){$=ar({},$,te),f.forEach(X=>X($))}function ne(te,X){var oe,Ie;let Ve=$.actionData!=null&&$.navigation.formMethod!=null&&ba($.navigation.formMethod)&&$.navigation.state==="loading"&&((oe=te.state)==null?void 0:oe._isRedirect)!==!0,Ke;X.actionData?Object.keys(X.actionData).length>0?Ke=X.actionData:Ke=null:Ve?Ke=$.actionData:Ke=null;let at=X.loaderData?bO($.loaderData,X.loaderData,X.matches||[],X.errors):$.loaderData,Je=$.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((_t,ht)=>Je.set(ht,Eh)));let nt=k===!0||$.navigation.formMethod!=null&&ba($.navigation.formMethod)&&((Ie=te.state)==null?void 0:Ie._isRedirect)!==!0;s&&(a=s,s=void 0),I||T===wr.Pop||(T===wr.Push?e.history.push(te,te.state):T===wr.Replace&&e.history.replace(te,te.state)),Q(ar({},X,{actionData:Ke,loaderData:at,historyAction:T,location:te,initialized:!0,navigation:pS,revalidation:"idle",restoreScrollPosition:et(te,X.matches||$.matches),preventScrollReset:nt,blockers:Je})),T=wr.Pop,k=!1,I=!1,N=!1,E=[],A=[]}async function re(te,X){if(typeof te=="number"){e.history.go(te);return}let oe=v_($.location,$.matches,l,u.v7_prependBasename,te,X==null?void 0:X.fromRouteId,X==null?void 0:X.relative),{path:Ie,submission:Ve,error:Ke}=pO(u.v7_normalizeFormMethod,!1,oe,X),at=$.location,Je=Zm($.location,Ie,X&&X.state);Je=ar({},Je,e.history.encodeLocation(Je));let nt=X&&X.replace!=null?X.replace:void 0,_t=wr.Push;nt===!0?_t=wr.Replace:nt===!1||Ve!=null&&ba(Ve.formMethod)&&Ve.formAction===$.location.pathname+$.location.search&&(_t=wr.Replace);let ht=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,lt=Ae({currentLocation:at,nextLocation:Je,historyAction:_t});if(lt){De(lt,{state:"blocked",location:Je,proceed(){De(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),re(te,X)},reset(){let Rt=new Map($.blockers);Rt.set(lt,Eh),Q({blockers:Rt})}});return}return await xe(_t,Je,{submission:Ve,pendingError:Ke,preventScrollReset:ht,replace:X&&X.replace})}function ge(){if(ce(),Q({revalidation:"loading"}),$.navigation.state!=="submitting"){if($.navigation.state==="idle"){xe($.historyAction,$.location,{startUninterruptedRevalidation:!0});return}xe(T||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation})}}async function xe(te,X,oe){M&&M.abort(),M=null,T=te,I=(oe&&oe.startUninterruptedRevalidation)===!0,Ct($.location,$.matches),k=(oe&&oe.preventScrollReset)===!0;let Ie=s||a,Ve=oe&&oe.overrideNavigation,Ke=_f(Ie,X,l);if(!Ke){let Rt=Li(404,{pathname:X.pathname}),{matches:jt,route:dn}=xO(Ie);Ee(),ne(X,{matches:jt,loaderData:{},errors:{[dn.id]:Rt}});return}if($.initialized&&!N&&Bre($.location,X)&&!(oe&&oe.submission&&ba(oe.submission.formMethod))){ne(X,{matches:Ke});return}M=new AbortController;let at=Rh(e.history,X,M.signal,oe&&oe.submission),Je,nt;if(oe&&oe.pendingError)nt={[kf(Ke).route.id]:oe.pendingError};else if(oe&&oe.submission&&ba(oe.submission.formMethod)){let Rt=await fe(at,X,oe.submission,Ke,{replace:oe.replace});if(Rt.shortCircuited)return;Je=Rt.pendingActionData,nt=Rt.pendingActionError,Ve=hS(X,oe.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:_t,loaderData:ht,errors:lt}=await Se(at,X,Ke,Ve,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Je,nt);_t||(M=null,ne(X,ar({matches:Ke},Je?{actionData:Je}:{},{loaderData:ht,errors:lt})))}async function fe(te,X,oe,Ie,Ve){Ve===void 0&&(Ve={}),ce();let Ke=Ure(X,oe);Q({navigation:Ke});let at,Je=b_(Ie,X);if(!Je.route.action&&!Je.route.lazy)at={type:br.error,error:Li(405,{method:te.method,pathname:X.pathname,routeId:Je.route.id})};else if(at=await Ih("action",te,Je,Ie,i,o,l),te.signal.aborted)return{shortCircuited:!0};if(Nf(at)){let nt;return Ve&&Ve.replace!=null?nt=Ve.replace:nt=at.location===$.location.pathname+$.location.search,await me($,at,{submission:oe,replace:nt}),{shortCircuited:!0}}if(bm(at)){let nt=kf(Ie,Je.route.id);return(Ve&&Ve.replace)!==!0&&(T=wr.Push),{pendingActionData:{},pendingActionError:{[nt.route.id]:at.error}}}if(ic(at))throw Li(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:at.data}}}async function Se(te,X,oe,Ie,Ve,Ke,at,Je,nt){let _t=Ie||hS(X,Ve),ht=Ve||Ke||SO(_t),lt=s||a,[Rt,jt]=hO(e.history,$,oe,ht,X,N,E,A,B,H,lt,l,Je,nt);if(Ee(tt=>!(oe&&oe.some(Ut=>Ut.route.id===tt))||Rt&&Rt.some(Ut=>Ut.route.id===tt)),O=++L,Rt.length===0&&jt.length===0){let tt=K();return ne(X,ar({matches:oe,loaderData:{},errors:nt||null},Je?{actionData:Je}:{},tt?{fetchers:new Map($.fetchers)}:{})),{shortCircuited:!0}}if(!I){jt.forEach(Ut=>{let _e=$.fetchers.get(Ut.key),we=Oh(void 0,_e?_e.data:void 0);$.fetchers.set(Ut.key,we)});let tt=Je||$.actionData;Q(ar({navigation:_t},tt?Object.keys(tt).length===0?{actionData:null}:{actionData:tt}:{},jt.length>0?{fetchers:new Map($.fetchers)}:{}))}jt.forEach(tt=>{z.has(tt.key)&&Re(tt.key),tt.controller&&z.set(tt.key,tt.controller)});let dn=()=>jt.forEach(tt=>Re(tt.key));M&&M.signal.addEventListener("abort",dn);let{results:hn,loaderResults:Pt,fetcherResults:zt}=await ue($.matches,oe,Rt,jt,te);if(te.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",dn),jt.forEach(tt=>z.delete(tt.key));let un=wO(hn);if(un){if(un.idx>=Rt.length){let tt=jt[un.idx-Rt.length].key;H.add(tt)}return await me($,un.result,{replace:at}),{shortCircuited:!0}}let{loaderData:cn,errors:ut}=yO($,oe,Rt,Pt,nt,jt,zt,j);j.forEach((tt,Ut)=>{tt.subscribe(_e=>{(_e||tt.done)&&j.delete(Ut)})});let mt=K(),Ot=ee(O),At=mt||Ot||jt.length>0;return ar({loaderData:cn,errors:ut},At?{fetchers:new Map($.fetchers)}:{})}function de(te){return $.fetchers.get(te)||Are}function ie(te,X,oe,Ie){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(te)&&Re(te);let Ve=s||a,Ke=v_($.location,$.matches,l,u.v7_prependBasename,oe,X,Ie==null?void 0:Ie.relative),at=_f(Ve,Ke,l);if(!at){Te(te,X,Li(404,{pathname:Ke}));return}let{path:Je,submission:nt,error:_t}=pO(u.v7_normalizeFormMethod,!0,Ke,Ie);if(_t){Te(te,X,_t);return}let ht=b_(at,Je);if(k=(Ie&&Ie.preventScrollReset)===!0,nt&&ba(nt.formMethod)){Pe(te,X,Je,ht,at,nt);return}B.set(te,{routeId:X,path:Je}),$e(te,X,Je,ht,at,nt)}async function Pe(te,X,oe,Ie,Ve,Ke){if(ce(),B.delete(te),!Ie.route.action&&!Ie.route.lazy){let Fe=Li(405,{method:Ke.formMethod,pathname:oe,routeId:X});Te(te,X,Fe);return}let at=$.fetchers.get(te),Je=Gre(Ke,at);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Rh(e.history,oe,nt.signal,Ke);z.set(te,nt);let ht=L,lt=await Ih("action",_t,Ie,Ve,i,o,l);if(_t.signal.aborted){z.get(te)===nt&&z.delete(te);return}if(Nf(lt))if(z.delete(te),O>ht){let Fe=lf(void 0);$.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)});return}else{H.add(te);let Fe=Oh(Ke);return $.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)}),me($,lt,{fetcherSubmission:Ke})}if(bm(lt)){Te(te,X,lt.error);return}if(ic(lt))throw Li(400,{type:"defer-action"});let Rt=$.navigation.location||$.location,jt=Rh(e.history,Rt,nt.signal),dn=s||a,hn=$.navigation.state!=="idle"?_f(dn,$.navigation.location,l):$.matches;Kt(hn,"Didn't find any matches after fetcher action");let Pt=++L;D.set(te,Pt);let zt=Oh(Ke,lt.data);$.fetchers.set(te,zt);let[un,cn]=hO(e.history,$,hn,Ke,Rt,N,E,A,B,H,dn,l,{[Ie.route.id]:lt.data},void 0);cn.filter(Fe=>Fe.key!==te).forEach(Fe=>{let rt=Fe.key,Tt=$.fetchers.get(rt),en=Oh(void 0,Tt?Tt.data:void 0);$.fetchers.set(rt,en),z.has(rt)&&Re(rt),Fe.controller&&z.set(rt,Fe.controller)}),Q({fetchers:new Map($.fetchers)});let ut=()=>cn.forEach(Fe=>Re(Fe.key));nt.signal.addEventListener("abort",ut);let{results:mt,loaderResults:Ot,fetcherResults:At}=await ue($.matches,hn,un,cn,jt);if(nt.signal.aborted)return;nt.signal.removeEventListener("abort",ut),D.delete(te),z.delete(te),cn.forEach(Fe=>z.delete(Fe.key));let tt=wO(mt);if(tt){if(tt.idx>=un.length){let Fe=cn[tt.idx-un.length].key;H.add(Fe)}return me($,tt.result)}let{loaderData:Ut,errors:_e}=yO($,$.matches,un,Ot,void 0,cn,At,j);if($.fetchers.has(te)){let Fe=lf(lt.data);$.fetchers.set(te,Fe)}let we=ee(Pt);$.navigation.state==="loading"&&Pt>O?(Kt(T,"Expected pending action"),M&&M.abort(),ne($.navigation.location,{matches:hn,loaderData:Ut,errors:_e,fetchers:new Map($.fetchers)})):(Q(ar({errors:_e,loaderData:bO($.loaderData,Ut,hn,_e)},we||cn.length>0?{fetchers:new Map($.fetchers)}:{})),N=!1)}async function $e(te,X,oe,Ie,Ve,Ke){let at=$.fetchers.get(te),Je=Oh(Ke,at?at.data:void 0);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Rh(e.history,oe,nt.signal);z.set(te,nt);let ht=L,lt=await Ih("loader",_t,Ie,Ve,i,o,l);if(ic(lt)&&(lt=await U7(lt,_t.signal,!0)||lt),z.get(te)===nt&&z.delete(te),_t.signal.aborted)return;if(Nf(lt))if(O>ht){let jt=lf(void 0);$.fetchers.set(te,jt),Q({fetchers:new Map($.fetchers)});return}else{H.add(te),await me($,lt);return}if(bm(lt)){let jt=kf($.matches,X);$.fetchers.delete(te),Q({fetchers:new Map($.fetchers),errors:{[jt.route.id]:lt.error}});return}Kt(!ic(lt),"Unhandled fetcher deferred data");let Rt=lf(lt.data);$.fetchers.set(te,Rt),Q({fetchers:new Map($.fetchers)})}async function me(te,X,oe){let{submission:Ie,fetcherSubmission:Ve,replace:Ke}=oe===void 0?{}:oe;X.revalidate&&(N=!0);let at=Zm(te.location,X.location,{_isRedirect:!0});if(Kt(at,"Expected a location on the redirect navigation"),n){let Rt=!1;if(X.reloadDocument)Rt=!0;else if(H7.test(X.location)){const jt=e.history.createURL(X.location);Rt=jt.origin!==t.location.origin||Lp(jt.pathname,l)==null}if(Rt){Ke?t.location.replace(X.location):t.location.assign(X.location);return}}M=null;let Je=Ke===!0?wr.Replace:wr.Push,{formMethod:nt,formAction:_t,formEncType:ht}=te.navigation;!Ie&&!Ve&&nt&&_t&&ht&&(Ie=SO(te.navigation));let lt=Ie||Ve;if(Ore.has(X.status)&<&&ba(lt.formMethod))await xe(Je,at,{submission:ar({},lt,{formAction:X.location}),preventScrollReset:k});else{let Rt=hS(at,Ie);await xe(Je,at,{overrideNavigation:Rt,fetcherSubmission:Ve,preventScrollReset:k})}}async function ue(te,X,oe,Ie,Ve){let Ke=await Promise.all([...oe.map(nt=>Ih("loader",Ve,nt,X,i,o,l)),...Ie.map(nt=>nt.matches&&nt.match&&nt.controller?Ih("loader",Rh(e.history,nt.path,nt.controller.signal),nt.match,nt.matches,i,o,l):{type:br.error,error:Li(404,{pathname:nt.path})})]),at=Ke.slice(0,oe.length),Je=Ke.slice(oe.length);return await Promise.all([CO(te,oe,at,at.map(()=>Ve.signal),!1,$.loaderData),CO(te,Ie.map(nt=>nt.match),Je,Ie.map(nt=>nt.controller?nt.controller.signal:null),!0)]),{results:Ke,loaderResults:at,fetcherResults:Je}}function ce(){N=!0,E.push(...Ee()),B.forEach((te,X)=>{z.has(X)&&(A.push(X),Re(X))})}function Te(te,X,oe){let Ie=kf($.matches,X);Le(te),Q({errors:{[Ie.route.id]:oe},fetchers:new Map($.fetchers)})}function Le(te){let X=$.fetchers.get(te);z.has(te)&&!(X&&X.state==="loading"&&D.has(te))&&Re(te),B.delete(te),D.delete(te),H.delete(te),$.fetchers.delete(te)}function Re(te){let X=z.get(te);Kt(X,"Expected fetch controller: "+te),X.abort(),z.delete(te)}function Oe(te){for(let X of te){let oe=de(X),Ie=lf(oe.data);$.fetchers.set(X,Ie)}}function K(){let te=[],X=!1;for(let oe of H){let Ie=$.fetchers.get(oe);Kt(Ie,"Expected fetcher: "+oe),Ie.state==="loading"&&(H.delete(oe),te.push(oe),X=!0)}return Oe(te),X}function ee(te){let X=[];for(let[oe,Ie]of D)if(Ie0}function pe(te,X){let oe=$.blockers.get(te)||Eh;return W.get(te)!==X&&W.set(te,X),oe}function ye(te){$.blockers.delete(te),W.delete(te)}function De(te,X){let oe=$.blockers.get(te)||Eh;Kt(oe.state==="unblocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="proceeding"||oe.state==="blocked"&&X.state==="unblocked"||oe.state==="proceeding"&&X.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+X.state);let Ie=new Map($.blockers);Ie.set(te,X),Q({blockers:Ie})}function Ae(te){let{currentLocation:X,nextLocation:oe,historyAction:Ie}=te;if(W.size===0)return;W.size>1&&Lc(!1,"A router only supports one blocker at a time");let Ve=Array.from(W.entries()),[Ke,at]=Ve[Ve.length-1],Je=$.blockers.get(Ke);if(!(Je&&Je.state==="proceeding")&&at({currentLocation:X,nextLocation:oe,historyAction:Ie}))return Ke}function Ee(te){let X=[];return j.forEach((oe,Ie)=>{(!te||te(Ie))&&(oe.cancel(),X.push(Ie),j.delete(Ie))}),X}function Ce(te,X,oe){if(p=te,v=X,y=oe||null,!b&&$.navigation===pS){b=!0;let Ie=et($.location,$.matches);Ie!=null&&Q({restoreScrollPosition:Ie})}return()=>{p=null,v=null,y=null}}function Qe(te,X){return y&&y(te,X.map(Ie=>ure(Ie,$.loaderData)))||te.key}function Ct(te,X){if(p&&v){let oe=Qe(te,X);p[oe]=v()}}function et(te,X){if(p){let oe=Qe(te,X),Ie=p[oe];if(typeof Ie=="number")return Ie}return null}function Be(te){i={},s=g_(te,o,void 0,i)}return S={get basename(){return l},get state(){return $},get routes(){return a},initialize:Z,subscribe:se,enableScrollRestoration:Ce,navigate:re,fetch:ie,revalidate:ge,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:de,deleteFetcher:Le,dispose:Y,getBlocker:pe,deleteBlocker:ye,_internalFetchControllers:z,_internalActiveDeferreds:j,_internalSetRoutes:Be},S}function Dre(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function v_(e,t,n,r,o,i,a){let s,l;if(i!=null&&a!=="path"){s=[];for(let c of t)if(s.push(c),c.route.id===i){l=c;break}}else s=t,l=t[t.length-1];let u=eM(o||".",Vb(s).map(c=>c.pathnameBase),Lp(e.pathname,n)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!nM(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:tl([n,u.pathname])),Dc(u)}function pO(e,t,n,r){if(!r||!Dre(r))return{path:n};if(r.formMethod&&!Vre(r.formMethod))return{path:n,error:Li(405,{method:r.formMethod})};let o=()=>({path:n,error:Li(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=V7(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ba(a))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,v)=>{let[b,C]=v;return""+y+b+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ba(a))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}Kt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=y_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=y_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=vO(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=vO(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ba(c.formMethod))return{path:n,submission:c};let f=ys(n);return t&&f.search&&nM(f.search)&&l.append("index",""),f.search="?"+l,{path:Dc(f),submission:c}}function jre(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function hO(e,t,n,r,o,i,a,s,l,u,c,f,p,y){let v=y?Object.values(y)[0]:p?Object.values(p)[0]:void 0,b=e.createURL(t.location),C=e.createURL(o),x=y?Object.keys(y)[0]:void 0,S=jre(n,x).filter((T,k)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(Nre(t.loaderData,t.matches[k],T)||a.some(N=>N===T.route.id))return!0;let M=t.matches[k],I=T;return mO(T,ar({currentUrl:b,currentParams:M.params,nextUrl:C,nextParams:I.params},r,{actionResult:v,defaultShouldRevalidate:i||b.pathname+b.search===C.pathname+C.search||b.search!==C.search||W7(M,I)}))}),$=[];return l.forEach((T,k)=>{if(!n.some(A=>A.route.id===T.routeId))return;let M=_f(c,T.path,f);if(!M){$.push({key:k,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(k),N=b_(M,T.path),E=!1;u.has(k)?E=!1:s.includes(k)?E=!0:I&&I.state!=="idle"&&I.data===void 0?E=i:E=mO(N,ar({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:i})),E&&$.push({key:k,routeId:T.routeId,path:T.path,matches:M,match:N,controller:new AbortController})}),[S,$]}function Nre(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function W7(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function mO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function gO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Kt(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Lc(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!sre.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,ar({},t(o),{lazy:void 0}))}async function Ih(e,t,n,r,o,i,a,s){s===void 0&&(s={});let l,u,c,f=v=>{let b,C=new Promise((x,w)=>b=w);return c=()=>b(),t.signal.addEventListener("abort",c),Promise.race([v({request:t,params:n.params,context:s.requestContext}),C])};try{let v=n.route[e];if(n.route.lazy)if(v){let b,C=await Promise.all([f(v).catch(x=>{b=x}),gO(n.route,i,o)]);if(b)throw b;u=C[0]}else if(await gO(n.route,i,o),v=n.route[e],v)u=await f(v);else if(e==="action"){let b=new URL(t.url),C=b.pathname+b.search;throw Li(405,{method:t.method,pathname:C,routeId:n.route.id})}else return{type:br.data,data:void 0};else if(v)u=await f(v);else{let b=new URL(t.url),C=b.pathname+b.search;throw Li(404,{pathname:C})}Kt(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){l=br.error,u=v}finally{c&&t.signal.removeEventListener("abort",c)}if(Wre(u)){let v=u.status;if(Rre.has(v)){let x=u.headers.get("Location");if(Kt(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!H7.test(x))x=v_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,x);else if(!s.isStaticRequest){let w=new URL(t.url),S=x.startsWith("//")?new URL(w.protocol+x):new URL(x),$=Lp(S.pathname,a)!=null;S.origin===w.origin&&$&&(x=S.pathname+S.search+S.hash)}if(s.isStaticRequest)throw u.headers.set("Location",x),u;return{type:br.redirect,status:v,location:x,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===br.error?br.error:br.data,response:u};let b,C=u.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?b=await u.json():b=await u.text(),l===br.error?{type:l,error:new tM(v,u.statusText,b),headers:u.headers}:{type:br.data,data:b,statusCode:u.status,headers:u.headers}}if(l===br.error)return{type:l,error:u};if(Hre(u)){var p,y;return{type:br.deferred,deferredData:u,statusCode:(p=u.init)==null?void 0:p.status,headers:((y=u.init)==null?void 0:y.headers)&&new Headers(u.init.headers)}}return{type:br.data,data:u}}function Rh(e,t,n,r){let o=e.createURL(V7(t)).toString(),i={signal:n};if(r&&ba(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=y_(r.formData):i.body=r.formData}return new Request(o,i)}function y_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function vO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function zre(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,f)=>{let p=t[f].route.id;if(Kt(!Nf(c),"Cannot handle redirect results in processLoaderData"),bm(c)){let y=kf(e,p),v=c.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[y.route.id]==null&&(a[y.route.id]=v),i[p]=void 0,l||(l=!0,s=z7(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else ic(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function yO(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=zre(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function xO(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Li(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new tM(e||500,a,new Error(s),!0)}function wO(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Nf(n))return{result:n,idx:t}}}function V7(e){let t=typeof e=="string"?ys(e):e;return Dc(ar({},t,{hash:""}))}function Bre(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ic(e){return e.type===br.deferred}function bm(e){return e.type===br.error}function Nf(e){return(e&&e.type)===br.redirect}function Hre(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Wre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Vre(e){return Ire.has(e.toLowerCase())}function ba(e){return Tre.has(e.toLowerCase())}async function CO(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!W7(u,l)&&(i&&i[l.route.id])!==void 0;if(ic(s)&&(o||c)){let f=r[a];Kt(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await U7(s,f,o).then(p=>{p&&(n[a]=p||n[a])})}}}async function U7(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:br.data,data:e.deferredData.unwrappedData}}catch(o){return{type:br.error,error:o}}return{type:br.data,data:e.deferredData.data}}}function nM(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function b_(e,t){let n=typeof t=="string"?ys(t).search:t.search;if(e[e.length-1].route.index&&nM(n||""))return e[e.length-1];let r=Vb(e);return r[r.length-1]}function SO(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function hS(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ure(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Oh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Gre(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function lf(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** + */function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ore(){return Math.random().toString(36).substr(2,8)}function cO(e,t){return{usr:e.state,key:e.key,idx:t}}function Qm(e,t,n,r){return n===void 0&&(n=null),ar({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ys(t):t,{state:n,key:t&&t.key||r||ore()})}function Lc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ys(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ire(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=wr.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(ar({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=wr.Pop;let C=c(),x=C==null?null:C-u;u=C,l&&l({action:s,location:b.location,delta:x})}function p(C,x){s=wr.Push;let w=Qm(b.location,C,x);n&&n(w,C),u=c()+1;let S=cO(w,u),$=b.createHref(w);try{a.pushState(S,"",$)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign($)}i&&l&&l({action:s,location:b.location,delta:1})}function y(C,x){s=wr.Replace;let w=Qm(b.location,C,x);n&&n(w,C),u=c();let S=cO(w,u),$=b.createHref(w);a.replaceState(S,"",$),i&&l&&l({action:s,location:b.location,delta:0})}function v(C){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof C=="string"?C:Lc(C);return Kt(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let b={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(uO,f),l=C,()=>{o.removeEventListener(uO,f),l=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let x=v(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:y,go(C){return a.go(C)}};return b}var br;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(br||(br={}));const are=new Set(["lazy","caseSensitive","path","id","index","children"]);function sre(e){return e.index===!0}function m_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(Kt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Kt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),sre(o)){let l=ar({},o,t(o),{id:s});return r[s]=l,l}else{let l=ar({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=m_(o.children,t,a,r)),l}})}function $f(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ys(t):t,o=Fp(r.pathname||"/",n);if(o==null)return null;let i=L7(e);ure(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Kt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=el([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Kt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),L7(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:gre(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of D7(i.path))o(i,a,l)}),t}function D7(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=D7(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function ure(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cre=/^:\w+$/,dre=3,fre=2,pre=1,hre=10,mre=-2,dO=e=>e==="*";function gre(e,t){let n=e.split("/"),r=n.length;return n.some(dO)&&(r+=mre),t&&(r+=fre),n.filter(o=>!dO(o)).reduce((o,i)=>o+(cre.test(i)?dre:i===""?pre:hre),r)}function vre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yre(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=Cre(s[f]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function xre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function wre(e){try{return decodeURI(e)}catch(t){return Fc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Cre(e,t){try{return decodeURIComponent(e)}catch(n){return Fc(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Fp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Sre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ys(e):e;return{pathname:n?n.startsWith("/")?n:$re(n,t):t,search:kre(r),hash:Pre(o)}}function $re(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function dS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Wb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JP(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ys(e):(o=ar({},e),Kt(!o.pathname||!o.pathname.includes("?"),dS("?","pathname","search",o)),Kt(!o.pathname||!o.pathname.includes("#"),dS("#","pathname","hash",o)),Kt(!o.search||!o.search.includes("#"),dS("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=Sre(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const el=e=>e.join("/").replace(/\/\/+/g,"/"),_re=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class eM{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function j7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const N7=["post","put","patch","delete"],Mre=new Set(N7),Tre=["get",...N7],Ere=new Set(Tre),Ire=new Set([301,302,303,307,308]),Rre=new Set([307,308]),fS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ore={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Th={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},z7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Are=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Fre(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Kt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let te=e.detectErrorBoundary;o=X=>({hasErrorBoundary:te(X)})}else o=Are;let i={},a=m_(e.routes,o,void 0,i),s,l=e.basename||"/",u=ar({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,p=null,y=null,v=null,b=e.hydrationData!=null,C=$f(a,e.history.location,l),x=null;if(C==null){let te=Li(404,{pathname:e.history.location.pathname}),{matches:X,route:oe}=bO(a);C=X,x={[oe.id]:te}}let w=!C.some(te=>te.route.lazy)&&(!C.some(te=>te.route.loader)||e.hydrationData!=null),S,$={historyAction:e.history.action,location:e.history.location,matches:C,initialized:w,navigation:fS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},T=wr.Pop,k=!1,M,I=!1,N=!1,E=[],A=[],z=new Map,L=0,O=-1,D=new Map,H=new Set,B=new Map,j=new Map,W=new Map,U=!1;function Z(){return c=e.history.listen(te=>{let{action:X,location:oe,delta:Ie}=te;if(U){U=!1;return}Fc(W.size===0||Ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ve=Ae({currentLocation:$.location,nextLocation:oe,historyAction:X});if(Ve&&Ie!=null){U=!0,e.history.go(Ie*-1),De(Ve,{state:"blocked",location:oe,proceed(){De(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(Ie)},reset(){let Ke=new Map($.blockers);Ke.set(Ve,Th),Q({blockers:Ke})}});return}return xe(X,oe)}),$.initialized||xe(wr.Pop,$.location),S}function Y(){c&&c(),f.clear(),M&&M.abort(),$.fetchers.forEach((te,X)=>Le(X)),$.blockers.forEach((te,X)=>ye(X))}function se(te){return f.add(te),()=>f.delete(te)}function Q(te){$=ar({},$,te),f.forEach(X=>X($))}function ne(te,X){var oe,Ie;let Ve=$.actionData!=null&&$.navigation.formMethod!=null&&ya($.navigation.formMethod)&&$.navigation.state==="loading"&&((oe=te.state)==null?void 0:oe._isRedirect)!==!0,Ke;X.actionData?Object.keys(X.actionData).length>0?Ke=X.actionData:Ke=null:Ve?Ke=$.actionData:Ke=null;let at=X.loaderData?yO($.loaderData,X.loaderData,X.matches||[],X.errors):$.loaderData,Je=$.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((_t,ht)=>Je.set(ht,Th)));let nt=k===!0||$.navigation.formMethod!=null&&ya($.navigation.formMethod)&&((Ie=te.state)==null?void 0:Ie._isRedirect)!==!0;s&&(a=s,s=void 0),I||T===wr.Pop||(T===wr.Push?e.history.push(te,te.state):T===wr.Replace&&e.history.replace(te,te.state)),Q(ar({},X,{actionData:Ke,loaderData:at,historyAction:T,location:te,initialized:!0,navigation:fS,revalidation:"idle",restoreScrollPosition:et(te,X.matches||$.matches),preventScrollReset:nt,blockers:Je})),T=wr.Pop,k=!1,I=!1,N=!1,E=[],A=[]}async function re(te,X){if(typeof te=="number"){e.history.go(te);return}let oe=g_($.location,$.matches,l,u.v7_prependBasename,te,X==null?void 0:X.fromRouteId,X==null?void 0:X.relative),{path:Ie,submission:Ve,error:Ke}=fO(u.v7_normalizeFormMethod,!1,oe,X),at=$.location,Je=Qm($.location,Ie,X&&X.state);Je=ar({},Je,e.history.encodeLocation(Je));let nt=X&&X.replace!=null?X.replace:void 0,_t=wr.Push;nt===!0?_t=wr.Replace:nt===!1||Ve!=null&&ya(Ve.formMethod)&&Ve.formAction===$.location.pathname+$.location.search&&(_t=wr.Replace);let ht=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,lt=Ae({currentLocation:at,nextLocation:Je,historyAction:_t});if(lt){De(lt,{state:"blocked",location:Je,proceed(){De(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),re(te,X)},reset(){let Rt=new Map($.blockers);Rt.set(lt,Th),Q({blockers:Rt})}});return}return await xe(_t,Je,{submission:Ve,pendingError:Ke,preventScrollReset:ht,replace:X&&X.replace})}function ge(){if(ce(),Q({revalidation:"loading"}),$.navigation.state!=="submitting"){if($.navigation.state==="idle"){xe($.historyAction,$.location,{startUninterruptedRevalidation:!0});return}xe(T||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation})}}async function xe(te,X,oe){M&&M.abort(),M=null,T=te,I=(oe&&oe.startUninterruptedRevalidation)===!0,Ct($.location,$.matches),k=(oe&&oe.preventScrollReset)===!0;let Ie=s||a,Ve=oe&&oe.overrideNavigation,Ke=$f(Ie,X,l);if(!Ke){let Rt=Li(404,{pathname:X.pathname}),{matches:jt,route:dn}=bO(Ie);Ee(),ne(X,{matches:jt,loaderData:{},errors:{[dn.id]:Rt}});return}if($.initialized&&!N&&zre($.location,X)&&!(oe&&oe.submission&&ya(oe.submission.formMethod))){ne(X,{matches:Ke});return}M=new AbortController;let at=Ih(e.history,X,M.signal,oe&&oe.submission),Je,nt;if(oe&&oe.pendingError)nt={[_f(Ke).route.id]:oe.pendingError};else if(oe&&oe.submission&&ya(oe.submission.formMethod)){let Rt=await fe(at,X,oe.submission,Ke,{replace:oe.replace});if(Rt.shortCircuited)return;Je=Rt.pendingActionData,nt=Rt.pendingActionError,Ve=pS(X,oe.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:_t,loaderData:ht,errors:lt}=await Se(at,X,Ke,Ve,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Je,nt);_t||(M=null,ne(X,ar({matches:Ke},Je?{actionData:Je}:{},{loaderData:ht,errors:lt})))}async function fe(te,X,oe,Ie,Ve){Ve===void 0&&(Ve={}),ce();let Ke=Vre(X,oe);Q({navigation:Ke});let at,Je=y_(Ie,X);if(!Je.route.action&&!Je.route.lazy)at={type:br.error,error:Li(405,{method:te.method,pathname:X.pathname,routeId:Je.route.id})};else if(at=await Eh("action",te,Je,Ie,i,o,l),te.signal.aborted)return{shortCircuited:!0};if(jf(at)){let nt;return Ve&&Ve.replace!=null?nt=Ve.replace:nt=at.location===$.location.pathname+$.location.search,await me($,at,{submission:oe,replace:nt}),{shortCircuited:!0}}if(ym(at)){let nt=_f(Ie,Je.route.id);return(Ve&&Ve.replace)!==!0&&(T=wr.Push),{pendingActionData:{},pendingActionError:{[nt.route.id]:at.error}}}if(oc(at))throw Li(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:at.data}}}async function Se(te,X,oe,Ie,Ve,Ke,at,Je,nt){let _t=Ie||pS(X,Ve),ht=Ve||Ke||CO(_t),lt=s||a,[Rt,jt]=pO(e.history,$,oe,ht,X,N,E,A,B,H,lt,l,Je,nt);if(Ee(tt=>!(oe&&oe.some(Ut=>Ut.route.id===tt))||Rt&&Rt.some(Ut=>Ut.route.id===tt)),O=++L,Rt.length===0&&jt.length===0){let tt=K();return ne(X,ar({matches:oe,loaderData:{},errors:nt||null},Je?{actionData:Je}:{},tt?{fetchers:new Map($.fetchers)}:{})),{shortCircuited:!0}}if(!I){jt.forEach(Ut=>{let _e=$.fetchers.get(Ut.key),we=Rh(void 0,_e?_e.data:void 0);$.fetchers.set(Ut.key,we)});let tt=Je||$.actionData;Q(ar({navigation:_t},tt?Object.keys(tt).length===0?{actionData:null}:{actionData:tt}:{},jt.length>0?{fetchers:new Map($.fetchers)}:{}))}jt.forEach(tt=>{z.has(tt.key)&&Re(tt.key),tt.controller&&z.set(tt.key,tt.controller)});let dn=()=>jt.forEach(tt=>Re(tt.key));M&&M.signal.addEventListener("abort",dn);let{results:hn,loaderResults:Pt,fetcherResults:zt}=await ue($.matches,oe,Rt,jt,te);if(te.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",dn),jt.forEach(tt=>z.delete(tt.key));let un=xO(hn);if(un){if(un.idx>=Rt.length){let tt=jt[un.idx-Rt.length].key;H.add(tt)}return await me($,un.result,{replace:at}),{shortCircuited:!0}}let{loaderData:cn,errors:ut}=vO($,oe,Rt,Pt,nt,jt,zt,j);j.forEach((tt,Ut)=>{tt.subscribe(_e=>{(_e||tt.done)&&j.delete(Ut)})});let mt=K(),Ot=ee(O),At=mt||Ot||jt.length>0;return ar({loaderData:cn,errors:ut},At?{fetchers:new Map($.fetchers)}:{})}function de(te){return $.fetchers.get(te)||Ore}function ie(te,X,oe,Ie){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(te)&&Re(te);let Ve=s||a,Ke=g_($.location,$.matches,l,u.v7_prependBasename,oe,X,Ie==null?void 0:Ie.relative),at=$f(Ve,Ke,l);if(!at){Te(te,X,Li(404,{pathname:Ke}));return}let{path:Je,submission:nt,error:_t}=fO(u.v7_normalizeFormMethod,!0,Ke,Ie);if(_t){Te(te,X,_t);return}let ht=y_(at,Je);if(k=(Ie&&Ie.preventScrollReset)===!0,nt&&ya(nt.formMethod)){Pe(te,X,Je,ht,at,nt);return}B.set(te,{routeId:X,path:Je}),$e(te,X,Je,ht,at,nt)}async function Pe(te,X,oe,Ie,Ve,Ke){if(ce(),B.delete(te),!Ie.route.action&&!Ie.route.lazy){let Fe=Li(405,{method:Ke.formMethod,pathname:oe,routeId:X});Te(te,X,Fe);return}let at=$.fetchers.get(te),Je=Ure(Ke,at);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Ih(e.history,oe,nt.signal,Ke);z.set(te,nt);let ht=L,lt=await Eh("action",_t,Ie,Ve,i,o,l);if(_t.signal.aborted){z.get(te)===nt&&z.delete(te);return}if(jf(lt))if(z.delete(te),O>ht){let Fe=sf(void 0);$.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)});return}else{H.add(te);let Fe=Rh(Ke);return $.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)}),me($,lt,{fetcherSubmission:Ke})}if(ym(lt)){Te(te,X,lt.error);return}if(oc(lt))throw Li(400,{type:"defer-action"});let Rt=$.navigation.location||$.location,jt=Ih(e.history,Rt,nt.signal),dn=s||a,hn=$.navigation.state!=="idle"?$f(dn,$.navigation.location,l):$.matches;Kt(hn,"Didn't find any matches after fetcher action");let Pt=++L;D.set(te,Pt);let zt=Rh(Ke,lt.data);$.fetchers.set(te,zt);let[un,cn]=pO(e.history,$,hn,Ke,Rt,N,E,A,B,H,dn,l,{[Ie.route.id]:lt.data},void 0);cn.filter(Fe=>Fe.key!==te).forEach(Fe=>{let rt=Fe.key,Tt=$.fetchers.get(rt),en=Rh(void 0,Tt?Tt.data:void 0);$.fetchers.set(rt,en),z.has(rt)&&Re(rt),Fe.controller&&z.set(rt,Fe.controller)}),Q({fetchers:new Map($.fetchers)});let ut=()=>cn.forEach(Fe=>Re(Fe.key));nt.signal.addEventListener("abort",ut);let{results:mt,loaderResults:Ot,fetcherResults:At}=await ue($.matches,hn,un,cn,jt);if(nt.signal.aborted)return;nt.signal.removeEventListener("abort",ut),D.delete(te),z.delete(te),cn.forEach(Fe=>z.delete(Fe.key));let tt=xO(mt);if(tt){if(tt.idx>=un.length){let Fe=cn[tt.idx-un.length].key;H.add(Fe)}return me($,tt.result)}let{loaderData:Ut,errors:_e}=vO($,$.matches,un,Ot,void 0,cn,At,j);if($.fetchers.has(te)){let Fe=sf(lt.data);$.fetchers.set(te,Fe)}let we=ee(Pt);$.navigation.state==="loading"&&Pt>O?(Kt(T,"Expected pending action"),M&&M.abort(),ne($.navigation.location,{matches:hn,loaderData:Ut,errors:_e,fetchers:new Map($.fetchers)})):(Q(ar({errors:_e,loaderData:yO($.loaderData,Ut,hn,_e)},we||cn.length>0?{fetchers:new Map($.fetchers)}:{})),N=!1)}async function $e(te,X,oe,Ie,Ve,Ke){let at=$.fetchers.get(te),Je=Rh(Ke,at?at.data:void 0);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Ih(e.history,oe,nt.signal);z.set(te,nt);let ht=L,lt=await Eh("loader",_t,Ie,Ve,i,o,l);if(oc(lt)&&(lt=await W7(lt,_t.signal,!0)||lt),z.get(te)===nt&&z.delete(te),_t.signal.aborted)return;if(jf(lt))if(O>ht){let jt=sf(void 0);$.fetchers.set(te,jt),Q({fetchers:new Map($.fetchers)});return}else{H.add(te),await me($,lt);return}if(ym(lt)){let jt=_f($.matches,X);$.fetchers.delete(te),Q({fetchers:new Map($.fetchers),errors:{[jt.route.id]:lt.error}});return}Kt(!oc(lt),"Unhandled fetcher deferred data");let Rt=sf(lt.data);$.fetchers.set(te,Rt),Q({fetchers:new Map($.fetchers)})}async function me(te,X,oe){let{submission:Ie,fetcherSubmission:Ve,replace:Ke}=oe===void 0?{}:oe;X.revalidate&&(N=!0);let at=Qm(te.location,X.location,{_isRedirect:!0});if(Kt(at,"Expected a location on the redirect navigation"),n){let Rt=!1;if(X.reloadDocument)Rt=!0;else if(z7.test(X.location)){const jt=e.history.createURL(X.location);Rt=jt.origin!==t.location.origin||Fp(jt.pathname,l)==null}if(Rt){Ke?t.location.replace(X.location):t.location.assign(X.location);return}}M=null;let Je=Ke===!0?wr.Replace:wr.Push,{formMethod:nt,formAction:_t,formEncType:ht}=te.navigation;!Ie&&!Ve&&nt&&_t&&ht&&(Ie=CO(te.navigation));let lt=Ie||Ve;if(Rre.has(X.status)&<&&ya(lt.formMethod))await xe(Je,at,{submission:ar({},lt,{formAction:X.location}),preventScrollReset:k});else{let Rt=pS(at,Ie);await xe(Je,at,{overrideNavigation:Rt,fetcherSubmission:Ve,preventScrollReset:k})}}async function ue(te,X,oe,Ie,Ve){let Ke=await Promise.all([...oe.map(nt=>Eh("loader",Ve,nt,X,i,o,l)),...Ie.map(nt=>nt.matches&&nt.match&&nt.controller?Eh("loader",Ih(e.history,nt.path,nt.controller.signal),nt.match,nt.matches,i,o,l):{type:br.error,error:Li(404,{pathname:nt.path})})]),at=Ke.slice(0,oe.length),Je=Ke.slice(oe.length);return await Promise.all([wO(te,oe,at,at.map(()=>Ve.signal),!1,$.loaderData),wO(te,Ie.map(nt=>nt.match),Je,Ie.map(nt=>nt.controller?nt.controller.signal:null),!0)]),{results:Ke,loaderResults:at,fetcherResults:Je}}function ce(){N=!0,E.push(...Ee()),B.forEach((te,X)=>{z.has(X)&&(A.push(X),Re(X))})}function Te(te,X,oe){let Ie=_f($.matches,X);Le(te),Q({errors:{[Ie.route.id]:oe},fetchers:new Map($.fetchers)})}function Le(te){let X=$.fetchers.get(te);z.has(te)&&!(X&&X.state==="loading"&&D.has(te))&&Re(te),B.delete(te),D.delete(te),H.delete(te),$.fetchers.delete(te)}function Re(te){let X=z.get(te);Kt(X,"Expected fetch controller: "+te),X.abort(),z.delete(te)}function Oe(te){for(let X of te){let oe=de(X),Ie=sf(oe.data);$.fetchers.set(X,Ie)}}function K(){let te=[],X=!1;for(let oe of H){let Ie=$.fetchers.get(oe);Kt(Ie,"Expected fetcher: "+oe),Ie.state==="loading"&&(H.delete(oe),te.push(oe),X=!0)}return Oe(te),X}function ee(te){let X=[];for(let[oe,Ie]of D)if(Ie0}function pe(te,X){let oe=$.blockers.get(te)||Th;return W.get(te)!==X&&W.set(te,X),oe}function ye(te){$.blockers.delete(te),W.delete(te)}function De(te,X){let oe=$.blockers.get(te)||Th;Kt(oe.state==="unblocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="proceeding"||oe.state==="blocked"&&X.state==="unblocked"||oe.state==="proceeding"&&X.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+X.state);let Ie=new Map($.blockers);Ie.set(te,X),Q({blockers:Ie})}function Ae(te){let{currentLocation:X,nextLocation:oe,historyAction:Ie}=te;if(W.size===0)return;W.size>1&&Fc(!1,"A router only supports one blocker at a time");let Ve=Array.from(W.entries()),[Ke,at]=Ve[Ve.length-1],Je=$.blockers.get(Ke);if(!(Je&&Je.state==="proceeding")&&at({currentLocation:X,nextLocation:oe,historyAction:Ie}))return Ke}function Ee(te){let X=[];return j.forEach((oe,Ie)=>{(!te||te(Ie))&&(oe.cancel(),X.push(Ie),j.delete(Ie))}),X}function Ce(te,X,oe){if(p=te,v=X,y=oe||null,!b&&$.navigation===fS){b=!0;let Ie=et($.location,$.matches);Ie!=null&&Q({restoreScrollPosition:Ie})}return()=>{p=null,v=null,y=null}}function Qe(te,X){return y&&y(te,X.map(Ie=>lre(Ie,$.loaderData)))||te.key}function Ct(te,X){if(p&&v){let oe=Qe(te,X);p[oe]=v()}}function et(te,X){if(p){let oe=Qe(te,X),Ie=p[oe];if(typeof Ie=="number")return Ie}return null}function Be(te){i={},s=m_(te,o,void 0,i)}return S={get basename(){return l},get state(){return $},get routes(){return a},initialize:Z,subscribe:se,enableScrollRestoration:Ce,navigate:re,fetch:ie,revalidate:ge,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:de,deleteFetcher:Le,dispose:Y,getBlocker:pe,deleteBlocker:ye,_internalFetchControllers:z,_internalActiveDeferreds:j,_internalSetRoutes:Be},S}function Lre(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function g_(e,t,n,r,o,i,a){let s,l;if(i!=null&&a!=="path"){s=[];for(let c of t)if(s.push(c),c.route.id===i){l=c;break}}else s=t,l=t[t.length-1];let u=JP(o||".",Wb(s).map(c=>c.pathnameBase),Fp(e.pathname,n)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!tM(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:el([n,u.pathname])),Lc(u)}function fO(e,t,n,r){if(!r||!Lre(r))return{path:n};if(r.formMethod&&!Wre(r.formMethod))return{path:n,error:Li(405,{method:r.formMethod})};let o=()=>({path:n,error:Li(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=H7(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ya(a))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,v)=>{let[b,C]=v;return""+y+b+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ya(a))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}Kt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=v_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=v_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=gO(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=gO(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ya(c.formMethod))return{path:n,submission:c};let f=ys(n);return t&&f.search&&tM(f.search)&&l.append("index",""),f.search="?"+l,{path:Lc(f),submission:c}}function Dre(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function pO(e,t,n,r,o,i,a,s,l,u,c,f,p,y){let v=y?Object.values(y)[0]:p?Object.values(p)[0]:void 0,b=e.createURL(t.location),C=e.createURL(o),x=y?Object.keys(y)[0]:void 0,S=Dre(n,x).filter((T,k)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(jre(t.loaderData,t.matches[k],T)||a.some(N=>N===T.route.id))return!0;let M=t.matches[k],I=T;return hO(T,ar({currentUrl:b,currentParams:M.params,nextUrl:C,nextParams:I.params},r,{actionResult:v,defaultShouldRevalidate:i||b.pathname+b.search===C.pathname+C.search||b.search!==C.search||B7(M,I)}))}),$=[];return l.forEach((T,k)=>{if(!n.some(A=>A.route.id===T.routeId))return;let M=$f(c,T.path,f);if(!M){$.push({key:k,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(k),N=y_(M,T.path),E=!1;u.has(k)?E=!1:s.includes(k)?E=!0:I&&I.state!=="idle"&&I.data===void 0?E=i:E=hO(N,ar({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:i})),E&&$.push({key:k,routeId:T.routeId,path:T.path,matches:M,match:N,controller:new AbortController})}),[S,$]}function jre(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function B7(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function hO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function mO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Kt(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Fc(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!are.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,ar({},t(o),{lazy:void 0}))}async function Eh(e,t,n,r,o,i,a,s){s===void 0&&(s={});let l,u,c,f=v=>{let b,C=new Promise((x,w)=>b=w);return c=()=>b(),t.signal.addEventListener("abort",c),Promise.race([v({request:t,params:n.params,context:s.requestContext}),C])};try{let v=n.route[e];if(n.route.lazy)if(v){let b,C=await Promise.all([f(v).catch(x=>{b=x}),mO(n.route,i,o)]);if(b)throw b;u=C[0]}else if(await mO(n.route,i,o),v=n.route[e],v)u=await f(v);else if(e==="action"){let b=new URL(t.url),C=b.pathname+b.search;throw Li(405,{method:t.method,pathname:C,routeId:n.route.id})}else return{type:br.data,data:void 0};else if(v)u=await f(v);else{let b=new URL(t.url),C=b.pathname+b.search;throw Li(404,{pathname:C})}Kt(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){l=br.error,u=v}finally{c&&t.signal.removeEventListener("abort",c)}if(Hre(u)){let v=u.status;if(Ire.has(v)){let x=u.headers.get("Location");if(Kt(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!z7.test(x))x=g_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,x);else if(!s.isStaticRequest){let w=new URL(t.url),S=x.startsWith("//")?new URL(w.protocol+x):new URL(x),$=Fp(S.pathname,a)!=null;S.origin===w.origin&&$&&(x=S.pathname+S.search+S.hash)}if(s.isStaticRequest)throw u.headers.set("Location",x),u;return{type:br.redirect,status:v,location:x,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===br.error?br.error:br.data,response:u};let b,C=u.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?b=await u.json():b=await u.text(),l===br.error?{type:l,error:new eM(v,u.statusText,b),headers:u.headers}:{type:br.data,data:b,statusCode:u.status,headers:u.headers}}if(l===br.error)return{type:l,error:u};if(Bre(u)){var p,y;return{type:br.deferred,deferredData:u,statusCode:(p=u.init)==null?void 0:p.status,headers:((y=u.init)==null?void 0:y.headers)&&new Headers(u.init.headers)}}return{type:br.data,data:u}}function Ih(e,t,n,r){let o=e.createURL(H7(t)).toString(),i={signal:n};if(r&&ya(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=v_(r.formData):i.body=r.formData}return new Request(o,i)}function v_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function gO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Nre(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,f)=>{let p=t[f].route.id;if(Kt(!jf(c),"Cannot handle redirect results in processLoaderData"),ym(c)){let y=_f(e,p),v=c.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[y.route.id]==null&&(a[y.route.id]=v),i[p]=void 0,l||(l=!0,s=j7(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else oc(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function vO(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=Nre(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function bO(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Li(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new eM(e||500,a,new Error(s),!0)}function xO(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(jf(n))return{result:n,idx:t}}}function H7(e){let t=typeof e=="string"?ys(e):e;return Lc(ar({},t,{hash:""}))}function zre(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function oc(e){return e.type===br.deferred}function ym(e){return e.type===br.error}function jf(e){return(e&&e.type)===br.redirect}function Bre(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Hre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Wre(e){return Ere.has(e.toLowerCase())}function ya(e){return Mre.has(e.toLowerCase())}async function wO(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!B7(u,l)&&(i&&i[l.route.id])!==void 0;if(oc(s)&&(o||c)){let f=r[a];Kt(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await W7(s,f,o).then(p=>{p&&(n[a]=p||n[a])})}}}async function W7(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:br.data,data:e.deferredData.unwrappedData}}catch(o){return{type:br.error,error:o}}return{type:br.data,data:e.deferredData.data}}}function tM(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function y_(e,t){let n=typeof t=="string"?ys(t).search:t.search;if(e[e.length-1].route.index&&tM(n||""))return e[e.length-1];let r=Wb(e);return r[r.length-1]}function CO(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function pS(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vre(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Rh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ure(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function sf(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** * React Router v6.16.0 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function my(){return my=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=m.useRef(!1);return q7(()=>{a.current=!0}),m.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=eM(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:tl([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const Xre=m.createContext(null);function Qre(e){let t=m.useContext(wu).outlet;return t&&m.createElement(Xre.Provider,{value:e},t)}function oM(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=m.useContext(wu),{pathname:o}=e0(),i=JSON.stringify(Vb(r).map(a=>a.pathnameBase));return m.useMemo(()=>eM(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Zre(e,t,n){Jg()||Kt(!1);let{navigator:r}=m.useContext(od),{matches:o}=m.useContext(wu),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=e0(),u;if(t){var c;let b=typeof t=="string"?ys(t):t;s==="/"||(c=b.pathname)!=null&&c.startsWith(s)||Kt(!1),u=b}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",y=_f(e,{pathname:p}),v=roe(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:tl([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:tl([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n);return t&&v?m.createElement(Gb.Provider,{value:{location:my({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:wr.Pop}},v):v}function Jre(){let e=soe(),t=z7(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,i)}const eoe=m.createElement(Jre,null);class toe extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?m.createElement(wu.Provider,{value:this.props.routeContext},m.createElement(G7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function noe(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(Ub);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(wu.Provider,{value:t},r)}function roe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||Kt(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,f=null;n&&(f=l.route.errorElement||eoe);let p=t.concat(i.slice(0,u+1)),y=()=>{let v;return c?v=f:l.route.Component?v=m.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,m.createElement(noe,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?m.createElement(toe,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:y(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):y()},null)}var K7=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(K7||{}),gy=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}(gy||{});function ooe(e){let t=m.useContext(Ub);return t||Kt(!1),t}function ioe(e){let t=m.useContext(rM);return t||Kt(!1),t}function aoe(e){let t=m.useContext(wu);return t||Kt(!1),t}function Y7(e){let t=aoe(),n=t.matches[t.matches.length-1];return n.route.id||Kt(!1),n.route.id}function soe(){var e;let t=m.useContext(G7),n=ioe(gy.UseRouteError),r=Y7(gy.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function loe(){let{router:e}=ooe(K7.UseNavigateStable),t=Y7(gy.UseNavigateStable),n=m.useRef(!1);return q7(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,my({fromRouteId:t},i)))},[e,t])}const uoe="startTransition",$O=Zf[uoe];function coe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=m.useState(n.state),{v7_startTransition:a}=r||{},s=m.useCallback(f=>{a&&$O?$O(()=>i(f)):i(f)},[i,a]);m.useLayoutEffect(()=>n.subscribe(s),[n,s]);let l=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,p,y)=>n.navigate(f,{state:p,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(f,p,y)=>n.navigate(f,{replace:!0,state:p,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[n]),u=n.basename||"/",c=m.useMemo(()=>({router:n,navigator:l,static:!1,basename:u}),[n,l,u]);return m.createElement(m.Fragment,null,m.createElement(Ub.Provider,{value:c},m.createElement(rM.Provider,{value:o},m.createElement(poe,{basename:u,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?m.createElement(doe,{routes:n.routes,state:o}):t))),null)}function doe(e){let{routes:t,state:n}=e;return Zre(t,void 0,n)}function foe(e){return Qre(e.context)}function ha(e){Kt(!1)}function poe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wr.Pop,navigator:i,static:a=!1}=e;Jg()&&Kt(!1);let s=t.replace(/^\/*/,"/"),l=m.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=ys(r));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:y="default"}=r,v=m.useMemo(()=>{let b=Lp(u,s);return b==null?null:{location:{pathname:b,search:c,hash:f,state:p,key:y},navigationType:o}},[s,u,c,f,p,y,o]);return v==null?null:m.createElement(od.Provider,{value:l},m.createElement(Gb.Provider,{children:n,value:v}))}new Promise(()=>{});function x_(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,x_(r.props.children,i));return}r.type!==ha&&Kt(!1),!r.props.index||!r.props.children||Kt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=x_(r.props.children,i)),n.push(a)}),n}function hoe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=m.useRef(!1);return U7(()=>{a.current=!0}),m.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=JP(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:el([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const Yre=m.createContext(null);function Xre(e){let t=m.useContext(xu).outlet;return t&&m.createElement(Yre.Provider,{value:e},t)}function rM(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=m.useContext(xu),{pathname:o}=Jg(),i=JSON.stringify(Wb(r).map(a=>a.pathnameBase));return m.useMemo(()=>JP(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Qre(e,t,n){Zg()||Kt(!1);let{navigator:r}=m.useContext(rd),{matches:o}=m.useContext(xu),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Jg(),u;if(t){var c;let b=typeof t=="string"?ys(t):t;s==="/"||(c=b.pathname)!=null&&c.startsWith(s)||Kt(!1),u=b}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",y=$f(e,{pathname:p}),v=noe(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:el([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:el([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n);return t&&v?m.createElement(Ub.Provider,{value:{location:hy({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:wr.Pop}},v):v}function Zre(){let e=aoe(),t=j7(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,i)}const Jre=m.createElement(Zre,null);class eoe extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?m.createElement(xu.Provider,{value:this.props.routeContext},m.createElement(V7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function toe(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(Vb);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(xu.Provider,{value:t},r)}function noe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||Kt(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,f=null;n&&(f=l.route.errorElement||Jre);let p=t.concat(i.slice(0,u+1)),y=()=>{let v;return c?v=f:l.route.Component?v=m.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,m.createElement(toe,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?m.createElement(eoe,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:y(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):y()},null)}var G7=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(G7||{}),my=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(my||{});function roe(e){let t=m.useContext(Vb);return t||Kt(!1),t}function ooe(e){let t=m.useContext(nM);return t||Kt(!1),t}function ioe(e){let t=m.useContext(xu);return t||Kt(!1),t}function q7(e){let t=ioe(),n=t.matches[t.matches.length-1];return n.route.id||Kt(!1),n.route.id}function aoe(){var e;let t=m.useContext(V7),n=ooe(my.UseRouteError),r=q7(my.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function soe(){let{router:e}=roe(G7.UseNavigateStable),t=q7(my.UseNavigateStable),n=m.useRef(!1);return U7(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,hy({fromRouteId:t},i)))},[e,t])}const loe="startTransition",SO=Qf[loe];function uoe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=m.useState(n.state),{v7_startTransition:a}=r||{},s=m.useCallback(f=>{a&&SO?SO(()=>i(f)):i(f)},[i,a]);m.useLayoutEffect(()=>n.subscribe(s),[n,s]);let l=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,p,y)=>n.navigate(f,{state:p,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(f,p,y)=>n.navigate(f,{replace:!0,state:p,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[n]),u=n.basename||"/",c=m.useMemo(()=>({router:n,navigator:l,static:!1,basename:u}),[n,l,u]);return m.createElement(m.Fragment,null,m.createElement(Vb.Provider,{value:c},m.createElement(nM.Provider,{value:o},m.createElement(foe,{basename:u,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?m.createElement(coe,{routes:n.routes,state:o}):t))),null)}function coe(e){let{routes:t,state:n}=e;return Qre(t,void 0,n)}function doe(e){return Xre(e.context)}function Na(e){Kt(!1)}function foe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wr.Pop,navigator:i,static:a=!1}=e;Zg()&&Kt(!1);let s=t.replace(/^\/*/,"/"),l=m.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=ys(r));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:y="default"}=r,v=m.useMemo(()=>{let b=Fp(u,s);return b==null?null:{location:{pathname:b,search:c,hash:f,state:p,key:y},navigationType:o}},[s,u,c,f,p,y,o]);return v==null?null:m.createElement(rd.Provider,{value:l},m.createElement(Ub.Provider,{children:n,value:v}))}new Promise(()=>{});function b_(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,b_(r.props.children,i));return}r.type!==Na&&Kt(!1),!r.props.index||!r.props.children||Kt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=b_(r.props.children,i)),n.push(a)}),n}function poe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.16.0 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ap(){return ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function moe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function goe(e,t){return e.button===0&&(!t||t==="_self")&&!moe(e)}const voe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],yoe=["aria-current","caseSensitive","className","end","style","to","children"];function boe(e,t){return Lre({basename:t==null?void 0:t.basename,future:ap({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:ore({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||xoe(),routes:e,mapRouteProperties:hoe}).initialize()}function xoe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ap({},t,{errors:woe(t.errors)})),t}function woe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new tM(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const Coe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Soe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$oe=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=X7(t,voe),{basename:p}=m.useContext(od),y,v=!1;if(typeof u=="string"&&Soe.test(u)&&(y=u,Coe))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),$=Lp(S.pathname,p);S.origin===w.origin&&$!=null?u=$+S.search+S.hash:v=!0}catch{}let b=qre(u,{relative:o}),C=_oe(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function x(w){r&&r(w),w.defaultPrevented||C(w)}return m.createElement("a",ap({},f,{href:y||b,onClick:v||i?r:x,ref:n,target:l}))}),kl=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,children:u}=t,c=X7(t,yoe),f=oM(l,{relative:c.relative}),p=e0(),y=m.useContext(rM),{navigator:v}=m.useContext(od),b=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,C=p.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(C=C.toLowerCase(),x=x?x.toLowerCase():null,b=b.toLowerCase());let w=C===b||!a&&C.startsWith(b)&&C.charAt(b.length)==="/",S=x!=null&&(x===b||!a&&x.startsWith(b)&&x.charAt(b.length)==="/"),$=w?r:void 0,T;typeof i=="function"?T=i({isActive:w,isPending:S}):T=[i,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof s=="function"?s({isActive:w,isPending:S}):s;return m.createElement($oe,ap({},c,{"aria-current":$,className:T,ref:n,style:k,to:l}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var _O;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(_O||(_O={}));var kO;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(kO||(kO={}));function _oe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=Kre(),l=e0(),u=oM(e,{relative:a});return m.useCallback(c=>{if(goe(c,n)){c.preventDefault();let f=r!==void 0?r:Dc(l)===Dc(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}function koe(e,t){return()=>null}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=Q7(e[n])}),t}function co(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return Gs(e)&&Gs(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gs(t[o])&&o in e&&Gs(e[o])?r[o]=co(e[o],t[o],n):n.clone?r[o]=Gs(t[o])?Q7(t[o]):t[o]:r[o]=t[o])}),r}var Z7={exports:{}},Poe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Moe=Poe,Toe=Moe;function J7(){}function ej(){}ej.resetWarningCache=J7;var Eoe=function(){function e(r,o,i,a,s,l){if(l!==Toe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ej,resetWarningCache:J7};return n.PropTypes=n,n};Z7.exports=Eoe();var Ioe=Z7.exports;const R=Or(Ioe);function cu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[o]=e[o]);return n}function hoe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function moe(e,t){return e.button===0&&(!t||t==="_self")&&!hoe(e)}const goe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],voe=["aria-current","caseSensitive","className","end","style","to","children"];function yoe(e,t){return Fre({basename:t==null?void 0:t.basename,future:ip({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:rre({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||boe(),routes:e,mapRouteProperties:poe}).initialize()}function boe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ip({},t,{errors:xoe(t.errors)})),t}function xoe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new eM(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const woe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Coe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Soe=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=K7(t,goe),{basename:p}=m.useContext(rd),y,v=!1;if(typeof u=="string"&&Coe.test(u)&&(y=u,woe))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),$=Fp(S.pathname,p);S.origin===w.origin&&$!=null?u=$+S.search+S.hash:v=!0}catch{}let b=Gre(u,{relative:o}),C=_oe(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function x(w){r&&r(w),w.defaultPrevented||C(w)}return m.createElement("a",ip({},f,{href:y||b,onClick:v||i?r:x,ref:n,target:l}))}),$oe=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,children:u}=t,c=K7(t,voe),f=rM(l,{relative:c.relative}),p=Jg(),y=m.useContext(nM),{navigator:v}=m.useContext(rd),b=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,C=p.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(C=C.toLowerCase(),x=x?x.toLowerCase():null,b=b.toLowerCase());let w=C===b||!a&&C.startsWith(b)&&C.charAt(b.length)==="/",S=x!=null&&(x===b||!a&&x.startsWith(b)&&x.charAt(b.length)==="/"),$=w?r:void 0,T;typeof i=="function"?T=i({isActive:w,isPending:S}):T=[i,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof s=="function"?s({isActive:w,isPending:S}):s;return m.createElement(Soe,ip({},c,{"aria-current":$,className:T,ref:n,style:k,to:l}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var $O;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})($O||($O={}));var _O;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_O||(_O={}));function _oe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=qre(),l=Jg(),u=rM(e,{relative:a});return m.useCallback(c=>{if(moe(c,n)){c.preventDefault();let f=r!==void 0?r:Lc(l)===Lc(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}function koe(e,t){return()=>null}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=Y7(e[n])}),t}function co(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return Us(e)&&Us(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Us(t[o])&&o in e&&Us(e[o])?r[o]=co(e[o],t[o],n):n.clone?r[o]=Us(t[o])?Y7(t[o]):t[o]:r[o]=t[o])}),r}var X7={exports:{}},Poe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Moe=Poe,Toe=Moe;function Q7(){}function Z7(){}Z7.resetWarningCache=Q7;var Eoe=function(){function e(r,o,i,a,s,l){if(l!==Toe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Z7,resetWarningCache:Q7};return n.PropTypes=n,n};X7.exports=Eoe();var Ioe=X7.exports;const R=Or(Ioe);function uu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Cu(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Aoe(e,t){return()=>null}function w1(e,t){var n,r;return m.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gn(e){return e&&e.ownerDocument||document}function ea(e){return Gn(e).defaultView||window}function Foe(e,t){return()=>null}function jc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Loe=typeof window<"u"?m.useLayoutEffect:m.useEffect,pn=Loe;let PO=0;function Doe(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(PO+=1,n(`mui-${PO}`))},[t]),r}const MO=Zf["useId".toString()];function ln(e){if(MO!==void 0){const t=MO();return e??t}return Doe(e)}function joe(e,t,n,r,o){return null}function ru({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,a]=m.useState(t),s=o?e:i,l=m.useCallback(u=>{o||a(u)},[]);return[s,l]}function Dn(e){const t=m.useRef(e);return pn(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}function on(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{jc(n,t)})},e)}let rx=!0,C_=!1,TO;const Noe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zoe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Noe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Boe(e){e.metaKey||e.altKey||e.ctrlKey||(rx=!0)}function mS(){rx=!1}function Hoe(){this.visibilityState==="hidden"&&C_&&(rx=!0)}function Woe(e){e.addEventListener("keydown",Boe,!0),e.addEventListener("mousedown",mS,!0),e.addEventListener("pointerdown",mS,!0),e.addEventListener("touchstart",mS,!0),e.addEventListener("visibilitychange",Hoe,!0)}function Voe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return rx||zoe(t)}function sM(){const e=m.useCallback(o=>{o!=null&&Woe(o.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(C_=!0,window.clearTimeout(TO),TO=window.setTimeout(()=>{C_=!1},100),t.current=!1,!0):!1}function r(o){return Voe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function nj(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Gd;function rj(){if(Gd)return Gd;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Gd="reverse",e.scrollLeft>0?Gd="default":(e.scrollLeft=1,e.scrollLeft===0&&(Gd="negative")),document.body.removeChild(e),Gd}function Uoe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(rj()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Goe=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current},lM=Goe;function uM(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]=uM(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ge(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const EO=e=>e,qoe=()=>{let e=EO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=EO}}},Koe=qoe(),cM=Koe,Yoe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yt(e,t,n="Mui"){const r=Yoe[t];return r?`${n}-${r}`:`${cM.generate(e)}-${t}`}function bt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=yt(e,o,n)}),r}const t0="$$material";function be(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function oj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xoe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qoe=oj(function(e){return Xoe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Zoe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Kr(Dp,--Xo):0,sp--,Cr===10&&(sp=1,ix--),Cr}function gi(){return Cr=Xo2||eg(Cr)>3?"":" "}function die(e,t){for(;--t&&gi()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return n0(e,C1()+(t<6&&ns()==32&&gi()==32))}function $_(e){for(;gi();)switch(Cr){case e:return Xo;case 34:case 39:e!==34&&e!==39&&$_(Cr);break;case 40:e===41&&$_(e);break;case 92:gi();break}return Xo}function fie(e,t){for(;gi()&&e+Cr!==47+10;)if(e+Cr===42+42&&ns()===47)break;return"/*"+n0(t,Xo-1)+"*"+ox(e===47?e:gi())}function pie(e){for(;!eg(ns());)gi();return n0(e,Xo)}function hie(e){return cj($1("",null,null,null,[""],e=uj(e),0,[0],e))}function $1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=gi()){case 40:if(v!=108&&Kr(M,f-1)==58){S_(M+=wn(S1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=S1(w);break;case 9:case 10:case 13:case 32:M+=cie(v);break;case 92:M+=die(C1()-1,7);continue;case 47:switch(ns()){case 42:case 47:Av(mie(fie(gi(),C1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Va(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:x==-1&&(M=wn(M,/\f/g,"")),y>0&&Va(M)-f&&Av(y>32?RO(M+";",r,n,f-1):RO(wn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Av(k=IO(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)$1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Kr(M,3)===110?100:p){case 100:case 108:case 109:case 115:$1(e,k,k,r&&Av(IO(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:$1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Va(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&uie()==125)continue}switch(M+=ox(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Va(M)-1)*x,x=1;break;case 64:ns()===45&&(M+=S1(gi())),p=ns(),c=f=Va(S=M+=pie(C1())),w++;break;case 45:v===45&&Va(M)==2&&(b=0)}}return i}function IO(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=pM(p),v=0,b=0,C=0;v0?p[x]+" "+w:wn(w,/&\f/g,p[x])))&&(l[C++]=S);return ax(e,t,n,o===0?dM:s,l,u,c)}function mie(e,t,n){return ax(e,t,n,ij,ox(lie()),Jm(e,2,-2),0)}function RO(e,t,n,r){return ax(e,t,n,fM,Jm(e,0,r),Jm(e,r+1,-1),r)}function zf(e,t){for(var n="",r=pM(e),o=0;o6)switch(Kr(e,t+1)){case 109:if(Kr(e,t+4)!==45)break;case 102:return wn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+vy+(Kr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~S_(e,"stretch")?dj(wn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kr(e,t+1)!==115)break;case 6444:switch(Kr(e,Va(e)-3-(~S_(e,"!important")&&10))){case 107:return wn(e,":",":"+bn)+e;case 101:return wn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(Kr(e,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+io+"$2box$3")+e}break;case 5936:switch(Kr(e,t+11)){case 114:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+io+e+e}return e}var $ie=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case fM:t.return=dj(t.value,t.length);break;case aj:return zf([Ah(t,{value:wn(t.value,"@","@"+bn)})],o);case dM:if(t.length)return sie(t.props,function(i){switch(aie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zf([Ah(t,{props:[wn(i,/:(read-\w+)/,":"+vy+"$1")]})],o);case"::placeholder":return zf([Ah(t,{props:[wn(i,/:(plac\w+)/,":"+bn+"input-$1")]}),Ah(t,{props:[wn(i,/:(plac\w+)/,":"+vy+"$1")]}),Ah(t,{props:[wn(i,/:(plac\w+)/,io+"input-$1")]})],o)}return""})}},_ie=[$ie],kie=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var C=b.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||_ie,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var C=b.getAttribute("data-emotion").split(" "),x=1;xn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function wu(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Aoe(e,t){return()=>null}function x1(e,t){var n,r;return m.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gn(e){return e&&e.ownerDocument||document}function ea(e){return Gn(e).defaultView||window}function Foe(e,t){return()=>null}function Dc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Loe=typeof window<"u"?m.useLayoutEffect:m.useEffect,pn=Loe;let kO=0;function Doe(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(kO+=1,n(`mui-${kO}`))},[t]),r}const PO=Qf["useId".toString()];function ln(e){if(PO!==void 0){const t=PO();return e??t}return Doe(e)}function joe(e,t,n,r,o){return null}function nu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,a]=m.useState(t),s=o?e:i,l=m.useCallback(u=>{o||a(u)},[]);return[s,l]}function Dn(e){const t=m.useRef(e);return pn(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}function on(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Dc(n,t)})},e)}let nx=!0,w_=!1,MO;const Noe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zoe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Noe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Boe(e){e.metaKey||e.altKey||e.ctrlKey||(nx=!0)}function hS(){nx=!1}function Hoe(){this.visibilityState==="hidden"&&w_&&(nx=!0)}function Woe(e){e.addEventListener("keydown",Boe,!0),e.addEventListener("mousedown",hS,!0),e.addEventListener("pointerdown",hS,!0),e.addEventListener("touchstart",hS,!0),e.addEventListener("visibilitychange",Hoe,!0)}function Voe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nx||zoe(t)}function aM(){const e=m.useCallback(o=>{o!=null&&Woe(o.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(w_=!0,window.clearTimeout(MO),MO=window.setTimeout(()=>{w_=!1},100),t.current=!1,!0):!1}function r(o){return Voe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ej(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Ud;function tj(){if(Ud)return Ud;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ud="reverse",e.scrollLeft>0?Ud="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ud="negative")),document.body.removeChild(e),Ud}function Uoe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(tj()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Goe=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current},sM=Goe;function lM(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=P({},i),Object.keys(o).forEach(a=>{n[r][a]=lM(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const TO=e=>e,qoe=()=>{let e=TO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=TO}}},Koe=qoe(),uM=Koe,Yoe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yt(e,t,n="Mui"){const r=Yoe[t];return r?`${n}-${r}`:`${uM.generate(e)}-${t}`}function bt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=yt(e,o,n)}),r}const e0="$$material";function be(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function nj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xoe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qoe=nj(function(e){return Xoe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Zoe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Kr(Lp,--Xo):0,ap--,Cr===10&&(ap=1,ox--),Cr}function gi(){return Cr=Xo2||Jm(Cr)>3?"":" "}function die(e,t){for(;--t&&gi()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return t0(e,w1()+(t<6&&ns()==32&&gi()==32))}function S_(e){for(;gi();)switch(Cr){case e:return Xo;case 34:case 39:e!==34&&e!==39&&S_(Cr);break;case 40:e===41&&S_(e);break;case 92:gi();break}return Xo}function fie(e,t){for(;gi()&&e+Cr!==47+10;)if(e+Cr===42+42&&ns()===47)break;return"/*"+t0(t,Xo-1)+"*"+rx(e===47?e:gi())}function pie(e){for(;!Jm(ns());)gi();return t0(e,Xo)}function hie(e){return lj(S1("",null,null,null,[""],e=sj(e),0,[0],e))}function S1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=gi()){case 40:if(v!=108&&Kr(M,f-1)==58){C_(M+=wn(C1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=C1(w);break;case 9:case 10:case 13:case 32:M+=cie(v);break;case 92:M+=die(w1()-1,7);continue;case 47:switch(ns()){case 42:case 47:Ov(mie(fie(gi(),w1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Va(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:x==-1&&(M=wn(M,/\f/g,"")),y>0&&Va(M)-f&&Ov(y>32?IO(M+";",r,n,f-1):IO(wn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Ov(k=EO(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)S1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Kr(M,3)===110?100:p){case 100:case 108:case 109:case 115:S1(e,k,k,r&&Ov(EO(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:S1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Va(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&uie()==125)continue}switch(M+=rx(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Va(M)-1)*x,x=1;break;case 64:ns()===45&&(M+=C1(gi())),p=ns(),c=f=Va(S=M+=pie(w1())),w++;break;case 45:v===45&&Va(M)==2&&(b=0)}}return i}function EO(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=fM(p),v=0,b=0,C=0;v0?p[x]+" "+w:wn(w,/&\f/g,p[x])))&&(l[C++]=S);return ix(e,t,n,o===0?cM:s,l,u,c)}function mie(e,t,n){return ix(e,t,n,rj,rx(lie()),Zm(e,2,-2),0)}function IO(e,t,n,r){return ix(e,t,n,dM,Zm(e,0,r),Zm(e,r+1,-1),r)}function Nf(e,t){for(var n="",r=fM(e),o=0;o6)switch(Kr(e,t+1)){case 109:if(Kr(e,t+4)!==45)break;case 102:return wn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+gy+(Kr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~C_(e,"stretch")?uj(wn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kr(e,t+1)!==115)break;case 6444:switch(Kr(e,Va(e)-3-(~C_(e,"!important")&&10))){case 107:return wn(e,":",":"+bn)+e;case 101:return wn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(Kr(e,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+io+"$2box$3")+e}break;case 5936:switch(Kr(e,t+11)){case 114:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+io+e+e}return e}var $ie=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case dM:t.return=uj(t.value,t.length);break;case oj:return Nf([Oh(t,{value:wn(t.value,"@","@"+bn)})],o);case cM:if(t.length)return sie(t.props,function(i){switch(aie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nf([Oh(t,{props:[wn(i,/:(read-\w+)/,":"+gy+"$1")]})],o);case"::placeholder":return Nf([Oh(t,{props:[wn(i,/:(plac\w+)/,":"+bn+"input-$1")]}),Oh(t,{props:[wn(i,/:(plac\w+)/,":"+gy+"$1")]}),Oh(t,{props:[wn(i,/:(plac\w+)/,io+"input-$1")]})],o)}return""})}},_ie=[$ie],kie=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var C=b.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||_ie,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var C=b.getAttribute("data-emotion").split(" "),x=1;x=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nie=/[A-Z]|^ms/g,zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yj=function(t){return t.charCodeAt(1)===45},FO=function(t){return t!=null&&typeof t!="boolean"},gS=oj(function(e){return yj(e)?e:e.replace(Nie,"-$&").toLowerCase()}),LO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zie,function(r,o,i){return Ua={name:o,styles:i,next:Ua},o})}return jie[t]!==1&&!yj(t)&&typeof n=="number"&&n!==0?n+"px":n};function tg(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ua={name:n.name,styles:n.styles,next:Ua},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ua={name:r.name,styles:r.styles,next:Ua},r=r.next;var o=n.styles+";";return o}return Bie(e,t,n)}case"function":{if(e!==void 0){var i=Ua,a=n(e);return Ua=i,tg(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Bie(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Kie:Yie},zO=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Xie=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return gj(n,r,o),Wie(function(){return vj(n,r,o)}),null},Qie=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=zO(t,n,r),l=s||NO(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;yt(Jie(o)?n:o):t;return g.jsx(qie,{styles:r})}/** + */var Br=typeof Symbol=="function"&&Symbol.for,pM=Br?Symbol.for("react.element"):60103,hM=Br?Symbol.for("react.portal"):60106,ax=Br?Symbol.for("react.fragment"):60107,sx=Br?Symbol.for("react.strict_mode"):60108,lx=Br?Symbol.for("react.profiler"):60114,ux=Br?Symbol.for("react.provider"):60109,cx=Br?Symbol.for("react.context"):60110,mM=Br?Symbol.for("react.async_mode"):60111,dx=Br?Symbol.for("react.concurrent_mode"):60111,fx=Br?Symbol.for("react.forward_ref"):60112,px=Br?Symbol.for("react.suspense"):60113,Pie=Br?Symbol.for("react.suspense_list"):60120,hx=Br?Symbol.for("react.memo"):60115,mx=Br?Symbol.for("react.lazy"):60116,Mie=Br?Symbol.for("react.block"):60121,Tie=Br?Symbol.for("react.fundamental"):60117,Eie=Br?Symbol.for("react.responder"):60118,Iie=Br?Symbol.for("react.scope"):60119;function $i(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case pM:switch(e=e.type,e){case mM:case dx:case ax:case lx:case sx:case px:return e;default:switch(e=e&&e.$$typeof,e){case cx:case fx:case mx:case hx:case ux:return e;default:return t}}case hM:return t}}}function dj(e){return $i(e)===dx}Rn.AsyncMode=mM;Rn.ConcurrentMode=dx;Rn.ContextConsumer=cx;Rn.ContextProvider=ux;Rn.Element=pM;Rn.ForwardRef=fx;Rn.Fragment=ax;Rn.Lazy=mx;Rn.Memo=hx;Rn.Portal=hM;Rn.Profiler=lx;Rn.StrictMode=sx;Rn.Suspense=px;Rn.isAsyncMode=function(e){return dj(e)||$i(e)===mM};Rn.isConcurrentMode=dj;Rn.isContextConsumer=function(e){return $i(e)===cx};Rn.isContextProvider=function(e){return $i(e)===ux};Rn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pM};Rn.isForwardRef=function(e){return $i(e)===fx};Rn.isFragment=function(e){return $i(e)===ax};Rn.isLazy=function(e){return $i(e)===mx};Rn.isMemo=function(e){return $i(e)===hx};Rn.isPortal=function(e){return $i(e)===hM};Rn.isProfiler=function(e){return $i(e)===lx};Rn.isStrictMode=function(e){return $i(e)===sx};Rn.isSuspense=function(e){return $i(e)===px};Rn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ax||e===dx||e===lx||e===sx||e===px||e===Pie||typeof e=="object"&&e!==null&&(e.$$typeof===mx||e.$$typeof===hx||e.$$typeof===ux||e.$$typeof===cx||e.$$typeof===fx||e.$$typeof===Tie||e.$$typeof===Eie||e.$$typeof===Iie||e.$$typeof===Mie)};Rn.typeOf=$i;cj.exports=Rn;var Rie=cj.exports,fj=Rie,Oie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Aie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pj={};pj[fj.ForwardRef]=Oie;pj[fj.Memo]=Aie;var Fie=!0;function Lie(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var hj=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Fie===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},mj=function(t,n,r){hj(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Die(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nie=/[A-Z]|^ms/g,zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gj=function(t){return t.charCodeAt(1)===45},AO=function(t){return t!=null&&typeof t!="boolean"},mS=nj(function(e){return gj(e)?e:e.replace(Nie,"-$&").toLowerCase()}),FO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zie,function(r,o,i){return Ua={name:o,styles:i,next:Ua},o})}return jie[t]!==1&&!gj(t)&&typeof n=="number"&&n!==0?n+"px":n};function eg(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ua={name:n.name,styles:n.styles,next:Ua},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ua={name:r.name,styles:r.styles,next:Ua},r=r.next;var o=n.styles+";";return o}return Bie(e,t,n)}case"function":{if(e!==void 0){var i=Ua,a=n(e);return Ua=i,eg(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Bie(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Kie:Yie},NO=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Xie=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return hj(n,r,o),Wie(function(){return mj(n,r,o)}),null},Qie=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=NO(t,n,r),l=s||jO(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;yt(Jie(o)?n:o):t;return g.jsx(qie,{styles:r})}/** * @mui/styled-engine v5.14.18 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function Cj(e,t){return __(e,t)}const tae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nae=["values","unit","step"],rae=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>P({},n,{[r.key]:r.val}),{})};function oae(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=be(e,nae),i=rae(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,y){const v=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:y)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${yM[e]}px)`};function Qo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||BO;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||BO;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||yM).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 Sj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function $j(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function sae(e,...t){const n=Sj(e),r=[n,...t].reduce((o,i)=>co(o,i),{});return $j(Object.keys(n),r)}function lae(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function gc({values:e,breakpoints:t,base:n}){const r=n||lae(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function vx(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 yy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vx(e,n)||r,t&&(o=t(o,r,e)),o}function $n(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=vx(l,r)||{};return Qo(a,s,f=>{let p=yy(u,o,f);return f===p&&typeof f=="string"&&(p=yy(u,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function uae(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cae={m:"margin",p:"padding"},dae={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},HO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fae=uae(e=>{if(e.length>2)if(HO[e])e=HO[e];else return[e];const[t,n]=e.split(""),r=cae[t],o=dae[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),bM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...bM,...xM];function r0(e,t,n,r){var o;const i=(o=vx(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 wM(e){return r0(e,"spacing",8)}function Nc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function pae(e,t){return n=>e.reduce((r,o)=>(r[o]=Nc(t,n),r),{})}function hae(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=fae(n),i=pae(o,r),a=e[n];return Qo(e,a,i)}function _j(e,t){const n=wM(e.theme);return Object.keys(e).map(r=>hae(e,t,r,n)).reduce(xm,{})}function dr(e){return _j(e,bM)}dr.propTypes={};dr.filterProps=bM;function fr(e){return _j(e,xM)}fr.propTypes={};fr.filterProps=xM;function mae(e=8){if(e.mui)return e;const t=wM({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 yx(...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]?xm(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Xa(e){return typeof e!="number"?e:`${e}px solid`}const gae=$n({prop:"border",themeKey:"borders",transform:Xa}),vae=$n({prop:"borderTop",themeKey:"borders",transform:Xa}),yae=$n({prop:"borderRight",themeKey:"borders",transform:Xa}),bae=$n({prop:"borderBottom",themeKey:"borders",transform:Xa}),xae=$n({prop:"borderLeft",themeKey:"borders",transform:Xa}),wae=$n({prop:"borderColor",themeKey:"palette"}),Cae=$n({prop:"borderTopColor",themeKey:"palette"}),Sae=$n({prop:"borderRightColor",themeKey:"palette"}),$ae=$n({prop:"borderBottomColor",themeKey:"palette"}),_ae=$n({prop:"borderLeftColor",themeKey:"palette"}),bx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=r0(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Nc(t,r)});return Qo(e,e.borderRadius,n)}return null};bx.propTypes={};bx.filterProps=["borderRadius"];yx(gae,vae,yae,bae,xae,wae,Cae,Sae,$ae,_ae,bx);const xx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=r0(e.theme,"spacing",8),n=r=>({gap:Nc(t,r)});return Qo(e,e.gap,n)}return null};xx.propTypes={};xx.filterProps=["gap"];const wx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=r0(e.theme,"spacing",8),n=r=>({columnGap:Nc(t,r)});return Qo(e,e.columnGap,n)}return null};wx.propTypes={};wx.filterProps=["columnGap"];const Cx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=r0(e.theme,"spacing",8),n=r=>({rowGap:Nc(t,r)});return Qo(e,e.rowGap,n)}return null};Cx.propTypes={};Cx.filterProps=["rowGap"];const kae=$n({prop:"gridColumn"}),Pae=$n({prop:"gridRow"}),Mae=$n({prop:"gridAutoFlow"}),Tae=$n({prop:"gridAutoColumns"}),Eae=$n({prop:"gridAutoRows"}),Iae=$n({prop:"gridTemplateColumns"}),Rae=$n({prop:"gridTemplateRows"}),Oae=$n({prop:"gridTemplateAreas"}),Aae=$n({prop:"gridArea"});yx(xx,wx,Cx,kae,Pae,Mae,Tae,Eae,Iae,Rae,Oae,Aae);function Bf(e,t){return t==="grey"?t:e}const Fae=$n({prop:"color",themeKey:"palette",transform:Bf}),Lae=$n({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bf}),Dae=$n({prop:"backgroundColor",themeKey:"palette",transform:Bf});yx(Fae,Lae,Dae);function di(e){return e<=1&&e!==0?`${e*100}%`:e}const jae=$n({prop:"width",transform:di}),CM=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])||yM[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:di(n)}};return Qo(e,e.maxWidth,t)}return null};CM.filterProps=["maxWidth"];const Nae=$n({prop:"minWidth",transform:di}),zae=$n({prop:"height",transform:di}),Bae=$n({prop:"maxHeight",transform:di}),Hae=$n({prop:"minHeight",transform:di});$n({prop:"size",cssProperty:"width",transform:di});$n({prop:"size",cssProperty:"height",transform:di});const Wae=$n({prop:"boxSizing"});yx(jae,CM,Nae,zae,Bae,Hae,Wae);const Vae={border:{themeKey:"borders",transform:Xa},borderTop:{themeKey:"borders",transform:Xa},borderRight:{themeKey:"borders",transform:Xa},borderBottom:{themeKey:"borders",transform:Xa},borderLeft:{themeKey:"borders",transform:Xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bx},color:{themeKey:"palette",transform:Bf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bf},backgroundColor:{themeKey:"palette",transform:Bf},p:{style:fr},pt:{style:fr},pr:{style:fr},pb:{style:fr},pl:{style:fr},px:{style:fr},py:{style:fr},padding:{style:fr},paddingTop:{style:fr},paddingRight:{style:fr},paddingBottom:{style:fr},paddingLeft:{style:fr},paddingX:{style:fr},paddingY:{style:fr},paddingInline:{style:fr},paddingInlineStart:{style:fr},paddingInlineEnd:{style:fr},paddingBlock:{style:fr},paddingBlockStart:{style:fr},paddingBlockEnd:{style:fr},m:{style:dr},mt:{style:dr},mr:{style:dr},mb:{style:dr},ml:{style:dr},mx:{style:dr},my:{style:dr},margin:{style:dr},marginTop:{style:dr},marginRight:{style:dr},marginBottom:{style:dr},marginLeft:{style:dr},marginX:{style:dr},marginY:{style:dr},marginInline:{style:dr},marginInlineStart:{style:dr},marginInlineEnd:{style:dr},marginBlock:{style:dr},marginBlockStart:{style:dr},marginBlockEnd:{style:dr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xx},rowGap:{style:Cx},columnGap:{style:wx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:di},maxWidth:{style:CM},minWidth:{transform:di},height:{transform:di},maxHeight:{transform:di},minHeight:{transform:di},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Sx=Vae;function Uae(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Gae(e,t){return typeof e=="function"?e(t):e}function qae(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=vx(o,u)||{};return f?f(a):Qo(a,r,v=>{let b=yy(p,c,v);return v===b&&typeof v=="string"&&(b=yy(p,c,`${n}${v==="default"?"":je(v)}`,v)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Sx;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=Sj(i.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(y=>{const v=Gae(u[y],i);if(v!=null)if(typeof v=="object")if(a[y])p=xm(p,e(y,v,i,a));else{const b=Qo({theme:i},v,C=>({[y]:C}));Uae(b,v)?p[y]=t({sx:v,theme:i}):p=xm(p,b)}else p=xm(p,e(y,v,i,a))}),$j(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const kj=qae();kj.filterProps=["sx"];const $x=kj,Kae=["breakpoints","palette","spacing","shape"];function _x(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=be(e,Kae),s=oae(n),l=mae(o);let u=co({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:l,shape:P({},aae,i)},a);return u=t.reduce((c,f)=>co(c,f),u),u.unstable_sxConfig=P({},Sx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return $x({sx:f,theme:this})},u}function Yae(e){return Object.keys(e).length===0}function Pj(e=null){const t=m.useContext(ng);return!t||Yae(t)?e:t}const Xae=_x();function kx(e=Xae){return Pj(e)}function Qae({styles:e,themeId:t,defaultTheme:n={}}){const r=kx(n),o=typeof e=="function"?e(t&&r[t]||r):e;return g.jsx(eae,{styles:o})}const Zae=["sx"],Jae=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Sx;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Px(e){const{sx:t}=e,n=be(e,Zae),{systemProps:r,otherProps:o}=Jae(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Gs(s)?P({},r,s):r}:i=P({},r,t),P({},o,{sx:i})}function Mj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})($x);return m.forwardRef(function(l,u){const c=kx(n),f=Px(l),{className:p,component:y="div"}=f,v=be(f,ese);return g.jsx(i,P({as:y,ref:u,className:ze(p,o?o(r):r),theme:t&&c[t]||c},v))})}const tse=Tj(),nse=tse,rse=["variant"];function WO(e){return e.length===0}function Ej(e){const{variant:t}=e,n=be(e,rse);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=WO(r)?e[o]:je(e[o]):r+=`${WO(r)?o:je(o)}${je(e[o].toString())}`}),r}const ose=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ise(e){return Object.keys(e).length===0}function ase(e){return typeof e=="string"&&e.charCodeAt(0)>96}const sse=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,by=e=>{const t={};return e&&e.forEach(n=>{const r=Ej(n.props);t[r]=n.style}),t},lse=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),by(n)},xy=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(i=>{let a=!0;Object.keys(i.props).forEach(s=>{r[s]!==i.props[s]&&e[s]!==i.props[s]&&(a=!1)}),a&&o.push(t[Ej(i.props)])}),o},use=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return xy(e,t,i)};function wm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cse=_x(),dse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _1({defaultTheme:e,theme:t,themeId:n}){return ise(t)?e:t[n]||t}function fse(e){return e?(t,n)=>n[e]:null}const VO=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(P({},t,{theme:_1(P({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const a=xy(t,by(i),i);return[o,...a]}return o};function Ij(e={}){const{themeId:t,defaultTheme:n=cse,rootShouldForwardProp:r=wm,slotShouldForwardProp:o=wm}=e,i=a=>$x(P({},a,{theme:_1(P({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{tae(a,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=fse(dse(u))}=s,y=be(s,ose),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=f||!1;let C,x=wm;u==="Root"||u==="root"?x=r:u?x=o:ase(a)&&(x=void 0);const w=Cj(a,P({shouldForwardProp:x,label:C},y)),S=($,...T)=>{const k=T?T.map(E=>{if(typeof E=="function"&&E.__emotion_real!==E)return A=>VO({styledArg:E,props:A,defaultTheme:n,themeId:t});if(Gs(E)){let A=E,z;return E&&E.variants&&(z=E.variants,delete A.variants,A=L=>{let O=E;return xy(L,by(z),z).forEach(H=>{O=co(O,H)}),O}),A}return E}):[];let M=$;if(Gs($)){let E;$&&$.variants&&(E=$.variants,delete M.variants,M=A=>{let z=$;return xy(A,by(E),E).forEach(O=>{z=co(z,O)}),z})}else typeof $=="function"&&$.__emotion_real!==$&&(M=E=>VO({styledArg:$,props:E,defaultTheme:n,themeId:t}));l&&p&&k.push(E=>{const A=_1(P({},E,{defaultTheme:n,themeId:t})),z=sse(l,A);if(z){const L={};return Object.entries(z).forEach(([O,D])=>{L[O]=typeof D=="function"?D(P({},E,{theme:A})):D}),p(E,L)}return null}),l&&!v&&k.push(E=>{const A=_1(P({},E,{defaultTheme:n,themeId:t}));return use(E,lse(l,A),A,l)}),b||k.push(i);const I=k.length-T.length;if(Array.isArray($)&&I>0){const E=new Array(I).fill("");M=[...$,...E],M.raw=[...$.raw,...E]}const N=w(M,...k);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(S.withConfig=w.withConfig),S}}const pse=Ij(),Ar=pse;function hse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:uM(t.components[n].defaultProps,r)}function Rj({props:e,name:t,defaultTheme:n,themeId:r}){let o=kx(n);return r&&(o=o[r]||o),hse({theme:o,name:t,props:e})}function SM(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function mse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function zc(e){if(e.type)return e;if(e.charAt(0)==="#")return zc(mse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(cu(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(cu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Mx(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gse(e){e=zc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Mx({type:s,values:l})}function UO(e){e=zc(e);let t=e.type==="hsl"||e.type==="hsla"?zc(gse(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vse(e,t){const n=UO(e),r=UO(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Lt(e,t){return e=zc(e),t=SM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Mx(e)}function Tx(e,t){if(e=zc(e),t=SM(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 Mx(e)}function Ex(e,t){if(e=zc(e),t=SM(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 Mx(e)}const yse=["component","direction","spacing","divider","children","className","useFlexGap"],bse=_x(),xse=Ar("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wse(e){return Rj({props:e,name:"MuiStack",defaultTheme:bse})}function Cse(e,t){const n=m.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],$se=({ownerState:e,theme:t})=>{let n=P({display:"flex",flexDirection:"column"},Qo({theme:t},gc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=wM(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=gc({values:e.direction,base:o}),a=gc({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,c)=>{if(!i[l]){const p=u>0?i[c[u-1]]:"column";i[l]=p}}),n=co(n,Qo({theme:t},a,(l,u)=>e.useFlexGap?{gap:Nc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Sse(u?i[u]:e.direction)}`]:Nc(r,l)}}))}return n=sae(t.breakpoints,n),n};function _se(e={}){const{createStyledComponent:t=xse,useThemeProps:n=wse,componentName:r="MuiStack"}=e,o=()=>Ge({root:["root"]},l=>yt(r,l),{}),i=t($se);return m.forwardRef(function(l,u){const c=n(l),f=Px(c),{component:p="div",direction:y="column",spacing:v=0,divider:b,children:C,className:x,useFlexGap:w=!1}=f,S=be(f,yse),$={direction:y,spacing:v,useFlexGap:w},T=o();return g.jsx(i,P({as:p,ownerState:$,ref:u,className:ze(T.root,x)},S,{children:b?Cse(C,b):C}))})}function kse(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Pse={black:"#000",white:"#fff"},og=Pse,Mse={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Tse=Mse,Ese={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},qd=Ese,Ise={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kd=Ise,Rse={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Fh=Rse,Ose={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Yd=Ose,Ase={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xd=Ase,Fse={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qd=Fse,Lse=["mode","contrastThreshold","tonalOffset"],GO={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:og.white,default:og.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}},vS={text:{primary:og.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:og.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 qO(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=Ex(e.main,o):t==="dark"&&(e.dark=Tx(e.main,i)))}function Dse(e="light"){return e==="dark"?{main:Yd[200],light:Yd[50],dark:Yd[400]}:{main:Yd[700],light:Yd[400],dark:Yd[800]}}function jse(e="light"){return e==="dark"?{main:qd[200],light:qd[50],dark:qd[400]}:{main:qd[500],light:qd[300],dark:qd[700]}}function Nse(e="light"){return e==="dark"?{main:Kd[500],light:Kd[300],dark:Kd[700]}:{main:Kd[700],light:Kd[400],dark:Kd[800]}}function zse(e="light"){return e==="dark"?{main:Xd[400],light:Xd[300],dark:Xd[700]}:{main:Xd[700],light:Xd[500],dark:Xd[900]}}function Bse(e="light"){return e==="dark"?{main:Qd[400],light:Qd[300],dark:Qd[700]}:{main:Qd[800],light:Qd[500],dark:Qd[900]}}function Hse(e="light"){return e==="dark"?{main:Fh[400],light:Fh[300],dark:Fh[700]}:{main:"#ed6c02",light:Fh[500],dark:Fh[900]}}function Wse(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=be(e,Lse),i=e.primary||Dse(t),a=e.secondary||jse(t),s=e.error||Nse(t),l=e.info||zse(t),u=e.success||Bse(t),c=e.warning||Hse(t);function f(b){return vse(b,vS.text.primary)>=n?vS.text.primary:GO.text.primary}const p=({color:b,name:C,mainShade:x=500,lightShade:w=300,darkShade:S=700})=>{if(b=P({},b),!b.main&&b[x]&&(b.main=b[x]),!b.hasOwnProperty("main"))throw new Error(cu(11,C?` (${C})`:"",x));if(typeof b.main!="string")throw new Error(cu(12,C?` (${C})`:"",JSON.stringify(b.main)));return qO(b,"light",w,r),qO(b,"dark",S,r),b.contrastText||(b.contrastText=f(b.main)),b},y={dark:vS,light:GO};return co(P({common:P({},og),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Tse,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},y[t]),o)}const Vse=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Use(e){return Math.round(e*1e5)/1e5}const KO={textTransform:"uppercase"},YO='"Roboto", "Helvetica", "Arial", sans-serif';function Gse(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=YO,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=be(n,Vse),y=o/14,v=f||(x=>`${x/u*y}rem`),b=(x,w,S,$,T)=>P({fontFamily:r,fontWeight:x,fontSize:v(w),lineHeight:S},r===YO?{letterSpacing:`${Use($/w)}em`}:{},T,c),C={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,KO),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,KO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return co(P({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),p,{clone:!1})}const qse=.2,Kse=.14,Yse=.12;function tr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qse})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Kse})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yse})`].join(",")}const Xse=["none",tr(0,2,1,-1,0,1,1,0,0,1,3,0),tr(0,3,1,-2,0,2,2,0,0,1,5,0),tr(0,3,3,-2,0,3,4,0,0,1,8,0),tr(0,2,4,-1,0,4,5,0,0,1,10,0),tr(0,3,5,-1,0,5,8,0,0,1,14,0),tr(0,3,5,-1,0,6,10,0,0,1,18,0),tr(0,4,5,-2,0,7,10,1,0,2,16,1),tr(0,5,5,-3,0,8,10,1,0,3,14,2),tr(0,5,6,-3,0,9,12,1,0,3,16,2),tr(0,6,6,-3,0,10,14,1,0,4,18,3),tr(0,6,7,-4,0,11,15,1,0,4,20,3),tr(0,7,8,-4,0,12,17,2,0,5,22,4),tr(0,7,8,-4,0,13,19,2,0,5,24,4),tr(0,7,9,-4,0,14,21,2,0,5,26,4),tr(0,8,9,-5,0,15,22,2,0,6,28,5),tr(0,8,10,-5,0,16,24,2,0,6,30,5),tr(0,8,11,-5,0,17,26,2,0,6,32,5),tr(0,9,11,-5,0,18,28,2,0,7,34,6),tr(0,9,12,-6,0,19,29,2,0,7,36,6),tr(0,10,13,-6,0,20,31,3,0,8,38,7),tr(0,10,13,-6,0,21,33,3,0,8,40,7),tr(0,10,14,-6,0,22,35,3,0,8,42,7),tr(0,11,14,-7,0,23,36,3,0,9,44,8),tr(0,11,15,-7,0,24,38,3,0,9,46,8)],Qse=Xse,Zse=["duration","easing","delay"],Jse={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ele={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function XO(e){return`${Math.round(e)}ms`}function tle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nle(e){const t=P({},Jse,e.easing),n=P({},ele,e.duration);return P({getAutoHeightDuration:tle,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return be(i,Zse),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:XO(a)} ${s} ${typeof l=="string"?l:XO(l)}`).join(",")}},e,{easing:t,duration:n})}const rle={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ole=rle,ile=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $M(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=be(e,ile);if(e.vars)throw new Error(cu(18));const s=Wse(r),l=_x(e);let u=co(l,{mixins:kse(l.breakpoints,n),palette:s,shadows:Qse.slice(),typography:Gse(s,i),transitions:nle(o),zIndex:P({},ole)});return u=co(u,a),u=t.reduce((c,f)=>co(c,f),u),u.unstable_sxConfig=P({},Sx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return $x({sx:f,theme:this})},u}function ale(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function sle(e){return parseFloat(e)}const lle=$M(),Ix=lle;function Xt(){const e=kx(Ix);return e[t0]||e}function $t({props:e,name:t}){return Rj({props:e,name:t,defaultTheme:Ix,themeId:t0})}const Oa=e=>wm(e)&&e!=="classes",ule=wm,cle=Ij({themeId:t0,defaultTheme:Ix,rootShouldForwardProp:Oa}),ke=cle,dle=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},QO=dle,jn=e=>({...e==="dark"?{grey:{100:"#e0e0e0",200:"#c2c2c2",300:"#a3a3a3",400:"#858585",500:"#666666",600:"#525252",700:"#3d3d3d",800:"#292929",900:"#141414"},primary:{100:"#d0d1d5",200:"#a1a4ab",300:"#727681",400:"#362842",500:"#201134",600:"#101624",700:"#0c101b",800:"#080b12",900:"#040509"},greenAccent:{100:"#dbf5ee",200:"#b7ebde",300:"#94e2cd",400:"#70d8bd",500:"#4cceac",600:"#3da58a",700:"#2e7c67",800:"#1e5245",900:"#0f2922"},redAccent:{100:"#f8dcdb",200:"#f1b9b7",300:"#e99592",400:"#e2726e",500:"#db4f4a",600:"#af3f3b",700:"#832f2c",800:"#58201e",900:"#2c100f"},blueAccent:{100:"#dcd5e6",200:"#b9aacd",300:"#9780b3",400:"#74559a",500:"#512b81",600:"#412267",700:"#311a4d",800:"#201134",900:"#10091a"}}:{grey:{100:"#141414",200:"#292929",300:"#3d3d3d",400:"#525252",500:"#666666",600:"#858585",700:"#a3a3a3",800:"#c2c2c2",900:"#e0e0e0"},primary:{100:"#040509",200:"#080b12",300:"#0c101b",400:"#f2f0f0",500:"#d0d1d5",600:"#434957",700:"#727681",800:"#a1a4ab",900:"#141b2d"},greenAccent:{100:"#0f2922",200:"#1e5245",300:"#2e7c67",400:"#3da58a",500:"#4cceac",600:"#70d8bd",700:"#94e2cd",800:"#b7ebde",900:"#dbf5ee"},redAccent:{100:"#2c100f",200:"#58201e",300:"#832f2c",400:"#af3f3b",500:"#db4f4a",600:"#e2726e",700:"#e99592",800:"#f1b9b7",900:"#f8dcdb"},blueAccent:{100:"#151632",200:"#2a2d64",300:"#3e4396",400:"#535ac8",500:"#6870fa",600:"#868dfb",700:"#a4a9fc",800:"#c3c6fd",900:"#e1e2fe"}}}),fle=e=>{const t=jn(e);return{palette:{mode:e,...e==="dark"?{primary:{main:t.primary[500]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:t.primary[500]}}:{primary:{main:t.primary[100]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:"#fcfcfc"}}},typography:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:12,h1:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:40,"@media (max-width:1399.98px)":{fontSize:40},"@media (max-width:1199.98px)":{fontSize:40},"@media (max-width:991.98px)":{fontSize:40},"@media (max-width:767.98px)":{fontSize:36},"@media (max-width:575.98px)":{fontSize:32}},h2:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:32},h3:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:24,"@media (max-width:1399.98px)":{fontSize:24},"@media (max-width:1199.98px)":{fontSize:24},"@media (max-width:991.98px)":{fontSize:24},"@media (max-width:767.98px)":{fontSize:20},"@media (max-width:575.98px)":{fontSize:16}},h4:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:20,"@media (max-width:1399.98px)":{fontSize:20},"@media (max-width:1199.98px)":{fontSize:20},"@media (max-width:991.98px)":{fontSize:20},"@media (max-width:767.98px)":{fontSize:16},"@media (max-width:575.98px)":{fontSize:14}},h5:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:16,"@media (max-width:1399.98px)":{fontSize:16},"@media (max-width:1199.98px)":{fontSize:16},"@media (max-width:991.98px)":{fontSize:16},"@media (max-width:767.98px)":{fontSize:14},"@media (max-width:575.98px)":{fontSize:12}},h6:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:14,"@media (max-width:1399.98px)":{fontSize:14},"@media (max-width:1199.98px)":{fontSize:14},"@media (max-width:991.98px)":{fontSize:14},"@media (max-width:767.98px)":{fontSize:12},"@media (max-width:575.98px)":{fontSize:12}}}}},Oj=m.createContext({toggleColorMode:()=>{}}),ple=e=>{const[t,n]=m.useState(e),r=m.useCallback(()=>{n(i=>i==="dark"?"light":"dark")},[]);return{theme:m.useMemo(()=>$M(fle(t)),[t]),toggleColorMode:r}};function hle(e){return yt("MuiSvgIcon",e)}bt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mle=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gle=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Ge(o,hle,r)},vle=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,f,p,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Aj=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,y=be(r,mle),v=m.isValidElement(o)&&o.type==="svg",b=P({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:v}),C={};c||(C.viewBox=p);const x=gle(b);return g.jsxs(vle,P({as:s,className:ze(x.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,y,v&&o.props,{ownerState:b,children:[v?o.props.children:o,f?g.jsx("title",{children:f}):null]}))});Aj.muiName="SvgIcon";const ZO=Aj;function xt(e,t){function n(r,o){return g.jsx(ZO,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ZO.muiName,m.memo(m.forwardRef(n))}const yle={configure:e=>{cM.configure(e)}},ble=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:w_,createSvgIcon:xt,debounce:Cu,deprecatedPropType:Aoe,isMuiElement:w1,ownerDocument:Gn,ownerWindow:ea,requirePropFactory:Foe,setRef:jc,unstable_ClassNameGenerator:yle,unstable_useEnhancedEffect:pn,unstable_useId:ln,unsupportedProp:joe,useControlled:ru,useEventCallback:Dn,useForkRef:on,useIsFocusVisible:sM},Symbol.toStringTag,{value:"Module"}));function k_(e,t){return k_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},k_(e,t)}function Fj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,k_(e,t)}const JO={disabled:!1},wy=ot.createContext(null);var xle=function(t){return t.scrollTop},im="unmounted",Ku="exited",Yu="entering",uf="entered",P_="exiting",pl=function(e){Fj(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=Ku,i.appearStatus=Yu):l=uf:r.unmountOnExit||r.mountOnEnter?l=im:l=Ku,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===im?{status:Ku}: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!==Yu&&a!==uf&&(i=Yu):(a===Yu||a===uf)&&(i=P_)}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===Yu){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ov.findDOMNode(this);a&&xle(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ku&&this.setState({status:im})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Ov.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!a||JO.disabled){this.safeSetState({status:uf},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Yu},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:uf},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:Ov.findDOMNode(this);if(!i||JO.disabled){this.safeSetState({status:Ku},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:P_},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Ku},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:Ov.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===im)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=be(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ot.createElement(wy.Provider,{value:null},typeof a=="function"?a(o,s):ot.cloneElement(ot.Children.only(a),s))},t}(ot.Component);pl.contextType=wy;pl.propTypes={};function Zd(){}pl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zd,onEntering:Zd,onEntered:Zd,onExit:Zd,onExiting:Zd,onExited:Zd};pl.UNMOUNTED=im;pl.EXITED=Ku;pl.ENTERING=Yu;pl.ENTERED=uf;pl.EXITING=P_;const Lj=pl;function wle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _M(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Cle(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Cy(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function Mle(e){return yt("MuiPaper",e)}bt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Tle=["className","component","elevation","square","variant"],Ele=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ge(i,Mle,o)},Ile=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return P({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Lt("#fff",QO(t.elevation))}, ${Lt("#fff",QO(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Rle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=be(r,Tle),c=P({},r,{component:i,elevation:a,square:s,variant:l}),f=Ele(c);return g.jsx(Ile,P({as:i,ownerState:c,className:ze(f.root,o),ref:n},u))}),ad=Rle;function Ole(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,f]=m.useState(!1),p=ze(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=ze(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),m.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),g.jsx("span",{className:p,style:y,children:g.jsx("span",{className:v})})}const Ale=bt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ni=Ale,Fle=["center","classes","className"];let Rx=e=>e,e4,t4,n4,r4;const M_=550,Lle=80,Dle=id(e4||(e4=Rx` + */function xj(e,t){return $_(e,t)}const tae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nae=["values","unit","step"],rae=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>P({},n,{[r.key]:r.val}),{})};function oae(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=be(e,nae),i=rae(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,y){const v=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:y)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${vM[e]}px)`};function Qo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||zO;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||zO;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||vM).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function wj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Cj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function sae(e,...t){const n=wj(e),r=[n,...t].reduce((o,i)=>co(o,i),{});return Cj(Object.keys(n),r)}function lae(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function mc({values:e,breakpoints:t,base:n}){const r=n||lae(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function gx(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function vy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=gx(e,n)||r,t&&(o=t(o,r,e)),o}function $n(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=gx(l,r)||{};return Qo(a,s,f=>{let p=vy(u,o,f);return f===p&&typeof f=="string"&&(p=vy(u,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function uae(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cae={m:"margin",p:"padding"},dae={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},BO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fae=uae(e=>{if(e.length>2)if(BO[e])e=BO[e];else return[e];const[t,n]=e.split(""),r=cae[t],o=dae[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),yM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...yM,...bM];function n0(e,t,n,r){var o;const i=(o=gx(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function xM(e){return n0(e,"spacing",8)}function jc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function pae(e,t){return n=>e.reduce((r,o)=>(r[o]=jc(t,n),r),{})}function hae(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=fae(n),i=pae(o,r),a=e[n];return Qo(e,a,i)}function Sj(e,t){const n=xM(e.theme);return Object.keys(e).map(r=>hae(e,t,r,n)).reduce(bm,{})}function dr(e){return Sj(e,yM)}dr.propTypes={};dr.filterProps=yM;function fr(e){return Sj(e,bM)}fr.propTypes={};fr.filterProps=bM;function mae(e=8){if(e.mui)return e;const t=xM({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function vx(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?bm(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Xa(e){return typeof e!="number"?e:`${e}px solid`}const gae=$n({prop:"border",themeKey:"borders",transform:Xa}),vae=$n({prop:"borderTop",themeKey:"borders",transform:Xa}),yae=$n({prop:"borderRight",themeKey:"borders",transform:Xa}),bae=$n({prop:"borderBottom",themeKey:"borders",transform:Xa}),xae=$n({prop:"borderLeft",themeKey:"borders",transform:Xa}),wae=$n({prop:"borderColor",themeKey:"palette"}),Cae=$n({prop:"borderTopColor",themeKey:"palette"}),Sae=$n({prop:"borderRightColor",themeKey:"palette"}),$ae=$n({prop:"borderBottomColor",themeKey:"palette"}),_ae=$n({prop:"borderLeftColor",themeKey:"palette"}),yx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=n0(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:jc(t,r)});return Qo(e,e.borderRadius,n)}return null};yx.propTypes={};yx.filterProps=["borderRadius"];vx(gae,vae,yae,bae,xae,wae,Cae,Sae,$ae,_ae,yx);const bx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=n0(e.theme,"spacing",8),n=r=>({gap:jc(t,r)});return Qo(e,e.gap,n)}return null};bx.propTypes={};bx.filterProps=["gap"];const xx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=n0(e.theme,"spacing",8),n=r=>({columnGap:jc(t,r)});return Qo(e,e.columnGap,n)}return null};xx.propTypes={};xx.filterProps=["columnGap"];const wx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=n0(e.theme,"spacing",8),n=r=>({rowGap:jc(t,r)});return Qo(e,e.rowGap,n)}return null};wx.propTypes={};wx.filterProps=["rowGap"];const kae=$n({prop:"gridColumn"}),Pae=$n({prop:"gridRow"}),Mae=$n({prop:"gridAutoFlow"}),Tae=$n({prop:"gridAutoColumns"}),Eae=$n({prop:"gridAutoRows"}),Iae=$n({prop:"gridTemplateColumns"}),Rae=$n({prop:"gridTemplateRows"}),Oae=$n({prop:"gridTemplateAreas"}),Aae=$n({prop:"gridArea"});vx(bx,xx,wx,kae,Pae,Mae,Tae,Eae,Iae,Rae,Oae,Aae);function zf(e,t){return t==="grey"?t:e}const Fae=$n({prop:"color",themeKey:"palette",transform:zf}),Lae=$n({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zf}),Dae=$n({prop:"backgroundColor",themeKey:"palette",transform:zf});vx(Fae,Lae,Dae);function di(e){return e<=1&&e!==0?`${e*100}%`:e}const jae=$n({prop:"width",transform:di}),wM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||vM[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:di(n)}};return Qo(e,e.maxWidth,t)}return null};wM.filterProps=["maxWidth"];const Nae=$n({prop:"minWidth",transform:di}),zae=$n({prop:"height",transform:di}),Bae=$n({prop:"maxHeight",transform:di}),Hae=$n({prop:"minHeight",transform:di});$n({prop:"size",cssProperty:"width",transform:di});$n({prop:"size",cssProperty:"height",transform:di});const Wae=$n({prop:"boxSizing"});vx(jae,wM,Nae,zae,Bae,Hae,Wae);const Vae={border:{themeKey:"borders",transform:Xa},borderTop:{themeKey:"borders",transform:Xa},borderRight:{themeKey:"borders",transform:Xa},borderBottom:{themeKey:"borders",transform:Xa},borderLeft:{themeKey:"borders",transform:Xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yx},color:{themeKey:"palette",transform:zf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zf},backgroundColor:{themeKey:"palette",transform:zf},p:{style:fr},pt:{style:fr},pr:{style:fr},pb:{style:fr},pl:{style:fr},px:{style:fr},py:{style:fr},padding:{style:fr},paddingTop:{style:fr},paddingRight:{style:fr},paddingBottom:{style:fr},paddingLeft:{style:fr},paddingX:{style:fr},paddingY:{style:fr},paddingInline:{style:fr},paddingInlineStart:{style:fr},paddingInlineEnd:{style:fr},paddingBlock:{style:fr},paddingBlockStart:{style:fr},paddingBlockEnd:{style:fr},m:{style:dr},mt:{style:dr},mr:{style:dr},mb:{style:dr},ml:{style:dr},mx:{style:dr},my:{style:dr},margin:{style:dr},marginTop:{style:dr},marginRight:{style:dr},marginBottom:{style:dr},marginLeft:{style:dr},marginX:{style:dr},marginY:{style:dr},marginInline:{style:dr},marginInlineStart:{style:dr},marginInlineEnd:{style:dr},marginBlock:{style:dr},marginBlockStart:{style:dr},marginBlockEnd:{style:dr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:bx},rowGap:{style:wx},columnGap:{style:xx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:di},maxWidth:{style:wM},minWidth:{transform:di},height:{transform:di},maxHeight:{transform:di},minHeight:{transform:di},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cx=Vae;function Uae(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Gae(e,t){return typeof e=="function"?e(t):e}function qae(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=gx(o,u)||{};return f?f(a):Qo(a,r,v=>{let b=vy(p,c,v);return v===b&&typeof v=="string"&&(b=vy(p,c,`${n}${v==="default"?"":je(v)}`,v)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Cx;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=wj(i.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(y=>{const v=Gae(u[y],i);if(v!=null)if(typeof v=="object")if(a[y])p=bm(p,e(y,v,i,a));else{const b=Qo({theme:i},v,C=>({[y]:C}));Uae(b,v)?p[y]=t({sx:v,theme:i}):p=bm(p,b)}else p=bm(p,e(y,v,i,a))}),Cj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const $j=qae();$j.filterProps=["sx"];const Sx=$j,Kae=["breakpoints","palette","spacing","shape"];function $x(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=be(e,Kae),s=oae(n),l=mae(o);let u=co({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:l,shape:P({},aae,i)},a);return u=t.reduce((c,f)=>co(c,f),u),u.unstable_sxConfig=P({},Cx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Sx({sx:f,theme:this})},u}function Yae(e){return Object.keys(e).length===0}function _j(e=null){const t=m.useContext(tg);return!t||Yae(t)?e:t}const Xae=$x();function _x(e=Xae){return _j(e)}function Qae({styles:e,themeId:t,defaultTheme:n={}}){const r=_x(n),o=typeof e=="function"?e(t&&r[t]||r):e;return g.jsx(eae,{styles:o})}const Zae=["sx"],Jae=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Cx;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function kx(e){const{sx:t}=e,n=be(e,Zae),{systemProps:r,otherProps:o}=Jae(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Us(s)?P({},r,s):r}:i=P({},r,t),P({},o,{sx:i})}function kj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Sx);return m.forwardRef(function(l,u){const c=_x(n),f=kx(l),{className:p,component:y="div"}=f,v=be(f,ese);return g.jsx(i,P({as:y,ref:u,className:ze(p,o?o(r):r),theme:t&&c[t]||c},v))})}const tse=Pj(),nse=tse,rse=["variant"];function HO(e){return e.length===0}function Mj(e){const{variant:t}=e,n=be(e,rse);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=HO(r)?e[o]:je(e[o]):r+=`${HO(r)?o:je(o)}${je(e[o].toString())}`}),r}const ose=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ise(e){return Object.keys(e).length===0}function ase(e){return typeof e=="string"&&e.charCodeAt(0)>96}const sse=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,yy=e=>{const t={};return e&&e.forEach(n=>{const r=Mj(n.props);t[r]=n.style}),t},lse=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),yy(n)},by=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(i=>{let a=!0;Object.keys(i.props).forEach(s=>{r[s]!==i.props[s]&&e[s]!==i.props[s]&&(a=!1)}),a&&o.push(t[Mj(i.props)])}),o},use=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return by(e,t,i)};function xm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cse=$x(),dse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function $1({defaultTheme:e,theme:t,themeId:n}){return ise(t)?e:t[n]||t}function fse(e){return e?(t,n)=>n[e]:null}const WO=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(P({},t,{theme:$1(P({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const a=by(t,yy(i),i);return[o,...a]}return o};function Tj(e={}){const{themeId:t,defaultTheme:n=cse,rootShouldForwardProp:r=xm,slotShouldForwardProp:o=xm}=e,i=a=>Sx(P({},a,{theme:$1(P({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{tae(a,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=fse(dse(u))}=s,y=be(s,ose),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=f||!1;let C,x=xm;u==="Root"||u==="root"?x=r:u?x=o:ase(a)&&(x=void 0);const w=xj(a,P({shouldForwardProp:x,label:C},y)),S=($,...T)=>{const k=T?T.map(E=>{if(typeof E=="function"&&E.__emotion_real!==E)return A=>WO({styledArg:E,props:A,defaultTheme:n,themeId:t});if(Us(E)){let A=E,z;return E&&E.variants&&(z=E.variants,delete A.variants,A=L=>{let O=E;return by(L,yy(z),z).forEach(H=>{O=co(O,H)}),O}),A}return E}):[];let M=$;if(Us($)){let E;$&&$.variants&&(E=$.variants,delete M.variants,M=A=>{let z=$;return by(A,yy(E),E).forEach(O=>{z=co(z,O)}),z})}else typeof $=="function"&&$.__emotion_real!==$&&(M=E=>WO({styledArg:$,props:E,defaultTheme:n,themeId:t}));l&&p&&k.push(E=>{const A=$1(P({},E,{defaultTheme:n,themeId:t})),z=sse(l,A);if(z){const L={};return Object.entries(z).forEach(([O,D])=>{L[O]=typeof D=="function"?D(P({},E,{theme:A})):D}),p(E,L)}return null}),l&&!v&&k.push(E=>{const A=$1(P({},E,{defaultTheme:n,themeId:t}));return use(E,lse(l,A),A,l)}),b||k.push(i);const I=k.length-T.length;if(Array.isArray($)&&I>0){const E=new Array(I).fill("");M=[...$,...E],M.raw=[...$.raw,...E]}const N=w(M,...k);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(S.withConfig=w.withConfig),S}}const pse=Tj(),Ar=pse;function hse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:lM(t.components[n].defaultProps,r)}function Ej({props:e,name:t,defaultTheme:n,themeId:r}){let o=_x(n);return r&&(o=o[r]||o),hse({theme:o,name:t,props:e})}function CM(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function mse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Nc(e){if(e.type)return e;if(e.charAt(0)==="#")return Nc(mse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(uu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(uu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Px(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gse(e){e=Nc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Px({type:s,values:l})}function VO(e){e=Nc(e);let t=e.type==="hsl"||e.type==="hsla"?Nc(gse(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vse(e,t){const n=VO(e),r=VO(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Lt(e,t){return e=Nc(e),t=CM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Px(e)}function Mx(e,t){if(e=Nc(e),t=CM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Px(e)}function Tx(e,t){if(e=Nc(e),t=CM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Px(e)}const yse=["component","direction","spacing","divider","children","className","useFlexGap"],bse=$x(),xse=Ar("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wse(e){return Ej({props:e,name:"MuiStack",defaultTheme:bse})}function Cse(e,t){const n=m.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],$se=({ownerState:e,theme:t})=>{let n=P({display:"flex",flexDirection:"column"},Qo({theme:t},mc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=xM(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=mc({values:e.direction,base:o}),a=mc({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,c)=>{if(!i[l]){const p=u>0?i[c[u-1]]:"column";i[l]=p}}),n=co(n,Qo({theme:t},a,(l,u)=>e.useFlexGap?{gap:jc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Sse(u?i[u]:e.direction)}`]:jc(r,l)}}))}return n=sae(t.breakpoints,n),n};function _se(e={}){const{createStyledComponent:t=xse,useThemeProps:n=wse,componentName:r="MuiStack"}=e,o=()=>qe({root:["root"]},l=>yt(r,l),{}),i=t($se);return m.forwardRef(function(l,u){const c=n(l),f=kx(c),{component:p="div",direction:y="column",spacing:v=0,divider:b,children:C,className:x,useFlexGap:w=!1}=f,S=be(f,yse),$={direction:y,spacing:v,useFlexGap:w},T=o();return g.jsx(i,P({as:p,ownerState:$,ref:u,className:ze(T.root,x)},S,{children:b?Cse(C,b):C}))})}function kse(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Pse={black:"#000",white:"#fff"},rg=Pse,Mse={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Tse=Mse,Ese={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Gd=Ese,Ise={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},qd=Ise,Rse={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ah=Rse,Ose={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Kd=Ose,Ase={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yd=Ase,Fse={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xd=Fse,Lse=["mode","contrastThreshold","tonalOffset"],UO={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rg.white,default:rg.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},gS={text:{primary:rg.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:rg.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function GO(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tx(e.main,o):t==="dark"&&(e.dark=Mx(e.main,i)))}function Dse(e="light"){return e==="dark"?{main:Kd[200],light:Kd[50],dark:Kd[400]}:{main:Kd[700],light:Kd[400],dark:Kd[800]}}function jse(e="light"){return e==="dark"?{main:Gd[200],light:Gd[50],dark:Gd[400]}:{main:Gd[500],light:Gd[300],dark:Gd[700]}}function Nse(e="light"){return e==="dark"?{main:qd[500],light:qd[300],dark:qd[700]}:{main:qd[700],light:qd[400],dark:qd[800]}}function zse(e="light"){return e==="dark"?{main:Yd[400],light:Yd[300],dark:Yd[700]}:{main:Yd[700],light:Yd[500],dark:Yd[900]}}function Bse(e="light"){return e==="dark"?{main:Xd[400],light:Xd[300],dark:Xd[700]}:{main:Xd[800],light:Xd[500],dark:Xd[900]}}function Hse(e="light"){return e==="dark"?{main:Ah[400],light:Ah[300],dark:Ah[700]}:{main:"#ed6c02",light:Ah[500],dark:Ah[900]}}function Wse(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=be(e,Lse),i=e.primary||Dse(t),a=e.secondary||jse(t),s=e.error||Nse(t),l=e.info||zse(t),u=e.success||Bse(t),c=e.warning||Hse(t);function f(b){return vse(b,gS.text.primary)>=n?gS.text.primary:UO.text.primary}const p=({color:b,name:C,mainShade:x=500,lightShade:w=300,darkShade:S=700})=>{if(b=P({},b),!b.main&&b[x]&&(b.main=b[x]),!b.hasOwnProperty("main"))throw new Error(uu(11,C?` (${C})`:"",x));if(typeof b.main!="string")throw new Error(uu(12,C?` (${C})`:"",JSON.stringify(b.main)));return GO(b,"light",w,r),GO(b,"dark",S,r),b.contrastText||(b.contrastText=f(b.main)),b},y={dark:gS,light:UO};return co(P({common:P({},rg),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Tse,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},y[t]),o)}const Vse=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Use(e){return Math.round(e*1e5)/1e5}const qO={textTransform:"uppercase"},KO='"Roboto", "Helvetica", "Arial", sans-serif';function Gse(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=KO,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=be(n,Vse),y=o/14,v=f||(x=>`${x/u*y}rem`),b=(x,w,S,$,T)=>P({fontFamily:r,fontWeight:x,fontSize:v(w),lineHeight:S},r===KO?{letterSpacing:`${Use($/w)}em`}:{},T,c),C={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,qO),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,qO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return co(P({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),p,{clone:!1})}const qse=.2,Kse=.14,Yse=.12;function tr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qse})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Kse})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yse})`].join(",")}const Xse=["none",tr(0,2,1,-1,0,1,1,0,0,1,3,0),tr(0,3,1,-2,0,2,2,0,0,1,5,0),tr(0,3,3,-2,0,3,4,0,0,1,8,0),tr(0,2,4,-1,0,4,5,0,0,1,10,0),tr(0,3,5,-1,0,5,8,0,0,1,14,0),tr(0,3,5,-1,0,6,10,0,0,1,18,0),tr(0,4,5,-2,0,7,10,1,0,2,16,1),tr(0,5,5,-3,0,8,10,1,0,3,14,2),tr(0,5,6,-3,0,9,12,1,0,3,16,2),tr(0,6,6,-3,0,10,14,1,0,4,18,3),tr(0,6,7,-4,0,11,15,1,0,4,20,3),tr(0,7,8,-4,0,12,17,2,0,5,22,4),tr(0,7,8,-4,0,13,19,2,0,5,24,4),tr(0,7,9,-4,0,14,21,2,0,5,26,4),tr(0,8,9,-5,0,15,22,2,0,6,28,5),tr(0,8,10,-5,0,16,24,2,0,6,30,5),tr(0,8,11,-5,0,17,26,2,0,6,32,5),tr(0,9,11,-5,0,18,28,2,0,7,34,6),tr(0,9,12,-6,0,19,29,2,0,7,36,6),tr(0,10,13,-6,0,20,31,3,0,8,38,7),tr(0,10,13,-6,0,21,33,3,0,8,40,7),tr(0,10,14,-6,0,22,35,3,0,8,42,7),tr(0,11,14,-7,0,23,36,3,0,9,44,8),tr(0,11,15,-7,0,24,38,3,0,9,46,8)],Qse=Xse,Zse=["duration","easing","delay"],Jse={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ele={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function YO(e){return`${Math.round(e)}ms`}function tle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nle(e){const t=P({},Jse,e.easing),n=P({},ele,e.duration);return P({getAutoHeightDuration:tle,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return be(i,Zse),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:YO(a)} ${s} ${typeof l=="string"?l:YO(l)}`).join(",")}},e,{easing:t,duration:n})}const rle={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ole=rle,ile=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function SM(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=be(e,ile);if(e.vars)throw new Error(uu(18));const s=Wse(r),l=$x(e);let u=co(l,{mixins:kse(l.breakpoints,n),palette:s,shadows:Qse.slice(),typography:Gse(s,i),transitions:nle(o),zIndex:P({},ole)});return u=co(u,a),u=t.reduce((c,f)=>co(c,f),u),u.unstable_sxConfig=P({},Cx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Sx({sx:f,theme:this})},u}function ale(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function sle(e){return parseFloat(e)}const lle=SM(),Ex=lle;function Xt(){const e=_x(Ex);return e[e0]||e}function $t({props:e,name:t}){return Ej({props:e,name:t,defaultTheme:Ex,themeId:e0})}const Ra=e=>xm(e)&&e!=="classes",ule=xm,cle=Tj({themeId:e0,defaultTheme:Ex,rootShouldForwardProp:Ra}),ke=cle,dle=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},XO=dle,jn=e=>({...e==="dark"?{grey:{100:"#e0e0e0",200:"#c2c2c2",300:"#a3a3a3",400:"#858585",500:"#666666",600:"#525252",700:"#3d3d3d",800:"#292929",900:"#141414"},primary:{100:"#d0d1d5",200:"#a1a4ab",300:"#727681",400:"#362842",500:"#201134",600:"#101624",700:"#0c101b",800:"#080b12",900:"#040509"},greenAccent:{100:"#dbf5ee",200:"#b7ebde",300:"#94e2cd",400:"#70d8bd",500:"#4cceac",600:"#3da58a",700:"#2e7c67",800:"#1e5245",900:"#0f2922"},redAccent:{100:"#f8dcdb",200:"#f1b9b7",300:"#e99592",400:"#e2726e",500:"#db4f4a",600:"#af3f3b",700:"#832f2c",800:"#58201e",900:"#2c100f"},blueAccent:{100:"#dcd5e6",200:"#b9aacd",300:"#9780b3",400:"#74559a",500:"#512b81",600:"#412267",700:"#311a4d",800:"#201134",900:"#10091a"}}:{grey:{100:"#141414",200:"#292929",300:"#3d3d3d",400:"#525252",500:"#666666",600:"#858585",700:"#a3a3a3",800:"#c2c2c2",900:"#e0e0e0"},primary:{100:"#040509",200:"#080b12",300:"#0c101b",400:"#f2f0f0",500:"#d0d1d5",600:"#434957",700:"#727681",800:"#a1a4ab",900:"#141b2d"},greenAccent:{100:"#0f2922",200:"#1e5245",300:"#2e7c67",400:"#3da58a",500:"#4cceac",600:"#70d8bd",700:"#94e2cd",800:"#b7ebde",900:"#dbf5ee"},redAccent:{100:"#2c100f",200:"#58201e",300:"#832f2c",400:"#af3f3b",500:"#db4f4a",600:"#e2726e",700:"#e99592",800:"#f1b9b7",900:"#f8dcdb"},blueAccent:{100:"#151632",200:"#2a2d64",300:"#3e4396",400:"#535ac8",500:"#6870fa",600:"#868dfb",700:"#a4a9fc",800:"#c3c6fd",900:"#e1e2fe"}}}),fle=e=>{const t=jn(e);return{breakpoints:{values:{xs:0,sm:600,md:933,lg:1200,xl:1536}},palette:{mode:e,...e==="dark"?{primary:{main:t.primary[500]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:t.primary[500]}}:{primary:{main:t.primary[100]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:"#fcfcfc"}}},typography:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:12,h1:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:40,"@media (max-width:1399.98px)":{fontSize:40},"@media (max-width:1199.98px)":{fontSize:40},"@media (max-width:991.98px)":{fontSize:40},"@media (max-width:767.98px)":{fontSize:36},"@media (max-width:575.98px)":{fontSize:32}},h2:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:32},h3:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:24,"@media (max-width:1399.98px)":{fontSize:24},"@media (max-width:1199.98px)":{fontSize:24},"@media (max-width:991.98px)":{fontSize:24},"@media (max-width:767.98px)":{fontSize:20},"@media (max-width:575.98px)":{fontSize:16}},h4:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:20,"@media (max-width:1399.98px)":{fontSize:20},"@media (max-width:1199.98px)":{fontSize:20},"@media (max-width:991.98px)":{fontSize:20},"@media (max-width:767.98px)":{fontSize:16},"@media (max-width:575.98px)":{fontSize:14}},h5:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:16,"@media (max-width:1399.98px)":{fontSize:16},"@media (max-width:1199.98px)":{fontSize:16},"@media (max-width:991.98px)":{fontSize:16},"@media (max-width:767.98px)":{fontSize:14},"@media (max-width:575.98px)":{fontSize:12}},h6:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:14,"@media (max-width:1399.98px)":{fontSize:14},"@media (max-width:1199.98px)":{fontSize:14},"@media (max-width:991.98px)":{fontSize:14},"@media (max-width:767.98px)":{fontSize:12},"@media (max-width:575.98px)":{fontSize:12}}}}},Ij=m.createContext({toggleColorMode:()=>{}}),ple=e=>{const[t,n]=m.useState(e),r=m.useCallback(()=>{n(i=>i==="dark"?"light":"dark")},[]);return{theme:m.useMemo(()=>SM(fle(t)),[t]),toggleColorMode:r}};function hle(e){return yt("MuiSvgIcon",e)}bt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mle=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gle=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return qe(o,hle,r)},vle=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,f,p,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Rj=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,y=be(r,mle),v=m.isValidElement(o)&&o.type==="svg",b=P({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:v}),C={};c||(C.viewBox=p);const x=gle(b);return g.jsxs(vle,P({as:s,className:ze(x.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,y,v&&o.props,{ownerState:b,children:[v?o.props.children:o,f?g.jsx("title",{children:f}):null]}))});Rj.muiName="SvgIcon";const QO=Rj;function xt(e,t){function n(r,o){return g.jsx(QO,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=QO.muiName,m.memo(m.forwardRef(n))}const yle={configure:e=>{uM.configure(e)}},ble=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:x_,createSvgIcon:xt,debounce:wu,deprecatedPropType:Aoe,isMuiElement:x1,ownerDocument:Gn,ownerWindow:ea,requirePropFactory:Foe,setRef:Dc,unstable_ClassNameGenerator:yle,unstable_useEnhancedEffect:pn,unstable_useId:ln,unsupportedProp:joe,useControlled:nu,useEventCallback:Dn,useForkRef:on,useIsFocusVisible:aM},Symbol.toStringTag,{value:"Module"}));function __(e,t){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},__(e,t)}function Oj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,__(e,t)}const ZO={disabled:!1},xy=ot.createContext(null);var xle=function(t){return t.scrollTop},om="unmounted",qu="exited",Ku="entering",lf="entered",k_="exiting",fl=function(e){Oj(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=qu,i.appearStatus=Ku):l=lf:r.unmountOnExit||r.mountOnEnter?l=om:l=qu,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===om?{status:qu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ku&&a!==lf&&(i=Ku):(a===Ku||a===lf)&&(i=k_)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ku){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Rv.findDOMNode(this);a&&xle(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qu&&this.setState({status:om})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Rv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!a||ZO.disabled){this.safeSetState({status:lf},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Ku},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:lf},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Rv.findDOMNode(this);if(!i||ZO.disabled){this.safeSetState({status:qu},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:k_},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:qu},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Rv.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===om)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=be(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ot.createElement(xy.Provider,{value:null},typeof a=="function"?a(o,s):ot.cloneElement(ot.Children.only(a),s))},t}(ot.Component);fl.contextType=xy;fl.propTypes={};function Qd(){}fl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qd,onEntering:Qd,onEntered:Qd,onExit:Qd,onExiting:Qd,onExited:Qd};fl.UNMOUNTED=om;fl.EXITED=qu;fl.ENTERING=Ku;fl.ENTERED=lf;fl.EXITING=k_;const Aj=fl;function wle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $M(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Cle(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function wy(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function Mle(e){return yt("MuiPaper",e)}bt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Tle=["className","component","elevation","square","variant"],Ele=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return qe(i,Mle,o)},Ile=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return P({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Lt("#fff",XO(t.elevation))}, ${Lt("#fff",XO(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Rle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=be(r,Tle),c=P({},r,{component:i,elevation:a,square:s,variant:l}),f=Ele(c);return g.jsx(Ile,P({as:i,ownerState:c,className:ze(f.root,o),ref:n},u))}),id=Rle;function Ole(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,f]=m.useState(!1),p=ze(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=ze(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),m.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),g.jsx("span",{className:p,style:y,children:g.jsx("span",{className:v})})}const Ale=bt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ni=Ale,Fle=["center","classes","className"];let Ix=e=>e,JO,e4,t4,n4;const P_=550,Lle=80,Dle=od(JO||(JO=Ix` 0% { transform: scale(0); opacity: 0.1; @@ -96,7 +96,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),jle=id(t4||(t4=Rx` +`)),jle=od(e4||(e4=Ix` 0% { opacity: 1; } @@ -104,7 +104,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),Nle=id(n4||(n4=Rx` +`)),Nle=od(t4||(t4=Ix` 0% { transform: scale(1); } @@ -116,7 +116,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),zle=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ble=ke(Ole,{name:"MuiTouchRipple",slot:"Ripple"})(r4||(r4=Rx` +`)),zle=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ble=ke(Ole,{name:"MuiTouchRipple",slot:"Ripple"})(n4||(n4=Ix` opacity: 0; position: absolute; @@ -159,8 +159,8 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Ni.rippleVisible,Dle,M_,({theme:e})=>e.transitions.easing.easeInOut,Ni.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ni.child,Ni.childLeaving,jle,M_,({theme:e})=>e.transitions.easing.easeInOut,Ni.childPulsate,Nle,({theme:e})=>e.transitions.easing.easeInOut),Hle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=be(r,Fle),[l,u]=m.useState([]),c=m.useRef(0),f=m.useRef(null);m.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=m.useRef(!1),y=m.useRef(0),v=m.useRef(null),b=m.useRef(null);m.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const C=m.useCallback($=>{const{pulsate:T,rippleX:k,rippleY:M,rippleSize:I,cb:N}=$;u(E=>[...E,g.jsx(Ble,{classes:{ripple:ze(i.ripple,Ni.ripple),rippleVisible:ze(i.rippleVisible,Ni.rippleVisible),ripplePulsate:ze(i.ripplePulsate,Ni.ripplePulsate),child:ze(i.child,Ni.child),childLeaving:ze(i.childLeaving,Ni.childLeaving),childPulsate:ze(i.childPulsate,Ni.childPulsate)},timeout:M_,pulsate:T,rippleX:k,rippleY:M,rippleSize:I},c.current)]),c.current+=1,f.current=N},[i]),x=m.useCallback(($={},T={},k=()=>{})=>{const{pulsate:M=!1,center:I=o||T.pulsate,fakeElement:N=!1}=T;if(($==null?void 0:$.type)==="mousedown"&&p.current){p.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(p.current=!0);const E=N?null:b.current,A=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,O;if(I||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)z=Math.round(A.width/2),L=Math.round(A.height/2);else{const{clientX:D,clientY:H}=$.touches&&$.touches.length>0?$.touches[0]:$;z=Math.round(D-A.left),L=Math.round(H-A.top)}if(I)O=Math.sqrt((2*A.width**2+A.height**2)/3),O%2===0&&(O+=1);else{const D=Math.max(Math.abs((E?E.clientWidth:0)-z),z)*2+2,H=Math.max(Math.abs((E?E.clientHeight:0)-L),L)*2+2;O=Math.sqrt(D**2+H**2)}$!=null&&$.touches?v.current===null&&(v.current=()=>{C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Lle)):C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},[o,C]),w=m.useCallback(()=>{x({},{pulsate:!0})},[x]),S=m.useCallback(($,T)=>{if(clearTimeout(y.current),($==null?void 0:$.type)==="touchend"&&v.current){v.current(),v.current=null,y.current=setTimeout(()=>{S($,T)});return}v.current=null,u(k=>k.length>0?k.slice(1):k),f.current=T},[]);return m.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:S}),[w,x,S]),g.jsx(zle,P({className:ze(Ni.root,i.root,a),ref:b},s,{children:g.jsx(Ple,{component:null,exit:!0,children:l})}))}),Wle=Hle;function Vle(e){return yt("MuiButtonBase",e)}const Ule=bt("MuiButtonBase",["root","disabled","focusVisible"]),Gle=Ule,qle=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Kle=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ge({root:["root",t&&"disabled",n&&"focusVisible"]},Vle,o);return n&&r&&(a.root+=` ${r}`),a},Yle=ke("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Gle.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:v,onClick:b,onContextMenu:C,onDragLeave:x,onFocus:w,onFocusVisible:S,onKeyDown:$,onKeyUp:T,onMouseDown:k,onMouseLeave:M,onMouseUp:I,onTouchEnd:N,onTouchMove:E,onTouchStart:A,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:O,type:D}=r,H=be(r,qle),B=m.useRef(null),j=m.useRef(null),W=on(j,O),{isFocusVisibleRef:U,onFocus:Z,onBlur:Y,ref:se}=sM(),[Q,ne]=m.useState(!1);u&&Q&&ne(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),B.current.focus()}}),[]);const[re,ge]=m.useState(!1);m.useEffect(()=>{ge(!0)},[]);const xe=re&&!c&&!u;m.useEffect(()=>{Q&&p&&!c&&re&&j.current.pulsate()},[c,p,Q,re]);function fe(Ce,Qe,Ct=f){return Dn(et=>(Qe&&Qe(et),!Ct&&j.current&&j.current[Ce](et),!0))}const Se=fe("start",k),de=fe("stop",C),ie=fe("stop",x),Pe=fe("stop",I),$e=fe("stop",Ce=>{Q&&Ce.preventDefault(),M&&M(Ce)}),me=fe("start",A),ue=fe("stop",N),ce=fe("stop",E),Te=fe("stop",Ce=>{Y(Ce),U.current===!1&&ne(!1),v&&v(Ce)},!1),Le=Dn(Ce=>{B.current||(B.current=Ce.currentTarget),Z(Ce),U.current===!0&&(ne(!0),S&&S(Ce)),w&&w(Ce)}),Re=()=>{const Ce=B.current;return l&&l!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Oe=m.useRef(!1),K=Dn(Ce=>{p&&!Oe.current&&Q&&j.current&&Ce.key===" "&&(Oe.current=!0,j.current.stop(Ce,()=>{j.current.start(Ce)})),Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&Ce.preventDefault(),$&&$(Ce),Ce.target===Ce.currentTarget&&Re()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),b&&b(Ce))}),ee=Dn(Ce=>{p&&Ce.key===" "&&j.current&&Q&&!Ce.defaultPrevented&&(Oe.current=!1,j.current.stop(Ce,()=>{j.current.pulsate(Ce)})),T&&T(Ce),b&&Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&!Ce.defaultPrevented&&b(Ce)});let pe=l;pe==="button"&&(H.href||H.to)&&(pe=y);const ye={};pe==="button"?(ye.type=D===void 0?"button":D,ye.disabled=u):(!H.href&&!H.to&&(ye.role="button"),u&&(ye["aria-disabled"]=u));const De=on(n,se,B),Ae=P({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:z,focusVisible:Q}),Ee=Kle(Ae);return g.jsxs(Yle,P({as:pe,className:ze(Ee.root,s),ownerState:Ae,onBlur:Te,onClick:b,onContextMenu:de,onFocus:Le,onKeyDown:K,onKeyUp:ee,onMouseDown:Se,onMouseLeave:$e,onMouseUp:Pe,onDragLeave:ie,onTouchEnd:ue,onTouchMove:ce,onTouchStart:me,ref:De,tabIndex:u?-1:z,type:D},ye,H,{children:[a,xe?g.jsx(Wle,P({ref:W,center:i},L)):null]}))}),du=Xle;function Qle(e){return yt("MuiIconButton",e)}const Zle=bt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Jle=Zle,eue=["edge","children","className","color","disabled","disableFocusRipple","size"],tue=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(i)}`]};return Ge(a,Qle,t)},nue=ke(du,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>P({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Jle.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),rue=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=be(r,eue),p=P({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),y=tue(p);return g.jsx(nue,P({className:ze(y.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},f,{children:i}))}),wo=rue,oue=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function iue(e){return yt("MuiTypography",e)}bt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aue=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sue=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ge(s,iue,a)},lue=ke("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),o4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uue={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cue=e=>uue[e]||e,due=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTypography"}),o=cue(r.color),i=Px(P({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=o4}=i,v=be(i,aue),b=P({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:y}),C=l||(f?"p":y[p]||o4[p])||"span",x=sue(b);return g.jsx(lue,P({as:C,ref:n,ownerState:b,className:ze(x.root,s)},v))}),Ze=due;function fue(e){return yt("MuiAppBar",e)}bt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const pue=["className","color","enableColorOnDark","position"],hue=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return Ge(o,fue,r)},Fv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mue=ke(ad,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&P({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Fv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Fv(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:Fv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Fv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),gue=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=be(r,pue),u=P({},r,{color:i,position:s,enableColorOnDark:a}),c=hue(u);return g.jsx(mue,P({square:!0,component:"header",ownerState:u,elevation:4,className:ze(c.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),vue=gue;function ig(e){return typeof e=="string"}function am(e,t,n){return e===void 0||ig(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const yue={disableDefaultClasses:!1},bue=m.createContext(yue);function xue(e){const{disableDefaultClasses:t}=m.useContext(bue);return n=>t?"":e(n)}function jj(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wue(e,t,n){return typeof e=="function"?e(t,n):e}function i4(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Cue(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ze(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=jj(P({},o,r)),s=i4(r),l=i4(o),u=t(a),c=ze(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const Sue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,Sue),s=i?{}:wue(r,o),{props:l,internalRef:u}=Cue(P({},a,{externalSlotProps:s})),c=on(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return am(n,P({},l,{ref:c}),o)}function $ue(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=lM({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 a4(e){return e.substring(2).toLowerCase()}function _ue(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=on(t.ref,s),f=Dn(v=>{const b=u.current;u.current=!1;const C=Gn(s.current);if(!l.current||!s.current||"clientX"in v&&_ue(v,C))return;if(a.current){a.current=!1;return}let x;v.composedPath?x=v.composedPath().indexOf(s.current)>-1:x=!C.documentElement.contains(v.target)||s.current.contains(v.target),!x&&(n||!b)&&o(v)}),p=v=>b=>{u.current=!0;const C=t.props[v];C&&C(b)},y={ref:c};return i!==!1&&(y[i]=p(i)),m.useEffect(()=>{if(i!==!1){const v=a4(i),b=Gn(s.current),C=()=>{a.current=!0};return b.addEventListener(v,f),b.addEventListener("touchmove",C),()=>{b.removeEventListener(v,f),b.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(y[r]=p(r)),m.useEffect(()=>{if(r!==!1){const v=a4(r),b=Gn(s.current);return b.addEventListener(v,f),()=>{b.removeEventListener(v,f)}}},[f,r]),g.jsx(m.Fragment,{children:m.cloneElement(t,y)})}const kue=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pue(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Mue(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Tue(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Mue(e))}function Eue(e){const t=[],n=[];return Array.from(e.querySelectorAll(kue)).forEach((r,o)=>{const i=Pue(r);i===-1||!Tue(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Iue(){return!0}function zj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Eue,isEnabled:a=Iue,open:s}=e,l=m.useRef(!1),u=m.useRef(null),c=m.useRef(null),f=m.useRef(null),p=m.useRef(null),y=m.useRef(!1),v=m.useRef(null),b=on(t.ref,v),C=m.useRef(null);m.useEffect(()=>{!s||!v.current||(y.current=!n)},[n,s]),m.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),m.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current),$=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&S.activeElement===v.current&&M.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const M=v.current;if(M===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!y.current)return;let I=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(I=i(v.current)),I.length>0){var N,E;const A=!!((N=C.current)!=null&&N.shiftKey&&((E=C.current)==null?void 0:E.key)==="Tab"),z=I[0],L=I[I.length-1];typeof z!="string"&&typeof L!="string"&&(A?L.focus():z.focus())}else M.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",$,!0);const k=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",T),S.removeEventListener("keydown",$,!0)}},[n,r,o,a,s,i]);const x=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0,p.current=S.target;const $=t.props.onFocus;$&&$(S)},w=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0};return g.jsxs(m.Fragment,{children:[g.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:b,onFocus:x}),g.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}var Go="top",ta="bottom",na="right",qo="left",PM="auto",o0=[Go,ta,na,qo],lp="start",ag="end",Rue="clippingParents",Bj="viewport",Lh="popper",Oue="reference",s4=o0.reduce(function(e,t){return e.concat([t+"-"+lp,t+"-"+ag])},[]),Hj=[].concat(o0,[PM]).reduce(function(e,t){return e.concat([t,t+"-"+lp,t+"-"+ag])},[]),Aue="beforeRead",Fue="read",Lue="afterRead",Due="beforeMain",jue="main",Nue="afterMain",zue="beforeWrite",Bue="write",Hue="afterWrite",Wue=[Aue,Fue,Lue,Due,jue,Nue,zue,Bue,Hue];function ds(e){return e?(e.nodeName||"").toLowerCase():null}function wi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bc(e){var t=wi(e).Element;return e instanceof t||e instanceof Element}function Yi(e){var t=wi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function MM(e){if(typeof ShadowRoot>"u")return!1;var t=wi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vue(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Yi(i)||!ds(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Uue(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Yi(o)||!ds(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Gue={name:"applyStyles",enabled:!0,phase:"write",fn:Vue,effect:Uue,requires:["computeStyles"]};function rs(e){return e.split("-")[0]}var vc=Math.max,Sy=Math.min,up=Math.round;function T_(){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 Wj(){return!/^((?!chrome|android).)*safari/i.test(T_())}function cp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Yi(e)&&(o=e.offsetWidth>0&&up(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&up(r.height)/e.offsetHeight||1);var a=Bc(e)?wi(e):window,s=a.visualViewport,l=!Wj()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function TM(e){var t=cp(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 Vj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&MM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ll(e){return wi(e).getComputedStyle(e)}function que(e){return["table","td","th"].indexOf(ds(e))>=0}function Su(e){return((Bc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ox(e){return ds(e)==="html"?e:e.assignedSlot||e.parentNode||(MM(e)?e.host:null)||Su(e)}function l4(e){return!Yi(e)||ll(e).position==="fixed"?null:e.offsetParent}function Kue(e){var t=/firefox/i.test(T_()),n=/Trident/i.test(T_());if(n&&Yi(e)){var r=ll(e);if(r.position==="fixed")return null}var o=Ox(e);for(MM(o)&&(o=o.host);Yi(o)&&["html","body"].indexOf(ds(o))<0;){var i=ll(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function i0(e){for(var t=wi(e),n=l4(e);n&&que(n)&&ll(n).position==="static";)n=l4(n);return n&&(ds(n)==="html"||ds(n)==="body"&&ll(n).position==="static")?t:n||Kue(e)||t}function EM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Cm(e,t,n){return vc(e,Sy(t,n))}function Yue(e,t,n){var r=Cm(e,t,n);return r>n?n:r}function Uj(){return{top:0,right:0,bottom:0,left:0}}function Gj(e){return Object.assign({},Uj(),e)}function qj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Xue=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Gj(typeof t!="number"?t:qj(t,o0))};function Que(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=rs(n.placement),l=EM(s),u=[qo,na].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=Xue(o.padding,n),p=TM(i),y=l==="y"?Go:qo,v=l==="y"?ta:na,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=i0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=Cm($,k,T),I=l;n.modifiersData[r]=(t={},t[I]=M,t.centerOffset=M-k,t)}}function Zue(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Vj(t.elements.popper,o)&&(t.elements.arrow=o))}const Jue={name:"arrow",enabled:!0,phase:"main",fn:Que,effect:Zue,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dp(e){return e.split("-")[1]}var ece={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tce(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:up(n*o)/o||0,y:up(r*o)/o||0}}function u4(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=qo,$=Go,T=window;if(u){var k=i0(n),M="clientHeight",I="clientWidth";if(k===wi(n)&&(k=Su(n),ll(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",I="scrollWidth")),k=k,o===Go||(o===qo||o===na)&&i===ag){$=ta;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===qo||(o===Go||o===ta)&&i===ag){S=na;var E=f&&k===T&&T.visualViewport?T.visualViewport.width:k[I];y-=E-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&ece),z=c===!0?tce({x:y,y:b},wi(n)):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function nce(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:rs(t.placement),variation:dp(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,u4(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,u4(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nce,data:{}};var Lv={passive:!0};function oce(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=wi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Lv)}),s&&l.addEventListener("resize",n.update,Lv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Lv)}),s&&l.removeEventListener("resize",n.update,Lv)}}const ice={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oce,data:{}};var ace={left:"right",right:"left",bottom:"top",top:"bottom"};function k1(e){return e.replace(/left|right|bottom|top/g,function(t){return ace[t]})}var sce={start:"end",end:"start"};function c4(e){return e.replace(/start|end/g,function(t){return sce[t]})}function IM(e){var t=wi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function RM(e){return cp(Su(e)).left+IM(e).scrollLeft}function lce(e,t){var n=wi(e),r=Su(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Wj();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+RM(e),y:l}}function uce(e){var t,n=Su(e),r=IM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=vc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=vc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+RM(e),l=-r.scrollTop;return ll(o||n).direction==="rtl"&&(s+=vc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function OM(e){var t=ll(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Kj(e){return["html","body","#document"].indexOf(ds(e))>=0?e.ownerDocument.body:Yi(e)&&OM(e)?e:Kj(Ox(e))}function Sm(e,t){var n;t===void 0&&(t=[]);var r=Kj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=wi(r),a=o?[i].concat(i.visualViewport||[],OM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Sm(Ox(a)))}function E_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cce(e,t){var n=cp(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 d4(e,t,n){return t===Bj?E_(lce(e,n)):Bc(t)?cce(t,n):E_(uce(Su(e)))}function dce(e){var t=Sm(Ox(e)),n=["absolute","fixed"].indexOf(ll(e).position)>=0,r=n&&Yi(e)?i0(e):e;return Bc(r)?t.filter(function(o){return Bc(o)&&Vj(o,r)&&ds(o)!=="body"}):[]}function fce(e,t,n,r){var o=t==="clippingParents"?dce(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=d4(e,u,r);return l.top=vc(c.top,l.top),l.right=Sy(c.right,l.right),l.bottom=Sy(c.bottom,l.bottom),l.left=vc(c.left,l.left),l},d4(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 Yj(e){var t=e.reference,n=e.element,r=e.placement,o=r?rs(r):null,i=r?dp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Go:l={x:a,y:t.y-n.height};break;case ta:l={x:a,y:t.y+t.height};break;case na:l={x:t.x+t.width,y:s};break;case qo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?EM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case lp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ag:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function sg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?Rue:s,u=n.rootBoundary,c=u===void 0?Bj:u,f=n.elementContext,p=f===void 0?Lh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=Gj(typeof C!="number"?C:qj(C,o0)),w=p===Lh?Oue:Lh,S=e.rects.popper,$=e.elements[v?w:p],T=fce(Bc($)?$:$.contextElement||Su(e.elements.popper),l,c,a),k=cp(e.elements.reference),M=Yj({reference:k,element:S,strategy:"absolute",placement:o}),I=E_(Object.assign({},S,M)),N=p===Lh?I:k,E={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Lh&&A){var z=A[o];Object.keys(E).forEach(function(L){var O=[na,ta].indexOf(L)>=0?1:-1,D=[Go,ta].indexOf(L)>=0?"y":"x";E[L]+=z[D]*O})}return E}function pce(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Hj:l,c=dp(r),f=c?s?s4:s4.filter(function(v){return dp(v)===c}):o0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=sg(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[rs(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function hce(e){if(rs(e)===PM)return[];var t=k1(e);return[c4(e),t,c4(t)]}function mce(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=rs(C),w=x===C,S=l||(w||!v?[k1(C)]:hce(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(rs(ne)===PM?pce(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,I=!0,N=$[0],E=0;E<$.length;E++){var A=$[E],z=rs(A),L=dp(A)===lp,O=[Go,ta].indexOf(z)>=0,D=O?"width":"height",H=sg(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?na:qo:L?ta:Go;T[D]>k[D]&&(B=k1(B));var j=k1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[j]<=0),W.every(function(Q){return Q})){N=A,I=!1;break}M.set(A,W)}if(I)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const gce={name:"flip",enabled:!0,phase:"main",fn:mce,requiresIfExists:["offset"],data:{_skip:!1}};function f4(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 p4(e){return[Go,na,ta,qo].some(function(t){return e[t]>=0})}function vce(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=sg(t,{elementContext:"reference"}),s=sg(t,{altBoundary:!0}),l=f4(a,r),u=f4(s,o,i),c=p4(l),f=p4(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const yce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vce};function bce(e,t,n){var r=rs(e),o=[qo,Go].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[qo,na].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function xce(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Hj.reduce(function(c,f){return c[f]=bce(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const wce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xce};function Cce(e){var t=e.state,n=e.name;t.modifiersData[n]=Yj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sce={name:"popperOffsets",enabled:!0,phase:"read",fn:Cce,data:{}};function $ce(e){return e==="x"?"y":"x"}function _ce(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=sg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=rs(t.placement),w=dp(t.placement),S=!w,$=EM(x),T=$ce($),k=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?Go:qo,D=$==="y"?ta:na,H=$==="y"?"height":"width",B=k[$],j=B+C[O],W=B-C[D],U=y?-I[H]/2:0,Z=w===lp?M[H]:I[H],Y=w===lp?-I[H]:-M[H],se=t.elements.arrow,Q=y&&se?TM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Uj(),re=ne[O],ge=ne[D],xe=Cm(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-E.mainAxis:Z-xe-re-E.mainAxis,Se=S?-M[H]/2+U+xe+ge+E.mainAxis:Y+xe+ge+E.mainAxis,de=t.elements.arrow&&i0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=Cm(y?Sy(j,$e):j,B,y?vc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?Go:qo,Le=$==="x"?ta:na,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[Go,qo].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,De=pe?K:Re-M[Oe]-I[Oe]-ye+E.altAxis,Ae=pe?Re+M[Oe]+I[Oe]-ye-E.altAxis:ee,Ee=y&&pe?Yue(De,Re,Ae):Cm(y?De:K,Re,y?Ae:ee);k[T]=Ee,z[T]=Ee-Re}t.modifiersData[r]=z}}const kce={name:"preventOverflow",enabled:!0,phase:"main",fn:_ce,requiresIfExists:["offset"]};function Pce(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mce(e){return e===wi(e)||!Yi(e)?IM(e):Pce(e)}function Tce(e){var t=e.getBoundingClientRect(),n=up(t.width)/e.offsetWidth||1,r=up(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ece(e,t,n){n===void 0&&(n=!1);var r=Yi(t),o=Yi(t)&&Tce(t),i=Su(t),a=cp(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ds(t)!=="body"||OM(i))&&(s=Mce(t)),Yi(t)?(l=cp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=RM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ice(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Rce(e){var t=Ice(e);return Wue.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Oce(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ace(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var h4={placement:"bottom",modifiers:[],strategy:"absolute"};function m4(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Dce(o)||document.body)},[o,i]),pn(()=>{if(a&&!i)return jc(n,a),()=>{jc(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:l};return m.cloneElement(r,u)}return g.jsx(m.Fragment,{children:r})}return g.jsx(m.Fragment,{children:a&&xu.createPortal(r,a)})});function jce(e){return yt("MuiPopper",e)}bt("MuiPopper",["root"]);const Nce=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],zce=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Bce(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function I_(e){return typeof e=="function"?e():e}function Hce(e){return e.nodeType!==void 0}const Wce=()=>Ge({root:["root"]},xue(jce)),Vce={},Uce=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,Nce),x=m.useRef(null),w=on(x,n),S=m.useRef(null),$=on(S,p),T=m.useRef($);pn(()=>{T.current=$},[$]),m.useImperativeHandle(p,()=>S.current,[]);const k=Bce(c,a),[M,I]=m.useState(k),[N,E]=m.useState(I_(o));m.useEffect(()=>{S.current&&S.current.forceUpdate()}),m.useEffect(()=>{o&&E(I_(o))},[o]),pn(()=>{if(!N||!u)return;const D=j=>{I(j.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{D(j)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=Xj(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=Wce(),L=(r=v.root)!=null?r:"div",O=xi({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return g.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),Gce=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=Vce,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,zce),[S,$]=m.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const E=I_(r);M=E&&Hce(E)?Gn(E).body:Gn(null).body}const I=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return g.jsx(Qj,{disablePortal:s,container:M,children:g.jsx(Uce,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:I},v),TransitionProps:N,children:o}))})});function qce(e){const t=Gn(e);return t.body===e?ea(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function $m(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g4(e){return parseInt(ea(e).getComputedStyle(e).paddingRight,10)||0}function Kce(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function v4(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!Kce(a);s&&l&&$m(a,o)})}function yS(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Yce(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(qce(r)){const a=nj(Gn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${g4(r)+a}px`;const s=Gn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${g4(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Gn(r).body;else{const a=r.parentElement,s=ea(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function Xce(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Qce{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&$m(t.modalRef,!1);const o=Xce(n);v4(n,t.mount,t.modalRef,o,!0);const i=yS(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=yS(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Yce(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=yS(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&&$m(t.modalRef,n),v4(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&&$m(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Zce(e){return typeof e=="function"?e():e}function Jce(e){return e?e.props.hasOwnProperty("in"):!1}const ede=new Qce;function tde(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ede,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,p=m.useRef({}),y=m.useRef(null),v=m.useRef(null),b=on(v,f),[C,x]=m.useState(!c),w=Jce(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const $=()=>Gn(y.current),T=()=>(p.current.modalRef=v.current,p.current.mount=y.current,p.current),k=()=>{o.mount(T(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},M=Dn(()=>{const H=Zce(t)||$().body;o.add(T(),H),v.current&&k()}),I=m.useCallback(()=>o.isTopModal(T()),[o]),N=Dn(H=>{y.current=H,H&&(c&&I()?k():v.current&&$m(v.current,S))}),E=m.useCallback(()=>{o.remove(T(),S)},[S,o]);m.useEffect(()=>()=>{E()},[E]),m.useEffect(()=>{c?M():(!w||!i)&&E()},[c,E,w,i,M]);const A=H=>B=>{var j;(j=H.onKeyDown)==null||j.call(H,B),!(B.key!=="Escape"||!I())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},z=H=>B=>{var j;(j=H.onClick)==null||j.call(H,B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(H={})=>{const B=jj(e);delete B.onTransitionEnter,delete B.onTransitionExited;const j=P({},B,H);return P({role:"presentation"},j,{onKeyDown:A(j),ref:b})},getBackdropProps:(H={})=>{const B=H;return P({"aria-hidden":!0},B,{onClick:z(B),open:c})},getTransitionProps:()=>{const H=()=>{x(!1),a&&a()},B=()=>{x(!0),s&&s(),i&&E()};return{onEnter:w_(H,l==null?void 0:l.props.onEnter),onExited:w_(B,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:N,isTopModal:I,exited:C,hasTransition:w}}const nde=["onChange","maxRows","minRows","style","value"];function Dv(e){return parseInt(e,10)||0}const rde={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function y4(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const ode=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=be(t,nde),{current:u}=m.useRef(s!=null),c=m.useRef(null),f=on(n,c),p=m.useRef(null),y=m.useRef(0),[v,b]=m.useState({outerHeightStyle:0}),C=m.useCallback(()=>{const $=c.current,k=ea($).getComputedStyle($);if(k.width==="0px")return{outerHeightStyle:0};const M=p.current;M.style.width=k.width,M.value=$.value||t.placeholder||"x",M.value.slice(-1)===` -`&&(M.value+=" ");const I=k.boxSizing,N=Dv(k.paddingBottom)+Dv(k.paddingTop),E=Dv(k.borderBottomWidth)+Dv(k.borderTopWidth),A=M.scrollHeight;M.value="x";const z=M.scrollHeight;let L=A;i&&(L=Math.max(Number(i)*z,L)),o&&(L=Math.min(Number(o)*z,L)),L=Math.max(L,z);const O=L+(I==="border-box"?N+E:0),D=Math.abs(L-A)<=1;return{outerHeightStyle:O,overflow:D}},[o,i,t.placeholder]),x=($,T)=>{const{outerHeightStyle:k,overflow:M}=T;return y.current<20&&(k>0&&Math.abs(($.outerHeightStyle||0)-k)>1||$.overflow!==M)?(y.current+=1,{overflow:M,outerHeightStyle:k}):$},w=m.useCallback(()=>{const $=C();y4($)||b(T=>x(T,$))},[C]);pn(()=>{const $=()=>{const A=C();y4(A)||xu.flushSync(()=>{b(z=>x(z,A))})},T=()=>{y.current=0,$()};let k;const M=Cu(T),I=c.current,N=ea(I);N.addEventListener("resize",M);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(T),E.observe(I)),()=>{M.clear(),cancelAnimationFrame(k),N.removeEventListener("resize",M),E&&E.disconnect()}},[C]),pn(()=>{w()}),m.useEffect(()=>{y.current=0},[s]);const S=$=>{y.current=0,u||w(),r&&r($)};return g.jsxs(m.Fragment,{children:[g.jsx("textarea",P({value:s,onChange:S,ref:f,rows:i,style:P({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},a)},l)),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:P({},rde.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function b4(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Zj(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=b4(c));const f=c?s.filter(p=>{let y=(i||u)(p);return n&&(y=y.toLowerCase()),t&&(y=b4(y)),o==="start"?y.indexOf(c)===0:y.indexOf(c)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function bS(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function sde(e){const{unstable_isActiveElementInListbox:t=ade,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:y,disabledItemsFocusable:v=!1,disableListWrap:b=!1,filterOptions:C=ide,filterSelectedOptions:x=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionLabel:$=_e=>{var we;return(we=_e.label)!=null?we:_e},groupBy:T,handleHomeEndKeys:k=!e.freeSolo,id:M,includeInputInList:I=!1,inputValue:N,isOptionEqualToValue:E=(_e,we)=>_e===we,multiple:A=!1,onChange:z,onClose:L,onHighlightChange:O,onInputChange:D,onOpen:H,open:B,openOnFocus:j=!1,options:W,readOnly:U=!1,selectOnFocus:Z=!e.freeSolo,value:Y}=e,se=ln(M);let Q=$;Q=_e=>{const we=$(_e);return typeof we!="string"?String(we):we};const ne=m.useRef(!1),re=m.useRef(!0),ge=m.useRef(null),xe=m.useRef(null),[fe,Se]=m.useState(null),[de,ie]=m.useState(-1),Pe=o?0:-1,$e=m.useRef(Pe),[me,ue]=ru({controlled:Y,default:c,name:u}),[ce,Te]=ru({controlled:N,default:"",name:u,state:"inputValue"}),[Le,Re]=m.useState(!1),Oe=m.useCallback((_e,we)=>{if(!(A?me.length!(x&&(A?me:[me]).some(we=>we!==null&&E(_e,we)))),{inputValue:De&&pe?"":ce,getOptionLabel:Q}):[],Ce=lM({filteredOptions:Ee,value:me,inputValue:ce});m.useEffect(()=>{const _e=me!==Ce.value;Le&&!_e||w&&!_e||Oe(null,me)},[me,Oe,Le,Ce.value,w]);const Qe=K&&Ee.length>0&&!U,Ct=Dn(_e=>{_e===-1?ge.current.focus():fe.querySelector(`[data-tag-index="${_e}"]`).focus()});m.useEffect(()=>{A&&de>me.length-1&&(ie(-1),Ct(-1))},[me,A,de,Ct]);function et(_e,we){if(!xe.current||_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===Ee.length||we==="previous"&&Fe===-1)return-1;const rt=xe.current.querySelector(`[data-option-index="${Fe}"]`),Tt=v?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||Tt)Fe+=we==="next"?1:-1;else return Fe}}const Be=Dn(({event:_e,index:we,reason:Fe="auto"})=>{if($e.current=we,we===-1?ge.current.removeAttribute("aria-activedescendant"):ge.current.setAttribute("aria-activedescendant",`${se}-option-${we}`),O&&O(_e,we===-1?null:Ee[we],Fe),!xe.current)return;const rt=xe.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let Tt=xe.current;if(xe.current.getAttribute("role")!=="listbox"&&(Tt=xe.current.parentElement.querySelector('[role="listbox"]')),!Tt)return;if(we===-1){Tt.scrollTop=0;return}const en=xe.current.querySelector(`[data-option-index="${we}"]`);if(en&&(en.classList.add(`${n}-focused`),Fe==="keyboard"&&en.classList.add(`${n}-focusVisible`),Tt.scrollHeight>Tt.clientHeight&&Fe!=="mouse"&&Fe!=="touch")){const _n=en,ct=Tt.clientHeight+Tt.scrollTop,gt=_n.offsetTop+_n.offsetHeight;gt>ct?Tt.scrollTop=gt-Tt.clientHeight:_n.offsetTop-_n.offsetHeight*(T?1.3:0){if(!Ae)return;const en=et((()=>{const _n=Ee.length-1;if(we==="reset")return Pe;if(we==="start")return 0;if(we==="end")return _n;const ct=$e.current+we;return ct<0?ct===-1&&I?-1:b&&$e.current!==-1||Math.abs(we)>1?0:_n:ct>_n?ct===_n+1&&I?-1:b||Math.abs(we)>1?_n:0:ct})(),Fe);if(Be({index:en,reason:rt,event:_e}),r&&we!=="reset")if(en===-1)ge.current.value=ce;else{const _n=Q(Ee[en]);ge.current.value=_n,_n.toLowerCase().indexOf(ce.toLowerCase())===0&&ce.length>0&&ge.current.setSelectionRange(ce.length,_n.length)}}),X=()=>{const _e=(we,Fe)=>{const rt=we?Q(we):"",Tt=Fe?Q(Fe):"";return rt===Tt};if($e.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Ee.length&&Ce.inputValue===ce&&(A?me.length===Ce.value.length&&Ce.value.every((we,Fe)=>Q(me[Fe])===Q(we)):_e(Ce.value,me))){const we=Ce.filteredOptions[$e.current];if(we&&Ee.some(rt=>Q(rt)===Q(we)))return!0}return!1},oe=m.useCallback(()=>{if(!Ae||X())return;const _e=A?me[0]:me;if(Ee.length===0||_e==null){te({diff:"reset"});return}if(xe.current){if(_e!=null){const we=Ee[$e.current];if(A&&we&&bS(me,rt=>E(we,rt))!==-1)return;const Fe=bS(Ee,rt=>E(rt,_e));Fe===-1?te({diff:"reset"}):Be({index:Fe});return}if($e.current>=Ee.length-1){Be({index:Ee.length-1});return}Be({index:$e.current})}},[Ee.length,A?!1:me,x,te,Be,Ae,ce,A]),Ie=Dn(_e=>{jc(xe,_e),_e&&oe()});m.useEffect(()=>{oe()},[oe]);const Ve=_e=>{K||(ee(!0),ye(!0),H&&H(_e))},Ke=(_e,we)=>{K&&(ee(!1),L&&L(_e,we))},at=(_e,we,Fe,rt)=>{if(A){if(me.length===we.length&&me.every((Tt,en)=>Tt===we[en]))return}else if(me===we)return;z&&z(_e,we,Fe,rt),ue(we)},Je=m.useRef(!1),nt=(_e,we,Fe="selectOption",rt="options")=>{let Tt=Fe,en=we;if(A){en=Array.isArray(me)?me.slice():[];const _n=bS(en,ct=>E(we,ct));_n===-1?en.push(we):rt!=="freeSolo"&&(en.splice(_n,1),Tt="removeOption")}Oe(_e,en),at(_e,en,Tt,{option:we}),!p&&(!_e||!_e.ctrlKey&&!_e.metaKey)&&Ke(_e,Tt),(a===!0||a==="touch"&&Je.current||a==="mouse"&&!Je.current)&&ge.current.blur()};function _t(_e,we){if(_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===me.length||we==="previous"&&Fe===-1)return-1;const rt=fe.querySelector(`[data-tag-index="${Fe}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Fe+=we==="next"?1:-1;else return Fe}}const ht=(_e,we)=>{if(!A)return;ce===""&&Ke(_e,"toggleInput");let Fe=de;de===-1?ce===""&&we==="previous"&&(Fe=me.length-1):(Fe+=we==="next"?1:-1,Fe<0&&(Fe=0),Fe===me.length&&(Fe=-1)),Fe=_t(Fe,we),ie(Fe),Ct(Fe)},lt=_e=>{ne.current=!0,Te(""),D&&D(_e,"","clear"),at(_e,A?[]:null,"clear")},Rt=_e=>we=>{if(_e.onKeyDown&&_e.onKeyDown(we),!we.defaultMuiPrevented&&(de!==-1&&["ArrowLeft","ArrowRight"].indexOf(we.key)===-1&&(ie(-1),Ct(-1)),we.which!==229))switch(we.key){case"Home":Ae&&k&&(we.preventDefault(),te({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":Ae&&k&&(we.preventDefault(),te({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),te({diff:-x4,direction:"previous",reason:"keyboard",event:we}),Ve(we);break;case"PageDown":we.preventDefault(),te({diff:x4,direction:"next",reason:"keyboard",event:we}),Ve(we);break;case"ArrowDown":we.preventDefault(),te({diff:1,direction:"next",reason:"keyboard",event:we}),Ve(we);break;case"ArrowUp":we.preventDefault(),te({diff:-1,direction:"previous",reason:"keyboard",event:we}),Ve(we);break;case"ArrowLeft":ht(we,"previous");break;case"ArrowRight":ht(we,"next");break;case"Enter":if($e.current!==-1&&Ae){const Fe=Ee[$e.current],rt=S?S(Fe):!1;if(we.preventDefault(),rt)return;nt(we,Fe,"selectOption"),r&&ge.current.setSelectionRange(ge.current.value.length,ge.current.value.length)}else w&&ce!==""&&De===!1&&(A&&we.preventDefault(),nt(we,ce,"createOption","freeSolo"));break;case"Escape":Ae?(we.preventDefault(),we.stopPropagation(),Ke(we,"escape")):l&&(ce!==""||A&&me.length>0)&&(we.preventDefault(),we.stopPropagation(),lt(we));break;case"Backspace":if(A&&!U&&ce===""&&me.length>0){const Fe=de===-1?me.length-1:de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break;case"Delete":if(A&&!U&&ce===""&&me.length>0&&de!==-1){const Fe=de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break}},jt=_e=>{Re(!0),j&&!ne.current&&Ve(_e)},dn=_e=>{if(t(xe)){ge.current.focus();return}Re(!1),re.current=!0,ne.current=!1,i&&$e.current!==-1&&Ae?nt(_e,Ee[$e.current],"blur"):i&&w&&ce!==""?nt(_e,ce,"blur","freeSolo"):s&&Oe(_e,me),Ke(_e,"blur")},hn=_e=>{const we=_e.target.value;ce!==we&&(Te(we),ye(!1),D&&D(_e,we,"input")),we===""?!f&&!A&&at(_e,null,"clear"):Ve(_e)},Pt=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));$e.current!==we&&Be({event:_e,index:we,reason:"mouse"})},zt=_e=>{Be({event:_e,index:Number(_e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Je.current=!0},un=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));nt(_e,Ee[we],"selectOption"),Je.current=!1},cn=_e=>we=>{const Fe=me.slice();Fe.splice(_e,1),at(we,Fe,"removeOption",{option:me[_e]})},ut=_e=>{K?Ke(_e,"toggleInput"):Ve(_e)},mt=_e=>{_e.currentTarget.contains(_e.target)&&_e.target.getAttribute("id")!==se&&_e.preventDefault()},Ot=_e=>{_e.currentTarget.contains(_e.target)&&(ge.current.focus(),Z&&re.current&&ge.current.selectionEnd-ge.current.selectionStart===0&&ge.current.select(),re.current=!1)},At=_e=>{!y&&(ce===""||!K)&&ut(_e)};let tt=w&&ce.length>0;tt=tt||(A?me.length>0:me!==null);let Ut=Ee;return T&&(Ut=Ee.reduce((_e,we,Fe)=>{const rt=T(we);return _e.length>0&&_e[_e.length-1].group===rt?_e[_e.length-1].options.push(we):_e.push({key:Fe,index:Fe,group:rt,options:[we]}),_e},[])),y&&Le&&dn(),{getRootProps:(_e={})=>P({"aria-owns":Qe?`${se}-listbox`:null},_e,{onKeyDown:Rt(_e),onMouseDown:mt,onClick:Ot}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:ce,onBlur:dn,onFocus:jt,onChange:hn,onMouseDown:At,"aria-activedescendant":Ae?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Qe?`${se}-listbox`:void 0,"aria-expanded":Qe,autoComplete:"off",ref:ge,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ut}),getTagProps:({index:_e})=>P({key:_e,"data-tag-index":_e,tabIndex:-1},!U&&{onDelete:cn(_e)}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:Ie,onMouseDown:_e=>{_e.preventDefault()}}),getOptionProps:({index:_e,option:we})=>{const Fe=(A?me:[me]).some(Tt=>Tt!=null&&E(we,Tt)),rt=S?S(we):!1;return{key:Q(we),tabIndex:-1,role:"option",id:`${se}-option-${_e}`,onMouseMove:Pt,onClick:un,onTouchStart:zt,"data-option-index":_e,"aria-disabled":rt,"aria-selected":Fe}},id:se,inputValue:ce,value:me,dirty:tt,expanded:Ae&&fe,popupOpen:Ae,focused:Le||de!==-1,anchorEl:fe,setAnchorEl:Se,focusedTag:de,groupedOptions:Ut}}const lde=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ude=ke(Gce,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cde=m.forwardRef(function(t,n){var r;const o=Pj(),i=$t({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w,slots:S,slotProps:$}=i,T=be(i,lde),k=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,M=P({anchorEl:a,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w},T);return g.jsx(ude,P({as:s,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:$??u},M,{ref:n}))}),sd=cde;function dde(e){return yt("MuiListSubheader",e)}bt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fde=["className","color","component","disableGutters","disableSticky","inset"],pde=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ge(a,dde,t)},hde=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Jj=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=be(r,fde),f=P({},r,{color:i,component:a,disableGutters:s,disableSticky:l,inset:u}),p=pde(f);return g.jsx(hde,P({as:a,className:ze(p.root,o),ref:n,ownerState:f},c))});Jj.muiSkipListHighlight=!0;const mde=Jj,gde=xt(g.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function vde(e){return yt("MuiChip",e)}const yde=bt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mn=yde,bde=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xde=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,a&&"deletable",a&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(i)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return Ge(u,vde,t)},wde=ke("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${mn.avatar}`]:t.avatar},{[`& .${mn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${mn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${mn.icon}`]:t.icon},{[`& .${mn.icon}`]:t[`icon${je(s)}`]},{[`& .${mn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${mn.deleteIcon}`]:t.deleteIcon},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${je(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${mn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mn.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${mn.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Lt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Lt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Lt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mn.avatar}`]:{marginLeft:4},[`& .${mn.avatarSmall}`]:{marginLeft:2},[`& .${mn.icon}`]:{marginLeft:4},[`& .${mn.iconSmall}`]:{marginLeft:2},[`& .${mn.deleteIcon}`]:{marginRight:5},[`& .${mn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Lt(e.palette[t.color].main,.7)}`,[`&.${mn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Lt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${mn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Lt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Cde=ke("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function w4(e){return e.key==="Backspace"||e.key==="Delete"}const Sde=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:p,onClick:y,onDelete:v,onKeyDown:b,onKeyUp:C,size:x="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:$=!1}=r,T=be(r,bde),k=m.useRef(null),M=on(k,n),I=W=>{W.stopPropagation(),v&&v(W)},N=W=>{W.currentTarget===W.target&&w4(W)&&W.preventDefault(),b&&b(W)},E=W=>{W.currentTarget===W.target&&(v&&w4(W)?v(W):W.key==="Escape"&&k.current&&k.current.blur()),C&&C(W)},A=a!==!1&&y?!0:a,z=A||v?du:l||"div",L=P({},r,{component:z,disabled:c,size:x,color:s,iconColor:m.isValidElement(f)&&f.props.color||s,onDelete:!!v,clickable:A,variant:w}),O=xde(L),D=z===du?P({component:l||"div",focusVisibleClassName:O.focusVisible},v&&{disableRipple:!0}):{};let H=null;v&&(H=u&&m.isValidElement(u)?m.cloneElement(u,{className:ze(u.props.className,O.deleteIcon),onClick:I}):g.jsx(gde,{className:ze(O.deleteIcon),onClick:I}));let B=null;o&&m.isValidElement(o)&&(B=m.cloneElement(o,{className:ze(O.avatar,o.props.className)}));let j=null;return f&&m.isValidElement(f)&&(j=m.cloneElement(f,{className:ze(O.icon,f.props.className)})),g.jsxs(wde,P({as:z,className:ze(O.root,i),disabled:A&&c?!0:void 0,onClick:y,onKeyDown:N,onKeyUp:E,ref:M,tabIndex:$&&c?-1:S,ownerState:L},D,T,{children:[B||j,g.jsx(Cde,{className:ze(O.label),ownerState:L,children:p}),H]}))}),eN=Sde;function $u({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const $de=m.createContext(void 0),Ax=$de;function bs(){return m.useContext(Ax)}function tN(e){return g.jsx(Qae,P({},e,{defaultTheme:Ix,themeId:t0}))}function C4(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function $y(e,t=!1){return e&&(C4(e.value)&&e.value!==""||t&&C4(e.defaultValue)&&e.defaultValue!=="")}function _de(e){return e.startAdornment}function kde(e){return yt("MuiInputBase",e)}const Pde=bt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),li=Pde,Mde=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Fx=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Lx=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Tde=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:p,startAdornment:y,type:v}=e,b={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,c&&"multiline",y&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Ge(b,kde,t)},Dx=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fx})(({theme:e,ownerState:t})=>P({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),jx=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Lx})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${li.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${li.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ede=g.jsx(tN,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ide=m.forwardRef(function(t,n){var r;const o=$t({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:b=!1,id:C,inputComponent:x="input",inputProps:w={},inputRef:S,maxRows:$,minRows:T,multiline:k=!1,name:M,onBlur:I,onChange:N,onClick:E,onFocus:A,onKeyDown:z,onKeyUp:L,placeholder:O,readOnly:D,renderSuffix:H,rows:B,slotProps:j={},slots:W={},startAdornment:U,type:Z="text",value:Y}=o,se=be(o,Mde),Q=w.value!=null?w.value:Y,{current:ne}=m.useRef(Q!=null),re=m.useRef(),ge=m.useCallback(Ee=>{},[]),xe=on(re,S,w.ref,ge),[fe,Se]=m.useState(!1),de=bs(),ie=$u({props:o,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=de?de.focused:fe,m.useEffect(()=>{!de&&p&&fe&&(Se(!1),I&&I())},[de,p,fe,I]);const Pe=de&&de.onFilled,$e=de&&de.onEmpty,me=m.useCallback(Ee=>{$y(Ee)?Pe&&Pe():$e&&$e()},[Pe,$e]);pn(()=>{ne&&me({value:Q})},[Q,me,ne]);const ue=Ee=>{if(ie.disabled){Ee.stopPropagation();return}A&&A(Ee),w.onFocus&&w.onFocus(Ee),de&&de.onFocus?de.onFocus(Ee):Se(!0)},ce=Ee=>{I&&I(Ee),w.onBlur&&w.onBlur(Ee),de&&de.onBlur?de.onBlur(Ee):Se(!1)},Te=(Ee,...Ce)=>{if(!ne){const Qe=Ee.target||re.current;if(Qe==null)throw new Error(cu(1));me({value:Qe.value})}w.onChange&&w.onChange(Ee,...Ce),N&&N(Ee,...Ce)};m.useEffect(()=>{me(re.current)},[]);const Le=Ee=>{re.current&&Ee.currentTarget===Ee.target&&re.current.focus(),E&&E(Ee)};let Re=x,Oe=w;k&&Re==="input"&&(B?Oe=P({type:void 0,minRows:B,maxRows:B},Oe):Oe=P({type:void 0,maxRows:$,minRows:T},Oe),Re=ode);const K=Ee=>{me(Ee.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};m.useEffect(()=>{de&&de.setAdornedStart(!!U)},[de,U]);const ee=P({},o,{color:ie.color||"primary",disabled:ie.disabled,endAdornment:v,error:ie.error,focused:ie.focused,formControl:de,fullWidth:b,hiddenLabel:ie.hiddenLabel,multiline:k,size:ie.size,startAdornment:U,type:Z}),pe=Tde(ee),ye=W.root||u.Root||Dx,De=j.root||c.root||{},Ae=W.input||u.Input||jx;return Oe=P({},Oe,(r=j.input)!=null?r:c.input),g.jsxs(m.Fragment,{children:[!y&&Ede,g.jsxs(ye,P({},De,!ig(ye)&&{ownerState:P({},ee,De.ownerState)},{ref:n,onClick:Le},se,{className:ze(pe.root,De.className,l,D&&"MuiInputBase-readOnly"),children:[U,g.jsx(Ax.Provider,{value:null,children:g.jsx(Ae,P({ownerState:ee,"aria-invalid":ie.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:ie.disabled,id:C,onAnimationStart:K,name:M,placeholder:O,readOnly:D,required:ie.required,rows:B,value:Q,onKeyDown:z,onKeyUp:L,type:Z},Oe,!ig(Ae)&&{as:Re,ownerState:P({},ee,Oe.ownerState)},{ref:xe,className:ze(pe.input,Oe.className,D&&"MuiInputBase-readOnly"),onBlur:ce,onChange:Te,onFocus:ue}))}),v,H?H(P({},ie,{startAdornment:U})):null]}))]})}),ld=Ide;function Rde(e){return yt("MuiInput",e)}const Ode=P({},li,bt("MuiInput",["root","underline","input"])),zl=Ode;function Ade(e){return yt("MuiOutlinedInput",e)}const Fde=P({},li,bt("MuiOutlinedInput",["root","notchedOutline","input"])),Ba=Fde;function Lde(e){return yt("MuiFilledInput",e)}const Dde=P({},li,bt("MuiFilledInput",["root","underline","input"])),ui=Dde,nN=xt(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jde(e){return yt("MuiAutocomplete",e)}const Nde=bt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=Nde;var S4,$4;const zde=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Bde=["ref"],Hde=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ge(f,jde,t)},Wde=ke("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>P({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:P({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${zl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${zl.root}.${li.sizeSmall}`]:{[`& .${zl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ba.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Ba.root}.${li.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ui.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${ui.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ui.root}.${li.sizeSmall}`]:{paddingBottom:1,[`& .${ui.input}`]:{padding:"2.5px 4px"}},[`& .${li.hiddenLabel}`]:{paddingTop:8},[`& .${ui.root}.${li.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ui.root}.${li.hiddenLabel}.${li.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Vde=ke("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Ude=ke(wo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Gde=ke(wo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),qde=ke(sd,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Kde=ke(ad,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),Yde=ke("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Xde=ke("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Qde=ke("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Zde=ke(mde,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Jde=ke("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),efe=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:p,className:y,clearIcon:v=S4||(S4=g.jsx(oue,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:C=!1,clearText:x="Clear",closeText:w="Close",componentsProps:S={},defaultValue:$=s.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:k=!1,disabled:M=!1,disabledItemsFocusable:I=!1,disableListWrap:N=!1,disablePortal:E=!1,filterSelectedOptions:A=!1,forcePopupIcon:z="auto",freeSolo:L=!1,fullWidth:O=!1,getLimitTagsText:D=Fe=>`+${Fe}`,getOptionLabel:H,groupBy:B,handleHomeEndKeys:j=!s.freeSolo,includeInputInList:W=!1,limitTags:U=-1,ListboxComponent:Z="ul",ListboxProps:Y,loading:se=!1,loadingText:Q="Loading…",multiple:ne=!1,noOptionsText:re="No options",openOnFocus:ge=!1,openText:xe="Open",PaperComponent:fe=ad,PopperComponent:Se=sd,popupIcon:de=$4||($4=g.jsx(nN,{})),readOnly:ie=!1,renderGroup:Pe,renderInput:$e,renderOption:me,renderTags:ue,selectOnFocus:ce=!s.freeSolo,size:Te="medium",slotProps:Le={}}=s,Re=be(s,zde),{getRootProps:Oe,getInputProps:K,getInputLabelProps:ee,getPopupIndicatorProps:pe,getClearProps:ye,getTagProps:De,getListboxProps:Ae,getOptionProps:Ee,value:Ce,dirty:Qe,expanded:Ct,id:et,popupOpen:Be,focused:te,focusedTag:X,anchorEl:oe,setAnchorEl:Ie,inputValue:Ve,groupedOptions:Ke}=sde(P({},s,{componentName:"Autocomplete"})),at=!T&&!M&&Qe&&!ie,Je=(!L||z===!0)&&z!==!1,{onMouseDown:nt}=K(),{ref:_t}=Y??{},ht=Ae(),{ref:lt}=ht,Rt=be(ht,Bde),jt=on(lt,_t),hn=H||(Fe=>{var rt;return(rt=Fe.label)!=null?rt:Fe}),Pt=P({},s,{disablePortal:E,expanded:Ct,focused:te,fullWidth:O,getOptionLabel:hn,hasClearIcon:at,hasPopupIcon:Je,inputFocused:X===-1,popupOpen:Be,size:Te}),zt=Hde(Pt);let un;if(ne&&Ce.length>0){const Fe=rt=>P({className:zt.tag,disabled:M},De(rt));ue?un=ue(Ce,Fe,Pt):un=Ce.map((rt,Tt)=>g.jsx(eN,P({label:hn(rt),size:Te},Fe({index:Tt}),p)))}if(U>-1&&Array.isArray(un)){const Fe=un.length-U;!te&&Fe>0&&(un=un.splice(0,U),un.push(g.jsx("span",{className:zt.tag,children:D(Fe)},un.length)))}const ut=Pe||(Fe=>g.jsxs("li",{children:[g.jsx(Zde,{className:zt.groupLabel,ownerState:Pt,component:"div",children:Fe.group}),g.jsx(Jde,{className:zt.groupUl,ownerState:Pt,children:Fe.children})]},Fe.key)),Ot=me||((Fe,rt)=>g.jsx("li",P({},Fe,{children:hn(rt)}))),At=(Fe,rt)=>{const Tt=Ee({option:Fe,index:rt});return Ot(P({},Tt,{className:zt.option}),Fe,{selected:Tt["aria-selected"],index:rt,inputValue:Ve},Pt)},tt=(r=Le.clearIndicator)!=null?r:S.clearIndicator,Ut=(o=Le.paper)!=null?o:S.paper,_e=(i=Le.popper)!=null?i:S.popper,we=(a=Le.popupIndicator)!=null?a:S.popupIndicator;return g.jsxs(m.Fragment,{children:[g.jsx(Wde,P({ref:n,className:ze(zt.root,y),ownerState:Pt},Oe(Re),{children:$e({id:et,disabled:M,fullWidth:!0,size:Te==="small"?"small":void 0,InputLabelProps:ee(),InputProps:P({ref:Ie,className:zt.inputRoot,startAdornment:un,onClick:Fe=>{Fe.target===Fe.currentTarget&&nt(Fe)}},(at||Je)&&{endAdornment:g.jsxs(Vde,{className:zt.endAdornment,ownerState:Pt,children:[at?g.jsx(Ude,P({},ye(),{"aria-label":x,title:x,ownerState:Pt},tt,{className:ze(zt.clearIndicator,tt==null?void 0:tt.className),children:v})):null,Je?g.jsx(Gde,P({},pe(),{disabled:M,"aria-label":Be?w:xe,title:Be?w:xe,ownerState:Pt},we,{className:ze(zt.popupIndicator,we==null?void 0:we.className),children:de})):null]})}),inputProps:P({className:zt.input,disabled:M,readOnly:ie},K())})})),oe?g.jsx(qde,P({as:Se,disablePortal:E,style:{width:oe?oe.clientWidth:null},ownerState:Pt,role:"presentation",anchorEl:oe,open:Be},_e,{className:ze(zt.popper,_e==null?void 0:_e.className),children:g.jsxs(Kde,P({ownerState:Pt,as:fe},Ut,{className:ze(zt.paper,Ut==null?void 0:Ut.className),children:[se&&Ke.length===0?g.jsx(Yde,{className:zt.loading,ownerState:Pt,children:Q}):null,Ke.length===0&&!L&&!se?g.jsx(Xde,{className:zt.noOptions,ownerState:Pt,role:"presentation",onMouseDown:Fe=>{Fe.preventDefault()},children:re}):null,Ke.length>0?g.jsx(Qde,P({as:Z,className:zt.listbox,ownerState:Pt},Rt,Y,{ref:jt,children:Ke.map((Fe,rt)=>B?ut({key:Fe.key,group:Fe.group,children:Fe.options.map((Tt,en)=>At(Tt,Fe.index+en))}):At(Fe,rt))})):null]}))})):null]})}),rN=efe,tfe=xt(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function nfe(e){return yt("MuiAvatar",e)}bt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const rfe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],ofe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ge({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},nfe,t)},ife=ke("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&P({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),afe=ke("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),sfe=ke(tfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function lfe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=m.useState(!1);return m.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const ufe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:p="circular"}=r,y=be(r,rfe);let v=null;const b=lfe(P({},l,{src:c,srcSet:f})),C=c||f,x=C&&b!=="error",w=P({},r,{colorDefault:!x,component:s,variant:p}),S=ofe(w);return x?v=g.jsx(afe,P({alt:o,srcSet:f,src:c,sizes:u,ownerState:w,className:S.img},l)):i!=null?v=i:C&&o?v=o[0]:v=g.jsx(sfe,{ownerState:w,className:S.fallback}),g.jsx(ife,P({as:s,ownerState:w,className:ze(S.root,a),ref:n},y,{children:v}))}),_y=ufe,cfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dfe={entering:{opacity:1},entered:{opacity:1}},ffe=m.forwardRef(function(t,n){const r=Xt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:y,onExited:v,onExiting:b,style:C,timeout:x=o,TransitionComponent:w=Lj}=t,S=be(t,cfe),$=m.useRef(null),T=on($,s.ref,n),k=O=>D=>{if(O){const H=$.current;D===void 0?O(H):O(H,D)}},M=k(p),I=k((O,D)=>{Dj(O);const H=Cy({style:C,timeout:x,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",H),O.style.transition=r.transitions.create("opacity",H),c&&c(O,D)}),N=k(f),E=k(b),A=k(O=>{const D=Cy({style:C,timeout:x,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",D),O.style.transition=r.transitions.create("opacity",D),y&&y(O)}),z=k(v),L=O=>{i&&i($.current,O)};return g.jsx(w,P({appear:a,in:u,nodeRef:$,onEnter:I,onEntered:N,onEntering:M,onExit:A,onExited:z,onExiting:E,addEndListener:L,timeout:x},S,{children:(O,D)=>m.cloneElement(s,P({style:P({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},dfe[O],C,s.props.style),ref:T},D))}))}),pfe=ffe;function hfe(e){return yt("MuiBackdrop",e)}bt("MuiBackdrop",["root","invisible"]);const mfe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gfe=e=>{const{classes:t,invisible:n}=e;return Ge({root:["root",n&&"invisible"]},hfe,t)},vfe=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),yfe=m.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:p=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:C=pfe,transitionDuration:x}=a,w=be(a,mfe),S=P({},a,{component:u,invisible:p}),$=gfe(S),T=(r=v.root)!=null?r:f.root;return g.jsx(C,P({in:y,timeout:x},w,{children:g.jsx(vfe,P({"aria-hidden":!0},T,{as:(o=(i=b.root)!=null?i:c.Root)!=null?o:u,className:ze($.root,l,T==null?void 0:T.className),ownerState:P({},S,T==null?void 0:T.ownerState),classes:$,ref:n,children:s}))}))}),bfe=yfe;function xfe(e){return yt("MuiBadge",e)}const wfe=bt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Pl=wfe,Cfe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],xS=10,wS=4,Sfe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return Ge(s,xfe,a)},$fe=ke("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_fe=ke("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>P({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:xS*2,lineHeight:1,padding:"0 6px",height:xS*2,borderRadius:xS,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:wS,height:wS*2,minWidth:wS*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Pl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),kfe=m.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p,components:y={},componentsProps:v={},children:b,overlap:C="rectangular",color:x="default",invisible:w=!1,max:S=99,badgeContent:$,slots:T,slotProps:k,showZero:M=!1,variant:I="standard"}=u,N=be(u,Cfe),{badgeContent:E,invisible:A,max:z,displayValue:L}=$ue({max:S,invisible:w,badgeContent:$,showZero:M}),O=lM({anchorOrigin:c,color:x,overlap:C,variant:I,badgeContent:$}),D=A||E==null&&I!=="dot",{color:H=x,overlap:B=C,anchorOrigin:j=c,variant:W=I}=D?O:u,U=W!=="dot"?L:void 0,Z=P({},u,{badgeContent:E,invisible:D,max:z,displayValue:U,showZero:M,anchorOrigin:j,color:H,overlap:B,variant:W}),Y=Sfe(Z),se=(r=(o=T==null?void 0:T.root)!=null?o:y.Root)!=null?r:$fe,Q=(i=(a=T==null?void 0:T.badge)!=null?a:y.Badge)!=null?i:_fe,ne=(s=k==null?void 0:k.root)!=null?s:v.root,re=(l=k==null?void 0:k.badge)!=null?l:v.badge,ge=xi({elementType:se,externalSlotProps:ne,externalForwardedProps:N,additionalProps:{ref:n,as:p},ownerState:Z,className:ze(ne==null?void 0:ne.className,Y.root,f)}),xe=xi({elementType:Q,externalSlotProps:re,ownerState:Z,className:ze(Y.badge,re==null?void 0:re.className)});return g.jsxs(se,P({},ge,{children:[b,g.jsx(Q,P({},xe,{children:U}))]}))}),AM=kfe,Pfe=$M(),Mfe=Tj({themeId:t0,defaultTheme:Pfe,defaultClassName:"MuiBox-root",generateClassName:cM.generate}),qe=Mfe;function Tfe(e){return yt("MuiButton",e)}const Efe=bt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),jv=Efe,Ife=m.createContext({}),Rfe=Ife,Ofe=m.createContext(void 0),Afe=Ofe,Ffe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Lfe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${je(t)}`,`size${je(o)}`,`${i}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=Ge(s,Tfe,a);return P({},a,l)},oN=e=>P({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Dfe=ke(du,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return P({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${jv.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${jv.disabled}`]:P({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Lt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${jv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${jv.disabled}`]:{boxShadow:"none"}}),jfe=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},oN(e))),Nfe=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},oN(e))),zfe=m.forwardRef(function(t,n){const r=m.useContext(Rfe),o=m.useContext(Afe),i=uM(r,t),a=$t({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:C=!1,size:x="medium",startIcon:w,type:S,variant:$="text"}=a,T=be(a,Ffe),k=P({},a,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:y,fullWidth:C,size:x,type:S,variant:$}),M=Lfe(k),I=w&&g.jsx(jfe,{className:M.startIcon,ownerState:k,children:w}),N=v&&g.jsx(Nfe,{className:M.endIcon,ownerState:k,children:v}),E=o||"";return g.jsxs(Dfe,P({ownerState:k,className:ze(r.className,M.root,c,E),component:u,disabled:f,focusRipple:!y,focusVisibleClassName:ze(M.focusVisible,b),ref:n,type:S},T,{classes:M,children:[I,s,N]}))}),fs=zfe;function Bfe(e){return yt("MuiCard",e)}bt("MuiCard",["root"]);const Hfe=["className","raised"],Wfe=e=>{const{classes:t}=e;return Ge({root:["root"]},Bfe,t)},Vfe=ke(ad,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Ufe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=be(r,Hfe),s=P({},r,{raised:i}),l=Wfe(s);return g.jsx(Vfe,P({className:ze(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),Gfe=Ufe;function qfe(e){return yt("MuiCardContent",e)}bt("MuiCardContent",["root"]);const Kfe=["className","component"],Yfe=e=>{const{classes:t}=e;return Ge({root:["root"]},qfe,t)},Xfe=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Qfe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=be(r,Kfe),s=P({},r,{component:i}),l=Yfe(s);return g.jsx(Xfe,P({as:i,className:ze(l.root,o),ownerState:s,ref:n},a))}),_i=Qfe;function Zfe(e){return yt("MuiCardHeader",e)}const Jfe=bt("MuiCardHeader",["root","avatar","action","content","title","subheader"]),_4=Jfe,epe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],tpe=e=>{const{classes:t}=e;return Ge({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Zfe,t)},npe=ke("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>P({[`& .${_4.title}`]:t.title,[`& .${_4.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),rpe=ke("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ope=ke("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),ipe=ke("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),ape=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:s="div",disableTypography:l=!1,subheader:u,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=r,y=be(r,epe),v=P({},r,{component:s,disableTypography:l}),b=tpe(v);let C=f;C!=null&&C.type!==Ze&&!l&&(C=g.jsx(Ze,P({variant:i?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:C})));let x=u;return x!=null&&x.type!==Ze&&!l&&(x=g.jsx(Ze,P({variant:i?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),g.jsxs(npe,P({className:ze(b.root,a),as:s,ref:n,ownerState:v},y,{children:[i&&g.jsx(rpe,{className:b.avatar,ownerState:v,children:i}),g.jsxs(ipe,{className:b.content,ownerState:v,children:[C,x]}),o&&g.jsx(ope,{className:b.action,ownerState:v,children:o})]}))}),spe=ape;function lpe(e){return yt("PrivateSwitchBase",e)}bt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const upe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],cpe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return Ge(i,lpe,t)},dpe=ke(du)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),fpe=ke("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ppe=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:p,inputProps:y,inputRef:v,name:b,onBlur:C,onChange:x,onFocus:w,readOnly:S,required:$=!1,tabIndex:T,type:k,value:M}=t,I=be(t,upe),[N,E]=ru({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),A=bs(),z=W=>{w&&w(W),A&&A.onFocus&&A.onFocus(W)},L=W=>{C&&C(W),A&&A.onBlur&&A.onBlur(W)},O=W=>{if(W.nativeEvent.defaultPrevented)return;const U=W.target.checked;E(U),x&&x(W,U)};let D=l;A&&typeof D>"u"&&(D=A.disabled);const H=k==="checkbox"||k==="radio",B=P({},t,{checked:N,disabled:D,disableFocusRipple:u,edge:c}),j=cpe(B);return g.jsxs(dpe,P({component:"span",className:ze(j.root,a),centerRipple:!0,focusRipple:!u,disabled:D,tabIndex:null,role:void 0,onFocus:z,onBlur:L,ownerState:B,ref:n},I,{children:[g.jsx(fpe,P({autoFocus:r,checked:o,defaultChecked:s,className:j.input,disabled:D,id:H?p:void 0,name:b,onChange:O,readOnly:S,ref:v,required:$,ownerState:B,tabIndex:T,type:k},k==="checkbox"&&M===void 0?{}:{value:M},y)),N?i:f]}))}),iN=ppe,hpe=xt(g.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),mpe=xt(g.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),gpe=xt(g.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function vpe(e){return yt("MuiCheckbox",e)}const ype=bt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),CS=ype,bpe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xpe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},a=Ge(i,vpe,t);return P({},t,a)},wpe=ke(iN,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${CS.checked}, &.${CS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${CS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Cpe=g.jsx(mpe,{}),Spe=g.jsx(hpe,{}),$pe=g.jsx(gpe,{}),_pe=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Cpe,color:s="primary",icon:l=Spe,indeterminate:u=!1,indeterminateIcon:c=$pe,inputProps:f,size:p="medium",className:y}=i,v=be(i,bpe),b=u?c:l,C=u?c:a,x=P({},i,{color:s,indeterminate:u,size:p}),w=xpe(x);return g.jsx(wpe,P({type:"checkbox",inputProps:P({"data-indeterminate":u},f),icon:m.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:m.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:p}),ownerState:x,ref:n,className:ze(w.root,y)},v,{classes:w}))}),R_=_pe;function kpe(e){return yt("MuiCircularProgress",e)}bt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ppe=["className","color","disableShrink","size","style","thickness","value","variant"];let Nx=e=>e,k4,P4,M4,T4;const Ml=44,Mpe=id(k4||(k4=Nx` +`),Ni.rippleVisible,Dle,P_,({theme:e})=>e.transitions.easing.easeInOut,Ni.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ni.child,Ni.childLeaving,jle,P_,({theme:e})=>e.transitions.easing.easeInOut,Ni.childPulsate,Nle,({theme:e})=>e.transitions.easing.easeInOut),Hle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=be(r,Fle),[l,u]=m.useState([]),c=m.useRef(0),f=m.useRef(null);m.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=m.useRef(!1),y=m.useRef(0),v=m.useRef(null),b=m.useRef(null);m.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const C=m.useCallback($=>{const{pulsate:T,rippleX:k,rippleY:M,rippleSize:I,cb:N}=$;u(E=>[...E,g.jsx(Ble,{classes:{ripple:ze(i.ripple,Ni.ripple),rippleVisible:ze(i.rippleVisible,Ni.rippleVisible),ripplePulsate:ze(i.ripplePulsate,Ni.ripplePulsate),child:ze(i.child,Ni.child),childLeaving:ze(i.childLeaving,Ni.childLeaving),childPulsate:ze(i.childPulsate,Ni.childPulsate)},timeout:P_,pulsate:T,rippleX:k,rippleY:M,rippleSize:I},c.current)]),c.current+=1,f.current=N},[i]),x=m.useCallback(($={},T={},k=()=>{})=>{const{pulsate:M=!1,center:I=o||T.pulsate,fakeElement:N=!1}=T;if(($==null?void 0:$.type)==="mousedown"&&p.current){p.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(p.current=!0);const E=N?null:b.current,A=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,O;if(I||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)z=Math.round(A.width/2),L=Math.round(A.height/2);else{const{clientX:D,clientY:H}=$.touches&&$.touches.length>0?$.touches[0]:$;z=Math.round(D-A.left),L=Math.round(H-A.top)}if(I)O=Math.sqrt((2*A.width**2+A.height**2)/3),O%2===0&&(O+=1);else{const D=Math.max(Math.abs((E?E.clientWidth:0)-z),z)*2+2,H=Math.max(Math.abs((E?E.clientHeight:0)-L),L)*2+2;O=Math.sqrt(D**2+H**2)}$!=null&&$.touches?v.current===null&&(v.current=()=>{C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Lle)):C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},[o,C]),w=m.useCallback(()=>{x({},{pulsate:!0})},[x]),S=m.useCallback(($,T)=>{if(clearTimeout(y.current),($==null?void 0:$.type)==="touchend"&&v.current){v.current(),v.current=null,y.current=setTimeout(()=>{S($,T)});return}v.current=null,u(k=>k.length>0?k.slice(1):k),f.current=T},[]);return m.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:S}),[w,x,S]),g.jsx(zle,P({className:ze(Ni.root,i.root,a),ref:b},s,{children:g.jsx(Ple,{component:null,exit:!0,children:l})}))}),Wle=Hle;function Vle(e){return yt("MuiButtonBase",e)}const Ule=bt("MuiButtonBase",["root","disabled","focusVisible"]),Gle=Ule,qle=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Kle=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=qe({root:["root",t&&"disabled",n&&"focusVisible"]},Vle,o);return n&&r&&(a.root+=` ${r}`),a},Yle=ke("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Gle.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:v,onClick:b,onContextMenu:C,onDragLeave:x,onFocus:w,onFocusVisible:S,onKeyDown:$,onKeyUp:T,onMouseDown:k,onMouseLeave:M,onMouseUp:I,onTouchEnd:N,onTouchMove:E,onTouchStart:A,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:O,type:D}=r,H=be(r,qle),B=m.useRef(null),j=m.useRef(null),W=on(j,O),{isFocusVisibleRef:U,onFocus:Z,onBlur:Y,ref:se}=aM(),[Q,ne]=m.useState(!1);u&&Q&&ne(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),B.current.focus()}}),[]);const[re,ge]=m.useState(!1);m.useEffect(()=>{ge(!0)},[]);const xe=re&&!c&&!u;m.useEffect(()=>{Q&&p&&!c&&re&&j.current.pulsate()},[c,p,Q,re]);function fe(Ce,Qe,Ct=f){return Dn(et=>(Qe&&Qe(et),!Ct&&j.current&&j.current[Ce](et),!0))}const Se=fe("start",k),de=fe("stop",C),ie=fe("stop",x),Pe=fe("stop",I),$e=fe("stop",Ce=>{Q&&Ce.preventDefault(),M&&M(Ce)}),me=fe("start",A),ue=fe("stop",N),ce=fe("stop",E),Te=fe("stop",Ce=>{Y(Ce),U.current===!1&&ne(!1),v&&v(Ce)},!1),Le=Dn(Ce=>{B.current||(B.current=Ce.currentTarget),Z(Ce),U.current===!0&&(ne(!0),S&&S(Ce)),w&&w(Ce)}),Re=()=>{const Ce=B.current;return l&&l!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Oe=m.useRef(!1),K=Dn(Ce=>{p&&!Oe.current&&Q&&j.current&&Ce.key===" "&&(Oe.current=!0,j.current.stop(Ce,()=>{j.current.start(Ce)})),Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&Ce.preventDefault(),$&&$(Ce),Ce.target===Ce.currentTarget&&Re()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),b&&b(Ce))}),ee=Dn(Ce=>{p&&Ce.key===" "&&j.current&&Q&&!Ce.defaultPrevented&&(Oe.current=!1,j.current.stop(Ce,()=>{j.current.pulsate(Ce)})),T&&T(Ce),b&&Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&!Ce.defaultPrevented&&b(Ce)});let pe=l;pe==="button"&&(H.href||H.to)&&(pe=y);const ye={};pe==="button"?(ye.type=D===void 0?"button":D,ye.disabled=u):(!H.href&&!H.to&&(ye.role="button"),u&&(ye["aria-disabled"]=u));const De=on(n,se,B),Ae=P({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:z,focusVisible:Q}),Ee=Kle(Ae);return g.jsxs(Yle,P({as:pe,className:ze(Ee.root,s),ownerState:Ae,onBlur:Te,onClick:b,onContextMenu:de,onFocus:Le,onKeyDown:K,onKeyUp:ee,onMouseDown:Se,onMouseLeave:$e,onMouseUp:Pe,onDragLeave:ie,onTouchEnd:ue,onTouchMove:ce,onTouchStart:me,ref:De,tabIndex:u?-1:z,type:D},ye,H,{children:[a,xe?g.jsx(Wle,P({ref:W,center:i},L)):null]}))}),cu=Xle;function Qle(e){return yt("MuiIconButton",e)}const Zle=bt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Jle=Zle,eue=["edge","children","className","color","disabled","disableFocusRipple","size"],tue=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(i)}`]};return qe(a,Qle,t)},nue=ke(cu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>P({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Jle.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),rue=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=be(r,eue),p=P({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),y=tue(p);return g.jsx(nue,P({className:ze(y.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},f,{children:i}))}),wo=rue,oue=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function iue(e){return yt("MuiTypography",e)}bt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aue=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sue=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return qe(s,iue,a)},lue=ke("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),r4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uue={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cue=e=>uue[e]||e,due=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTypography"}),o=cue(r.color),i=kx(P({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=r4}=i,v=be(i,aue),b=P({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:y}),C=l||(f?"p":y[p]||r4[p])||"span",x=sue(b);return g.jsx(lue,P({as:C,ref:n,ownerState:b,className:ze(x.root,s)},v))}),Ze=due;function fue(e){return yt("MuiAppBar",e)}bt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const pue=["className","color","enableColorOnDark","position"],hue=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return qe(o,fue,r)},Av=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mue=ke(id,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&P({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Av(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Av(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Av(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Av(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),gue=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=be(r,pue),u=P({},r,{color:i,position:s,enableColorOnDark:a}),c=hue(u);return g.jsx(mue,P({square:!0,component:"header",ownerState:u,elevation:4,className:ze(c.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),vue=gue;function og(e){return typeof e=="string"}function im(e,t,n){return e===void 0||og(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const yue={disableDefaultClasses:!1},bue=m.createContext(yue);function xue(e){const{disableDefaultClasses:t}=m.useContext(bue);return n=>t?"":e(n)}function Lj(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wue(e,t,n){return typeof e=="function"?e(t,n):e}function o4(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Cue(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ze(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=Lj(P({},o,r)),s=o4(r),l=o4(o),u=t(a),c=ze(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const Sue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,Sue),s=i?{}:wue(r,o),{props:l,internalRef:u}=Cue(P({},a,{externalSlotProps:s})),c=on(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return im(n,P({},l,{ref:c}),o)}function $ue(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=sM({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,u=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:u}}function i4(e){return e.substring(2).toLowerCase()}function _ue(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=on(t.ref,s),f=Dn(v=>{const b=u.current;u.current=!1;const C=Gn(s.current);if(!l.current||!s.current||"clientX"in v&&_ue(v,C))return;if(a.current){a.current=!1;return}let x;v.composedPath?x=v.composedPath().indexOf(s.current)>-1:x=!C.documentElement.contains(v.target)||s.current.contains(v.target),!x&&(n||!b)&&o(v)}),p=v=>b=>{u.current=!0;const C=t.props[v];C&&C(b)},y={ref:c};return i!==!1&&(y[i]=p(i)),m.useEffect(()=>{if(i!==!1){const v=i4(i),b=Gn(s.current),C=()=>{a.current=!0};return b.addEventListener(v,f),b.addEventListener("touchmove",C),()=>{b.removeEventListener(v,f),b.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(y[r]=p(r)),m.useEffect(()=>{if(r!==!1){const v=i4(r),b=Gn(s.current);return b.addEventListener(v,f),()=>{b.removeEventListener(v,f)}}},[f,r]),g.jsx(m.Fragment,{children:m.cloneElement(t,y)})}const kue=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pue(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Mue(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Tue(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Mue(e))}function Eue(e){const t=[],n=[];return Array.from(e.querySelectorAll(kue)).forEach((r,o)=>{const i=Pue(r);i===-1||!Tue(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Iue(){return!0}function jj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Eue,isEnabled:a=Iue,open:s}=e,l=m.useRef(!1),u=m.useRef(null),c=m.useRef(null),f=m.useRef(null),p=m.useRef(null),y=m.useRef(!1),v=m.useRef(null),b=on(t.ref,v),C=m.useRef(null);m.useEffect(()=>{!s||!v.current||(y.current=!n)},[n,s]),m.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),m.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current),$=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&S.activeElement===v.current&&M.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const M=v.current;if(M===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!y.current)return;let I=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(I=i(v.current)),I.length>0){var N,E;const A=!!((N=C.current)!=null&&N.shiftKey&&((E=C.current)==null?void 0:E.key)==="Tab"),z=I[0],L=I[I.length-1];typeof z!="string"&&typeof L!="string"&&(A?L.focus():z.focus())}else M.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",$,!0);const k=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",T),S.removeEventListener("keydown",$,!0)}},[n,r,o,a,s,i]);const x=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0,p.current=S.target;const $=t.props.onFocus;$&&$(S)},w=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0};return g.jsxs(m.Fragment,{children:[g.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:b,onFocus:x}),g.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}var Go="top",ta="bottom",na="right",qo="left",kM="auto",r0=[Go,ta,na,qo],sp="start",ig="end",Rue="clippingParents",Nj="viewport",Fh="popper",Oue="reference",a4=r0.reduce(function(e,t){return e.concat([t+"-"+sp,t+"-"+ig])},[]),zj=[].concat(r0,[kM]).reduce(function(e,t){return e.concat([t,t+"-"+sp,t+"-"+ig])},[]),Aue="beforeRead",Fue="read",Lue="afterRead",Due="beforeMain",jue="main",Nue="afterMain",zue="beforeWrite",Bue="write",Hue="afterWrite",Wue=[Aue,Fue,Lue,Due,jue,Nue,zue,Bue,Hue];function ds(e){return e?(e.nodeName||"").toLowerCase():null}function wi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zc(e){var t=wi(e).Element;return e instanceof t||e instanceof Element}function Yi(e){var t=wi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function PM(e){if(typeof ShadowRoot>"u")return!1;var t=wi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vue(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Yi(i)||!ds(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Uue(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Yi(o)||!ds(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Gue={name:"applyStyles",enabled:!0,phase:"write",fn:Vue,effect:Uue,requires:["computeStyles"]};function rs(e){return e.split("-")[0]}var gc=Math.max,Cy=Math.min,lp=Math.round;function M_(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Bj(){return!/^((?!chrome|android).)*safari/i.test(M_())}function up(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Yi(e)&&(o=e.offsetWidth>0&&lp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&lp(r.height)/e.offsetHeight||1);var a=zc(e)?wi(e):window,s=a.visualViewport,l=!Bj()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function MM(e){var t=up(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Hj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&PM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sl(e){return wi(e).getComputedStyle(e)}function que(e){return["table","td","th"].indexOf(ds(e))>=0}function Cu(e){return((zc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rx(e){return ds(e)==="html"?e:e.assignedSlot||e.parentNode||(PM(e)?e.host:null)||Cu(e)}function s4(e){return!Yi(e)||sl(e).position==="fixed"?null:e.offsetParent}function Kue(e){var t=/firefox/i.test(M_()),n=/Trident/i.test(M_());if(n&&Yi(e)){var r=sl(e);if(r.position==="fixed")return null}var o=Rx(e);for(PM(o)&&(o=o.host);Yi(o)&&["html","body"].indexOf(ds(o))<0;){var i=sl(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function o0(e){for(var t=wi(e),n=s4(e);n&&que(n)&&sl(n).position==="static";)n=s4(n);return n&&(ds(n)==="html"||ds(n)==="body"&&sl(n).position==="static")?t:n||Kue(e)||t}function TM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wm(e,t,n){return gc(e,Cy(t,n))}function Yue(e,t,n){var r=wm(e,t,n);return r>n?n:r}function Wj(){return{top:0,right:0,bottom:0,left:0}}function Vj(e){return Object.assign({},Wj(),e)}function Uj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Xue=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Vj(typeof t!="number"?t:Uj(t,r0))};function Que(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=rs(n.placement),l=TM(s),u=[qo,na].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=Xue(o.padding,n),p=MM(i),y=l==="y"?Go:qo,v=l==="y"?ta:na,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=o0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=wm($,k,T),I=l;n.modifiersData[r]=(t={},t[I]=M,t.centerOffset=M-k,t)}}function Zue(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Hj(t.elements.popper,o)&&(t.elements.arrow=o))}const Jue={name:"arrow",enabled:!0,phase:"main",fn:Que,effect:Zue,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cp(e){return e.split("-")[1]}var ece={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tce(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:lp(n*o)/o||0,y:lp(r*o)/o||0}}function l4(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=qo,$=Go,T=window;if(u){var k=o0(n),M="clientHeight",I="clientWidth";if(k===wi(n)&&(k=Cu(n),sl(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",I="scrollWidth")),k=k,o===Go||(o===qo||o===na)&&i===ig){$=ta;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===qo||(o===Go||o===ta)&&i===ig){S=na;var E=f&&k===T&&T.visualViewport?T.visualViewport.width:k[I];y-=E-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&ece),z=c===!0?tce({x:y,y:b},wi(n)):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function nce(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:rs(t.placement),variation:cp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,l4(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,l4(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nce,data:{}};var Fv={passive:!0};function oce(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=wi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Fv)}),s&&l.addEventListener("resize",n.update,Fv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Fv)}),s&&l.removeEventListener("resize",n.update,Fv)}}const ice={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oce,data:{}};var ace={left:"right",right:"left",bottom:"top",top:"bottom"};function _1(e){return e.replace(/left|right|bottom|top/g,function(t){return ace[t]})}var sce={start:"end",end:"start"};function u4(e){return e.replace(/start|end/g,function(t){return sce[t]})}function EM(e){var t=wi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function IM(e){return up(Cu(e)).left+EM(e).scrollLeft}function lce(e,t){var n=wi(e),r=Cu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Bj();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+IM(e),y:l}}function uce(e){var t,n=Cu(e),r=EM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=gc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=gc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+IM(e),l=-r.scrollTop;return sl(o||n).direction==="rtl"&&(s+=gc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function RM(e){var t=sl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Gj(e){return["html","body","#document"].indexOf(ds(e))>=0?e.ownerDocument.body:Yi(e)&&RM(e)?e:Gj(Rx(e))}function Cm(e,t){var n;t===void 0&&(t=[]);var r=Gj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=wi(r),a=o?[i].concat(i.visualViewport||[],RM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Cm(Rx(a)))}function T_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cce(e,t){var n=up(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function c4(e,t,n){return t===Nj?T_(lce(e,n)):zc(t)?cce(t,n):T_(uce(Cu(e)))}function dce(e){var t=Cm(Rx(e)),n=["absolute","fixed"].indexOf(sl(e).position)>=0,r=n&&Yi(e)?o0(e):e;return zc(r)?t.filter(function(o){return zc(o)&&Hj(o,r)&&ds(o)!=="body"}):[]}function fce(e,t,n,r){var o=t==="clippingParents"?dce(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=c4(e,u,r);return l.top=gc(c.top,l.top),l.right=Cy(c.right,l.right),l.bottom=Cy(c.bottom,l.bottom),l.left=gc(c.left,l.left),l},c4(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qj(e){var t=e.reference,n=e.element,r=e.placement,o=r?rs(r):null,i=r?cp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Go:l={x:a,y:t.y-n.height};break;case ta:l={x:a,y:t.y+t.height};break;case na:l={x:t.x+t.width,y:s};break;case qo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?TM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case sp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ig:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ag(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?Rue:s,u=n.rootBoundary,c=u===void 0?Nj:u,f=n.elementContext,p=f===void 0?Fh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=Vj(typeof C!="number"?C:Uj(C,r0)),w=p===Fh?Oue:Fh,S=e.rects.popper,$=e.elements[v?w:p],T=fce(zc($)?$:$.contextElement||Cu(e.elements.popper),l,c,a),k=up(e.elements.reference),M=qj({reference:k,element:S,strategy:"absolute",placement:o}),I=T_(Object.assign({},S,M)),N=p===Fh?I:k,E={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Fh&&A){var z=A[o];Object.keys(E).forEach(function(L){var O=[na,ta].indexOf(L)>=0?1:-1,D=[Go,ta].indexOf(L)>=0?"y":"x";E[L]+=z[D]*O})}return E}function pce(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?zj:l,c=cp(r),f=c?s?a4:a4.filter(function(v){return cp(v)===c}):r0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=ag(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[rs(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function hce(e){if(rs(e)===kM)return[];var t=_1(e);return[u4(e),t,u4(t)]}function mce(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=rs(C),w=x===C,S=l||(w||!v?[_1(C)]:hce(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(rs(ne)===kM?pce(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,I=!0,N=$[0],E=0;E<$.length;E++){var A=$[E],z=rs(A),L=cp(A)===sp,O=[Go,ta].indexOf(z)>=0,D=O?"width":"height",H=ag(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?na:qo:L?ta:Go;T[D]>k[D]&&(B=_1(B));var j=_1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[j]<=0),W.every(function(Q){return Q})){N=A,I=!1;break}M.set(A,W)}if(I)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const gce={name:"flip",enabled:!0,phase:"main",fn:mce,requiresIfExists:["offset"],data:{_skip:!1}};function d4(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function f4(e){return[Go,na,ta,qo].some(function(t){return e[t]>=0})}function vce(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ag(t,{elementContext:"reference"}),s=ag(t,{altBoundary:!0}),l=d4(a,r),u=d4(s,o,i),c=f4(l),f=f4(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const yce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vce};function bce(e,t,n){var r=rs(e),o=[qo,Go].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[qo,na].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function xce(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=zj.reduce(function(c,f){return c[f]=bce(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const wce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xce};function Cce(e){var t=e.state,n=e.name;t.modifiersData[n]=qj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sce={name:"popperOffsets",enabled:!0,phase:"read",fn:Cce,data:{}};function $ce(e){return e==="x"?"y":"x"}function _ce(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=ag(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=rs(t.placement),w=cp(t.placement),S=!w,$=TM(x),T=$ce($),k=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?Go:qo,D=$==="y"?ta:na,H=$==="y"?"height":"width",B=k[$],j=B+C[O],W=B-C[D],U=y?-I[H]/2:0,Z=w===sp?M[H]:I[H],Y=w===sp?-I[H]:-M[H],se=t.elements.arrow,Q=y&&se?MM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Wj(),re=ne[O],ge=ne[D],xe=wm(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-E.mainAxis:Z-xe-re-E.mainAxis,Se=S?-M[H]/2+U+xe+ge+E.mainAxis:Y+xe+ge+E.mainAxis,de=t.elements.arrow&&o0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=wm(y?Cy(j,$e):j,B,y?gc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?Go:qo,Le=$==="x"?ta:na,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[Go,qo].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,De=pe?K:Re-M[Oe]-I[Oe]-ye+E.altAxis,Ae=pe?Re+M[Oe]+I[Oe]-ye-E.altAxis:ee,Ee=y&&pe?Yue(De,Re,Ae):wm(y?De:K,Re,y?Ae:ee);k[T]=Ee,z[T]=Ee-Re}t.modifiersData[r]=z}}const kce={name:"preventOverflow",enabled:!0,phase:"main",fn:_ce,requiresIfExists:["offset"]};function Pce(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mce(e){return e===wi(e)||!Yi(e)?EM(e):Pce(e)}function Tce(e){var t=e.getBoundingClientRect(),n=lp(t.width)/e.offsetWidth||1,r=lp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ece(e,t,n){n===void 0&&(n=!1);var r=Yi(t),o=Yi(t)&&Tce(t),i=Cu(t),a=up(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ds(t)!=="body"||RM(i))&&(s=Mce(t)),Yi(t)?(l=up(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=IM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ice(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Rce(e){var t=Ice(e);return Wue.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Oce(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ace(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var p4={placement:"bottom",modifiers:[],strategy:"absolute"};function h4(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Dce(o)||document.body)},[o,i]),pn(()=>{if(a&&!i)return Dc(n,a),()=>{Dc(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:l};return m.cloneElement(r,u)}return g.jsx(m.Fragment,{children:r})}return g.jsx(m.Fragment,{children:a&&bu.createPortal(r,a)})});function jce(e){return yt("MuiPopper",e)}bt("MuiPopper",["root"]);const Nce=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],zce=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Bce(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function E_(e){return typeof e=="function"?e():e}function Hce(e){return e.nodeType!==void 0}const Wce=()=>qe({root:["root"]},xue(jce)),Vce={},Uce=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,Nce),x=m.useRef(null),w=on(x,n),S=m.useRef(null),$=on(S,p),T=m.useRef($);pn(()=>{T.current=$},[$]),m.useImperativeHandle(p,()=>S.current,[]);const k=Bce(c,a),[M,I]=m.useState(k),[N,E]=m.useState(E_(o));m.useEffect(()=>{S.current&&S.current.forceUpdate()}),m.useEffect(()=>{o&&E(E_(o))},[o]),pn(()=>{if(!N||!u)return;const D=j=>{I(j.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{D(j)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=Kj(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=Wce(),L=(r=v.root)!=null?r:"div",O=xi({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return g.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),Gce=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=Vce,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,zce),[S,$]=m.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const E=E_(r);M=E&&Hce(E)?Gn(E).body:Gn(null).body}const I=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return g.jsx(Yj,{disablePortal:s,container:M,children:g.jsx(Uce,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:I},v),TransitionProps:N,children:o}))})});function qce(e){const t=Gn(e);return t.body===e?ea(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Sm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function m4(e){return parseInt(ea(e).getComputedStyle(e).paddingRight,10)||0}function Kce(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function g4(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!Kce(a);s&&l&&Sm(a,o)})}function vS(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Yce(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(qce(r)){const a=ej(Gn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${m4(r)+a}px`;const s=Gn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${m4(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Gn(r).body;else{const a=r.parentElement,s=ea(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function Xce(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Qce{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Sm(t.modalRef,!1);const o=Xce(n);g4(n,t.mount,t.modalRef,o,!0);const i=vS(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=vS(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Yce(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=vS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Sm(t.modalRef,n),g4(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Sm(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Zce(e){return typeof e=="function"?e():e}function Jce(e){return e?e.props.hasOwnProperty("in"):!1}const ede=new Qce;function tde(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ede,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,p=m.useRef({}),y=m.useRef(null),v=m.useRef(null),b=on(v,f),[C,x]=m.useState(!c),w=Jce(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const $=()=>Gn(y.current),T=()=>(p.current.modalRef=v.current,p.current.mount=y.current,p.current),k=()=>{o.mount(T(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},M=Dn(()=>{const H=Zce(t)||$().body;o.add(T(),H),v.current&&k()}),I=m.useCallback(()=>o.isTopModal(T()),[o]),N=Dn(H=>{y.current=H,H&&(c&&I()?k():v.current&&Sm(v.current,S))}),E=m.useCallback(()=>{o.remove(T(),S)},[S,o]);m.useEffect(()=>()=>{E()},[E]),m.useEffect(()=>{c?M():(!w||!i)&&E()},[c,E,w,i,M]);const A=H=>B=>{var j;(j=H.onKeyDown)==null||j.call(H,B),!(B.key!=="Escape"||!I())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},z=H=>B=>{var j;(j=H.onClick)==null||j.call(H,B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(H={})=>{const B=Lj(e);delete B.onTransitionEnter,delete B.onTransitionExited;const j=P({},B,H);return P({role:"presentation"},j,{onKeyDown:A(j),ref:b})},getBackdropProps:(H={})=>{const B=H;return P({"aria-hidden":!0},B,{onClick:z(B),open:c})},getTransitionProps:()=>{const H=()=>{x(!1),a&&a()},B=()=>{x(!0),s&&s(),i&&E()};return{onEnter:x_(H,l==null?void 0:l.props.onEnter),onExited:x_(B,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:N,isTopModal:I,exited:C,hasTransition:w}}const nde=["onChange","maxRows","minRows","style","value"];function Lv(e){return parseInt(e,10)||0}const rde={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v4(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const ode=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=be(t,nde),{current:u}=m.useRef(s!=null),c=m.useRef(null),f=on(n,c),p=m.useRef(null),y=m.useRef(0),[v,b]=m.useState({outerHeightStyle:0}),C=m.useCallback(()=>{const $=c.current,k=ea($).getComputedStyle($);if(k.width==="0px")return{outerHeightStyle:0};const M=p.current;M.style.width=k.width,M.value=$.value||t.placeholder||"x",M.value.slice(-1)===` +`&&(M.value+=" ");const I=k.boxSizing,N=Lv(k.paddingBottom)+Lv(k.paddingTop),E=Lv(k.borderBottomWidth)+Lv(k.borderTopWidth),A=M.scrollHeight;M.value="x";const z=M.scrollHeight;let L=A;i&&(L=Math.max(Number(i)*z,L)),o&&(L=Math.min(Number(o)*z,L)),L=Math.max(L,z);const O=L+(I==="border-box"?N+E:0),D=Math.abs(L-A)<=1;return{outerHeightStyle:O,overflow:D}},[o,i,t.placeholder]),x=($,T)=>{const{outerHeightStyle:k,overflow:M}=T;return y.current<20&&(k>0&&Math.abs(($.outerHeightStyle||0)-k)>1||$.overflow!==M)?(y.current+=1,{overflow:M,outerHeightStyle:k}):$},w=m.useCallback(()=>{const $=C();v4($)||b(T=>x(T,$))},[C]);pn(()=>{const $=()=>{const A=C();v4(A)||bu.flushSync(()=>{b(z=>x(z,A))})},T=()=>{y.current=0,$()};let k;const M=wu(T),I=c.current,N=ea(I);N.addEventListener("resize",M);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(T),E.observe(I)),()=>{M.clear(),cancelAnimationFrame(k),N.removeEventListener("resize",M),E&&E.disconnect()}},[C]),pn(()=>{w()}),m.useEffect(()=>{y.current=0},[s]);const S=$=>{y.current=0,u||w(),r&&r($)};return g.jsxs(m.Fragment,{children:[g.jsx("textarea",P({value:s,onChange:S,ref:f,rows:i,style:P({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},a)},l)),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:P({},rde.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function y4(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xj(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=y4(c));const f=c?s.filter(p=>{let y=(i||u)(p);return n&&(y=y.toLowerCase()),t&&(y=y4(y)),o==="start"?y.indexOf(c)===0:y.indexOf(c)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function yS(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function sde(e){const{unstable_isActiveElementInListbox:t=ade,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:y,disabledItemsFocusable:v=!1,disableListWrap:b=!1,filterOptions:C=ide,filterSelectedOptions:x=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionLabel:$=_e=>{var we;return(we=_e.label)!=null?we:_e},groupBy:T,handleHomeEndKeys:k=!e.freeSolo,id:M,includeInputInList:I=!1,inputValue:N,isOptionEqualToValue:E=(_e,we)=>_e===we,multiple:A=!1,onChange:z,onClose:L,onHighlightChange:O,onInputChange:D,onOpen:H,open:B,openOnFocus:j=!1,options:W,readOnly:U=!1,selectOnFocus:Z=!e.freeSolo,value:Y}=e,se=ln(M);let Q=$;Q=_e=>{const we=$(_e);return typeof we!="string"?String(we):we};const ne=m.useRef(!1),re=m.useRef(!0),ge=m.useRef(null),xe=m.useRef(null),[fe,Se]=m.useState(null),[de,ie]=m.useState(-1),Pe=o?0:-1,$e=m.useRef(Pe),[me,ue]=nu({controlled:Y,default:c,name:u}),[ce,Te]=nu({controlled:N,default:"",name:u,state:"inputValue"}),[Le,Re]=m.useState(!1),Oe=m.useCallback((_e,we)=>{if(!(A?me.length!(x&&(A?me:[me]).some(we=>we!==null&&E(_e,we)))),{inputValue:De&&pe?"":ce,getOptionLabel:Q}):[],Ce=sM({filteredOptions:Ee,value:me,inputValue:ce});m.useEffect(()=>{const _e=me!==Ce.value;Le&&!_e||w&&!_e||Oe(null,me)},[me,Oe,Le,Ce.value,w]);const Qe=K&&Ee.length>0&&!U,Ct=Dn(_e=>{_e===-1?ge.current.focus():fe.querySelector(`[data-tag-index="${_e}"]`).focus()});m.useEffect(()=>{A&&de>me.length-1&&(ie(-1),Ct(-1))},[me,A,de,Ct]);function et(_e,we){if(!xe.current||_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===Ee.length||we==="previous"&&Fe===-1)return-1;const rt=xe.current.querySelector(`[data-option-index="${Fe}"]`),Tt=v?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||Tt)Fe+=we==="next"?1:-1;else return Fe}}const Be=Dn(({event:_e,index:we,reason:Fe="auto"})=>{if($e.current=we,we===-1?ge.current.removeAttribute("aria-activedescendant"):ge.current.setAttribute("aria-activedescendant",`${se}-option-${we}`),O&&O(_e,we===-1?null:Ee[we],Fe),!xe.current)return;const rt=xe.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let Tt=xe.current;if(xe.current.getAttribute("role")!=="listbox"&&(Tt=xe.current.parentElement.querySelector('[role="listbox"]')),!Tt)return;if(we===-1){Tt.scrollTop=0;return}const en=xe.current.querySelector(`[data-option-index="${we}"]`);if(en&&(en.classList.add(`${n}-focused`),Fe==="keyboard"&&en.classList.add(`${n}-focusVisible`),Tt.scrollHeight>Tt.clientHeight&&Fe!=="mouse"&&Fe!=="touch")){const _n=en,ct=Tt.clientHeight+Tt.scrollTop,gt=_n.offsetTop+_n.offsetHeight;gt>ct?Tt.scrollTop=gt-Tt.clientHeight:_n.offsetTop-_n.offsetHeight*(T?1.3:0){if(!Ae)return;const en=et((()=>{const _n=Ee.length-1;if(we==="reset")return Pe;if(we==="start")return 0;if(we==="end")return _n;const ct=$e.current+we;return ct<0?ct===-1&&I?-1:b&&$e.current!==-1||Math.abs(we)>1?0:_n:ct>_n?ct===_n+1&&I?-1:b||Math.abs(we)>1?_n:0:ct})(),Fe);if(Be({index:en,reason:rt,event:_e}),r&&we!=="reset")if(en===-1)ge.current.value=ce;else{const _n=Q(Ee[en]);ge.current.value=_n,_n.toLowerCase().indexOf(ce.toLowerCase())===0&&ce.length>0&&ge.current.setSelectionRange(ce.length,_n.length)}}),X=()=>{const _e=(we,Fe)=>{const rt=we?Q(we):"",Tt=Fe?Q(Fe):"";return rt===Tt};if($e.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Ee.length&&Ce.inputValue===ce&&(A?me.length===Ce.value.length&&Ce.value.every((we,Fe)=>Q(me[Fe])===Q(we)):_e(Ce.value,me))){const we=Ce.filteredOptions[$e.current];if(we&&Ee.some(rt=>Q(rt)===Q(we)))return!0}return!1},oe=m.useCallback(()=>{if(!Ae||X())return;const _e=A?me[0]:me;if(Ee.length===0||_e==null){te({diff:"reset"});return}if(xe.current){if(_e!=null){const we=Ee[$e.current];if(A&&we&&yS(me,rt=>E(we,rt))!==-1)return;const Fe=yS(Ee,rt=>E(rt,_e));Fe===-1?te({diff:"reset"}):Be({index:Fe});return}if($e.current>=Ee.length-1){Be({index:Ee.length-1});return}Be({index:$e.current})}},[Ee.length,A?!1:me,x,te,Be,Ae,ce,A]),Ie=Dn(_e=>{Dc(xe,_e),_e&&oe()});m.useEffect(()=>{oe()},[oe]);const Ve=_e=>{K||(ee(!0),ye(!0),H&&H(_e))},Ke=(_e,we)=>{K&&(ee(!1),L&&L(_e,we))},at=(_e,we,Fe,rt)=>{if(A){if(me.length===we.length&&me.every((Tt,en)=>Tt===we[en]))return}else if(me===we)return;z&&z(_e,we,Fe,rt),ue(we)},Je=m.useRef(!1),nt=(_e,we,Fe="selectOption",rt="options")=>{let Tt=Fe,en=we;if(A){en=Array.isArray(me)?me.slice():[];const _n=yS(en,ct=>E(we,ct));_n===-1?en.push(we):rt!=="freeSolo"&&(en.splice(_n,1),Tt="removeOption")}Oe(_e,en),at(_e,en,Tt,{option:we}),!p&&(!_e||!_e.ctrlKey&&!_e.metaKey)&&Ke(_e,Tt),(a===!0||a==="touch"&&Je.current||a==="mouse"&&!Je.current)&&ge.current.blur()};function _t(_e,we){if(_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===me.length||we==="previous"&&Fe===-1)return-1;const rt=fe.querySelector(`[data-tag-index="${Fe}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Fe+=we==="next"?1:-1;else return Fe}}const ht=(_e,we)=>{if(!A)return;ce===""&&Ke(_e,"toggleInput");let Fe=de;de===-1?ce===""&&we==="previous"&&(Fe=me.length-1):(Fe+=we==="next"?1:-1,Fe<0&&(Fe=0),Fe===me.length&&(Fe=-1)),Fe=_t(Fe,we),ie(Fe),Ct(Fe)},lt=_e=>{ne.current=!0,Te(""),D&&D(_e,"","clear"),at(_e,A?[]:null,"clear")},Rt=_e=>we=>{if(_e.onKeyDown&&_e.onKeyDown(we),!we.defaultMuiPrevented&&(de!==-1&&["ArrowLeft","ArrowRight"].indexOf(we.key)===-1&&(ie(-1),Ct(-1)),we.which!==229))switch(we.key){case"Home":Ae&&k&&(we.preventDefault(),te({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":Ae&&k&&(we.preventDefault(),te({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),te({diff:-b4,direction:"previous",reason:"keyboard",event:we}),Ve(we);break;case"PageDown":we.preventDefault(),te({diff:b4,direction:"next",reason:"keyboard",event:we}),Ve(we);break;case"ArrowDown":we.preventDefault(),te({diff:1,direction:"next",reason:"keyboard",event:we}),Ve(we);break;case"ArrowUp":we.preventDefault(),te({diff:-1,direction:"previous",reason:"keyboard",event:we}),Ve(we);break;case"ArrowLeft":ht(we,"previous");break;case"ArrowRight":ht(we,"next");break;case"Enter":if($e.current!==-1&&Ae){const Fe=Ee[$e.current],rt=S?S(Fe):!1;if(we.preventDefault(),rt)return;nt(we,Fe,"selectOption"),r&&ge.current.setSelectionRange(ge.current.value.length,ge.current.value.length)}else w&&ce!==""&&De===!1&&(A&&we.preventDefault(),nt(we,ce,"createOption","freeSolo"));break;case"Escape":Ae?(we.preventDefault(),we.stopPropagation(),Ke(we,"escape")):l&&(ce!==""||A&&me.length>0)&&(we.preventDefault(),we.stopPropagation(),lt(we));break;case"Backspace":if(A&&!U&&ce===""&&me.length>0){const Fe=de===-1?me.length-1:de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break;case"Delete":if(A&&!U&&ce===""&&me.length>0&&de!==-1){const Fe=de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break}},jt=_e=>{Re(!0),j&&!ne.current&&Ve(_e)},dn=_e=>{if(t(xe)){ge.current.focus();return}Re(!1),re.current=!0,ne.current=!1,i&&$e.current!==-1&&Ae?nt(_e,Ee[$e.current],"blur"):i&&w&&ce!==""?nt(_e,ce,"blur","freeSolo"):s&&Oe(_e,me),Ke(_e,"blur")},hn=_e=>{const we=_e.target.value;ce!==we&&(Te(we),ye(!1),D&&D(_e,we,"input")),we===""?!f&&!A&&at(_e,null,"clear"):Ve(_e)},Pt=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));$e.current!==we&&Be({event:_e,index:we,reason:"mouse"})},zt=_e=>{Be({event:_e,index:Number(_e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Je.current=!0},un=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));nt(_e,Ee[we],"selectOption"),Je.current=!1},cn=_e=>we=>{const Fe=me.slice();Fe.splice(_e,1),at(we,Fe,"removeOption",{option:me[_e]})},ut=_e=>{K?Ke(_e,"toggleInput"):Ve(_e)},mt=_e=>{_e.currentTarget.contains(_e.target)&&_e.target.getAttribute("id")!==se&&_e.preventDefault()},Ot=_e=>{_e.currentTarget.contains(_e.target)&&(ge.current.focus(),Z&&re.current&&ge.current.selectionEnd-ge.current.selectionStart===0&&ge.current.select(),re.current=!1)},At=_e=>{!y&&(ce===""||!K)&&ut(_e)};let tt=w&&ce.length>0;tt=tt||(A?me.length>0:me!==null);let Ut=Ee;return T&&(Ut=Ee.reduce((_e,we,Fe)=>{const rt=T(we);return _e.length>0&&_e[_e.length-1].group===rt?_e[_e.length-1].options.push(we):_e.push({key:Fe,index:Fe,group:rt,options:[we]}),_e},[])),y&&Le&&dn(),{getRootProps:(_e={})=>P({"aria-owns":Qe?`${se}-listbox`:null},_e,{onKeyDown:Rt(_e),onMouseDown:mt,onClick:Ot}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:ce,onBlur:dn,onFocus:jt,onChange:hn,onMouseDown:At,"aria-activedescendant":Ae?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Qe?`${se}-listbox`:void 0,"aria-expanded":Qe,autoComplete:"off",ref:ge,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ut}),getTagProps:({index:_e})=>P({key:_e,"data-tag-index":_e,tabIndex:-1},!U&&{onDelete:cn(_e)}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:Ie,onMouseDown:_e=>{_e.preventDefault()}}),getOptionProps:({index:_e,option:we})=>{const Fe=(A?me:[me]).some(Tt=>Tt!=null&&E(we,Tt)),rt=S?S(we):!1;return{key:Q(we),tabIndex:-1,role:"option",id:`${se}-option-${_e}`,onMouseMove:Pt,onClick:un,onTouchStart:zt,"data-option-index":_e,"aria-disabled":rt,"aria-selected":Fe}},id:se,inputValue:ce,value:me,dirty:tt,expanded:Ae&&fe,popupOpen:Ae,focused:Le||de!==-1,anchorEl:fe,setAnchorEl:Se,focusedTag:de,groupedOptions:Ut}}const lde=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ude=ke(Gce,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cde=m.forwardRef(function(t,n){var r;const o=_j(),i=$t({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w,slots:S,slotProps:$}=i,T=be(i,lde),k=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,M=P({anchorEl:a,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w},T);return g.jsx(ude,P({as:s,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:$??u},M,{ref:n}))}),ad=cde;function dde(e){return yt("MuiListSubheader",e)}bt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fde=["className","color","component","disableGutters","disableSticky","inset"],pde=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return qe(a,dde,t)},hde=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Qj=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=be(r,fde),f=P({},r,{color:i,component:a,disableGutters:s,disableSticky:l,inset:u}),p=pde(f);return g.jsx(hde,P({as:a,className:ze(p.root,o),ref:n,ownerState:f},c))});Qj.muiSkipListHighlight=!0;const mde=Qj,gde=xt(g.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function vde(e){return yt("MuiChip",e)}const yde=bt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mn=yde,bde=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xde=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,a&&"deletable",a&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(i)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return qe(u,vde,t)},wde=ke("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${mn.avatar}`]:t.avatar},{[`& .${mn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${mn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${mn.icon}`]:t.icon},{[`& .${mn.icon}`]:t[`icon${je(s)}`]},{[`& .${mn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${mn.deleteIcon}`]:t.deleteIcon},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${je(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${mn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mn.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${mn.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Lt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Lt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Lt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mn.avatar}`]:{marginLeft:4},[`& .${mn.avatarSmall}`]:{marginLeft:2},[`& .${mn.icon}`]:{marginLeft:4},[`& .${mn.iconSmall}`]:{marginLeft:2},[`& .${mn.deleteIcon}`]:{marginRight:5},[`& .${mn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Lt(e.palette[t.color].main,.7)}`,[`&.${mn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Lt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${mn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Lt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Cde=ke("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function x4(e){return e.key==="Backspace"||e.key==="Delete"}const Sde=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:p,onClick:y,onDelete:v,onKeyDown:b,onKeyUp:C,size:x="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:$=!1}=r,T=be(r,bde),k=m.useRef(null),M=on(k,n),I=W=>{W.stopPropagation(),v&&v(W)},N=W=>{W.currentTarget===W.target&&x4(W)&&W.preventDefault(),b&&b(W)},E=W=>{W.currentTarget===W.target&&(v&&x4(W)?v(W):W.key==="Escape"&&k.current&&k.current.blur()),C&&C(W)},A=a!==!1&&y?!0:a,z=A||v?cu:l||"div",L=P({},r,{component:z,disabled:c,size:x,color:s,iconColor:m.isValidElement(f)&&f.props.color||s,onDelete:!!v,clickable:A,variant:w}),O=xde(L),D=z===cu?P({component:l||"div",focusVisibleClassName:O.focusVisible},v&&{disableRipple:!0}):{};let H=null;v&&(H=u&&m.isValidElement(u)?m.cloneElement(u,{className:ze(u.props.className,O.deleteIcon),onClick:I}):g.jsx(gde,{className:ze(O.deleteIcon),onClick:I}));let B=null;o&&m.isValidElement(o)&&(B=m.cloneElement(o,{className:ze(O.avatar,o.props.className)}));let j=null;return f&&m.isValidElement(f)&&(j=m.cloneElement(f,{className:ze(O.icon,f.props.className)})),g.jsxs(wde,P({as:z,className:ze(O.root,i),disabled:A&&c?!0:void 0,onClick:y,onKeyDown:N,onKeyUp:E,ref:M,tabIndex:$&&c?-1:S,ownerState:L},D,T,{children:[B||j,g.jsx(Cde,{className:ze(O.label),ownerState:L,children:p}),H]}))}),Zj=Sde;function Su({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const $de=m.createContext(void 0),Ox=$de;function bs(){return m.useContext(Ox)}function Jj(e){return g.jsx(Qae,P({},e,{defaultTheme:Ex,themeId:e0}))}function w4(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Sy(e,t=!1){return e&&(w4(e.value)&&e.value!==""||t&&w4(e.defaultValue)&&e.defaultValue!=="")}function _de(e){return e.startAdornment}function kde(e){return yt("MuiInputBase",e)}const Pde=bt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),li=Pde,Mde=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ax=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Fx=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Tde=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:p,startAdornment:y,type:v}=e,b={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,c&&"multiline",y&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return qe(b,kde,t)},Lx=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ax})(({theme:e,ownerState:t})=>P({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Dx=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fx})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${li.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${li.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ede=g.jsx(Jj,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ide=m.forwardRef(function(t,n){var r;const o=$t({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:b=!1,id:C,inputComponent:x="input",inputProps:w={},inputRef:S,maxRows:$,minRows:T,multiline:k=!1,name:M,onBlur:I,onChange:N,onClick:E,onFocus:A,onKeyDown:z,onKeyUp:L,placeholder:O,readOnly:D,renderSuffix:H,rows:B,slotProps:j={},slots:W={},startAdornment:U,type:Z="text",value:Y}=o,se=be(o,Mde),Q=w.value!=null?w.value:Y,{current:ne}=m.useRef(Q!=null),re=m.useRef(),ge=m.useCallback(Ee=>{},[]),xe=on(re,S,w.ref,ge),[fe,Se]=m.useState(!1),de=bs(),ie=Su({props:o,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=de?de.focused:fe,m.useEffect(()=>{!de&&p&&fe&&(Se(!1),I&&I())},[de,p,fe,I]);const Pe=de&&de.onFilled,$e=de&&de.onEmpty,me=m.useCallback(Ee=>{Sy(Ee)?Pe&&Pe():$e&&$e()},[Pe,$e]);pn(()=>{ne&&me({value:Q})},[Q,me,ne]);const ue=Ee=>{if(ie.disabled){Ee.stopPropagation();return}A&&A(Ee),w.onFocus&&w.onFocus(Ee),de&&de.onFocus?de.onFocus(Ee):Se(!0)},ce=Ee=>{I&&I(Ee),w.onBlur&&w.onBlur(Ee),de&&de.onBlur?de.onBlur(Ee):Se(!1)},Te=(Ee,...Ce)=>{if(!ne){const Qe=Ee.target||re.current;if(Qe==null)throw new Error(uu(1));me({value:Qe.value})}w.onChange&&w.onChange(Ee,...Ce),N&&N(Ee,...Ce)};m.useEffect(()=>{me(re.current)},[]);const Le=Ee=>{re.current&&Ee.currentTarget===Ee.target&&re.current.focus(),E&&E(Ee)};let Re=x,Oe=w;k&&Re==="input"&&(B?Oe=P({type:void 0,minRows:B,maxRows:B},Oe):Oe=P({type:void 0,maxRows:$,minRows:T},Oe),Re=ode);const K=Ee=>{me(Ee.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};m.useEffect(()=>{de&&de.setAdornedStart(!!U)},[de,U]);const ee=P({},o,{color:ie.color||"primary",disabled:ie.disabled,endAdornment:v,error:ie.error,focused:ie.focused,formControl:de,fullWidth:b,hiddenLabel:ie.hiddenLabel,multiline:k,size:ie.size,startAdornment:U,type:Z}),pe=Tde(ee),ye=W.root||u.Root||Lx,De=j.root||c.root||{},Ae=W.input||u.Input||Dx;return Oe=P({},Oe,(r=j.input)!=null?r:c.input),g.jsxs(m.Fragment,{children:[!y&&Ede,g.jsxs(ye,P({},De,!og(ye)&&{ownerState:P({},ee,De.ownerState)},{ref:n,onClick:Le},se,{className:ze(pe.root,De.className,l,D&&"MuiInputBase-readOnly"),children:[U,g.jsx(Ox.Provider,{value:null,children:g.jsx(Ae,P({ownerState:ee,"aria-invalid":ie.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:ie.disabled,id:C,onAnimationStart:K,name:M,placeholder:O,readOnly:D,required:ie.required,rows:B,value:Q,onKeyDown:z,onKeyUp:L,type:Z},Oe,!og(Ae)&&{as:Re,ownerState:P({},ee,Oe.ownerState)},{ref:xe,className:ze(pe.input,Oe.className,D&&"MuiInputBase-readOnly"),onBlur:ce,onChange:Te,onFocus:ue}))}),v,H?H(P({},ie,{startAdornment:U})):null]}))]})}),sd=Ide;function Rde(e){return yt("MuiInput",e)}const Ode=P({},li,bt("MuiInput",["root","underline","input"])),Nl=Ode;function Ade(e){return yt("MuiOutlinedInput",e)}const Fde=P({},li,bt("MuiOutlinedInput",["root","notchedOutline","input"])),Ba=Fde;function Lde(e){return yt("MuiFilledInput",e)}const Dde=P({},li,bt("MuiFilledInput",["root","underline","input"])),ui=Dde,eN=xt(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jde(e){return yt("MuiAutocomplete",e)}const Nde=bt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=Nde;var C4,S4;const zde=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Bde=["ref"],Hde=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return qe(f,jde,t)},Wde=ke("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>P({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:P({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Nl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Nl.root}.${li.sizeSmall}`]:{[`& .${Nl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ba.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Ba.root}.${li.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ui.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${ui.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ui.root}.${li.sizeSmall}`]:{paddingBottom:1,[`& .${ui.input}`]:{padding:"2.5px 4px"}},[`& .${li.hiddenLabel}`]:{paddingTop:8},[`& .${ui.root}.${li.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ui.root}.${li.hiddenLabel}.${li.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Vde=ke("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Ude=ke(wo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Gde=ke(wo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),qde=ke(ad,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Kde=ke(id,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),Yde=ke("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Xde=ke("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Qde=ke("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Zde=ke(mde,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Jde=ke("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),efe=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:p,className:y,clearIcon:v=C4||(C4=g.jsx(oue,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:C=!1,clearText:x="Clear",closeText:w="Close",componentsProps:S={},defaultValue:$=s.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:k=!1,disabled:M=!1,disabledItemsFocusable:I=!1,disableListWrap:N=!1,disablePortal:E=!1,filterSelectedOptions:A=!1,forcePopupIcon:z="auto",freeSolo:L=!1,fullWidth:O=!1,getLimitTagsText:D=Fe=>`+${Fe}`,getOptionLabel:H,groupBy:B,handleHomeEndKeys:j=!s.freeSolo,includeInputInList:W=!1,limitTags:U=-1,ListboxComponent:Z="ul",ListboxProps:Y,loading:se=!1,loadingText:Q="Loading…",multiple:ne=!1,noOptionsText:re="No options",openOnFocus:ge=!1,openText:xe="Open",PaperComponent:fe=id,PopperComponent:Se=ad,popupIcon:de=S4||(S4=g.jsx(eN,{})),readOnly:ie=!1,renderGroup:Pe,renderInput:$e,renderOption:me,renderTags:ue,selectOnFocus:ce=!s.freeSolo,size:Te="medium",slotProps:Le={}}=s,Re=be(s,zde),{getRootProps:Oe,getInputProps:K,getInputLabelProps:ee,getPopupIndicatorProps:pe,getClearProps:ye,getTagProps:De,getListboxProps:Ae,getOptionProps:Ee,value:Ce,dirty:Qe,expanded:Ct,id:et,popupOpen:Be,focused:te,focusedTag:X,anchorEl:oe,setAnchorEl:Ie,inputValue:Ve,groupedOptions:Ke}=sde(P({},s,{componentName:"Autocomplete"})),at=!T&&!M&&Qe&&!ie,Je=(!L||z===!0)&&z!==!1,{onMouseDown:nt}=K(),{ref:_t}=Y??{},ht=Ae(),{ref:lt}=ht,Rt=be(ht,Bde),jt=on(lt,_t),hn=H||(Fe=>{var rt;return(rt=Fe.label)!=null?rt:Fe}),Pt=P({},s,{disablePortal:E,expanded:Ct,focused:te,fullWidth:O,getOptionLabel:hn,hasClearIcon:at,hasPopupIcon:Je,inputFocused:X===-1,popupOpen:Be,size:Te}),zt=Hde(Pt);let un;if(ne&&Ce.length>0){const Fe=rt=>P({className:zt.tag,disabled:M},De(rt));ue?un=ue(Ce,Fe,Pt):un=Ce.map((rt,Tt)=>g.jsx(Zj,P({label:hn(rt),size:Te},Fe({index:Tt}),p)))}if(U>-1&&Array.isArray(un)){const Fe=un.length-U;!te&&Fe>0&&(un=un.splice(0,U),un.push(g.jsx("span",{className:zt.tag,children:D(Fe)},un.length)))}const ut=Pe||(Fe=>g.jsxs("li",{children:[g.jsx(Zde,{className:zt.groupLabel,ownerState:Pt,component:"div",children:Fe.group}),g.jsx(Jde,{className:zt.groupUl,ownerState:Pt,children:Fe.children})]},Fe.key)),Ot=me||((Fe,rt)=>g.jsx("li",P({},Fe,{children:hn(rt)}))),At=(Fe,rt)=>{const Tt=Ee({option:Fe,index:rt});return Ot(P({},Tt,{className:zt.option}),Fe,{selected:Tt["aria-selected"],index:rt,inputValue:Ve},Pt)},tt=(r=Le.clearIndicator)!=null?r:S.clearIndicator,Ut=(o=Le.paper)!=null?o:S.paper,_e=(i=Le.popper)!=null?i:S.popper,we=(a=Le.popupIndicator)!=null?a:S.popupIndicator;return g.jsxs(m.Fragment,{children:[g.jsx(Wde,P({ref:n,className:ze(zt.root,y),ownerState:Pt},Oe(Re),{children:$e({id:et,disabled:M,fullWidth:!0,size:Te==="small"?"small":void 0,InputLabelProps:ee(),InputProps:P({ref:Ie,className:zt.inputRoot,startAdornment:un,onClick:Fe=>{Fe.target===Fe.currentTarget&&nt(Fe)}},(at||Je)&&{endAdornment:g.jsxs(Vde,{className:zt.endAdornment,ownerState:Pt,children:[at?g.jsx(Ude,P({},ye(),{"aria-label":x,title:x,ownerState:Pt},tt,{className:ze(zt.clearIndicator,tt==null?void 0:tt.className),children:v})):null,Je?g.jsx(Gde,P({},pe(),{disabled:M,"aria-label":Be?w:xe,title:Be?w:xe,ownerState:Pt},we,{className:ze(zt.popupIndicator,we==null?void 0:we.className),children:de})):null]})}),inputProps:P({className:zt.input,disabled:M,readOnly:ie},K())})})),oe?g.jsx(qde,P({as:Se,disablePortal:E,style:{width:oe?oe.clientWidth:null},ownerState:Pt,role:"presentation",anchorEl:oe,open:Be},_e,{className:ze(zt.popper,_e==null?void 0:_e.className),children:g.jsxs(Kde,P({ownerState:Pt,as:fe},Ut,{className:ze(zt.paper,Ut==null?void 0:Ut.className),children:[se&&Ke.length===0?g.jsx(Yde,{className:zt.loading,ownerState:Pt,children:Q}):null,Ke.length===0&&!L&&!se?g.jsx(Xde,{className:zt.noOptions,ownerState:Pt,role:"presentation",onMouseDown:Fe=>{Fe.preventDefault()},children:re}):null,Ke.length>0?g.jsx(Qde,P({as:Z,className:zt.listbox,ownerState:Pt},Rt,Y,{ref:jt,children:Ke.map((Fe,rt)=>B?ut({key:Fe.key,group:Fe.group,children:Fe.options.map((Tt,en)=>At(Tt,Fe.index+en))}):At(Fe,rt))})):null]}))})):null]})}),tN=efe,tfe=xt(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function nfe(e){return yt("MuiAvatar",e)}bt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const rfe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],ofe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},nfe,t)},ife=ke("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&P({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),afe=ke("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),sfe=ke(tfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function lfe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=m.useState(!1);return m.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const ufe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:p="circular"}=r,y=be(r,rfe);let v=null;const b=lfe(P({},l,{src:c,srcSet:f})),C=c||f,x=C&&b!=="error",w=P({},r,{colorDefault:!x,component:s,variant:p}),S=ofe(w);return x?v=g.jsx(afe,P({alt:o,srcSet:f,src:c,sizes:u,ownerState:w,className:S.img},l)):i!=null?v=i:C&&o?v=o[0]:v=g.jsx(sfe,{ownerState:w,className:S.fallback}),g.jsx(ife,P({as:s,ownerState:w,className:ze(S.root,a),ref:n},y,{children:v}))}),$y=ufe,cfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dfe={entering:{opacity:1},entered:{opacity:1}},ffe=m.forwardRef(function(t,n){const r=Xt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:y,onExited:v,onExiting:b,style:C,timeout:x=o,TransitionComponent:w=Aj}=t,S=be(t,cfe),$=m.useRef(null),T=on($,s.ref,n),k=O=>D=>{if(O){const H=$.current;D===void 0?O(H):O(H,D)}},M=k(p),I=k((O,D)=>{Fj(O);const H=wy({style:C,timeout:x,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",H),O.style.transition=r.transitions.create("opacity",H),c&&c(O,D)}),N=k(f),E=k(b),A=k(O=>{const D=wy({style:C,timeout:x,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",D),O.style.transition=r.transitions.create("opacity",D),y&&y(O)}),z=k(v),L=O=>{i&&i($.current,O)};return g.jsx(w,P({appear:a,in:u,nodeRef:$,onEnter:I,onEntered:N,onEntering:M,onExit:A,onExited:z,onExiting:E,addEndListener:L,timeout:x},S,{children:(O,D)=>m.cloneElement(s,P({style:P({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},dfe[O],C,s.props.style),ref:T},D))}))}),pfe=ffe;function hfe(e){return yt("MuiBackdrop",e)}bt("MuiBackdrop",["root","invisible"]);const mfe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gfe=e=>{const{classes:t,invisible:n}=e;return qe({root:["root",n&&"invisible"]},hfe,t)},vfe=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),yfe=m.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:p=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:C=pfe,transitionDuration:x}=a,w=be(a,mfe),S=P({},a,{component:u,invisible:p}),$=gfe(S),T=(r=v.root)!=null?r:f.root;return g.jsx(C,P({in:y,timeout:x},w,{children:g.jsx(vfe,P({"aria-hidden":!0},T,{as:(o=(i=b.root)!=null?i:c.Root)!=null?o:u,className:ze($.root,l,T==null?void 0:T.className),ownerState:P({},S,T==null?void 0:T.ownerState),classes:$,ref:n,children:s}))}))}),bfe=yfe;function xfe(e){return yt("MuiBadge",e)}const wfe=bt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),_l=wfe,Cfe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],bS=10,xS=4,Sfe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return qe(s,xfe,a)},$fe=ke("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_fe=ke("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>P({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:bS*2,lineHeight:1,padding:"0 6px",height:bS*2,borderRadius:bS,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:xS,height:xS*2,minWidth:xS*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),kfe=m.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p,components:y={},componentsProps:v={},children:b,overlap:C="rectangular",color:x="default",invisible:w=!1,max:S=99,badgeContent:$,slots:T,slotProps:k,showZero:M=!1,variant:I="standard"}=u,N=be(u,Cfe),{badgeContent:E,invisible:A,max:z,displayValue:L}=$ue({max:S,invisible:w,badgeContent:$,showZero:M}),O=sM({anchorOrigin:c,color:x,overlap:C,variant:I,badgeContent:$}),D=A||E==null&&I!=="dot",{color:H=x,overlap:B=C,anchorOrigin:j=c,variant:W=I}=D?O:u,U=W!=="dot"?L:void 0,Z=P({},u,{badgeContent:E,invisible:D,max:z,displayValue:U,showZero:M,anchorOrigin:j,color:H,overlap:B,variant:W}),Y=Sfe(Z),se=(r=(o=T==null?void 0:T.root)!=null?o:y.Root)!=null?r:$fe,Q=(i=(a=T==null?void 0:T.badge)!=null?a:y.Badge)!=null?i:_fe,ne=(s=k==null?void 0:k.root)!=null?s:v.root,re=(l=k==null?void 0:k.badge)!=null?l:v.badge,ge=xi({elementType:se,externalSlotProps:ne,externalForwardedProps:N,additionalProps:{ref:n,as:p},ownerState:Z,className:ze(ne==null?void 0:ne.className,Y.root,f)}),xe=xi({elementType:Q,externalSlotProps:re,ownerState:Z,className:ze(Y.badge,re==null?void 0:re.className)});return g.jsxs(se,P({},ge,{children:[b,g.jsx(Q,P({},xe,{children:U}))]}))}),OM=kfe,Pfe=SM(),Mfe=Pj({themeId:e0,defaultTheme:Pfe,defaultClassName:"MuiBox-root",generateClassName:uM.generate}),Ue=Mfe;function Tfe(e){return yt("MuiButton",e)}const Efe=bt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Dv=Efe,Ife=m.createContext({}),Rfe=Ife,Ofe=m.createContext(void 0),Afe=Ofe,Ffe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Lfe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${je(t)}`,`size${je(o)}`,`${i}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=qe(s,Tfe,a);return P({},a,l)},nN=e=>P({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Dfe=ke(cu,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return P({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Dv.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Dv.disabled}`]:P({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Lt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Dv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Dv.disabled}`]:{boxShadow:"none"}}),jfe=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},nN(e))),Nfe=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},nN(e))),zfe=m.forwardRef(function(t,n){const r=m.useContext(Rfe),o=m.useContext(Afe),i=lM(r,t),a=$t({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:C=!1,size:x="medium",startIcon:w,type:S,variant:$="text"}=a,T=be(a,Ffe),k=P({},a,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:y,fullWidth:C,size:x,type:S,variant:$}),M=Lfe(k),I=w&&g.jsx(jfe,{className:M.startIcon,ownerState:k,children:w}),N=v&&g.jsx(Nfe,{className:M.endIcon,ownerState:k,children:v}),E=o||"";return g.jsxs(Dfe,P({ownerState:k,className:ze(r.className,M.root,c,E),component:u,disabled:f,focusRipple:!y,focusVisibleClassName:ze(M.focusVisible,b),ref:n,type:S},T,{classes:M,children:[I,s,N]}))}),fs=zfe;function Bfe(e){return yt("MuiCard",e)}bt("MuiCard",["root"]);const Hfe=["className","raised"],Wfe=e=>{const{classes:t}=e;return qe({root:["root"]},Bfe,t)},Vfe=ke(id,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Ufe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=be(r,Hfe),s=P({},r,{raised:i}),l=Wfe(s);return g.jsx(Vfe,P({className:ze(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),Gfe=Ufe;function qfe(e){return yt("MuiCardContent",e)}bt("MuiCardContent",["root"]);const Kfe=["className","component"],Yfe=e=>{const{classes:t}=e;return qe({root:["root"]},qfe,t)},Xfe=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Qfe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=be(r,Kfe),s=P({},r,{component:i}),l=Yfe(s);return g.jsx(Xfe,P({as:i,className:ze(l.root,o),ownerState:s,ref:n},a))}),_i=Qfe;function Zfe(e){return yt("MuiCardHeader",e)}const Jfe=bt("MuiCardHeader",["root","avatar","action","content","title","subheader"]),$4=Jfe,epe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],tpe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Zfe,t)},npe=ke("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>P({[`& .${$4.title}`]:t.title,[`& .${$4.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),rpe=ke("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ope=ke("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),ipe=ke("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),ape=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:s="div",disableTypography:l=!1,subheader:u,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=r,y=be(r,epe),v=P({},r,{component:s,disableTypography:l}),b=tpe(v);let C=f;C!=null&&C.type!==Ze&&!l&&(C=g.jsx(Ze,P({variant:i?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:C})));let x=u;return x!=null&&x.type!==Ze&&!l&&(x=g.jsx(Ze,P({variant:i?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),g.jsxs(npe,P({className:ze(b.root,a),as:s,ref:n,ownerState:v},y,{children:[i&&g.jsx(rpe,{className:b.avatar,ownerState:v,children:i}),g.jsxs(ipe,{className:b.content,ownerState:v,children:[C,x]}),o&&g.jsx(ope,{className:b.action,ownerState:v,children:o})]}))}),spe=ape;function lpe(e){return yt("PrivateSwitchBase",e)}bt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const upe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],cpe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return qe(i,lpe,t)},dpe=ke(cu)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),fpe=ke("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ppe=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:p,inputProps:y,inputRef:v,name:b,onBlur:C,onChange:x,onFocus:w,readOnly:S,required:$=!1,tabIndex:T,type:k,value:M}=t,I=be(t,upe),[N,E]=nu({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),A=bs(),z=W=>{w&&w(W),A&&A.onFocus&&A.onFocus(W)},L=W=>{C&&C(W),A&&A.onBlur&&A.onBlur(W)},O=W=>{if(W.nativeEvent.defaultPrevented)return;const U=W.target.checked;E(U),x&&x(W,U)};let D=l;A&&typeof D>"u"&&(D=A.disabled);const H=k==="checkbox"||k==="radio",B=P({},t,{checked:N,disabled:D,disableFocusRipple:u,edge:c}),j=cpe(B);return g.jsxs(dpe,P({component:"span",className:ze(j.root,a),centerRipple:!0,focusRipple:!u,disabled:D,tabIndex:null,role:void 0,onFocus:z,onBlur:L,ownerState:B,ref:n},I,{children:[g.jsx(fpe,P({autoFocus:r,checked:o,defaultChecked:s,className:j.input,disabled:D,id:H?p:void 0,name:b,onChange:O,readOnly:S,ref:v,required:$,ownerState:B,tabIndex:T,type:k},k==="checkbox"&&M===void 0?{}:{value:M},y)),N?i:f]}))}),rN=ppe,hpe=xt(g.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),mpe=xt(g.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),gpe=xt(g.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function vpe(e){return yt("MuiCheckbox",e)}const ype=bt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),wS=ype,bpe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xpe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},a=qe(i,vpe,t);return P({},t,a)},wpe=ke(rN,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${wS.checked}, &.${wS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${wS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Cpe=g.jsx(mpe,{}),Spe=g.jsx(hpe,{}),$pe=g.jsx(gpe,{}),_pe=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Cpe,color:s="primary",icon:l=Spe,indeterminate:u=!1,indeterminateIcon:c=$pe,inputProps:f,size:p="medium",className:y}=i,v=be(i,bpe),b=u?c:l,C=u?c:a,x=P({},i,{color:s,indeterminate:u,size:p}),w=xpe(x);return g.jsx(wpe,P({type:"checkbox",inputProps:P({"data-indeterminate":u},f),icon:m.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:m.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:p}),ownerState:x,ref:n,className:ze(w.root,y)},v,{classes:w}))}),I_=_pe;function kpe(e){return yt("MuiCircularProgress",e)}bt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ppe=["className","color","disableShrink","size","style","thickness","value","variant"];let jx=e=>e,_4,k4,P4,M4;const kl=44,Mpe=od(_4||(_4=jx` 0% { transform: rotate(0deg); } @@ -168,7 +168,7 @@ Error generating stack: `+i.message+` 100% { transform: rotate(360deg); } -`)),Tpe=id(P4||(P4=Nx` +`)),Tpe=od(k4||(k4=jx` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -183,11 +183,11 @@ Error generating stack: `+i.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Epe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${je(r)}`],svg:["svg"],circle:["circle",`circle${je(n)}`,o&&"circleDisableShrink"]};return Ge(i,kpe,t)},Ipe=ke("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(({ownerState:e,theme:t})=>P({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&rg(M4||(M4=Nx` +`)),Epe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${je(r)}`],svg:["svg"],circle:["circle",`circle${je(n)}`,o&&"circleDisableShrink"]};return qe(i,kpe,t)},Ipe=ke("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(({ownerState:e,theme:t})=>P({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ng(P4||(P4=jx` animation: ${0} 1.4s linear infinite; - `),Mpe)),Rpe=ke("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ope=ke("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&rg(T4||(T4=Nx` + `),Mpe)),Rpe=ke("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ope=ke("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ng(M4||(M4=jx` animation: ${0} 1.4s ease-in-out infinite; - `),Tpe)),Ape=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=be(r,Ppe),y=P({},r,{color:i,disableShrink:a,size:s,thickness:u,value:c,variant:f}),v=Epe(y),b={},C={},x={};if(f==="determinate"){const w=2*Math.PI*((Ml-u)/2);b.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*w).toFixed(3)}px`,C.transform="rotate(-90deg)"}return g.jsx(Ipe,P({className:ze(v.root,o),style:P({width:s,height:s},C,l),ownerState:y,ref:n,role:"progressbar"},x,p,{children:g.jsx(Rpe,{className:v.svg,ownerState:y,viewBox:`${Ml/2} ${Ml/2} ${Ml} ${Ml}`,children:g.jsx(Ope,{className:v.circle,style:b,ownerState:y,cx:Ml,cy:Ml,r:(Ml-u)/2,fill:"none",strokeWidth:u})})}))}),Fpe=Ape,Lpe=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Dpe=e=>P({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),jpe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=P({html:Lpe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},Dpe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function Npe(e){const t=$t({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return g.jsxs(m.Fragment,{children:[g.jsx(tN,{styles:o=>jpe(o,r)}),n]})}function zpe(e){return yt("MuiModal",e)}bt("MuiModal",["root","hidden","backdrop"]);const Bpe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Hpe=e=>{const{open:t,exited:n,classes:r}=e;return Ge({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zpe,r)},Wpe=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vpe=ke(bfe,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Upe=m.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({name:"MuiModal",props:t}),{BackdropComponent:c=Vpe,BackdropProps:f,className:p,closeAfterTransition:y=!1,children:v,container:b,component:C,components:x={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:T=!1,disablePortal:k=!1,disableRestoreFocus:M=!1,disableScrollLock:I=!1,hideBackdrop:N=!1,keepMounted:E=!1,onBackdropClick:A,open:z,slotProps:L,slots:O}=u,D=be(u,Bpe),H=P({},u,{closeAfterTransition:y,disableAutoFocus:S,disableEnforceFocus:$,disableEscapeKeyDown:T,disablePortal:k,disableRestoreFocus:M,disableScrollLock:I,hideBackdrop:N,keepMounted:E}),{getRootProps:B,getBackdropProps:j,getTransitionProps:W,portalRef:U,isTopModal:Z,exited:Y,hasTransition:se}=tde(P({},H,{rootRef:n})),Q=P({},H,{exited:Y}),ne=Hpe(Q),re={};if(v.props.tabIndex===void 0&&(re.tabIndex="-1"),se){const{onEnter:Pe,onExited:$e}=W();re.onEnter=Pe,re.onExited=$e}const ge=(r=(o=O==null?void 0:O.root)!=null?o:x.Root)!=null?r:Wpe,xe=(i=(a=O==null?void 0:O.backdrop)!=null?a:x.Backdrop)!=null?i:c,fe=(s=L==null?void 0:L.root)!=null?s:w.root,Se=(l=L==null?void 0:L.backdrop)!=null?l:w.backdrop,de=xi({elementType:ge,externalSlotProps:fe,externalForwardedProps:D,getSlotProps:B,additionalProps:{ref:n,as:C},ownerState:Q,className:ze(p,fe==null?void 0:fe.className,ne==null?void 0:ne.root,!Q.open&&Q.exited&&(ne==null?void 0:ne.hidden))}),ie=xi({elementType:xe,externalSlotProps:Se,additionalProps:f,getSlotProps:Pe=>j(P({},Pe,{onClick:$e=>{A&&A($e),Pe!=null&&Pe.onClick&&Pe.onClick($e)}})),className:ze(Se==null?void 0:Se.className,f==null?void 0:f.className,ne==null?void 0:ne.backdrop),ownerState:Q});return!E&&!z&&(!se||Y)?null:g.jsx(Qj,{ref:U,container:b,disablePortal:k,children:g.jsxs(ge,P({},de,{children:[!N&&c?g.jsx(xe,P({},ie)):null,g.jsx(zj,{disableEnforceFocus:$,disableAutoFocus:S,disableRestoreFocus:M,isEnabled:Z,open:z,children:m.cloneElement(v,re)})]}))})}),aN=Upe;function Gpe(e){return yt("MuiDivider",e)}const qpe=bt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),E4=qpe,Kpe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ype=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Ge({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Gpe,r)},Xpe=ke("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>P({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Lt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>P({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Qpe=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>P({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),sN=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:y="fullWidth"}=r,v=be(r,Kpe),b=P({},r,{absolute:o,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:p,variant:y}),C=Ype(b);return g.jsx(Xpe,P({as:s,className:ze(C.root,a),role:f,ref:n,ownerState:b},v,{children:i?g.jsx(Qpe,{className:C.wrapper,ownerState:b,children:i}):null}))});sN.muiSkipListHighlight=!0;const lN=sN,Zpe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Jpe=e=>{const{classes:t,disableUnderline:n}=e,o=Ge({root:["root",!n&&"underline"],input:["input"]},Lde,t);return P({},t,o)},ehe=ke(Dx,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fx(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${ui.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ui.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ui.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ui.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ui.disabled}, .${ui.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ui.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),the=ke(jx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Lx})(({theme:e,ownerState:t})=>P({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),uN=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:y,slots:v={},type:b="text"}=s,C=be(s,Zpe),x=P({},s,{fullWidth:c,inputComponent:f,multiline:p,type:b}),w=Jpe(s),S={root:{ownerState:x},input:{ownerState:x}},$=y??u?co(y??u,S):S,T=(r=(o=v.root)!=null?o:l.Root)!=null?r:ehe,k=(i=(a=v.input)!=null?a:l.Input)!=null?i:the;return g.jsx(ld,P({slots:{root:T,input:k},componentsProps:$,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:b},C,{classes:w}))});uN.muiName="Input";const cN=uN;function nhe(e){return yt("MuiFormControl",e)}bt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rhe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ohe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return Ge(o,nhe,t)},ihe=ke("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ahe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:y="none",required:v=!1,size:b="medium",variant:C="outlined"}=r,x=be(r,rhe),w=P({},r,{color:a,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:y,required:v,size:b,variant:C}),S=ohe(w),[$,T]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,O=>{if(!w1(O,["Input","Select"]))return;const D=w1(O,["Select"])?O.props.input:O;D&&_de(D.props)&&(L=!0)}),L}),[k,M]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,O=>{w1(O,["Input","Select"])&&($y(O.props,!0)||$y(O.props.inputProps,!0))&&(L=!0)}),L}),[I,N]=m.useState(!1);l&&I&&N(!1);const E=c!==void 0&&!l?c:I;let A;const z=m.useMemo(()=>({adornedStart:$,setAdornedStart:T,color:a,disabled:l,error:u,filled:k,focused:E,fullWidth:f,hiddenLabel:p,size:b,onBlur:()=>{N(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{N(!0)},registerEffect:A,required:v,variant:C}),[$,a,l,u,k,E,f,p,A,v,b,C]);return g.jsx(Ax.Provider,{value:z,children:g.jsx(ihe,P({as:s,ownerState:w,className:ze(S.root,i),ref:n},x,{children:o}))})}),dN=ahe,she=_se({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$t({props:e,name:"MuiStack"})}),fN=she;function lhe(e){return yt("MuiFormControlLabel",e)}const uhe=bt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sm=uhe,che=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],dhe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ge(a,lhe,t)},fhe=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sm.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sm.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},{[`& .${sm.label}`]:{[`&.${sm.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),phe=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sm.error}`]:{color:(e.vars||e).palette.error.main}})),hhe=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:p="end",required:y,slotProps:v={}}=i,b=be(i,che),C=bs(),x=(r=u??l.props.disabled)!=null?r:C==null?void 0:C.disabled,w=y??l.props.required,S={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(S[N]=i[N])});const $=$u({props:i,muiFormControl:C,states:["error"]}),T=P({},i,{disabled:x,labelPlacement:p,required:w,error:$.error}),k=dhe(T),M=(o=v.typography)!=null?o:s.typography;let I=f;return I!=null&&I.type!==Ze&&!c&&(I=g.jsx(Ze,P({component:"span"},M,{className:ze(k.label,M==null?void 0:M.className),children:I}))),g.jsxs(fhe,P({className:ze(k.root,a),ownerState:T,ref:n},b,{children:[m.cloneElement(l,S),w?g.jsxs(fN,{direction:"row",alignItems:"center",children:[I,g.jsxs(phe,{ownerState:T,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):I]}))}),O_=hhe;function mhe(e){return yt("MuiFormGroup",e)}bt("MuiFormGroup",["root","row","error"]);const ghe=["className","row"],vhe=e=>{const{classes:t,row:n,error:r}=e;return Ge({root:["root",n&&"row",r&&"error"]},mhe,t)},yhe=ke("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),bhe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=be(r,ghe),s=bs(),l=$u({props:r,muiFormControl:s,states:["error"]}),u=P({},r,{row:i,error:l.error}),c=vhe(u);return g.jsx(yhe,P({className:ze(c.root,o),ownerState:u,ref:n},a))}),xhe=bhe;function whe(e){return yt("MuiFormHelperText",e)}const Che=bt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),I4=Che;var R4;const She=["children","className","component","disabled","error","filled","focused","margin","required","variant"],$he=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ge(u,whe,t)},_he=ke("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${I4.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${I4.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),khe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=be(r,She),l=bs(),u=$u({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=P({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=$he(c);return g.jsx(_he,P({as:a,ownerState:c,className:ze(f.root,i),ref:n},s,{children:o===" "?R4||(R4=g.jsx("span",{className:"notranslate",children:"​"})):o}))}),Phe=khe;function Mhe(e){return yt("MuiFormLabel",e)}const The=bt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_m=The,Ehe=["children","className","color","component","disabled","error","filled","focused","required"],Ihe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ge(l,Mhe,t)},Rhe=ke("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${_m.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_m.error}`]:{color:(e.vars||e).palette.error.main}})),Ohe=ke("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_m.error}`]:{color:(e.vars||e).palette.error.main}})),Ahe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=be(r,Ehe),l=bs(),u=$u({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=P({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Ihe(c);return g.jsxs(Rhe,P({as:a,ownerState:c,className:ze(f.root,i),ref:n},s,{children:[o,u.required&&g.jsxs(Ohe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Fhe=Ahe,Lhe=m.createContext(),O4=Lhe;function Dhe(e){return yt("MuiGrid",e)}const jhe=[0,1,2,3,4,5,6,7,8,9,10],Nhe=["column-reverse","column","row-reverse","row"],zhe=["nowrap","wrap-reverse","wrap"],Dh=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lg=bt("MuiGrid",["root","container","item","zeroMinWidth",...jhe.map(e=>`spacing-xs-${e}`),...Nhe.map(e=>`direction-xs-${e}`),...zhe.map(e=>`wrap-xs-${e}`),...Dh.map(e=>`grid-xs-${e}`),...Dh.map(e=>`grid-sm-${e}`),...Dh.map(e=>`grid-md-${e}`),...Dh.map(e=>`grid-lg-${e}`),...Dh.map(e=>`grid-xl-${e}`)]),Bhe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Hf(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Hhe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=gc({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${Hf(c)})`;u={flexBasis:f,maxWidth:f}}}i=P({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function Whe({theme:e,ownerState:t}){const n=gc({values:t.direction,breakpoints:e.breakpoints.values});return Qo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${lg.item}`]={maxWidth:"none"}),o})}function pN({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function Vhe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=gc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=pN({breakpoints:e.breakpoints.values,values:i})),o=Qo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Hf(c)}`,[`& > .${lg.item}`]:{paddingTop:Hf(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${lg.item}`]:{paddingTop:0}}})}return o}function Uhe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=gc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=pN({breakpoints:e.breakpoints.values,values:i})),o=Qo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Hf(c)})`,marginLeft:`-${Hf(c)}`,[`& > .${lg.item}`]:{paddingLeft:Hf(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${lg.item}`]:{paddingLeft:0}}})}return o}function Ghe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const qhe=ke("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=Ghe(a,u,t));const f=[];return u.forEach(p=>{const y=n[p];y&&f.push(t[`grid-${p}-${String(y)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>P({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Whe,Vhe,Uhe,Hhe);function Khe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const Yhe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Khe(i,l));const c=[];l.forEach(p=>{const y=e[p];y&&c.push(`grid-${p}-${String(y)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ge(f,Dhe,t)},Xhe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiGrid"}),{breakpoints:o}=Xt(),i=Px(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:C=!1}=i,x=be(i,Bhe),w=y||v,S=l||v,$=m.useContext(O4),T=c?s||12:$,k={},M=P({},x);o.keys.forEach(E=>{x[E]!=null&&(k[E]=x[E],delete M[E])});const I=P({},i,{columns:T,container:c,direction:f,item:p,rowSpacing:w,columnSpacing:S,wrap:b,zeroMinWidth:C,spacing:v},k,{breakpoints:o.keys}),N=Yhe(I);return g.jsx(O4.Provider,{value:T,children:g.jsx(qhe,P({ownerState:I,className:ze(N.root,a),as:u,ref:n},M))})}),Ft=Xhe,Qhe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function A_(e){return`scale(${e}, ${e**2})`}const Zhe={entering:{opacity:1,transform:A_(1)},entered:{opacity:1,transform:"none"}},SS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hN=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:y,style:v,timeout:b="auto",TransitionComponent:C=Lj}=t,x=be(t,Qhe),w=m.useRef(),S=m.useRef(),$=Xt(),T=m.useRef(null),k=on(T,i.ref,n),M=D=>H=>{if(D){const B=T.current;H===void 0?D(B):D(B,H)}},I=M(c),N=M((D,H)=>{Dj(D);const{duration:B,delay:j,easing:W}=Cy({style:v,timeout:b,easing:a},{mode:"enter"});let U;b==="auto"?(U=$.transitions.getAutoHeightDuration(D.clientHeight),S.current=U):U=B,D.style.transition=[$.transitions.create("opacity",{duration:U,delay:j}),$.transitions.create("transform",{duration:SS?U:U*.666,delay:j,easing:W})].join(","),l&&l(D,H)}),E=M(u),A=M(y),z=M(D=>{const{duration:H,delay:B,easing:j}=Cy({style:v,timeout:b,easing:a},{mode:"exit"});let W;b==="auto"?(W=$.transitions.getAutoHeightDuration(D.clientHeight),S.current=W):W=H,D.style.transition=[$.transitions.create("opacity",{duration:W,delay:B}),$.transitions.create("transform",{duration:SS?W:W*.666,delay:SS?B:B||W*.333,easing:j})].join(","),D.style.opacity=0,D.style.transform=A_(.75),f&&f(D)}),L=M(p),O=D=>{b==="auto"&&(w.current=setTimeout(D,S.current||0)),r&&r(T.current,D)};return m.useEffect(()=>()=>{clearTimeout(w.current)},[]),g.jsx(C,P({appear:o,in:s,nodeRef:T,onEnter:N,onEntered:E,onEntering:I,onExit:z,onExited:L,onExiting:A,addEndListener:O,timeout:b==="auto"?null:b},x,{children:(D,H)=>m.cloneElement(i,P({style:P({opacity:0,transform:A_(.75),visibility:D==="exited"&&!s?"hidden":void 0},Zhe[D],v,i.props.style),ref:k},H))}))});hN.muiSupportAuto=!0;const ky=hN,Jhe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],eme=e=>{const{classes:t,disableUnderline:n}=e,o=Ge({root:["root",!n&&"underline"],input:["input"]},Rde,t);return P({},t,o)},tme=ke(Dx,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fx(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"},[`&.${zl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zl.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(.${zl.disabled}, .${zl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${zl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),nme=ke(jx,{name:"MuiInput",slot:"Input",overridesResolver:Lx})({}),mN=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:y=!1,slotProps:v,slots:b={},type:C="text"}=s,x=be(s,Jhe),w=eme(s),$={root:{ownerState:{disableUnderline:l}}},T=v??c?co(v??c,$):$,k=(r=(o=b.root)!=null?o:u.Root)!=null?r:tme,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:nme;return g.jsx(ld,P({slots:{root:k,input:M},slotProps:T,fullWidth:f,inputComponent:p,multiline:y,ref:n,type:C},x,{classes:w}))});mN.muiName="Input";const gN=mN;function rme(e){return yt("MuiInputAdornment",e)}const ome=bt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),A4=ome;var F4;const ime=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ame=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},sme=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,a,r&&"hiddenLabel",i&&`size${je(i)}`]};return Ge(s,rme,t)},lme=ke("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ame})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${A4.positionStart}&:not(.${A4.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),ume=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,f=be(r,ime),p=bs()||{};let y=c;c&&p.variant,p&&!y&&(y=p.variant);const v=P({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:y}),b=sme(v);return g.jsx(Ax.Provider,{value:null,children:g.jsx(lme,P({as:a,ownerState:v,className:ze(b.root,i),ref:n},f,{children:typeof o=="string"&&!l?g.jsx(Ze,{color:"text.secondary",children:o}):g.jsxs(m.Fragment,{children:[u==="start"?F4||(F4=g.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),cme=ume;function dme(e){return yt("MuiInputLabel",e)}bt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fme=["disableAnimation","margin","shrink","variant","className"],pme=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,a],asterisk:[s&&"asterisk"]},u=Ge(l,dme,t);return P({},t,u)},hme=ke(Fhe,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_m.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>P({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&P({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&P({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&P({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),mme=m.forwardRef(function(t,n){const r=$t({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=be(r,fme),l=bs();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=$u({props:r,muiFormControl:l,states:["size","variant","required"]}),f=P({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),p=pme(f);return g.jsx(hme,P({"data-shrink":u,ownerState:f,ref:n,className:ze(p.root,a)},s,{classes:p}))}),vN=mme,gme=m.createContext({}),ug=gme;function vme(e){return yt("MuiList",e)}bt("MuiList",["root","padding","dense","subheader"]);const yme=["children","className","component","dense","disablePadding","subheader"],bme=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ge({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},vme,t)},xme=ke("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),wme=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=be(r,yme),f=m.useMemo(()=>({dense:s}),[s]),p=P({},r,{component:a,dense:s,disablePadding:l}),y=bme(p);return g.jsx(ug.Provider,{value:f,children:g.jsxs(xme,P({as:a,className:ze(y.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})}),Cme=wme;function Sme(e){return yt("MuiListItemIcon",e)}const $me=bt("MuiListItemIcon",["root","alignItemsFlexStart"]),L4=$me,_me=["className"],kme=e=>{const{alignItems:t,classes:n}=e;return Ge({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Sme,n)},Pme=ke("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Mme=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=be(r,_me),a=m.useContext(ug),s=P({},r,{alignItems:a.alignItems}),l=kme(s);return g.jsx(Pme,P({className:ze(l.root,o),ownerState:s,ref:n},i))}),yc=Mme;function Tme(e){return yt("MuiListItemText",e)}const Eme=bt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Py=Eme,Ime=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Rme=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ge({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Tme,t)},Ome=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Py.primary}`]:t.primary},{[`& .${Py.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Ame=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,p=be(r,Ime),{dense:y}=m.useContext(ug);let v=l??o,b=c;const C=P({},r,{disableTypography:a,inset:s,primary:!!v,secondary:!!b,dense:y}),x=Rme(C);return v!=null&&v.type!==Ze&&!a&&(v=g.jsx(Ze,P({variant:y?"body2":"body1",className:x.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),b!=null&&b.type!==Ze&&!a&&(b=g.jsx(Ze,P({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:b}))),g.jsxs(Ome,P({className:ze(x.root,i),ownerState:C,ref:n},p,{children:[v,b]}))}),Wf=Ame,Fme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $S(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function D4(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function yN(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 jh(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")||!yN(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Lme=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=be(t,Fme),y=m.useRef(null),v=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pn(()=>{o&&y.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,$)=>{const T=!y.current.style.width;if(S.clientHeight{const $=y.current,T=S.key,k=Gn($).activeElement;if(T==="ArrowDown")S.preventDefault(),jh($,k,u,l,$S);else if(T==="ArrowUp")S.preventDefault(),jh($,k,u,l,D4);else if(T==="Home")S.preventDefault(),jh($,null,u,l,$S);else if(T==="End")S.preventDefault(),jh($,null,u,l,D4);else if(T.length===1){const M=v.current,I=T.toLowerCase(),N=performance.now();M.keys.length>0&&(N-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&I!==M.keys[0]&&(M.repeating=!1)),M.lastTime=N,M.keys.push(I);const E=k&&!M.repeating&&yN(k,M);M.previousKeyMatched&&(E||jh($,k,!1,l,$S,M))?S.preventDefault():M.previousKeyMatched=!1}c&&c(S)},C=on(y,n);let x=-1;m.Children.forEach(a,(S,$)=>{if(!m.isValidElement(S)){x===$&&(x+=1,x>=a.length&&(x=-1));return}S.props.disabled||(f==="selectedMenu"&&S.props.selected||x===-1)&&(x=$),x===$&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const w=m.Children.map(a,(S,$)=>{if($===x){const T={};return i&&(T.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),m.cloneElement(S,T)}return S});return g.jsx(Cme,P({role:"menu",ref:C,className:s,onKeyDown:b,tabIndex:o?0:-1},p,{children:w}))}),a0=Lme;function Dme(e){return yt("MuiPopover",e)}bt("MuiPopover",["root","paper"]);const jme=["onEntering"],Nme=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zme=["slotProps"];function j4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function N4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function z4(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function _S(e){return typeof e=="function"?e():e}const Bme=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"]},Dme,t)},Hme=ke(aN,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bN=ke(ad,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Wme=m.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:y,container:v,elevation:b=8,marginThreshold:C=16,open:x,PaperProps:w={},slots:S,slotProps:$,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:k=ky,transitionDuration:M="auto",TransitionProps:{onEntering:I}={},disableScrollLock:N=!1}=a,E=be(a.TransitionProps,jme),A=be(a,Nme),z=(r=$==null?void 0:$.paper)!=null?r:w,L=m.useRef(),O=on(L,z.ref),D=P({},a,{anchorOrigin:u,anchorReference:f,elevation:b,marginThreshold:C,externalPaperSlotProps:z,transformOrigin:T,TransitionComponent:k,transitionDuration:M,TransitionProps:E}),H=Bme(D),B=m.useCallback(()=>{if(f==="anchorPosition")return c;const Pe=_S(l),me=(Pe&&Pe.nodeType===1?Pe:Gn(L.current).body).getBoundingClientRect();return{top:me.top+j4(me,u.vertical),left:me.left+N4(me,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),j=m.useCallback(Pe=>({vertical:j4(Pe,T.vertical),horizontal:N4(Pe,T.horizontal)}),[T.horizontal,T.vertical]),W=m.useCallback(Pe=>{const $e={width:Pe.offsetWidth,height:Pe.offsetHeight},me=j($e);if(f==="none")return{top:null,left:null,transformOrigin:z4(me)};const ue=B();let ce=ue.top-me.vertical,Te=ue.left-me.horizontal;const Le=ce+$e.height,Re=Te+$e.width,Oe=ea(_S(l)),K=Oe.innerHeight-C,ee=Oe.innerWidth-C;if(C!==null&&ceK){const pe=Le-K;ce-=pe,me.vertical+=pe}if(C!==null&&Teee){const pe=Re-ee;Te-=pe,me.horizontal+=pe}return{top:`${Math.round(ce)}px`,left:`${Math.round(Te)}px`,transformOrigin:z4(me)}},[l,f,B,j,C]),[U,Z]=m.useState(x),Y=m.useCallback(()=>{const Pe=L.current;if(!Pe)return;const $e=W(Pe);$e.top!==null&&(Pe.style.top=$e.top),$e.left!==null&&(Pe.style.left=$e.left),Pe.style.transformOrigin=$e.transformOrigin,Z(!0)},[W]);m.useEffect(()=>(N&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[l,N,Y]);const se=(Pe,$e)=>{I&&I(Pe,$e),Y()},Q=()=>{Z(!1)};m.useEffect(()=>{x&&Y()}),m.useImperativeHandle(s,()=>x?{updatePosition:()=>{Y()}}:null,[x,Y]),m.useEffect(()=>{if(!x)return;const Pe=Cu(()=>{Y()}),$e=ea(l);return $e.addEventListener("resize",Pe),()=>{Pe.clear(),$e.removeEventListener("resize",Pe)}},[l,x,Y]);let ne=M;M==="auto"&&!k.muiSupportAuto&&(ne=void 0);const re=v||(l?Gn(_S(l)).body:void 0),ge=(o=S==null?void 0:S.root)!=null?o:Hme,xe=(i=S==null?void 0:S.paper)!=null?i:bN,fe=xi({elementType:xe,externalSlotProps:P({},z,{style:U?z.style:P({},z.style,{opacity:0})}),additionalProps:{elevation:b,ref:O},ownerState:D,className:ze(H.paper,z==null?void 0:z.className)}),Se=xi({elementType:ge,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:A,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:x},ownerState:D,className:ze(H.root,y)}),{slotProps:de}=Se,ie=be(Se,zme);return g.jsx(ge,P({},ie,!ig(ge)&&{slotProps:de,disableScrollLock:N},{children:g.jsx(k,P({appear:!0,in:x,onEntering:se,onExited:Q,timeout:ne},E,{children:g.jsx(xe,P({},fe,{children:p}))}))}))}),Vme=Wme;function Ume(e){return yt("MuiMenu",e)}bt("MuiMenu",["root","paper","list"]);const Gme=["onEntering"],qme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Kme={vertical:"top",horizontal:"right"},Yme={vertical:"top",horizontal:"left"},Xme=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"],list:["list"]},Ume,t)},Qme=ke(Vme,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zme=ke(bN,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jme=ke(a0,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ege=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:y={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:C}={},variant:x="selectedMenu",slots:w={},slotProps:S={}}=i,$=be(i.TransitionProps,Gme),T=be(i,qme),k=Xt(),M=k.direction==="rtl",I=P({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:C,PaperProps:y,transitionDuration:b,TransitionProps:$,variant:x}),N=Xme(I),E=a&&!u&&p,A=m.useRef(null),z=(W,U)=>{A.current&&A.current.adjustStyleForScrollbar(W,k),C&&C(W,U)},L=W=>{W.key==="Tab"&&(W.preventDefault(),f&&f(W,"tabKeyDown"))};let O=-1;m.Children.map(s,(W,U)=>{m.isValidElement(W)&&(W.props.disabled||(x==="selectedMenu"&&W.props.selected||O===-1)&&(O=U))});const D=(r=w.paper)!=null?r:Zme,H=(o=S.paper)!=null?o:y,B=xi({elementType:w.root,externalSlotProps:S.root,ownerState:I,className:[N.root,l]}),j=xi({elementType:D,externalSlotProps:H,ownerState:I,className:N.paper});return g.jsx(Qme,P({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?Kme:Yme,slots:{paper:D,root:w.root},slotProps:{root:B,paper:j},open:p,ref:n,transitionDuration:b,TransitionProps:P({onEntering:z},$),ownerState:I},T,{classes:v,children:g.jsx(Jme,P({onKeyDown:L,actions:A,autoFocus:a&&(O===-1||u),autoFocusItem:E,variant:x},c,{className:ze(N.list,c.className),children:s}))}))}),xN=ege;function tge(e){return yt("MuiMenuItem",e)}const nge=bt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Nh=nge,rge=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],oge=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ige=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Ge({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tge,a);return P({},a,l)},age=ke(du,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:oge})(({theme:e,ownerState:t})=>P({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${E4.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${E4.inset}`]:{marginLeft:52},[`& .${Py.root}`]:{marginTop:0,marginBottom:0},[`& .${Py.inset}`]:{paddingLeft:36},[`& .${L4.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${L4.root} svg`]:{fontSize:"1.25rem"}}))),sge=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,y=be(r,rge),v=m.useContext(ug),b=m.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),C=m.useRef(null);pn(()=>{o&&C.current&&C.current.focus()},[o]);const x=P({},r,{dense:b.dense,divider:s,disableGutters:l}),w=ige(r),S=on(C,n);let $;return r.disabled||($=f!==void 0?f:-1),g.jsx(ug.Provider,{value:b,children:g.jsx(age,P({ref:S,role:c,tabIndex:$,component:i,focusVisibleClassName:ze(w.focusVisible,u),className:ze(w.root,p)},y,{ownerState:x,classes:w}))})}),Co=sge;function lge(e){return yt("MuiNativeSelect",e)}const uge=bt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),FM=uge,cge=["className","disabled","error","IconComponent","inputRef","variant"],dge=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${je(n)}`,i&&"iconOpen",r&&"disabled"]};return Ge(s,lge,t)},wN=({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"},[`&.${FM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),fge=ke("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Oa,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${FM.multiple}`]:t.multiple}]}})(wN),CN=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${FM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),pge=ke("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(CN),hge=m.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=be(t,cge),c=P({},t,{disabled:o,variant:l,error:i}),f=dge(c);return g.jsxs(m.Fragment,{children:[g.jsx(fge,P({ownerState:c,className:ze(f.select,r),disabled:o,ref:s||n},u)),t.multiple?null:g.jsx(pge,{as:a,ownerState:c,className:f.icon})]})}),mge=hge;var B4;const gge=["children","classes","className","label","notched"],vge=ke("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yge=ke("legend")(({ownerState:e,theme:t})=>P({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&P({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function bge(e){const{className:t,label:n,notched:r}=e,o=be(e,gge),i=n!=null&&n!=="",a=P({},e,{notched:r,withLabel:i});return g.jsx(vge,P({"aria-hidden":!0,className:t,ownerState:a},o,{children:g.jsx(yge,{ownerState:a,children:i?g.jsx("span",{children:n}):B4||(B4=g.jsx("span",{className:"notranslate",children:"​"}))})}))}const xge=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wge=e=>{const{classes:t}=e,r=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ade,t);return P({},t,r)},Cge=ke(Dx,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fx})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ba.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ba.focused} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ba.error} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ba.disabled} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Sge=ke(bge,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),$ge=ke(jx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Lx})(({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})),SN=m.forwardRef(function(t,n){var r,o,i,a,s;const l=$t({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:y=!1,notched:v,slots:b={},type:C="text"}=l,x=be(l,xge),w=wge(l),S=bs(),$=$u({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=P({},l,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:S,fullWidth:c,hiddenLabel:$.hiddenLabel,multiline:y,size:$.size,type:C}),k=(r=(o=b.root)!=null?o:u.Root)!=null?r:Cge,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:$ge;return g.jsx(ld,P({slots:{root:k,input:M},renderSuffix:I=>g.jsx(Sge,{ownerState:T,className:w.notchedOutline,label:p!=null&&p!==""&&$.required?s||(s=g.jsxs(m.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:c,inputComponent:f,multiline:y,ref:n,type:C},x,{classes:P({},w,{notchedOutline:null})}))});SN.muiName="Input";const $N=SN,H4=xt(g.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),W4=xt(g.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function _ge(e){return yt("MuiSelect",e)}const kge=bt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),zh=kge;var V4;const Pge=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Mge=ke("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zh.select}`]:t.select},{[`&.${zh.select}`]:t[n.variant]},{[`&.${zh.error}`]:t.error},{[`&.${zh.multiple}`]:t.multiple}]}})(wN,{[`&.${zh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Tge=ke("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(CN),Ege=ke("input",{shouldForwardProp:e=>ule(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function U4(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Ige(e){return e==null||typeof e=="string"&&!e.trim()}const Rge=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${je(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ge(s,_ge,t)},Oge=m.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:y,error:v=!1,IconComponent:b,inputRef:C,labelId:x,MenuProps:w={},multiple:S,name:$,onBlur:T,onChange:k,onClose:M,onFocus:I,onOpen:N,open:E,readOnly:A,renderValue:z,SelectDisplayProps:L={},tabIndex:O,value:D,variant:H="standard"}=t,B=be(t,Pge),[j,W]=ru({controlled:D,default:f,name:"Select"}),[U,Z]=ru({controlled:E,default:c,name:"Select"}),Y=m.useRef(null),se=m.useRef(null),[Q,ne]=m.useState(null),{current:re}=m.useRef(E!=null),[ge,xe]=m.useState(),fe=on(n,C),Se=m.useCallback(Be=>{se.current=Be,Be&&ne(Be)},[]),de=Q==null?void 0:Q.parentNode;m.useImperativeHandle(fe,()=>({focus:()=>{se.current.focus()},node:Y.current,value:j}),[j]),m.useEffect(()=>{c&&U&&Q&&!re&&(xe(s?null:de.clientWidth),se.current.focus())},[Q,s]),m.useEffect(()=>{a&&se.current.focus()},[a]),m.useEffect(()=>{if(!x)return;const Be=Gn(se.current).getElementById(x);if(Be){const te=()=>{getSelection().isCollapsed&&se.current.focus()};return Be.addEventListener("click",te),()=>{Be.removeEventListener("click",te)}}},[x]);const ie=(Be,te)=>{Be?N&&N(te):M&&M(te),re||(xe(s?null:de.clientWidth),Z(Be))},Pe=Be=>{Be.button===0&&(Be.preventDefault(),se.current.focus(),ie(!0,Be))},$e=Be=>{ie(!1,Be)},me=m.Children.toArray(l),ue=Be=>{const te=me.find(X=>X.props.value===Be.target.value);te!==void 0&&(W(te.props.value),k&&k(Be,te))},ce=Be=>te=>{let X;if(te.currentTarget.hasAttribute("tabindex")){if(S){X=Array.isArray(j)?j.slice():[];const oe=j.indexOf(Be.props.value);oe===-1?X.push(Be.props.value):X.splice(oe,1)}else X=Be.props.value;if(Be.props.onClick&&Be.props.onClick(te),j!==X&&(W(X),k)){const oe=te.nativeEvent||te,Ie=new oe.constructor(oe.type,oe);Object.defineProperty(Ie,"target",{writable:!0,value:{value:X,name:$}}),k(Ie,Be)}S||ie(!1,te)}},Te=Be=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Be.key)!==-1&&(Be.preventDefault(),ie(!0,Be))},Le=Q!==null&&U,Re=Be=>{!Le&&T&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:j,name:$}}),T(Be))};delete B["aria-invalid"];let Oe,K;const ee=[];let pe=!1;($y({value:j})||y)&&(z?Oe=z(j):pe=!0);const ye=me.map(Be=>{if(!m.isValidElement(Be))return null;let te;if(S){if(!Array.isArray(j))throw new Error(cu(2));te=j.some(X=>U4(X,Be.props.value)),te&&pe&&ee.push(Be.props.children)}else te=U4(j,Be.props.value),te&&pe&&(K=Be.props.children);return m.cloneElement(Be,{"aria-selected":te?"true":"false",onClick:ce(Be),onKeyUp:X=>{X.key===" "&&X.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(X)},role:"option",selected:te,value:void 0,"data-value":Be.props.value})});pe&&(S?ee.length===0?Oe=null:Oe=ee.reduce((Be,te,X)=>(Be.push(te),X{const{classes:t}=e;return t},LM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Oa(e)&&e!=="variant",slot:"Root"},jge=ke(gN,LM)(""),Nge=ke($N,LM)(""),zge=ke(cN,LM)(""),_N=m.forwardRef(function(t,n){const r=$t({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=nN,id:f,input:p,inputProps:y,label:v,labelId:b,MenuProps:C,multiple:x=!1,native:w=!1,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:M,variant:I="outlined"}=r,N=be(r,Fge),E=w?mge:Age,A=bs(),z=$u({props:r,muiFormControl:A,states:["variant","error"]}),L=z.variant||I,O=P({},r,{variant:L,classes:a}),D=Dge(O),H=be(D,Lge),B=p||{standard:g.jsx(jge,{ownerState:O}),outlined:g.jsx(Nge,{label:v,ownerState:O}),filled:g.jsx(zge,{ownerState:O})}[L],j=on(n,B.ref);return g.jsx(m.Fragment,{children:m.cloneElement(B,P({inputComponent:E,inputProps:P({children:i,error:z.error,IconComponent:c,variant:L,type:void 0,multiple:x},w?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:C,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:P({id:f},M)},y,{classes:y?co(H,y.classes):H},p?p.props.inputProps:{})},x&&w&&L==="outlined"?{notched:!0}:{},{ref:j,className:ze(B.props.className,s,D.root)},!p&&{variant:L},N))})});_N.muiName="Select";const DM=_N;function Bge(e){return yt("MuiSkeleton",e)}bt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Hge=["animation","className","component","height","style","variant","width"];let My=e=>e,G4,q4,K4,Y4;const Wge=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Ge({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},Bge,t)},Vge=id(G4||(G4=My` + `),Tpe)),Ape=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=be(r,Ppe),y=P({},r,{color:i,disableShrink:a,size:s,thickness:u,value:c,variant:f}),v=Epe(y),b={},C={},x={};if(f==="determinate"){const w=2*Math.PI*((kl-u)/2);b.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*w).toFixed(3)}px`,C.transform="rotate(-90deg)"}return g.jsx(Ipe,P({className:ze(v.root,o),style:P({width:s,height:s},C,l),ownerState:y,ref:n,role:"progressbar"},x,p,{children:g.jsx(Rpe,{className:v.svg,ownerState:y,viewBox:`${kl/2} ${kl/2} ${kl} ${kl}`,children:g.jsx(Ope,{className:v.circle,style:b,ownerState:y,cx:kl,cy:kl,r:(kl-u)/2,fill:"none",strokeWidth:u})})}))}),Fpe=Ape,Lpe=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Dpe=e=>P({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),jpe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=P({html:Lpe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},Dpe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function Npe(e){const t=$t({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return g.jsxs(m.Fragment,{children:[g.jsx(Jj,{styles:o=>jpe(o,r)}),n]})}function zpe(e){return yt("MuiModal",e)}bt("MuiModal",["root","hidden","backdrop"]);const Bpe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Hpe=e=>{const{open:t,exited:n,classes:r}=e;return qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zpe,r)},Wpe=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vpe=ke(bfe,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Upe=m.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({name:"MuiModal",props:t}),{BackdropComponent:c=Vpe,BackdropProps:f,className:p,closeAfterTransition:y=!1,children:v,container:b,component:C,components:x={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:T=!1,disablePortal:k=!1,disableRestoreFocus:M=!1,disableScrollLock:I=!1,hideBackdrop:N=!1,keepMounted:E=!1,onBackdropClick:A,open:z,slotProps:L,slots:O}=u,D=be(u,Bpe),H=P({},u,{closeAfterTransition:y,disableAutoFocus:S,disableEnforceFocus:$,disableEscapeKeyDown:T,disablePortal:k,disableRestoreFocus:M,disableScrollLock:I,hideBackdrop:N,keepMounted:E}),{getRootProps:B,getBackdropProps:j,getTransitionProps:W,portalRef:U,isTopModal:Z,exited:Y,hasTransition:se}=tde(P({},H,{rootRef:n})),Q=P({},H,{exited:Y}),ne=Hpe(Q),re={};if(v.props.tabIndex===void 0&&(re.tabIndex="-1"),se){const{onEnter:Pe,onExited:$e}=W();re.onEnter=Pe,re.onExited=$e}const ge=(r=(o=O==null?void 0:O.root)!=null?o:x.Root)!=null?r:Wpe,xe=(i=(a=O==null?void 0:O.backdrop)!=null?a:x.Backdrop)!=null?i:c,fe=(s=L==null?void 0:L.root)!=null?s:w.root,Se=(l=L==null?void 0:L.backdrop)!=null?l:w.backdrop,de=xi({elementType:ge,externalSlotProps:fe,externalForwardedProps:D,getSlotProps:B,additionalProps:{ref:n,as:C},ownerState:Q,className:ze(p,fe==null?void 0:fe.className,ne==null?void 0:ne.root,!Q.open&&Q.exited&&(ne==null?void 0:ne.hidden))}),ie=xi({elementType:xe,externalSlotProps:Se,additionalProps:f,getSlotProps:Pe=>j(P({},Pe,{onClick:$e=>{A&&A($e),Pe!=null&&Pe.onClick&&Pe.onClick($e)}})),className:ze(Se==null?void 0:Se.className,f==null?void 0:f.className,ne==null?void 0:ne.backdrop),ownerState:Q});return!E&&!z&&(!se||Y)?null:g.jsx(Yj,{ref:U,container:b,disablePortal:k,children:g.jsxs(ge,P({},de,{children:[!N&&c?g.jsx(xe,P({},ie)):null,g.jsx(jj,{disableEnforceFocus:$,disableAutoFocus:S,disableRestoreFocus:M,isEnabled:Z,open:z,children:m.cloneElement(v,re)})]}))})}),oN=Upe;function Gpe(e){return yt("MuiDivider",e)}const qpe=bt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),T4=qpe,Kpe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ype=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return qe({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Gpe,r)},Xpe=ke("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>P({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Lt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>P({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Qpe=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>P({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),iN=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:y="fullWidth"}=r,v=be(r,Kpe),b=P({},r,{absolute:o,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:p,variant:y}),C=Ype(b);return g.jsx(Xpe,P({as:s,className:ze(C.root,a),role:f,ref:n,ownerState:b},v,{children:i?g.jsx(Qpe,{className:C.wrapper,ownerState:b,children:i}):null}))});iN.muiSkipListHighlight=!0;const aN=iN,Zpe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Jpe=e=>{const{classes:t,disableUnderline:n}=e,o=qe({root:["root",!n&&"underline"],input:["input"]},Lde,t);return P({},t,o)},ehe=ke(Lx,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ax(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${ui.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ui.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ui.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ui.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ui.disabled}, .${ui.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ui.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),the=ke(Dx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fx})(({theme:e,ownerState:t})=>P({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),sN=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:y,slots:v={},type:b="text"}=s,C=be(s,Zpe),x=P({},s,{fullWidth:c,inputComponent:f,multiline:p,type:b}),w=Jpe(s),S={root:{ownerState:x},input:{ownerState:x}},$=y??u?co(y??u,S):S,T=(r=(o=v.root)!=null?o:l.Root)!=null?r:ehe,k=(i=(a=v.input)!=null?a:l.Input)!=null?i:the;return g.jsx(sd,P({slots:{root:T,input:k},componentsProps:$,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:b},C,{classes:w}))});sN.muiName="Input";const lN=sN;function nhe(e){return yt("MuiFormControl",e)}bt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rhe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ohe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return qe(o,nhe,t)},ihe=ke("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ahe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:y="none",required:v=!1,size:b="medium",variant:C="outlined"}=r,x=be(r,rhe),w=P({},r,{color:a,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:y,required:v,size:b,variant:C}),S=ohe(w),[$,T]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,O=>{if(!x1(O,["Input","Select"]))return;const D=x1(O,["Select"])?O.props.input:O;D&&_de(D.props)&&(L=!0)}),L}),[k,M]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,O=>{x1(O,["Input","Select"])&&(Sy(O.props,!0)||Sy(O.props.inputProps,!0))&&(L=!0)}),L}),[I,N]=m.useState(!1);l&&I&&N(!1);const E=c!==void 0&&!l?c:I;let A;const z=m.useMemo(()=>({adornedStart:$,setAdornedStart:T,color:a,disabled:l,error:u,filled:k,focused:E,fullWidth:f,hiddenLabel:p,size:b,onBlur:()=>{N(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{N(!0)},registerEffect:A,required:v,variant:C}),[$,a,l,u,k,E,f,p,A,v,b,C]);return g.jsx(Ox.Provider,{value:z,children:g.jsx(ihe,P({as:s,ownerState:w,className:ze(S.root,i),ref:n},x,{children:o}))})}),uN=ahe,she=_se({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$t({props:e,name:"MuiStack"})}),cN=she;function lhe(e){return yt("MuiFormControlLabel",e)}const uhe=bt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),am=uhe,che=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],dhe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return qe(a,lhe,t)},fhe=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${am.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${am.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${am.label}`]:{[`&.${am.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),phe=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${am.error}`]:{color:(e.vars||e).palette.error.main}})),hhe=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:p="end",required:y,slotProps:v={}}=i,b=be(i,che),C=bs(),x=(r=u??l.props.disabled)!=null?r:C==null?void 0:C.disabled,w=y??l.props.required,S={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(S[N]=i[N])});const $=Su({props:i,muiFormControl:C,states:["error"]}),T=P({},i,{disabled:x,labelPlacement:p,required:w,error:$.error}),k=dhe(T),M=(o=v.typography)!=null?o:s.typography;let I=f;return I!=null&&I.type!==Ze&&!c&&(I=g.jsx(Ze,P({component:"span"},M,{className:ze(k.label,M==null?void 0:M.className),children:I}))),g.jsxs(fhe,P({className:ze(k.root,a),ownerState:T,ref:n},b,{children:[m.cloneElement(l,S),w?g.jsxs(cN,{direction:"row",alignItems:"center",children:[I,g.jsxs(phe,{ownerState:T,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):I]}))}),R_=hhe;function mhe(e){return yt("MuiFormGroup",e)}bt("MuiFormGroup",["root","row","error"]);const ghe=["className","row"],vhe=e=>{const{classes:t,row:n,error:r}=e;return qe({root:["root",n&&"row",r&&"error"]},mhe,t)},yhe=ke("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),bhe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=be(r,ghe),s=bs(),l=Su({props:r,muiFormControl:s,states:["error"]}),u=P({},r,{row:i,error:l.error}),c=vhe(u);return g.jsx(yhe,P({className:ze(c.root,o),ownerState:u,ref:n},a))}),xhe=bhe;function whe(e){return yt("MuiFormHelperText",e)}const Che=bt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),E4=Che;var I4;const She=["children","className","component","disabled","error","filled","focused","margin","required","variant"],$he=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return qe(u,whe,t)},_he=ke("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${E4.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${E4.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),khe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=be(r,She),l=bs(),u=Su({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=P({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=$he(c);return g.jsx(_he,P({as:a,ownerState:c,className:ze(f.root,i),ref:n},s,{children:o===" "?I4||(I4=g.jsx("span",{className:"notranslate",children:"​"})):o}))}),Phe=khe;function Mhe(e){return yt("MuiFormLabel",e)}const The=bt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$m=The,Ehe=["children","className","color","component","disabled","error","filled","focused","required"],Ihe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return qe(l,Mhe,t)},Rhe=ke("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${$m.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$m.error}`]:{color:(e.vars||e).palette.error.main}})),Ohe=ke("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$m.error}`]:{color:(e.vars||e).palette.error.main}})),Ahe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=be(r,Ehe),l=bs(),u=Su({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=P({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Ihe(c);return g.jsxs(Rhe,P({as:a,ownerState:c,className:ze(f.root,i),ref:n},s,{children:[o,u.required&&g.jsxs(Ohe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Fhe=Ahe,Lhe=m.createContext(),R4=Lhe;function Dhe(e){return yt("MuiGrid",e)}const jhe=[0,1,2,3,4,5,6,7,8,9,10],Nhe=["column-reverse","column","row-reverse","row"],zhe=["nowrap","wrap-reverse","wrap"],Lh=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],sg=bt("MuiGrid",["root","container","item","zeroMinWidth",...jhe.map(e=>`spacing-xs-${e}`),...Nhe.map(e=>`direction-xs-${e}`),...zhe.map(e=>`wrap-xs-${e}`),...Lh.map(e=>`grid-xs-${e}`),...Lh.map(e=>`grid-sm-${e}`),...Lh.map(e=>`grid-md-${e}`),...Lh.map(e=>`grid-lg-${e}`),...Lh.map(e=>`grid-xl-${e}`)]),Bhe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Bf(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Hhe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=mc({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${Bf(c)})`;u={flexBasis:f,maxWidth:f}}}i=P({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function Whe({theme:e,ownerState:t}){const n=mc({values:t.direction,breakpoints:e.breakpoints.values});return Qo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${sg.item}`]={maxWidth:"none"}),o})}function dN({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function Vhe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=mc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=dN({breakpoints:e.breakpoints.values,values:i})),o=Qo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Bf(c)}`,[`& > .${sg.item}`]:{paddingTop:Bf(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${sg.item}`]:{paddingTop:0}}})}return o}function Uhe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=mc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=dN({breakpoints:e.breakpoints.values,values:i})),o=Qo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Bf(c)})`,marginLeft:`-${Bf(c)}`,[`& > .${sg.item}`]:{paddingLeft:Bf(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${sg.item}`]:{paddingLeft:0}}})}return o}function Ghe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const qhe=ke("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=Ghe(a,u,t));const f=[];return u.forEach(p=>{const y=n[p];y&&f.push(t[`grid-${p}-${String(y)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>P({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Whe,Vhe,Uhe,Hhe);function Khe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const Yhe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Khe(i,l));const c=[];l.forEach(p=>{const y=e[p];y&&c.push(`grid-${p}-${String(y)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return qe(f,Dhe,t)},Xhe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiGrid"}),{breakpoints:o}=Xt(),i=kx(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:C=!1}=i,x=be(i,Bhe),w=y||v,S=l||v,$=m.useContext(R4),T=c?s||12:$,k={},M=P({},x);o.keys.forEach(E=>{x[E]!=null&&(k[E]=x[E],delete M[E])});const I=P({},i,{columns:T,container:c,direction:f,item:p,rowSpacing:w,columnSpacing:S,wrap:b,zeroMinWidth:C,spacing:v},k,{breakpoints:o.keys}),N=Yhe(I);return g.jsx(R4.Provider,{value:T,children:g.jsx(qhe,P({ownerState:I,className:ze(N.root,a),as:u,ref:n},M))})}),Ft=Xhe,Qhe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function O_(e){return`scale(${e}, ${e**2})`}const Zhe={entering:{opacity:1,transform:O_(1)},entered:{opacity:1,transform:"none"}},CS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fN=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:y,style:v,timeout:b="auto",TransitionComponent:C=Aj}=t,x=be(t,Qhe),w=m.useRef(),S=m.useRef(),$=Xt(),T=m.useRef(null),k=on(T,i.ref,n),M=D=>H=>{if(D){const B=T.current;H===void 0?D(B):D(B,H)}},I=M(c),N=M((D,H)=>{Fj(D);const{duration:B,delay:j,easing:W}=wy({style:v,timeout:b,easing:a},{mode:"enter"});let U;b==="auto"?(U=$.transitions.getAutoHeightDuration(D.clientHeight),S.current=U):U=B,D.style.transition=[$.transitions.create("opacity",{duration:U,delay:j}),$.transitions.create("transform",{duration:CS?U:U*.666,delay:j,easing:W})].join(","),l&&l(D,H)}),E=M(u),A=M(y),z=M(D=>{const{duration:H,delay:B,easing:j}=wy({style:v,timeout:b,easing:a},{mode:"exit"});let W;b==="auto"?(W=$.transitions.getAutoHeightDuration(D.clientHeight),S.current=W):W=H,D.style.transition=[$.transitions.create("opacity",{duration:W,delay:B}),$.transitions.create("transform",{duration:CS?W:W*.666,delay:CS?B:B||W*.333,easing:j})].join(","),D.style.opacity=0,D.style.transform=O_(.75),f&&f(D)}),L=M(p),O=D=>{b==="auto"&&(w.current=setTimeout(D,S.current||0)),r&&r(T.current,D)};return m.useEffect(()=>()=>{clearTimeout(w.current)},[]),g.jsx(C,P({appear:o,in:s,nodeRef:T,onEnter:N,onEntered:E,onEntering:I,onExit:z,onExited:L,onExiting:A,addEndListener:O,timeout:b==="auto"?null:b},x,{children:(D,H)=>m.cloneElement(i,P({style:P({opacity:0,transform:O_(.75),visibility:D==="exited"&&!s?"hidden":void 0},Zhe[D],v,i.props.style),ref:k},H))}))});fN.muiSupportAuto=!0;const _y=fN,Jhe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],eme=e=>{const{classes:t,disableUnderline:n}=e,o=qe({root:["root",!n&&"underline"],input:["input"]},Rde,t);return P({},t,o)},tme=ke(Lx,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ax(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),P({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Nl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nl.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Nl.disabled}, .${Nl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Nl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),nme=ke(Dx,{name:"MuiInput",slot:"Input",overridesResolver:Fx})({}),pN=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:y=!1,slotProps:v,slots:b={},type:C="text"}=s,x=be(s,Jhe),w=eme(s),$={root:{ownerState:{disableUnderline:l}}},T=v??c?co(v??c,$):$,k=(r=(o=b.root)!=null?o:u.Root)!=null?r:tme,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:nme;return g.jsx(sd,P({slots:{root:k,input:M},slotProps:T,fullWidth:f,inputComponent:p,multiline:y,ref:n,type:C},x,{classes:w}))});pN.muiName="Input";const hN=pN;function rme(e){return yt("MuiInputAdornment",e)}const ome=bt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),O4=ome;var A4;const ime=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ame=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},sme=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,a,r&&"hiddenLabel",i&&`size${je(i)}`]};return qe(s,rme,t)},lme=ke("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ame})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${O4.positionStart}&:not(.${O4.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),ume=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,f=be(r,ime),p=bs()||{};let y=c;c&&p.variant,p&&!y&&(y=p.variant);const v=P({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:y}),b=sme(v);return g.jsx(Ox.Provider,{value:null,children:g.jsx(lme,P({as:a,ownerState:v,className:ze(b.root,i),ref:n},f,{children:typeof o=="string"&&!l?g.jsx(Ze,{color:"text.secondary",children:o}):g.jsxs(m.Fragment,{children:[u==="start"?A4||(A4=g.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),cme=ume;function dme(e){return yt("MuiInputLabel",e)}bt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fme=["disableAnimation","margin","shrink","variant","className"],pme=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,a],asterisk:[s&&"asterisk"]},u=qe(l,dme,t);return P({},t,u)},hme=ke(Fhe,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$m.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>P({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&P({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&P({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&P({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),mme=m.forwardRef(function(t,n){const r=$t({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=be(r,fme),l=bs();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Su({props:r,muiFormControl:l,states:["size","variant","required"]}),f=P({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),p=pme(f);return g.jsx(hme,P({"data-shrink":u,ownerState:f,ref:n,className:ze(p.root,a)},s,{classes:p}))}),mN=mme,gme=m.createContext({}),lg=gme;function vme(e){return yt("MuiList",e)}bt("MuiList",["root","padding","dense","subheader"]);const yme=["children","className","component","dense","disablePadding","subheader"],bme=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},vme,t)},xme=ke("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),wme=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=be(r,yme),f=m.useMemo(()=>({dense:s}),[s]),p=P({},r,{component:a,dense:s,disablePadding:l}),y=bme(p);return g.jsx(lg.Provider,{value:f,children:g.jsxs(xme,P({as:a,className:ze(y.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})}),Cme=wme;function Sme(e){return yt("MuiListItemIcon",e)}const $me=bt("MuiListItemIcon",["root","alignItemsFlexStart"]),F4=$me,_me=["className"],kme=e=>{const{alignItems:t,classes:n}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Sme,n)},Pme=ke("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Mme=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=be(r,_me),a=m.useContext(lg),s=P({},r,{alignItems:a.alignItems}),l=kme(s);return g.jsx(Pme,P({className:ze(l.root,o),ownerState:s,ref:n},i))}),vc=Mme;function Tme(e){return yt("MuiListItemText",e)}const Eme=bt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ky=Eme,Ime=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Rme=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return qe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Tme,t)},Ome=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ky.primary}`]:t.primary},{[`& .${ky.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Ame=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,p=be(r,Ime),{dense:y}=m.useContext(lg);let v=l??o,b=c;const C=P({},r,{disableTypography:a,inset:s,primary:!!v,secondary:!!b,dense:y}),x=Rme(C);return v!=null&&v.type!==Ze&&!a&&(v=g.jsx(Ze,P({variant:y?"body2":"body1",className:x.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),b!=null&&b.type!==Ze&&!a&&(b=g.jsx(Ze,P({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:b}))),g.jsxs(Ome,P({className:ze(x.root,i),ownerState:C,ref:n},p,{children:[v,b]}))}),Hf=Ame,Fme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function SS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function L4(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function gN(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Dh(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!gN(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Lme=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=be(t,Fme),y=m.useRef(null),v=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pn(()=>{o&&y.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,$)=>{const T=!y.current.style.width;if(S.clientHeight{const $=y.current,T=S.key,k=Gn($).activeElement;if(T==="ArrowDown")S.preventDefault(),Dh($,k,u,l,SS);else if(T==="ArrowUp")S.preventDefault(),Dh($,k,u,l,L4);else if(T==="Home")S.preventDefault(),Dh($,null,u,l,SS);else if(T==="End")S.preventDefault(),Dh($,null,u,l,L4);else if(T.length===1){const M=v.current,I=T.toLowerCase(),N=performance.now();M.keys.length>0&&(N-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&I!==M.keys[0]&&(M.repeating=!1)),M.lastTime=N,M.keys.push(I);const E=k&&!M.repeating&&gN(k,M);M.previousKeyMatched&&(E||Dh($,k,!1,l,SS,M))?S.preventDefault():M.previousKeyMatched=!1}c&&c(S)},C=on(y,n);let x=-1;m.Children.forEach(a,(S,$)=>{if(!m.isValidElement(S)){x===$&&(x+=1,x>=a.length&&(x=-1));return}S.props.disabled||(f==="selectedMenu"&&S.props.selected||x===-1)&&(x=$),x===$&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const w=m.Children.map(a,(S,$)=>{if($===x){const T={};return i&&(T.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),m.cloneElement(S,T)}return S});return g.jsx(Cme,P({role:"menu",ref:C,className:s,onKeyDown:b,tabIndex:o?0:-1},p,{children:w}))}),i0=Lme;function Dme(e){return yt("MuiPopover",e)}bt("MuiPopover",["root","paper"]);const jme=["onEntering"],Nme=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zme=["slotProps"];function D4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function j4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function N4(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $S(e){return typeof e=="function"?e():e}const Bme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},Dme,t)},Hme=ke(oN,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vN=ke(id,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Wme=m.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:y,container:v,elevation:b=8,marginThreshold:C=16,open:x,PaperProps:w={},slots:S,slotProps:$,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:k=_y,transitionDuration:M="auto",TransitionProps:{onEntering:I}={},disableScrollLock:N=!1}=a,E=be(a.TransitionProps,jme),A=be(a,Nme),z=(r=$==null?void 0:$.paper)!=null?r:w,L=m.useRef(),O=on(L,z.ref),D=P({},a,{anchorOrigin:u,anchorReference:f,elevation:b,marginThreshold:C,externalPaperSlotProps:z,transformOrigin:T,TransitionComponent:k,transitionDuration:M,TransitionProps:E}),H=Bme(D),B=m.useCallback(()=>{if(f==="anchorPosition")return c;const Pe=$S(l),me=(Pe&&Pe.nodeType===1?Pe:Gn(L.current).body).getBoundingClientRect();return{top:me.top+D4(me,u.vertical),left:me.left+j4(me,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),j=m.useCallback(Pe=>({vertical:D4(Pe,T.vertical),horizontal:j4(Pe,T.horizontal)}),[T.horizontal,T.vertical]),W=m.useCallback(Pe=>{const $e={width:Pe.offsetWidth,height:Pe.offsetHeight},me=j($e);if(f==="none")return{top:null,left:null,transformOrigin:N4(me)};const ue=B();let ce=ue.top-me.vertical,Te=ue.left-me.horizontal;const Le=ce+$e.height,Re=Te+$e.width,Oe=ea($S(l)),K=Oe.innerHeight-C,ee=Oe.innerWidth-C;if(C!==null&&ceK){const pe=Le-K;ce-=pe,me.vertical+=pe}if(C!==null&&Teee){const pe=Re-ee;Te-=pe,me.horizontal+=pe}return{top:`${Math.round(ce)}px`,left:`${Math.round(Te)}px`,transformOrigin:N4(me)}},[l,f,B,j,C]),[U,Z]=m.useState(x),Y=m.useCallback(()=>{const Pe=L.current;if(!Pe)return;const $e=W(Pe);$e.top!==null&&(Pe.style.top=$e.top),$e.left!==null&&(Pe.style.left=$e.left),Pe.style.transformOrigin=$e.transformOrigin,Z(!0)},[W]);m.useEffect(()=>(N&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[l,N,Y]);const se=(Pe,$e)=>{I&&I(Pe,$e),Y()},Q=()=>{Z(!1)};m.useEffect(()=>{x&&Y()}),m.useImperativeHandle(s,()=>x?{updatePosition:()=>{Y()}}:null,[x,Y]),m.useEffect(()=>{if(!x)return;const Pe=wu(()=>{Y()}),$e=ea(l);return $e.addEventListener("resize",Pe),()=>{Pe.clear(),$e.removeEventListener("resize",Pe)}},[l,x,Y]);let ne=M;M==="auto"&&!k.muiSupportAuto&&(ne=void 0);const re=v||(l?Gn($S(l)).body:void 0),ge=(o=S==null?void 0:S.root)!=null?o:Hme,xe=(i=S==null?void 0:S.paper)!=null?i:vN,fe=xi({elementType:xe,externalSlotProps:P({},z,{style:U?z.style:P({},z.style,{opacity:0})}),additionalProps:{elevation:b,ref:O},ownerState:D,className:ze(H.paper,z==null?void 0:z.className)}),Se=xi({elementType:ge,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:A,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:x},ownerState:D,className:ze(H.root,y)}),{slotProps:de}=Se,ie=be(Se,zme);return g.jsx(ge,P({},ie,!og(ge)&&{slotProps:de,disableScrollLock:N},{children:g.jsx(k,P({appear:!0,in:x,onEntering:se,onExited:Q,timeout:ne},E,{children:g.jsx(xe,P({},fe,{children:p}))}))}))}),Vme=Wme;function Ume(e){return yt("MuiMenu",e)}bt("MuiMenu",["root","paper","list"]);const Gme=["onEntering"],qme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Kme={vertical:"top",horizontal:"right"},Yme={vertical:"top",horizontal:"left"},Xme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Ume,t)},Qme=ke(Vme,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zme=ke(vN,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jme=ke(i0,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ege=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:y={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:C}={},variant:x="selectedMenu",slots:w={},slotProps:S={}}=i,$=be(i.TransitionProps,Gme),T=be(i,qme),k=Xt(),M=k.direction==="rtl",I=P({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:C,PaperProps:y,transitionDuration:b,TransitionProps:$,variant:x}),N=Xme(I),E=a&&!u&&p,A=m.useRef(null),z=(W,U)=>{A.current&&A.current.adjustStyleForScrollbar(W,k),C&&C(W,U)},L=W=>{W.key==="Tab"&&(W.preventDefault(),f&&f(W,"tabKeyDown"))};let O=-1;m.Children.map(s,(W,U)=>{m.isValidElement(W)&&(W.props.disabled||(x==="selectedMenu"&&W.props.selected||O===-1)&&(O=U))});const D=(r=w.paper)!=null?r:Zme,H=(o=S.paper)!=null?o:y,B=xi({elementType:w.root,externalSlotProps:S.root,ownerState:I,className:[N.root,l]}),j=xi({elementType:D,externalSlotProps:H,ownerState:I,className:N.paper});return g.jsx(Qme,P({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?Kme:Yme,slots:{paper:D,root:w.root},slotProps:{root:B,paper:j},open:p,ref:n,transitionDuration:b,TransitionProps:P({onEntering:z},$),ownerState:I},T,{classes:v,children:g.jsx(Jme,P({onKeyDown:L,actions:A,autoFocus:a&&(O===-1||u),autoFocusItem:E,variant:x},c,{className:ze(N.list,c.className),children:s}))}))}),yN=ege;function tge(e){return yt("MuiMenuItem",e)}const nge=bt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),jh=nge,rge=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],oge=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ige=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tge,a);return P({},a,l)},age=ke(cu,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:oge})(({theme:e,ownerState:t})=>P({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${T4.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${T4.inset}`]:{marginLeft:52},[`& .${ky.root}`]:{marginTop:0,marginBottom:0},[`& .${ky.inset}`]:{paddingLeft:36},[`& .${F4.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${F4.root} svg`]:{fontSize:"1.25rem"}}))),sge=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,y=be(r,rge),v=m.useContext(lg),b=m.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),C=m.useRef(null);pn(()=>{o&&C.current&&C.current.focus()},[o]);const x=P({},r,{dense:b.dense,divider:s,disableGutters:l}),w=ige(r),S=on(C,n);let $;return r.disabled||($=f!==void 0?f:-1),g.jsx(lg.Provider,{value:b,children:g.jsx(age,P({ref:S,role:c,tabIndex:$,component:i,focusVisibleClassName:ze(w.focusVisible,u),className:ze(w.root,p)},y,{ownerState:x,classes:w}))})}),Co=sge;function lge(e){return yt("MuiNativeSelect",e)}const uge=bt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AM=uge,cge=["className","disabled","error","IconComponent","inputRef","variant"],dge=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${je(n)}`,i&&"iconOpen",r&&"disabled"]};return qe(s,lge,t)},bN=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${AM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),fge=ke("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${AM.multiple}`]:t.multiple}]}})(bN),xN=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),pge=ke("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(xN),hge=m.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=be(t,cge),c=P({},t,{disabled:o,variant:l,error:i}),f=dge(c);return g.jsxs(m.Fragment,{children:[g.jsx(fge,P({ownerState:c,className:ze(f.select,r),disabled:o,ref:s||n},u)),t.multiple?null:g.jsx(pge,{as:a,ownerState:c,className:f.icon})]})}),mge=hge;var z4;const gge=["children","classes","className","label","notched"],vge=ke("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yge=ke("legend")(({ownerState:e,theme:t})=>P({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&P({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function bge(e){const{className:t,label:n,notched:r}=e,o=be(e,gge),i=n!=null&&n!=="",a=P({},e,{notched:r,withLabel:i});return g.jsx(vge,P({"aria-hidden":!0,className:t,ownerState:a},o,{children:g.jsx(yge,{ownerState:a,children:i?g.jsx("span",{children:n}):z4||(z4=g.jsx("span",{className:"notranslate",children:"​"}))})}))}const xge=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wge=e=>{const{classes:t}=e,r=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ade,t);return P({},t,r)},Cge=ke(Lx,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ax})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ba.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ba.focused} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ba.error} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ba.disabled} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Sge=ke(bge,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),$ge=ke(Dx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fx})(({theme:e,ownerState:t})=>P({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),wN=m.forwardRef(function(t,n){var r,o,i,a,s;const l=$t({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:y=!1,notched:v,slots:b={},type:C="text"}=l,x=be(l,xge),w=wge(l),S=bs(),$=Su({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=P({},l,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:S,fullWidth:c,hiddenLabel:$.hiddenLabel,multiline:y,size:$.size,type:C}),k=(r=(o=b.root)!=null?o:u.Root)!=null?r:Cge,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:$ge;return g.jsx(sd,P({slots:{root:k,input:M},renderSuffix:I=>g.jsx(Sge,{ownerState:T,className:w.notchedOutline,label:p!=null&&p!==""&&$.required?s||(s=g.jsxs(m.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:c,inputComponent:f,multiline:y,ref:n,type:C},x,{classes:P({},w,{notchedOutline:null})}))});wN.muiName="Input";const CN=wN,B4=xt(g.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),H4=xt(g.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function _ge(e){return yt("MuiSelect",e)}const kge=bt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Nh=kge;var W4;const Pge=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Mge=ke("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nh.select}`]:t.select},{[`&.${Nh.select}`]:t[n.variant]},{[`&.${Nh.error}`]:t.error},{[`&.${Nh.multiple}`]:t.multiple}]}})(bN,{[`&.${Nh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Tge=ke("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(xN),Ege=ke("input",{shouldForwardProp:e=>ule(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function V4(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Ige(e){return e==null||typeof e=="string"&&!e.trim()}const Rge=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${je(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return qe(s,_ge,t)},Oge=m.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:y,error:v=!1,IconComponent:b,inputRef:C,labelId:x,MenuProps:w={},multiple:S,name:$,onBlur:T,onChange:k,onClose:M,onFocus:I,onOpen:N,open:E,readOnly:A,renderValue:z,SelectDisplayProps:L={},tabIndex:O,value:D,variant:H="standard"}=t,B=be(t,Pge),[j,W]=nu({controlled:D,default:f,name:"Select"}),[U,Z]=nu({controlled:E,default:c,name:"Select"}),Y=m.useRef(null),se=m.useRef(null),[Q,ne]=m.useState(null),{current:re}=m.useRef(E!=null),[ge,xe]=m.useState(),fe=on(n,C),Se=m.useCallback(Be=>{se.current=Be,Be&&ne(Be)},[]),de=Q==null?void 0:Q.parentNode;m.useImperativeHandle(fe,()=>({focus:()=>{se.current.focus()},node:Y.current,value:j}),[j]),m.useEffect(()=>{c&&U&&Q&&!re&&(xe(s?null:de.clientWidth),se.current.focus())},[Q,s]),m.useEffect(()=>{a&&se.current.focus()},[a]),m.useEffect(()=>{if(!x)return;const Be=Gn(se.current).getElementById(x);if(Be){const te=()=>{getSelection().isCollapsed&&se.current.focus()};return Be.addEventListener("click",te),()=>{Be.removeEventListener("click",te)}}},[x]);const ie=(Be,te)=>{Be?N&&N(te):M&&M(te),re||(xe(s?null:de.clientWidth),Z(Be))},Pe=Be=>{Be.button===0&&(Be.preventDefault(),se.current.focus(),ie(!0,Be))},$e=Be=>{ie(!1,Be)},me=m.Children.toArray(l),ue=Be=>{const te=me.find(X=>X.props.value===Be.target.value);te!==void 0&&(W(te.props.value),k&&k(Be,te))},ce=Be=>te=>{let X;if(te.currentTarget.hasAttribute("tabindex")){if(S){X=Array.isArray(j)?j.slice():[];const oe=j.indexOf(Be.props.value);oe===-1?X.push(Be.props.value):X.splice(oe,1)}else X=Be.props.value;if(Be.props.onClick&&Be.props.onClick(te),j!==X&&(W(X),k)){const oe=te.nativeEvent||te,Ie=new oe.constructor(oe.type,oe);Object.defineProperty(Ie,"target",{writable:!0,value:{value:X,name:$}}),k(Ie,Be)}S||ie(!1,te)}},Te=Be=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Be.key)!==-1&&(Be.preventDefault(),ie(!0,Be))},Le=Q!==null&&U,Re=Be=>{!Le&&T&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:j,name:$}}),T(Be))};delete B["aria-invalid"];let Oe,K;const ee=[];let pe=!1;(Sy({value:j})||y)&&(z?Oe=z(j):pe=!0);const ye=me.map(Be=>{if(!m.isValidElement(Be))return null;let te;if(S){if(!Array.isArray(j))throw new Error(uu(2));te=j.some(X=>V4(X,Be.props.value)),te&&pe&&ee.push(Be.props.children)}else te=V4(j,Be.props.value),te&&pe&&(K=Be.props.children);return m.cloneElement(Be,{"aria-selected":te?"true":"false",onClick:ce(Be),onKeyUp:X=>{X.key===" "&&X.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(X)},role:"option",selected:te,value:void 0,"data-value":Be.props.value})});pe&&(S?ee.length===0?Oe=null:Oe=ee.reduce((Be,te,X)=>(Be.push(te),X{const{classes:t}=e;return t},FM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ra(e)&&e!=="variant",slot:"Root"},jge=ke(hN,FM)(""),Nge=ke(CN,FM)(""),zge=ke(lN,FM)(""),SN=m.forwardRef(function(t,n){const r=$t({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=eN,id:f,input:p,inputProps:y,label:v,labelId:b,MenuProps:C,multiple:x=!1,native:w=!1,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:M,variant:I="outlined"}=r,N=be(r,Fge),E=w?mge:Age,A=bs(),z=Su({props:r,muiFormControl:A,states:["variant","error"]}),L=z.variant||I,O=P({},r,{variant:L,classes:a}),D=Dge(O),H=be(D,Lge),B=p||{standard:g.jsx(jge,{ownerState:O}),outlined:g.jsx(Nge,{label:v,ownerState:O}),filled:g.jsx(zge,{ownerState:O})}[L],j=on(n,B.ref);return g.jsx(m.Fragment,{children:m.cloneElement(B,P({inputComponent:E,inputProps:P({children:i,error:z.error,IconComponent:c,variant:L,type:void 0,multiple:x},w?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:C,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:P({id:f},M)},y,{classes:y?co(H,y.classes):H},p?p.props.inputProps:{})},x&&w&&L==="outlined"?{notched:!0}:{},{ref:j,className:ze(B.props.className,s,D.root)},!p&&{variant:L},N))})});SN.muiName="Select";const LM=SN;function Bge(e){return yt("MuiSkeleton",e)}bt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Hge=["animation","className","component","height","style","variant","width"];let Py=e=>e,U4,G4,q4,K4;const Wge=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return qe({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},Bge,t)},Vge=od(U4||(U4=Py` 0% { opacity: 1; } @@ -199,7 +199,7 @@ Error generating stack: `+i.message+` 100% { opacity: 1; } -`)),Uge=id(q4||(q4=My` +`)),Uge=od(G4||(G4=Py` 0% { transform: translateX(-100%); } @@ -212,9 +212,9 @@ Error generating stack: `+i.message+` 100% { transform: translateX(100%); } -`)),Gge=ke("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=ale(e.shape.borderRadius)||"px",r=sle(e.shape.borderRadius);return P({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Lt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&rg(K4||(K4=My` +`)),Gge=ke("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=ale(e.shape.borderRadius)||"px",r=sle(e.shape.borderRadius);return P({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Lt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&ng(q4||(q4=Py` animation: ${0} 2s ease-in-out 0.5s infinite; - `),Vge),({ownerState:e,theme:t})=>e.animation==="wave"&&rg(Y4||(Y4=My` + `),Vge),({ownerState:e,theme:t})=>e.animation==="wave"&&ng(K4||(K4=Py` position: relative; overflow: hidden; @@ -237,8 +237,8 @@ Error generating stack: `+i.message+` right: 0; top: 0; } - `),Uge,(t.vars||t).palette.action.hover)),qge=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:u="text",width:c}=r,f=be(r,Hge),p=P({},r,{animation:o,component:a,variant:u,hasChildren:!!f.children}),y=Wge(p);return g.jsx(Gge,P({as:a,ref:n,className:ze(y.root,i),ownerState:p},f,{style:P({width:c,height:s},l)}))}),Kge=qge;function Yge(e){return yt("MuiTooltip",e)}const Xge=bt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Wl=Xge,Qge=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Zge(e){return Math.round(e*1e5)/1e5}const Jge=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(i.split("-")[0])}`],arrow:["arrow"]};return Ge(a,Yge,t)},e0e=ke(sd,{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"] .${Wl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Wl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Wl.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"] .${Wl.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),t0e=ke("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Lt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Zge(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Wl.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"})),[`.${Wl.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"})),[`.${Wl.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Wl.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),n0e=ke("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Lt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Nv=!1,kS=null,Bh={x:0,y:0};function zv(e,t){return n=>{t&&t(n),e(n)}}const r0e=m.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p,y,v,b,C,x,w,S,$,T;const k=$t({props:t,name:"MuiTooltip"}),{arrow:M=!1,children:I,components:N={},componentsProps:E={},describeChild:A=!1,disableFocusListener:z=!1,disableHoverListener:L=!1,disableInteractive:O=!1,disableTouchListener:D=!1,enterDelay:H=100,enterNextDelay:B=0,enterTouchDelay:j=700,followCursor:W=!1,id:U,leaveDelay:Z=0,leaveTouchDelay:Y=1500,onClose:se,onOpen:Q,open:ne,placement:re="bottom",PopperComponent:ge,PopperProps:xe={},slotProps:fe={},slots:Se={},title:de,TransitionComponent:ie=ky,TransitionProps:Pe}=k,$e=be(k,Qge),me=m.isValidElement(I)?I:g.jsx("span",{children:I}),ue=Xt(),ce=ue.direction==="rtl",[Te,Le]=m.useState(),[Re,Oe]=m.useState(null),K=m.useRef(!1),ee=O||W,pe=m.useRef(),ye=m.useRef(),De=m.useRef(),Ae=m.useRef(),[Ee,Ce]=ru({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Qe=Ee;const Ct=ln(U),et=m.useRef(),Be=m.useCallback(()=>{et.current!==void 0&&(document.body.style.WebkitUserSelect=et.current,et.current=void 0),clearTimeout(Ae.current)},[]);m.useEffect(()=>()=>{clearTimeout(pe.current),clearTimeout(ye.current),clearTimeout(De.current),Be()},[Be]);const te=gt=>{clearTimeout(kS),Nv=!0,Ce(!0),Q&&!Qe&&Q(gt)},X=Dn(gt=>{clearTimeout(kS),kS=setTimeout(()=>{Nv=!1},800+Z),Ce(!1),se&&Qe&&se(gt),clearTimeout(pe.current),pe.current=setTimeout(()=>{K.current=!1},ue.transitions.duration.shortest)}),oe=gt=>{K.current&>.type!=="touchstart"||(Te&&Te.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(De.current),H||Nv&&B?ye.current=setTimeout(()=>{te(gt)},Nv?B:H):te(gt))},Ie=gt=>{clearTimeout(ye.current),clearTimeout(De.current),De.current=setTimeout(()=>{X(gt)},Z)},{isFocusVisibleRef:Ve,onBlur:Ke,onFocus:at,ref:Je}=sM(),[,nt]=m.useState(!1),_t=gt=>{Ke(gt),Ve.current===!1&&(nt(!1),Ie(gt))},ht=gt=>{Te||Le(gt.currentTarget),at(gt),Ve.current===!0&&(nt(!0),oe(gt))},lt=gt=>{K.current=!0;const or=me.props;or.onTouchStart&&or.onTouchStart(gt)},Rt=oe,jt=Ie,dn=gt=>{lt(gt),clearTimeout(De.current),clearTimeout(pe.current),Be(),et.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ae.current=setTimeout(()=>{document.body.style.WebkitUserSelect=et.current,oe(gt)},j)},hn=gt=>{me.props.onTouchEnd&&me.props.onTouchEnd(gt),Be(),clearTimeout(De.current),De.current=setTimeout(()=>{X(gt)},Y)};m.useEffect(()=>{if(!Qe)return;function gt(or){(or.key==="Escape"||or.key==="Esc")&&X(or)}return document.addEventListener("keydown",gt),()=>{document.removeEventListener("keydown",gt)}},[X,Qe]);const Pt=on(me.ref,Je,Le,n);!de&&de!==0&&(Qe=!1);const zt=m.useRef(),un=gt=>{const or=me.props;or.onMouseMove&&or.onMouseMove(gt),Bh={x:gt.clientX,y:gt.clientY},zt.current&&zt.current.update()},cn={},ut=typeof de=="string";A?(cn.title=!Qe&&ut&&!L?de:null,cn["aria-describedby"]=Qe?Ct:null):(cn["aria-label"]=ut?de:null,cn["aria-labelledby"]=Qe&&!ut?Ct:null);const mt=P({},cn,$e,me.props,{className:ze($e.className,me.props.className),onTouchStart:lt,ref:Pt},W?{onMouseMove:un}:{}),Ot={};D||(mt.onTouchStart=dn,mt.onTouchEnd=hn),L||(mt.onMouseOver=zv(Rt,mt.onMouseOver),mt.onMouseLeave=zv(jt,mt.onMouseLeave),ee||(Ot.onMouseOver=Rt,Ot.onMouseLeave=jt)),z||(mt.onFocus=zv(ht,mt.onFocus),mt.onBlur=zv(_t,mt.onBlur),ee||(Ot.onFocus=ht,Ot.onBlur=_t));const At=m.useMemo(()=>{var gt;let or=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(gt=xe.popperOptions)!=null&>.modifiers&&(or=or.concat(xe.popperOptions.modifiers)),P({},xe.popperOptions,{modifiers:or})},[Re,xe]),tt=P({},k,{isRtl:ce,arrow:M,disableInteractive:ee,placement:re,PopperComponentProp:ge,touch:K.current}),Ut=Jge(tt),_e=(r=(o=Se.popper)!=null?o:N.Popper)!=null?r:e0e,we=(i=(a=(s=Se.transition)!=null?s:N.Transition)!=null?a:ie)!=null?i:ky,Fe=(l=(u=Se.tooltip)!=null?u:N.Tooltip)!=null?l:t0e,rt=(c=(f=Se.arrow)!=null?f:N.Arrow)!=null?c:n0e,Tt=am(_e,P({},xe,(p=fe.popper)!=null?p:E.popper,{className:ze(Ut.popper,xe==null?void 0:xe.className,(y=(v=fe.popper)!=null?v:E.popper)==null?void 0:y.className)}),tt),en=am(we,P({},Pe,(b=fe.transition)!=null?b:E.transition),tt),_n=am(Fe,P({},(C=fe.tooltip)!=null?C:E.tooltip,{className:ze(Ut.tooltip,(x=(w=fe.tooltip)!=null?w:E.tooltip)==null?void 0:x.className)}),tt),ct=am(rt,P({},(S=fe.arrow)!=null?S:E.arrow,{className:ze(Ut.arrow,($=(T=fe.arrow)!=null?T:E.arrow)==null?void 0:$.className)}),tt);return g.jsxs(m.Fragment,{children:[m.cloneElement(me,mt),g.jsx(_e,P({as:ge??sd,placement:re,anchorEl:W?{getBoundingClientRect:()=>({top:Bh.y,left:Bh.x,right:Bh.x,bottom:Bh.y,width:0,height:0})}:Te,popperRef:zt,open:Te?Qe:!1,id:Ct,transition:!0},Ot,Tt,{popperOptions:At,children:({TransitionProps:gt})=>g.jsx(we,P({timeout:ue.transitions.duration.shorter},gt,en,{children:g.jsxs(Fe,P({},_n,{children:[de,M?g.jsx(rt,P({},ct,{ref:Oe})):null]}))}))}))]})}),o0e=r0e;function i0e(e){return yt("MuiSwitch",e)}const a0e=bt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lo=a0e,s0e=["className","color","edge","size","sx"],l0e=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ge(s,i0e,t);return P({},t,l)},u0e=ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lo.thumb}`]:{width:16,height:16},[`& .${lo.switchBase}`]:{padding:4,[`&.${lo.checked}`]:{transform:"translateX(16px)"}}})),c0e=ke(iN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${lo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${lo.checked}`]:{transform:"translateX(20px)"},[`&.${lo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lo.checked} + .${lo.track}`]:{opacity:.5},[`&.${lo.disabled} + .${lo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ex(e.palette[t.color].main,.62):Tx(e.palette[t.color].main,.55)}`}},[`&.${lo.checked} + .${lo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),d0e=ke("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),f0e=ke("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),p0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,u=be(r,s0e),c=P({},r,{color:i,edge:a,size:s}),f=l0e(c),p=g.jsx(f0e,{className:f.thumb,ownerState:c});return g.jsxs(u0e,{className:ze(f.root,o),sx:l,ownerState:c,children:[g.jsx(c0e,P({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:P({},f,{root:f.switchBase})})),g.jsx(d0e,{className:f.track,ownerState:c})]})}),kN=p0e;function h0e(e){return yt("MuiTab",e)}const m0e=bt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Wu=m0e,g0e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],v0e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,u={root:["root",i&&a&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ge(u,h0e,t)},y0e=ke(du,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Wu.iconWrapper}`]:P({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Wu.selected}`]:{opacity:1},[`&.${Wu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Wu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Wu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Wu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Wu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),b0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:y,onFocus:v,selected:b,selectionFollowsFocus:C,textColor:x="inherit",value:w,wrapped:S=!1}=r,$=be(r,g0e),T=P({},r,{disabled:i,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:S}),k=v0e(T),M=l&&f&&m.isValidElement(l)?m.cloneElement(l,{className:ze(k.iconWrapper,l.props.className)}):l,I=E=>{!b&&p&&p(E,w),y&&y(E)},N=E=>{C&&!b&&p&&p(E,w),v&&v(E)};return g.jsxs(y0e,P({focusRipple:!a,className:ze(k.root,o),ref:n,role:"tab","aria-selected":b,disabled:i,onClick:I,onFocus:N,ownerState:T,tabIndex:b?0:-1},$,{children:[u==="top"||u==="start"?g.jsxs(m.Fragment,{children:[M,f]}):g.jsxs(m.Fragment,{children:[f,M]}),c]}))}),X4=b0e,x0e=m.createContext(),w0e=x0e,C0e=m.createContext(),S0e=C0e;function $0e(e){return yt("MuiTableCell",e)}const _0e=bt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),k0e=_0e,P0e=["align","className","component","padding","scope","size","sortDirection","variant"],M0e=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(i)}`]};return Ge(s,$0e,t)},T0e=ke("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Ex(Lt(e.palette.divider,1),.88):Tx(Lt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${k0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),E0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:u,sortDirection:c,variant:f}=r,p=be(r,P0e),y=m.useContext(w0e),v=m.useContext(S0e),b=v&&v.variant==="head";let C;a?C=a:C=b?"th":"td";let x=l;C==="td"?x=void 0:!x&&b&&(x="col");const w=f||v&&v.variant,S=P({},r,{align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:u||(y&&y.size?y.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&y&&y.stickyHeader,variant:w}),$=M0e(S);let T=null;return c&&(T=c==="asc"?"ascending":"descending"),g.jsx(T0e,P({as:C,ref:n,className:ze($.root,i),"aria-sort":T,scope:x,ownerState:S},p))}),F_=E0e;function I0e(e){return yt("MuiToolbar",e)}bt("MuiToolbar",["root","gutters","regular","dense"]);const R0e=["className","component","disableGutters","variant"],O0e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ge({root:["root",!n&&"gutters",r]},I0e,t)},A0e=ke("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),F0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=be(r,R0e),u=P({},r,{component:i,disableGutters:a,variant:s}),c=O0e(u);return g.jsx(A0e,P({as:i,className:ze(c.root,o),ref:n,ownerState:u},l))}),PN=F0e,L_=xt(g.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),D_=xt(g.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var Q4,Z4,J4,eA,tA,nA,rA,oA;const L0e=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],D0e=m.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:f}=t,p=be(t,L0e),y=Xt(),v=w=>{s(w,0)},b=w=>{s(w,l-1)},C=w=>{s(w,l+1)},x=w=>{s(w,Math.max(0,Math.ceil(o/u)-1))};return g.jsxs("div",P({ref:n},p,{children:[c&&g.jsx(wo,{onClick:v,disabled:l===0,"aria-label":i("first",l),title:i("first",l),children:y.direction==="rtl"?Q4||(Q4=g.jsx(W4,{})):Z4||(Z4=g.jsx(H4,{}))}),g.jsx(wo,P({onClick:b,disabled:l===0,color:"inherit","aria-label":i("previous",l),title:i("previous",l)},r,{children:y.direction==="rtl"?J4||(J4=g.jsx(D_,{})):eA||(eA=g.jsx(L_,{}))})),g.jsx(wo,P({onClick:C,disabled:o!==-1?l>=Math.ceil(o/u)-1:!1,color:"inherit","aria-label":i("next",l),title:i("next",l)},a,{children:y.direction==="rtl"?tA||(tA=g.jsx(L_,{})):nA||(nA=g.jsx(D_,{}))})),f&&g.jsx(wo,{onClick:x,disabled:l>=Math.ceil(o/u)-1,"aria-label":i("last",l),title:i("last",l),children:y.direction==="rtl"?rA||(rA=g.jsx(H4,{})):oA||(oA=g.jsx(W4,{}))})]}))}),j0e=D0e;function N0e(e){return yt("MuiTablePagination",e)}const z0e=bt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),bc=z0e;var iA;const B0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],H0e=ke(F_,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),W0e=ke(PN,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${bc.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${bc.actions}`]:{flexShrink:0,marginLeft:20}})),V0e=ke("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),U0e=ke("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),G0e=ke(DM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${bc.selectIcon}`]:t.selectIcon,[`& .${bc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${bc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),q0e=ke(Co,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),K0e=ke("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function Y0e({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function X0e(e){return`Go to ${e} page`}const Q0e=e=>{const{classes:t}=e;return Ge({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},N0e,t)},Z0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=j0e,backIconButtonProps:i,className:a,colSpan:s,component:l=F_,count:u,getItemAriaLabel:c=X0e,labelDisplayedRows:f=Y0e,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:y,onPageChange:v,onRowsPerPageChange:b,page:C,rowsPerPage:x,rowsPerPageOptions:w=[10,25,50,100],SelectProps:S={},showFirstButton:$=!1,showLastButton:T=!1}=r,k=be(r,B0e),M=r,I=Q0e(M),N=S.native?"option":q0e;let E;(l===F_||l==="td")&&(E=s||1e3);const A=ln(S.id),z=ln(S.labelId),L=()=>u===-1?(C+1)*x:x===-1?u:Math.min(u,(C+1)*x);return g.jsx(H0e,P({colSpan:E,ref:n,as:l,ownerState:M,className:ze(I.root,a)},k,{children:g.jsxs(W0e,{className:I.toolbar,children:[g.jsx(V0e,{className:I.spacer}),w.length>1&&g.jsx(U0e,{className:I.selectLabel,id:z,children:p}),w.length>1&&g.jsx(G0e,P({variant:"standard"},!S.variant&&{input:iA||(iA=g.jsx(ld,{}))},{value:x,onChange:b,id:A,labelId:z},S,{classes:P({},S.classes,{root:ze(I.input,I.selectRoot,(S.classes||{}).root),select:ze(I.select,(S.classes||{}).select),icon:ze(I.selectIcon,(S.classes||{}).icon)}),children:w.map(O=>m.createElement(N,P({},!ig(N)&&{ownerState:M},{className:I.menuItem,key:O.label?O.label:O,value:O.value?O.value:O}),O.label?O.label:O))})),g.jsx(K0e,{className:I.displayedRows,children:f({from:u===0?0:C*x+1,to:L(),count:u===-1?-1:u,page:C})}),g.jsx(o,{className:I.actions,backIconButtonProps:i,count:u,nextIconButtonProps:y,onPageChange:v,page:C,rowsPerPage:x,showFirstButton:$,showLastButton:T,getItemAriaLabel:c})]})}))}),J0e=Z0e;function eve(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function tve(e,t,n,r={},o=()=>{}){const{ease:i=eve,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=p);const y=Math.min(1,(p-s)/a);if(t[e]=i(y)*(n-l)+l,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const nve=["onChange"],rve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ove(e){const{onChange:t}=e,n=be(e,nve),r=m.useRef(),o=m.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return pn(()=>{const a=Cu(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ea(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),m.useEffect(()=>{i(),t(r.current)},[t]),g.jsx("div",P({style:rve,ref:o},n))}function ive(e){return yt("MuiTabScrollButton",e)}const ave=bt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),sve=ave,lve=["className","slots","slotProps","direction","orientation","disabled"],uve=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ge({root:["root",n,r&&"disabled"]},ive,t)},cve=ke(du,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${sve.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),dve=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=i,c=be(i,lve),p=Xt().direction==="rtl",y=P({isRtl:p},i),v=uve(y),b=(r=s.StartScrollButtonIcon)!=null?r:L_,C=(o=s.EndScrollButtonIcon)!=null?o:D_,x=xi({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),w=xi({elementType:C,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return g.jsx(cve,P({component:"div",className:ze(v.root,a),ref:n,role:null,ownerState:y,tabIndex:null},c,{children:u==="left"?g.jsx(b,P({},x)):g.jsx(C,P({},w))}))}),fve=dve;function pve(e){return yt("MuiTabs",e)}const hve=bt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),PS=hve,mve=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],aA=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,sA=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Bv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},gve=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Ge({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},pve,l)},vve=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${PS.scrollButtons}`]:t.scrollButtons},{[`& .${PS.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${PS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),yve=ke("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),bve=ke("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),xve=ke("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),wve=ke(ove)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),lA={},Cve=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTabs"}),o=Xt(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:b,orientation:C="horizontal",ScrollButtonComponent:x=fve,scrollButtons:w="auto",selectionFollowsFocus:S,slots:$={},slotProps:T={},TabIndicatorProps:k={},TabScrollButtonProps:M={},textColor:I="primary",value:N,variant:E="standard",visibleScrollbar:A=!1}=r,z=be(r,mve),L=E==="scrollable",O=C==="vertical",D=O?"scrollTop":"scrollLeft",H=O?"top":"left",B=O?"bottom":"right",j=O?"clientHeight":"clientWidth",W=O?"height":"width",U=P({},r,{component:p,allowScrollButtonsMobile:y,indicatorColor:v,orientation:C,vertical:O,scrollButtons:w,textColor:I,variant:E,visibleScrollbar:A,fixed:!L,hideScrollbar:L&&!A,scrollableX:L&&!O,scrollableY:L&&O,centered:u&&!L,scrollButtonsHideMobile:!y}),Z=gve(U),Y=xi({elementType:$.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:U}),se=xi({elementType:$.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:U}),[Q,ne]=m.useState(!1),[re,ge]=m.useState(lA),[xe,fe]=m.useState(!1),[Se,de]=m.useState(!1),[ie,Pe]=m.useState(!1),[$e,me]=m.useState({overflow:"hidden",scrollbarWidth:0}),ue=new Map,ce=m.useRef(null),Te=m.useRef(null),Le=()=>{const X=ce.current;let oe;if(X){const Ve=X.getBoundingClientRect();oe={clientWidth:X.clientWidth,scrollLeft:X.scrollLeft,scrollTop:X.scrollTop,scrollLeftNormalized:Uoe(X,o.direction),scrollWidth:X.scrollWidth,top:Ve.top,bottom:Ve.bottom,left:Ve.left,right:Ve.right}}let Ie;if(X&&N!==!1){const Ve=Te.current.children;if(Ve.length>0){const Ke=Ve[ue.get(N)];Ie=Ke?Ke.getBoundingClientRect():null}}return{tabsMeta:oe,tabMeta:Ie}},Re=Dn(()=>{const{tabsMeta:X,tabMeta:oe}=Le();let Ie=0,Ve;if(O)Ve="top",oe&&X&&(Ie=oe.top-X.top+X.scrollTop);else if(Ve=i?"right":"left",oe&&X){const at=i?X.scrollLeftNormalized+X.clientWidth-X.scrollWidth:X.scrollLeft;Ie=(i?-1:1)*(oe[Ve]-X[Ve]+at)}const Ke={[Ve]:Ie,[W]:oe?oe[W]:0};if(isNaN(re[Ve])||isNaN(re[W]))ge(Ke);else{const at=Math.abs(re[Ve]-Ke[Ve]),Je=Math.abs(re[W]-Ke[W]);(at>=1||Je>=1)&&ge(Ke)}}),Oe=(X,{animation:oe=!0}={})=>{oe?tve(D,ce.current,X,{duration:o.transitions.duration.standard}):ce.current[D]=X},K=X=>{let oe=ce.current[D];O?oe+=X:(oe+=X*(i?-1:1),oe*=i&&rj()==="reverse"?-1:1),Oe(oe)},ee=()=>{const X=ce.current[j];let oe=0;const Ie=Array.from(Te.current.children);for(let Ve=0;VeX){Ve===0&&(oe=X);break}oe+=Ke[j]}return oe},pe=()=>{K(-1*ee())},ye=()=>{K(ee())},De=m.useCallback(X=>{me({overflow:null,scrollbarWidth:X})},[]),Ae=()=>{const X={};X.scrollbarSizeListener=L?g.jsx(wve,{onChange:De,className:ze(Z.scrollableX,Z.hideScrollbar)}):null;const Ie=L&&(w==="auto"&&(xe||Se)||w===!0);return X.scrollButtonStart=Ie?g.jsx(x,P({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:i?"right":"left",onClick:pe,disabled:!xe},M,{className:ze(Z.scrollButtons,M.className)})):null,X.scrollButtonEnd=Ie?g.jsx(x,P({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:C,direction:i?"left":"right",onClick:ye,disabled:!Se},M,{className:ze(Z.scrollButtons,M.className)})):null,X},Ee=Dn(X=>{const{tabsMeta:oe,tabMeta:Ie}=Le();if(!(!Ie||!oe)){if(Ie[H]oe[B]){const Ve=oe[D]+(Ie[B]-oe[B]);Oe(Ve,{animation:X})}}}),Ce=Dn(()=>{L&&w!==!1&&Pe(!ie)});m.useEffect(()=>{const X=Cu(()=>{ce.current&&Re()}),oe=ea(ce.current);oe.addEventListener("resize",X);let Ie;return typeof ResizeObserver<"u"&&(Ie=new ResizeObserver(X),Array.from(Te.current.children).forEach(Ve=>{Ie.observe(Ve)})),()=>{X.clear(),oe.removeEventListener("resize",X),Ie&&Ie.disconnect()}},[Re]),m.useEffect(()=>{const X=Array.from(Te.current.children),oe=X.length;if(typeof IntersectionObserver<"u"&&oe>0&&L&&w!==!1){const Ie=X[0],Ve=X[oe-1],Ke={root:ce.current,threshold:.99},at=ht=>{fe(!ht[0].isIntersecting)},Je=new IntersectionObserver(at,Ke);Je.observe(Ie);const nt=ht=>{de(!ht[0].isIntersecting)},_t=new IntersectionObserver(nt,Ke);return _t.observe(Ve),()=>{Je.disconnect(),_t.disconnect()}}},[L,w,ie,c==null?void 0:c.length]),m.useEffect(()=>{ne(!0)},[]),m.useEffect(()=>{Re()}),m.useEffect(()=>{Ee(lA!==re)},[Ee,re]),m.useImperativeHandle(l,()=>({updateIndicator:Re,updateScrollButtons:Ce}),[Re,Ce]);const Qe=g.jsx(xve,P({},k,{className:ze(Z.indicator,k.className),ownerState:U,style:P({},re,k.style)}));let Ct=0;const et=m.Children.map(c,X=>{if(!m.isValidElement(X))return null;const oe=X.props.value===void 0?Ct:X.props.value;ue.set(oe,Ct);const Ie=oe===N;return Ct+=1,m.cloneElement(X,P({fullWidth:E==="fullWidth",indicator:Ie&&!Q&&Qe,selected:Ie,selectionFollowsFocus:S,onChange:b,textColor:I,value:oe},Ct===1&&N===!1&&!X.props.tabIndex?{tabIndex:0}:{}))}),Be=X=>{const oe=Te.current,Ie=Gn(oe).activeElement;if(Ie.getAttribute("role")!=="tab")return;let Ke=C==="horizontal"?"ArrowLeft":"ArrowUp",at=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Ke="ArrowRight",at="ArrowLeft"),X.key){case Ke:X.preventDefault(),Bv(oe,Ie,sA);break;case at:X.preventDefault(),Bv(oe,Ie,aA);break;case"Home":X.preventDefault(),Bv(oe,null,aA);break;case"End":X.preventDefault(),Bv(oe,null,sA);break}},te=Ae();return g.jsxs(vve,P({className:ze(Z.root,f),ownerState:U,ref:n,as:p},z,{children:[te.scrollButtonStart,te.scrollbarSizeListener,g.jsxs(yve,{className:Z.scroller,ownerState:U,style:{overflow:$e.overflow,[O?`margin${i?"Left":"Right"}`:"marginBottom"]:A?void 0:-$e.scrollbarWidth},ref:ce,children:[g.jsx(bve,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:Z.flexContainer,ownerState:U,onKeyDown:Be,ref:Te,role:"tablist",children:et}),Q&&Qe]}),te.scrollButtonEnd]}))}),Sve=Cve;function $ve(e){return yt("MuiTextField",e)}bt("MuiTextField",["root"]);const _ve=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],kve={standard:gN,filled:cN,outlined:$N},Pve=e=>{const{classes:t}=e;return Ge({root:["root"]},$ve,t)},Mve=ke(dN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tve=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:C,inputProps:x,InputProps:w,inputRef:S,label:$,maxRows:T,minRows:k,multiline:M=!1,name:I,onBlur:N,onChange:E,onFocus:A,placeholder:z,required:L=!1,rows:O,select:D=!1,SelectProps:H,type:B,value:j,variant:W="outlined"}=r,U=be(r,_ve),Z=P({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:y,multiline:M,required:L,select:D,variant:W}),Y=Pve(Z),se={};W==="outlined"&&(C&&typeof C.shrink<"u"&&(se.notched=C.shrink),se.label=$),D&&((!H||!H.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const Q=ln(b),ne=v&&Q?`${Q}-helper-text`:void 0,re=$&&Q?`${Q}-label`:void 0,ge=kve[W],xe=g.jsx(ge,P({"aria-describedby":ne,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:y,multiline:M,name:I,rows:O,maxRows:T,minRows:k,type:B,value:j,id:Q,inputRef:S,onBlur:N,onChange:E,onFocus:A,placeholder:z,inputProps:x},se,w));return g.jsxs(Mve,P({className:ze(Y.root,s),disabled:c,error:f,fullWidth:y,ref:n,required:L,color:l,variant:W,ownerState:Z},U,{children:[$!=null&&$!==""&&g.jsx(vN,P({htmlFor:Q,id:re},C,{children:$})),D?g.jsx(DM,P({"aria-describedby":ne,id:Q,labelId:re,value:j,input:xe},H,{children:a})):xe,v&&g.jsx(Phe,P({id:ne},p,{children:v}))]}))}),ou=Tve;/*! ***************************************************************************** + `),Uge,(t.vars||t).palette.action.hover)),qge=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:u="text",width:c}=r,f=be(r,Hge),p=P({},r,{animation:o,component:a,variant:u,hasChildren:!!f.children}),y=Wge(p);return g.jsx(Gge,P({as:a,ref:n,className:ze(y.root,i),ownerState:p},f,{style:P({width:c,height:s},l)}))}),Kge=qge;function Yge(e){return yt("MuiTooltip",e)}const Xge=bt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Hl=Xge,Qge=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Zge(e){return Math.round(e*1e5)/1e5}const Jge=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(i.split("-")[0])}`],arrow:["arrow"]};return qe(a,Yge,t)},e0e=ke(ad,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Hl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Hl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Hl.arrow}`]:P({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Hl.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),t0e=ke("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Lt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Zge(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Hl.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Hl.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Hl.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Hl.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),n0e=ke("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Lt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let jv=!1,_S=null,zh={x:0,y:0};function Nv(e,t){return n=>{t&&t(n),e(n)}}const r0e=m.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p,y,v,b,C,x,w,S,$,T;const k=$t({props:t,name:"MuiTooltip"}),{arrow:M=!1,children:I,components:N={},componentsProps:E={},describeChild:A=!1,disableFocusListener:z=!1,disableHoverListener:L=!1,disableInteractive:O=!1,disableTouchListener:D=!1,enterDelay:H=100,enterNextDelay:B=0,enterTouchDelay:j=700,followCursor:W=!1,id:U,leaveDelay:Z=0,leaveTouchDelay:Y=1500,onClose:se,onOpen:Q,open:ne,placement:re="bottom",PopperComponent:ge,PopperProps:xe={},slotProps:fe={},slots:Se={},title:de,TransitionComponent:ie=_y,TransitionProps:Pe}=k,$e=be(k,Qge),me=m.isValidElement(I)?I:g.jsx("span",{children:I}),ue=Xt(),ce=ue.direction==="rtl",[Te,Le]=m.useState(),[Re,Oe]=m.useState(null),K=m.useRef(!1),ee=O||W,pe=m.useRef(),ye=m.useRef(),De=m.useRef(),Ae=m.useRef(),[Ee,Ce]=nu({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Qe=Ee;const Ct=ln(U),et=m.useRef(),Be=m.useCallback(()=>{et.current!==void 0&&(document.body.style.WebkitUserSelect=et.current,et.current=void 0),clearTimeout(Ae.current)},[]);m.useEffect(()=>()=>{clearTimeout(pe.current),clearTimeout(ye.current),clearTimeout(De.current),Be()},[Be]);const te=gt=>{clearTimeout(_S),jv=!0,Ce(!0),Q&&!Qe&&Q(gt)},X=Dn(gt=>{clearTimeout(_S),_S=setTimeout(()=>{jv=!1},800+Z),Ce(!1),se&&Qe&&se(gt),clearTimeout(pe.current),pe.current=setTimeout(()=>{K.current=!1},ue.transitions.duration.shortest)}),oe=gt=>{K.current&>.type!=="touchstart"||(Te&&Te.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(De.current),H||jv&&B?ye.current=setTimeout(()=>{te(gt)},jv?B:H):te(gt))},Ie=gt=>{clearTimeout(ye.current),clearTimeout(De.current),De.current=setTimeout(()=>{X(gt)},Z)},{isFocusVisibleRef:Ve,onBlur:Ke,onFocus:at,ref:Je}=aM(),[,nt]=m.useState(!1),_t=gt=>{Ke(gt),Ve.current===!1&&(nt(!1),Ie(gt))},ht=gt=>{Te||Le(gt.currentTarget),at(gt),Ve.current===!0&&(nt(!0),oe(gt))},lt=gt=>{K.current=!0;const or=me.props;or.onTouchStart&&or.onTouchStart(gt)},Rt=oe,jt=Ie,dn=gt=>{lt(gt),clearTimeout(De.current),clearTimeout(pe.current),Be(),et.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ae.current=setTimeout(()=>{document.body.style.WebkitUserSelect=et.current,oe(gt)},j)},hn=gt=>{me.props.onTouchEnd&&me.props.onTouchEnd(gt),Be(),clearTimeout(De.current),De.current=setTimeout(()=>{X(gt)},Y)};m.useEffect(()=>{if(!Qe)return;function gt(or){(or.key==="Escape"||or.key==="Esc")&&X(or)}return document.addEventListener("keydown",gt),()=>{document.removeEventListener("keydown",gt)}},[X,Qe]);const Pt=on(me.ref,Je,Le,n);!de&&de!==0&&(Qe=!1);const zt=m.useRef(),un=gt=>{const or=me.props;or.onMouseMove&&or.onMouseMove(gt),zh={x:gt.clientX,y:gt.clientY},zt.current&&zt.current.update()},cn={},ut=typeof de=="string";A?(cn.title=!Qe&&ut&&!L?de:null,cn["aria-describedby"]=Qe?Ct:null):(cn["aria-label"]=ut?de:null,cn["aria-labelledby"]=Qe&&!ut?Ct:null);const mt=P({},cn,$e,me.props,{className:ze($e.className,me.props.className),onTouchStart:lt,ref:Pt},W?{onMouseMove:un}:{}),Ot={};D||(mt.onTouchStart=dn,mt.onTouchEnd=hn),L||(mt.onMouseOver=Nv(Rt,mt.onMouseOver),mt.onMouseLeave=Nv(jt,mt.onMouseLeave),ee||(Ot.onMouseOver=Rt,Ot.onMouseLeave=jt)),z||(mt.onFocus=Nv(ht,mt.onFocus),mt.onBlur=Nv(_t,mt.onBlur),ee||(Ot.onFocus=ht,Ot.onBlur=_t));const At=m.useMemo(()=>{var gt;let or=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(gt=xe.popperOptions)!=null&>.modifiers&&(or=or.concat(xe.popperOptions.modifiers)),P({},xe.popperOptions,{modifiers:or})},[Re,xe]),tt=P({},k,{isRtl:ce,arrow:M,disableInteractive:ee,placement:re,PopperComponentProp:ge,touch:K.current}),Ut=Jge(tt),_e=(r=(o=Se.popper)!=null?o:N.Popper)!=null?r:e0e,we=(i=(a=(s=Se.transition)!=null?s:N.Transition)!=null?a:ie)!=null?i:_y,Fe=(l=(u=Se.tooltip)!=null?u:N.Tooltip)!=null?l:t0e,rt=(c=(f=Se.arrow)!=null?f:N.Arrow)!=null?c:n0e,Tt=im(_e,P({},xe,(p=fe.popper)!=null?p:E.popper,{className:ze(Ut.popper,xe==null?void 0:xe.className,(y=(v=fe.popper)!=null?v:E.popper)==null?void 0:y.className)}),tt),en=im(we,P({},Pe,(b=fe.transition)!=null?b:E.transition),tt),_n=im(Fe,P({},(C=fe.tooltip)!=null?C:E.tooltip,{className:ze(Ut.tooltip,(x=(w=fe.tooltip)!=null?w:E.tooltip)==null?void 0:x.className)}),tt),ct=im(rt,P({},(S=fe.arrow)!=null?S:E.arrow,{className:ze(Ut.arrow,($=(T=fe.arrow)!=null?T:E.arrow)==null?void 0:$.className)}),tt);return g.jsxs(m.Fragment,{children:[m.cloneElement(me,mt),g.jsx(_e,P({as:ge??ad,placement:re,anchorEl:W?{getBoundingClientRect:()=>({top:zh.y,left:zh.x,right:zh.x,bottom:zh.y,width:0,height:0})}:Te,popperRef:zt,open:Te?Qe:!1,id:Ct,transition:!0},Ot,Tt,{popperOptions:At,children:({TransitionProps:gt})=>g.jsx(we,P({timeout:ue.transitions.duration.shorter},gt,en,{children:g.jsxs(Fe,P({},_n,{children:[de,M?g.jsx(rt,P({},ct,{ref:Oe})):null]}))}))}))]})}),o0e=r0e;function i0e(e){return yt("MuiSwitch",e)}const a0e=bt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lo=a0e,s0e=["className","color","edge","size","sx"],l0e=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=qe(s,i0e,t);return P({},t,l)},u0e=ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lo.thumb}`]:{width:16,height:16},[`& .${lo.switchBase}`]:{padding:4,[`&.${lo.checked}`]:{transform:"translateX(16px)"}}})),c0e=ke(rN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${lo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${lo.checked}`]:{transform:"translateX(20px)"},[`&.${lo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lo.checked} + .${lo.track}`]:{opacity:.5},[`&.${lo.disabled} + .${lo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Tx(e.palette[t.color].main,.62):Mx(e.palette[t.color].main,.55)}`}},[`&.${lo.checked} + .${lo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),d0e=ke("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),f0e=ke("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),p0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,u=be(r,s0e),c=P({},r,{color:i,edge:a,size:s}),f=l0e(c),p=g.jsx(f0e,{className:f.thumb,ownerState:c});return g.jsxs(u0e,{className:ze(f.root,o),sx:l,ownerState:c,children:[g.jsx(c0e,P({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:P({},f,{root:f.switchBase})})),g.jsx(d0e,{className:f.track,ownerState:c})]})}),$N=p0e;function h0e(e){return yt("MuiTab",e)}const m0e=bt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Hu=m0e,g0e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],v0e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,u={root:["root",i&&a&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return qe(u,h0e,t)},y0e=ke(cu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Hu.iconWrapper}`]:P({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Hu.selected}`]:{opacity:1},[`&.${Hu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Hu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Hu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Hu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Hu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),b0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:y,onFocus:v,selected:b,selectionFollowsFocus:C,textColor:x="inherit",value:w,wrapped:S=!1}=r,$=be(r,g0e),T=P({},r,{disabled:i,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:S}),k=v0e(T),M=l&&f&&m.isValidElement(l)?m.cloneElement(l,{className:ze(k.iconWrapper,l.props.className)}):l,I=E=>{!b&&p&&p(E,w),y&&y(E)},N=E=>{C&&!b&&p&&p(E,w),v&&v(E)};return g.jsxs(y0e,P({focusRipple:!a,className:ze(k.root,o),ref:n,role:"tab","aria-selected":b,disabled:i,onClick:I,onFocus:N,ownerState:T,tabIndex:b?0:-1},$,{children:[u==="top"||u==="start"?g.jsxs(m.Fragment,{children:[M,f]}):g.jsxs(m.Fragment,{children:[f,M]}),c]}))}),Y4=b0e,x0e=m.createContext(),w0e=x0e,C0e=m.createContext(),S0e=C0e;function $0e(e){return yt("MuiTableCell",e)}const _0e=bt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),k0e=_0e,P0e=["align","className","component","padding","scope","size","sortDirection","variant"],M0e=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(i)}`]};return qe(s,$0e,t)},T0e=ke("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Tx(Lt(e.palette.divider,1),.88):Mx(Lt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${k0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),E0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:u,sortDirection:c,variant:f}=r,p=be(r,P0e),y=m.useContext(w0e),v=m.useContext(S0e),b=v&&v.variant==="head";let C;a?C=a:C=b?"th":"td";let x=l;C==="td"?x=void 0:!x&&b&&(x="col");const w=f||v&&v.variant,S=P({},r,{align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:u||(y&&y.size?y.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&y&&y.stickyHeader,variant:w}),$=M0e(S);let T=null;return c&&(T=c==="asc"?"ascending":"descending"),g.jsx(T0e,P({as:C,ref:n,className:ze($.root,i),"aria-sort":T,scope:x,ownerState:S},p))}),A_=E0e;function I0e(e){return yt("MuiToolbar",e)}bt("MuiToolbar",["root","gutters","regular","dense"]);const R0e=["className","component","disableGutters","variant"],O0e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return qe({root:["root",!n&&"gutters",r]},I0e,t)},A0e=ke("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),F0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=be(r,R0e),u=P({},r,{component:i,disableGutters:a,variant:s}),c=O0e(u);return g.jsx(A0e,P({as:i,className:ze(c.root,o),ref:n,ownerState:u},l))}),_N=F0e,F_=xt(g.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),L_=xt(g.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var X4,Q4,Z4,J4,eA,tA,nA,rA;const L0e=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],D0e=m.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:f}=t,p=be(t,L0e),y=Xt(),v=w=>{s(w,0)},b=w=>{s(w,l-1)},C=w=>{s(w,l+1)},x=w=>{s(w,Math.max(0,Math.ceil(o/u)-1))};return g.jsxs("div",P({ref:n},p,{children:[c&&g.jsx(wo,{onClick:v,disabled:l===0,"aria-label":i("first",l),title:i("first",l),children:y.direction==="rtl"?X4||(X4=g.jsx(H4,{})):Q4||(Q4=g.jsx(B4,{}))}),g.jsx(wo,P({onClick:b,disabled:l===0,color:"inherit","aria-label":i("previous",l),title:i("previous",l)},r,{children:y.direction==="rtl"?Z4||(Z4=g.jsx(L_,{})):J4||(J4=g.jsx(F_,{}))})),g.jsx(wo,P({onClick:C,disabled:o!==-1?l>=Math.ceil(o/u)-1:!1,color:"inherit","aria-label":i("next",l),title:i("next",l)},a,{children:y.direction==="rtl"?eA||(eA=g.jsx(F_,{})):tA||(tA=g.jsx(L_,{}))})),f&&g.jsx(wo,{onClick:x,disabled:l>=Math.ceil(o/u)-1,"aria-label":i("last",l),title:i("last",l),children:y.direction==="rtl"?nA||(nA=g.jsx(B4,{})):rA||(rA=g.jsx(H4,{}))})]}))}),j0e=D0e;function N0e(e){return yt("MuiTablePagination",e)}const z0e=bt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),yc=z0e;var oA;const B0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],H0e=ke(A_,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),W0e=ke(_N,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${yc.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${yc.actions}`]:{flexShrink:0,marginLeft:20}})),V0e=ke("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),U0e=ke("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),G0e=ke(LM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${yc.selectIcon}`]:t.selectIcon,[`& .${yc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),q0e=ke(Co,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),K0e=ke("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function Y0e({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function X0e(e){return`Go to ${e} page`}const Q0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},N0e,t)},Z0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=j0e,backIconButtonProps:i,className:a,colSpan:s,component:l=A_,count:u,getItemAriaLabel:c=X0e,labelDisplayedRows:f=Y0e,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:y,onPageChange:v,onRowsPerPageChange:b,page:C,rowsPerPage:x,rowsPerPageOptions:w=[10,25,50,100],SelectProps:S={},showFirstButton:$=!1,showLastButton:T=!1}=r,k=be(r,B0e),M=r,I=Q0e(M),N=S.native?"option":q0e;let E;(l===A_||l==="td")&&(E=s||1e3);const A=ln(S.id),z=ln(S.labelId),L=()=>u===-1?(C+1)*x:x===-1?u:Math.min(u,(C+1)*x);return g.jsx(H0e,P({colSpan:E,ref:n,as:l,ownerState:M,className:ze(I.root,a)},k,{children:g.jsxs(W0e,{className:I.toolbar,children:[g.jsx(V0e,{className:I.spacer}),w.length>1&&g.jsx(U0e,{className:I.selectLabel,id:z,children:p}),w.length>1&&g.jsx(G0e,P({variant:"standard"},!S.variant&&{input:oA||(oA=g.jsx(sd,{}))},{value:x,onChange:b,id:A,labelId:z},S,{classes:P({},S.classes,{root:ze(I.input,I.selectRoot,(S.classes||{}).root),select:ze(I.select,(S.classes||{}).select),icon:ze(I.selectIcon,(S.classes||{}).icon)}),children:w.map(O=>m.createElement(N,P({},!og(N)&&{ownerState:M},{className:I.menuItem,key:O.label?O.label:O,value:O.value?O.value:O}),O.label?O.label:O))})),g.jsx(K0e,{className:I.displayedRows,children:f({from:u===0?0:C*x+1,to:L(),count:u===-1?-1:u,page:C})}),g.jsx(o,{className:I.actions,backIconButtonProps:i,count:u,nextIconButtonProps:y,onPageChange:v,page:C,rowsPerPage:x,showFirstButton:$,showLastButton:T,getItemAriaLabel:c})]})}))}),J0e=Z0e;function eve(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function tve(e,t,n,r={},o=()=>{}){const{ease:i=eve,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=p);const y=Math.min(1,(p-s)/a);if(t[e]=i(y)*(n-l)+l,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const nve=["onChange"],rve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ove(e){const{onChange:t}=e,n=be(e,nve),r=m.useRef(),o=m.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return pn(()=>{const a=wu(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ea(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),m.useEffect(()=>{i(),t(r.current)},[t]),g.jsx("div",P({style:rve,ref:o},n))}function ive(e){return yt("MuiTabScrollButton",e)}const ave=bt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),sve=ave,lve=["className","slots","slotProps","direction","orientation","disabled"],uve=e=>{const{classes:t,orientation:n,disabled:r}=e;return qe({root:["root",n,r&&"disabled"]},ive,t)},cve=ke(cu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${sve.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),dve=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=i,c=be(i,lve),p=Xt().direction==="rtl",y=P({isRtl:p},i),v=uve(y),b=(r=s.StartScrollButtonIcon)!=null?r:F_,C=(o=s.EndScrollButtonIcon)!=null?o:L_,x=xi({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),w=xi({elementType:C,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return g.jsx(cve,P({component:"div",className:ze(v.root,a),ref:n,role:null,ownerState:y,tabIndex:null},c,{children:u==="left"?g.jsx(b,P({},x)):g.jsx(C,P({},w))}))}),fve=dve;function pve(e){return yt("MuiTabs",e)}const hve=bt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kS=hve,mve=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],iA=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,aA=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,zv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},gve=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},pve,l)},vve=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kS.scrollButtons}`]:t.scrollButtons},{[`& .${kS.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),yve=ke("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),bve=ke("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),xve=ke("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),wve=ke(ove)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),sA={},Cve=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTabs"}),o=Xt(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:b,orientation:C="horizontal",ScrollButtonComponent:x=fve,scrollButtons:w="auto",selectionFollowsFocus:S,slots:$={},slotProps:T={},TabIndicatorProps:k={},TabScrollButtonProps:M={},textColor:I="primary",value:N,variant:E="standard",visibleScrollbar:A=!1}=r,z=be(r,mve),L=E==="scrollable",O=C==="vertical",D=O?"scrollTop":"scrollLeft",H=O?"top":"left",B=O?"bottom":"right",j=O?"clientHeight":"clientWidth",W=O?"height":"width",U=P({},r,{component:p,allowScrollButtonsMobile:y,indicatorColor:v,orientation:C,vertical:O,scrollButtons:w,textColor:I,variant:E,visibleScrollbar:A,fixed:!L,hideScrollbar:L&&!A,scrollableX:L&&!O,scrollableY:L&&O,centered:u&&!L,scrollButtonsHideMobile:!y}),Z=gve(U),Y=xi({elementType:$.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:U}),se=xi({elementType:$.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:U}),[Q,ne]=m.useState(!1),[re,ge]=m.useState(sA),[xe,fe]=m.useState(!1),[Se,de]=m.useState(!1),[ie,Pe]=m.useState(!1),[$e,me]=m.useState({overflow:"hidden",scrollbarWidth:0}),ue=new Map,ce=m.useRef(null),Te=m.useRef(null),Le=()=>{const X=ce.current;let oe;if(X){const Ve=X.getBoundingClientRect();oe={clientWidth:X.clientWidth,scrollLeft:X.scrollLeft,scrollTop:X.scrollTop,scrollLeftNormalized:Uoe(X,o.direction),scrollWidth:X.scrollWidth,top:Ve.top,bottom:Ve.bottom,left:Ve.left,right:Ve.right}}let Ie;if(X&&N!==!1){const Ve=Te.current.children;if(Ve.length>0){const Ke=Ve[ue.get(N)];Ie=Ke?Ke.getBoundingClientRect():null}}return{tabsMeta:oe,tabMeta:Ie}},Re=Dn(()=>{const{tabsMeta:X,tabMeta:oe}=Le();let Ie=0,Ve;if(O)Ve="top",oe&&X&&(Ie=oe.top-X.top+X.scrollTop);else if(Ve=i?"right":"left",oe&&X){const at=i?X.scrollLeftNormalized+X.clientWidth-X.scrollWidth:X.scrollLeft;Ie=(i?-1:1)*(oe[Ve]-X[Ve]+at)}const Ke={[Ve]:Ie,[W]:oe?oe[W]:0};if(isNaN(re[Ve])||isNaN(re[W]))ge(Ke);else{const at=Math.abs(re[Ve]-Ke[Ve]),Je=Math.abs(re[W]-Ke[W]);(at>=1||Je>=1)&&ge(Ke)}}),Oe=(X,{animation:oe=!0}={})=>{oe?tve(D,ce.current,X,{duration:o.transitions.duration.standard}):ce.current[D]=X},K=X=>{let oe=ce.current[D];O?oe+=X:(oe+=X*(i?-1:1),oe*=i&&tj()==="reverse"?-1:1),Oe(oe)},ee=()=>{const X=ce.current[j];let oe=0;const Ie=Array.from(Te.current.children);for(let Ve=0;VeX){Ve===0&&(oe=X);break}oe+=Ke[j]}return oe},pe=()=>{K(-1*ee())},ye=()=>{K(ee())},De=m.useCallback(X=>{me({overflow:null,scrollbarWidth:X})},[]),Ae=()=>{const X={};X.scrollbarSizeListener=L?g.jsx(wve,{onChange:De,className:ze(Z.scrollableX,Z.hideScrollbar)}):null;const Ie=L&&(w==="auto"&&(xe||Se)||w===!0);return X.scrollButtonStart=Ie?g.jsx(x,P({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:i?"right":"left",onClick:pe,disabled:!xe},M,{className:ze(Z.scrollButtons,M.className)})):null,X.scrollButtonEnd=Ie?g.jsx(x,P({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:C,direction:i?"left":"right",onClick:ye,disabled:!Se},M,{className:ze(Z.scrollButtons,M.className)})):null,X},Ee=Dn(X=>{const{tabsMeta:oe,tabMeta:Ie}=Le();if(!(!Ie||!oe)){if(Ie[H]oe[B]){const Ve=oe[D]+(Ie[B]-oe[B]);Oe(Ve,{animation:X})}}}),Ce=Dn(()=>{L&&w!==!1&&Pe(!ie)});m.useEffect(()=>{const X=wu(()=>{ce.current&&Re()}),oe=ea(ce.current);oe.addEventListener("resize",X);let Ie;return typeof ResizeObserver<"u"&&(Ie=new ResizeObserver(X),Array.from(Te.current.children).forEach(Ve=>{Ie.observe(Ve)})),()=>{X.clear(),oe.removeEventListener("resize",X),Ie&&Ie.disconnect()}},[Re]),m.useEffect(()=>{const X=Array.from(Te.current.children),oe=X.length;if(typeof IntersectionObserver<"u"&&oe>0&&L&&w!==!1){const Ie=X[0],Ve=X[oe-1],Ke={root:ce.current,threshold:.99},at=ht=>{fe(!ht[0].isIntersecting)},Je=new IntersectionObserver(at,Ke);Je.observe(Ie);const nt=ht=>{de(!ht[0].isIntersecting)},_t=new IntersectionObserver(nt,Ke);return _t.observe(Ve),()=>{Je.disconnect(),_t.disconnect()}}},[L,w,ie,c==null?void 0:c.length]),m.useEffect(()=>{ne(!0)},[]),m.useEffect(()=>{Re()}),m.useEffect(()=>{Ee(sA!==re)},[Ee,re]),m.useImperativeHandle(l,()=>({updateIndicator:Re,updateScrollButtons:Ce}),[Re,Ce]);const Qe=g.jsx(xve,P({},k,{className:ze(Z.indicator,k.className),ownerState:U,style:P({},re,k.style)}));let Ct=0;const et=m.Children.map(c,X=>{if(!m.isValidElement(X))return null;const oe=X.props.value===void 0?Ct:X.props.value;ue.set(oe,Ct);const Ie=oe===N;return Ct+=1,m.cloneElement(X,P({fullWidth:E==="fullWidth",indicator:Ie&&!Q&&Qe,selected:Ie,selectionFollowsFocus:S,onChange:b,textColor:I,value:oe},Ct===1&&N===!1&&!X.props.tabIndex?{tabIndex:0}:{}))}),Be=X=>{const oe=Te.current,Ie=Gn(oe).activeElement;if(Ie.getAttribute("role")!=="tab")return;let Ke=C==="horizontal"?"ArrowLeft":"ArrowUp",at=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Ke="ArrowRight",at="ArrowLeft"),X.key){case Ke:X.preventDefault(),zv(oe,Ie,aA);break;case at:X.preventDefault(),zv(oe,Ie,iA);break;case"Home":X.preventDefault(),zv(oe,null,iA);break;case"End":X.preventDefault(),zv(oe,null,aA);break}},te=Ae();return g.jsxs(vve,P({className:ze(Z.root,f),ownerState:U,ref:n,as:p},z,{children:[te.scrollButtonStart,te.scrollbarSizeListener,g.jsxs(yve,{className:Z.scroller,ownerState:U,style:{overflow:$e.overflow,[O?`margin${i?"Left":"Right"}`:"marginBottom"]:A?void 0:-$e.scrollbarWidth},ref:ce,children:[g.jsx(bve,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:Z.flexContainer,ownerState:U,onKeyDown:Be,ref:Te,role:"tablist",children:et}),Q&&Qe]}),te.scrollButtonEnd]}))}),Sve=Cve;function $ve(e){return yt("MuiTextField",e)}bt("MuiTextField",["root"]);const _ve=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],kve={standard:hN,filled:lN,outlined:CN},Pve=e=>{const{classes:t}=e;return qe({root:["root"]},$ve,t)},Mve=ke(uN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tve=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:C,inputProps:x,InputProps:w,inputRef:S,label:$,maxRows:T,minRows:k,multiline:M=!1,name:I,onBlur:N,onChange:E,onFocus:A,placeholder:z,required:L=!1,rows:O,select:D=!1,SelectProps:H,type:B,value:j,variant:W="outlined"}=r,U=be(r,_ve),Z=P({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:y,multiline:M,required:L,select:D,variant:W}),Y=Pve(Z),se={};W==="outlined"&&(C&&typeof C.shrink<"u"&&(se.notched=C.shrink),se.label=$),D&&((!H||!H.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const Q=ln(b),ne=v&&Q?`${Q}-helper-text`:void 0,re=$&&Q?`${Q}-label`:void 0,ge=kve[W],xe=g.jsx(ge,P({"aria-describedby":ne,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:y,multiline:M,name:I,rows:O,maxRows:T,minRows:k,type:B,value:j,id:Q,inputRef:S,onBlur:N,onChange:E,onFocus:A,placeholder:z,inputProps:x},se,w));return g.jsxs(Mve,P({className:ze(Y.root,s),disabled:c,error:f,fullWidth:y,ref:n,required:L,color:l,variant:W,ownerState:Z},U,{children:[$!=null&&$!==""&&g.jsx(mN,P({htmlFor:Q,id:re},C,{children:$})),D?g.jsx(LM,P({"aria-describedby":ne,id:Q,labelId:re,value:j,input:xe},H,{children:a})):xe,v&&g.jsx(Phe,P({id:ne},p,{children:v}))]}))}),ru=Tve;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -251,11 +251,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ci=function(){return ci=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0?Yr(jp,--Zo):0,fp--,Sr===10&&(fp=1,Bx--),Sr}function vi(){return Sr=Zo2||dg(Sr)>3?"":" "}function Vve(e,t){for(;--t&&vi()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return s0(e,P1()+(t<6&&os()==32&&vi()==32))}function z_(e){for(;vi();)switch(Sr){case e:return Zo;case 34:case 39:e!==34&&e!==39&&z_(Sr);break;case 40:e===41&&z_(e);break;case 92:vi();break}return Zo}function Uve(e,t){for(;vi()&&e+Sr!==47+10;)if(e+Sr===42+42&&os()===47)break;return"/*"+s0(t,Zo-1)+"*"+zx(e===47?e:vi())}function Gve(e){for(;!dg(os());)vi();return s0(e,Zo)}function uA(e){return ON(T1("",null,null,null,[""],e=RN(e),0,[0],e))}function T1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=vi()){case 40:if(v!=108&&Yr(M,f-1)==58){N_(M+=Sn(M1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=M1(w);break;case 9:case 10:case 13:case 32:M+=Wve(v);break;case 92:M+=Vve(P1()-1,7);continue;case 47:switch(os()){case 42:case 47:Hv(qve(Uve(vi(),P1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Ga(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:y>0&&Ga(M)-f&&Hv(y>32?dA(M+";",r,n,f-1):dA(Sn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Hv(k=cA(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)T1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Yr(M,3)===110?100:p){case 100:case 109:case 115:T1(e,k,k,r&&Hv(cA(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:T1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Ga(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&Hve()==125)continue}switch(M+=zx(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Ga(M)-1)*x,x=1;break;case 64:os()===45&&(M+=M1(vi())),p=os(),c=f=Ga(S=M+=Gve(P1())),w++;break;case 45:v===45&&Ga(M)==2&&(b=0)}}return i}function cA(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=BM(p),v=0,b=0,C=0;v0?p[x]+" "+w:Sn(w,/&\f/g,p[x])))&&(l[C++]=S);return Hx(e,t,n,o===0?NM:s,l,u,c)}function qve(e,t,n){return Hx(e,t,n,MN,zx(Bve()),cg(e,2,-2),0)}function dA(e,t,n,r){return Hx(e,t,n,zM,cg(e,0,r),cg(e,r+1,-1),r)}function xc(e,t){for(var n="",r=BM(e),o=0;o6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return Sn(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+Ty+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~N_(e,"stretch")?AN(Sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,Ga(e)-3-(~N_(e,"!important")&&10))){case 107:return Sn(e,":",":"+xn)+e;case 101:return Sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(Yr(e,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+ao+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+ao+e+e}return e}var t1e=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case zM:t.return=AN(t.value,t.length);break;case TN:return xc([Hh(t,{value:Sn(t.value,"@","@"+xn)})],o);case NM:if(t.length)return zve(t.props,function(i){switch(Nve(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xc([Hh(t,{props:[Sn(i,/:(read-\w+)/,":"+Ty+"$1")]})],o);case"::placeholder":return xc([Hh(t,{props:[Sn(i,/:(plac\w+)/,":"+xn+"input-$1")]}),Hh(t,{props:[Sn(i,/:(plac\w+)/,":"+Ty+"$1")]}),Hh(t,{props:[Sn(i,/:(plac\w+)/,ao+"input-$1")]})],o)}return""})}},E1=typeof document<"u",n1e=E1?void 0:Yve(function(){return jM(function(){var e={};return function(t){return e[t]}})}),r1e=[t1e],FN=function(t){var n=t.key;if(E1&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function($){var T=$.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild($),$.setAttribute("data-s",""))})}var o=t.stylisPlugins||r1e,i={},a,s=[];E1&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function($){for(var T=$.getAttribute("data-emotion").split(" "),k=1;k=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var f1e={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},p1e=/[A-Z]|^ms/g,h1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jN=function(t){return t.charCodeAt(1)===45},gA=function(t){return t!=null&&typeof t!="boolean"},MS=jM(function(e){return jN(e)?e:e.replace(p1e,"-$&").toLowerCase()}),vA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(h1e,function(r,o,i){return qa={name:o,styles:i,next:qa},o})}return f1e[t]!==1&&!jN(t)&&typeof n=="number"&&n!==0?n+"px":n};function fg(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return qa={name:n.name,styles:n.styles,next:qa},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)qa={name:r.name,styles:r.styles,next:qa},r=r.next;var o=n.styles+";";return o}return m1e(e,t,n)}case"function":{if(e!==void 0){var i=qa,a=n(e);return qa=i,fg(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function m1e(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?v1e:y1e},xA=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},b1e=typeof document<"u",x1e=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;DN(n,r,o);var i=a1e(function(){return c1e(n,r,o)});if(!b1e&&i!==void 0){for(var a,s=r.name,l=r.next;l!==void 0;)s+=" "+l.name,l=l.next;return m.createElement("style",(a={},a["data-emotion"]=n.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=n.sheet.nonce,a))}return null},w1e=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=xA(t,n,r),l=s||bA(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;y0?Yr(Dp,--Zo):0,dp--,Sr===10&&(dp=1,zx--),Sr}function vi(){return Sr=Zo2||cg(Sr)>3?"":" "}function Vve(e,t){for(;--t&&vi()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return a0(e,k1()+(t<6&&os()==32&&vi()==32))}function N_(e){for(;vi();)switch(Sr){case e:return Zo;case 34:case 39:e!==34&&e!==39&&N_(Sr);break;case 40:e===41&&N_(e);break;case 92:vi();break}return Zo}function Uve(e,t){for(;vi()&&e+Sr!==47+10;)if(e+Sr===42+42&&os()===47)break;return"/*"+a0(t,Zo-1)+"*"+Nx(e===47?e:vi())}function Gve(e){for(;!cg(os());)vi();return a0(e,Zo)}function lA(e){return IN(M1("",null,null,null,[""],e=EN(e),0,[0],e))}function M1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=vi()){case 40:if(v!=108&&Yr(M,f-1)==58){j_(M+=Sn(P1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=P1(w);break;case 9:case 10:case 13:case 32:M+=Wve(v);break;case 92:M+=Vve(k1()-1,7);continue;case 47:switch(os()){case 42:case 47:Bv(qve(Uve(vi(),k1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Ga(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:y>0&&Ga(M)-f&&Bv(y>32?cA(M+";",r,n,f-1):cA(Sn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Bv(k=uA(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)M1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Yr(M,3)===110?100:p){case 100:case 109:case 115:M1(e,k,k,r&&Bv(uA(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:M1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Ga(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&Hve()==125)continue}switch(M+=Nx(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Ga(M)-1)*x,x=1;break;case 64:os()===45&&(M+=P1(vi())),p=os(),c=f=Ga(S=M+=Gve(k1())),w++;break;case 45:v===45&&Ga(M)==2&&(b=0)}}return i}function uA(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=zM(p),v=0,b=0,C=0;v0?p[x]+" "+w:Sn(w,/&\f/g,p[x])))&&(l[C++]=S);return Bx(e,t,n,o===0?jM:s,l,u,c)}function qve(e,t,n){return Bx(e,t,n,kN,Nx(Bve()),ug(e,2,-2),0)}function cA(e,t,n,r){return Bx(e,t,n,NM,ug(e,0,r),ug(e,r+1,-1),r)}function bc(e,t){for(var n="",r=zM(e),o=0;o6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return Sn(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+My+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~j_(e,"stretch")?RN(Sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,Ga(e)-3-(~j_(e,"!important")&&10))){case 107:return Sn(e,":",":"+xn)+e;case 101:return Sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(Yr(e,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+ao+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+ao+e+e}return e}var t1e=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case NM:t.return=RN(t.value,t.length);break;case PN:return bc([Bh(t,{value:Sn(t.value,"@","@"+xn)})],o);case jM:if(t.length)return zve(t.props,function(i){switch(Nve(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bc([Bh(t,{props:[Sn(i,/:(read-\w+)/,":"+My+"$1")]})],o);case"::placeholder":return bc([Bh(t,{props:[Sn(i,/:(plac\w+)/,":"+xn+"input-$1")]}),Bh(t,{props:[Sn(i,/:(plac\w+)/,":"+My+"$1")]}),Bh(t,{props:[Sn(i,/:(plac\w+)/,ao+"input-$1")]})],o)}return""})}},T1=typeof document<"u",n1e=T1?void 0:Yve(function(){return DM(function(){var e={};return function(t){return e[t]}})}),r1e=[t1e],ON=function(t){var n=t.key;if(T1&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function($){var T=$.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild($),$.setAttribute("data-s",""))})}var o=t.stylisPlugins||r1e,i={},a,s=[];T1&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function($){for(var T=$.getAttribute("data-emotion").split(" "),k=1;k=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var f1e={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},p1e=/[A-Z]|^ms/g,h1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LN=function(t){return t.charCodeAt(1)===45},mA=function(t){return t!=null&&typeof t!="boolean"},PS=DM(function(e){return LN(e)?e:e.replace(p1e,"-$&").toLowerCase()}),gA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(h1e,function(r,o,i){return qa={name:o,styles:i,next:qa},o})}return f1e[t]!==1&&!LN(t)&&typeof n=="number"&&n!==0?n+"px":n};function dg(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return qa={name:n.name,styles:n.styles,next:qa},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)qa={name:r.name,styles:r.styles,next:qa},r=r.next;var o=n.styles+";";return o}return m1e(e,t,n)}case"function":{if(e!==void 0){var i=qa,a=n(e);return qa=i,dg(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function m1e(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?v1e:y1e},bA=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},b1e=typeof document<"u",x1e=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;FN(n,r,o);var i=a1e(function(){return c1e(n,r,o)});if(!b1e&&i!==void 0){for(var a,s=r.name,l=r.next;l!==void 0;)s+=" "+l.name,l=l.next;return m.createElement("style",(a={},a["data-emotion"]=n.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=n.sheet.nonce,a))}return null},w1e=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=bA(t,n,r),l=s||yA(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;y"u")return!1;var t=sa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function J1e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Xi(i)||!ps(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function eye(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Xi(o)||!ps(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var tye={name:"applyStyles",enabled:!0,phase:"write",fn:J1e,effect:eye,requires:["computeStyles"]};function is(e){return e.split("-")[0]}var wc=Math.max,Ry=Math.min,hp=Math.round;function H_(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function KN(){return!/^((?!chrome|android).)*safari/i.test(H_())}function mp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Xi(e)&&(o=e.offsetWidth>0&&hp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&hp(r.height)/e.offsetHeight||1);var a=Wc(e)?sa(e):window,s=a.visualViewport,l=!KN()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function UM(e){var t=mp(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 YN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&VM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ul(e){return sa(e).getComputedStyle(e)}function nye(e){return["table","td","th"].indexOf(ps(e))>=0}function _u(e){return((Wc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vx(e){return ps(e)==="html"?e:e.assignedSlot||e.parentNode||(VM(e)?e.host:null)||_u(e)}function LA(e){return!Xi(e)||ul(e).position==="fixed"?null:e.offsetParent}function rye(e){var t=/firefox/i.test(H_()),n=/Trident/i.test(H_());if(n&&Xi(e)){var r=ul(e);if(r.position==="fixed")return null}var o=Vx(e);for(VM(o)&&(o=o.host);Xi(o)&&["html","body"].indexOf(ps(o))<0;){var i=ul(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 u0(e){for(var t=sa(e),n=LA(e);n&&nye(n)&&ul(n).position==="static";)n=LA(n);return n&&(ps(n)==="html"||ps(n)==="body"&&ul(n).position==="static")?t:n||rye(e)||t}function GM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function km(e,t,n){return wc(e,Ry(t,n))}function oye(e,t,n){var r=km(e,t,n);return r>n?n:r}function XN(){return{top:0,right:0,bottom:0,left:0}}function QN(e){return Object.assign({},XN(),e)}function ZN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iye=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,QN(typeof t!="number"?t:ZN(t,l0))};function aye(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=is(n.placement),l=GM(s),u=[Yo,oa].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=iye(o.padding,n),p=UM(i),y=l==="y"?Ko:Yo,v=l==="y"?ra:oa,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=u0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=km($,k,T),I=l;n.modifiersData[r]=(t={},t[I]=M,t.centerOffset=M-k,t)}}function sye(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||YN(t.elements.popper,o)&&(t.elements.arrow=o))}var lye={name:"arrow",enabled:!0,phase:"main",fn:aye,effect:sye,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gp(e){return e.split("-")[1]}var uye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cye(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:hp(t*o)/o||0,y:hp(n*o)/o||0}}function DA(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Yo,$=Ko,T=window;if(u){var k=u0(n),M="clientHeight",I="clientWidth";if(k===sa(n)&&(k=_u(n),ul(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",I="scrollWidth")),k=k,o===Ko||(o===Yo||o===oa)&&i===pg){$=ra;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===Yo||(o===Ko||o===ra)&&i===pg){S=oa;var E=f&&k===T&&T.visualViewport?T.visualViewport.width:k[I];y-=E-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&uye),z=c===!0?cye({x:y,y:b}):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function dye(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:is(t.placement),variation:gp(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,DA(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,DA(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var fye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dye,data:{}},Wv={passive:!0};function pye(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=sa(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Wv)}),s&&l.addEventListener("resize",n.update,Wv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Wv)}),s&&l.removeEventListener("resize",n.update,Wv)}}var hye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pye,data:{}},mye={left:"right",right:"left",bottom:"top",top:"bottom"};function I1(e){return e.replace(/left|right|bottom|top/g,function(t){return mye[t]})}var gye={start:"end",end:"start"};function jA(e){return e.replace(/start|end/g,function(t){return gye[t]})}function qM(e){var t=sa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function KM(e){return mp(_u(e)).left+qM(e).scrollLeft}function vye(e,t){var n=sa(e),r=_u(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=KN();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+KM(e),y:l}}function yye(e){var t,n=_u(e),r=qM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=wc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+KM(e),l=-r.scrollTop;return ul(o||n).direction==="rtl"&&(s+=wc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function YM(e){var t=ul(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function JN(e){return["html","body","#document"].indexOf(ps(e))>=0?e.ownerDocument.body:Xi(e)&&YM(e)?e:JN(Vx(e))}function Pm(e,t){var n;t===void 0&&(t=[]);var r=JN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=sa(r),a=o?[i].concat(i.visualViewport||[],YM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Pm(Vx(a)))}function W_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bye(e,t){var n=mp(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 NA(e,t,n){return t===GN?W_(vye(e,n)):Wc(t)?bye(t,n):W_(yye(_u(e)))}function xye(e){var t=Pm(Vx(e)),n=["absolute","fixed"].indexOf(ul(e).position)>=0,r=n&&Xi(e)?u0(e):e;return Wc(r)?t.filter(function(o){return Wc(o)&&YN(o,r)&&ps(o)!=="body"}):[]}function wye(e,t,n,r){var o=t==="clippingParents"?xye(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=NA(e,u,r);return l.top=wc(c.top,l.top),l.right=Ry(c.right,l.right),l.bottom=Ry(c.bottom,l.bottom),l.left=wc(c.left,l.left),l},NA(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 ez(e){var t=e.reference,n=e.element,r=e.placement,o=r?is(r):null,i=r?gp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Ko:l={x:a,y:t.y-n.height};break;case ra:l={x:a,y:t.y+t.height};break;case oa:l={x:t.x+t.width,y:s};break;case Yo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?GM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case pp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case pg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function hg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?B1e:s,u=n.rootBoundary,c=u===void 0?GN:u,f=n.elementContext,p=f===void 0?Wh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=QN(typeof C!="number"?C:ZN(C,l0)),w=p===Wh?H1e:Wh,S=e.rects.popper,$=e.elements[v?w:p],T=wye(Wc($)?$:$.contextElement||_u(e.elements.popper),l,c,a),k=mp(e.elements.reference),M=ez({reference:k,element:S,strategy:"absolute",placement:o}),I=W_(Object.assign({},S,M)),N=p===Wh?I:k,E={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Wh&&A){var z=A[o];Object.keys(E).forEach(function(L){var O=[oa,ra].indexOf(L)>=0?1:-1,D=[Ko,ra].indexOf(L)>=0?"y":"x";E[L]+=z[D]*O})}return E}function Cye(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?qN:l,c=gp(r),f=c?s?FA:FA.filter(function(v){return gp(v)===c}):l0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=hg(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[is(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function Sye(e){if(is(e)===WM)return[];var t=I1(e);return[jA(e),t,jA(t)]}function $ye(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=is(C),w=x===C,S=l||(w||!v?[I1(C)]:Sye(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(is(ne)===WM?Cye(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,I=!0,N=$[0],E=0;E<$.length;E++){var A=$[E],z=is(A),L=gp(A)===pp,O=[Ko,ra].indexOf(z)>=0,D=O?"width":"height",H=hg(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?oa:Yo:L?ra:Ko;T[D]>k[D]&&(B=I1(B));var j=I1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[j]<=0),W.every(function(Q){return Q})){N=A,I=!1;break}M.set(A,W)}if(I)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var _ye={name:"flip",enabled:!0,phase:"main",fn:$ye,requiresIfExists:["offset"],data:{_skip:!1}};function zA(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 BA(e){return[Ko,oa,ra,Yo].some(function(t){return e[t]>=0})}function kye(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=hg(t,{elementContext:"reference"}),s=hg(t,{altBoundary:!0}),l=zA(a,r),u=zA(s,o,i),c=BA(l),f=BA(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var Pye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kye};function Mye(e,t,n){var r=is(e),o=[Yo,Ko].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Yo,oa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Tye(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=qN.reduce(function(c,f){return c[f]=Mye(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var Eye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tye};function Iye(e){var t=e.state,n=e.name;t.modifiersData[n]=ez({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Rye={name:"popperOffsets",enabled:!0,phase:"read",fn:Iye,data:{}};function Oye(e){return e==="x"?"y":"x"}function Aye(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=hg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=is(t.placement),w=gp(t.placement),S=!w,$=GM(x),T=Oye($),k=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?Ko:Yo,D=$==="y"?ra:oa,H=$==="y"?"height":"width",B=k[$],j=B+C[O],W=B-C[D],U=y?-I[H]/2:0,Z=w===pp?M[H]:I[H],Y=w===pp?-I[H]:-M[H],se=t.elements.arrow,Q=y&&se?UM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:XN(),re=ne[O],ge=ne[D],xe=km(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-E.mainAxis:Z-xe-re-E.mainAxis,Se=S?-M[H]/2+U+xe+ge+E.mainAxis:Y+xe+ge+E.mainAxis,de=t.elements.arrow&&u0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=km(y?Ry(j,$e):j,B,y?wc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?Ko:Yo,Le=$==="x"?ra:oa,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[Ko,Yo].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,De=pe?K:Re-M[Oe]-I[Oe]-ye+E.altAxis,Ae=pe?Re+M[Oe]+I[Oe]-ye-E.altAxis:ee,Ee=y&&pe?oye(De,Re,Ae):km(y?De:K,Re,y?Ae:ee);k[T]=Ee,z[T]=Ee-Re}t.modifiersData[r]=z}}var Fye={name:"preventOverflow",enabled:!0,phase:"main",fn:Aye,requiresIfExists:["offset"]};function Lye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Dye(e){return e===sa(e)||!Xi(e)?qM(e):Lye(e)}function jye(e){var t=e.getBoundingClientRect(),n=hp(t.width)/e.offsetWidth||1,r=hp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Nye(e,t,n){n===void 0&&(n=!1);var r=Xi(t),o=Xi(t)&&jye(t),i=_u(t),a=mp(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ps(t)!=="body"||YM(i))&&(s=Dye(t)),Xi(t)?(l=mp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=KM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function zye(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Bye(e){var t=zye(e);return Z1e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Hye(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Wye(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var HA={placement:"bottom",modifiers:[],strategy:"absolute"};function WA(){for(var e=arguments.length,t=new Array(e),n=0;n"u")return!1;var t=sa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function J1e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Xi(i)||!ps(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function eye(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Xi(o)||!ps(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var tye={name:"applyStyles",enabled:!0,phase:"write",fn:J1e,effect:eye,requires:["computeStyles"]};function is(e){return e.split("-")[0]}var xc=Math.max,Iy=Math.min,pp=Math.round;function B_(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function GN(){return!/^((?!chrome|android).)*safari/i.test(B_())}function hp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Xi(e)&&(o=e.offsetWidth>0&&pp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pp(r.height)/e.offsetHeight||1);var a=Hc(e)?sa(e):window,s=a.visualViewport,l=!GN()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function VM(e){var t=hp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ll(e){return sa(e).getComputedStyle(e)}function nye(e){return["table","td","th"].indexOf(ps(e))>=0}function $u(e){return((Hc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wx(e){return ps(e)==="html"?e:e.assignedSlot||e.parentNode||(WM(e)?e.host:null)||$u(e)}function FA(e){return!Xi(e)||ll(e).position==="fixed"?null:e.offsetParent}function rye(e){var t=/firefox/i.test(B_()),n=/Trident/i.test(B_());if(n&&Xi(e)){var r=ll(e);if(r.position==="fixed")return null}var o=Wx(e);for(WM(o)&&(o=o.host);Xi(o)&&["html","body"].indexOf(ps(o))<0;){var i=ll(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function l0(e){for(var t=sa(e),n=FA(e);n&&nye(n)&&ll(n).position==="static";)n=FA(n);return n&&(ps(n)==="html"||ps(n)==="body"&&ll(n).position==="static")?t:n||rye(e)||t}function UM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _m(e,t,n){return xc(e,Iy(t,n))}function oye(e,t,n){var r=_m(e,t,n);return r>n?n:r}function KN(){return{top:0,right:0,bottom:0,left:0}}function YN(e){return Object.assign({},KN(),e)}function XN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iye=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,YN(typeof t!="number"?t:XN(t,s0))};function aye(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=is(n.placement),l=UM(s),u=[Yo,oa].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=iye(o.padding,n),p=VM(i),y=l==="y"?Ko:Yo,v=l==="y"?ra:oa,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=l0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=_m($,k,T),I=l;n.modifiersData[r]=(t={},t[I]=M,t.centerOffset=M-k,t)}}function sye(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||qN(t.elements.popper,o)&&(t.elements.arrow=o))}var lye={name:"arrow",enabled:!0,phase:"main",fn:aye,effect:sye,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mp(e){return e.split("-")[1]}var uye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cye(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:pp(t*o)/o||0,y:pp(n*o)/o||0}}function LA(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Yo,$=Ko,T=window;if(u){var k=l0(n),M="clientHeight",I="clientWidth";if(k===sa(n)&&(k=$u(n),ll(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",I="scrollWidth")),k=k,o===Ko||(o===Yo||o===oa)&&i===fg){$=ra;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===Yo||(o===Ko||o===ra)&&i===fg){S=oa;var E=f&&k===T&&T.visualViewport?T.visualViewport.width:k[I];y-=E-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&uye),z=c===!0?cye({x:y,y:b}):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function dye(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:is(t.placement),variation:mp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,LA(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,LA(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var fye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dye,data:{}},Hv={passive:!0};function pye(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=sa(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Hv)}),s&&l.addEventListener("resize",n.update,Hv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Hv)}),s&&l.removeEventListener("resize",n.update,Hv)}}var hye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pye,data:{}},mye={left:"right",right:"left",bottom:"top",top:"bottom"};function E1(e){return e.replace(/left|right|bottom|top/g,function(t){return mye[t]})}var gye={start:"end",end:"start"};function DA(e){return e.replace(/start|end/g,function(t){return gye[t]})}function GM(e){var t=sa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qM(e){return hp($u(e)).left+GM(e).scrollLeft}function vye(e,t){var n=sa(e),r=$u(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=GN();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+qM(e),y:l}}function yye(e){var t,n=$u(e),r=GM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=xc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=xc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+qM(e),l=-r.scrollTop;return ll(o||n).direction==="rtl"&&(s+=xc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function KM(e){var t=ll(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function QN(e){return["html","body","#document"].indexOf(ps(e))>=0?e.ownerDocument.body:Xi(e)&&KM(e)?e:QN(Wx(e))}function km(e,t){var n;t===void 0&&(t=[]);var r=QN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=sa(r),a=o?[i].concat(i.visualViewport||[],KM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(km(Wx(a)))}function H_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bye(e,t){var n=hp(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jA(e,t,n){return t===VN?H_(vye(e,n)):Hc(t)?bye(t,n):H_(yye($u(e)))}function xye(e){var t=km(Wx(e)),n=["absolute","fixed"].indexOf(ll(e).position)>=0,r=n&&Xi(e)?l0(e):e;return Hc(r)?t.filter(function(o){return Hc(o)&&qN(o,r)&&ps(o)!=="body"}):[]}function wye(e,t,n,r){var o=t==="clippingParents"?xye(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=jA(e,u,r);return l.top=xc(c.top,l.top),l.right=Iy(c.right,l.right),l.bottom=Iy(c.bottom,l.bottom),l.left=xc(c.left,l.left),l},jA(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ZN(e){var t=e.reference,n=e.element,r=e.placement,o=r?is(r):null,i=r?mp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Ko:l={x:a,y:t.y-n.height};break;case ra:l={x:a,y:t.y+t.height};break;case oa:l={x:t.x+t.width,y:s};break;case Yo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?UM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case fp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case fg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function pg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?B1e:s,u=n.rootBoundary,c=u===void 0?VN:u,f=n.elementContext,p=f===void 0?Hh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=YN(typeof C!="number"?C:XN(C,s0)),w=p===Hh?H1e:Hh,S=e.rects.popper,$=e.elements[v?w:p],T=wye(Hc($)?$:$.contextElement||$u(e.elements.popper),l,c,a),k=hp(e.elements.reference),M=ZN({reference:k,element:S,strategy:"absolute",placement:o}),I=H_(Object.assign({},S,M)),N=p===Hh?I:k,E={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Hh&&A){var z=A[o];Object.keys(E).forEach(function(L){var O=[oa,ra].indexOf(L)>=0?1:-1,D=[Ko,ra].indexOf(L)>=0?"y":"x";E[L]+=z[D]*O})}return E}function Cye(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?UN:l,c=mp(r),f=c?s?AA:AA.filter(function(v){return mp(v)===c}):s0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=pg(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[is(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function Sye(e){if(is(e)===HM)return[];var t=E1(e);return[DA(e),t,DA(t)]}function $ye(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=is(C),w=x===C,S=l||(w||!v?[E1(C)]:Sye(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(is(ne)===HM?Cye(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,I=!0,N=$[0],E=0;E<$.length;E++){var A=$[E],z=is(A),L=mp(A)===fp,O=[Ko,ra].indexOf(z)>=0,D=O?"width":"height",H=pg(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?oa:Yo:L?ra:Ko;T[D]>k[D]&&(B=E1(B));var j=E1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[j]<=0),W.every(function(Q){return Q})){N=A,I=!1;break}M.set(A,W)}if(I)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var _ye={name:"flip",enabled:!0,phase:"main",fn:$ye,requiresIfExists:["offset"],data:{_skip:!1}};function NA(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zA(e){return[Ko,oa,ra,Yo].some(function(t){return e[t]>=0})}function kye(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=pg(t,{elementContext:"reference"}),s=pg(t,{altBoundary:!0}),l=NA(a,r),u=NA(s,o,i),c=zA(l),f=zA(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var Pye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kye};function Mye(e,t,n){var r=is(e),o=[Yo,Ko].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Yo,oa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Tye(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=UN.reduce(function(c,f){return c[f]=Mye(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var Eye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tye};function Iye(e){var t=e.state,n=e.name;t.modifiersData[n]=ZN({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Rye={name:"popperOffsets",enabled:!0,phase:"read",fn:Iye,data:{}};function Oye(e){return e==="x"?"y":"x"}function Aye(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=pg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=is(t.placement),w=mp(t.placement),S=!w,$=UM(x),T=Oye($),k=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?Ko:Yo,D=$==="y"?ra:oa,H=$==="y"?"height":"width",B=k[$],j=B+C[O],W=B-C[D],U=y?-I[H]/2:0,Z=w===fp?M[H]:I[H],Y=w===fp?-I[H]:-M[H],se=t.elements.arrow,Q=y&&se?VM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:KN(),re=ne[O],ge=ne[D],xe=_m(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-E.mainAxis:Z-xe-re-E.mainAxis,Se=S?-M[H]/2+U+xe+ge+E.mainAxis:Y+xe+ge+E.mainAxis,de=t.elements.arrow&&l0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=_m(y?Iy(j,$e):j,B,y?xc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?Ko:Yo,Le=$==="x"?ra:oa,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[Ko,Yo].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,De=pe?K:Re-M[Oe]-I[Oe]-ye+E.altAxis,Ae=pe?Re+M[Oe]+I[Oe]-ye-E.altAxis:ee,Ee=y&&pe?oye(De,Re,Ae):_m(y?De:K,Re,y?Ae:ee);k[T]=Ee,z[T]=Ee-Re}t.modifiersData[r]=z}}var Fye={name:"preventOverflow",enabled:!0,phase:"main",fn:Aye,requiresIfExists:["offset"]};function Lye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Dye(e){return e===sa(e)||!Xi(e)?GM(e):Lye(e)}function jye(e){var t=e.getBoundingClientRect(),n=pp(t.width)/e.offsetWidth||1,r=pp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Nye(e,t,n){n===void 0&&(n=!1);var r=Xi(t),o=Xi(t)&&jye(t),i=$u(t),a=hp(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ps(t)!=="body"||KM(i))&&(s=Dye(t)),Xi(t)?(l=hp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=qM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function zye(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Bye(e){var t=zye(e);return Z1e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Hye(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Wye(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var BA={placement:"bottom",modifiers:[],strategy:"absolute"};function HA(){for(var e=arguments.length,t=new Array(e),n=0;n"u"&&j(!B)}},ie=function(ue){S==null||S(ue),de()},Pe=function(ue){$==null||$(ue),ue.key==="Enter"&&de()},$e=function(ue){if(O){var ce={level:k,disabled:b,active:y,isSubmenu:!0,open:c??B},Te=O.root,Le=O.button,Re=O.label,Oe=O.icon,K=O.prefix,ee=O.suffix,pe=O.subMenuContent,ye=O.SubMenuExpandIcon;switch(ue){case"root":return typeof Te=="function"?Te(ce):Te;case"button":return typeof Le=="function"?Le(ce):Le;case"label":return typeof Re=="function"?Re(ce):Re;case"icon":return typeof Oe=="function"?Oe(ce):Oe;case"prefix":return typeof K=="function"?K(ce):K;case"suffix":return typeof ee=="function"?ee(ce):ee;case"SubMenuExpandIcon":return typeof ye=="function"?ye(ce):ye;case"subMenuContent":return typeof pe=="function"?pe(ce):pe;default:return}}};ot.useEffect(function(){setTimeout(function(){return xe==null?void 0:xe.update()},E),I&&k===0&&Z(!1)},[I,k,N,E,xe]),ot.useEffect(function(){var ue=function(Re){var Oe,K,ee;!U&&(!((Oe=ne.current)===null||Oe===void 0)&&Oe.contains(Re))?Z(!0):(L&&!(!((K=Re.closest(".".concat(Mn.menuItemRoot)))===null||K===void 0)&&K.classList.contains(Mn.subMenuRoot))||!(!((ee=re.current)===null||ee===void 0)&&ee.contains(Re))&&U)&&Z(!1)},ce=function(Re){ue(Re.target)},Te=function(Re){Re.key==="Enter"?ue(Re.target):Re.key==="Escape"&&Z(!1)},Le=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",Te)};return Le(),I&&k===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",Te,!1)),function(){Le()}},[I,k,L,U]),ot.useEffect(function(){Q(!0)},[]);var me=(n={},n[Mn.active]=y,n[Mn.disabled]=b,n[Mn.open]=c??B,n);return ot.createElement(Yye,{ref:t,className:Tr(Mn.menuItemRoot,Mn.subMenuRoot,me,o),menuItemStyles:$e("root"),level:k,collapsed:I,rtl:N,disabled:b,active:y,buttonStyles:$e("button"),rootStyles:C},ot.createElement(nz,ci({"data-testid":"".concat(Mn.button,"-test-id"),ref:ne,title:s,className:Tr(Mn.button,me),onClick:ie,onKeyUp:Pe,component:x,tabIndex:0},T),a&&ot.createElement(WN,{rtl:N,className:Tr(Mn.icon,me),rootStyles:$e("icon")},a),l&&ot.createElement(VN,{collapsed:I,transitionDuration:E,firstLevel:k===0,className:Tr(Mn.prefix,me),rtl:N,rootStyles:$e("prefix")},l),ot.createElement(HN,{className:Tr(Mn.label,me),rootStyles:$e("label")},i),u&&ot.createElement(UN,{collapsed:I,transitionDuration:E,firstLevel:k===0,className:Tr(Mn.suffix,me),rootStyles:$e("suffix")},u),ot.createElement(j1e,{rtl:N,className:Tr(Mn.SubMenuExpandIcon,me),collapsed:I,level:k,rootStyles:$e("SubMenuExpandIcon")},z?z({level:k,disabled:b,active:y,open:c??B}):I&&k===0?ot.createElement(z1e,null):ot.createElement(N1e,{rtl:N,open:c??B}))),ot.createElement(D1e,{ref:re,openWhenCollapsed:U,open:c??B,firstLevel:k===0,collapsed:I,defaultOpen:c&&!se||f,className:Tr(Mn.subMenuContent,me),rootStyles:$e("subMenuContent")},ot.createElement(Iy.Provider,{value:k+1},r)))};ot.forwardRef(Xye);var VA,Qye=zr.li(UA||(UA=po([` +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Mn.button,function(e){var t=e.level,n=e.disabled,r=e.active,o=e.collapsed,i=e.rtl;return JN({level:t,disabled:n,active:r,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),Xye=function(e,t){var n,r=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,l=e.prefix,u=e.suffix,c=e.open,f=e.defaultOpen,p=e.active,y=p===void 0?!1:p,v=e.disabled,b=v===void 0?!1:v,C=e.rootStyles,x=e.component,w=e.onOpenChange,S=e.onClick,$=e.onKeyUp,T=Bc(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),k=ot.useContext(Ey),M=ot.useContext(Hx),I=M.collapsed,N=M.rtl,E=M.transitionDuration,A=BM(),z=A.renderExpandIcon,L=A.closeOnClick,O=A.menuItemStyles,D=A.transitionDuration,H=ot.useState(!!f),B=H[0],j=H[1],W=ot.useState(!1),U=W[0],Z=W[1],Y=ot.useState(!1),se=Y[0],Q=Y[1],ne=ot.useRef(null),re=ot.useRef(null),ge=ot.useRef(),xe=qye({level:k,buttonRef:ne,contentRef:re}).popperInstance,fe=function(){var ue=re.current;if(ue){ue.style.display="block",ue.style.overflow="hidden",ue.style.height="auto";var ce=ue.offsetHeight;ue.style.height="0px",ue.offsetHeight,ue.style.height="".concat(ce,"px"),ge.current=setTimeout(function(){ue.style.overflow="auto",ue.style.height="auto"},D)}},Se=function(){var ue=re.current;ue&&(ue.style.overflow="hidden",ue.style.height="".concat(ue.offsetHeight,"px"),ue.offsetHeight,ue.style.height="0px",ge.current=setTimeout(function(){ue.style.overflow="auto",ue.style.display="none"},D))},de=function(){if(!(k===0&&I)){clearTimeout(Number(ge.current));var ue=c??B;ue?Se():fe(),w==null||w(!ue),typeof c>"u"&&j(!B)}},ie=function(ue){S==null||S(ue),de()},Pe=function(ue){$==null||$(ue),ue.key==="Enter"&&de()},$e=function(ue){if(O){var ce={level:k,disabled:b,active:y,isSubmenu:!0,open:c??B},Te=O.root,Le=O.button,Re=O.label,Oe=O.icon,K=O.prefix,ee=O.suffix,pe=O.subMenuContent,ye=O.SubMenuExpandIcon;switch(ue){case"root":return typeof Te=="function"?Te(ce):Te;case"button":return typeof Le=="function"?Le(ce):Le;case"label":return typeof Re=="function"?Re(ce):Re;case"icon":return typeof Oe=="function"?Oe(ce):Oe;case"prefix":return typeof K=="function"?K(ce):K;case"suffix":return typeof ee=="function"?ee(ce):ee;case"SubMenuExpandIcon":return typeof ye=="function"?ye(ce):ye;case"subMenuContent":return typeof pe=="function"?pe(ce):pe;default:return}}};ot.useEffect(function(){setTimeout(function(){return xe==null?void 0:xe.update()},E),I&&k===0&&Z(!1)},[I,k,N,E,xe]),ot.useEffect(function(){var ue=function(Re){var Oe,K,ee;!U&&(!((Oe=ne.current)===null||Oe===void 0)&&Oe.contains(Re))?Z(!0):(L&&!(!((K=Re.closest(".".concat(Mn.menuItemRoot)))===null||K===void 0)&&K.classList.contains(Mn.subMenuRoot))||!(!((ee=re.current)===null||ee===void 0)&&ee.contains(Re))&&U)&&Z(!1)},ce=function(Re){ue(Re.target)},Te=function(Re){Re.key==="Enter"?ue(Re.target):Re.key==="Escape"&&Z(!1)},Le=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",Te)};return Le(),I&&k===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",Te,!1)),function(){Le()}},[I,k,L,U]),ot.useEffect(function(){Q(!0)},[]);var me=(n={},n[Mn.active]=y,n[Mn.disabled]=b,n[Mn.open]=c??B,n);return ot.createElement(Yye,{ref:t,className:Tr(Mn.menuItemRoot,Mn.subMenuRoot,me,o),menuItemStyles:$e("root"),level:k,collapsed:I,rtl:N,disabled:b,active:y,buttonStyles:$e("button"),rootStyles:C},ot.createElement(ez,ci({"data-testid":"".concat(Mn.button,"-test-id"),ref:ne,title:s,className:Tr(Mn.button,me),onClick:ie,onKeyUp:Pe,component:x,tabIndex:0},T),a&&ot.createElement(BN,{rtl:N,className:Tr(Mn.icon,me),rootStyles:$e("icon")},a),l&&ot.createElement(HN,{collapsed:I,transitionDuration:E,firstLevel:k===0,className:Tr(Mn.prefix,me),rtl:N,rootStyles:$e("prefix")},l),ot.createElement(zN,{className:Tr(Mn.label,me),rootStyles:$e("label")},i),u&&ot.createElement(WN,{collapsed:I,transitionDuration:E,firstLevel:k===0,className:Tr(Mn.suffix,me),rootStyles:$e("suffix")},u),ot.createElement(j1e,{rtl:N,className:Tr(Mn.SubMenuExpandIcon,me),collapsed:I,level:k,rootStyles:$e("SubMenuExpandIcon")},z?z({level:k,disabled:b,active:y,open:c??B}):I&&k===0?ot.createElement(z1e,null):ot.createElement(N1e,{rtl:N,open:c??B}))),ot.createElement(D1e,{ref:re,openWhenCollapsed:U,open:c??B,firstLevel:k===0,collapsed:I,defaultOpen:c&&!se||f,className:Tr(Mn.subMenuContent,me),rootStyles:$e("subMenuContent")},ot.createElement(Ey.Provider,{value:k+1},r)))};ot.forwardRef(Xye);var WA,Qye=zr.li(VA||(VA=po([` width: 100%; position: relative; @@ -674,33 +674,33 @@ PERFORMANCE OF THIS SOFTWARE. `,`; } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Mn.button,function(e){var t=e.level,n=e.disabled,r=e.active,o=e.collapsed,i=e.rtl;return tz({level:t,disabled:n,active:r,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),Zye=function(e,t){var n,r=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,l=e.active,u=l===void 0?!1:l,c=e.disabled,f=c===void 0?!1:c,p=e.component,y=e.rootStyles,v=Hc(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),b=ot.useContext(Iy),C=ot.useContext(Wx),x=C.collapsed,w=C.rtl,S=C.transitionDuration,$=HM().menuItemStyles,T=function(M){if($){var I={level:b,disabled:f,active:u,isSubmenu:!1},N=$.root,E=$.button,A=$.label,z=$.icon,L=$.prefix,O=$.suffix;switch(M){case"root":return typeof N=="function"?N(I):N;case"button":return typeof E=="function"?E(I):E;case"label":return typeof A=="function"?A(I):A;case"icon":return typeof z=="function"?z(I):z;case"prefix":return typeof L=="function"?L(I):L;case"suffix":return typeof O=="function"?O(I):O;default:return}}},k=(n={},n[Mn.active]=u,n[Mn.disabled]=f,n);return ot.createElement(Qye,{ref:t,className:Tr(Mn.menuItemRoot,k,i),menuItemStyles:T("root"),level:b,collapsed:x,rtl:w,disabled:f,active:u,buttonStyles:T("button"),rootStyles:y},ot.createElement(nz,ci({className:Tr(Mn.button,k),"data-testid":"".concat(Mn.button,"-test-id"),component:p,tabIndex:0},v),o&&ot.createElement(WN,{rtl:w,className:Tr(Mn.icon,k),rootStyles:T("icon")},o),a&&ot.createElement(VN,{collapsed:x,transitionDuration:S,firstLevel:b===0,className:Tr(Mn.prefix,k),rtl:w,rootStyles:T("prefix")},a),ot.createElement(HN,{className:Tr(Mn.label,k),rootStyles:T("label")},r),s&&ot.createElement(UN,{collapsed:x,transitionDuration:S,firstLevel:b===0,className:Tr(Mn.suffix,k),rootStyles:T("suffix")},s)))},js=ot.forwardRef(Zye),UA;const Jye=xt(g.jsx("path",{d:"M6.5 10h-2v7h2v-7zm6 0h-2v7h2v-7zm8.5 9H2v2h19v-2zm-2.5-9h-2v7h2v-7zm-7-6.74L16.71 6H6.29l5.21-2.74m0-2.26L2 6v2h19V6l-9.5-5z"}),"AccountBalanceOutlined"),ebe=xt(g.jsx("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}),"Archive"),tbe=xt(g.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"}),"AssessmentOutlined"),nbe=xt(g.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}),"AttachMoney"),rbe=xt(g.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}),"AttachMoneyOutlined"),obe=xt(g.jsx("path",{d:"M13 7.83c.85-.3 1.53-.98 1.83-1.83H18l-3 7c0 1.66 1.57 3 3.5 3s3.5-1.34 3.5-3l-3-7h2V4h-6.17c-.41-1.17-1.52-2-2.83-2s-2.42.83-2.83 2H3v2h2l-3 7c0 1.66 1.57 3 3.5 3S9 14.66 9 13L6 6h3.17c.3.85.98 1.53 1.83 1.83V19H2v2h20v-2h-9V7.83zM20.37 13h-3.74l1.87-4.36L20.37 13zm-13 0H3.63L5.5 8.64 7.37 13zM12 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Balance"),ibe=xt(g.jsx("path",{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53C16.17 17.98 14.21 19 12 19z"}),"DataUsageOutlined"),c0=xt(g.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit"),abe=xt(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"}),"ExploreOutlined"),sbe=xt(g.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),GA=xt(g.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuOutlined"),lbe=xt(g.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),ube=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),cbe=xt(g.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v4h5v12H6zm5-1h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4v-2h-2V9h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1z"}),"RequestQuoteOutlined"),dbe=xt(g.jsx("path",{d:"m19.83 7.5-2.27-2.27c.07-.42.18-.81.32-1.15.08-.18.12-.37.12-.58 0-.83-.67-1.5-1.5-1.5-1.64 0-3.09.79-4 2h-5C4.46 4 2 6.46 2 9.5S4.5 21 4.5 21H10v-2h2v2h5.5l1.68-5.59 2.82-.94V7.5h-2.17zM13 9H8V7h5v2zm3 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Savings"),fbe=xt(g.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),pbe=xt(g.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-8.9-5h7.45c.75 0 1.41-.41 1.75-1.03L21 4.96 19.25 4l-3.7 7H8.53L4.27 2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2zM12 2l4 4-4 4-1.41-1.41L12.17 7H8V5h4.17l-1.59-1.59L12 2z"}),"ShoppingCartCheckout"),hbe=xt(g.jsx("path",{d:"M4 9h4v11H4zm0-5h4v4H4zm6 3h4v4h-4zm6 3h4v4h-4zm0 5h4v5h-4zm-6-3h4v8h-4z"}),"StackedBarChart"),mbe=xt(g.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3z"}),"SwapVertOutlined"),gbe=xt(g.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"}),"TableChart"),vbe=xt(g.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"}),"Work"),Ux=ot.createContext({hideSidebar:!1,setHideSidebar:()=>{}}),ybe="/fintrack/assets/logo-b74d1d14.svg";function bbe(){const e=Xt(),t=jn(e.palette.mode),[n,r]=m.useState(!1),{hideSidebar:o,setHideSidebar:i}=m.useContext(Ux),a=()=>{window.innerWidth<=900&&i(s=>s===!0?!s:s)};return g.jsx(qe,{sx:{borderRight:`1px solid ${t.primary[500]} !important`,display:{xs:o?"block":"none",sm:o?"block":"none",md:o?"none":"block"},"& .ps-sidebar-root":{border:"none"},"& .ps-sidebar-container":{background:`${t.primary[400]} !important`,height:"100%",minHeight:"100vh"},"& .ps-menu-icon svg":{fill:`${t.primary[100]} !important`},"& .ps-menu-root .MuiBox-root li a":{borderRadius:"15px"}},children:g.jsx(I1e,{collapsed:n,className:"hidden",width:"290px",children:g.jsxs(A1e,{menuItemStyles:{button:{"&:hover":{backgroundColor:`${t.primary[500]}`,color:"#b6c8d9"},"&.active":{backgroundColor:`${t.primary[500]}`,color:"#b6c8d9"}}},children:[g.jsx(js,{onClick:()=>r(!n),icon:n?g.jsx(GA,{}):void 0,style:{margin:"10px 0 20px 0",color:t.grey[100]},children:!n&&g.jsxs(qe,{display:"flex",justifyContent:"space-between",alignItems:"center",ml:"15px",children:[g.jsxs(qe,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[g.jsx(_y,{src:ybe,sx:{height:25,width:25}}),g.jsx(Ze,{variant:"h3",color:t.grey[100],ml:.5,children:"FinTrack"})]}),g.jsx(wo,{onClick:()=>r(!n),children:g.jsx(GA,{})})]})}),g.jsxs(qe,{paddingInline:n?void 0:"5%",children:[g.jsx(Ze,{variant:"h6",color:t.grey[300],sx:{m:"15px 0 5px 20px"},children:"Menu"}),g.jsx(js,{icon:g.jsx(abe,{}),onClick:a,component:g.jsx(kl,{to:"/"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Overview"})}),g.jsx(js,{icon:g.jsx(ibe,{}),onClick:a,component:g.jsx(kl,{to:"/budget"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Budget"})}),g.jsx(js,{icon:g.jsx(cbe,{}),onClick:a,component:g.jsx(kl,{to:"/bills"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Bills"})}),g.jsx(js,{icon:g.jsx(tbe,{}),onClick:a,component:g.jsx(kl,{to:"/reports"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Reports & Analytics"})}),g.jsx(js,{icon:g.jsx(mbe,{}),onClick:a,component:g.jsx(kl,{to:"/debt"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Debt Management"})}),g.jsx(js,{icon:g.jsx(rbe,{}),onClick:a,component:g.jsx(kl,{to:"/investments"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Investments"})}),g.jsx(js,{icon:g.jsx(Jye,{}),onClick:a,component:g.jsx(kl,{to:"/networth"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Net Worth"})}),g.jsx(js,{icon:g.jsx(fbe,{}),onClick:a,component:g.jsx(kl,{to:"/settings"}),children:g.jsx(Ze,{style:{color:t.grey[100]},children:"Settings"})})]})]})})})}var XM={},rz={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})(rz);var ku=rz.exports,TS={};const xbe=Oee(ble);var qA;function Pu(){return qA||(qA=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xbe}(TS)),TS}var wbe=ku;Object.defineProperty(XM,"__esModule",{value:!0});var oz=XM.default=void 0,Cbe=wbe(Pu()),Sbe=g,$be=(0,Cbe.default)((0,Sbe.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightModeOutlined");oz=XM.default=$be;var QM={},_be=ku;Object.defineProperty(QM,"__esModule",{value:!0});var iz=QM.default=void 0,kbe=_be(Pu()),Pbe=g,Mbe=(0,kbe.default)((0,Pbe.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");iz=QM.default=Mbe;var ZM={},Tbe=ku;Object.defineProperty(ZM,"__esModule",{value:!0});var az=ZM.default=void 0,Ebe=Tbe(Pu()),Ibe=g,Rbe=(0,Ebe.default)((0,Ibe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsOutlined");az=ZM.default=Rbe;var JM={},Obe=ku;Object.defineProperty(JM,"__esModule",{value:!0});var sz=JM.default=void 0,Abe=Obe(Pu()),Fbe=g,Lbe=(0,Abe.default)((0,Fbe.jsx)("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonOutlined");sz=JM.default=Lbe;var e5={},Dbe=ku;Object.defineProperty(e5,"__esModule",{value:!0});var lz=e5.default=void 0,jbe=Dbe(Pu()),Nbe=g,zbe=(0,jbe.default)((0,Nbe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");lz=e5.default=zbe;var t5={},Bbe=ku;Object.defineProperty(t5,"__esModule",{value:!0});var uz=t5.default=void 0,Hbe=Bbe(Pu()),Wbe=g,Vbe=(0,Hbe.default)((0,Wbe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");uz=t5.default=Vbe;function Ube(){const e=Xt(),t=jn(e.palette.mode),n=m.useContext(Oj),{setHideSidebar:r}=m.useContext(Ux),o=()=>{r(i=>!i)};return g.jsx(qe,{display:"flex",justifyContent:"space-between",p:2,width:"100%",children:g.jsx(vue,{position:"static",children:g.jsxs(PN,{sx:{backgroundColor:t.primary[400],display:"flex",justifyContent:"space-between"},children:[g.jsx(wo,{sx:{display:{md:"block",lg:"none"}},size:"large",edge:"start","aria-label":"menu",onClick:o,children:g.jsx(uz,{})}),g.jsxs(qe,{sx:{backgroundColor:t.primary[500],borderRadius:"3px",display:"flex"},children:[g.jsx(ld,{sx:{ml:2,flex:1},placeholder:"Search"}),g.jsx(wo,{type:"button",sx:{p:1},children:g.jsx(lz,{})})]}),g.jsxs(qe,{sx:{display:"flex"},children:[g.jsx(wo,{onClick:n.toggleColorMode,children:e.palette.mode==="dark"?g.jsx(iz,{}):g.jsx(oz,{})}),g.jsx(wo,{children:g.jsx(az,{})}),g.jsx(wo,{children:g.jsx(sz,{})})]})]})})})}function Gbe(){const{setHideSidebar:e}=m.useContext(Ux),t=()=>{window.innerWidth<=900&&e(n=>n===!0?!n:n)};return g.jsxs("main",{children:[g.jsx(Ube,{}),g.jsx("div",{onClick:t,children:g.jsx(foe,{})})]})}function qbe(){const{theme:e,toggleColorMode:t}=ple("light"),[n,r]=m.useState(!1);return g.jsx(Oj.Provider,{value:{toggleColorMode:t},children:g.jsxs(Gie,{theme:e,children:[g.jsx(Npe,{}),g.jsx("div",{className:"app",children:g.jsxs(Ux.Provider,{value:{hideSidebar:n,setHideSidebar:r},children:[g.jsx(bbe,{}),g.jsx(Gbe,{})]})})]})})}const mr=({title:e,content:t,height:n=400,padding:r=1})=>{const o=Xt(),i=jn(o.palette.mode);return g.jsxs(Gfe,{style:{background:i.primary[400],height:`${n}px`,padding:`${r}rem`,margin:"0 auto",width:"100%"},children:[g.jsx(spe,{title:g.jsx(Ze,{variant:"h5",fontWeight:600,children:e})}),g.jsx(_i,{sx:{"& .MuiDataGrid-root":{border:"none"},"& .MuiDataGrid-columnHeaders":{backgroundColor:i.blueAccent[800],borderBottom:"none"},boxSizing:"border-box",height:"90%"},children:t})]})};var Kbe=Object.defineProperty,Ybe=(e,t)=>{for(var n in t)Kbe(e,n,{get:t[n],enumerable:!0})},ia={};Ybe(ia,{assign:()=>Zbe,colors:()=>iu,createStringInterpolator:()=>l5,skipAnimation:()=>gz,to:()=>mz,willAdvance:()=>u5});var n5=f0(),Ht=e=>d0(e,n5),r5=f0();Ht.write=e=>d0(e,r5);var Gx=f0();Ht.onStart=e=>d0(e,Gx);var o5=f0();Ht.onFrame=e=>d0(e,o5);var i5=f0();Ht.onFinish=e=>d0(e,i5);var Vf=[];Ht.setTimeout=(e,t)=>{const n=Ht.now()+t,r=()=>{const i=Vf.findIndex(a=>a.cancel==r);~i&&Vf.splice(i,1),Ul-=~i?1:0},o={time:n,handler:e,cancel:r};return Vf.splice(cz(n),0,o),Ul+=1,dz(),o};var cz=e=>~(~Vf.findIndex(t=>t.time>e)||~Vf.length);Ht.cancel=e=>{Gx.delete(e),o5.delete(e),i5.delete(e),n5.delete(e),r5.delete(e)};Ht.sync=e=>{V_=!0,Ht.batchedUpdates(e),V_=!1};Ht.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Ht.onStart(n)}return r.handler=e,r.cancel=()=>{Gx.delete(n),t=null},r};var a5=typeof window<"u"?window.requestAnimationFrame:()=>{};Ht.use=e=>a5=e;Ht.now=typeof performance<"u"?()=>performance.now():Date.now;Ht.batchedUpdates=e=>e();Ht.catch=console.error;Ht.frameLoop="always";Ht.advance=()=>{Ht.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):pz()};var Vl=-1,Ul=0,V_=!1;function d0(e,t){V_?(t.delete(e),e(0)):(t.add(e),dz())}function dz(){Vl<0&&(Vl=0,Ht.frameLoop!=="demand"&&a5(fz))}function Xbe(){Vl=-1}function fz(){~Vl&&(a5(fz),Ht.batchedUpdates(pz))}function pz(){const e=Vl;Vl=Ht.now();const t=cz(Vl);if(t&&(hz(Vf.splice(0,t),n=>n.handler()),Ul-=t),!Ul){Xbe();return}Gx.flush(),n5.flush(e?Math.min(64,Vl-e):16.667),o5.flush(),r5.flush(),i5.flush()}function f0(){let e=new Set,t=e;return{add(n){Ul+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Ul-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Ul-=t.size,hz(t,r=>r(n)&&e.add(r)),Ul+=e.size,t=e)}}}function hz(e,t){e.forEach(n=>{try{t(n)}catch(r){Ht.catch(r)}})}function U_(){}var Qbe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ye={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Ws(e,t){if(Ye.arr(e)){if(!Ye.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function hs(e,t,n){if(Ye.arr(e)){for(let r=0;rYe.und(e)?[]:Ye.arr(e)?e:[e];function Mm(e,t){if(e.size){const n=Array.from(e);e.clear(),Dt(n,t)}}var lm=(e,...t)=>Mm(e,n=>n(...t)),s5=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),l5,mz,iu=null,gz=!1,u5=U_,Zbe=e=>{e.to&&(mz=e.to),e.now&&(Ht.now=e.now),e.colors!==void 0&&(iu=e.colors),e.skipAnimation!=null&&(gz=e.skipAnimation),e.createStringInterpolator&&(l5=e.createStringInterpolator),e.requestAnimationFrame&&Ht.use(e.requestAnimationFrame),e.batchedUpdates&&(Ht.batchedUpdates=e.batchedUpdates),e.willAdvance&&(u5=e.willAdvance),e.frameLoop&&(Ht.frameLoop=e.frameLoop)},Tm=new Set,Vi=[],ES=[],Oy=0,qx={get idle(){return!Tm.size&&!Vi.length},start(e){Oy>e.priority?(Tm.add(e),Ht.onStart(Jbe)):(vz(e),Ht(G_))},advance:G_,sort(e){if(Oy)Ht.onFrame(()=>qx.sort(e));else{const t=Vi.indexOf(e);~t&&(Vi.splice(t,1),yz(e))}},clear(){Vi=[],Tm.clear()}};function Jbe(){Tm.forEach(vz),Tm.clear(),Ht(G_)}function vz(e){Vi.includes(e)||yz(e)}function yz(e){Vi.splice(exe(Vi,t=>t.priority>e.priority),0,e)}function G_(e){const t=ES;for(let n=0;n0}function exe(e,t){const n=e.findIndex(t);return n<0?e.length:n}var txe=(e,t,n)=>Math.min(Math.max(n,e),t),nxe={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},$a="[-+]?\\d*\\.?\\d+",Ay=$a+"%";function Kx(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var rxe=new RegExp("rgb"+Kx($a,$a,$a)),oxe=new RegExp("rgba"+Kx($a,$a,$a,$a)),ixe=new RegExp("hsl"+Kx($a,Ay,Ay)),axe=new RegExp("hsla"+Kx($a,Ay,Ay,$a)),sxe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lxe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,uxe=/^#([0-9a-fA-F]{6})$/,cxe=/^#([0-9a-fA-F]{8})$/;function dxe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=uxe.exec(e))?parseInt(t[1]+"ff",16)>>>0:iu&&iu[e]!==void 0?iu[e]:(t=rxe.exec(e))?(Jd(t[1])<<24|Jd(t[2])<<16|Jd(t[3])<<8|255)>>>0:(t=oxe.exec(e))?(Jd(t[1])<<24|Jd(t[2])<<16|Jd(t[3])<<8|XA(t[4]))>>>0:(t=sxe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=cxe.exec(e))?parseInt(t[1],16)>>>0:(t=lxe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ixe.exec(e))?(KA(YA(t[1]),Vv(t[2]),Vv(t[3]))|255)>>>0:(t=axe.exec(e))?(KA(YA(t[1]),Vv(t[2]),Vv(t[3]))|XA(t[4]))>>>0:null}function IS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function KA(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=IS(o,r,e+1/3),a=IS(o,r,e),s=IS(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function Jd(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function YA(e){return(parseFloat(e)%360+360)%360/360}function XA(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Vv(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function QA(e){let t=dxe(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var mg=(e,t,n)=>{if(Ye.fun(e))return e;if(Ye.arr(e))return mg({range:e,output:t,extrapolate:n});if(Ye.str(e.output[0]))return l5(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=pxe(u,i);return fxe(u,i[c],i[c+1],o[c],o[c+1],l,a,s,r.map)}};function fxe(e,t,n,r,o,i,a,s,l){let u=l?l(e):e;if(un){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function pxe(e,t){for(var n=1;n=e);++n);return n-1}var hxe=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return txe(0,1,o/e)},Fy=1.70158,Uv=Fy*1.525,ZA=Fy+1,JA=2*Math.PI/3,e6=2*Math.PI/4.5,Gv=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,mxe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ZA*e*e*e-Fy*e*e,easeOutBack:e=>1+ZA*Math.pow(e-1,3)+Fy*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Uv+1)*2*e-Uv)/2:(Math.pow(2*e-2,2)*((Uv+1)*(e*2-2)+Uv)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*JA),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*JA)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*e6))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*e6)/2+1,easeInBounce:e=>1-Gv(1-e),easeOutBounce:Gv,easeInOutBounce:e=>e<.5?(1-Gv(1-2*e))/2:(1+Gv(2*e-1))/2,steps:hxe},gg=Symbol.for("FluidValue.get"),vp=Symbol.for("FluidValue.observers"),Wi=e=>!!(e&&e[gg]),Lo=e=>e&&e[gg]?e[gg]():e,t6=e=>e[vp]||null;function gxe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function vg(e,t){const n=e[vp];n&&n.forEach(r=>{gxe(r,t)})}var bz=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");vxe(this,e)}},vxe=(e,t)=>xz(e,gg,t);function Np(e,t){if(e[gg]){let n=e[vp];n||xz(e,vp,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yg(e,t){const n=e[vp];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[vp]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var xz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),R1=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yxe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,n6=new RegExp(`(${R1.source})(%|[a-z]+)`,"i"),bxe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Yx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,wz=e=>{const[t,n]=xxe(e);if(!t||s5())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&Yx.test(n))return wz(n);if(n)return n}return e},xxe=e=>{const t=Yx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},RS,wxe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Cz=e=>{RS||(RS=iu?new RegExp(`(${Object.keys(iu).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>Lo(i).replace(Yx,wz).replace(yxe,QA).replace(RS,QA)),n=t.map(i=>i.match(R1).map(Number)),o=n[0].map((i,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(i=>mg({...e,output:i}));return i=>{var l;const a=!n6.test(t[0])&&((l=t.find(u=>n6.test(u)))==null?void 0:l.replace(R1,""));let s=0;return t[0].replace(R1,()=>`${o[s++](i)}${a||""}`).replace(bxe,wxe)}},c5="react-spring: ",Sz=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${c5}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Cxe=Sz(console.warn);function Sxe(){Cxe(`${c5}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $xe=Sz(console.warn);function _xe(){$xe(`${c5}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Xx(e){return Ye.str(e)&&(e[0]=="#"||/\d/.test(e)||!s5()&&Yx.test(e)||e in(iu||{}))}var Gl=s5()?m.useEffect:m.useLayoutEffect,kxe=()=>{const e=m.useRef(!1);return Gl(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function d5(){const e=m.useState()[1],t=kxe();return()=>{t.current&&e(Math.random())}}function Pxe(e,t){const[n]=m.useState(()=>({inputs:t,result:e()})),r=m.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&Mxe(t,i.inputs)||(i={inputs:t,result:e()}):i=n,m.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Mxe(e,t){if(e.length!==t.length)return!1;for(let n=0;nm.useEffect(e,Txe),Txe=[];function q_(e){const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current}var bg=Symbol.for("Animated:node"),Exe=e=>!!e&&e[bg]===e,Ha=e=>e&&e[bg],p5=(e,t)=>Qbe(e,bg,t),Qx=e=>e&&e[bg]&&e[bg].getPayload(),$z=class{constructor(){p5(this,this)}getPayload(){return this.payload||[]}},p0=class extends $z{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ye.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new p0(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ye.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ye.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},xg=class extends p0{constructor(e){super(0),this._string=null,this._toString=mg({output:[e,e]})}static create(e){return new xg(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ye.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=mg({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ly={dependencies:null},Zx=class extends $z{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return hs(this.source,(n,r)=>{Exe(n)?t[r]=n.getValue(e):Wi(n)?t[r]=Lo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Dt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return hs(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ly.dependencies&&Wi(e)&&Ly.dependencies.add(e);const t=Qx(e);t&&Dt(t,n=>this.add(n))}},_z=class extends Zx{constructor(e){super(e)}static create(e){return new _z(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Ixe)),!0)}};function Ixe(e){return(Xx(e)?xg:p0).create(e)}function K_(e){const t=Ha(e);return t?t.constructor:Ye.arr(e)?_z:Xx(e)?xg:p0}var r6=(e,t)=>{const n=!Ye.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,o)=>{const i=m.useRef(null),a=n&&m.useCallback(v=>{i.current=Axe(o,v)},[o]),[s,l]=Oxe(r,t),u=d5(),c=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,s.getValue(!0)):!1)===!1&&u()},f=new Rxe(c,l),p=m.useRef();Gl(()=>(p.current=f,Dt(l,v=>Np(v,f)),()=>{p.current&&(Dt(p.current.deps,v=>yg(v,p.current)),Ht.cancel(p.current.update))})),m.useEffect(c,[]),f5(()=>()=>{const v=p.current;Dt(v.deps,b=>yg(b,v))});const y=t.getComponentProps(s.getValue());return m.createElement(e,{...y,ref:a})})},Rxe=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ht.write(this.update)}};function Oxe(e,t){const n=new Set;return Ly.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Zx(e),Ly.dependencies=null,[e,n]}function Axe(e,t){return e&&(Ye.fun(e)?e(t):e.current=t),t}var o6=Symbol.for("AnimatedComponent"),Fxe=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Zx(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=a=>{const s=i6(a)||"Anonymous";return Ye.str(a)?a=i[a]||(i[a]=r6(a,o)):a=a[o6]||(a[o6]=r6(a,o)),a.displayName=`Animated(${s})`,a};return hs(e,(a,s)=>{Ye.arr(e)&&(s=i6(a)),i[s]=i(a)}),{animated:i}},i6=e=>Ye.str(e)?e:e&&Ye.str(e.displayName)?e.displayName:Ye.fun(e)&&e.name||null;function Do(e,...t){return Ye.fun(e)?e(...t):e}var Em=(e,t)=>e===!0||!!(t&&e&&(Ye.fun(e)?e(t):So(e).includes(t))),kz=(e,t)=>Ye.obj(e)?t&&e[t]:e,Pz=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Lxe=e=>e,Jx=(e,t=Lxe)=>{let n=Dxe;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);Ye.und(i)||(r[o]=i)}return r},Dxe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],jxe={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Nxe(e){const t={};let n=0;if(hs(e,(r,o)=>{jxe[o]||(t[o]=r,n++)}),n)return t}function h5(e){const t=Nxe(e);if(t){const n={to:t};return hs(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function wg(e){return e=Lo(e),Ye.arr(e)?e.map(wg):Xx(e)?ia.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Mz(e){for(const t in e)return!0;return!1}function Y_(e){return Ye.fun(e)||Ye.arr(e)&&Ye.obj(e[0])}function X_(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Tz(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var m5={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Q_={...m5.default,mass:1,damping:1,easing:mxe.linear,clamp:!1},zxe=class{constructor(){this.velocity=0,Object.assign(this,Q_)}};function Bxe(e,t,n){n&&(n={...n},a6(n,t),t={...n,...t}),a6(e,t),Object.assign(e,t);for(const a in Q_)e[a]==null&&(e[a]=Q_[a]);let{frequency:r,damping:o}=e;const{mass:i}=e;return Ye.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function a6(e,t){if(!Ye.und(t.decay))e.duration=void 0;else{const n=!Ye.und(t.tension)||!Ye.und(t.friction);(n||!Ye.und(t.frequency)||!Ye.und(t.damping)||!Ye.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var s6=[],Hxe=class{constructor(){this.changed=!1,this.values=s6,this.toValues=null,this.fromValues=s6,this.config=new zxe,this.immediate=!1}};function Ez(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((a,s)=>{let l,u,c=Em(n.cancel??(r==null?void 0:r.cancel),t);if(c)y();else{Ye.und(n.pause)||(o.paused=Em(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=o.paused||Em(v,t)),l=Do(n.delay||0,t),v?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function f(){o.resumeQueue.add(p),o.timeouts.delete(u),u.cancel(),l=u.time-Ht.now()}function p(){l>0&&!ia.skipAnimation?(o.delayed=!0,u=Ht.setTimeout(y,l),o.pauseQueue.add(f),o.timeouts.add(u)):y()}function y(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},a)}catch(v){s(v)}}})}var g5=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Uf(e.get()):t.every(n=>n.noop)?Iz(e.get()):wa(e.get(),t.every(n=>n.finished)),Iz=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),wa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Uf=e=>({value:e,cancelled:!0,finished:!1});function Rz(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return!i&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Jx(t,(C,x)=>x==="onRest"?void 0:C);let c,f;const p=new Promise((C,x)=>(c=C,f=x)),y=C=>{const x=o<=(n.cancelId||0)&&Uf(r)||o!==n.asyncId&&wa(r,!1);if(x)throw C.result=x,f(C),C},v=(C,x)=>{const w=new l6,S=new u6;return(async()=>{if(ia.skipAnimation)throw Cg(n),S.result=wa(r,!1),f(S),S;y(w);const $=Ye.obj(C)?{...C}:{...x,to:C};$.parentId=o,hs(u,(k,M)=>{Ye.und($[M])&&($[M]=k)});const T=await r.start($);return y(w),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),T})()};let b;if(ia.skipAnimation)return Cg(n),wa(r,!1);try{let C;Ye.arr(e)?C=(async x=>{for(const w of x)await v(w)})(e):C=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([C.then(c),p]),b=wa(r.get(),!0,!1)}catch(C){if(C instanceof l6)b=C.result;else if(C instanceof u6)b=C.result;else throw C}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Ye.fun(a)&&Ht.batchedUpdates(()=>{a(b,r,r.item)}),b})()}function Cg(e,t){Mm(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var l6=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},u6=class extends Error{constructor(){super("SkipAnimationSignal")}},Z_=e=>e instanceof v5,Wxe=1,v5=class extends bz{constructor(){super(...arguments),this.id=Wxe++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ha(this);return e&&e.getValue()}to(...e){return ia.to(this,e)}interpolate(...e){return Sxe(),ia.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){vg(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||qx.sort(this),vg(this,{type:"priority",parent:this,priority:e})}},Vc=Symbol.for("SpringPhase"),Oz=1,J_=2,ek=4,OS=e=>(e[Vc]&Oz)>0,Tl=e=>(e[Vc]&J_)>0,Vh=e=>(e[Vc]&ek)>0,c6=(e,t)=>t?e[Vc]|=J_|Oz:e[Vc]&=~J_,d6=(e,t)=>t?e[Vc]|=ek:e[Vc]&=~ek,Vxe=class extends v5{constructor(e,t){if(super(),this.animation=new Hxe,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ye.und(e)||!Ye.und(t)){const n=Ye.obj(e)?{...e}:{...t,from:e};Ye.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Tl(this)||this._state.asyncTo)||Vh(this)}get goal(){return Lo(this.animation.to)}get velocity(){const e=Ha(this);return e instanceof p0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return OS(this)}get isAnimating(){return Tl(this)}get isPaused(){return Vh(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=Qx(r.to);!a&&Wi(r.to)&&(o=So(Lo(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==xg?1:a?a[c].lastPosition:o[c];let p=r.immediate,y=f;if(!p){if(y=u.lastPosition,i.tension<=0){u.done=!0;return}let v=u.elapsedTime+=e;const b=r.fromValues[c],C=u.v0!=null?u.v0:u.v0=Ye.arr(i.velocity)?i.velocity[c]:i.velocity;let x;const w=i.precision||(b==f?.005:Math.min(1,Math.abs(f-b)*.001));if(Ye.und(i.duration))if(i.decay){const S=i.decay===!0?.998:i.decay,$=Math.exp(-(1-S)*v);y=b+C/(1-S)*(1-$),p=Math.abs(u.lastPosition-y)<=w,x=C*$}else{x=u.lastVelocity==null?C:u.lastVelocity;const S=i.restVelocity||w/10,$=i.clamp?0:i.bounce,T=!Ye.und($),k=b==f?u.v0>0:bS,!(!M&&(p=Math.abs(f-y)<=w,p)));++A){T&&(I=y==f||y>f==k,I&&(x=-x*$,y=f));const z=-i.tension*1e-6*(y-f),L=-i.friction*.001*x,O=(z+L)/i.mass;x=x+O*N,y=y+x*N}}else{let S=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,v=u.elapsedTime+=e)),S=(i.progress||0)+v/this._memoizedDuration,S=S>1?1:S<0?0:S,u.durationProgress=S),y=b+i.easing(S)*(f-b),x=(y-u.lastPosition)/e,p=S==1}u.lastVelocity=x,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),p=!0)}a&&!a[c].done&&(p=!1),p?u.done=!0:t=!1,u.setValue(y,i.round)&&(n=!0)});const s=Ha(this),l=s.getValue();if(t){const u=Lo(r.to);(l!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Ht.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Tl(this)){const{to:e,config:t}=this.animation;Ht.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ye.und(e)?(n=this.queue||[],this.queue=[]):n=[Ye.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>g5(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Cg(this._state,e&&this._lastCallId),Ht.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ye.obj(n)?n[t]:n,(n==null||Y_(n))&&(n=void 0),r=Ye.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return OS(this)||(e.reverse&&([n,r]=[r,n]),r=Lo(r),Ye.und(r)?Ha(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Jx(e,(a,s)=>/^on/.test(s)?kz(a,n):a)),p6(this,e,"onProps"),Gh(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Ez(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Vh(this)||(d6(this,!0),lm(i.pauseQueue),Gh(this,"onPause",wa(this,Uh(this,this.animation.to)),this))},resume:()=>{Vh(this)&&(d6(this,!1),Tl(this)&&this._resume(),lm(i.resumeQueue),Gh(this,"onResume",wa(this,Uh(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=Az(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Uf(this));const r=!Ye.und(e.to),o=!Ye.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Uf(this));const{key:i,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:f=u}=e;o&&!r&&(!t.default||Ye.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const p=!Ws(f,u);p&&(s.from=f),f=Lo(f);const y=!Ws(c,l);y&&this._focus(c);const v=Y_(t.to),{config:b}=s,{decay:C,velocity:x}=b;(r||o)&&(b.velocity=0),t.config&&!v&&Bxe(b,Do(t.config,i),t.config!==a.config?Do(a.config,i):void 0);let w=Ha(this);if(!w||Ye.und(c))return n(wa(this,!0));const S=Ye.und(t.reset)?o&&!t.default:!Ye.und(f)&&Em(t.reset,i),$=S?f:this.get(),T=wg(c),k=Ye.num(T)||Ye.arr(T)||Xx(T),M=!v&&(!k||Em(a.immediate||t.immediate,i));if(y){const A=K_(c);if(A!==w.constructor)if(M)w=this._set(T);else throw Error(`Cannot animate between ${w.constructor.name} and ${A.name}, as the "to" prop suggests`)}const I=w.constructor;let N=Wi(c),E=!1;if(!N){const A=S||!OS(this)&&p;(y||A)&&(E=Ws(wg($),T),N=!E),(!Ws(s.immediate,M)&&!M||!Ws(b.decay,C)||!Ws(b.velocity,x))&&(N=!0)}if(E&&Tl(this)&&(s.changed&&!S?N=!0:N||this._stop(l)),!v&&((N||Wi(l))&&(s.values=w.getPayload(),s.toValues=Wi(c)?null:I==xg?[1]:So(T)),s.immediate!=M&&(s.immediate=M,!M&&!S&&this._set(l)),N)){const{onRest:A}=s;Dt(Gxe,L=>p6(this,t,L));const z=wa(this,Uh(this,l));lm(this._pendingCalls,z),this._pendingCalls.add(n),s.changed&&Ht.batchedUpdates(()=>{var L;s.changed=!S,A==null||A(z,this),S?Do(a.onRest,z):(L=s.onStart)==null||L.call(s,z,this)})}S&&this._set($),v?n(Rz(t.to,t,this._state,this)):N?this._start():Tl(this)&&!y?this._pendingCalls.add(n):n(Iz($))}_focus(e){const t=this.animation;e!==t.to&&(t6(this)&&this._detach(),t.to=e,t6(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Wi(t)&&(Np(t,this),Z_(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Wi(e)&&yg(e,this)}_set(e,t=!0){const n=Lo(e);if(!Ye.und(n)){const r=Ha(this);if(!r||!Ws(n,r.getValue())){const o=K_(n);!r||r.constructor!=o?p5(this,o.create(n)):r.setValue(n),r&&Ht.batchedUpdates(()=>{this._onChange(n,t)})}}return Ha(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Gh(this,"onStart",wa(this,Uh(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Do(this.animation.onChange,e,this)),Do(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ha(this).reset(Lo(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Tl(this)||(c6(this,!0),Vh(this)||this._resume())}_resume(){ia.skipAnimation?this.finish():qx.start(this)}_stop(e,t){if(Tl(this)){c6(this,!1);const n=this.animation;Dt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),vg(this,{type:"idle",parent:this});const r=t?Uf(this.get()):wa(this.get(),Uh(this,e??n.to));lm(this._pendingCalls,r),n.changed&&(n.changed=!1,Gh(this,"onRest",r,this))}}};function Uh(e,t){const n=wg(t),r=wg(e.get());return Ws(r,n)}function Az(e,t=e.loop,n=e.to){const r=Do(t);if(r){const o=r!==!0&&h5(r),i=(o||e).reverse,a=!o||o.reset;return Sg({...e,loop:t,default:!1,pause:void 0,to:!i||Y_(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Sg(e){const{to:t,from:n}=e=h5(e),r=new Set;return Ye.obj(t)&&f6(t,r),Ye.obj(n)&&f6(n,r),e.keys=r.size?Array.from(r):null,e}function Uxe(e){const t=Sg(e);return Ye.und(t.default)&&(t.default=Jx(t)),t}function f6(e,t){hs(e,(n,r)=>n!=null&&t.add(r))}var Gxe=["onStart","onRest","onChange","onPause","onResume"];function p6(e,t,n){e.animation[n]=t[n]!==Pz(t,n)?kz(t[n],e.key):void 0}function Gh(e,t,...n){var r,o,i,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(a=(i=e.defaultProps)[t])==null||a.call(i,...n)}var qxe=["onStart","onChange","onRest"],Kxe=1,Fz=class{constructor(e,t){this.id=Kxe++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ye.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Sg(e)),this}start(e){let{queue:t}=this;return e?t=So(e).map(Sg):this.queue=[],this._flush?this._flush(this,t):(zz(this,t),tk(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Dt(So(t),r=>n[r].stop(!!e))}else Cg(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ye.und(e))this.start({pause:!0});else{const t=this.springs;Dt(So(e),n=>t[n].pause())}return this}resume(e){if(Ye.und(e))this.start({pause:!1});else{const t=this.springs;Dt(So(e),n=>t[n].resume())}return this}each(e){hs(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Mm(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&Mm(t,([s,l])=>{l.value=a,s(l,this,this._item)}),i&&(this._started=!1,Mm(n,([s,l])=>{l.value=a,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Ht.onFrame(this._onFrame)}};function tk(e,t){return Promise.all(t.map(n=>Lz(e,n))).then(n=>g5(e,n))}async function Lz(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,u=Ye.obj(t.default)&&t.default;a&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=Ye.arr(o)||Ye.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Dt(qxe,b=>{const C=t[b];if(Ye.fun(C)){const x=e._events[b];t[b]=({finished:w,cancelled:S})=>{const $=x.get(C);$?(w||($.finished=!1),S&&($.cancelled=!0)):x.set(C,{value:null,finished:w||!1,cancelled:S||!1})},u&&(u[b]=t[b])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,lm(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(b=>e.springs[b].start(t)),y=t.cancel===!0||Pz(t,"cancel")===!0;(c||y&&f.asyncId)&&p.push(Ez(++e._lastAsyncId,{props:t,state:f,actions:{pause:U_,resume:U_,start(b,C){y?(Cg(f,e._lastAsyncId),C(Uf(e))):(b.onRest=s,C(Rz(c,b,f,e)))}}})),f.paused&&await new Promise(b=>{f.resumeQueue.add(b)});const v=g5(e,await Promise.all(p));if(a&&v.finished&&!(n&&v.noop)){const b=Az(t,a,o);if(b)return zz(e,[b]),Lz(e,b,!0)}return l&&Ht.batchedUpdates(()=>l(v,e,e.item)),v}function nk(e,t){const n={...e.springs};return t&&Dt(So(t),r=>{Ye.und(r.keys)&&(r=Sg(r)),Ye.obj(r.to)||(r={...r,to:void 0}),Nz(n,r,o=>jz(o))}),Dz(e,n),n}function Dz(e,t){hs(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Np(n,e))})}function jz(e,t){const n=new Vxe;return n.key=e,t&&Np(n,t),n}function Nz(e,t,n){t.keys&&Dt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function zz(e,t){Dt(t,n=>{Nz(e.springs,n,r=>jz(r,e))})}var h0=({children:e,...t})=>{const n=m.useContext(Dy),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=Pxe(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Dy;return m.createElement(i,{value:t},e)},Dy=Yxe(h0,{});h0.Provider=Dy.Provider;h0.Consumer=Dy.Consumer;function Yxe(e,t){return Object.assign(e,m.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Bz=()=>{const e=[],t=function(r){_xe();const o=[];return Dt(e,(i,a)=>{if(Ye.und(r))o.push(i.start());else{const s=n(r,i,a);s&&o.push(i.start(s))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Dt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Dt(e,r=>r.resume(...arguments)),this},t.set=function(r){Dt(e,(o,i)=>{const a=Ye.fun(r)?r(i,o):r;a&&o.set(a)})},t.start=function(r){const o=[];return Dt(e,(i,a)=>{if(Ye.und(r))o.push(i.start());else{const s=this._getProps(r,i,a);s&&o.push(i.start(s))}}),o},t.stop=function(){return Dt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Dt(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return Ye.fun(r)?r(i,o):r};return t._getProps=n,t};function Xxe(e,t,n){const r=Ye.fun(t)&&t;r&&!n&&(n=[]);const o=m.useMemo(()=>r||arguments.length==3?Bz():void 0,[]),i=m.useRef(0),a=d5(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const S=nk(x,w);return i.current>0&&!s.queue.length&&!Object.keys(S).some(T=>!x.springs[T])?tk(x,w):new Promise(T=>{Dz(x,S),s.queue.push(()=>{T(tk(x,w))}),a()})}}),[]),l=m.useRef([...s.ctrls]),u=[],c=q_(e)||0;m.useMemo(()=>{Dt(l.current.slice(e,c),x=>{X_(x,o),x.stop(!0)}),l.current.length=e,f(c,e)},[e]),m.useMemo(()=>{f(0,Math.min(c,e))},n);function f(x,w){for(let S=x;Snk(x,u[w])),y=m.useContext(h0),v=q_(y),b=y!==v&&Mz(y);Gl(()=>{i.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Dt(x,w=>w())),Dt(l.current,(w,S)=>{o==null||o.add(w),b&&w.start({default:y});const $=u[S];$&&(Tz(w,$.ref),w.ref?w.queue.push($):w.start($))})}),f5(()=>()=>{Dt(s.ctrls,x=>x.stop(!0))});const C=p.map(x=>({...x}));return o?[C,o]:C}function xs(e,t){const n=Ye.fun(e),[[r],o]=Xxe(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}function ud(e,t,n){const r=Ye.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,p=m.useMemo(()=>r||arguments.length==3?Bz():void 0,[]),y=So(e),v=[],b=m.useRef(null),C=o?null:b.current;Gl(()=>{b.current=v}),f5(()=>(Dt(v,O=>{p==null||p.add(O.ctrl),O.ctrl.ref=p}),()=>{Dt(b.current,O=>{O.expired&&clearTimeout(O.expirationId),X_(O.ctrl,p),O.ctrl.stop(!0)})}));const x=Zxe(y,r?r():t,C),w=o&&b.current||[];Gl(()=>Dt(w,({ctrl:O,item:D,key:H})=>{X_(O,p),Do(u,D,H)}));const S=[];if(C&&Dt(C,(O,D)=>{O.expired?(clearTimeout(O.expirationId),w.push(O)):(D=S[D]=x.indexOf(O.key),~D&&(v[D]=O))}),Dt(y,(O,D)=>{v[D]||(v[D]={key:x[D],item:O,phase:"mount",ctrl:new Fz},v[D].ctrl.item=O)}),S.length){let O=-1;const{leave:D}=r?r():t;Dt(S,(H,B)=>{const j=C[B];~H?(O=v.indexOf(j),v[O]={...j,item:y[H]}):D&&v.splice(++O,0,j)})}Ye.fun(i)&&v.sort((O,D)=>i(O.item,D.item));let $=-a;const T=d5(),k=Jx(t),M=new Map,I=m.useRef(new Map),N=m.useRef(!1);Dt(v,(O,D)=>{const H=O.key,B=O.phase,j=r?r():t;let W,U;const Z=Do(j.delay||0,H);if(B=="mount")W=j.enter,U="enter";else{const ne=x.indexOf(H)<0;if(B!="leave")if(ne)W=j.leave,U="leave";else if(W=j.update)U="update";else return;else if(!ne)W=j.enter,U="enter";else return}if(W=Do(W,O.item,D),W=Ye.obj(W)?h5(W):{to:W},!W.config){const ne=f||k.config;W.config=Do(ne,O.item,D,U)}$+=a;const Y={...k,delay:Z+$,ref:c,immediate:j.immediate,reset:!1,...W};if(U=="enter"&&Ye.und(Y.from)){const ne=r?r():t,re=Ye.und(ne.initial)||C?ne.from:ne.initial;Y.from=Do(re,O.item,D)}const{onResolve:se}=Y;Y.onResolve=ne=>{Do(se,ne);const re=b.current,ge=re.find(xe=>xe.key===H);if(ge&&!(ne.cancelled&&ge.phase!="update")&&ge.ctrl.idle){const xe=re.every(fe=>fe.ctrl.idle);if(ge.phase=="leave"){const fe=Do(s,ge.item);if(fe!==!1){const Se=fe===!0?0:fe;if(ge.expired=!0,!xe&&Se>0){Se<=2147483647&&(ge.expirationId=setTimeout(T,Se));return}}}xe&&re.some(fe=>fe.expired)&&(I.current.delete(ge),l&&(N.current=!0),T())}};const Q=nk(O.ctrl,Y);U==="leave"&&l?I.current.set(O,{phase:U,springs:Q,payload:Y}):M.set(O,{phase:U,springs:Q,payload:Y})});const E=m.useContext(h0),A=q_(E),z=E!==A&&Mz(E);Gl(()=>{z&&Dt(v,O=>{O.ctrl.start({default:E})})},[E]),Dt(M,(O,D)=>{if(I.current.size){const H=v.findIndex(B=>B.key===D.key);v.splice(H,1)}}),Gl(()=>{Dt(I.current.size?I.current:M,({phase:O,payload:D},H)=>{const{ctrl:B}=H;H.phase=O,p==null||p.add(B),z&&O=="enter"&&B.start({default:E}),D&&(Tz(B,D.ref),(B.ref||p)&&!N.current?B.update(D):(B.start(D),N.current&&(N.current=!1)))})},o?void 0:n);const L=O=>m.createElement(m.Fragment,null,v.map((D,H)=>{const{springs:B}=M.get(D)||D.ctrl,j=O({...B},D.item,D,H);return j&&j.type?m.createElement(j.type,{...j.props,key:Ye.str(D.key)||Ye.num(D.key)?D.key:D.ctrl.id,ref:j.ref}):j}));return p?[L,p]:L}var Qxe=1;function Zxe(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const a=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!o.has(s));return a?(o.add(a),a.key):Qxe++})}return Ye.und(n)?e:Ye.fun(n)?e.map(n):So(n)}var Hz=class extends v5{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=mg(...t);const n=this._get(),r=K_(n);p5(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Ws(t,n)||(Ha(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&h6(this._active)&&AS(this)}_get(){const e=Ye.arr(this.source)?this.source.map(Lo):So(Lo(this.source));return this.calc(...e)}_start(){this.idle&&!h6(this._active)&&(this.idle=!1,Dt(Qx(this),e=>{e.done=!1}),ia.skipAnimation?(Ht.batchedUpdates(()=>this.advance()),AS(this)):qx.start(this))}_attach(){let e=1;Dt(So(this.source),t=>{Wi(t)&&Np(t,this),Z_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Dt(So(this.source),e=>{Wi(e)&&yg(e,this)}),this._active.clear(),AS(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=So(this.source).reduce((t,n)=>Math.max(t,(Z_(n)?n.priority:0)+1),0))}};function Jxe(e){return e.idle!==!1}function h6(e){return!e.size||Array.from(e).every(Jxe)}function AS(e){e.idle||(e.idle=!0,Dt(Qx(e),t=>{t.done=!0}),vg(e,{type:"idle",parent:e}))}var fu=(e,...t)=>new Hz(e,t);ia.assign({createStringInterpolator:Cz,to:(e,t)=>new Hz(e,t)});var Wz=/^--/;function ewe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Wz.test(e)&&!(Im.hasOwnProperty(e)&&Im[e])?t+"px":(""+t).trim()}var m6={};function twe(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:m6[f]||(m6[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in r)if(r.hasOwnProperty(f)){const p=ewe(f,r[f]);Wz.test(f)?e.style.setProperty(f,p):e.style[f]=p}c.forEach((f,p)=>{e.setAttribute(f,u[p])}),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),s!==void 0&&e.setAttribute("viewBox",s)}var Im={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nwe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rwe=["Webkit","Ms","Moz","O"];Im=Object.keys(Im).reduce((e,t)=>(rwe.forEach(n=>e[nwe(n,t)]=e[t]),e),Im);var owe=/^(matrix|translate|scale|rotate|skew)/,iwe=/^(translate)/,awe=/^(rotate|skew)/,FS=(e,t)=>Ye.num(e)&&e!==0?e+t:e,O1=(e,t)=>Ye.arr(e)?e.every(n=>O1(n,t)):Ye.num(e)?e===t:parseFloat(e)===t,swe=class extends Zx{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(a=>[`translate3d(${a.map(s=>FS(s,"px")).join(",")})`,O1(a,0)])),hs(r,(a,s)=>{if(s==="transform")o.push([a||""]),i.push(l=>[l,l===""]);else if(owe.test(s)){if(delete r[s],Ye.und(a))return;const l=iwe.test(s)?"px":awe.test(s)?"deg":"";o.push(So(a)),i.push(s==="rotate3d"?([u,c,f,p])=>[`rotate3d(${u},${c},${f},${FS(p,l)})`,O1(p,0)]:u=>[`${s}(${u.map(c=>FS(c,l)).join(",")})`,O1(u,s.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new lwe(o,i)),super(r)}},lwe=class extends bz{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Dt(this.inputs,(n,r)=>{const o=Lo(n[0]),[i,a]=this.transforms[r](Ye.arr(o)?o:n.map(Lo));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Dt(this.inputs,t=>Dt(t,n=>Wi(n)&&Np(n,this)))}observerRemoved(e){e==0&&Dt(this.inputs,t=>Dt(t,n=>Wi(n)&&yg(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),vg(this,e)}},uwe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];ia.assign({batchedUpdates:xu.unstable_batchedUpdates,createStringInterpolator:Cz,colors:nxe});var cwe=Fxe(uwe,{applyAnimatedValues:twe,createAnimatedStyle:e=>new swe(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),In=cwe.animated;function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&f.height>0,C=Math.round(n[0]),x=Math.round(n[1]);b&&(r==="top"?(C-=f.width/2,x-=f.height+14):r==="right"?(C+=14,x-=f.height/2):r==="bottom"?(C-=f.width/2,x+=14):r==="left"?(C-=f.width+14,x-=f.height/2):r==="center"&&(C-=f.width/2,x-=f.height/2),y={transform:g6(C,x)},p.current||(v=!0),p.current=[C,x]);var w=xs({to:y,config:l,immediate:!s||v}),S=Uc({},dwe,i.tooltip,{transform:(t=w.transform)!=null?t:g6(C,x)});return g.jsx(In.div,{ref:c,style:S,children:o})});Vz.displayName="TooltipWrapper";var Uz=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,o=e.style;return g.jsx("span",{style:Uc({display:"block",width:n,height:n,background:r},o===void 0?{}:o)})}),y5=m.memo(function(e){var t,n=e.id,r=e.value,o=e.format,i=e.enableChip,a=i!==void 0&&i,s=e.color,l=e.renderContent,u=On(),c=Og(o);if(typeof l=="function")t=l();else{var f=r;c!==void 0&&f!==void 0&&(f=c(f)),t=g.jsxs("div",{style:u.tooltip.basic,children:[a&&g.jsx(Uz,{color:s,style:u.tooltip.chip}),f!==void 0?g.jsxs("span",{children:[n,": ",g.jsx("strong",{children:""+f})]}):n]})}return g.jsx("div",{style:u.tooltip.container,children:t})}),fwe={width:"100%",borderCollapse:"collapse"},Gz=m.memo(function(e){var t,n=e.title,r=e.rows,o=r===void 0?[]:r,i=e.renderContent,a=On();return o.length?(t=typeof i=="function"?i():g.jsxs("div",{children:[n&&n,g.jsx("table",{style:Uc({},fwe,a.tooltip.table),children:g.jsx("tbody",{children:o.map(function(s,l){return g.jsx("tr",{children:s.map(function(u,c){return g.jsx("td",{style:a.tooltip.tableCell,children:u},c)})},l)})})})]}),g.jsx("div",{style:a.tooltip.container,children:t})):null});Gz.displayName="TableTooltip";var rk=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,o=e.y1,i=On(),a=To(),s=a.animate,l=a.config,u=m.useMemo(function(){return Uc({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),c=xs({x1:t,x2:n,y1:r,y2:o,config:l,immediate:!s});return g.jsx(In.line,Uc({},c,{fill:"none",style:u}))});rk.displayName="CrosshairLine";var ok=m.memo(function(e){var t,n,r=e.width,o=e.height,i=e.type,a=e.x,s=e.y;return i==="cross"?(t={x0:a,x1:a,y0:0,y1:o},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):i==="top"?t={x0:a,x1:a,y0:0,y1:s}:i==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):i==="right"?n={x0:a,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:a,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:a,x1:a,y0:s,y1:o}:i==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:0,x1:a,y0:s,y1:s}):i==="left"?n={x0:0,x1:a,y0:s,y1:s}:i==="x"?t={x0:a,x1:a,y0:0,y1:o}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),g.jsxs(g.Fragment,{children:[t&&g.jsx(rk,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&g.jsx(rk,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});ok.displayName="Crosshair";var qz=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),ik={isVisible:!1,position:[null,null],content:null,anchor:null},Kz=m.createContext(ik),pwe=function(e){var t=m.useState(ik),n=t[0],r=t[1],o=m.useCallback(function(s,l,u){var c=l[0],f=l[1];u===void 0&&(u="top"),r({isVisible:!0,position:[c,f],anchor:u,content:s})},[r]),i=m.useCallback(function(s,l,u){u===void 0&&(u="top");var c=e.current.getBoundingClientRect(),f=e.current.offsetWidth,p=f===c.width?1:f/c.width,y=(l.clientX-c.left)*p,v=(l.clientY-c.top)*p;u!=="left"&&u!=="right"||(u=y-1}var Owe=Rwe,Awe=ew;function Fwe(e,t){var n=this.__data__,r=Awe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Lwe=Fwe,Dwe=bwe,jwe=Pwe,Nwe=Ewe,zwe=Owe,Bwe=Lwe;function Bp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=KSe}var _5=YSe,XSe=nw,QSe=_5;function ZSe(e){return e!=null&&QSe(e.length)&&!XSe(e)}var Gp=ZSe,JSe=Gp,e$e=Ss;function t$e(e){return e$e(e)&&JSe(e)}var lB=t$e,zy={exports:{}};function n$e(){return!1}var r$e=n$e;zy.exports;(function(e,t){var n=ws,r=r$e,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(zy,zy.exports);var sw=zy.exports,o$e=cd,i$e=S5,a$e=Ss,s$e="[object Object]",l$e=Function.prototype,u$e=Object.prototype,uB=l$e.toString,c$e=u$e.hasOwnProperty,d$e=uB.call(Object);function f$e(e){if(!a$e(e)||o$e(e)!=s$e)return!1;var t=i$e(e);if(t===null)return!0;var n=c$e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&uB.call(n)==d$e}var k5=f$e;const p$e=Or(k5);var h$e=cd,m$e=_5,g$e=Ss,v$e="[object Arguments]",y$e="[object Array]",b$e="[object Boolean]",x$e="[object Date]",w$e="[object Error]",C$e="[object Function]",S$e="[object Map]",$$e="[object Number]",_$e="[object Object]",k$e="[object RegExp]",P$e="[object Set]",M$e="[object String]",T$e="[object WeakMap]",E$e="[object ArrayBuffer]",I$e="[object DataView]",R$e="[object Float32Array]",O$e="[object Float64Array]",A$e="[object Int8Array]",F$e="[object Int16Array]",L$e="[object Int32Array]",D$e="[object Uint8Array]",j$e="[object Uint8ClampedArray]",N$e="[object Uint16Array]",z$e="[object Uint32Array]",Xn={};Xn[R$e]=Xn[O$e]=Xn[A$e]=Xn[F$e]=Xn[L$e]=Xn[D$e]=Xn[j$e]=Xn[N$e]=Xn[z$e]=!0;Xn[v$e]=Xn[y$e]=Xn[E$e]=Xn[b$e]=Xn[I$e]=Xn[x$e]=Xn[w$e]=Xn[C$e]=Xn[S$e]=Xn[$$e]=Xn[_$e]=Xn[k$e]=Xn[P$e]=Xn[M$e]=Xn[T$e]=!1;function B$e(e){return g$e(e)&&m$e(e.length)&&!!Xn[h$e(e)]}var H$e=B$e;function W$e(e){return function(t){return e(t)}}var qp=W$e,By={exports:{}};By.exports;(function(e,t){var n=Yz,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})(By,By.exports);var lw=By.exports,V$e=H$e,U$e=qp,P6=lw,M6=P6&&P6.isTypedArray,G$e=M6?U$e(M6):V$e,P5=G$e;function q$e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var cB=q$e,K$e=w5,Y$e=m0,X$e=Object.prototype,Q$e=X$e.hasOwnProperty;function Z$e(e,t,n){var r=e[t];(!(Q$e.call(e,t)&&Y$e(r,n))||n===void 0&&!(t in e))&&K$e(e,t,n)}var M5=Z$e,J$e=M5,e_e=w5;function t_e(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=dke)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mke=hke,gke=cke,vke=mke,yke=vke(gke),hB=yke,bke=cw,xke=pB,wke=hB;function Cke(e,t){return wke(xke(e,t,bke),e+"")}var T5=Cke,Ske=m0,$ke=Gp,_ke=uw,kke=Cs;function Pke(e,t,n){if(!kke(n))return!1;var r=typeof t;return(r=="number"?$ke(n)&&_ke(t,n.length):r=="string"&&t in n)?Ske(n[t],e):!1}var mB=Pke,Mke=T5,Tke=mB;function Eke(e){return Mke(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Tke(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=APe.exec(e))?new $o(t[1],t[2],t[3],1):(t=FPe.exec(e))?new $o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LPe.exec(e))?qv(t[1],t[2],t[3],t[4]):(t=DPe.exec(e))?qv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jPe.exec(e))?U6(t[1],t[2]/100,t[3]/100,1):(t=NPe.exec(e))?U6(t[1],t[2]/100,t[3]/100,t[4]):N6.hasOwnProperty(e)?H6(N6[e]):e==="transparent"?new $o(NaN,NaN,NaN,0):null}function H6(e){return new $o(e>>16&255,e>>8&255,e&255,1)}function qv(e,t,n,r){return r<=0&&(e=t=n=NaN),new $o(e,t,n,r)}function xB(e){return e instanceof Qp||(e=_g(e)),e?(e=e.rgb(),new $o(e.r,e.g,e.b,e.opacity)):new $o}function Hy(e,t,n,r){return arguments.length===1?xB(e):new $o(e,t,n,r??1)}function $o(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pw($o,Hy,R5(Qp,{brighter:function(e){return e=e==null?yp:Math.pow(yp,e),new $o(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Gc:Math.pow(Gc,e),new $o(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:W6,formatHex:W6,formatRgb:V6,toString:V6}));function W6(){return"#"+DS(this.r)+DS(this.g)+DS(this.b)}function V6(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function DS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function U6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qa(e,t,n,r)}function wB(e){if(e instanceof Qa)return new Qa(e.h,e.s,e.l,e.opacity);if(e instanceof Qp||(e=_g(e)),!e)return new Qa;if(e instanceof Qa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Qa(a,s,l,e.opacity)}function BPe(e,t,n,r){return arguments.length===1?wB(e):new Qa(e,t,n,r??1)}function Qa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pw(Qa,BPe,R5(Qp,{brighter:function(e){return e=e==null?yp:Math.pow(yp,e),new Qa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Gc:Math.pow(Gc,e),new Qa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new $o(jS(e>=240?e-240:e+120,o,r),jS(e,o,r),jS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function jS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const HPe=Math.PI/180,WPe=180/Math.PI;var CB=-.14861,O5=1.78277,A5=-.29227,hw=-.90649,kg=1.97294,G6=kg*hw,q6=kg*O5,K6=O5*A5-hw*CB;function VPe(e){if(e instanceof Cc)return new Cc(e.h,e.s,e.l,e.opacity);e instanceof $o||(e=xB(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(K6*r+G6*t-q6*n)/(K6+G6-q6),i=r-o,a=(kg*(n-o)-A5*i)/hw,s=Math.sqrt(a*a+i*i)/(kg*o*(1-o)),l=s?Math.atan2(a,i)*WPe-120:NaN;return new Cc(l<0?l+360:l,s,o,e.opacity)}function ak(e,t,n,r){return arguments.length===1?VPe(e):new Cc(e,t,n,r??1)}function Cc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pw(Cc,ak,R5(Qp,{brighter:function(e){return e=e==null?yp:Math.pow(yp,e),new Cc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Gc:Math.pow(Gc,e),new Cc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*HPe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new $o(255*(t+n*(CB*r+O5*o)),255*(t+n*(A5*r+hw*o)),255*(t+n*(kg*r)),this.opacity)}}));function UPe(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function GPe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r()=>e;function SB(e,t){return function(n){return e+n*t}}function qPe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function KPe(e,t){var n=t-e;return n?SB(e,n>180||n<-180?n-360*Math.round(n/360):n):mw(isNaN(e)?t:e)}function YPe(e){return(e=+e)==1?qf:function(t,n){return n-t?qPe(t,n,e):mw(isNaN(t)?n:t)}}function qf(e,t){var n=t-e;return n?SB(e,n):mw(isNaN(e)?t:e)}const Y6=function e(t){var n=YPe(t);function r(o,i){var a=n((o=Hy(o)).r,(i=Hy(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=qf(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function XPe(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),a,s;for(a=0;an&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Pg(r,o)})),n=NS.lastIndex;return n{}}),ybe="/fintrack/assets/logo-b74d1d14.svg",Pl=({icon:e,onClick:t,linkTo:n,style:r,text:o})=>g.jsx(tz,{icon:e,onClick:t,component:g.jsx($oe,{to:n}),children:g.jsx(Ze,{style:r,children:o})});function bbe(){const e=Xt(),t=jn(e.palette.mode),[n,r]=m.useState(!1),{hideSidebar:o,setHideSidebar:i}=m.useContext(Vx),a=()=>{i(s=>s===!0?!s:s)};return g.jsx(Ue,{sx:{borderRight:`1px solid ${t.primary[500]} !important`,display:{xs:o?"block":"none",sm:o?"block":"none",md:o?"block":"none",lg:o?"none":"block"},"& .ps-sidebar-root":{border:"none"},"& .ps-sidebar-container":{background:`${t.primary[400]} !important`,height:"100%",minHeight:"100vh"},"& .ps-menu-icon svg":{fill:`${t.primary[100]} !important`},"& .ps-menu-root .MuiBox-root li a":{borderRadius:"15px"}},children:g.jsx(I1e,{collapsed:n,className:"hidden",width:"290px",children:g.jsxs(A1e,{menuItemStyles:{button:{"&:hover, &.active":{backgroundColor:`${t.primary[500]}`,color:"#b6c8d9"}}},children:[g.jsx(tz,{onClick:()=>r(!n),icon:n?g.jsx(UA,{}):void 0,style:{margin:"10px 0 20px 0",color:t.grey[100]},children:!n&&g.jsxs(Ue,{display:"flex",justifyContent:"space-between",alignItems:"center",ml:"15px",children:[g.jsxs(Ue,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[g.jsx($y,{src:ybe,sx:{height:25,width:25}}),g.jsx(Ze,{variant:"h3",color:t.grey[100],ml:.5,children:"FinTrack"})]}),g.jsx(wo,{onClick:()=>r(!n),children:g.jsx(UA,{})})]})}),g.jsxs(Ue,{paddingInline:n?void 0:"5%",children:[g.jsx(Ze,{variant:"h6",color:t.grey[300],sx:{m:"15px 0 5px 20px"},children:"Menu"}),g.jsx(Pl,{icon:g.jsx(abe,{}),onClick:a,linkTo:"/",style:{color:t.grey[100]},text:"Overview"}),g.jsx(Pl,{icon:g.jsx(ibe,{}),onClick:a,linkTo:"/budget",style:{color:t.grey[100]},text:"Budget"}),g.jsx(Pl,{icon:g.jsx(cbe,{}),onClick:a,linkTo:"/bills",style:{color:t.grey[100]},text:"Bills"}),g.jsx(Pl,{icon:g.jsx(tbe,{}),onClick:a,linkTo:"/reports",style:{color:t.grey[100]},text:"Reports & Analytics"}),g.jsx(Pl,{icon:g.jsx(mbe,{}),onClick:a,linkTo:"/debt",style:{color:t.grey[100]},text:"Debt Management"}),g.jsx(Pl,{icon:g.jsx(rbe,{}),onClick:a,linkTo:"/investments",style:{color:t.grey[100]},text:"Investments"}),g.jsx(Pl,{icon:g.jsx(Jye,{}),onClick:a,linkTo:"/networth",style:{color:t.grey[100]},text:"Net Worth"}),g.jsx(Pl,{icon:g.jsx(fbe,{}),onClick:a,linkTo:"/settings",style:{color:t.grey[100]},text:"Settings"})]})]})})})}var YM={},nz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nz);var _u=nz.exports,MS={};const xbe=Ree(ble);var GA;function ku(){return GA||(GA=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xbe}(MS)),MS}var wbe=_u;Object.defineProperty(YM,"__esModule",{value:!0});var rz=YM.default=void 0,Cbe=wbe(ku()),Sbe=g,$be=(0,Cbe.default)((0,Sbe.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightModeOutlined");rz=YM.default=$be;var XM={},_be=_u;Object.defineProperty(XM,"__esModule",{value:!0});var oz=XM.default=void 0,kbe=_be(ku()),Pbe=g,Mbe=(0,kbe.default)((0,Pbe.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");oz=XM.default=Mbe;var QM={},Tbe=_u;Object.defineProperty(QM,"__esModule",{value:!0});var iz=QM.default=void 0,Ebe=Tbe(ku()),Ibe=g,Rbe=(0,Ebe.default)((0,Ibe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsOutlined");iz=QM.default=Rbe;var ZM={},Obe=_u;Object.defineProperty(ZM,"__esModule",{value:!0});var az=ZM.default=void 0,Abe=Obe(ku()),Fbe=g,Lbe=(0,Abe.default)((0,Fbe.jsx)("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonOutlined");az=ZM.default=Lbe;var JM={},Dbe=_u;Object.defineProperty(JM,"__esModule",{value:!0});var sz=JM.default=void 0,jbe=Dbe(ku()),Nbe=g,zbe=(0,jbe.default)((0,Nbe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");sz=JM.default=zbe;var e5={},Bbe=_u;Object.defineProperty(e5,"__esModule",{value:!0});var lz=e5.default=void 0,Hbe=Bbe(ku()),Wbe=g,Vbe=(0,Hbe.default)((0,Wbe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");lz=e5.default=Vbe;function Ube(){const e=Xt(),t=jn(e.palette.mode),n=m.useContext(Ij),{setHideSidebar:r}=m.useContext(Vx),o=()=>{r(i=>!i)};return g.jsx(Ue,{display:"flex",justifyContent:"space-between",p:2,width:"100%",children:g.jsx(vue,{position:"static",children:g.jsxs(_N,{sx:{backgroundColor:t.primary[400],display:"flex",justifyContent:"space-between"},children:[g.jsx(wo,{sx:{display:{md:"block",lg:"block",xl:"none"}},size:"large",edge:"start","aria-label":"menu",onClick:o,children:g.jsx(lz,{})}),g.jsxs(Ue,{sx:{backgroundColor:t.primary[500],borderRadius:"3px",display:"flex"},children:[g.jsx(sd,{sx:{ml:2,flex:1},placeholder:"Search"}),g.jsx(wo,{type:"button",sx:{p:1},children:g.jsx(sz,{})})]}),g.jsxs(Ue,{sx:{display:"flex"},children:[g.jsx(wo,{onClick:n.toggleColorMode,children:e.palette.mode==="dark"?g.jsx(oz,{}):g.jsx(rz,{})}),g.jsx(wo,{children:g.jsx(iz,{})}),g.jsx(wo,{children:g.jsx(az,{})})]})]})})})}function Gbe(){const{setHideSidebar:e}=m.useContext(Vx),t=()=>{e(n=>n===!0?!n:n)};return g.jsxs("main",{children:[g.jsx(Ube,{}),g.jsx(Ue,{onClick:t,children:g.jsx(doe,{})})]})}function qbe(){const{theme:e,toggleColorMode:t}=ple("light"),[n,r]=m.useState(!1);return g.jsx(Ij.Provider,{value:{toggleColorMode:t},children:g.jsxs(Gie,{theme:e,children:[g.jsx(Npe,{}),g.jsx(Ue,{className:"app",children:g.jsxs(Vx.Provider,{value:{hideSidebar:n,setHideSidebar:r},children:[g.jsx(bbe,{}),g.jsx(Gbe,{})]})})]})})}const mr=({title:e,content:t,height:n=400,padding:r=1})=>{const o=Xt(),i=jn(o.palette.mode);return g.jsxs(Gfe,{sx:{background:i.primary[400],height:`${n}px`,padding:`${r}rem`,margin:"0 auto",width:"100%"},children:[g.jsx(spe,{title:g.jsx(Ze,{variant:"h5",fontWeight:600,children:e})}),g.jsx(_i,{sx:{"& .MuiDataGrid-root":{border:"none"},"& .MuiDataGrid-columnHeaders":{backgroundColor:i.blueAccent[800],borderBottom:"none"},boxSizing:"border-box",height:"90%"},children:t})]})};var Kbe=Object.defineProperty,Ybe=(e,t)=>{for(var n in t)Kbe(e,n,{get:t[n],enumerable:!0})},ia={};Ybe(ia,{assign:()=>Zbe,colors:()=>ou,createStringInterpolator:()=>s5,skipAnimation:()=>mz,to:()=>hz,willAdvance:()=>l5});var t5=d0(),Ht=e=>c0(e,t5),n5=d0();Ht.write=e=>c0(e,n5);var Ux=d0();Ht.onStart=e=>c0(e,Ux);var r5=d0();Ht.onFrame=e=>c0(e,r5);var o5=d0();Ht.onFinish=e=>c0(e,o5);var Wf=[];Ht.setTimeout=(e,t)=>{const n=Ht.now()+t,r=()=>{const i=Wf.findIndex(a=>a.cancel==r);~i&&Wf.splice(i,1),Vl-=~i?1:0},o={time:n,handler:e,cancel:r};return Wf.splice(uz(n),0,o),Vl+=1,cz(),o};var uz=e=>~(~Wf.findIndex(t=>t.time>e)||~Wf.length);Ht.cancel=e=>{Ux.delete(e),r5.delete(e),o5.delete(e),t5.delete(e),n5.delete(e)};Ht.sync=e=>{W_=!0,Ht.batchedUpdates(e),W_=!1};Ht.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Ht.onStart(n)}return r.handler=e,r.cancel=()=>{Ux.delete(n),t=null},r};var i5=typeof window<"u"?window.requestAnimationFrame:()=>{};Ht.use=e=>i5=e;Ht.now=typeof performance<"u"?()=>performance.now():Date.now;Ht.batchedUpdates=e=>e();Ht.catch=console.error;Ht.frameLoop="always";Ht.advance=()=>{Ht.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):fz()};var Wl=-1,Vl=0,W_=!1;function c0(e,t){W_?(t.delete(e),e(0)):(t.add(e),cz())}function cz(){Wl<0&&(Wl=0,Ht.frameLoop!=="demand"&&i5(dz))}function Xbe(){Wl=-1}function dz(){~Wl&&(i5(dz),Ht.batchedUpdates(fz))}function fz(){const e=Wl;Wl=Ht.now();const t=uz(Wl);if(t&&(pz(Wf.splice(0,t),n=>n.handler()),Vl-=t),!Vl){Xbe();return}Ux.flush(),t5.flush(e?Math.min(64,Wl-e):16.667),r5.flush(),n5.flush(),o5.flush()}function d0(){let e=new Set,t=e;return{add(n){Vl+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Vl-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Vl-=t.size,pz(t,r=>r(n)&&e.add(r)),Vl+=e.size,t=e)}}}function pz(e,t){e.forEach(n=>{try{t(n)}catch(r){Ht.catch(r)}})}function V_(){}var Qbe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ye={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Hs(e,t){if(Ye.arr(e)){if(!Ye.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function hs(e,t,n){if(Ye.arr(e)){for(let r=0;rYe.und(e)?[]:Ye.arr(e)?e:[e];function Pm(e,t){if(e.size){const n=Array.from(e);e.clear(),Dt(n,t)}}var sm=(e,...t)=>Pm(e,n=>n(...t)),a5=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),s5,hz,ou=null,mz=!1,l5=V_,Zbe=e=>{e.to&&(hz=e.to),e.now&&(Ht.now=e.now),e.colors!==void 0&&(ou=e.colors),e.skipAnimation!=null&&(mz=e.skipAnimation),e.createStringInterpolator&&(s5=e.createStringInterpolator),e.requestAnimationFrame&&Ht.use(e.requestAnimationFrame),e.batchedUpdates&&(Ht.batchedUpdates=e.batchedUpdates),e.willAdvance&&(l5=e.willAdvance),e.frameLoop&&(Ht.frameLoop=e.frameLoop)},Mm=new Set,Vi=[],TS=[],Ry=0,Gx={get idle(){return!Mm.size&&!Vi.length},start(e){Ry>e.priority?(Mm.add(e),Ht.onStart(Jbe)):(gz(e),Ht(U_))},advance:U_,sort(e){if(Ry)Ht.onFrame(()=>Gx.sort(e));else{const t=Vi.indexOf(e);~t&&(Vi.splice(t,1),vz(e))}},clear(){Vi=[],Mm.clear()}};function Jbe(){Mm.forEach(gz),Mm.clear(),Ht(U_)}function gz(e){Vi.includes(e)||vz(e)}function vz(e){Vi.splice(exe(Vi,t=>t.priority>e.priority),0,e)}function U_(e){const t=TS;for(let n=0;n0}function exe(e,t){const n=e.findIndex(t);return n<0?e.length:n}var txe=(e,t,n)=>Math.min(Math.max(n,e),t),nxe={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Sa="[-+]?\\d*\\.?\\d+",Oy=Sa+"%";function qx(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var rxe=new RegExp("rgb"+qx(Sa,Sa,Sa)),oxe=new RegExp("rgba"+qx(Sa,Sa,Sa,Sa)),ixe=new RegExp("hsl"+qx(Sa,Oy,Oy)),axe=new RegExp("hsla"+qx(Sa,Oy,Oy,Sa)),sxe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lxe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,uxe=/^#([0-9a-fA-F]{6})$/,cxe=/^#([0-9a-fA-F]{8})$/;function dxe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=uxe.exec(e))?parseInt(t[1]+"ff",16)>>>0:ou&&ou[e]!==void 0?ou[e]:(t=rxe.exec(e))?(Zd(t[1])<<24|Zd(t[2])<<16|Zd(t[3])<<8|255)>>>0:(t=oxe.exec(e))?(Zd(t[1])<<24|Zd(t[2])<<16|Zd(t[3])<<8|YA(t[4]))>>>0:(t=sxe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=cxe.exec(e))?parseInt(t[1],16)>>>0:(t=lxe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ixe.exec(e))?(qA(KA(t[1]),Wv(t[2]),Wv(t[3]))|255)>>>0:(t=axe.exec(e))?(qA(KA(t[1]),Wv(t[2]),Wv(t[3]))|YA(t[4]))>>>0:null}function ES(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qA(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ES(o,r,e+1/3),a=ES(o,r,e),s=ES(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function Zd(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function KA(e){return(parseFloat(e)%360+360)%360/360}function YA(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Wv(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function XA(e){let t=dxe(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var hg=(e,t,n)=>{if(Ye.fun(e))return e;if(Ye.arr(e))return hg({range:e,output:t,extrapolate:n});if(Ye.str(e.output[0]))return s5(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=pxe(u,i);return fxe(u,i[c],i[c+1],o[c],o[c+1],l,a,s,r.map)}};function fxe(e,t,n,r,o,i,a,s,l){let u=l?l(e):e;if(un){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function pxe(e,t){for(var n=1;n=e);++n);return n-1}var hxe=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return txe(0,1,o/e)},Ay=1.70158,Vv=Ay*1.525,QA=Ay+1,ZA=2*Math.PI/3,JA=2*Math.PI/4.5,Uv=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,mxe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>QA*e*e*e-Ay*e*e,easeOutBack:e=>1+QA*Math.pow(e-1,3)+Ay*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Vv+1)*2*e-Vv)/2:(Math.pow(2*e-2,2)*((Vv+1)*(e*2-2)+Vv)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ZA),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ZA)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*JA))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*JA)/2+1,easeInBounce:e=>1-Uv(1-e),easeOutBounce:Uv,easeInOutBounce:e=>e<.5?(1-Uv(1-2*e))/2:(1+Uv(2*e-1))/2,steps:hxe},mg=Symbol.for("FluidValue.get"),gp=Symbol.for("FluidValue.observers"),Wi=e=>!!(e&&e[mg]),Lo=e=>e&&e[mg]?e[mg]():e,e6=e=>e[gp]||null;function gxe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function gg(e,t){const n=e[gp];n&&n.forEach(r=>{gxe(r,t)})}var yz=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");vxe(this,e)}},vxe=(e,t)=>bz(e,mg,t);function jp(e,t){if(e[mg]){let n=e[gp];n||bz(e,gp,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function vg(e,t){const n=e[gp];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[gp]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var bz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),I1=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yxe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,t6=new RegExp(`(${I1.source})(%|[a-z]+)`,"i"),bxe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Kx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,xz=e=>{const[t,n]=xxe(e);if(!t||a5())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&Kx.test(n))return xz(n);if(n)return n}return e},xxe=e=>{const t=Kx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},IS,wxe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,wz=e=>{IS||(IS=ou?new RegExp(`(${Object.keys(ou).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>Lo(i).replace(Kx,xz).replace(yxe,XA).replace(IS,XA)),n=t.map(i=>i.match(I1).map(Number)),o=n[0].map((i,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(i=>hg({...e,output:i}));return i=>{var l;const a=!t6.test(t[0])&&((l=t.find(u=>t6.test(u)))==null?void 0:l.replace(I1,""));let s=0;return t[0].replace(I1,()=>`${o[s++](i)}${a||""}`).replace(bxe,wxe)}},u5="react-spring: ",Cz=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${u5}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Cxe=Cz(console.warn);function Sxe(){Cxe(`${u5}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $xe=Cz(console.warn);function _xe(){$xe(`${u5}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Yx(e){return Ye.str(e)&&(e[0]=="#"||/\d/.test(e)||!a5()&&Kx.test(e)||e in(ou||{}))}var Ul=a5()?m.useEffect:m.useLayoutEffect,kxe=()=>{const e=m.useRef(!1);return Ul(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function c5(){const e=m.useState()[1],t=kxe();return()=>{t.current&&e(Math.random())}}function Pxe(e,t){const[n]=m.useState(()=>({inputs:t,result:e()})),r=m.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&Mxe(t,i.inputs)||(i={inputs:t,result:e()}):i=n,m.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Mxe(e,t){if(e.length!==t.length)return!1;for(let n=0;nm.useEffect(e,Txe),Txe=[];function G_(e){const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current}var yg=Symbol.for("Animated:node"),Exe=e=>!!e&&e[yg]===e,Ha=e=>e&&e[yg],f5=(e,t)=>Qbe(e,yg,t),Xx=e=>e&&e[yg]&&e[yg].getPayload(),Sz=class{constructor(){f5(this,this)}getPayload(){return this.payload||[]}},f0=class extends Sz{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ye.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new f0(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ye.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ye.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bg=class extends f0{constructor(e){super(0),this._string=null,this._toString=hg({output:[e,e]})}static create(e){return new bg(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ye.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=hg({output:[this.getValue(),e]})),this._value=0,super.reset()}},Fy={dependencies:null},Qx=class extends Sz{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return hs(this.source,(n,r)=>{Exe(n)?t[r]=n.getValue(e):Wi(n)?t[r]=Lo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Dt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return hs(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Fy.dependencies&&Wi(e)&&Fy.dependencies.add(e);const t=Xx(e);t&&Dt(t,n=>this.add(n))}},$z=class extends Qx{constructor(e){super(e)}static create(e){return new $z(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Ixe)),!0)}};function Ixe(e){return(Yx(e)?bg:f0).create(e)}function q_(e){const t=Ha(e);return t?t.constructor:Ye.arr(e)?$z:Yx(e)?bg:f0}var n6=(e,t)=>{const n=!Ye.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,o)=>{const i=m.useRef(null),a=n&&m.useCallback(v=>{i.current=Axe(o,v)},[o]),[s,l]=Oxe(r,t),u=c5(),c=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,s.getValue(!0)):!1)===!1&&u()},f=new Rxe(c,l),p=m.useRef();Ul(()=>(p.current=f,Dt(l,v=>jp(v,f)),()=>{p.current&&(Dt(p.current.deps,v=>vg(v,p.current)),Ht.cancel(p.current.update))})),m.useEffect(c,[]),d5(()=>()=>{const v=p.current;Dt(v.deps,b=>vg(b,v))});const y=t.getComponentProps(s.getValue());return m.createElement(e,{...y,ref:a})})},Rxe=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ht.write(this.update)}};function Oxe(e,t){const n=new Set;return Fy.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Qx(e),Fy.dependencies=null,[e,n]}function Axe(e,t){return e&&(Ye.fun(e)?e(t):e.current=t),t}var r6=Symbol.for("AnimatedComponent"),Fxe=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Qx(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=a=>{const s=o6(a)||"Anonymous";return Ye.str(a)?a=i[a]||(i[a]=n6(a,o)):a=a[r6]||(a[r6]=n6(a,o)),a.displayName=`Animated(${s})`,a};return hs(e,(a,s)=>{Ye.arr(e)&&(s=o6(a)),i[s]=i(a)}),{animated:i}},o6=e=>Ye.str(e)?e:e&&Ye.str(e.displayName)?e.displayName:Ye.fun(e)&&e.name||null;function Do(e,...t){return Ye.fun(e)?e(...t):e}var Tm=(e,t)=>e===!0||!!(t&&e&&(Ye.fun(e)?e(t):So(e).includes(t))),_z=(e,t)=>Ye.obj(e)?t&&e[t]:e,kz=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Lxe=e=>e,Zx=(e,t=Lxe)=>{let n=Dxe;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);Ye.und(i)||(r[o]=i)}return r},Dxe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],jxe={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Nxe(e){const t={};let n=0;if(hs(e,(r,o)=>{jxe[o]||(t[o]=r,n++)}),n)return t}function p5(e){const t=Nxe(e);if(t){const n={to:t};return hs(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function xg(e){return e=Lo(e),Ye.arr(e)?e.map(xg):Yx(e)?ia.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Pz(e){for(const t in e)return!0;return!1}function K_(e){return Ye.fun(e)||Ye.arr(e)&&Ye.obj(e[0])}function Y_(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Mz(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var h5={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},X_={...h5.default,mass:1,damping:1,easing:mxe.linear,clamp:!1},zxe=class{constructor(){this.velocity=0,Object.assign(this,X_)}};function Bxe(e,t,n){n&&(n={...n},i6(n,t),t={...n,...t}),i6(e,t),Object.assign(e,t);for(const a in X_)e[a]==null&&(e[a]=X_[a]);let{frequency:r,damping:o}=e;const{mass:i}=e;return Ye.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function i6(e,t){if(!Ye.und(t.decay))e.duration=void 0;else{const n=!Ye.und(t.tension)||!Ye.und(t.friction);(n||!Ye.und(t.frequency)||!Ye.und(t.damping)||!Ye.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var a6=[],Hxe=class{constructor(){this.changed=!1,this.values=a6,this.toValues=null,this.fromValues=a6,this.config=new zxe,this.immediate=!1}};function Tz(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((a,s)=>{let l,u,c=Tm(n.cancel??(r==null?void 0:r.cancel),t);if(c)y();else{Ye.und(n.pause)||(o.paused=Tm(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=o.paused||Tm(v,t)),l=Do(n.delay||0,t),v?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function f(){o.resumeQueue.add(p),o.timeouts.delete(u),u.cancel(),l=u.time-Ht.now()}function p(){l>0&&!ia.skipAnimation?(o.delayed=!0,u=Ht.setTimeout(y,l),o.pauseQueue.add(f),o.timeouts.add(u)):y()}function y(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},a)}catch(v){s(v)}}})}var m5=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Vf(e.get()):t.every(n=>n.noop)?Ez(e.get()):xa(e.get(),t.every(n=>n.finished)),Ez=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Vf=e=>({value:e,cancelled:!0,finished:!1});function Iz(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return!i&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Zx(t,(C,x)=>x==="onRest"?void 0:C);let c,f;const p=new Promise((C,x)=>(c=C,f=x)),y=C=>{const x=o<=(n.cancelId||0)&&Vf(r)||o!==n.asyncId&&xa(r,!1);if(x)throw C.result=x,f(C),C},v=(C,x)=>{const w=new s6,S=new l6;return(async()=>{if(ia.skipAnimation)throw wg(n),S.result=xa(r,!1),f(S),S;y(w);const $=Ye.obj(C)?{...C}:{...x,to:C};$.parentId=o,hs(u,(k,M)=>{Ye.und($[M])&&($[M]=k)});const T=await r.start($);return y(w),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),T})()};let b;if(ia.skipAnimation)return wg(n),xa(r,!1);try{let C;Ye.arr(e)?C=(async x=>{for(const w of x)await v(w)})(e):C=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([C.then(c),p]),b=xa(r.get(),!0,!1)}catch(C){if(C instanceof s6)b=C.result;else if(C instanceof l6)b=C.result;else throw C}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Ye.fun(a)&&Ht.batchedUpdates(()=>{a(b,r,r.item)}),b})()}function wg(e,t){Pm(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var s6=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},l6=class extends Error{constructor(){super("SkipAnimationSignal")}},Q_=e=>e instanceof g5,Wxe=1,g5=class extends yz{constructor(){super(...arguments),this.id=Wxe++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ha(this);return e&&e.getValue()}to(...e){return ia.to(this,e)}interpolate(...e){return Sxe(),ia.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){gg(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Gx.sort(this),gg(this,{type:"priority",parent:this,priority:e})}},Wc=Symbol.for("SpringPhase"),Rz=1,Z_=2,J_=4,RS=e=>(e[Wc]&Rz)>0,Ml=e=>(e[Wc]&Z_)>0,Wh=e=>(e[Wc]&J_)>0,u6=(e,t)=>t?e[Wc]|=Z_|Rz:e[Wc]&=~Z_,c6=(e,t)=>t?e[Wc]|=J_:e[Wc]&=~J_,Vxe=class extends g5{constructor(e,t){if(super(),this.animation=new Hxe,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ye.und(e)||!Ye.und(t)){const n=Ye.obj(e)?{...e}:{...t,from:e};Ye.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ml(this)||this._state.asyncTo)||Wh(this)}get goal(){return Lo(this.animation.to)}get velocity(){const e=Ha(this);return e instanceof f0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return RS(this)}get isAnimating(){return Ml(this)}get isPaused(){return Wh(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=Xx(r.to);!a&&Wi(r.to)&&(o=So(Lo(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==bg?1:a?a[c].lastPosition:o[c];let p=r.immediate,y=f;if(!p){if(y=u.lastPosition,i.tension<=0){u.done=!0;return}let v=u.elapsedTime+=e;const b=r.fromValues[c],C=u.v0!=null?u.v0:u.v0=Ye.arr(i.velocity)?i.velocity[c]:i.velocity;let x;const w=i.precision||(b==f?.005:Math.min(1,Math.abs(f-b)*.001));if(Ye.und(i.duration))if(i.decay){const S=i.decay===!0?.998:i.decay,$=Math.exp(-(1-S)*v);y=b+C/(1-S)*(1-$),p=Math.abs(u.lastPosition-y)<=w,x=C*$}else{x=u.lastVelocity==null?C:u.lastVelocity;const S=i.restVelocity||w/10,$=i.clamp?0:i.bounce,T=!Ye.und($),k=b==f?u.v0>0:bS,!(!M&&(p=Math.abs(f-y)<=w,p)));++A){T&&(I=y==f||y>f==k,I&&(x=-x*$,y=f));const z=-i.tension*1e-6*(y-f),L=-i.friction*.001*x,O=(z+L)/i.mass;x=x+O*N,y=y+x*N}}else{let S=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,v=u.elapsedTime+=e)),S=(i.progress||0)+v/this._memoizedDuration,S=S>1?1:S<0?0:S,u.durationProgress=S),y=b+i.easing(S)*(f-b),x=(y-u.lastPosition)/e,p=S==1}u.lastVelocity=x,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),p=!0)}a&&!a[c].done&&(p=!1),p?u.done=!0:t=!1,u.setValue(y,i.round)&&(n=!0)});const s=Ha(this),l=s.getValue();if(t){const u=Lo(r.to);(l!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Ht.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ml(this)){const{to:e,config:t}=this.animation;Ht.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ye.und(e)?(n=this.queue||[],this.queue=[]):n=[Ye.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>m5(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),wg(this._state,e&&this._lastCallId),Ht.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ye.obj(n)?n[t]:n,(n==null||K_(n))&&(n=void 0),r=Ye.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return RS(this)||(e.reverse&&([n,r]=[r,n]),r=Lo(r),Ye.und(r)?Ha(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Zx(e,(a,s)=>/^on/.test(s)?_z(a,n):a)),f6(this,e,"onProps"),Uh(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Tz(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Wh(this)||(c6(this,!0),sm(i.pauseQueue),Uh(this,"onPause",xa(this,Vh(this,this.animation.to)),this))},resume:()=>{Wh(this)&&(c6(this,!1),Ml(this)&&this._resume(),sm(i.resumeQueue),Uh(this,"onResume",xa(this,Vh(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=Oz(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Vf(this));const r=!Ye.und(e.to),o=!Ye.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Vf(this));const{key:i,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:f=u}=e;o&&!r&&(!t.default||Ye.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const p=!Hs(f,u);p&&(s.from=f),f=Lo(f);const y=!Hs(c,l);y&&this._focus(c);const v=K_(t.to),{config:b}=s,{decay:C,velocity:x}=b;(r||o)&&(b.velocity=0),t.config&&!v&&Bxe(b,Do(t.config,i),t.config!==a.config?Do(a.config,i):void 0);let w=Ha(this);if(!w||Ye.und(c))return n(xa(this,!0));const S=Ye.und(t.reset)?o&&!t.default:!Ye.und(f)&&Tm(t.reset,i),$=S?f:this.get(),T=xg(c),k=Ye.num(T)||Ye.arr(T)||Yx(T),M=!v&&(!k||Tm(a.immediate||t.immediate,i));if(y){const A=q_(c);if(A!==w.constructor)if(M)w=this._set(T);else throw Error(`Cannot animate between ${w.constructor.name} and ${A.name}, as the "to" prop suggests`)}const I=w.constructor;let N=Wi(c),E=!1;if(!N){const A=S||!RS(this)&&p;(y||A)&&(E=Hs(xg($),T),N=!E),(!Hs(s.immediate,M)&&!M||!Hs(b.decay,C)||!Hs(b.velocity,x))&&(N=!0)}if(E&&Ml(this)&&(s.changed&&!S?N=!0:N||this._stop(l)),!v&&((N||Wi(l))&&(s.values=w.getPayload(),s.toValues=Wi(c)?null:I==bg?[1]:So(T)),s.immediate!=M&&(s.immediate=M,!M&&!S&&this._set(l)),N)){const{onRest:A}=s;Dt(Gxe,L=>f6(this,t,L));const z=xa(this,Vh(this,l));sm(this._pendingCalls,z),this._pendingCalls.add(n),s.changed&&Ht.batchedUpdates(()=>{var L;s.changed=!S,A==null||A(z,this),S?Do(a.onRest,z):(L=s.onStart)==null||L.call(s,z,this)})}S&&this._set($),v?n(Iz(t.to,t,this._state,this)):N?this._start():Ml(this)&&!y?this._pendingCalls.add(n):n(Ez($))}_focus(e){const t=this.animation;e!==t.to&&(e6(this)&&this._detach(),t.to=e,e6(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Wi(t)&&(jp(t,this),Q_(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Wi(e)&&vg(e,this)}_set(e,t=!0){const n=Lo(e);if(!Ye.und(n)){const r=Ha(this);if(!r||!Hs(n,r.getValue())){const o=q_(n);!r||r.constructor!=o?f5(this,o.create(n)):r.setValue(n),r&&Ht.batchedUpdates(()=>{this._onChange(n,t)})}}return Ha(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Uh(this,"onStart",xa(this,Vh(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Do(this.animation.onChange,e,this)),Do(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ha(this).reset(Lo(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ml(this)||(u6(this,!0),Wh(this)||this._resume())}_resume(){ia.skipAnimation?this.finish():Gx.start(this)}_stop(e,t){if(Ml(this)){u6(this,!1);const n=this.animation;Dt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gg(this,{type:"idle",parent:this});const r=t?Vf(this.get()):xa(this.get(),Vh(this,e??n.to));sm(this._pendingCalls,r),n.changed&&(n.changed=!1,Uh(this,"onRest",r,this))}}};function Vh(e,t){const n=xg(t),r=xg(e.get());return Hs(r,n)}function Oz(e,t=e.loop,n=e.to){const r=Do(t);if(r){const o=r!==!0&&p5(r),i=(o||e).reverse,a=!o||o.reset;return Cg({...e,loop:t,default:!1,pause:void 0,to:!i||K_(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Cg(e){const{to:t,from:n}=e=p5(e),r=new Set;return Ye.obj(t)&&d6(t,r),Ye.obj(n)&&d6(n,r),e.keys=r.size?Array.from(r):null,e}function Uxe(e){const t=Cg(e);return Ye.und(t.default)&&(t.default=Zx(t)),t}function d6(e,t){hs(e,(n,r)=>n!=null&&t.add(r))}var Gxe=["onStart","onRest","onChange","onPause","onResume"];function f6(e,t,n){e.animation[n]=t[n]!==kz(t,n)?_z(t[n],e.key):void 0}function Uh(e,t,...n){var r,o,i,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(a=(i=e.defaultProps)[t])==null||a.call(i,...n)}var qxe=["onStart","onChange","onRest"],Kxe=1,Az=class{constructor(e,t){this.id=Kxe++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ye.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Cg(e)),this}start(e){let{queue:t}=this;return e?t=So(e).map(Cg):this.queue=[],this._flush?this._flush(this,t):(Nz(this,t),ek(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Dt(So(t),r=>n[r].stop(!!e))}else wg(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ye.und(e))this.start({pause:!0});else{const t=this.springs;Dt(So(e),n=>t[n].pause())}return this}resume(e){if(Ye.und(e))this.start({pause:!1});else{const t=this.springs;Dt(So(e),n=>t[n].resume())}return this}each(e){hs(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Pm(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&Pm(t,([s,l])=>{l.value=a,s(l,this,this._item)}),i&&(this._started=!1,Pm(n,([s,l])=>{l.value=a,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Ht.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(n=>Fz(e,n))).then(n=>m5(e,n))}async function Fz(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,u=Ye.obj(t.default)&&t.default;a&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=Ye.arr(o)||Ye.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Dt(qxe,b=>{const C=t[b];if(Ye.fun(C)){const x=e._events[b];t[b]=({finished:w,cancelled:S})=>{const $=x.get(C);$?(w||($.finished=!1),S&&($.cancelled=!0)):x.set(C,{value:null,finished:w||!1,cancelled:S||!1})},u&&(u[b]=t[b])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,sm(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(b=>e.springs[b].start(t)),y=t.cancel===!0||kz(t,"cancel")===!0;(c||y&&f.asyncId)&&p.push(Tz(++e._lastAsyncId,{props:t,state:f,actions:{pause:V_,resume:V_,start(b,C){y?(wg(f,e._lastAsyncId),C(Vf(e))):(b.onRest=s,C(Iz(c,b,f,e)))}}})),f.paused&&await new Promise(b=>{f.resumeQueue.add(b)});const v=m5(e,await Promise.all(p));if(a&&v.finished&&!(n&&v.noop)){const b=Oz(t,a,o);if(b)return Nz(e,[b]),Fz(e,b,!0)}return l&&Ht.batchedUpdates(()=>l(v,e,e.item)),v}function tk(e,t){const n={...e.springs};return t&&Dt(So(t),r=>{Ye.und(r.keys)&&(r=Cg(r)),Ye.obj(r.to)||(r={...r,to:void 0}),jz(n,r,o=>Dz(o))}),Lz(e,n),n}function Lz(e,t){hs(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,jp(n,e))})}function Dz(e,t){const n=new Vxe;return n.key=e,t&&jp(n,t),n}function jz(e,t,n){t.keys&&Dt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Nz(e,t){Dt(t,n=>{jz(e.springs,n,r=>Dz(r,e))})}var p0=({children:e,...t})=>{const n=m.useContext(Ly),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=Pxe(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Ly;return m.createElement(i,{value:t},e)},Ly=Yxe(p0,{});p0.Provider=Ly.Provider;p0.Consumer=Ly.Consumer;function Yxe(e,t){return Object.assign(e,m.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var zz=()=>{const e=[],t=function(r){_xe();const o=[];return Dt(e,(i,a)=>{if(Ye.und(r))o.push(i.start());else{const s=n(r,i,a);s&&o.push(i.start(s))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Dt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Dt(e,r=>r.resume(...arguments)),this},t.set=function(r){Dt(e,(o,i)=>{const a=Ye.fun(r)?r(i,o):r;a&&o.set(a)})},t.start=function(r){const o=[];return Dt(e,(i,a)=>{if(Ye.und(r))o.push(i.start());else{const s=this._getProps(r,i,a);s&&o.push(i.start(s))}}),o},t.stop=function(){return Dt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Dt(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return Ye.fun(r)?r(i,o):r};return t._getProps=n,t};function Xxe(e,t,n){const r=Ye.fun(t)&&t;r&&!n&&(n=[]);const o=m.useMemo(()=>r||arguments.length==3?zz():void 0,[]),i=m.useRef(0),a=c5(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const S=tk(x,w);return i.current>0&&!s.queue.length&&!Object.keys(S).some(T=>!x.springs[T])?ek(x,w):new Promise(T=>{Lz(x,S),s.queue.push(()=>{T(ek(x,w))}),a()})}}),[]),l=m.useRef([...s.ctrls]),u=[],c=G_(e)||0;m.useMemo(()=>{Dt(l.current.slice(e,c),x=>{Y_(x,o),x.stop(!0)}),l.current.length=e,f(c,e)},[e]),m.useMemo(()=>{f(0,Math.min(c,e))},n);function f(x,w){for(let S=x;Stk(x,u[w])),y=m.useContext(p0),v=G_(y),b=y!==v&&Pz(y);Ul(()=>{i.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Dt(x,w=>w())),Dt(l.current,(w,S)=>{o==null||o.add(w),b&&w.start({default:y});const $=u[S];$&&(Mz(w,$.ref),w.ref?w.queue.push($):w.start($))})}),d5(()=>()=>{Dt(s.ctrls,x=>x.stop(!0))});const C=p.map(x=>({...x}));return o?[C,o]:C}function xs(e,t){const n=Ye.fun(e),[[r],o]=Xxe(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}function ld(e,t,n){const r=Ye.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,p=m.useMemo(()=>r||arguments.length==3?zz():void 0,[]),y=So(e),v=[],b=m.useRef(null),C=o?null:b.current;Ul(()=>{b.current=v}),d5(()=>(Dt(v,O=>{p==null||p.add(O.ctrl),O.ctrl.ref=p}),()=>{Dt(b.current,O=>{O.expired&&clearTimeout(O.expirationId),Y_(O.ctrl,p),O.ctrl.stop(!0)})}));const x=Zxe(y,r?r():t,C),w=o&&b.current||[];Ul(()=>Dt(w,({ctrl:O,item:D,key:H})=>{Y_(O,p),Do(u,D,H)}));const S=[];if(C&&Dt(C,(O,D)=>{O.expired?(clearTimeout(O.expirationId),w.push(O)):(D=S[D]=x.indexOf(O.key),~D&&(v[D]=O))}),Dt(y,(O,D)=>{v[D]||(v[D]={key:x[D],item:O,phase:"mount",ctrl:new Az},v[D].ctrl.item=O)}),S.length){let O=-1;const{leave:D}=r?r():t;Dt(S,(H,B)=>{const j=C[B];~H?(O=v.indexOf(j),v[O]={...j,item:y[H]}):D&&v.splice(++O,0,j)})}Ye.fun(i)&&v.sort((O,D)=>i(O.item,D.item));let $=-a;const T=c5(),k=Zx(t),M=new Map,I=m.useRef(new Map),N=m.useRef(!1);Dt(v,(O,D)=>{const H=O.key,B=O.phase,j=r?r():t;let W,U;const Z=Do(j.delay||0,H);if(B=="mount")W=j.enter,U="enter";else{const ne=x.indexOf(H)<0;if(B!="leave")if(ne)W=j.leave,U="leave";else if(W=j.update)U="update";else return;else if(!ne)W=j.enter,U="enter";else return}if(W=Do(W,O.item,D),W=Ye.obj(W)?p5(W):{to:W},!W.config){const ne=f||k.config;W.config=Do(ne,O.item,D,U)}$+=a;const Y={...k,delay:Z+$,ref:c,immediate:j.immediate,reset:!1,...W};if(U=="enter"&&Ye.und(Y.from)){const ne=r?r():t,re=Ye.und(ne.initial)||C?ne.from:ne.initial;Y.from=Do(re,O.item,D)}const{onResolve:se}=Y;Y.onResolve=ne=>{Do(se,ne);const re=b.current,ge=re.find(xe=>xe.key===H);if(ge&&!(ne.cancelled&&ge.phase!="update")&&ge.ctrl.idle){const xe=re.every(fe=>fe.ctrl.idle);if(ge.phase=="leave"){const fe=Do(s,ge.item);if(fe!==!1){const Se=fe===!0?0:fe;if(ge.expired=!0,!xe&&Se>0){Se<=2147483647&&(ge.expirationId=setTimeout(T,Se));return}}}xe&&re.some(fe=>fe.expired)&&(I.current.delete(ge),l&&(N.current=!0),T())}};const Q=tk(O.ctrl,Y);U==="leave"&&l?I.current.set(O,{phase:U,springs:Q,payload:Y}):M.set(O,{phase:U,springs:Q,payload:Y})});const E=m.useContext(p0),A=G_(E),z=E!==A&&Pz(E);Ul(()=>{z&&Dt(v,O=>{O.ctrl.start({default:E})})},[E]),Dt(M,(O,D)=>{if(I.current.size){const H=v.findIndex(B=>B.key===D.key);v.splice(H,1)}}),Ul(()=>{Dt(I.current.size?I.current:M,({phase:O,payload:D},H)=>{const{ctrl:B}=H;H.phase=O,p==null||p.add(B),z&&O=="enter"&&B.start({default:E}),D&&(Mz(B,D.ref),(B.ref||p)&&!N.current?B.update(D):(B.start(D),N.current&&(N.current=!1)))})},o?void 0:n);const L=O=>m.createElement(m.Fragment,null,v.map((D,H)=>{const{springs:B}=M.get(D)||D.ctrl,j=O({...B},D.item,D,H);return j&&j.type?m.createElement(j.type,{...j.props,key:Ye.str(D.key)||Ye.num(D.key)?D.key:D.ctrl.id,ref:j.ref}):j}));return p?[L,p]:L}var Qxe=1;function Zxe(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const a=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!o.has(s));return a?(o.add(a),a.key):Qxe++})}return Ye.und(n)?e:Ye.fun(n)?e.map(n):So(n)}var Bz=class extends g5{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=hg(...t);const n=this._get(),r=q_(n);f5(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Hs(t,n)||(Ha(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&p6(this._active)&&OS(this)}_get(){const e=Ye.arr(this.source)?this.source.map(Lo):So(Lo(this.source));return this.calc(...e)}_start(){this.idle&&!p6(this._active)&&(this.idle=!1,Dt(Xx(this),e=>{e.done=!1}),ia.skipAnimation?(Ht.batchedUpdates(()=>this.advance()),OS(this)):Gx.start(this))}_attach(){let e=1;Dt(So(this.source),t=>{Wi(t)&&jp(t,this),Q_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Dt(So(this.source),e=>{Wi(e)&&vg(e,this)}),this._active.clear(),OS(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=So(this.source).reduce((t,n)=>Math.max(t,(Q_(n)?n.priority:0)+1),0))}};function Jxe(e){return e.idle!==!1}function p6(e){return!e.size||Array.from(e).every(Jxe)}function OS(e){e.idle||(e.idle=!0,Dt(Xx(e),t=>{t.done=!0}),gg(e,{type:"idle",parent:e}))}var du=(e,...t)=>new Bz(e,t);ia.assign({createStringInterpolator:wz,to:(e,t)=>new Bz(e,t)});var Hz=/^--/;function ewe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Hz.test(e)&&!(Em.hasOwnProperty(e)&&Em[e])?t+"px":(""+t).trim()}var h6={};function twe(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:h6[f]||(h6[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in r)if(r.hasOwnProperty(f)){const p=ewe(f,r[f]);Hz.test(f)?e.style.setProperty(f,p):e.style[f]=p}c.forEach((f,p)=>{e.setAttribute(f,u[p])}),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),s!==void 0&&e.setAttribute("viewBox",s)}var Em={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nwe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rwe=["Webkit","Ms","Moz","O"];Em=Object.keys(Em).reduce((e,t)=>(rwe.forEach(n=>e[nwe(n,t)]=e[t]),e),Em);var owe=/^(matrix|translate|scale|rotate|skew)/,iwe=/^(translate)/,awe=/^(rotate|skew)/,AS=(e,t)=>Ye.num(e)&&e!==0?e+t:e,R1=(e,t)=>Ye.arr(e)?e.every(n=>R1(n,t)):Ye.num(e)?e===t:parseFloat(e)===t,swe=class extends Qx{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(a=>[`translate3d(${a.map(s=>AS(s,"px")).join(",")})`,R1(a,0)])),hs(r,(a,s)=>{if(s==="transform")o.push([a||""]),i.push(l=>[l,l===""]);else if(owe.test(s)){if(delete r[s],Ye.und(a))return;const l=iwe.test(s)?"px":awe.test(s)?"deg":"";o.push(So(a)),i.push(s==="rotate3d"?([u,c,f,p])=>[`rotate3d(${u},${c},${f},${AS(p,l)})`,R1(p,0)]:u=>[`${s}(${u.map(c=>AS(c,l)).join(",")})`,R1(u,s.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new lwe(o,i)),super(r)}},lwe=class extends yz{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Dt(this.inputs,(n,r)=>{const o=Lo(n[0]),[i,a]=this.transforms[r](Ye.arr(o)?o:n.map(Lo));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Dt(this.inputs,t=>Dt(t,n=>Wi(n)&&jp(n,this)))}observerRemoved(e){e==0&&Dt(this.inputs,t=>Dt(t,n=>Wi(n)&&vg(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),gg(this,e)}},uwe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];ia.assign({batchedUpdates:bu.unstable_batchedUpdates,createStringInterpolator:wz,colors:nxe});var cwe=Fxe(uwe,{applyAnimatedValues:twe,createAnimatedStyle:e=>new swe(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),In=cwe.animated;function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&f.height>0,C=Math.round(n[0]),x=Math.round(n[1]);b&&(r==="top"?(C-=f.width/2,x-=f.height+14):r==="right"?(C+=14,x-=f.height/2):r==="bottom"?(C-=f.width/2,x+=14):r==="left"?(C-=f.width+14,x-=f.height/2):r==="center"&&(C-=f.width/2,x-=f.height/2),y={transform:m6(C,x)},p.current||(v=!0),p.current=[C,x]);var w=xs({to:y,config:l,immediate:!s||v}),S=Vc({},dwe,i.tooltip,{transform:(t=w.transform)!=null?t:m6(C,x)});return g.jsx(In.div,{ref:c,style:S,children:o})});Wz.displayName="TooltipWrapper";var Vz=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,o=e.style;return g.jsx("span",{style:Vc({display:"block",width:n,height:n,background:r},o===void 0?{}:o)})}),v5=m.memo(function(e){var t,n=e.id,r=e.value,o=e.format,i=e.enableChip,a=i!==void 0&&i,s=e.color,l=e.renderContent,u=On(),c=Rg(o);if(typeof l=="function")t=l();else{var f=r;c!==void 0&&f!==void 0&&(f=c(f)),t=g.jsxs("div",{style:u.tooltip.basic,children:[a&&g.jsx(Vz,{color:s,style:u.tooltip.chip}),f!==void 0?g.jsxs("span",{children:[n,": ",g.jsx("strong",{children:""+f})]}):n]})}return g.jsx("div",{style:u.tooltip.container,children:t})}),fwe={width:"100%",borderCollapse:"collapse"},Uz=m.memo(function(e){var t,n=e.title,r=e.rows,o=r===void 0?[]:r,i=e.renderContent,a=On();return o.length?(t=typeof i=="function"?i():g.jsxs("div",{children:[n&&n,g.jsx("table",{style:Vc({},fwe,a.tooltip.table),children:g.jsx("tbody",{children:o.map(function(s,l){return g.jsx("tr",{children:s.map(function(u,c){return g.jsx("td",{style:a.tooltip.tableCell,children:u},c)})},l)})})})]}),g.jsx("div",{style:a.tooltip.container,children:t})):null});Uz.displayName="TableTooltip";var nk=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,o=e.y1,i=On(),a=To(),s=a.animate,l=a.config,u=m.useMemo(function(){return Vc({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),c=xs({x1:t,x2:n,y1:r,y2:o,config:l,immediate:!s});return g.jsx(In.line,Vc({},c,{fill:"none",style:u}))});nk.displayName="CrosshairLine";var rk=m.memo(function(e){var t,n,r=e.width,o=e.height,i=e.type,a=e.x,s=e.y;return i==="cross"?(t={x0:a,x1:a,y0:0,y1:o},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):i==="top"?t={x0:a,x1:a,y0:0,y1:s}:i==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):i==="right"?n={x0:a,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:a,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:a,x1:a,y0:s,y1:o}:i==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:0,x1:a,y0:s,y1:s}):i==="left"?n={x0:0,x1:a,y0:s,y1:s}:i==="x"?t={x0:a,x1:a,y0:0,y1:o}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),g.jsxs(g.Fragment,{children:[t&&g.jsx(nk,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&g.jsx(nk,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});rk.displayName="Crosshair";var Gz=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),ok={isVisible:!1,position:[null,null],content:null,anchor:null},qz=m.createContext(ok),pwe=function(e){var t=m.useState(ok),n=t[0],r=t[1],o=m.useCallback(function(s,l,u){var c=l[0],f=l[1];u===void 0&&(u="top"),r({isVisible:!0,position:[c,f],anchor:u,content:s})},[r]),i=m.useCallback(function(s,l,u){u===void 0&&(u="top");var c=e.current.getBoundingClientRect(),f=e.current.offsetWidth,p=f===c.width?1:f/c.width,y=(l.clientX-c.left)*p,v=(l.clientY-c.top)*p;u!=="left"&&u!=="right"||(u=y-1}var Owe=Rwe,Awe=Jx;function Fwe(e,t){var n=this.__data__,r=Awe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Lwe=Fwe,Dwe=bwe,jwe=Pwe,Nwe=Ewe,zwe=Owe,Bwe=Lwe;function zp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=KSe}var $5=YSe,XSe=tw,QSe=$5;function ZSe(e){return e!=null&&QSe(e.length)&&!XSe(e)}var Up=ZSe,JSe=Up,e$e=Ss;function t$e(e){return e$e(e)&&JSe(e)}var sB=t$e,Ny={exports:{}};function n$e(){return!1}var r$e=n$e;Ny.exports;(function(e,t){var n=ws,r=r$e,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(Ny,Ny.exports);var aw=Ny.exports,o$e=ud,i$e=C5,a$e=Ss,s$e="[object Object]",l$e=Function.prototype,u$e=Object.prototype,lB=l$e.toString,c$e=u$e.hasOwnProperty,d$e=lB.call(Object);function f$e(e){if(!a$e(e)||o$e(e)!=s$e)return!1;var t=i$e(e);if(t===null)return!0;var n=c$e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&lB.call(n)==d$e}var _5=f$e;const p$e=Or(_5);var h$e=ud,m$e=$5,g$e=Ss,v$e="[object Arguments]",y$e="[object Array]",b$e="[object Boolean]",x$e="[object Date]",w$e="[object Error]",C$e="[object Function]",S$e="[object Map]",$$e="[object Number]",_$e="[object Object]",k$e="[object RegExp]",P$e="[object Set]",M$e="[object String]",T$e="[object WeakMap]",E$e="[object ArrayBuffer]",I$e="[object DataView]",R$e="[object Float32Array]",O$e="[object Float64Array]",A$e="[object Int8Array]",F$e="[object Int16Array]",L$e="[object Int32Array]",D$e="[object Uint8Array]",j$e="[object Uint8ClampedArray]",N$e="[object Uint16Array]",z$e="[object Uint32Array]",Xn={};Xn[R$e]=Xn[O$e]=Xn[A$e]=Xn[F$e]=Xn[L$e]=Xn[D$e]=Xn[j$e]=Xn[N$e]=Xn[z$e]=!0;Xn[v$e]=Xn[y$e]=Xn[E$e]=Xn[b$e]=Xn[I$e]=Xn[x$e]=Xn[w$e]=Xn[C$e]=Xn[S$e]=Xn[$$e]=Xn[_$e]=Xn[k$e]=Xn[P$e]=Xn[M$e]=Xn[T$e]=!1;function B$e(e){return g$e(e)&&m$e(e.length)&&!!Xn[h$e(e)]}var H$e=B$e;function W$e(e){return function(t){return e(t)}}var Gp=W$e,zy={exports:{}};zy.exports;(function(e,t){var n=Kz,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(zy,zy.exports);var sw=zy.exports,V$e=H$e,U$e=Gp,k6=sw,P6=k6&&k6.isTypedArray,G$e=P6?U$e(P6):V$e,k5=G$e;function q$e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var uB=q$e,K$e=x5,Y$e=h0,X$e=Object.prototype,Q$e=X$e.hasOwnProperty;function Z$e(e,t,n){var r=e[t];(!(Q$e.call(e,t)&&Y$e(r,n))||n===void 0&&!(t in e))&&K$e(e,t,n)}var P5=Z$e,J$e=P5,e_e=x5;function t_e(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=dke)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mke=hke,gke=cke,vke=mke,yke=vke(gke),pB=yke,bke=uw,xke=fB,wke=pB;function Cke(e,t){return wke(xke(e,t,bke),e+"")}var M5=Cke,Ske=h0,$ke=Up,_ke=lw,kke=Cs;function Pke(e,t,n){if(!kke(n))return!1;var r=typeof t;return(r=="number"?$ke(n)&&_ke(t,n.length):r=="string"&&t in n)?Ske(n[t],e):!1}var hB=Pke,Mke=M5,Tke=hB;function Eke(e){return Mke(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Tke(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=APe.exec(e))?new $o(t[1],t[2],t[3],1):(t=FPe.exec(e))?new $o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LPe.exec(e))?Gv(t[1],t[2],t[3],t[4]):(t=DPe.exec(e))?Gv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jPe.exec(e))?V6(t[1],t[2]/100,t[3]/100,1):(t=NPe.exec(e))?V6(t[1],t[2]/100,t[3]/100,t[4]):j6.hasOwnProperty(e)?B6(j6[e]):e==="transparent"?new $o(NaN,NaN,NaN,0):null}function B6(e){return new $o(e>>16&255,e>>8&255,e&255,1)}function Gv(e,t,n,r){return r<=0&&(e=t=n=NaN),new $o(e,t,n,r)}function bB(e){return e instanceof Xp||(e=$g(e)),e?(e=e.rgb(),new $o(e.r,e.g,e.b,e.opacity)):new $o}function By(e,t,n,r){return arguments.length===1?bB(e):new $o(e,t,n,r??1)}function $o(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}fw($o,By,I5(Xp,{brighter:function(e){return e=e==null?vp:Math.pow(vp,e),new $o(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Uc:Math.pow(Uc,e),new $o(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H6,formatHex:H6,formatRgb:W6,toString:W6}));function H6(){return"#"+LS(this.r)+LS(this.g)+LS(this.b)}function W6(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function LS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function V6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qa(e,t,n,r)}function xB(e){if(e instanceof Qa)return new Qa(e.h,e.s,e.l,e.opacity);if(e instanceof Xp||(e=$g(e)),!e)return new Qa;if(e instanceof Qa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Qa(a,s,l,e.opacity)}function BPe(e,t,n,r){return arguments.length===1?xB(e):new Qa(e,t,n,r??1)}function Qa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}fw(Qa,BPe,I5(Xp,{brighter:function(e){return e=e==null?vp:Math.pow(vp,e),new Qa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uc:Math.pow(Uc,e),new Qa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new $o(DS(e>=240?e-240:e+120,o,r),DS(e,o,r),DS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function DS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const HPe=Math.PI/180,WPe=180/Math.PI;var wB=-.14861,R5=1.78277,O5=-.29227,pw=-.90649,_g=1.97294,U6=_g*pw,G6=_g*R5,q6=R5*O5-pw*wB;function VPe(e){if(e instanceof wc)return new wc(e.h,e.s,e.l,e.opacity);e instanceof $o||(e=bB(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(q6*r+U6*t-G6*n)/(q6+U6-G6),i=r-o,a=(_g*(n-o)-O5*i)/pw,s=Math.sqrt(a*a+i*i)/(_g*o*(1-o)),l=s?Math.atan2(a,i)*WPe-120:NaN;return new wc(l<0?l+360:l,s,o,e.opacity)}function ik(e,t,n,r){return arguments.length===1?VPe(e):new wc(e,t,n,r??1)}function wc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}fw(wc,ik,I5(Xp,{brighter:function(e){return e=e==null?vp:Math.pow(vp,e),new wc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uc:Math.pow(Uc,e),new wc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*HPe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new $o(255*(t+n*(wB*r+R5*o)),255*(t+n*(O5*r+pw*o)),255*(t+n*(_g*r)),this.opacity)}}));function UPe(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function GPe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r()=>e;function CB(e,t){return function(n){return e+n*t}}function qPe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function KPe(e,t){var n=t-e;return n?CB(e,n>180||n<-180?n-360*Math.round(n/360):n):hw(isNaN(e)?t:e)}function YPe(e){return(e=+e)==1?Gf:function(t,n){return n-t?qPe(t,n,e):hw(isNaN(t)?n:t)}}function Gf(e,t){var n=t-e;return n?CB(e,n):hw(isNaN(e)?t:e)}const K6=function e(t){var n=YPe(t);function r(o,i){var a=n((o=By(o)).r,(i=By(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=Gf(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function XPe(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),a,s;for(a=0;an&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:kg(r,o)})),n=jS.lastIndex;return n * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Wy.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,y=4,v=1,b=2,C=1,x=2,w=4,S=8,$=16,T=32,k=64,M=128,I=256,N=512,E=30,A="...",z=800,L=16,O=1,D=2,H=3,B=1/0,j=9007199254740991,W=17976931348623157e292,U=0/0,Z=4294967295,Y=Z-1,se=Z>>>1,Q=[["ary",M],["bind",C],["bindKey",x],["curry",S],["curryRight",$],["flip",N],["partial",T],["partialRight",k],["rearg",I]],ne="[object Arguments]",re="[object Array]",ge="[object AsyncFunction]",xe="[object Boolean]",fe="[object Date]",Se="[object DOMException]",de="[object Error]",ie="[object Function]",Pe="[object GeneratorFunction]",$e="[object Map]",me="[object Number]",ue="[object Null]",ce="[object Object]",Te="[object Promise]",Le="[object Proxy]",Re="[object RegExp]",Oe="[object Set]",K="[object String]",ee="[object Symbol]",pe="[object Undefined]",ye="[object WeakMap]",De="[object WeakSet]",Ae="[object ArrayBuffer]",Ee="[object DataView]",Ce="[object Float32Array]",Qe="[object Float64Array]",Ct="[object Int8Array]",et="[object Int16Array]",Be="[object Int32Array]",te="[object Uint8Array]",X="[object Uint8ClampedArray]",oe="[object Uint16Array]",Ie="[object Uint32Array]",Ve=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,nt=/[&<>"']/g,_t=RegExp(Je.source),ht=RegExp(nt.source),lt=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,jt=/<%=([\s\S]+?)%>/g,dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hn=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/[\\^$.*+?()[\]{}|]/g,un=RegExp(zt.source),cn=/^\s+/,ut=/\s/,mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ot=/\{\n\/\* \[wrapped with (.+)\] \*/,At=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/[()=,{}\[\]\/\s]/,_e=/\\(\\)?/g,we=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,_n=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,Td=/['\n\r\u2028\u2029\\]/g,Ed="\\ud800-\\udfff",$q="\\u0300-\\u036f",_q="\\ufe20-\\ufe2f",kq="\\u20d0-\\u20ff",E3=$q+_q+kq,I3="\\u2700-\\u27bf",R3="a-z\\xdf-\\xf6\\xf8-\\xff",Pq="\\xac\\xb1\\xd7\\xf7",Mq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tq="\\u2000-\\u206f",Eq=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",O3="A-Z\\xc0-\\xd6\\xd8-\\xde",A3="\\ufe0e\\ufe0f",F3=Pq+Mq+Tq+Eq,E2="['’]",Iq="["+Ed+"]",L3="["+F3+"]",E0="["+E3+"]",D3="\\d+",Rq="["+I3+"]",j3="["+R3+"]",N3="[^"+Ed+F3+D3+I3+R3+O3+"]",I2="\\ud83c[\\udffb-\\udfff]",Oq="(?:"+E0+"|"+I2+")",z3="[^"+Ed+"]",R2="(?:\\ud83c[\\udde6-\\uddff]){2}",O2="[\\ud800-\\udbff][\\udc00-\\udfff]",Id="["+O3+"]",B3="\\u200d",H3="(?:"+j3+"|"+N3+")",Aq="(?:"+Id+"|"+N3+")",W3="(?:"+E2+"(?:d|ll|m|re|s|t|ve))?",V3="(?:"+E2+"(?:D|LL|M|RE|S|T|VE))?",U3=Oq+"?",G3="["+A3+"]?",Fq="(?:"+B3+"(?:"+[z3,R2,O2].join("|")+")"+G3+U3+")*",Lq="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dq="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q3=G3+U3+Fq,jq="(?:"+[Rq,R2,O2].join("|")+")"+q3,Nq="(?:"+[z3+E0+"?",E0,R2,O2,Iq].join("|")+")",zq=RegExp(E2,"g"),Bq=RegExp(E0,"g"),A2=RegExp(I2+"(?="+I2+")|"+Nq+q3,"g"),Hq=RegExp([Id+"?"+j3+"+"+W3+"(?="+[L3,Id,"$"].join("|")+")",Aq+"+"+V3+"(?="+[L3,Id+H3,"$"].join("|")+")",Id+"?"+H3+"+"+W3,Id+"+"+V3,Dq,Lq,D3,jq].join("|"),"g"),Wq=RegExp("["+B3+Ed+E3+A3+"]"),Vq=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uq=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gq=-1,qn={};qn[Ce]=qn[Qe]=qn[Ct]=qn[et]=qn[Be]=qn[te]=qn[X]=qn[oe]=qn[Ie]=!0,qn[ne]=qn[re]=qn[Ae]=qn[xe]=qn[Ee]=qn[fe]=qn[de]=qn[ie]=qn[$e]=qn[me]=qn[ce]=qn[Re]=qn[Oe]=qn[K]=qn[ye]=!1;var zn={};zn[ne]=zn[re]=zn[Ae]=zn[Ee]=zn[xe]=zn[fe]=zn[Ce]=zn[Qe]=zn[Ct]=zn[et]=zn[Be]=zn[$e]=zn[me]=zn[ce]=zn[Re]=zn[Oe]=zn[K]=zn[ee]=zn[te]=zn[X]=zn[oe]=zn[Ie]=!0,zn[de]=zn[ie]=zn[ye]=!1;var qq={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Kq={"&":"&","<":"<",">":">",'"':""","'":"'"},Yq={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xq={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qq=parseFloat,Zq=parseInt,K3=typeof Us=="object"&&Us&&Us.Object===Object&&Us,Jq=typeof self=="object"&&self&&self.Object===Object&&self,Vr=K3||Jq||Function("return this")(),F2=t&&!t.nodeType&&t,Au=F2&&!0&&e&&!e.nodeType&&e,Y3=Au&&Au.exports===F2,L2=Y3&&K3.process,ki=function(){try{var he=Au&&Au.require&&Au.require("util").types;return he||L2&&L2.binding&&L2.binding("util")}catch{}}(),X3=ki&&ki.isArrayBuffer,Q3=ki&&ki.isDate,Z3=ki&&ki.isMap,J3=ki&&ki.isRegExp,eE=ki&&ki.isSet,tE=ki&&ki.isTypedArray;function Jo(he,Ne,Me){switch(Me.length){case 0:return he.call(Ne);case 1:return he.call(Ne,Me[0]);case 2:return he.call(Ne,Me[0],Me[1]);case 3:return he.call(Ne,Me[0],Me[1],Me[2])}return he.apply(Ne,Me)}function eK(he,Ne,Me,ft){for(var Nt=-1,yn=he==null?0:he.length;++Nt-1}function D2(he,Ne,Me){for(var ft=-1,Nt=he==null?0:he.length;++ft-1;);return Me}function uE(he,Ne){for(var Me=he.length;Me--&&Rd(Ne,he[Me],0)>-1;);return Me}function uK(he,Ne){for(var Me=he.length,ft=0;Me--;)he[Me]===Ne&&++ft;return ft}var cK=B2(qq),dK=B2(Kq);function fK(he){return"\\"+Xq[he]}function pK(he,Ne){return he==null?n:he[Ne]}function Od(he){return Wq.test(he)}function hK(he){return Vq.test(he)}function mK(he){for(var Ne,Me=[];!(Ne=he.next()).done;)Me.push(Ne.value);return Me}function U2(he){var Ne=-1,Me=Array(he.size);return he.forEach(function(ft,Nt){Me[++Ne]=[Nt,ft]}),Me}function cE(he,Ne){return function(Me){return he(Ne(Me))}}function yl(he,Ne){for(var Me=-1,ft=he.length,Nt=0,yn=[];++Me-1}function nY(d,h){var _=this.__data__,F=K0(_,d);return F<0?(++this.size,_.push([d,h])):_[F][1]=h,this}Ts.prototype.clear=ZK,Ts.prototype.delete=JK,Ts.prototype.get=eY,Ts.prototype.has=tY,Ts.prototype.set=nY;function Es(d){var h=-1,_=d==null?0:d.length;for(this.clear();++h<_;){var F=d[h];this.set(F[0],F[1])}}function rY(){this.size=0,this.__data__={hash:new Lu,map:new(uh||Ts),string:new Lu}}function oY(d){var h=av(this,d).delete(d);return this.size-=h?1:0,h}function iY(d){return av(this,d).get(d)}function aY(d){return av(this,d).has(d)}function sY(d,h){var _=av(this,d),F=_.size;return _.set(d,h),this.size+=_.size==F?0:1,this}Es.prototype.clear=rY,Es.prototype.delete=oY,Es.prototype.get=iY,Es.prototype.has=aY,Es.prototype.set=sY;function Du(d){var h=-1,_=d==null?0:d.length;for(this.__data__=new Es;++h<_;)this.add(d[h])}function lY(d){return this.__data__.set(d,l),this}function uY(d){return this.__data__.has(d)}Du.prototype.add=Du.prototype.push=lY,Du.prototype.has=uY;function ca(d){var h=this.__data__=new Ts(d);this.size=h.size}function cY(){this.__data__=new Ts,this.size=0}function dY(d){var h=this.__data__,_=h.delete(d);return this.size=h.size,_}function fY(d){return this.__data__.get(d)}function pY(d){return this.__data__.has(d)}function hY(d,h){var _=this.__data__;if(_ instanceof Ts){var F=_.__data__;if(!uh||F.length=h?d:h)),d}function Ei(d,h,_,F,V,q){var J,ae=h&f,ve=h&p,He=h&y;if(_&&(J=V?_(d,F,V,q):_(d)),J!==n)return J;if(!ir(d))return d;var We=Bt(d);if(We){if(J=aX(d),!ae)return Eo(d,J)}else{var Ue=to(d),st=Ue==ie||Ue==Pe;if($l(d))return GE(d,ae);if(Ue==ce||Ue==ne||st&&!V){if(J=ve||st?{}:dI(d),!ae)return ve?YY(d,yY(J,d)):KY(d,CE(J,d))}else{if(!zn[Ue])return V?d:{};J=sX(d,Ue,ae)}}q||(q=new ca);var wt=q.get(d);if(wt)return wt;q.set(d,J),zI(d)?d.forEach(function(It){J.add(Ei(It,h,_,It,d,q))}):jI(d)&&d.forEach(function(It,tn){J.set(tn,Ei(It,h,_,tn,d,q))});var Et=He?ve?vC:gC:ve?Ro:Lr,qt=We?n:Et(d);return Pi(qt||d,function(It,tn){qt&&(tn=It,It=d[tn]),ph(J,tn,Ei(It,h,_,tn,d,q))}),J}function bY(d){var h=Lr(d);return function(_){return SE(_,d,h)}}function SE(d,h,_){var F=_.length;if(d==null)return!F;for(d=Ln(d);F--;){var V=_[F],q=h[V],J=d[V];if(J===n&&!(V in d)||!q(J))return!1}return!0}function $E(d,h,_){if(typeof d!="function")throw new Mi(a);return xh(function(){d.apply(n,_)},h)}function hh(d,h,_,F){var V=-1,q=I0,J=!0,ae=d.length,ve=[],He=h.length;if(!ae)return ve;_&&(h=er(h,ei(_))),F?(q=D2,J=!1):h.length>=o&&(q=sh,J=!1,h=new Du(h));e:for(;++VV?0:V+_),F=F===n||F>V?V:Gt(F),F<0&&(F+=V),F=_>F?0:HI(F);_0&&_(ae)?h>1?Ur(ae,h-1,_,F,V):vl(V,ae):F||(V[V.length]=ae)}return V}var Z2=ZE(),PE=ZE(!0);function Fa(d,h){return d&&Z2(d,h,Lr)}function J2(d,h){return d&&PE(d,h,Lr)}function X0(d,h){return gl(h,function(_){return Fs(d[_])})}function Nu(d,h){h=Cl(h,d);for(var _=0,F=h.length;d!=null&&_h}function CY(d,h){return d!=null&&kn.call(d,h)}function SY(d,h){return d!=null&&h in Ln(d)}function $Y(d,h,_){return d>=eo(h,_)&&d=120&&We.length>=120)?new Du(J&&We):n}We=d[0];var Ue=-1,st=ae[0];e:for(;++Ue-1;)ae!==d&&B0.call(ae,ve,1),B0.call(d,ve,1);return d}function jE(d,h){for(var _=d?h.length:0,F=_-1;_--;){var V=h[_];if(_==F||V!==q){var q=V;As(V)?B0.call(d,V,1):uC(d,V)}}return d}function aC(d,h){return d+V0(yE()*(h-d+1))}function DY(d,h,_,F){for(var V=-1,q=Pr(W0((h-d)/(_||1)),0),J=Me(q);q--;)J[F?q:++V]=d,d+=_;return J}function sC(d,h){var _="";if(!d||h<1||h>j)return _;do h%2&&(_+=d),h=V0(h/2),h&&(d+=d);while(h);return _}function Zt(d,h){return $C(hI(d,h,Oo),d+"")}function jY(d){return wE(Vd(d))}function NY(d,h){var _=Vd(d);return sv(_,ju(h,0,_.length))}function vh(d,h,_,F){if(!ir(d))return d;h=Cl(h,d);for(var V=-1,q=h.length,J=q-1,ae=d;ae!=null&&++VV?0:V+h),_=_>V?V:_,_<0&&(_+=V),V=h>_?0:_-h>>>0,h>>>=0;for(var q=Me(V);++F>>1,J=d[q];J!==null&&!ni(J)&&(_?J<=h:J=o){var He=h?null:JY(d);if(He)return O0(He);J=!1,V=sh,ve=new Du}else ve=h?[]:ae;e:for(;++F=F?d:Ii(d,h,_)}var UE=EK||function(d){return Vr.clearTimeout(d)};function GE(d,h){if(h)return d.slice();var _=d.length,F=pE?pE(_):new d.constructor(_);return d.copy(F),F}function pC(d){var h=new d.constructor(d.byteLength);return new N0(h).set(new N0(d)),h}function VY(d,h){var _=h?pC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.byteLength)}function UY(d){var h=new d.constructor(d.source,Fe.exec(d));return h.lastIndex=d.lastIndex,h}function GY(d){return fh?Ln(fh.call(d)):{}}function qE(d,h){var _=h?pC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.length)}function KE(d,h){if(d!==h){var _=d!==n,F=d===null,V=d===d,q=ni(d),J=h!==n,ae=h===null,ve=h===h,He=ni(h);if(!ae&&!He&&!q&&d>h||q&&J&&ve&&!ae&&!He||F&&J&&ve||!_&&ve||!V)return 1;if(!F&&!q&&!He&&d=ae)return ve;var He=_[F];return ve*(He=="desc"?-1:1)}}return d.index-h.index}function YE(d,h,_,F){for(var V=-1,q=d.length,J=_.length,ae=-1,ve=h.length,He=Pr(q-J,0),We=Me(ve+He),Ue=!F;++ae1?_[V-1]:n,J=V>2?_[2]:n;for(q=d.length>3&&typeof q=="function"?(V--,q):n,J&&go(_[0],_[1],J)&&(q=V<3?n:q,V=1),h=Ln(h);++F-1?V[q?h[J]:J]:n}}function tI(d){return Os(function(h){var _=h.length,F=_,V=Ti.prototype.thru;for(d&&h.reverse();F--;){var q=h[F];if(typeof q!="function")throw new Mi(a);if(V&&!J&&iv(q)=="wrapper")var J=new Ti([],!0)}for(F=J?F:_;++F<_;){q=h[F];var ae=iv(q),ve=ae=="wrapper"?yC(q):n;ve&&CC(ve[0])&&ve[1]==(M|S|T|I)&&!ve[4].length&&ve[9]==1?J=J[iv(ve[0])].apply(J,ve[3]):J=q.length==1&&CC(q)?J[ae]():J.thru(q)}return function(){var He=arguments,We=He[0];if(J&&He.length==1&&Bt(We))return J.plant(We).value();for(var Ue=0,st=_?h[Ue].apply(this,He):We;++Ue<_;)st=h[Ue].call(this,st);return st}})}function tv(d,h,_,F,V,q,J,ae,ve,He){var We=h&M,Ue=h&C,st=h&x,wt=h&(S|$),Et=h&N,qt=st?n:yh(d);function It(){for(var tn=arguments.length,sn=Me(tn),ri=tn;ri--;)sn[ri]=arguments[ri];if(wt)var vo=Hd(It),oi=uK(sn,vo);if(F&&(sn=YE(sn,F,V,wt)),q&&(sn=XE(sn,q,J,wt)),tn-=oi,wt&&tn1&&sn.reverse(),We&&veae))return!1;var He=q.get(d),We=q.get(h);if(He&&We)return He==h&&We==d;var Ue=-1,st=!0,wt=_&b?new Du:n;for(q.set(d,h),q.set(h,d);++Ue1?"& ":"")+h[F],h=h.join(_>2?", ":" "),d.replace(mt,`{ + */Hy.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,y=4,v=1,b=2,C=1,x=2,w=4,S=8,$=16,T=32,k=64,M=128,I=256,N=512,E=30,A="...",z=800,L=16,O=1,D=2,H=3,B=1/0,j=9007199254740991,W=17976931348623157e292,U=0/0,Z=4294967295,Y=Z-1,se=Z>>>1,Q=[["ary",M],["bind",C],["bindKey",x],["curry",S],["curryRight",$],["flip",N],["partial",T],["partialRight",k],["rearg",I]],ne="[object Arguments]",re="[object Array]",ge="[object AsyncFunction]",xe="[object Boolean]",fe="[object Date]",Se="[object DOMException]",de="[object Error]",ie="[object Function]",Pe="[object GeneratorFunction]",$e="[object Map]",me="[object Number]",ue="[object Null]",ce="[object Object]",Te="[object Promise]",Le="[object Proxy]",Re="[object RegExp]",Oe="[object Set]",K="[object String]",ee="[object Symbol]",pe="[object Undefined]",ye="[object WeakMap]",De="[object WeakSet]",Ae="[object ArrayBuffer]",Ee="[object DataView]",Ce="[object Float32Array]",Qe="[object Float64Array]",Ct="[object Int8Array]",et="[object Int16Array]",Be="[object Int32Array]",te="[object Uint8Array]",X="[object Uint8ClampedArray]",oe="[object Uint16Array]",Ie="[object Uint32Array]",Ve=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,nt=/[&<>"']/g,_t=RegExp(Je.source),ht=RegExp(nt.source),lt=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,jt=/<%=([\s\S]+?)%>/g,dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hn=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/[\\^$.*+?()[\]{}|]/g,un=RegExp(zt.source),cn=/^\s+/,ut=/\s/,mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ot=/\{\n\/\* \[wrapped with (.+)\] \*/,At=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/[()=,{}\[\]\/\s]/,_e=/\\(\\)?/g,we=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,_n=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,Md=/['\n\r\u2028\u2029\\]/g,Td="\\ud800-\\udfff",Sq="\\u0300-\\u036f",$q="\\ufe20-\\ufe2f",_q="\\u20d0-\\u20ff",T3=Sq+$q+_q,E3="\\u2700-\\u27bf",I3="a-z\\xdf-\\xf6\\xf8-\\xff",kq="\\xac\\xb1\\xd7\\xf7",Pq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mq="\\u2000-\\u206f",Tq=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",R3="A-Z\\xc0-\\xd6\\xd8-\\xde",O3="\\ufe0e\\ufe0f",A3=kq+Pq+Mq+Tq,T2="['’]",Eq="["+Td+"]",F3="["+A3+"]",T0="["+T3+"]",L3="\\d+",Iq="["+E3+"]",D3="["+I3+"]",j3="[^"+Td+A3+L3+E3+I3+R3+"]",E2="\\ud83c[\\udffb-\\udfff]",Rq="(?:"+T0+"|"+E2+")",N3="[^"+Td+"]",I2="(?:\\ud83c[\\udde6-\\uddff]){2}",R2="[\\ud800-\\udbff][\\udc00-\\udfff]",Ed="["+R3+"]",z3="\\u200d",B3="(?:"+D3+"|"+j3+")",Oq="(?:"+Ed+"|"+j3+")",H3="(?:"+T2+"(?:d|ll|m|re|s|t|ve))?",W3="(?:"+T2+"(?:D|LL|M|RE|S|T|VE))?",V3=Rq+"?",U3="["+O3+"]?",Aq="(?:"+z3+"(?:"+[N3,I2,R2].join("|")+")"+U3+V3+")*",Fq="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lq="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",G3=U3+V3+Aq,Dq="(?:"+[Iq,I2,R2].join("|")+")"+G3,jq="(?:"+[N3+T0+"?",T0,I2,R2,Eq].join("|")+")",Nq=RegExp(T2,"g"),zq=RegExp(T0,"g"),O2=RegExp(E2+"(?="+E2+")|"+jq+G3,"g"),Bq=RegExp([Ed+"?"+D3+"+"+H3+"(?="+[F3,Ed,"$"].join("|")+")",Oq+"+"+W3+"(?="+[F3,Ed+B3,"$"].join("|")+")",Ed+"?"+B3+"+"+H3,Ed+"+"+W3,Lq,Fq,L3,Dq].join("|"),"g"),Hq=RegExp("["+z3+Td+T3+O3+"]"),Wq=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vq=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Uq=-1,qn={};qn[Ce]=qn[Qe]=qn[Ct]=qn[et]=qn[Be]=qn[te]=qn[X]=qn[oe]=qn[Ie]=!0,qn[ne]=qn[re]=qn[Ae]=qn[xe]=qn[Ee]=qn[fe]=qn[de]=qn[ie]=qn[$e]=qn[me]=qn[ce]=qn[Re]=qn[Oe]=qn[K]=qn[ye]=!1;var zn={};zn[ne]=zn[re]=zn[Ae]=zn[Ee]=zn[xe]=zn[fe]=zn[Ce]=zn[Qe]=zn[Ct]=zn[et]=zn[Be]=zn[$e]=zn[me]=zn[ce]=zn[Re]=zn[Oe]=zn[K]=zn[ee]=zn[te]=zn[X]=zn[oe]=zn[Ie]=!0,zn[de]=zn[ie]=zn[ye]=!1;var Gq={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},qq={"&":"&","<":"<",">":">",'"':""","'":"'"},Kq={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yq={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xq=parseFloat,Qq=parseInt,q3=typeof Vs=="object"&&Vs&&Vs.Object===Object&&Vs,Zq=typeof self=="object"&&self&&self.Object===Object&&self,Vr=q3||Zq||Function("return this")(),A2=t&&!t.nodeType&&t,Ou=A2&&!0&&e&&!e.nodeType&&e,K3=Ou&&Ou.exports===A2,F2=K3&&q3.process,ki=function(){try{var he=Ou&&Ou.require&&Ou.require("util").types;return he||F2&&F2.binding&&F2.binding("util")}catch{}}(),Y3=ki&&ki.isArrayBuffer,X3=ki&&ki.isDate,Q3=ki&&ki.isMap,Z3=ki&&ki.isRegExp,J3=ki&&ki.isSet,eE=ki&&ki.isTypedArray;function Jo(he,Ne,Me){switch(Me.length){case 0:return he.call(Ne);case 1:return he.call(Ne,Me[0]);case 2:return he.call(Ne,Me[0],Me[1]);case 3:return he.call(Ne,Me[0],Me[1],Me[2])}return he.apply(Ne,Me)}function Jq(he,Ne,Me,ft){for(var Nt=-1,yn=he==null?0:he.length;++Nt-1}function L2(he,Ne,Me){for(var ft=-1,Nt=he==null?0:he.length;++ft-1;);return Me}function lE(he,Ne){for(var Me=he.length;Me--&&Id(Ne,he[Me],0)>-1;);return Me}function lK(he,Ne){for(var Me=he.length,ft=0;Me--;)he[Me]===Ne&&++ft;return ft}var uK=z2(Gq),cK=z2(qq);function dK(he){return"\\"+Yq[he]}function fK(he,Ne){return he==null?n:he[Ne]}function Rd(he){return Hq.test(he)}function pK(he){return Wq.test(he)}function hK(he){for(var Ne,Me=[];!(Ne=he.next()).done;)Me.push(Ne.value);return Me}function V2(he){var Ne=-1,Me=Array(he.size);return he.forEach(function(ft,Nt){Me[++Ne]=[Nt,ft]}),Me}function uE(he,Ne){return function(Me){return he(Ne(Me))}}function vl(he,Ne){for(var Me=-1,ft=he.length,Nt=0,yn=[];++Me-1}function tY(d,h){var _=this.__data__,F=q0(_,d);return F<0?(++this.size,_.push([d,h])):_[F][1]=h,this}Ts.prototype.clear=QK,Ts.prototype.delete=ZK,Ts.prototype.get=JK,Ts.prototype.has=eY,Ts.prototype.set=tY;function Es(d){var h=-1,_=d==null?0:d.length;for(this.clear();++h<_;){var F=d[h];this.set(F[0],F[1])}}function nY(){this.size=0,this.__data__={hash:new Fu,map:new(lh||Ts),string:new Fu}}function rY(d){var h=iv(this,d).delete(d);return this.size-=h?1:0,h}function oY(d){return iv(this,d).get(d)}function iY(d){return iv(this,d).has(d)}function aY(d,h){var _=iv(this,d),F=_.size;return _.set(d,h),this.size+=_.size==F?0:1,this}Es.prototype.clear=nY,Es.prototype.delete=rY,Es.prototype.get=oY,Es.prototype.has=iY,Es.prototype.set=aY;function Lu(d){var h=-1,_=d==null?0:d.length;for(this.__data__=new Es;++h<_;)this.add(d[h])}function sY(d){return this.__data__.set(d,l),this}function lY(d){return this.__data__.has(d)}Lu.prototype.add=Lu.prototype.push=sY,Lu.prototype.has=lY;function ca(d){var h=this.__data__=new Ts(d);this.size=h.size}function uY(){this.__data__=new Ts,this.size=0}function cY(d){var h=this.__data__,_=h.delete(d);return this.size=h.size,_}function dY(d){return this.__data__.get(d)}function fY(d){return this.__data__.has(d)}function pY(d,h){var _=this.__data__;if(_ instanceof Ts){var F=_.__data__;if(!lh||F.length=h?d:h)),d}function Ei(d,h,_,F,V,q){var J,ae=h&f,ve=h&p,He=h&y;if(_&&(J=V?_(d,F,V,q):_(d)),J!==n)return J;if(!ir(d))return d;var We=Bt(d);if(We){if(J=iX(d),!ae)return Eo(d,J)}else{var Ge=to(d),st=Ge==ie||Ge==Pe;if(Sl(d))return UE(d,ae);if(Ge==ce||Ge==ne||st&&!V){if(J=ve||st?{}:cI(d),!ae)return ve?KY(d,vY(J,d)):qY(d,wE(J,d))}else{if(!zn[Ge])return V?d:{};J=aX(d,Ge,ae)}}q||(q=new ca);var wt=q.get(d);if(wt)return wt;q.set(d,J),NI(d)?d.forEach(function(It){J.add(Ei(It,h,_,It,d,q))}):DI(d)&&d.forEach(function(It,tn){J.set(tn,Ei(It,h,_,tn,d,q))});var Et=He?ve?gC:mC:ve?Ro:Lr,qt=We?n:Et(d);return Pi(qt||d,function(It,tn){qt&&(tn=It,It=d[tn]),fh(J,tn,Ei(It,h,_,tn,d,q))}),J}function yY(d){var h=Lr(d);return function(_){return CE(_,d,h)}}function CE(d,h,_){var F=_.length;if(d==null)return!F;for(d=Ln(d);F--;){var V=_[F],q=h[V],J=d[V];if(J===n&&!(V in d)||!q(J))return!1}return!0}function SE(d,h,_){if(typeof d!="function")throw new Mi(a);return bh(function(){d.apply(n,_)},h)}function ph(d,h,_,F){var V=-1,q=E0,J=!0,ae=d.length,ve=[],He=h.length;if(!ae)return ve;_&&(h=er(h,ei(_))),F?(q=L2,J=!1):h.length>=o&&(q=ah,J=!1,h=new Lu(h));e:for(;++VV?0:V+_),F=F===n||F>V?V:Gt(F),F<0&&(F+=V),F=_>F?0:BI(F);_0&&_(ae)?h>1?Ur(ae,h-1,_,F,V):gl(V,ae):F||(V[V.length]=ae)}return V}var Q2=QE(),kE=QE(!0);function Aa(d,h){return d&&Q2(d,h,Lr)}function Z2(d,h){return d&&kE(d,h,Lr)}function Y0(d,h){return ml(h,function(_){return Fs(d[_])})}function ju(d,h){h=wl(h,d);for(var _=0,F=h.length;d!=null&&_h}function wY(d,h){return d!=null&&kn.call(d,h)}function CY(d,h){return d!=null&&h in Ln(d)}function SY(d,h,_){return d>=eo(h,_)&&d=120&&We.length>=120)?new Lu(J&&We):n}We=d[0];var Ge=-1,st=ae[0];e:for(;++Ge-1;)ae!==d&&z0.call(ae,ve,1),z0.call(d,ve,1);return d}function DE(d,h){for(var _=d?h.length:0,F=_-1;_--;){var V=h[_];if(_==F||V!==q){var q=V;As(V)?z0.call(d,V,1):lC(d,V)}}return d}function iC(d,h){return d+W0(vE()*(h-d+1))}function LY(d,h,_,F){for(var V=-1,q=Pr(H0((h-d)/(_||1)),0),J=Me(q);q--;)J[F?q:++V]=d,d+=_;return J}function aC(d,h){var _="";if(!d||h<1||h>j)return _;do h%2&&(_+=d),h=W0(h/2),h&&(d+=d);while(h);return _}function Zt(d,h){return SC(pI(d,h,Oo),d+"")}function DY(d){return xE(Wd(d))}function jY(d,h){var _=Wd(d);return av(_,Du(h,0,_.length))}function gh(d,h,_,F){if(!ir(d))return d;h=wl(h,d);for(var V=-1,q=h.length,J=q-1,ae=d;ae!=null&&++VV?0:V+h),_=_>V?V:_,_<0&&(_+=V),V=h>_?0:_-h>>>0,h>>>=0;for(var q=Me(V);++F>>1,J=d[q];J!==null&&!ni(J)&&(_?J<=h:J=o){var He=h?null:ZY(d);if(He)return R0(He);J=!1,V=ah,ve=new Lu}else ve=h?[]:ae;e:for(;++F=F?d:Ii(d,h,_)}var VE=TK||function(d){return Vr.clearTimeout(d)};function UE(d,h){if(h)return d.slice();var _=d.length,F=fE?fE(_):new d.constructor(_);return d.copy(F),F}function fC(d){var h=new d.constructor(d.byteLength);return new j0(h).set(new j0(d)),h}function WY(d,h){var _=h?fC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.byteLength)}function VY(d){var h=new d.constructor(d.source,Fe.exec(d));return h.lastIndex=d.lastIndex,h}function UY(d){return dh?Ln(dh.call(d)):{}}function GE(d,h){var _=h?fC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.length)}function qE(d,h){if(d!==h){var _=d!==n,F=d===null,V=d===d,q=ni(d),J=h!==n,ae=h===null,ve=h===h,He=ni(h);if(!ae&&!He&&!q&&d>h||q&&J&&ve&&!ae&&!He||F&&J&&ve||!_&&ve||!V)return 1;if(!F&&!q&&!He&&d=ae)return ve;var He=_[F];return ve*(He=="desc"?-1:1)}}return d.index-h.index}function KE(d,h,_,F){for(var V=-1,q=d.length,J=_.length,ae=-1,ve=h.length,He=Pr(q-J,0),We=Me(ve+He),Ge=!F;++ae1?_[V-1]:n,J=V>2?_[2]:n;for(q=d.length>3&&typeof q=="function"?(V--,q):n,J&&go(_[0],_[1],J)&&(q=V<3?n:q,V=1),h=Ln(h);++F-1?V[q?h[J]:J]:n}}function eI(d){return Os(function(h){var _=h.length,F=_,V=Ti.prototype.thru;for(d&&h.reverse();F--;){var q=h[F];if(typeof q!="function")throw new Mi(a);if(V&&!J&&ov(q)=="wrapper")var J=new Ti([],!0)}for(F=J?F:_;++F<_;){q=h[F];var ae=ov(q),ve=ae=="wrapper"?vC(q):n;ve&&wC(ve[0])&&ve[1]==(M|S|T|I)&&!ve[4].length&&ve[9]==1?J=J[ov(ve[0])].apply(J,ve[3]):J=q.length==1&&wC(q)?J[ae]():J.thru(q)}return function(){var He=arguments,We=He[0];if(J&&He.length==1&&Bt(We))return J.plant(We).value();for(var Ge=0,st=_?h[Ge].apply(this,He):We;++Ge<_;)st=h[Ge].call(this,st);return st}})}function ev(d,h,_,F,V,q,J,ae,ve,He){var We=h&M,Ge=h&C,st=h&x,wt=h&(S|$),Et=h&N,qt=st?n:vh(d);function It(){for(var tn=arguments.length,sn=Me(tn),ri=tn;ri--;)sn[ri]=arguments[ri];if(wt)var vo=Bd(It),oi=lK(sn,vo);if(F&&(sn=KE(sn,F,V,wt)),q&&(sn=YE(sn,q,J,wt)),tn-=oi,wt&&tn1&&sn.reverse(),We&&veae))return!1;var He=q.get(d),We=q.get(h);if(He&&We)return He==h&&We==d;var Ge=-1,st=!0,wt=_&b?new Lu:n;for(q.set(d,h),q.set(h,d);++Ge1?"& ":"")+h[F],h=h.join(_>2?", ":" "),d.replace(mt,`{ /* [wrapped with `+h+`] */ -`)}function uX(d){return Bt(d)||Hu(d)||!!(gE&&d&&d[gE])}function As(d,h){var _=typeof d;return h=h??j,!!h&&(_=="number"||_!="symbol"&&ct.test(d))&&d>-1&&d%1==0&&d0){if(++h>=z)return arguments[0]}else h=0;return d.apply(n,arguments)}}function sv(d,h){var _=-1,F=d.length,V=F-1;for(h=h===n?F:h;++_1?d[h-1]:n;return _=typeof _=="function"?(d.pop(),_):n,kI(d,_)});function PI(d){var h=G(d);return h.__chain__=!0,h}function xQ(d,h){return h(d),d}function lv(d,h){return h(d)}var wQ=Os(function(d){var h=d.length,_=h?d[0]:0,F=this.__wrapped__,V=function(q){return Q2(q,d)};return h>1||this.__actions__.length||!(F instanceof rn)||!As(_)?this.thru(V):(F=F.slice(_,+_+(h?1:0)),F.__actions__.push({func:lv,args:[V],thisArg:n}),new Ti(F,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function CQ(){return PI(this)}function SQ(){return new Ti(this.value(),this.__chain__)}function $Q(){this.__values__===n&&(this.__values__=BI(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function _Q(){return this}function kQ(d){for(var h,_=this;_ instanceof q0;){var F=xI(_);F.__index__=0,F.__values__=n,h?V.__wrapped__=F:h=F;var V=F;_=_.__wrapped__}return V.__wrapped__=d,h}function PQ(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),h=h.reverse(),h.__actions__.push({func:lv,args:[_C],thisArg:n}),new Ti(h,this.__chain__)}return this.thru(_C)}function MQ(){return WE(this.__wrapped__,this.__actions__)}var TQ=ev(function(d,h,_){kn.call(d,_)?++d[_]:Is(d,_,1)});function EQ(d,h,_){var F=Bt(d)?nE:xY;return _&&go(d,h,_)&&(h=n),F(d,Mt(h,3))}function IQ(d,h){var _=Bt(d)?gl:kE;return _(d,Mt(h,3))}var RQ=eI(wI),OQ=eI(CI);function AQ(d,h){return Ur(uv(d,h),1)}function FQ(d,h){return Ur(uv(d,h),B)}function LQ(d,h,_){return _=_===n?1:Gt(_),Ur(uv(d,h),_)}function MI(d,h){var _=Bt(d)?Pi:xl;return _(d,Mt(h,3))}function TI(d,h){var _=Bt(d)?tK:_E;return _(d,Mt(h,3))}var DQ=ev(function(d,h,_){kn.call(d,_)?d[_].push(h):Is(d,_,[h])});function jQ(d,h,_,F){d=Io(d)?d:Vd(d),_=_&&!F?Gt(_):0;var V=d.length;return _<0&&(_=Pr(V+_,0)),hv(d)?_<=V&&d.indexOf(h,_)>-1:!!V&&Rd(d,h,_)>-1}var NQ=Zt(function(d,h,_){var F=-1,V=typeof h=="function",q=Io(d)?Me(d.length):[];return xl(d,function(J){q[++F]=V?Jo(h,J,_):mh(J,h,_)}),q}),zQ=ev(function(d,h,_){Is(d,_,h)});function uv(d,h){var _=Bt(d)?er:RE;return _(d,Mt(h,3))}function BQ(d,h,_,F){return d==null?[]:(Bt(h)||(h=h==null?[]:[h]),_=F?n:_,Bt(_)||(_=_==null?[]:[_]),LE(d,h,_))}var HQ=ev(function(d,h,_){d[_?0:1].push(h)},function(){return[[],[]]});function WQ(d,h,_){var F=Bt(d)?j2:aE,V=arguments.length<3;return F(d,Mt(h,4),_,V,xl)}function VQ(d,h,_){var F=Bt(d)?nK:aE,V=arguments.length<3;return F(d,Mt(h,4),_,V,_E)}function UQ(d,h){var _=Bt(d)?gl:kE;return _(d,fv(Mt(h,3)))}function GQ(d){var h=Bt(d)?wE:jY;return h(d)}function qQ(d,h,_){(_?go(d,h,_):h===n)?h=1:h=Gt(h);var F=Bt(d)?mY:NY;return F(d,h)}function KQ(d){var h=Bt(d)?gY:BY;return h(d)}function YQ(d){if(d==null)return 0;if(Io(d))return hv(d)?Ad(d):d.length;var h=to(d);return h==$e||h==Oe?d.size:rC(d).length}function XQ(d,h,_){var F=Bt(d)?N2:HY;return _&&go(d,h,_)&&(h=n),F(d,Mt(h,3))}var QQ=Zt(function(d,h){if(d==null)return[];var _=h.length;return _>1&&go(d,h[0],h[1])?h=[]:_>2&&go(h[0],h[1],h[2])&&(h=[h[0]]),LE(d,Ur(h,1),[])}),cv=IK||function(){return Vr.Date.now()};function ZQ(d,h){if(typeof h!="function")throw new Mi(a);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}}function EI(d,h,_){return h=_?n:h,h=d&&h==null?d.length:h,Rs(d,M,n,n,n,n,h)}function II(d,h){var _;if(typeof h!="function")throw new Mi(a);return d=Gt(d),function(){return--d>0&&(_=h.apply(this,arguments)),d<=1&&(h=n),_}}var PC=Zt(function(d,h,_){var F=C;if(_.length){var V=yl(_,Hd(PC));F|=T}return Rs(d,F,h,_,V)}),RI=Zt(function(d,h,_){var F=C|x;if(_.length){var V=yl(_,Hd(RI));F|=T}return Rs(h,F,d,_,V)});function OI(d,h,_){h=_?n:h;var F=Rs(d,S,n,n,n,n,n,h);return F.placeholder=OI.placeholder,F}function AI(d,h,_){h=_?n:h;var F=Rs(d,$,n,n,n,n,n,h);return F.placeholder=AI.placeholder,F}function FI(d,h,_){var F,V,q,J,ae,ve,He=0,We=!1,Ue=!1,st=!0;if(typeof d!="function")throw new Mi(a);h=Oi(h)||0,ir(_)&&(We=!!_.leading,Ue="maxWait"in _,q=Ue?Pr(Oi(_.maxWait)||0,h):q,st="trailing"in _?!!_.trailing:st);function wt(vr){var fa=F,Ds=V;return F=V=n,He=vr,J=d.apply(Ds,fa),J}function Et(vr){return He=vr,ae=xh(tn,h),We?wt(vr):J}function qt(vr){var fa=vr-ve,Ds=vr-He,eR=h-fa;return Ue?eo(eR,q-Ds):eR}function It(vr){var fa=vr-ve,Ds=vr-He;return ve===n||fa>=h||fa<0||Ue&&Ds>=q}function tn(){var vr=cv();if(It(vr))return sn(vr);ae=xh(tn,qt(vr))}function sn(vr){return ae=n,st&&F?wt(vr):(F=V=n,J)}function ri(){ae!==n&&UE(ae),He=0,F=ve=V=ae=n}function vo(){return ae===n?J:sn(cv())}function oi(){var vr=cv(),fa=It(vr);if(F=arguments,V=this,ve=vr,fa){if(ae===n)return Et(ve);if(Ue)return UE(ae),ae=xh(tn,h),wt(ve)}return ae===n&&(ae=xh(tn,h)),J}return oi.cancel=ri,oi.flush=vo,oi}var JQ=Zt(function(d,h){return $E(d,1,h)}),eZ=Zt(function(d,h,_){return $E(d,Oi(h)||0,_)});function tZ(d){return Rs(d,N)}function dv(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new Mi(a);var _=function(){var F=arguments,V=h?h.apply(this,F):F[0],q=_.cache;if(q.has(V))return q.get(V);var J=d.apply(this,F);return _.cache=q.set(V,J)||q,J};return _.cache=new(dv.Cache||Es),_}dv.Cache=Es;function fv(d){if(typeof d!="function")throw new Mi(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function nZ(d){return II(2,d)}var rZ=WY(function(d,h){h=h.length==1&&Bt(h[0])?er(h[0],ei(Mt())):er(Ur(h,1),ei(Mt()));var _=h.length;return Zt(function(F){for(var V=-1,q=eo(F.length,_);++V=h}),Hu=TE(function(){return arguments}())?TE:function(d){return cr(d)&&kn.call(d,"callee")&&!mE.call(d,"callee")},Bt=Me.isArray,yZ=X3?ei(X3):kY;function Io(d){return d!=null&&pv(d.length)&&!Fs(d)}function gr(d){return cr(d)&&Io(d)}function bZ(d){return d===!0||d===!1||cr(d)&&mo(d)==xe}var $l=OK||NC,xZ=Q3?ei(Q3):PY;function wZ(d){return cr(d)&&d.nodeType===1&&!wh(d)}function CZ(d){if(d==null)return!0;if(Io(d)&&(Bt(d)||typeof d=="string"||typeof d.splice=="function"||$l(d)||Wd(d)||Hu(d)))return!d.length;var h=to(d);if(h==$e||h==Oe)return!d.size;if(bh(d))return!rC(d).length;for(var _ in d)if(kn.call(d,_))return!1;return!0}function SZ(d,h){return gh(d,h)}function $Z(d,h,_){_=typeof _=="function"?_:n;var F=_?_(d,h):n;return F===n?gh(d,h,n,_):!!F}function TC(d){if(!cr(d))return!1;var h=mo(d);return h==de||h==Se||typeof d.message=="string"&&typeof d.name=="string"&&!wh(d)}function _Z(d){return typeof d=="number"&&vE(d)}function Fs(d){if(!ir(d))return!1;var h=mo(d);return h==ie||h==Pe||h==ge||h==Le}function DI(d){return typeof d=="number"&&d==Gt(d)}function pv(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=j}function ir(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function cr(d){return d!=null&&typeof d=="object"}var jI=Z3?ei(Z3):TY;function kZ(d,h){return d===h||nC(d,h,bC(h))}function PZ(d,h,_){return _=typeof _=="function"?_:n,nC(d,h,bC(h),_)}function MZ(d){return NI(d)&&d!=+d}function TZ(d){if(fX(d))throw new Nt(i);return EE(d)}function EZ(d){return d===null}function IZ(d){return d==null}function NI(d){return typeof d=="number"||cr(d)&&mo(d)==me}function wh(d){if(!cr(d)||mo(d)!=ce)return!1;var h=z0(d);if(h===null)return!0;var _=kn.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&L0.call(_)==PK}var EC=J3?ei(J3):EY;function RZ(d){return DI(d)&&d>=-j&&d<=j}var zI=eE?ei(eE):IY;function hv(d){return typeof d=="string"||!Bt(d)&&cr(d)&&mo(d)==K}function ni(d){return typeof d=="symbol"||cr(d)&&mo(d)==ee}var Wd=tE?ei(tE):RY;function OZ(d){return d===n}function AZ(d){return cr(d)&&to(d)==ye}function FZ(d){return cr(d)&&mo(d)==De}var LZ=ov(oC),DZ=ov(function(d,h){return d<=h});function BI(d){if(!d)return[];if(Io(d))return hv(d)?ua(d):Eo(d);if(lh&&d[lh])return mK(d[lh]());var h=to(d),_=h==$e?U2:h==Oe?O0:Vd;return _(d)}function Ls(d){if(!d)return d===0?d:0;if(d=Oi(d),d===B||d===-B){var h=d<0?-1:1;return h*W}return d===d?d:0}function Gt(d){var h=Ls(d),_=h%1;return h===h?_?h-_:h:0}function HI(d){return d?ju(Gt(d),0,Z):0}function Oi(d){if(typeof d=="number")return d;if(ni(d))return U;if(ir(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=ir(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=sE(d);var _=Tt.test(d);return _||_n.test(d)?Zq(d.slice(2),_?2:8):rt.test(d)?U:+d}function WI(d){return La(d,Ro(d))}function jZ(d){return d?ju(Gt(d),-j,j):d===0?d:0}function Cn(d){return d==null?"":ti(d)}var NZ=zd(function(d,h){if(bh(h)||Io(h)){La(h,Lr(h),d);return}for(var _ in h)kn.call(h,_)&&ph(d,_,h[_])}),VI=zd(function(d,h){La(h,Ro(h),d)}),mv=zd(function(d,h,_,F){La(h,Ro(h),d,F)}),zZ=zd(function(d,h,_,F){La(h,Lr(h),d,F)}),BZ=Os(Q2);function HZ(d,h){var _=Nd(d);return h==null?_:CE(_,h)}var WZ=Zt(function(d,h){d=Ln(d);var _=-1,F=h.length,V=F>2?h[2]:n;for(V&&go(h[0],h[1],V)&&(F=1);++_1),q}),La(d,vC(d),_),F&&(_=Ei(_,f|p|y,eX));for(var V=h.length;V--;)uC(_,h[V]);return _});function sJ(d,h){return GI(d,fv(Mt(h)))}var lJ=Os(function(d,h){return d==null?{}:FY(d,h)});function GI(d,h){if(d==null)return{};var _=er(vC(d),function(F){return[F]});return h=Mt(h),DE(d,_,function(F,V){return h(F,V[0])})}function uJ(d,h,_){h=Cl(h,d);var F=-1,V=h.length;for(V||(V=1,d=n);++Fh){var F=d;d=h,h=F}if(_||d%1||h%1){var V=yE();return eo(d+V*(h-d+Qq("1e-"+((V+"").length-1))),h)}return aC(d,h)}var xJ=Bd(function(d,h,_){return h=h.toLowerCase(),d+(_?YI(h):h)});function YI(d){return OC(Cn(d).toLowerCase())}function XI(d){return d=Cn(d),d&&d.replace(gt,cK).replace(Bq,"")}function wJ(d,h,_){d=Cn(d),h=ti(h);var F=d.length;_=_===n?F:ju(Gt(_),0,F);var V=_;return _-=h.length,_>=0&&d.slice(_,V)==h}function CJ(d){return d=Cn(d),d&&ht.test(d)?d.replace(nt,dK):d}function SJ(d){return d=Cn(d),d&&un.test(d)?d.replace(zt,"\\$&"):d}var $J=Bd(function(d,h,_){return d+(_?"-":"")+h.toLowerCase()}),_J=Bd(function(d,h,_){return d+(_?" ":"")+h.toLowerCase()}),kJ=JE("toLowerCase");function PJ(d,h,_){d=Cn(d),h=Gt(h);var F=h?Ad(d):0;if(!h||F>=h)return d;var V=(h-F)/2;return rv(V0(V),_)+d+rv(W0(V),_)}function MJ(d,h,_){d=Cn(d),h=Gt(h);var F=h?Ad(d):0;return h&&F>>0,_?(d=Cn(d),d&&(typeof h=="string"||h!=null&&!EC(h))&&(h=ti(h),!h&&Od(d))?Sl(ua(d),0,_):d.split(h,_)):[]}var FJ=Bd(function(d,h,_){return d+(_?" ":"")+OC(h)});function LJ(d,h,_){return d=Cn(d),_=_==null?0:ju(Gt(_),0,d.length),h=ti(h),d.slice(_,_+h.length)==h}function DJ(d,h,_){var F=G.templateSettings;_&&go(d,h,_)&&(h=n),d=Cn(d),h=mv({},h,F,aI);var V=mv({},h.imports,F.imports,aI),q=Lr(V),J=V2(V,q),ae,ve,He=0,We=h.interpolate||or,Ue="__p += '",st=G2((h.escape||or).source+"|"+We.source+"|"+(We===jt?we:or).source+"|"+(h.evaluate||or).source+"|$","g"),wt="//# sourceURL="+(kn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gq+"]")+` -`;d.replace(st,function(It,tn,sn,ri,vo,oi){return sn||(sn=ri),Ue+=d.slice(He,oi).replace(Td,fK),tn&&(ae=!0,Ue+=`' + +`)}function lX(d){return Bt(d)||Bu(d)||!!(mE&&d&&d[mE])}function As(d,h){var _=typeof d;return h=h??j,!!h&&(_=="number"||_!="symbol"&&ct.test(d))&&d>-1&&d%1==0&&d0){if(++h>=z)return arguments[0]}else h=0;return d.apply(n,arguments)}}function av(d,h){var _=-1,F=d.length,V=F-1;for(h=h===n?F:h;++_1?d[h-1]:n;return _=typeof _=="function"?(d.pop(),_):n,_I(d,_)});function kI(d){var h=G(d);return h.__chain__=!0,h}function bQ(d,h){return h(d),d}function sv(d,h){return h(d)}var xQ=Os(function(d){var h=d.length,_=h?d[0]:0,F=this.__wrapped__,V=function(q){return X2(q,d)};return h>1||this.__actions__.length||!(F instanceof rn)||!As(_)?this.thru(V):(F=F.slice(_,+_+(h?1:0)),F.__actions__.push({func:sv,args:[V],thisArg:n}),new Ti(F,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function wQ(){return kI(this)}function CQ(){return new Ti(this.value(),this.__chain__)}function SQ(){this.__values__===n&&(this.__values__=zI(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function $Q(){return this}function _Q(d){for(var h,_=this;_ instanceof G0;){var F=bI(_);F.__index__=0,F.__values__=n,h?V.__wrapped__=F:h=F;var V=F;_=_.__wrapped__}return V.__wrapped__=d,h}function kQ(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),h=h.reverse(),h.__actions__.push({func:sv,args:[$C],thisArg:n}),new Ti(h,this.__chain__)}return this.thru($C)}function PQ(){return HE(this.__wrapped__,this.__actions__)}var MQ=J0(function(d,h,_){kn.call(d,_)?++d[_]:Is(d,_,1)});function TQ(d,h,_){var F=Bt(d)?tE:bY;return _&&go(d,h,_)&&(h=n),F(d,Mt(h,3))}function EQ(d,h){var _=Bt(d)?ml:_E;return _(d,Mt(h,3))}var IQ=JE(xI),RQ=JE(wI);function OQ(d,h){return Ur(lv(d,h),1)}function AQ(d,h){return Ur(lv(d,h),B)}function FQ(d,h,_){return _=_===n?1:Gt(_),Ur(lv(d,h),_)}function PI(d,h){var _=Bt(d)?Pi:bl;return _(d,Mt(h,3))}function MI(d,h){var _=Bt(d)?eK:$E;return _(d,Mt(h,3))}var LQ=J0(function(d,h,_){kn.call(d,_)?d[_].push(h):Is(d,_,[h])});function DQ(d,h,_,F){d=Io(d)?d:Wd(d),_=_&&!F?Gt(_):0;var V=d.length;return _<0&&(_=Pr(V+_,0)),pv(d)?_<=V&&d.indexOf(h,_)>-1:!!V&&Id(d,h,_)>-1}var jQ=Zt(function(d,h,_){var F=-1,V=typeof h=="function",q=Io(d)?Me(d.length):[];return bl(d,function(J){q[++F]=V?Jo(h,J,_):hh(J,h,_)}),q}),NQ=J0(function(d,h,_){Is(d,_,h)});function lv(d,h){var _=Bt(d)?er:IE;return _(d,Mt(h,3))}function zQ(d,h,_,F){return d==null?[]:(Bt(h)||(h=h==null?[]:[h]),_=F?n:_,Bt(_)||(_=_==null?[]:[_]),FE(d,h,_))}var BQ=J0(function(d,h,_){d[_?0:1].push(h)},function(){return[[],[]]});function HQ(d,h,_){var F=Bt(d)?D2:iE,V=arguments.length<3;return F(d,Mt(h,4),_,V,bl)}function WQ(d,h,_){var F=Bt(d)?tK:iE,V=arguments.length<3;return F(d,Mt(h,4),_,V,$E)}function VQ(d,h){var _=Bt(d)?ml:_E;return _(d,dv(Mt(h,3)))}function UQ(d){var h=Bt(d)?xE:DY;return h(d)}function GQ(d,h,_){(_?go(d,h,_):h===n)?h=1:h=Gt(h);var F=Bt(d)?hY:jY;return F(d,h)}function qQ(d){var h=Bt(d)?mY:zY;return h(d)}function KQ(d){if(d==null)return 0;if(Io(d))return pv(d)?Od(d):d.length;var h=to(d);return h==$e||h==Oe?d.size:nC(d).length}function YQ(d,h,_){var F=Bt(d)?j2:BY;return _&&go(d,h,_)&&(h=n),F(d,Mt(h,3))}var XQ=Zt(function(d,h){if(d==null)return[];var _=h.length;return _>1&&go(d,h[0],h[1])?h=[]:_>2&&go(h[0],h[1],h[2])&&(h=[h[0]]),FE(d,Ur(h,1),[])}),uv=EK||function(){return Vr.Date.now()};function QQ(d,h){if(typeof h!="function")throw new Mi(a);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}}function TI(d,h,_){return h=_?n:h,h=d&&h==null?d.length:h,Rs(d,M,n,n,n,n,h)}function EI(d,h){var _;if(typeof h!="function")throw new Mi(a);return d=Gt(d),function(){return--d>0&&(_=h.apply(this,arguments)),d<=1&&(h=n),_}}var kC=Zt(function(d,h,_){var F=C;if(_.length){var V=vl(_,Bd(kC));F|=T}return Rs(d,F,h,_,V)}),II=Zt(function(d,h,_){var F=C|x;if(_.length){var V=vl(_,Bd(II));F|=T}return Rs(h,F,d,_,V)});function RI(d,h,_){h=_?n:h;var F=Rs(d,S,n,n,n,n,n,h);return F.placeholder=RI.placeholder,F}function OI(d,h,_){h=_?n:h;var F=Rs(d,$,n,n,n,n,n,h);return F.placeholder=OI.placeholder,F}function AI(d,h,_){var F,V,q,J,ae,ve,He=0,We=!1,Ge=!1,st=!0;if(typeof d!="function")throw new Mi(a);h=Oi(h)||0,ir(_)&&(We=!!_.leading,Ge="maxWait"in _,q=Ge?Pr(Oi(_.maxWait)||0,h):q,st="trailing"in _?!!_.trailing:st);function wt(vr){var fa=F,Ds=V;return F=V=n,He=vr,J=d.apply(Ds,fa),J}function Et(vr){return He=vr,ae=bh(tn,h),We?wt(vr):J}function qt(vr){var fa=vr-ve,Ds=vr-He,JI=h-fa;return Ge?eo(JI,q-Ds):JI}function It(vr){var fa=vr-ve,Ds=vr-He;return ve===n||fa>=h||fa<0||Ge&&Ds>=q}function tn(){var vr=uv();if(It(vr))return sn(vr);ae=bh(tn,qt(vr))}function sn(vr){return ae=n,st&&F?wt(vr):(F=V=n,J)}function ri(){ae!==n&&VE(ae),He=0,F=ve=V=ae=n}function vo(){return ae===n?J:sn(uv())}function oi(){var vr=uv(),fa=It(vr);if(F=arguments,V=this,ve=vr,fa){if(ae===n)return Et(ve);if(Ge)return VE(ae),ae=bh(tn,h),wt(ve)}return ae===n&&(ae=bh(tn,h)),J}return oi.cancel=ri,oi.flush=vo,oi}var ZQ=Zt(function(d,h){return SE(d,1,h)}),JQ=Zt(function(d,h,_){return SE(d,Oi(h)||0,_)});function eZ(d){return Rs(d,N)}function cv(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new Mi(a);var _=function(){var F=arguments,V=h?h.apply(this,F):F[0],q=_.cache;if(q.has(V))return q.get(V);var J=d.apply(this,F);return _.cache=q.set(V,J)||q,J};return _.cache=new(cv.Cache||Es),_}cv.Cache=Es;function dv(d){if(typeof d!="function")throw new Mi(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function tZ(d){return EI(2,d)}var nZ=HY(function(d,h){h=h.length==1&&Bt(h[0])?er(h[0],ei(Mt())):er(Ur(h,1),ei(Mt()));var _=h.length;return Zt(function(F){for(var V=-1,q=eo(F.length,_);++V=h}),Bu=ME(function(){return arguments}())?ME:function(d){return cr(d)&&kn.call(d,"callee")&&!hE.call(d,"callee")},Bt=Me.isArray,vZ=Y3?ei(Y3):_Y;function Io(d){return d!=null&&fv(d.length)&&!Fs(d)}function gr(d){return cr(d)&&Io(d)}function yZ(d){return d===!0||d===!1||cr(d)&&mo(d)==xe}var Sl=RK||jC,bZ=X3?ei(X3):kY;function xZ(d){return cr(d)&&d.nodeType===1&&!xh(d)}function wZ(d){if(d==null)return!0;if(Io(d)&&(Bt(d)||typeof d=="string"||typeof d.splice=="function"||Sl(d)||Hd(d)||Bu(d)))return!d.length;var h=to(d);if(h==$e||h==Oe)return!d.size;if(yh(d))return!nC(d).length;for(var _ in d)if(kn.call(d,_))return!1;return!0}function CZ(d,h){return mh(d,h)}function SZ(d,h,_){_=typeof _=="function"?_:n;var F=_?_(d,h):n;return F===n?mh(d,h,n,_):!!F}function MC(d){if(!cr(d))return!1;var h=mo(d);return h==de||h==Se||typeof d.message=="string"&&typeof d.name=="string"&&!xh(d)}function $Z(d){return typeof d=="number"&&gE(d)}function Fs(d){if(!ir(d))return!1;var h=mo(d);return h==ie||h==Pe||h==ge||h==Le}function LI(d){return typeof d=="number"&&d==Gt(d)}function fv(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=j}function ir(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function cr(d){return d!=null&&typeof d=="object"}var DI=Q3?ei(Q3):MY;function _Z(d,h){return d===h||tC(d,h,yC(h))}function kZ(d,h,_){return _=typeof _=="function"?_:n,tC(d,h,yC(h),_)}function PZ(d){return jI(d)&&d!=+d}function MZ(d){if(dX(d))throw new Nt(i);return TE(d)}function TZ(d){return d===null}function EZ(d){return d==null}function jI(d){return typeof d=="number"||cr(d)&&mo(d)==me}function xh(d){if(!cr(d)||mo(d)!=ce)return!1;var h=N0(d);if(h===null)return!0;var _=kn.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&F0.call(_)==kK}var TC=Z3?ei(Z3):TY;function IZ(d){return LI(d)&&d>=-j&&d<=j}var NI=J3?ei(J3):EY;function pv(d){return typeof d=="string"||!Bt(d)&&cr(d)&&mo(d)==K}function ni(d){return typeof d=="symbol"||cr(d)&&mo(d)==ee}var Hd=eE?ei(eE):IY;function RZ(d){return d===n}function OZ(d){return cr(d)&&to(d)==ye}function AZ(d){return cr(d)&&mo(d)==De}var FZ=rv(rC),LZ=rv(function(d,h){return d<=h});function zI(d){if(!d)return[];if(Io(d))return pv(d)?ua(d):Eo(d);if(sh&&d[sh])return hK(d[sh]());var h=to(d),_=h==$e?V2:h==Oe?R0:Wd;return _(d)}function Ls(d){if(!d)return d===0?d:0;if(d=Oi(d),d===B||d===-B){var h=d<0?-1:1;return h*W}return d===d?d:0}function Gt(d){var h=Ls(d),_=h%1;return h===h?_?h-_:h:0}function BI(d){return d?Du(Gt(d),0,Z):0}function Oi(d){if(typeof d=="number")return d;if(ni(d))return U;if(ir(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=ir(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=aE(d);var _=Tt.test(d);return _||_n.test(d)?Qq(d.slice(2),_?2:8):rt.test(d)?U:+d}function HI(d){return Fa(d,Ro(d))}function DZ(d){return d?Du(Gt(d),-j,j):d===0?d:0}function Cn(d){return d==null?"":ti(d)}var jZ=Nd(function(d,h){if(yh(h)||Io(h)){Fa(h,Lr(h),d);return}for(var _ in h)kn.call(h,_)&&fh(d,_,h[_])}),WI=Nd(function(d,h){Fa(h,Ro(h),d)}),hv=Nd(function(d,h,_,F){Fa(h,Ro(h),d,F)}),NZ=Nd(function(d,h,_,F){Fa(h,Lr(h),d,F)}),zZ=Os(X2);function BZ(d,h){var _=jd(d);return h==null?_:wE(_,h)}var HZ=Zt(function(d,h){d=Ln(d);var _=-1,F=h.length,V=F>2?h[2]:n;for(V&&go(h[0],h[1],V)&&(F=1);++_1),q}),Fa(d,gC(d),_),F&&(_=Ei(_,f|p|y,JY));for(var V=h.length;V--;)lC(_,h[V]);return _});function aJ(d,h){return UI(d,dv(Mt(h)))}var sJ=Os(function(d,h){return d==null?{}:AY(d,h)});function UI(d,h){if(d==null)return{};var _=er(gC(d),function(F){return[F]});return h=Mt(h),LE(d,_,function(F,V){return h(F,V[0])})}function lJ(d,h,_){h=wl(h,d);var F=-1,V=h.length;for(V||(V=1,d=n);++Fh){var F=d;d=h,h=F}if(_||d%1||h%1){var V=vE();return eo(d+V*(h-d+Xq("1e-"+((V+"").length-1))),h)}return iC(d,h)}var bJ=zd(function(d,h,_){return h=h.toLowerCase(),d+(_?KI(h):h)});function KI(d){return RC(Cn(d).toLowerCase())}function YI(d){return d=Cn(d),d&&d.replace(gt,uK).replace(zq,"")}function xJ(d,h,_){d=Cn(d),h=ti(h);var F=d.length;_=_===n?F:Du(Gt(_),0,F);var V=_;return _-=h.length,_>=0&&d.slice(_,V)==h}function wJ(d){return d=Cn(d),d&&ht.test(d)?d.replace(nt,cK):d}function CJ(d){return d=Cn(d),d&&un.test(d)?d.replace(zt,"\\$&"):d}var SJ=zd(function(d,h,_){return d+(_?"-":"")+h.toLowerCase()}),$J=zd(function(d,h,_){return d+(_?" ":"")+h.toLowerCase()}),_J=ZE("toLowerCase");function kJ(d,h,_){d=Cn(d),h=Gt(h);var F=h?Od(d):0;if(!h||F>=h)return d;var V=(h-F)/2;return nv(W0(V),_)+d+nv(H0(V),_)}function PJ(d,h,_){d=Cn(d),h=Gt(h);var F=h?Od(d):0;return h&&F>>0,_?(d=Cn(d),d&&(typeof h=="string"||h!=null&&!TC(h))&&(h=ti(h),!h&&Rd(d))?Cl(ua(d),0,_):d.split(h,_)):[]}var AJ=zd(function(d,h,_){return d+(_?" ":"")+RC(h)});function FJ(d,h,_){return d=Cn(d),_=_==null?0:Du(Gt(_),0,d.length),h=ti(h),d.slice(_,_+h.length)==h}function LJ(d,h,_){var F=G.templateSettings;_&&go(d,h,_)&&(h=n),d=Cn(d),h=hv({},h,F,iI);var V=hv({},h.imports,F.imports,iI),q=Lr(V),J=W2(V,q),ae,ve,He=0,We=h.interpolate||or,Ge="__p += '",st=U2((h.escape||or).source+"|"+We.source+"|"+(We===jt?we:or).source+"|"+(h.evaluate||or).source+"|$","g"),wt="//# sourceURL="+(kn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Uq+"]")+` +`;d.replace(st,function(It,tn,sn,ri,vo,oi){return sn||(sn=ri),Ge+=d.slice(He,oi).replace(Md,dK),tn&&(ae=!0,Ge+=`' + __e(`+tn+`) + -'`),vo&&(ve=!0,Ue+=`'; +'`),vo&&(ve=!0,Ge+=`'; `+vo+`; -__p += '`),sn&&(Ue+=`' + +__p += '`),sn&&(Ge+=`' + ((__t = (`+sn+`)) == null ? '' : __t) + -'`),He=oi+It.length,It}),Ue+=`'; -`;var Et=kn.call(h,"variable")&&h.variable;if(!Et)Ue=`with (obj) { -`+Ue+` +'`),He=oi+It.length,It}),Ge+=`'; +`;var Et=kn.call(h,"variable")&&h.variable;if(!Et)Ge=`with (obj) { +`+Ge+` } -`;else if(Ut.test(Et))throw new Nt(s);Ue=(ve?Ue.replace(Ve,""):Ue).replace(Ke,"$1").replace(at,"$1;"),Ue="function("+(Et||"obj")+`) { +`;else if(Ut.test(Et))throw new Nt(s);Ge=(ve?Ge.replace(Ve,""):Ge).replace(Ke,"$1").replace(at,"$1;"),Ge="function("+(Et||"obj")+`) { `+(Et?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(ae?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Ue+`return __p -}`;var qt=ZI(function(){return yn(q,wt+"return "+Ue).apply(n,J)});if(qt.source=Ue,TC(qt))throw qt;return qt}function jJ(d){return Cn(d).toLowerCase()}function NJ(d){return Cn(d).toUpperCase()}function zJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return sE(d);if(!d||!(h=ti(h)))return d;var F=ua(d),V=ua(h),q=lE(F,V),J=uE(F,V)+1;return Sl(F,q,J).join("")}function BJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.slice(0,dE(d)+1);if(!d||!(h=ti(h)))return d;var F=ua(d),V=uE(F,ua(h))+1;return Sl(F,0,V).join("")}function HJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.replace(cn,"");if(!d||!(h=ti(h)))return d;var F=ua(d),V=lE(F,ua(h));return Sl(F,V).join("")}function WJ(d,h){var _=E,F=A;if(ir(h)){var V="separator"in h?h.separator:V;_="length"in h?Gt(h.length):_,F="omission"in h?ti(h.omission):F}d=Cn(d);var q=d.length;if(Od(d)){var J=ua(d);q=J.length}if(_>=q)return d;var ae=_-Ad(F);if(ae<1)return F;var ve=J?Sl(J,0,ae).join(""):d.slice(0,ae);if(V===n)return ve+F;if(J&&(ae+=ve.length-ae),EC(V)){if(d.slice(ae).search(V)){var He,We=ve;for(V.global||(V=G2(V.source,Cn(Fe.exec(V))+"g")),V.lastIndex=0;He=V.exec(We);)var Ue=He.index;ve=ve.slice(0,Ue===n?ae:Ue)}}else if(d.indexOf(ti(V),ae)!=ae){var st=ve.lastIndexOf(V);st>-1&&(ve=ve.slice(0,st))}return ve+F}function VJ(d){return d=Cn(d),d&&_t.test(d)?d.replace(Je,bK):d}var UJ=Bd(function(d,h,_){return d+(_?" ":"")+h.toUpperCase()}),OC=JE("toUpperCase");function QI(d,h,_){return d=Cn(d),h=_?n:h,h===n?hK(d)?CK(d):iK(d):d.match(h)||[]}var ZI=Zt(function(d,h){try{return Jo(d,n,h)}catch(_){return TC(_)?_:new Nt(_)}}),GJ=Os(function(d,h){return Pi(h,function(_){_=Da(_),Is(d,_,PC(d[_],d))}),d});function qJ(d){var h=d==null?0:d.length,_=Mt();return d=h?er(d,function(F){if(typeof F[1]!="function")throw new Mi(a);return[_(F[0]),F[1]]}):[],Zt(function(F){for(var V=-1;++Vj)return[];var _=Z,F=eo(d,Z);h=Mt(h),d-=Z;for(var V=W2(F,h);++_0||h<0)?new rn(_):(d<0?_=_.takeRight(-d):d&&(_=_.drop(d)),h!==n&&(h=Gt(h),_=h<0?_.dropRight(-h):_.take(h-d)),_)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(Z)},Fa(rn.prototype,function(d,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),F=/^(?:head|last)$/.test(h),V=G[F?"take"+(h=="last"?"Right":""):h],q=F||/^find/.test(h);V&&(G.prototype[h]=function(){var J=this.__wrapped__,ae=F?[1]:arguments,ve=J instanceof rn,He=ae[0],We=ve||Bt(J),Ue=function(tn){var sn=V.apply(G,vl([tn],ae));return F&&st?sn[0]:sn};We&&_&&typeof He=="function"&&He.length!=1&&(ve=We=!1);var st=this.__chain__,wt=!!this.__actions__.length,Et=q&&!st,qt=ve&&!wt;if(!q&&We){J=qt?J:new rn(this);var It=d.apply(J,ae);return It.__actions__.push({func:lv,args:[Ue],thisArg:n}),new Ti(It,st)}return Et&&qt?d.apply(this,ae):(It=this.thru(Ue),Et?F?It.value()[0]:It.value():It)})}),Pi(["pop","push","shift","sort","splice","unshift"],function(d){var h=A0[d],_=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",F=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var V=arguments;if(F&&!this.__chain__){var q=this.value();return h.apply(Bt(q)?q:[],V)}return this[_](function(J){return h.apply(Bt(J)?J:[],V)})}}),Fa(rn.prototype,function(d,h){var _=G[h];if(_){var F=_.name+"";kn.call(jd,F)||(jd[F]=[]),jd[F].push({name:h,func:_})}}),jd[tv(n,x).name]=[{name:"wrapper",func:n}],rn.prototype.clone=VK,rn.prototype.reverse=UK,rn.prototype.value=GK,G.prototype.at=wQ,G.prototype.chain=CQ,G.prototype.commit=SQ,G.prototype.next=$Q,G.prototype.plant=kQ,G.prototype.reverse=PQ,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=MQ,G.prototype.first=G.prototype.head,lh&&(G.prototype[lh]=_Q),G},Fd=SK();Au?((Au.exports=Fd)._=Fd,F2._=Fd):Vr._=Fd}).call(Us)})(Wy,Wy.exports);var yi=Wy.exports;function iMe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var PB=iMe;const St=Or(PB);function MB(e,t){return et?1:e>=t?0:NaN}function vw(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=aMe(e));function r(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)<0?l=c+1:u=c}return l}function o(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)>0?u=c:l=c+1}return l}function i(a,s,l,u){l==null&&(l=0),u==null&&(u=a.length);const c=r(a,s,l,u-1);return c>l&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:i,right:o}}function aMe(e){return(t,n)=>MB(e(t),n)}function sMe(e){return e===null?NaN:+e}const lMe=vw(MB),uMe=lMe.right;vw(sMe).center;const TB=uMe;class X6 extends Map{constructor(t,n=fMe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Q6(this,t))}has(t){return super.has(Q6(this,t))}set(t,n){return super.set(cMe(this,t),n)}delete(t){return super.delete(dMe(this,t))}}function Q6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function dMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function fMe(e){return e!==null&&typeof e=="object"?e.valueOf():e}var lk=Math.sqrt(50),uk=Math.sqrt(10),ck=Math.sqrt(2);function bp(e,t,n){var r,o=-1,i,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let l=Math.round(e/s),u=Math.round(t/s);for(l*st&&--u,a=new Array(i=u-l+1);++ot&&--u,a=new Array(i=u-l+1);++o=0?(i>=lk?10:i>=uk?5:i>=ck?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=lk?10:i>=uk?5:i>=ck?2:1)}function xp(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=lk?o*=10:i>=uk?o*=5:i>=ck&&(o*=2),tt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vMe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?yMe:vMe,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),Pg)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,mMe),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=_B,c()},f.clamp=function(p){return arguments.length?(a=p?!0:Pf,c()):a!==Pf},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function RB(){return j5()(Pf,Pf)}function bMe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function wp(e){return e=Vy(Math.abs(e)),e?e[1]:NaN}function xMe(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function wMe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var CMe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cp(e){if(!(t=CMe.exec(e)))throw new Error("invalid format: "+e);var t;return new N5({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]})}Cp.prototype=N5.prototype;function N5(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+""}N5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SMe(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var OB;function $Me(e,t){var n=Vy(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(OB=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")+Vy(e,Math.max(0,t+i-1))[0]}function eF(e,t){var n=Vy(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 tF={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:bMe,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return eF(e*100,t)},r:eF,s:$Me,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function nF(e){return e}var rF=Array.prototype.map,oF=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _Me(e){var t=e.grouping===void 0||e.thousands===void 0?nF:xMe(rF.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?nF:wMe(rF.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Cp(f);var p=f.fill,y=f.align,v=f.sign,b=f.symbol,C=f.zero,x=f.width,w=f.comma,S=f.precision,$=f.trim,T=f.type;T==="n"?(w=!0,T="g"):tF[T]||(S===void 0&&(S=12),$=!0,T="g"),(C||p==="0"&&y==="=")&&(C=!0,p="0",y="=");var k=b==="$"?n:b==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",M=b==="$"?r:/[%p]/.test(T)?a:"",I=tF[T],N=/[defgprs%]/.test(T);S=S===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function E(A){var z=k,L=M,O,D,H;if(T==="c")L=I(A)+L,A="";else{A=+A;var B=A<0||1/A<0;if(A=isNaN(A)?l:I(Math.abs(A),S),$&&(A=SMe(A)),B&&+A==0&&v!=="+"&&(B=!1),z=(B?v==="("?v:s:v==="-"||v==="("?"":v)+z,L=(T==="s"?oF[8+OB/3]:"")+L+(B&&v==="("?")":""),N){for(O=-1,D=A.length;++OH||H>57){L=(H===46?o+A.slice(O+1):A.slice(O))+L,A=A.slice(0,O);break}}}w&&!C&&(A=t(A,1/0));var j=z.length+A.length+L.length,W=j>1)+z+A+L+W.slice(j);break;default:A=W+z+A+L;break}return i(A)}return E.toString=function(){return f+""},E}function c(f,p){var y=u((f=Cp(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(wp(p)/3)))*3,b=Math.pow(10,-v),C=oF[8+v/3];return function(x){return y(b*x)+C}}return{format:u,formatPrefix:c}}var Kv,Mu,z5;kMe({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function kMe(e){return Kv=_Me(e),Mu=Kv.format,z5=Kv.formatPrefix,Kv}function AB(e){return Math.max(0,-wp(Math.abs(e)))}function FB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wp(t)/3)))*3-wp(Math.abs(e)))}function LB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wp(t)-wp(e))+1}function PMe(e,t,n,r){var o=xp(e,t,n),i;switch(r=Cp(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=FB(o,a))&&(r.precision=i),z5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=LB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=AB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Mu(r)}function DB(e){var t=e.domain;return e.ticks=function(n){var r=t();return bp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return PMe(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=L5(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function jB(){var e=RB();return e.copy=function(){return yw(e,jB())},fd.apply(e,arguments),DB(e)}function NB(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i0){for(;p<=y;++p)for(b=1,v=i(p);bc)break;w.push(C)}}else for(;p<=y;++p)for(b=r-1,v=i(p);b>=1;--b)if(C=v*b,!(Cc)break;w.push(C)}w.length*20))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return zS.setTime(+i),BS.setTime(+a),e(zS),e(BS),Math.floor(n(zS,BS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Uy=Hr(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Uy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Hr(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Uy};const FMe=Uy;Uy.range;const Ys=1e3,Gi=Ys*60,Xs=Gi*60,qc=Xs*24,B5=qc*7,cF=qc*30,HS=qc*365;var HB=Hr(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ys)},function(e,t){return(t-e)/Ys},function(e){return e.getUTCSeconds()});const Mf=HB;HB.range;var WB=Hr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ys)},function(e,t){e.setTime(+e+t*Gi)},function(e,t){return(t-e)/Gi},function(e){return e.getMinutes()});const VB=WB;WB.range;var UB=Hr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ys-e.getMinutes()*Gi)},function(e,t){e.setTime(+e+t*Xs)},function(e,t){return(t-e)/Xs},function(e){return e.getHours()});const GB=UB;UB.range;var qB=Hr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Gi)/qc,e=>e.getDate()-1);const KB=qB;qB.range;function pd(e){return Hr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Gi)/B5})}var H5=pd(0),LMe=pd(1),DMe=pd(2),jMe=pd(3),NMe=pd(4),zMe=pd(5),BMe=pd(6);H5.range;LMe.range;DMe.range;jMe.range;NMe.range;zMe.range;BMe.range;var YB=Hr(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const XB=YB;YB.range;var W5=Hr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});W5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Hr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const QB=W5;W5.range;var ZB=Hr(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Gi)},function(e,t){return(t-e)/Gi},function(e){return e.getUTCMinutes()});const JB=ZB;ZB.range;var eH=Hr(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Xs)},function(e,t){return(t-e)/Xs},function(e){return e.getUTCHours()});const tH=eH;eH.range;var nH=Hr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/qc},function(e){return e.getUTCDate()-1});const rH=nH;nH.range;function hd(e){return Hr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/B5})}var V5=hd(0),HMe=hd(1),WMe=hd(2),VMe=hd(3),UMe=hd(4),GMe=hd(5),qMe=hd(6);V5.range;HMe.range;WMe.range;VMe.range;UMe.range;GMe.range;qMe.range;var oH=Hr(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const iH=oH;oH.range;var U5=Hr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});U5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Hr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const aH=U5;U5.range;function sH(e,t,n,r,o,i){const a=[[Mf,1,Ys],[Mf,5,5*Ys],[Mf,15,15*Ys],[Mf,30,30*Ys],[i,1,Gi],[i,5,5*Gi],[i,15,15*Gi],[i,30,30*Gi],[o,1,Xs],[o,3,3*Xs],[o,6,6*Xs],[o,12,12*Xs],[r,1,qc],[r,2,2*qc],[n,1,B5],[t,1,cF],[t,3,3*cF],[e,1,HS]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(xp(u/HS,c/HS,f));if(y===0)return FMe.every(Math.max(xp(u,c,f),1));const[v,b]=a[p/a[y-1][2]0))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return WS.setTime(+i),VS.setTime(+a),e(WS),e(VS),Math.floor(n(WS,VS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Gy=_r(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Gy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_r(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Gy};const dF=Gy;Gy.range;var qy=1e3,Kc=6e4,Ky=36e5,lH=864e5,uH=6048e5,cH=_r(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*qy)},function(e,t){return(t-e)/qy},function(e){return e.getUTCSeconds()});const fF=cH;cH.range;var dH=_r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*qy)},function(e,t){e.setTime(+e+t*Kc)},function(e,t){return(t-e)/Kc},function(e){return e.getMinutes()});const ZMe=dH;dH.range;var fH=_r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*qy-e.getMinutes()*Kc)},function(e,t){e.setTime(+e+t*Ky)},function(e,t){return(t-e)/Ky},function(e){return e.getHours()});const JMe=fH;fH.range;var pH=_r(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kc)/lH},function(e){return e.getDate()-1});const hH=pH;pH.range;function md(e){return _r(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Kc)/uH})}var Yy=md(0),Mg=md(1),mH=md(2),gH=md(3),Yc=md(4),vH=md(5),yH=md(6);Yy.range;Mg.range;mH.range;gH.range;Yc.range;vH.range;yH.range;var bH=_r(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const e5e=bH;bH.range;var G5=_r(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});G5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:_r(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const Sp=G5;G5.range;var xH=_r(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Kc)},function(e,t){return(t-e)/Kc},function(e){return e.getUTCMinutes()});const t5e=xH;xH.range;var wH=_r(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ky)},function(e,t){return(t-e)/Ky},function(e){return e.getUTCHours()});const n5e=wH;wH.range;var CH=_r(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/lH},function(e){return e.getUTCDate()-1});const SH=CH;CH.range;function gd(e){return _r(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/uH})}var Xy=gd(0),Tg=gd(1),$H=gd(2),_H=gd(3),Xc=gd(4),kH=gd(5),PH=gd(6);Xy.range;Tg.range;$H.range;_H.range;Xc.range;kH.range;PH.range;var MH=_r(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const r5e=MH;MH.range;var q5=_r(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});q5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:_r(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const $p=q5;q5.range;function US(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function GS(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Kh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function o5e(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Yh(o),c=Xh(o),f=Yh(i),p=Xh(i),y=Yh(a),v=Xh(a),b=Yh(s),C=Xh(s),x=Yh(l),w=Xh(l),S={a:B,A:j,b:W,B:U,c:null,d:yF,e:yF,f:P5e,g:D5e,G:N5e,H:$5e,I:_5e,j:k5e,L:TH,m:M5e,M:T5e,p:Z,q:Y,Q:wF,s:CF,S:E5e,u:I5e,U:R5e,V:O5e,w:A5e,W:F5e,x:null,X:null,y:L5e,Y:j5e,Z:z5e,"%":xF},$={a:se,A:Q,b:ne,B:re,c:null,d:bF,e:bF,f:V5e,g:eTe,G:nTe,H:B5e,I:H5e,j:W5e,L:IH,m:U5e,M:G5e,p:ge,q:xe,Q:wF,s:CF,S:q5e,u:K5e,U:Y5e,V:X5e,w:Q5e,W:Z5e,x:null,X:null,y:J5e,Y:tTe,Z:rTe,"%":xF},T={a:E,A,b:z,B:L,c:O,d:gF,e:gF,f:x5e,g:mF,G:hF,H:vF,I:vF,j:g5e,L:b5e,m:m5e,M:v5e,p:N,q:h5e,Q:C5e,s:S5e,S:y5e,u:u5e,U:c5e,V:d5e,w:l5e,W:f5e,x:D,X:H,y:mF,Y:hF,Z:p5e,"%":w5e};S.x=k(n,S),S.X=k(r,S),S.c=k(t,S),$.x=k(n,$),$.X=k(r,$),$.c=k(t,$);function k(fe,Se){return function(de){var ie=[],Pe=-1,$e=0,me=fe.length,ue,ce,Te;for(de instanceof Date||(de=new Date(+de));++Pe53)return null;"w"in ie||(ie.w=1),"Z"in ie?($e=GS(Kh(ie.y,0,1)),me=$e.getUTCDay(),$e=me>4||me===0?Tg.ceil($e):Tg($e),$e=SH.offset($e,(ie.V-1)*7),ie.y=$e.getUTCFullYear(),ie.m=$e.getUTCMonth(),ie.d=$e.getUTCDate()+(ie.w+6)%7):($e=US(Kh(ie.y,0,1)),me=$e.getDay(),$e=me>4||me===0?Mg.ceil($e):Mg($e),$e=hH.offset($e,(ie.V-1)*7),ie.y=$e.getFullYear(),ie.m=$e.getMonth(),ie.d=$e.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),me="Z"in ie?GS(Kh(ie.y,0,1)).getUTCDay():US(Kh(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(me+5)%7:ie.w+ie.U*7-(me+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,GS(ie)):US(ie)}}function I(fe,Se,de,ie){for(var Pe=0,$e=Se.length,me=de.length,ue,ce;Pe<$e;){if(ie>=me)return-1;if(ue=Se.charCodeAt(Pe++),ue===37){if(ue=Se.charAt(Pe++),ce=T[ue in pF?Se.charAt(Pe++):ue],!ce||(ie=ce(fe,de,ie))<0)return-1}else if(ue!=de.charCodeAt(ie++))return-1}return ie}function N(fe,Se,de){var ie=u.exec(Se.slice(de));return ie?(fe.p=c.get(ie[0].toLowerCase()),de+ie[0].length):-1}function E(fe,Se,de){var ie=y.exec(Se.slice(de));return ie?(fe.w=v.get(ie[0].toLowerCase()),de+ie[0].length):-1}function A(fe,Se,de){var ie=f.exec(Se.slice(de));return ie?(fe.w=p.get(ie[0].toLowerCase()),de+ie[0].length):-1}function z(fe,Se,de){var ie=x.exec(Se.slice(de));return ie?(fe.m=w.get(ie[0].toLowerCase()),de+ie[0].length):-1}function L(fe,Se,de){var ie=b.exec(Se.slice(de));return ie?(fe.m=C.get(ie[0].toLowerCase()),de+ie[0].length):-1}function O(fe,Se,de){return I(fe,t,Se,de)}function D(fe,Se,de){return I(fe,n,Se,de)}function H(fe,Se,de){return I(fe,r,Se,de)}function B(fe){return a[fe.getDay()]}function j(fe){return i[fe.getDay()]}function W(fe){return l[fe.getMonth()]}function U(fe){return s[fe.getMonth()]}function Z(fe){return o[+(fe.getHours()>=12)]}function Y(fe){return 1+~~(fe.getMonth()/3)}function se(fe){return a[fe.getUTCDay()]}function Q(fe){return i[fe.getUTCDay()]}function ne(fe){return l[fe.getUTCMonth()]}function re(fe){return s[fe.getUTCMonth()]}function ge(fe){return o[+(fe.getUTCHours()>=12)]}function xe(fe){return 1+~~(fe.getUTCMonth()/3)}return{format:function(fe){var Se=k(fe+="",S);return Se.toString=function(){return fe},Se},parse:function(fe){var Se=M(fe+="",!1);return Se.toString=function(){return fe},Se},utcFormat:function(fe){var Se=k(fe+="",$);return Se.toString=function(){return fe},Se},utcParse:function(fe){var Se=M(fe+="",!0);return Se.toString=function(){return fe},Se}}}var pF={"-":"",_:" ",0:"0"},Wr=/^\s*\d+/,i5e=/^%/,a5e=/[\\^$*+?|[\]().{}]/g;function vn(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function l5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function u5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function c5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function d5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function f5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hF(e,t,n){var r=Wr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function p5e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function h5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function m5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function g5e(e,t,n){var r=Wr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function vF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function v5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function y5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function b5e(e,t,n){var r=Wr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function x5e(e,t,n){var r=Wr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function w5e(e,t,n){var r=i5e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function C5e(e,t,n){var r=Wr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function S5e(e,t,n){var r=Wr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function yF(e,t){return vn(e.getDate(),t,2)}function $5e(e,t){return vn(e.getHours(),t,2)}function _5e(e,t){return vn(e.getHours()%12||12,t,2)}function k5e(e,t){return vn(1+hH.count(Sp(e),e),t,3)}function TH(e,t){return vn(e.getMilliseconds(),t,3)}function P5e(e,t){return TH(e,t)+"000"}function M5e(e,t){return vn(e.getMonth()+1,t,2)}function T5e(e,t){return vn(e.getMinutes(),t,2)}function E5e(e,t){return vn(e.getSeconds(),t,2)}function I5e(e){var t=e.getDay();return t===0?7:t}function R5e(e,t){return vn(Yy.count(Sp(e)-1,e),t,2)}function EH(e){var t=e.getDay();return t>=4||t===0?Yc(e):Yc.ceil(e)}function O5e(e,t){return e=EH(e),vn(Yc.count(Sp(e),e)+(Sp(e).getDay()===4),t,2)}function A5e(e){return e.getDay()}function F5e(e,t){return vn(Mg.count(Sp(e)-1,e),t,2)}function L5e(e,t){return vn(e.getFullYear()%100,t,2)}function D5e(e,t){return e=EH(e),vn(e.getFullYear()%100,t,2)}function j5e(e,t){return vn(e.getFullYear()%1e4,t,4)}function N5e(e,t){var n=e.getDay();return e=n>=4||n===0?Yc(e):Yc.ceil(e),vn(e.getFullYear()%1e4,t,4)}function z5e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vn(t/60|0,"0",2)+vn(t%60,"0",2)}function bF(e,t){return vn(e.getUTCDate(),t,2)}function B5e(e,t){return vn(e.getUTCHours(),t,2)}function H5e(e,t){return vn(e.getUTCHours()%12||12,t,2)}function W5e(e,t){return vn(1+SH.count($p(e),e),t,3)}function IH(e,t){return vn(e.getUTCMilliseconds(),t,3)}function V5e(e,t){return IH(e,t)+"000"}function U5e(e,t){return vn(e.getUTCMonth()+1,t,2)}function G5e(e,t){return vn(e.getUTCMinutes(),t,2)}function q5e(e,t){return vn(e.getUTCSeconds(),t,2)}function K5e(e){var t=e.getUTCDay();return t===0?7:t}function Y5e(e,t){return vn(Xy.count($p(e)-1,e),t,2)}function RH(e){var t=e.getUTCDay();return t>=4||t===0?Xc(e):Xc.ceil(e)}function X5e(e,t){return e=RH(e),vn(Xc.count($p(e),e)+($p(e).getUTCDay()===4),t,2)}function Q5e(e){return e.getUTCDay()}function Z5e(e,t){return vn(Tg.count($p(e)-1,e),t,2)}function J5e(e,t){return vn(e.getUTCFullYear()%100,t,2)}function eTe(e,t){return e=RH(e),vn(e.getUTCFullYear()%100,t,2)}function tTe(e,t){return vn(e.getUTCFullYear()%1e4,t,4)}function nTe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xc(e):Xc.ceil(e),vn(e.getUTCFullYear()%1e4,t,4)}function rTe(){return"+0000"}function xF(){return"%"}function wF(e){return+e}function CF(e){return Math.floor(+e/1e3)}var ef,y0,OH,K5,AH;oTe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function oTe(e){return ef=o5e(e),y0=ef.format,OH=ef.parse,K5=ef.utcFormat,AH=ef.utcParse,ef}function iTe(e){return new Date(e)}function aTe(e){return e instanceof Date?+e:+new Date(+e)}function Y5(e,t,n,r,o,i,a,s,l,u){var c=RB(),f=c.invert,p=c.domain,y=u(".%L"),v=u(":%S"),b=u("%I:%M"),C=u("%I %p"),x=u("%a %d"),w=u("%b %d"),S=u("%B"),$=u("%Y");function T(k){return(l(k)QPe(e[e.length-1]);var bw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Qt);const uTe=Nn(bw);var xw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Qt);const cTe=Nn(xw);var ww=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Qt);const dTe=Nn(ww);var Cw=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Qt);const fTe=Nn(Cw);var Sw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Qt);const pTe=Nn(Sw);var $w=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Qt);const hTe=Nn($w);var _w=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Qt);const mTe=Nn(_w);var kw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Qt);const gTe=Nn(kw);var Pw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Qt);const vTe=Nn(Pw);var Mw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Qt);const yTe=Nn(Mw);var Tw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Qt);const bTe=Nn(Tw);var Ew=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Qt);const xTe=Nn(Ew);var Iw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Qt);const wTe=Nn(Iw);var Rw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Qt);const CTe=Nn(Rw);var Ow=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Qt);const STe=Nn(Ow);var Aw=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Qt);const $Te=Nn(Aw);var Fw=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Qt);const _Te=Nn(Fw);var Lw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Qt);const kTe=Nn(Lw);var Dw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Qt);const PTe=Nn(Dw);var jw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Qt);const MTe=Nn(jw);var Nw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Qt);const TTe=Nn(Nw);var zw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Qt);const ETe=Nn(zw);var Bw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Qt);const ITe=Nn(Bw);var Hw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Qt);const RTe=Nn(Hw);var Ww=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Qt);const OTe=Nn(Ww);var Vw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Qt);const ATe=Nn(Vw);var Uw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Qt);const FTe=Nn(Uw);function LTe(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}function Gw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zp(){}var Qc=.7,_p=1/Qc,Kf="\\s*([+-]?\\d+)\\s*",Eg="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ss="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DTe=/^#([0-9a-f]{3,8})$/,jTe=new RegExp("^rgb\\("+[Kf,Kf,Kf]+"\\)$"),NTe=new RegExp("^rgb\\("+[ss,ss,ss]+"\\)$"),zTe=new RegExp("^rgba\\("+[Kf,Kf,Kf,Eg]+"\\)$"),BTe=new RegExp("^rgba\\("+[ss,ss,ss,Eg]+"\\)$"),HTe=new RegExp("^hsl\\("+[Eg,ss,ss]+"\\)$"),WTe=new RegExp("^hsla\\("+[Eg,ss,ss,Eg]+"\\)$"),SF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gw(Zp,Z5,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:$F,formatHex:$F,formatHsl:VTe,formatRgb:_F,toString:_F});function $F(){return this.rgb().formatHex()}function VTe(){return UH(this).formatHsl()}function _F(){return this.rgb().formatRgb()}function Z5(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DTe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?kF(t):n===3?new _o(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Yv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Yv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=jTe.exec(e))?new _o(t[1],t[2],t[3],1):(t=NTe.exec(e))?new _o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zTe.exec(e))?Yv(t[1],t[2],t[3],t[4]):(t=BTe.exec(e))?Yv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=HTe.exec(e))?TF(t[1],t[2]/100,t[3]/100,1):(t=WTe.exec(e))?TF(t[1],t[2]/100,t[3]/100,t[4]):SF.hasOwnProperty(e)?kF(SF[e]):e==="transparent"?new _o(NaN,NaN,NaN,0):null}function kF(e){return new _o(e>>16&255,e>>8&255,e&255,1)}function Yv(e,t,n,r){return r<=0&&(e=t=n=NaN),new _o(e,t,n,r)}function WH(e){return e instanceof Zp||(e=Z5(e)),e?(e=e.rgb(),new _o(e.r,e.g,e.b,e.opacity)):new _o}function VH(e,t,n,r){return arguments.length===1?WH(e):new _o(e,t,n,r??1)}function _o(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gw(_o,VH,Q5(Zp,{brighter:function(e){return e=e==null?_p:Math.pow(_p,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Qc:Math.pow(Qc,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:PF,formatHex:PF,formatRgb:MF,toString:MF}));function PF(){return"#"+qS(this.r)+qS(this.g)+qS(this.b)}function MF(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function qS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function TF(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Za(e,t,n,r)}function UH(e){if(e instanceof Za)return new Za(e.h,e.s,e.l,e.opacity);if(e instanceof Zp||(e=Z5(e)),!e)return new Za;if(e instanceof Za)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Za(a,s,l,e.opacity)}function UTe(e,t,n,r){return arguments.length===1?UH(e):new Za(e,t,n,r??1)}function Za(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gw(Za,UTe,Q5(Zp,{brighter:function(e){return e=e==null?_p:Math.pow(_p,e),new Za(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Qc:Math.pow(Qc,e),new Za(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _o(KS(e>=240?e-240:e+120,o,r),KS(e,o,r),KS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function KS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const GTe=Math.PI/180,qTe=180/Math.PI;var GH=-.14861,J5=1.78277,eT=-.29227,qw=-.90649,Ig=1.97294,EF=Ig*qw,IF=Ig*J5,RF=J5*eT-qw*GH;function KTe(e){if(e instanceof Sc)return new Sc(e.h,e.s,e.l,e.opacity);e instanceof _o||(e=WH(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(RF*r+EF*t-IF*n)/(RF+EF-IF),i=r-o,a=(Ig*(n-o)-eT*i)/qw,s=Math.sqrt(a*a+i*i)/(Ig*o*(1-o)),l=s?Math.atan2(a,i)*qTe-120:NaN;return new Sc(l<0?l+360:l,s,o,e.opacity)}function pu(e,t,n,r){return arguments.length===1?KTe(e):new Sc(e,t,n,r??1)}function Sc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gw(Sc,pu,Q5(Zp,{brighter:function(e){return e=e==null?_p:Math.pow(_p,e),new Sc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Qc:Math.pow(Qc,e),new Sc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*GTe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new _o(255*(t+n*(GH*r+J5*o)),255*(t+n*(eT*r+qw*o)),255*(t+n*(Ig*r)),this.opacity)}}));const YTe=F5(pu(300,.5,0),pu(-240,.5,1));var XTe=F5(pu(-100,.75,.35),pu(80,1.5,.8)),QTe=F5(pu(260,.75,.35),pu(80,1.5,.8)),Xv=pu();function ZTe(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Xv.h=360*e-100,Xv.s=1.5-1.5*t,Xv.l=.8-.9*t,Xv+""}var Qv=VH(),JTe=Math.PI/3,e3e=Math.PI*2/3;function t3e(e){var t;return e=(.5-e)*Math.PI,Qv.r=255*(t=Math.sin(e))*t,Qv.g=255*(t=Math.sin(e+JTe))*t,Qv.b=255*(t=Math.sin(e+e3e))*t,Qv+""}function n3e(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Kw(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const r3e=Kw(Qt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var o3e=Kw(Qt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),i3e=Kw(Qt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a3e=Kw(Qt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),s3e="__lodash_hash_undefined__";function l3e(e){return this.__data__.set(e,s3e),this}var u3e=l3e;function c3e(e){return this.__data__.has(e)}var d3e=c3e,f3e=x5,p3e=u3e,h3e=d3e;function Qy(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new f3e;++t-1}var qH=P3e;function M3e(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=L3e&&(i=F3e,a=!1,t=new E3e(t));e:for(;++oXu)if(!(Math.abs(c*s-l*u)>Xu)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-i,y=r-a,v=s*s+l*l,b=p*p+y*y,C=Math.sqrt(v),x=Math.sqrt(f),w=o*Math.tan((fk-Math.acos((v+f-b)/(2*C*x)))/2),S=w/x,$=w/C;Math.abs(S-1)>Xu&&(this._+="L"+(e+S*u)+","+(t+S*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*y)+","+(this._x1=e+$*s)+","+(this._y1=t+$*l)}},arc:function(e,t,n,r,o,i){e=+e,t=+t,n=+n,i=!!i;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Xu||Math.abs(this._y1-u)>Xu)&&(this._+="L"+l+","+u),n&&(f<0&&(f=f%pk+pk),f>V3e?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):f>Xu&&(this._+="A"+n+","+n+",0,"+ +(f>=fk)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function gn(e){return function(){return e}}var OF=Math.abs,oo=Math.atan2,Vu=Math.cos,U3e=Math.max,YS=Math.min,Na=Math.sin,Tf=Math.sqrt,so=1e-12,Rg=Math.PI,Zy=Rg/2,A1=2*Rg;function G3e(e){return e>1?0:e<-1?Rg:Math.acos(e)}function AF(e){return e>=1?Zy:e<=-1?-Zy:Math.asin(e)}function q3e(e){return e.innerRadius}function K3e(e){return e.outerRadius}function Y3e(e){return e.startAngle}function X3e(e){return e.endAngle}function Q3e(e){return e&&e.padAngle}function Z3e(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,f=s-i,p=f*l-c*u;if(!(p*pO*O+D*D&&(I=E,N=A),{cx:I,cy:N,x01:-c,y01:-f,x11:I*(o/T-1),y11:N*(o/T-1)}}function J3e(){var e=q3e,t=K3e,n=gn(0),r=null,o=Y3e,i=X3e,a=Q3e,s=null;function l(){var u,c,f=+e.apply(this,arguments),p=+t.apply(this,arguments),y=o.apply(this,arguments)-Zy,v=i.apply(this,arguments)-Zy,b=OF(v-y),C=v>y;if(s||(s=u=Yw()),pso))s.moveTo(0,0);else if(b>A1-so)s.moveTo(p*Vu(y),p*Na(y)),s.arc(0,0,p,y,v,!C),f>so&&(s.moveTo(f*Vu(v),f*Na(v)),s.arc(0,0,f,v,y,C));else{var x=y,w=v,S=y,$=v,T=b,k=b,M=a.apply(this,arguments)/2,I=M>so&&(r?+r.apply(this,arguments):Tf(f*f+p*p)),N=YS(OF(p-f)/2,+n.apply(this,arguments)),E=N,A=N,z,L;if(I>so){var O=AF(I/f*Na(M)),D=AF(I/p*Na(M));(T-=O*2)>so?(O*=C?1:-1,S+=O,$-=O):(T=0,S=$=(y+v)/2),(k-=D*2)>so?(D*=C?1:-1,x+=D,w-=D):(k=0,x=w=(y+v)/2)}var H=p*Vu(x),B=p*Na(x),j=f*Vu($),W=f*Na($);if(N>so){var U=p*Vu(w),Z=p*Na(w),Y=f*Vu(S),se=f*Na(S),Q;if(bso?A>so?(z=Zv(Y,se,H,B,p,A,C),L=Zv(U,Z,j,W,p,A,C),s.moveTo(z.cx+z.x01,z.cy+z.y01),Aso)||!(T>so)?s.lineTo(j,W):E>so?(z=Zv(j,W,U,Z,f,-E,C),L=Zv(H,B,Y,se,f,-E,C),s.lineTo(z.cx+z.x01,z.cy+z.y01),E=p;--y)s.point(w[y],S[y]);s.lineEnd(),s.areaEnd()}C&&(w[f]=+e(b,f,c),S[f]=+n(b,f,c),s.point(t?+t(b,f,c):w[f],r?+r(b,f,c):S[f]))}if(x)return s=null,x+""||null}function u(){return oT().defined(o).curve(a).context(i)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),t=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),l):e},l.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:gn(+c),l):t},l.y=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),r=null,l):n},l.y0=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),l):n},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:gn(+c),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(c){return arguments.length?(o=typeof c=="function"?c:gn(!!c),l):o},l.curve=function(c){return arguments.length?(a=c,i!=null&&(s=a(i)),l):a},l.context=function(c){return arguments.length?(c==null?i=s=null:s=a(i=c),l):i},l}function tEe(e,t){return te?1:t>=e?0:NaN}function nEe(e){return e}function rEe(){var e=nEe,t=tEe,n=null,r=gn(0),o=gn(A1),i=gn(0);function a(s){var l,u=s.length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(A1,Math.max(-A1,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:gn(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:gn(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:gn(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:gn(+s),a):i},a}var FF=Array.prototype.slice;function hu(){}function Jy(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 Xw(e){this._context=e}Xw.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:Jy(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:Jy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oEe(e){return new Xw(e)}function JH(e){this._context=e}JH.prototype={areaStart:hu,areaEnd:hu,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:Jy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iEe(e){return new JH(e)}function eW(e){this._context=e}eW.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:Jy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aEe(e){return new eW(e)}function tW(e,t){this._basis=new Xw(e),this._beta=t}tW.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],o=t[0],i=e[n]-r,a=t[n]-o,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*i),this._beta*t[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const sEe=function e(t){function n(r){return t===1?new Xw(r):new tW(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function eb(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function iT(e,t){this._context=e,this._k=(1-t)/6}iT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:eb(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:eb(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lEe=function e(t){function n(r){return new iT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aT(e,t){this._context=e,this._k=(1-t)/6}aT.prototype={areaStart:hu,areaEnd:hu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:eb(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uEe=function e(t){function n(r){return new aT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function sT(e,t){this._context=e,this._k=(1-t)/6}sT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:eb(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cEe=function e(t){function n(r){return new sT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function lT(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>so){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>so){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function nW(e,t){this._context=e,this._alpha=t}nW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:lT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dEe=function e(t){function n(r){return t?new nW(r,t):new iT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rW(e,t){this._context=e,this._alpha=t}rW.prototype={areaStart:hu,areaEnd:hu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:lT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fEe=function e(t){function n(r){return t?new rW(r,t):new aT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oW(e,t){this._context=e,this._alpha=t}oW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:lT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pEe=function e(t){function n(r){return t?new oW(r,t):new sT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function iW(e){this._context=e}iW.prototype={areaStart:hu,areaEnd:hu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hEe(e){return new iW(e)}function LF(e){return e<0?-1:1}function DF(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(LF(i)+LF(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function jF(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function XS(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function tb(e){this._context=e}tb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:XS(this,this._t0,jF(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,XS(this,jF(this,n=DF(this,e,t)),n);break;default:XS(this,this._t0,n=DF(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function aW(e){this._context=new sW(e)}(aW.prototype=Object.create(tb.prototype)).point=function(e,t){tb.prototype.point.call(this,t,e)};function sW(e){this._context=e}sW.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function mEe(e){return new tb(e)}function gEe(e){return new aW(e)}function lW(e){this._context=e}lW.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=NF(e),o=NF(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function yEe(e){return new Qw(e,.5)}function bEe(e){return new Qw(e,0)}function xEe(e){return new Qw(e,1)}function kp(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function wEe(e,t){return e[t]}function CEe(){var e=gn([]),t=Pp,n=kp,r=wEe;function o(i){var a=e.apply(this,arguments),s,l=i.length,u=a.length,c=new Array(u),f;for(s=0;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function $Ee(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;ri&&(i=o,n=t);return n}function cW(e){var t=e.map(dW);return Pp(e).sort(function(n,r){return t[n]-t[r]})}function dW(e){for(var t=0,n=-1,r=e.length,o;++n0&&n(s)?t>1?pW(s,t-1,n,r,o):oIe(o,s):r||(o[o.length]=s)}return o}var hW=pW,aIe=hW;function sIe(e){var t=e==null?0:e.length;return t?aIe(e,1):[]}var lIe=sIe,uIe=lIe,cIe=pB,dIe=hB;function fIe(e){return dIe(cIe(e,void 0,uIe),e+"")}var mW=fIe,pIe=ZEe,hIe=mW,mIe=hIe(function(e,t){return e==null?{}:pIe(e,t)}),gIe=mIe;const vIe=Or(gIe);function yIe(e,t){for(var n=-1,r=e==null?0:e.length;++ns))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,p=!0,y=n&$Ie?new xIe:void 0;for(i.set(e,t),i.set(t,e);++f=0||(o[n]=e[n]);return o}var mu={fill:R.string,fontSize:R.number,fontFamily:R.string},sOe=R.shape({domain:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}).isRequired,ticks:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired,text:R.shape(Rr({},mu)).isRequired}).isRequired,legend:R.shape({text:R.shape(Rr({},mu)).isRequired}).isRequired}),lOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),uOe=R.shape({hidden:R.shape({symbol:R.shape({fill:R.string.isRequired,opacity:R.number}).isRequired,text:R.shape(Rr({},mu,{opacity:R.number})).isRequired}).isRequired,text:R.shape(Rr({},mu)).isRequired}),cOe=R.shape({text:R.shape(Rr({},mu)).isRequired}),dOe=R.shape({text:R.shape(Rr({},mu)).isRequired}),fOe=R.shape({text:R.shape(Rr({},mu)).isRequired}),pOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),hOe=R.shape({text:R.shape(Rr({},mu,{outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired})).isRequired,link:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,outline:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,symbol:R.shape({fill:R.string.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired});R.shape({background:R.string.isRequired,fontFamily:R.string.isRequired,fontSize:R.number.isRequired,textColor:R.string.isRequired,axis:sOe.isRequired,grid:lOe.isRequired,legends:uOe.isRequired,labels:cOe.isRequired,dots:dOe.isRequired,markers:fOe,crosshair:pOe.isRequired,annotations:hOe.isRequired});var mOe={background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},gOe=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],vOe=function(e,t){var n=Lke({},e,t);return gOe.forEach(function(r){au(n,r+".fontFamily")===void 0&&sc(n,r+".fontFamily",n.fontFamily),au(n,r+".fontSize")===void 0&&sc(n,r+".fontSize",n.fontSize),au(n,r+".fill")===void 0&&sc(n,r+".fill",n.textColor)}),n},SW=m.createContext(),hT=function(e){var t=e.children,n=e.animate,r=e.config,o=m.useMemo(function(){var i=yi.isString(r)?m5[r]:r;return{animate:n,config:i}},[n,r]);return g.jsx(SW.Provider,{value:o,children:t})},wk={animate:R.bool,motionConfig:R.oneOfType([R.oneOf(Object.keys(m5)),R.shape({mass:R.number,tension:R.number,friction:R.number,clamp:R.bool,precision:R.number,velocity:R.number,duration:R.number,easing:R.func})])};hT.propTypes={children:R.node.isRequired,animate:wk.animate,config:wk.motionConfig};var yOe={animate:!0,config:"default"};hT.defaultProps=yOe;var To=function(){return m.useContext(SW)},mT=function(e){var t=To(),n=t.animate,r=t.config,o=function(s){var l=m.useRef();return m.useEffect(function(){l.current=s},[s]),l.current}(e),i=m.useMemo(function(){return $B(o,e)},[o,e]),a=xs({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return fu(a,i)},bOe={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:St(bw),PRGn:St(xw),PiYG:St(ww),PuOr:St(Cw),RdBu:St(Sw),RdGy:St($w),RdYlBu:St(_w),RdYlGn:St(kw),spectral:St(Pw),blues:St(zw),greens:St(Bw),greys:St(Hw),oranges:St(Uw),purples:St(Ww),reds:St(Vw),BuGn:St(Mw),BuPu:St(Tw),GnBu:St(Ew),OrRd:St(Iw),PuBuGn:St(Rw),PuBu:St(Ow),PuRd:St(Aw),RdPu:St(Fw),YlGnBu:St(Lw),YlGn:St(Dw),YlOrBr:St(jw),YlOrRd:St(Nw)},xOe=Object.keys(bOe);St(bw),St(xw),St(ww),St(Cw),St(Sw),St($w),St(_w),St(kw),St(Pw),St(zw),St(Bw),St(Hw),St(Uw),St(Ww),St(Vw),St(Mw),St(Tw),St(Ew),St(Iw),St(Rw),St(Ow),St(Aw),St(Fw),St(Lw),St(Dw),St(jw),St(Nw);R.oneOfType([R.oneOf(xOe),R.func,R.arrayOf(R.string)]);var Ck={basis:oEe,basisClosed:iEe,basisOpen:aEe,bundle:sEe,cardinal:lEe,cardinalClosed:uEe,cardinalOpen:cEe,catmullRom:dEe,catmullRomClosed:fEe,catmullRomOpen:pEe,linear:rT,linearClosed:hEe,monotoneX:mEe,monotoneY:gEe,natural:vEe,step:yEe,stepAfter:xEe,stepBefore:bEe},Jw=Object.keys(Ck);R.oneOf(Jw);Jw.filter(function(e){return e.endsWith("Closed")});YH(Jw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var wOe=YH(Jw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),COe=R.oneOf(wOe),$W=function(e){if(!Ck[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Ck[e]},SOe={defs:R.arrayOf(R.shape({id:R.string.isRequired})).isRequired,fill:R.arrayOf(R.shape({id:R.string.isRequired,match:R.oneOfType([R.oneOf(["*"]),R.object,R.func]).isRequired})).isRequired},$Oe={ascending:cW,descending:MEe,insideOut:TEe,none:Pp,reverse:EEe},_Oe=Object.keys($Oe);R.oneOf(_Oe);var kOe={expand:SEe,diverging:uW,none:kp,silhouette:$Ee,wiggle:_Ee},POe=Object.keys(kOe);R.oneOf(POe);R.shape({top:R.number,right:R.number,bottom:R.number,left:R.number}).isRequired;var MOe=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],gT=R.oneOf(MOe);lc(X5);var TOe={top:0,right:0,bottom:0,left:0},x0=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=Rr({},TOe,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},_W=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],o=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var a=i[0];return r(a.contentRect)})})[0];return m.useEffect(function(){return e.current&&o!==null&&o.observe(e.current),function(){o!==null&&o.disconnect()}},[]),[e,n]},EOe=function(e){return m.useMemo(function(){return vOe(mOe,e)},[e])},IOe=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?y0(e.slice("5")):Mu(e):function(t){return""+t}},Og=function(e){return m.useMemo(function(){return IOe(e)},[e])},kW=m.createContext(),ROe={},PW=function(e){var t=e.theme,n=t===void 0?ROe:t,r=e.children,o=EOe(n);return g.jsx(kW.Provider,{value:o,children:r})};PW.propTypes={children:R.node.isRequired,theme:R.object};var On=function(){return m.useContext(kW)},MW=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t};MW.propTypes={children:R.node.isRequired,condition:R.bool.isRequired,wrapper:R.element.isRequired};var OOe={position:"relative"},w0=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,o=r===void 0||r,i=e.isInteractive,a=i===void 0||i,s=e.animate,l=e.motionConfig,u=m.useRef(null);return g.jsx(PW,{theme:n,children:g.jsx(hT,{animate:s,config:l,children:g.jsx(vwe,{container:u,children:g.jsxs(MW,{condition:o,wrapper:g.jsx("div",{style:OOe,ref:u}),children:[t,a&&g.jsx(gwe,{})]})})})})};w0.propTypes={children:R.element.isRequired,isInteractive:R.bool,renderWrapper:R.bool,theme:R.object,animate:R.bool,motionConfig:R.string};R.func.isRequired,R.bool,R.bool,R.object.isRequired,R.bool.isRequired,R.string;var eh=function(e){var t=e.children,n=_W(),r=n[0],o=n[1],i=o.width>0&&o.height>0;return g.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:o.width,height:o.height})})};eh.propTypes={children:R.func.isRequired};var AOe=["id","colors"],TW=function(e){var t=e.id,n=e.colors,r=pT(e,AOe);return g.jsx("linearGradient",Rr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(o){var i=o.offset,a=o.color,s=o.opacity;return g.jsx("stop",{offset:i+"%",stopColor:a,stopOpacity:s!==void 0?s:1},i)})}))};TW.propTypes={id:R.string.isRequired,colors:R.arrayOf(R.shape({offset:R.number.isRequired,color:R.string.isRequired,opacity:R.number})).isRequired,gradientTransform:R.string};var EW={linearGradient:TW},F1=m.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=o/2,u=i/2;return a===!0&&(s=2*o+2*i),g.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:s,height:s,fill:n}),g.jsx("circle",{cx:u+l,cy:u+l,r:l,fill:r}),a&&g.jsx("circle",{cx:1.5*i+o+l,cy:1.5*i+o+l,r:l,fill:r})]})});F1.displayName="PatternDots",F1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},F1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Qi=function(e){return e*Math.PI/180},e2=function(e){return 180*e/Math.PI},FOe=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},$c=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},LOe=function(e){var t=e%360;return t<0&&(t+=360),t},DOe={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},L1=m.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,o=e.background,i=e.color,a=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var u,c=l,f=l;return s===0?u=` +`)+Ge+`return __p +}`;var qt=QI(function(){return yn(q,wt+"return "+Ge).apply(n,J)});if(qt.source=Ge,MC(qt))throw qt;return qt}function DJ(d){return Cn(d).toLowerCase()}function jJ(d){return Cn(d).toUpperCase()}function NJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return aE(d);if(!d||!(h=ti(h)))return d;var F=ua(d),V=ua(h),q=sE(F,V),J=lE(F,V)+1;return Cl(F,q,J).join("")}function zJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.slice(0,cE(d)+1);if(!d||!(h=ti(h)))return d;var F=ua(d),V=lE(F,ua(h))+1;return Cl(F,0,V).join("")}function BJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.replace(cn,"");if(!d||!(h=ti(h)))return d;var F=ua(d),V=sE(F,ua(h));return Cl(F,V).join("")}function HJ(d,h){var _=E,F=A;if(ir(h)){var V="separator"in h?h.separator:V;_="length"in h?Gt(h.length):_,F="omission"in h?ti(h.omission):F}d=Cn(d);var q=d.length;if(Rd(d)){var J=ua(d);q=J.length}if(_>=q)return d;var ae=_-Od(F);if(ae<1)return F;var ve=J?Cl(J,0,ae).join(""):d.slice(0,ae);if(V===n)return ve+F;if(J&&(ae+=ve.length-ae),TC(V)){if(d.slice(ae).search(V)){var He,We=ve;for(V.global||(V=U2(V.source,Cn(Fe.exec(V))+"g")),V.lastIndex=0;He=V.exec(We);)var Ge=He.index;ve=ve.slice(0,Ge===n?ae:Ge)}}else if(d.indexOf(ti(V),ae)!=ae){var st=ve.lastIndexOf(V);st>-1&&(ve=ve.slice(0,st))}return ve+F}function WJ(d){return d=Cn(d),d&&_t.test(d)?d.replace(Je,yK):d}var VJ=zd(function(d,h,_){return d+(_?" ":"")+h.toUpperCase()}),RC=ZE("toUpperCase");function XI(d,h,_){return d=Cn(d),h=_?n:h,h===n?pK(d)?wK(d):oK(d):d.match(h)||[]}var QI=Zt(function(d,h){try{return Jo(d,n,h)}catch(_){return MC(_)?_:new Nt(_)}}),UJ=Os(function(d,h){return Pi(h,function(_){_=La(_),Is(d,_,kC(d[_],d))}),d});function GJ(d){var h=d==null?0:d.length,_=Mt();return d=h?er(d,function(F){if(typeof F[1]!="function")throw new Mi(a);return[_(F[0]),F[1]]}):[],Zt(function(F){for(var V=-1;++Vj)return[];var _=Z,F=eo(d,Z);h=Mt(h),d-=Z;for(var V=H2(F,h);++_0||h<0)?new rn(_):(d<0?_=_.takeRight(-d):d&&(_=_.drop(d)),h!==n&&(h=Gt(h),_=h<0?_.dropRight(-h):_.take(h-d)),_)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(Z)},Aa(rn.prototype,function(d,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),F=/^(?:head|last)$/.test(h),V=G[F?"take"+(h=="last"?"Right":""):h],q=F||/^find/.test(h);V&&(G.prototype[h]=function(){var J=this.__wrapped__,ae=F?[1]:arguments,ve=J instanceof rn,He=ae[0],We=ve||Bt(J),Ge=function(tn){var sn=V.apply(G,gl([tn],ae));return F&&st?sn[0]:sn};We&&_&&typeof He=="function"&&He.length!=1&&(ve=We=!1);var st=this.__chain__,wt=!!this.__actions__.length,Et=q&&!st,qt=ve&&!wt;if(!q&&We){J=qt?J:new rn(this);var It=d.apply(J,ae);return It.__actions__.push({func:sv,args:[Ge],thisArg:n}),new Ti(It,st)}return Et&&qt?d.apply(this,ae):(It=this.thru(Ge),Et?F?It.value()[0]:It.value():It)})}),Pi(["pop","push","shift","sort","splice","unshift"],function(d){var h=O0[d],_=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",F=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var V=arguments;if(F&&!this.__chain__){var q=this.value();return h.apply(Bt(q)?q:[],V)}return this[_](function(J){return h.apply(Bt(J)?J:[],V)})}}),Aa(rn.prototype,function(d,h){var _=G[h];if(_){var F=_.name+"";kn.call(Dd,F)||(Dd[F]=[]),Dd[F].push({name:h,func:_})}}),Dd[ev(n,x).name]=[{name:"wrapper",func:n}],rn.prototype.clone=WK,rn.prototype.reverse=VK,rn.prototype.value=UK,G.prototype.at=xQ,G.prototype.chain=wQ,G.prototype.commit=CQ,G.prototype.next=SQ,G.prototype.plant=_Q,G.prototype.reverse=kQ,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=PQ,G.prototype.first=G.prototype.head,sh&&(G.prototype[sh]=$Q),G},Ad=CK();Ou?((Ou.exports=Ad)._=Ad,A2._=Ad):Vr._=Ad}).call(Vs)})(Hy,Hy.exports);var yi=Hy.exports;function iMe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var kB=iMe;const St=Or(kB);function PB(e,t){return et?1:e>=t?0:NaN}function gw(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=aMe(e));function r(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)<0?l=c+1:u=c}return l}function o(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)>0?u=c:l=c+1}return l}function i(a,s,l,u){l==null&&(l=0),u==null&&(u=a.length);const c=r(a,s,l,u-1);return c>l&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:i,right:o}}function aMe(e){return(t,n)=>PB(e(t),n)}function sMe(e){return e===null?NaN:+e}const lMe=gw(PB),uMe=lMe.right;gw(sMe).center;const MB=uMe;class Y6 extends Map{constructor(t,n=fMe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(X6(this,t))}has(t){return super.has(X6(this,t))}set(t,n){return super.set(cMe(this,t),n)}delete(t){return super.delete(dMe(this,t))}}function X6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function dMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function fMe(e){return e!==null&&typeof e=="object"?e.valueOf():e}var sk=Math.sqrt(50),lk=Math.sqrt(10),uk=Math.sqrt(2);function yp(e,t,n){var r,o=-1,i,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let l=Math.round(e/s),u=Math.round(t/s);for(l*st&&--u,a=new Array(i=u-l+1);++ot&&--u,a=new Array(i=u-l+1);++o=0?(i>=sk?10:i>=lk?5:i>=uk?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=sk?10:i>=lk?5:i>=uk?2:1)}function bp(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=sk?o*=10:i>=lk?o*=5:i>=uk&&(o*=2),tt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vMe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?yMe:vMe,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),kg)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,mMe),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=$B,c()},f.clamp=function(p){return arguments.length?(a=p?!0:kf,c()):a!==kf},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function IB(){return D5()(kf,kf)}function bMe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Wy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function xp(e){return e=Wy(Math.abs(e)),e?e[1]:NaN}function xMe(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function wMe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var CMe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wp(e){if(!(t=CMe.exec(e)))throw new Error("invalid format: "+e);var t;return new j5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}wp.prototype=j5.prototype;function j5(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}j5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SMe(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var RB;function $Me(e,t){var n=Wy(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(RB=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Wy(e,Math.max(0,t+i-1))[0]}function J6(e,t){var n=Wy(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const eF={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:bMe,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return J6(e*100,t)},r:J6,s:$Me,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function tF(e){return e}var nF=Array.prototype.map,rF=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _Me(e){var t=e.grouping===void 0||e.thousands===void 0?tF:xMe(nF.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?tF:wMe(nF.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=wp(f);var p=f.fill,y=f.align,v=f.sign,b=f.symbol,C=f.zero,x=f.width,w=f.comma,S=f.precision,$=f.trim,T=f.type;T==="n"?(w=!0,T="g"):eF[T]||(S===void 0&&(S=12),$=!0,T="g"),(C||p==="0"&&y==="=")&&(C=!0,p="0",y="=");var k=b==="$"?n:b==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",M=b==="$"?r:/[%p]/.test(T)?a:"",I=eF[T],N=/[defgprs%]/.test(T);S=S===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function E(A){var z=k,L=M,O,D,H;if(T==="c")L=I(A)+L,A="";else{A=+A;var B=A<0||1/A<0;if(A=isNaN(A)?l:I(Math.abs(A),S),$&&(A=SMe(A)),B&&+A==0&&v!=="+"&&(B=!1),z=(B?v==="("?v:s:v==="-"||v==="("?"":v)+z,L=(T==="s"?rF[8+RB/3]:"")+L+(B&&v==="("?")":""),N){for(O=-1,D=A.length;++OH||H>57){L=(H===46?o+A.slice(O+1):A.slice(O))+L,A=A.slice(0,O);break}}}w&&!C&&(A=t(A,1/0));var j=z.length+A.length+L.length,W=j>1)+z+A+L+W.slice(j);break;default:A=W+z+A+L;break}return i(A)}return E.toString=function(){return f+""},E}function c(f,p){var y=u((f=wp(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(xp(p)/3)))*3,b=Math.pow(10,-v),C=rF[8+v/3];return function(x){return y(b*x)+C}}return{format:u,formatPrefix:c}}var qv,Pu,N5;kMe({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function kMe(e){return qv=_Me(e),Pu=qv.format,N5=qv.formatPrefix,qv}function OB(e){return Math.max(0,-xp(Math.abs(e)))}function AB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xp(t)/3)))*3-xp(Math.abs(e)))}function FB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xp(t)-xp(e))+1}function PMe(e,t,n,r){var o=bp(e,t,n),i;switch(r=wp(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=AB(o,a))&&(r.precision=i),N5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=FB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=OB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Pu(r)}function LB(e){var t=e.domain;return e.ticks=function(n){var r=t();return yp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return PMe(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=F5(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function DB(){var e=IB();return e.copy=function(){return vw(e,DB())},dd.apply(e,arguments),LB(e)}function jB(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i0){for(;p<=y;++p)for(b=1,v=i(p);bc)break;w.push(C)}}else for(;p<=y;++p)for(b=r-1,v=i(p);b>=1;--b)if(C=v*b,!(Cc)break;w.push(C)}w.length*20))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return NS.setTime(+i),zS.setTime(+a),e(NS),e(zS),Math.floor(n(NS,zS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Vy=Hr(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Hr(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Vy};const FMe=Vy;Vy.range;const Ks=1e3,Gi=Ks*60,Ys=Gi*60,Gc=Ys*24,z5=Gc*7,uF=Gc*30,BS=Gc*365;var BB=Hr(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ks)},function(e,t){return(t-e)/Ks},function(e){return e.getUTCSeconds()});const Pf=BB;BB.range;var HB=Hr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ks)},function(e,t){e.setTime(+e+t*Gi)},function(e,t){return(t-e)/Gi},function(e){return e.getMinutes()});const WB=HB;HB.range;var VB=Hr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ks-e.getMinutes()*Gi)},function(e,t){e.setTime(+e+t*Ys)},function(e,t){return(t-e)/Ys},function(e){return e.getHours()});const UB=VB;VB.range;var GB=Hr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Gi)/Gc,e=>e.getDate()-1);const qB=GB;GB.range;function fd(e){return Hr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Gi)/z5})}var B5=fd(0),LMe=fd(1),DMe=fd(2),jMe=fd(3),NMe=fd(4),zMe=fd(5),BMe=fd(6);B5.range;LMe.range;DMe.range;jMe.range;NMe.range;zMe.range;BMe.range;var KB=Hr(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const YB=KB;KB.range;var H5=Hr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});H5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Hr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const XB=H5;H5.range;var QB=Hr(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Gi)},function(e,t){return(t-e)/Gi},function(e){return e.getUTCMinutes()});const ZB=QB;QB.range;var JB=Hr(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ys)},function(e,t){return(t-e)/Ys},function(e){return e.getUTCHours()});const eH=JB;JB.range;var tH=Hr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Gc},function(e){return e.getUTCDate()-1});const nH=tH;tH.range;function pd(e){return Hr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/z5})}var W5=pd(0),HMe=pd(1),WMe=pd(2),VMe=pd(3),UMe=pd(4),GMe=pd(5),qMe=pd(6);W5.range;HMe.range;WMe.range;VMe.range;UMe.range;GMe.range;qMe.range;var rH=Hr(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const oH=rH;rH.range;var V5=Hr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});V5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Hr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const iH=V5;V5.range;function aH(e,t,n,r,o,i){const a=[[Pf,1,Ks],[Pf,5,5*Ks],[Pf,15,15*Ks],[Pf,30,30*Ks],[i,1,Gi],[i,5,5*Gi],[i,15,15*Gi],[i,30,30*Gi],[o,1,Ys],[o,3,3*Ys],[o,6,6*Ys],[o,12,12*Ys],[r,1,Gc],[r,2,2*Gc],[n,1,z5],[t,1,uF],[t,3,3*uF],[e,1,BS]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(bp(u/BS,c/BS,f));if(y===0)return FMe.every(Math.max(bp(u,c,f),1));const[v,b]=a[p/a[y-1][2]0))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return HS.setTime(+i),WS.setTime(+a),e(HS),e(WS),Math.floor(n(HS,WS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Uy=_r(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Uy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_r(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Uy};const cF=Uy;Uy.range;var Gy=1e3,qc=6e4,qy=36e5,sH=864e5,lH=6048e5,uH=_r(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Gy)},function(e,t){return(t-e)/Gy},function(e){return e.getUTCSeconds()});const dF=uH;uH.range;var cH=_r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gy)},function(e,t){e.setTime(+e+t*qc)},function(e,t){return(t-e)/qc},function(e){return e.getMinutes()});const ZMe=cH;cH.range;var dH=_r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gy-e.getMinutes()*qc)},function(e,t){e.setTime(+e+t*qy)},function(e,t){return(t-e)/qy},function(e){return e.getHours()});const JMe=dH;dH.range;var fH=_r(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qc)/sH},function(e){return e.getDate()-1});const pH=fH;fH.range;function hd(e){return _r(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qc)/lH})}var Ky=hd(0),Pg=hd(1),hH=hd(2),mH=hd(3),Kc=hd(4),gH=hd(5),vH=hd(6);Ky.range;Pg.range;hH.range;mH.range;Kc.range;gH.range;vH.range;var yH=_r(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const e5e=yH;yH.range;var U5=_r(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});U5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:_r(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const Cp=U5;U5.range;var bH=_r(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*qc)},function(e,t){return(t-e)/qc},function(e){return e.getUTCMinutes()});const t5e=bH;bH.range;var xH=_r(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*qy)},function(e,t){return(t-e)/qy},function(e){return e.getUTCHours()});const n5e=xH;xH.range;var wH=_r(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/sH},function(e){return e.getUTCDate()-1});const CH=wH;wH.range;function md(e){return _r(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/lH})}var Yy=md(0),Mg=md(1),SH=md(2),$H=md(3),Yc=md(4),_H=md(5),kH=md(6);Yy.range;Mg.range;SH.range;$H.range;Yc.range;_H.range;kH.range;var PH=_r(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const r5e=PH;PH.range;var G5=_r(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});G5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:_r(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const Sp=G5;G5.range;function VS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function US(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function o5e(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Kh(o),c=Yh(o),f=Kh(i),p=Yh(i),y=Kh(a),v=Yh(a),b=Kh(s),C=Yh(s),x=Kh(l),w=Yh(l),S={a:B,A:j,b:W,B:U,c:null,d:vF,e:vF,f:P5e,g:D5e,G:N5e,H:$5e,I:_5e,j:k5e,L:MH,m:M5e,M:T5e,p:Z,q:Y,Q:xF,s:wF,S:E5e,u:I5e,U:R5e,V:O5e,w:A5e,W:F5e,x:null,X:null,y:L5e,Y:j5e,Z:z5e,"%":bF},$={a:se,A:Q,b:ne,B:re,c:null,d:yF,e:yF,f:V5e,g:eTe,G:nTe,H:B5e,I:H5e,j:W5e,L:EH,m:U5e,M:G5e,p:ge,q:xe,Q:xF,s:wF,S:q5e,u:K5e,U:Y5e,V:X5e,w:Q5e,W:Z5e,x:null,X:null,y:J5e,Y:tTe,Z:rTe,"%":bF},T={a:E,A,b:z,B:L,c:O,d:mF,e:mF,f:x5e,g:hF,G:pF,H:gF,I:gF,j:g5e,L:b5e,m:m5e,M:v5e,p:N,q:h5e,Q:C5e,s:S5e,S:y5e,u:u5e,U:c5e,V:d5e,w:l5e,W:f5e,x:D,X:H,y:hF,Y:pF,Z:p5e,"%":w5e};S.x=k(n,S),S.X=k(r,S),S.c=k(t,S),$.x=k(n,$),$.X=k(r,$),$.c=k(t,$);function k(fe,Se){return function(de){var ie=[],Pe=-1,$e=0,me=fe.length,ue,ce,Te;for(de instanceof Date||(de=new Date(+de));++Pe53)return null;"w"in ie||(ie.w=1),"Z"in ie?($e=US(qh(ie.y,0,1)),me=$e.getUTCDay(),$e=me>4||me===0?Mg.ceil($e):Mg($e),$e=CH.offset($e,(ie.V-1)*7),ie.y=$e.getUTCFullYear(),ie.m=$e.getUTCMonth(),ie.d=$e.getUTCDate()+(ie.w+6)%7):($e=VS(qh(ie.y,0,1)),me=$e.getDay(),$e=me>4||me===0?Pg.ceil($e):Pg($e),$e=pH.offset($e,(ie.V-1)*7),ie.y=$e.getFullYear(),ie.m=$e.getMonth(),ie.d=$e.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),me="Z"in ie?US(qh(ie.y,0,1)).getUTCDay():VS(qh(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(me+5)%7:ie.w+ie.U*7-(me+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,US(ie)):VS(ie)}}function I(fe,Se,de,ie){for(var Pe=0,$e=Se.length,me=de.length,ue,ce;Pe<$e;){if(ie>=me)return-1;if(ue=Se.charCodeAt(Pe++),ue===37){if(ue=Se.charAt(Pe++),ce=T[ue in fF?Se.charAt(Pe++):ue],!ce||(ie=ce(fe,de,ie))<0)return-1}else if(ue!=de.charCodeAt(ie++))return-1}return ie}function N(fe,Se,de){var ie=u.exec(Se.slice(de));return ie?(fe.p=c.get(ie[0].toLowerCase()),de+ie[0].length):-1}function E(fe,Se,de){var ie=y.exec(Se.slice(de));return ie?(fe.w=v.get(ie[0].toLowerCase()),de+ie[0].length):-1}function A(fe,Se,de){var ie=f.exec(Se.slice(de));return ie?(fe.w=p.get(ie[0].toLowerCase()),de+ie[0].length):-1}function z(fe,Se,de){var ie=x.exec(Se.slice(de));return ie?(fe.m=w.get(ie[0].toLowerCase()),de+ie[0].length):-1}function L(fe,Se,de){var ie=b.exec(Se.slice(de));return ie?(fe.m=C.get(ie[0].toLowerCase()),de+ie[0].length):-1}function O(fe,Se,de){return I(fe,t,Se,de)}function D(fe,Se,de){return I(fe,n,Se,de)}function H(fe,Se,de){return I(fe,r,Se,de)}function B(fe){return a[fe.getDay()]}function j(fe){return i[fe.getDay()]}function W(fe){return l[fe.getMonth()]}function U(fe){return s[fe.getMonth()]}function Z(fe){return o[+(fe.getHours()>=12)]}function Y(fe){return 1+~~(fe.getMonth()/3)}function se(fe){return a[fe.getUTCDay()]}function Q(fe){return i[fe.getUTCDay()]}function ne(fe){return l[fe.getUTCMonth()]}function re(fe){return s[fe.getUTCMonth()]}function ge(fe){return o[+(fe.getUTCHours()>=12)]}function xe(fe){return 1+~~(fe.getUTCMonth()/3)}return{format:function(fe){var Se=k(fe+="",S);return Se.toString=function(){return fe},Se},parse:function(fe){var Se=M(fe+="",!1);return Se.toString=function(){return fe},Se},utcFormat:function(fe){var Se=k(fe+="",$);return Se.toString=function(){return fe},Se},utcParse:function(fe){var Se=M(fe+="",!0);return Se.toString=function(){return fe},Se}}}var fF={"-":"",_:" ",0:"0"},Wr=/^\s*\d+/,i5e=/^%/,a5e=/[\\^$*+?|[\]().{}]/g;function vn(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function l5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function u5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function c5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function d5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function f5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pF(e,t,n){var r=Wr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function p5e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function h5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function m5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function mF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function g5e(e,t,n){var r=Wr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function v5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function y5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function b5e(e,t,n){var r=Wr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function x5e(e,t,n){var r=Wr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function w5e(e,t,n){var r=i5e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function C5e(e,t,n){var r=Wr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function S5e(e,t,n){var r=Wr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vF(e,t){return vn(e.getDate(),t,2)}function $5e(e,t){return vn(e.getHours(),t,2)}function _5e(e,t){return vn(e.getHours()%12||12,t,2)}function k5e(e,t){return vn(1+pH.count(Cp(e),e),t,3)}function MH(e,t){return vn(e.getMilliseconds(),t,3)}function P5e(e,t){return MH(e,t)+"000"}function M5e(e,t){return vn(e.getMonth()+1,t,2)}function T5e(e,t){return vn(e.getMinutes(),t,2)}function E5e(e,t){return vn(e.getSeconds(),t,2)}function I5e(e){var t=e.getDay();return t===0?7:t}function R5e(e,t){return vn(Ky.count(Cp(e)-1,e),t,2)}function TH(e){var t=e.getDay();return t>=4||t===0?Kc(e):Kc.ceil(e)}function O5e(e,t){return e=TH(e),vn(Kc.count(Cp(e),e)+(Cp(e).getDay()===4),t,2)}function A5e(e){return e.getDay()}function F5e(e,t){return vn(Pg.count(Cp(e)-1,e),t,2)}function L5e(e,t){return vn(e.getFullYear()%100,t,2)}function D5e(e,t){return e=TH(e),vn(e.getFullYear()%100,t,2)}function j5e(e,t){return vn(e.getFullYear()%1e4,t,4)}function N5e(e,t){var n=e.getDay();return e=n>=4||n===0?Kc(e):Kc.ceil(e),vn(e.getFullYear()%1e4,t,4)}function z5e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vn(t/60|0,"0",2)+vn(t%60,"0",2)}function yF(e,t){return vn(e.getUTCDate(),t,2)}function B5e(e,t){return vn(e.getUTCHours(),t,2)}function H5e(e,t){return vn(e.getUTCHours()%12||12,t,2)}function W5e(e,t){return vn(1+CH.count(Sp(e),e),t,3)}function EH(e,t){return vn(e.getUTCMilliseconds(),t,3)}function V5e(e,t){return EH(e,t)+"000"}function U5e(e,t){return vn(e.getUTCMonth()+1,t,2)}function G5e(e,t){return vn(e.getUTCMinutes(),t,2)}function q5e(e,t){return vn(e.getUTCSeconds(),t,2)}function K5e(e){var t=e.getUTCDay();return t===0?7:t}function Y5e(e,t){return vn(Yy.count(Sp(e)-1,e),t,2)}function IH(e){var t=e.getUTCDay();return t>=4||t===0?Yc(e):Yc.ceil(e)}function X5e(e,t){return e=IH(e),vn(Yc.count(Sp(e),e)+(Sp(e).getUTCDay()===4),t,2)}function Q5e(e){return e.getUTCDay()}function Z5e(e,t){return vn(Mg.count(Sp(e)-1,e),t,2)}function J5e(e,t){return vn(e.getUTCFullYear()%100,t,2)}function eTe(e,t){return e=IH(e),vn(e.getUTCFullYear()%100,t,2)}function tTe(e,t){return vn(e.getUTCFullYear()%1e4,t,4)}function nTe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Yc(e):Yc.ceil(e),vn(e.getUTCFullYear()%1e4,t,4)}function rTe(){return"+0000"}function bF(){return"%"}function xF(e){return+e}function wF(e){return Math.floor(+e/1e3)}var Jd,v0,RH,q5,OH;oTe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function oTe(e){return Jd=o5e(e),v0=Jd.format,RH=Jd.parse,q5=Jd.utcFormat,OH=Jd.utcParse,Jd}function iTe(e){return new Date(e)}function aTe(e){return e instanceof Date?+e:+new Date(+e)}function K5(e,t,n,r,o,i,a,s,l,u){var c=IB(),f=c.invert,p=c.domain,y=u(".%L"),v=u(":%S"),b=u("%I:%M"),C=u("%I %p"),x=u("%a %d"),w=u("%b %d"),S=u("%B"),$=u("%Y");function T(k){return(l(k)QPe(e[e.length-1]);var yw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Qt);const uTe=Nn(yw);var bw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Qt);const cTe=Nn(bw);var xw=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Qt);const dTe=Nn(xw);var ww=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Qt);const fTe=Nn(ww);var Cw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Qt);const pTe=Nn(Cw);var Sw=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Qt);const hTe=Nn(Sw);var $w=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Qt);const mTe=Nn($w);var _w=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Qt);const gTe=Nn(_w);var kw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Qt);const vTe=Nn(kw);var Pw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Qt);const yTe=Nn(Pw);var Mw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Qt);const bTe=Nn(Mw);var Tw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Qt);const xTe=Nn(Tw);var Ew=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Qt);const wTe=Nn(Ew);var Iw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Qt);const CTe=Nn(Iw);var Rw=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Qt);const STe=Nn(Rw);var Ow=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Qt);const $Te=Nn(Ow);var Aw=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Qt);const _Te=Nn(Aw);var Fw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Qt);const kTe=Nn(Fw);var Lw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Qt);const PTe=Nn(Lw);var Dw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Qt);const MTe=Nn(Dw);var jw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Qt);const TTe=Nn(jw);var Nw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Qt);const ETe=Nn(Nw);var zw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Qt);const ITe=Nn(zw);var Bw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Qt);const RTe=Nn(Bw);var Hw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Qt);const OTe=Nn(Hw);var Ww=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Qt);const ATe=Nn(Ww);var Vw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Qt);const FTe=Nn(Vw);function LTe(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}function Uw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function X5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qp(){}var Xc=.7,$p=1/Xc,qf="\\s*([+-]?\\d+)\\s*",Tg="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ss="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DTe=/^#([0-9a-f]{3,8})$/,jTe=new RegExp("^rgb\\("+[qf,qf,qf]+"\\)$"),NTe=new RegExp("^rgb\\("+[ss,ss,ss]+"\\)$"),zTe=new RegExp("^rgba\\("+[qf,qf,qf,Tg]+"\\)$"),BTe=new RegExp("^rgba\\("+[ss,ss,ss,Tg]+"\\)$"),HTe=new RegExp("^hsl\\("+[Tg,ss,ss]+"\\)$"),WTe=new RegExp("^hsla\\("+[Tg,ss,ss,Tg]+"\\)$"),CF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Uw(Qp,Q5,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:SF,formatHex:SF,formatHsl:VTe,formatRgb:$F,toString:$F});function SF(){return this.rgb().formatHex()}function VTe(){return VH(this).formatHsl()}function $F(){return this.rgb().formatRgb()}function Q5(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DTe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_F(t):n===3?new _o(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=jTe.exec(e))?new _o(t[1],t[2],t[3],1):(t=NTe.exec(e))?new _o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zTe.exec(e))?Kv(t[1],t[2],t[3],t[4]):(t=BTe.exec(e))?Kv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=HTe.exec(e))?MF(t[1],t[2]/100,t[3]/100,1):(t=WTe.exec(e))?MF(t[1],t[2]/100,t[3]/100,t[4]):CF.hasOwnProperty(e)?_F(CF[e]):e==="transparent"?new _o(NaN,NaN,NaN,0):null}function _F(e){return new _o(e>>16&255,e>>8&255,e&255,1)}function Kv(e,t,n,r){return r<=0&&(e=t=n=NaN),new _o(e,t,n,r)}function HH(e){return e instanceof Qp||(e=Q5(e)),e?(e=e.rgb(),new _o(e.r,e.g,e.b,e.opacity)):new _o}function WH(e,t,n,r){return arguments.length===1?HH(e):new _o(e,t,n,r??1)}function _o(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Uw(_o,WH,X5(Qp,{brighter:function(e){return e=e==null?$p:Math.pow($p,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Xc:Math.pow(Xc,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kF,formatHex:kF,formatRgb:PF,toString:PF}));function kF(){return"#"+GS(this.r)+GS(this.g)+GS(this.b)}function PF(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function GS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function MF(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Za(e,t,n,r)}function VH(e){if(e instanceof Za)return new Za(e.h,e.s,e.l,e.opacity);if(e instanceof Qp||(e=Q5(e)),!e)return new Za;if(e instanceof Za)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Za(a,s,l,e.opacity)}function UTe(e,t,n,r){return arguments.length===1?VH(e):new Za(e,t,n,r??1)}function Za(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uw(Za,UTe,X5(Qp,{brighter:function(e){return e=e==null?$p:Math.pow($p,e),new Za(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Xc:Math.pow(Xc,e),new Za(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _o(qS(e>=240?e-240:e+120,o,r),qS(e,o,r),qS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function qS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const GTe=Math.PI/180,qTe=180/Math.PI;var UH=-.14861,Z5=1.78277,J5=-.29227,Gw=-.90649,Eg=1.97294,TF=Eg*Gw,EF=Eg*Z5,IF=Z5*J5-Gw*UH;function KTe(e){if(e instanceof Cc)return new Cc(e.h,e.s,e.l,e.opacity);e instanceof _o||(e=HH(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(IF*r+TF*t-EF*n)/(IF+TF-EF),i=r-o,a=(Eg*(n-o)-J5*i)/Gw,s=Math.sqrt(a*a+i*i)/(Eg*o*(1-o)),l=s?Math.atan2(a,i)*qTe-120:NaN;return new Cc(l<0?l+360:l,s,o,e.opacity)}function fu(e,t,n,r){return arguments.length===1?KTe(e):new Cc(e,t,n,r??1)}function Cc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uw(Cc,fu,X5(Qp,{brighter:function(e){return e=e==null?$p:Math.pow($p,e),new Cc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Xc:Math.pow(Xc,e),new Cc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*GTe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new _o(255*(t+n*(UH*r+Z5*o)),255*(t+n*(J5*r+Gw*o)),255*(t+n*(Eg*r)),this.opacity)}}));const YTe=A5(fu(300,.5,0),fu(-240,.5,1));var XTe=A5(fu(-100,.75,.35),fu(80,1.5,.8)),QTe=A5(fu(260,.75,.35),fu(80,1.5,.8)),Yv=fu();function ZTe(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Yv.h=360*e-100,Yv.s=1.5-1.5*t,Yv.l=.8-.9*t,Yv+""}var Xv=WH(),JTe=Math.PI/3,e3e=Math.PI*2/3;function t3e(e){var t;return e=(.5-e)*Math.PI,Xv.r=255*(t=Math.sin(e))*t,Xv.g=255*(t=Math.sin(e+JTe))*t,Xv.b=255*(t=Math.sin(e+e3e))*t,Xv+""}function n3e(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function qw(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const r3e=qw(Qt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var o3e=qw(Qt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),i3e=qw(Qt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a3e=qw(Qt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),s3e="__lodash_hash_undefined__";function l3e(e){return this.__data__.set(e,s3e),this}var u3e=l3e;function c3e(e){return this.__data__.has(e)}var d3e=c3e,f3e=b5,p3e=u3e,h3e=d3e;function Xy(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new f3e;++t-1}var GH=P3e;function M3e(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=L3e&&(i=F3e,a=!1,t=new E3e(t));e:for(;++oYu)if(!(Math.abs(c*s-l*u)>Yu)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-i,y=r-a,v=s*s+l*l,b=p*p+y*y,C=Math.sqrt(v),x=Math.sqrt(f),w=o*Math.tan((dk-Math.acos((v+f-b)/(2*C*x)))/2),S=w/x,$=w/C;Math.abs(S-1)>Yu&&(this._+="L"+(e+S*u)+","+(t+S*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*y)+","+(this._x1=e+$*s)+","+(this._y1=t+$*l)}},arc:function(e,t,n,r,o,i){e=+e,t=+t,n=+n,i=!!i;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Yu||Math.abs(this._y1-u)>Yu)&&(this._+="L"+l+","+u),n&&(f<0&&(f=f%fk+fk),f>V3e?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):f>Yu&&(this._+="A"+n+","+n+",0,"+ +(f>=dk)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function gn(e){return function(){return e}}var RF=Math.abs,oo=Math.atan2,Wu=Math.cos,U3e=Math.max,KS=Math.min,ja=Math.sin,Mf=Math.sqrt,so=1e-12,Ig=Math.PI,Qy=Ig/2,O1=2*Ig;function G3e(e){return e>1?0:e<-1?Ig:Math.acos(e)}function OF(e){return e>=1?Qy:e<=-1?-Qy:Math.asin(e)}function q3e(e){return e.innerRadius}function K3e(e){return e.outerRadius}function Y3e(e){return e.startAngle}function X3e(e){return e.endAngle}function Q3e(e){return e&&e.padAngle}function Z3e(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,f=s-i,p=f*l-c*u;if(!(p*pO*O+D*D&&(I=E,N=A),{cx:I,cy:N,x01:-c,y01:-f,x11:I*(o/T-1),y11:N*(o/T-1)}}function J3e(){var e=q3e,t=K3e,n=gn(0),r=null,o=Y3e,i=X3e,a=Q3e,s=null;function l(){var u,c,f=+e.apply(this,arguments),p=+t.apply(this,arguments),y=o.apply(this,arguments)-Qy,v=i.apply(this,arguments)-Qy,b=RF(v-y),C=v>y;if(s||(s=u=Kw()),pso))s.moveTo(0,0);else if(b>O1-so)s.moveTo(p*Wu(y),p*ja(y)),s.arc(0,0,p,y,v,!C),f>so&&(s.moveTo(f*Wu(v),f*ja(v)),s.arc(0,0,f,v,y,C));else{var x=y,w=v,S=y,$=v,T=b,k=b,M=a.apply(this,arguments)/2,I=M>so&&(r?+r.apply(this,arguments):Mf(f*f+p*p)),N=KS(RF(p-f)/2,+n.apply(this,arguments)),E=N,A=N,z,L;if(I>so){var O=OF(I/f*ja(M)),D=OF(I/p*ja(M));(T-=O*2)>so?(O*=C?1:-1,S+=O,$-=O):(T=0,S=$=(y+v)/2),(k-=D*2)>so?(D*=C?1:-1,x+=D,w-=D):(k=0,x=w=(y+v)/2)}var H=p*Wu(x),B=p*ja(x),j=f*Wu($),W=f*ja($);if(N>so){var U=p*Wu(w),Z=p*ja(w),Y=f*Wu(S),se=f*ja(S),Q;if(bso?A>so?(z=Qv(Y,se,H,B,p,A,C),L=Qv(U,Z,j,W,p,A,C),s.moveTo(z.cx+z.x01,z.cy+z.y01),Aso)||!(T>so)?s.lineTo(j,W):E>so?(z=Qv(j,W,U,Z,f,-E,C),L=Qv(H,B,Y,se,f,-E,C),s.lineTo(z.cx+z.x01,z.cy+z.y01),E=p;--y)s.point(w[y],S[y]);s.lineEnd(),s.areaEnd()}C&&(w[f]=+e(b,f,c),S[f]=+n(b,f,c),s.point(t?+t(b,f,c):w[f],r?+r(b,f,c):S[f]))}if(x)return s=null,x+""||null}function u(){return rT().defined(o).curve(a).context(i)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),t=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),l):e},l.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:gn(+c),l):t},l.y=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),r=null,l):n},l.y0=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),l):n},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:gn(+c),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(c){return arguments.length?(o=typeof c=="function"?c:gn(!!c),l):o},l.curve=function(c){return arguments.length?(a=c,i!=null&&(s=a(i)),l):a},l.context=function(c){return arguments.length?(c==null?i=s=null:s=a(i=c),l):i},l}function tEe(e,t){return te?1:t>=e?0:NaN}function nEe(e){return e}function rEe(){var e=nEe,t=tEe,n=null,r=gn(0),o=gn(O1),i=gn(0);function a(s){var l,u=s.length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(O1,Math.max(-O1,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:gn(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:gn(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:gn(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:gn(+s),a):i},a}var AF=Array.prototype.slice;function pu(){}function Zy(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Yw(e){this._context=e}Yw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oEe(e){return new Yw(e)}function ZH(e){this._context=e}ZH.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Zy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iEe(e){return new ZH(e)}function JH(e){this._context=e}JH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Zy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aEe(e){return new JH(e)}function eW(e,t){this._basis=new Yw(e),this._beta=t}eW.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],o=t[0],i=e[n]-r,a=t[n]-o,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*i),this._beta*t[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const sEe=function e(t){function n(r){return t===1?new Yw(r):new eW(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Jy(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function oT(e,t){this._context=e,this._k=(1-t)/6}oT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Jy(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Jy(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lEe=function e(t){function n(r){return new oT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iT(e,t){this._context=e,this._k=(1-t)/6}iT.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Jy(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uEe=function e(t){function n(r){return new iT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aT(e,t){this._context=e,this._k=(1-t)/6}aT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Jy(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cEe=function e(t){function n(r){return new aT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function sT(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>so){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>so){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function tW(e,t){this._context=e,this._alpha=t}tW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:sT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dEe=function e(t){function n(r){return t?new tW(r,t):new oT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nW(e,t){this._context=e,this._alpha=t}nW.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:sT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fEe=function e(t){function n(r){return t?new nW(r,t):new iT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rW(e,t){this._context=e,this._alpha=t}rW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pEe=function e(t){function n(r){return t?new rW(r,t):new aT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oW(e){this._context=e}oW.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hEe(e){return new oW(e)}function FF(e){return e<0?-1:1}function LF(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(FF(i)+FF(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function DF(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function YS(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function eb(e){this._context=e}eb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:YS(this,this._t0,DF(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,YS(this,DF(this,n=LF(this,e,t)),n);break;default:YS(this,this._t0,n=LF(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function iW(e){this._context=new aW(e)}(iW.prototype=Object.create(eb.prototype)).point=function(e,t){eb.prototype.point.call(this,t,e)};function aW(e){this._context=e}aW.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function mEe(e){return new eb(e)}function gEe(e){return new iW(e)}function sW(e){this._context=e}sW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=jF(e),o=jF(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function yEe(e){return new Xw(e,.5)}function bEe(e){return new Xw(e,0)}function xEe(e){return new Xw(e,1)}function _p(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function wEe(e,t){return e[t]}function CEe(){var e=gn([]),t=kp,n=_p,r=wEe;function o(i){var a=e.apply(this,arguments),s,l=i.length,u=a.length,c=new Array(u),f;for(s=0;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function $Ee(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;ri&&(i=o,n=t);return n}function uW(e){var t=e.map(cW);return kp(e).sort(function(n,r){return t[n]-t[r]})}function cW(e){for(var t=0,n=-1,r=e.length,o;++n0&&n(s)?t>1?fW(s,t-1,n,r,o):oIe(o,s):r||(o[o.length]=s)}return o}var pW=fW,aIe=pW;function sIe(e){var t=e==null?0:e.length;return t?aIe(e,1):[]}var lIe=sIe,uIe=lIe,cIe=fB,dIe=pB;function fIe(e){return dIe(cIe(e,void 0,uIe),e+"")}var hW=fIe,pIe=ZEe,hIe=hW,mIe=hIe(function(e,t){return e==null?{}:pIe(e,t)}),gIe=mIe;const vIe=Or(gIe);function yIe(e,t){for(var n=-1,r=e==null?0:e.length;++ns))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,p=!0,y=n&$Ie?new xIe:void 0;for(i.set(e,t),i.set(t,e);++f=0||(o[n]=e[n]);return o}var hu={fill:R.string,fontSize:R.number,fontFamily:R.string},sOe=R.shape({domain:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}).isRequired,ticks:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired,text:R.shape(Rr({},hu)).isRequired}).isRequired,legend:R.shape({text:R.shape(Rr({},hu)).isRequired}).isRequired}),lOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),uOe=R.shape({hidden:R.shape({symbol:R.shape({fill:R.string.isRequired,opacity:R.number}).isRequired,text:R.shape(Rr({},hu,{opacity:R.number})).isRequired}).isRequired,text:R.shape(Rr({},hu)).isRequired}),cOe=R.shape({text:R.shape(Rr({},hu)).isRequired}),dOe=R.shape({text:R.shape(Rr({},hu)).isRequired}),fOe=R.shape({text:R.shape(Rr({},hu)).isRequired}),pOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),hOe=R.shape({text:R.shape(Rr({},hu,{outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired})).isRequired,link:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,outline:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,symbol:R.shape({fill:R.string.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired});R.shape({background:R.string.isRequired,fontFamily:R.string.isRequired,fontSize:R.number.isRequired,textColor:R.string.isRequired,axis:sOe.isRequired,grid:lOe.isRequired,legends:uOe.isRequired,labels:cOe.isRequired,dots:dOe.isRequired,markers:fOe,crosshair:pOe.isRequired,annotations:hOe.isRequired});var mOe={background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},gOe=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],vOe=function(e,t){var n=Lke({},e,t);return gOe.forEach(function(r){iu(n,r+".fontFamily")===void 0&&ac(n,r+".fontFamily",n.fontFamily),iu(n,r+".fontSize")===void 0&&ac(n,r+".fontSize",n.fontSize),iu(n,r+".fill")===void 0&&ac(n,r+".fill",n.textColor)}),n},CW=m.createContext(),pT=function(e){var t=e.children,n=e.animate,r=e.config,o=m.useMemo(function(){var i=yi.isString(r)?h5[r]:r;return{animate:n,config:i}},[n,r]);return g.jsx(CW.Provider,{value:o,children:t})},xk={animate:R.bool,motionConfig:R.oneOfType([R.oneOf(Object.keys(h5)),R.shape({mass:R.number,tension:R.number,friction:R.number,clamp:R.bool,precision:R.number,velocity:R.number,duration:R.number,easing:R.func})])};pT.propTypes={children:R.node.isRequired,animate:xk.animate,config:xk.motionConfig};var yOe={animate:!0,config:"default"};pT.defaultProps=yOe;var To=function(){return m.useContext(CW)},hT=function(e){var t=To(),n=t.animate,r=t.config,o=function(s){var l=m.useRef();return m.useEffect(function(){l.current=s},[s]),l.current}(e),i=m.useMemo(function(){return SB(o,e)},[o,e]),a=xs({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return du(a,i)},bOe={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:St(yw),PRGn:St(bw),PiYG:St(xw),PuOr:St(ww),RdBu:St(Cw),RdGy:St(Sw),RdYlBu:St($w),RdYlGn:St(_w),spectral:St(kw),blues:St(Nw),greens:St(zw),greys:St(Bw),oranges:St(Vw),purples:St(Hw),reds:St(Ww),BuGn:St(Pw),BuPu:St(Mw),GnBu:St(Tw),OrRd:St(Ew),PuBuGn:St(Iw),PuBu:St(Rw),PuRd:St(Ow),RdPu:St(Aw),YlGnBu:St(Fw),YlGn:St(Lw),YlOrBr:St(Dw),YlOrRd:St(jw)},xOe=Object.keys(bOe);St(yw),St(bw),St(xw),St(ww),St(Cw),St(Sw),St($w),St(_w),St(kw),St(Nw),St(zw),St(Bw),St(Vw),St(Hw),St(Ww),St(Pw),St(Mw),St(Tw),St(Ew),St(Iw),St(Rw),St(Ow),St(Aw),St(Fw),St(Lw),St(Dw),St(jw);R.oneOfType([R.oneOf(xOe),R.func,R.arrayOf(R.string)]);var wk={basis:oEe,basisClosed:iEe,basisOpen:aEe,bundle:sEe,cardinal:lEe,cardinalClosed:uEe,cardinalOpen:cEe,catmullRom:dEe,catmullRomClosed:fEe,catmullRomOpen:pEe,linear:nT,linearClosed:hEe,monotoneX:mEe,monotoneY:gEe,natural:vEe,step:yEe,stepAfter:xEe,stepBefore:bEe},Zw=Object.keys(wk);R.oneOf(Zw);Zw.filter(function(e){return e.endsWith("Closed")});KH(Zw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var wOe=KH(Zw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),COe=R.oneOf(wOe),SW=function(e){if(!wk[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return wk[e]},SOe={defs:R.arrayOf(R.shape({id:R.string.isRequired})).isRequired,fill:R.arrayOf(R.shape({id:R.string.isRequired,match:R.oneOfType([R.oneOf(["*"]),R.object,R.func]).isRequired})).isRequired},$Oe={ascending:uW,descending:MEe,insideOut:TEe,none:kp,reverse:EEe},_Oe=Object.keys($Oe);R.oneOf(_Oe);var kOe={expand:SEe,diverging:lW,none:_p,silhouette:$Ee,wiggle:_Ee},POe=Object.keys(kOe);R.oneOf(POe);R.shape({top:R.number,right:R.number,bottom:R.number,left:R.number}).isRequired;var MOe=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],mT=R.oneOf(MOe);sc(Y5);var TOe={top:0,right:0,bottom:0,left:0},b0=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=Rr({},TOe,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},$W=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],o=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var a=i[0];return r(a.contentRect)})})[0];return m.useEffect(function(){return e.current&&o!==null&&o.observe(e.current),function(){o!==null&&o.disconnect()}},[]),[e,n]},EOe=function(e){return m.useMemo(function(){return vOe(mOe,e)},[e])},IOe=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?v0(e.slice("5")):Pu(e):function(t){return""+t}},Rg=function(e){return m.useMemo(function(){return IOe(e)},[e])},_W=m.createContext(),ROe={},kW=function(e){var t=e.theme,n=t===void 0?ROe:t,r=e.children,o=EOe(n);return g.jsx(_W.Provider,{value:o,children:r})};kW.propTypes={children:R.node.isRequired,theme:R.object};var On=function(){return m.useContext(_W)},PW=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t};PW.propTypes={children:R.node.isRequired,condition:R.bool.isRequired,wrapper:R.element.isRequired};var OOe={position:"relative"},x0=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,o=r===void 0||r,i=e.isInteractive,a=i===void 0||i,s=e.animate,l=e.motionConfig,u=m.useRef(null);return g.jsx(kW,{theme:n,children:g.jsx(pT,{animate:s,config:l,children:g.jsx(vwe,{container:u,children:g.jsxs(PW,{condition:o,wrapper:g.jsx("div",{style:OOe,ref:u}),children:[t,a&&g.jsx(gwe,{})]})})})})};x0.propTypes={children:R.element.isRequired,isInteractive:R.bool,renderWrapper:R.bool,theme:R.object,animate:R.bool,motionConfig:R.string};R.func.isRequired,R.bool,R.bool,R.object.isRequired,R.bool.isRequired,R.string;var Jp=function(e){var t=e.children,n=$W(),r=n[0],o=n[1],i=o.width>0&&o.height>0;return g.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:o.width,height:o.height})})};Jp.propTypes={children:R.func.isRequired};var AOe=["id","colors"],MW=function(e){var t=e.id,n=e.colors,r=fT(e,AOe);return g.jsx("linearGradient",Rr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(o){var i=o.offset,a=o.color,s=o.opacity;return g.jsx("stop",{offset:i+"%",stopColor:a,stopOpacity:s!==void 0?s:1},i)})}))};MW.propTypes={id:R.string.isRequired,colors:R.arrayOf(R.shape({offset:R.number.isRequired,color:R.string.isRequired,opacity:R.number})).isRequired,gradientTransform:R.string};var TW={linearGradient:MW},A1=m.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=o/2,u=i/2;return a===!0&&(s=2*o+2*i),g.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:s,height:s,fill:n}),g.jsx("circle",{cx:u+l,cy:u+l,r:l,fill:r}),a&&g.jsx("circle",{cx:1.5*i+o+l,cy:1.5*i+o+l,r:l,fill:r})]})});A1.displayName="PatternDots",A1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},A1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Qi=function(e){return e*Math.PI/180},Jw=function(e){return 180*e/Math.PI},FOe=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},Sc=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},LOe=function(e){var t=e%360;return t<0&&(t+=360),t},DOe={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},F1=m.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,o=e.background,i=e.color,a=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var u,c=l,f=l;return s===0?u=` M 0 0 L `+c+` 0 M 0 `+f+" L "+c+" "+f+` `:s===90?u=` @@ -714,8 +714,8 @@ function print() { __p += __j.call(arguments, '') } M `+-c+" "+f+" L "+c+" "+-f+` M `+-c+" "+2*f+" L "+2*c+" "+-f+` M 0 `+2*f+" L "+2*c+` 0 - `),g.jsxs("pattern",{id:t,width:c,height:f,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:c,height:f,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),g.jsx("path",{d:u,strokeWidth:a,stroke:i,strokeLinecap:"square"})]})});L1.displayName="PatternLines",L1.propTypes={id:R.string.isRequired,spacing:R.number.isRequired,rotation:R.number.isRequired,background:R.string.isRequired,color:R.string.isRequired,lineWidth:R.number.isRequired},L1.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var D1=m.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=i/2;return a===!0&&(s=2*o+2*i),g.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:s,height:s,fill:n}),g.jsx("rect",{x:l,y:l,width:o,height:o,fill:r}),a&&g.jsx("rect",{x:1.5*i+o,y:1.5*i+o,width:o,height:o,fill:r})]})});D1.displayName="PatternSquares",D1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},D1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var IW={patternDots:F1,patternLines:L1,patternSquares:D1},jOe=["type"],Sk=Rr({},EW,IW),RW=function(e){var t=e.defs;return!t||t.length<1?null:g.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,o=pT(n,jOe);return Sk[r]?m.createElement(Sk[r],Rr({key:o.id},o)):null})})};RW.propTypes={defs:R.arrayOf(R.shape({type:R.oneOf(Object.keys(Sk)).isRequired,id:R.string.isRequired}))};var NOe=m.memo(RW),t2=function(e){var t=e.width,n=e.height,r=e.margin,o=e.defs,i=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,c=e.isFocusable,f=On();return g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,focusable:c,tabIndex:c?0:void 0,children:[g.jsx(NOe,{defs:o}),g.jsx("rect",{width:t,height:n,fill:f.background}),g.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};t2.propTypes={width:R.number.isRequired,height:R.number.isRequired,margin:R.shape({top:R.number.isRequired,left:R.number.isRequired}).isRequired,defs:R.array,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,role:R.string,isFocusable:R.bool,ariaLabel:R.string,ariaLabelledBy:R.string,ariaDescribedBy:R.string};var OW=function(e){var t=e.size,n=e.color,r=e.borderWidth,o=e.borderColor;return g.jsx("circle",{r:t/2,fill:n,stroke:o,strokeWidth:r,style:{pointerEvents:"none"}})};OW.propTypes={size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired};var zOe=m.memo(OW),AW=function(e){var t=e.x,n=e.y,r=e.symbol,o=r===void 0?zOe:r,i=e.size,a=e.datum,s=e.color,l=e.borderWidth,u=e.borderColor,c=e.label,f=e.labelTextAnchor,p=f===void 0?"middle":f,y=e.labelYOffset,v=y===void 0?-12:y,b=On(),C=To(),x=C.animate,w=C.config,S=xs({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return g.jsxs(In.g,{transform:S.transform,style:{pointerEvents:"none"},children:[m.createElement(o,{size:i,color:s,datum:a,borderWidth:l,borderColor:u}),c&&g.jsx("text",{textAnchor:p,y:v,style:b.dots.text,children:c})]})};AW.propTypes={x:R.number.isRequired,y:R.number.isRequired,datum:R.object.isRequired,size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired,symbol:R.oneOfType([R.func,R.object]),label:R.oneOfType([R.string,R.number]),labelTextAnchor:R.oneOf(["start","middle","end"]),labelYOffset:R.number};var BOe=m.memo(AW),$k=function(e){var t=e.width,n=e.height,r=e.axis,o=e.scale,i=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,u=e.legendPosition,c=e.legendOffsetX,f=e.legendOffsetY,p=e.legendOrientation,y=On(),v=0,b=0,C=0,x=0;r==="y"?(C=o(i),b=t):(v=o(i),x=n);var w=null;if(l){var S=function($){var T=$.axis,k=$.width,M=$.height,I=$.position,N=$.offsetX,E=$.offsetY,A=$.orientation,z=0,L=0,O=A==="vertical"?-90:0,D="start";if(T==="x")switch(I){case"top-left":z=-N,L=E,D="end";break;case"top":L=-E,D=A==="horizontal"?"middle":"start";break;case"top-right":z=N,L=E,D=A==="horizontal"?"start":"end";break;case"right":z=N,L=M/2,D=A==="horizontal"?"start":"middle";break;case"bottom-right":z=N,L=M-E,D="start";break;case"bottom":L=M+E,D=A==="horizontal"?"middle":"end";break;case"bottom-left":L=M-E,z=-N,D=A==="horizontal"?"end":"start";break;case"left":z=-N,L=M/2,D=A==="horizontal"?"end":"middle"}else switch(I){case"top-left":z=N,L=-E,D="start";break;case"top":z=k/2,L=-E,D=A==="horizontal"?"middle":"start";break;case"top-right":z=k-N,L=-E,D=A==="horizontal"?"end":"start";break;case"right":z=k+N,D=A==="horizontal"?"start":"middle";break;case"bottom-right":z=k-N,L=E,D="end";break;case"bottom":z=k/2,L=E,D=A==="horizontal"?"middle":"end";break;case"bottom-left":z=N,L=E,D=A==="horizontal"?"start":"end";break;case"left":z=-N,D=A==="horizontal"?"end":"middle"}return{x:z,y:L,rotation:O,textAnchor:D}}({axis:r,width:t,height:n,position:u,offsetX:c,offsetY:f,orientation:p});w=g.jsx("text",{transform:"translate("+S.x+", "+S.y+") rotate("+S.rotation+")",textAnchor:S.textAnchor,dominantBaseline:"central",style:s,children:l})}return g.jsxs("g",{transform:"translate("+v+", "+C+")",children:[g.jsx("line",{x1:0,x2:b,y1:0,y2:x,stroke:y.markers.lineColor,strokeWidth:y.markers.lineStrokeWidth,style:a}),w]})};$k.propTypes={width:R.number.isRequired,height:R.number.isRequired,axis:R.oneOf(["x","y"]).isRequired,scale:R.func.isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object,legend:R.string,legendPosition:R.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:R.number.isRequired,legendOffsetY:R.number.isRequired,legendOrientation:R.oneOf(["horizontal","vertical"]).isRequired},$k.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var HOe=m.memo($k),FW=function(e){var t=e.markers,n=e.width,r=e.height,o=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(a,s){return g.jsx(HOe,Rr({},a,{width:n,height:r,scale:a.axis==="y"?i:o}),s)}):null};FW.propTypes={width:R.number.isRequired,height:R.number.isRequired,xScale:R.func.isRequired,yScale:R.func.isRequired,markers:R.arrayOf(R.shape({axis:R.oneOf(["x","y"]).isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object}))};var LW=m.memo(FW),WOe=["theme","renderWrapper","animate","motionConfig"],DW=function(e){return function(t){var n,r;function o(){return t.apply(this,arguments)||this}return r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,xk(n,r),o.prototype.render=function(){var i=this.props,a=i.theme,s=i.renderWrapper,l=i.animate,u=i.motionConfig,c=pT(i,WOe);return g.jsx(w0,{theme:a,renderWrapper:s,isInteractive:c.isInteractive,animate:l,motionConfig:u,children:g.jsx(e,Rr({},c))})},o}(m.Component)},VOe=function(e,t){var n,r=jy(e)?e:function(o){return au(o,e)};return t&&(n=jy(t)?t:Mu(t)),n?function(o){return n(r(o))}:r},jW=function(e){return jy(e)?e:function(t){return au(t,e)}},_c=function(e){return m.useMemo(function(){return jW(e)},[e])},NW=function(e,t,n,r,o,i){return e<=o&&o<=e+n&&t<=i&&i<=t+r},Rm=function(e,t){var n,r=t.clientX,o=t.clientY,i=e.getBoundingClientRect(),a=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===i.width?1:n.width/i.width;return[(r-i.left)*a,(o-i.top)*a]},UOe=Object.keys(EW),GOe=Object.keys(IW),qOe=function(e,t,n){if(e==="*")return!0;if(jy(e))return e(t);if(p$e(e)){var r=n?au(t,n):t;return aOe(vIe(r,Object.keys(e)),e)}return!1},vT=function(e,t,n,r){var o=r===void 0?{}:r,i=o.dataKey,a=o.colorKey,s=a===void 0?"color":a,l=o.targetKey,u=l===void 0?"fill":l,c=[],f={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(p){for(var y=function(){var b=n[v],C=b.id,x=b.match;if(qOe(x,p,i)){var w=e.find(function(E){return E.id===C});if(w){if(GOe.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var S=au(p,s),$=w.background,T=w.color,k=C;w.background==="inherit"&&(k=k+".bg."+S,$=S),w.color==="inherit"&&(k=k+".fg."+S,T=S),sc(p,u,"url(#"+k+")"),f[k]||(c.push(Rr({},w,{id:k,background:$,color:T})),f[k]=1)}else sc(p,u,"url(#"+C+")");else if(UOe.includes(w.type))if(w.colors.map(function(E){return E.color}).includes("inherit")){var M=au(p,s),I=C,N=Rr({},w,{colors:w.colors.map(function(E,A){return E.color!=="inherit"?E:(I=I+"."+A+"."+M,Rr({},E,{color:E.color==="inherit"?M:E.color}))})});N.id=I,sc(p,u,"url(#"+I+")"),f[I]||(c.push(N),f[I]=1)}else sc(p,u,"url(#"+C+")")}return"break"}},v=0;v>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?e1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?e1(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=YOe.exec(e))?new Ho(t[1],t[2],t[3],1):(t=XOe.exec(e))?new Ho(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QOe.exec(e))?e1(t[1],t[2],t[3],t[4]):(t=ZOe.exec(e))?e1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JOe.exec(e))?d8(t[1],t[2]/100,t[3]/100,1):(t=e4e.exec(e))?d8(t[1],t[2]/100,t[3]/100,t[4]):i8.hasOwnProperty(e)?l8(i8[e]):e==="transparent"?new Ho(NaN,NaN,NaN,0):null}function l8(e){return new Ho(e>>16&255,e>>8&255,e&255,1)}function e1(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ho(e,t,n,r)}function r4e(e){return e instanceof C0||(e=Zc(e)),e?(e=e.rgb(),new Ho(e.r,e.g,e.b,e.opacity)):new Ho}function BW(e,t,n,r){return arguments.length===1?r4e(e):new Ho(e,t,n,r??1)}function Ho(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}yT(Ho,BW,zW(C0,{brighter(e){return e=e==null?nb:Math.pow(nb,e),new Ho(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ag:Math.pow(Ag,e),new Ho(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ho(kc(this.r),kc(this.g),kc(this.b),rb(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:u8,formatHex:u8,formatHex8:o4e,formatRgb:c8,toString:c8}));function u8(){return`#${uc(this.r)}${uc(this.g)}${uc(this.b)}`}function o4e(){return`#${uc(this.r)}${uc(this.g)}${uc(this.b)}${uc((isNaN(this.opacity)?1:this.opacity)*255)}`}function c8(){const e=rb(this.opacity);return`${e===1?"rgb(":"rgba("}${kc(this.r)}, ${kc(this.g)}, ${kc(this.b)}${e===1?")":`, ${e})`}`}function rb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function uc(e){return e=kc(e),(e<16?"0":"")+e.toString(16)}function d8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Sa(e,t,n,r)}function HW(e){if(e instanceof Sa)return new Sa(e.h,e.s,e.l,e.opacity);if(e instanceof C0||(e=Zc(e)),!e)return new Sa;if(e instanceof Sa)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 Sa(a,s,l,e.opacity)}function i4e(e,t,n,r){return arguments.length===1?HW(e):new Sa(e,t,n,r??1)}function Sa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yT(Sa,i4e,zW(C0,{brighter(e){return e=e==null?nb:Math.pow(nb,e),new Sa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ag:Math.pow(Ag,e),new Sa(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ho(JS(e>=240?e-240:e+120,o,r),JS(e,o,r),JS(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Sa(f8(this.h),t1(this.s),t1(this.l),rb(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=rb(this.opacity);return`${e===1?"hsl(":"hsla("}${f8(this.h)}, ${t1(this.s)*100}%, ${t1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f8(e){return e=(e||0)%360,e<0?e+360:e}function t1(e){return Math.max(0,Math.min(1,e||0))}function JS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var WW={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:FH,accent:LH,dark2:DH,paired:jH,pastel1:NH,pastel2:zH,set1:BH,set2:HH,set3:X5},s4e=Object.keys(WW),VW={brown_blueGreen:bw,purpleRed_green:xw,pink_yellowGreen:ww,purple_orange:Cw,red_blue:Sw,red_grey:$w,red_yellow_blue:_w,red_yellow_green:kw,spectral:Pw},l4e=Object.keys(VW),u4e={brown_blueGreen:uTe,purpleRed_green:cTe,pink_yellowGreen:dTe,purple_orange:fTe,red_blue:pTe,red_grey:hTe,red_yellow_blue:mTe,red_yellow_green:gTe,spectral:vTe},UW={blues:zw,greens:Bw,greys:Hw,oranges:Uw,purples:Ww,reds:Vw,blue_green:Mw,blue_purple:Tw,green_blue:Ew,orange_red:Iw,purple_blue_green:Rw,purple_blue:Ow,purple_red:Aw,red_purple:Fw,yellow_green_blue:Lw,yellow_green:Dw,yellow_orange_brown:jw,yellow_orange_red:Nw},c4e=Object.keys(UW),d4e={blues:ETe,greens:ITe,greys:RTe,oranges:FTe,purples:OTe,reds:ATe,turbo:n3e,viridis:r3e,inferno:i3e,magma:o3e,plasma:a3e,cividis:LTe,warm:XTe,cool:QTe,cubehelixDefault:YTe,blue_green:yTe,blue_purple:bTe,green_blue:xTe,orange_red:wTe,purple_blue_green:CTe,purple_blue:STe,purple_red:$Te,red_purple:_Te,yellow_green_blue:kTe,yellow_green:PTe,yellow_orange_brown:MTe,yellow_orange_red:TTe},j1=ob({},WW,VW,UW),f4e=Object.keys(j1),p4e=function(e){return s4e.includes(e)},h4e=function(e){return l4e.includes(e)},m4e=function(e){return c4e.includes(e)},g4e={rainbow:ZTe,sinebow:t3e};ob({},u4e,d4e,g4e);var v4e=function(e,t){if(typeof e=="function")return e;if(yi.isPlainObject(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=yi.get(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return yi.get(l,e.from)};if(Array.isArray(e.modifiers)){for(var o,i=[],a=function(){var l=o.value,u=l[0],c=l[1];if(u==="brighter")i.push(function(f){return f.brighter(c)});else if(u==="darker")i.push(function(f){return f.darker(c)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(f){return f.opacity=c,f})}},s=a4e(e.modifiers);!(o=s()).done;)a();return i.length===0?r:function(l){return i.reduce(function(u,c){return c(u)},BW(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},ms=function(e,t){return m.useMemo(function(){return v4e(e,t)},[e,t])},y4e=R.oneOfType([R.func,R.arrayOf(R.string),R.shape({scheme:R.oneOf(f4e).isRequired,size:R.number}),R.shape({datum:R.string.isRequired}),R.string]);R.oneOfType([R.string,R.func,R.shape({theme:R.string.isRequired}),R.shape({from:R.string.isRequired,modifiers:R.arrayOf(R.array)})]);var b4e=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(f){return yi.get(f,t)};if(Array.isArray(e)){var r=lc(e),o=function(f){return r(n(f))};return o.scale=r,o}if(yi.isPlainObject(e)){if(function(f){return f.datum!==void 0}(e))return function(f){return yi.get(f,e.datum)};if(function(f){return f.scheme!==void 0}(e)){if(p4e(e.scheme)){var i=lc(j1[e.scheme]),a=function(f){return i(n(f))};return a.scale=i,a}if(h4e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=lc(j1[e.scheme][e.size||11]),l=function(f){return s(n(f))};return l.scale=s,l}if(m4e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=lc(j1[e.scheme][e.size||9]),c=function(f){return u(n(f))};return c.scale=u,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},bT=function(e,t){return m.useMemo(function(){return b4e(e,t)},[e,t])};function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t})},S4e={startAngle:{enter:function(e){return Vn({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Vn({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Vn({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},qW=function(e,t){return m.useMemo(function(){var n=S4e[e];return{enter:function(r){return Vn({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Vn({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Vn({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},$4e=function(e,t){var n=FOe(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return $c(n,r)},_4e=function(e){return function(t,n,r,o){return fu([t,n,r,o],function(i,a,s,l){var u=$4e({startAngle:i,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+u.x+","+u.y+")"})}},k4e=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var o=To(),i=o.animate,a=o.config,s=qW(n,r);return{transition:ud(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!i}),interpolate:_4e(t)}},P4e=function(e){var t=e.center,n=e.data,r=e.transitionMode,o=e.label,i=e.radiusOffset,a=e.skipAngle,s=e.textColor,l=e.component,u=l===void 0?w4e:l,c=_c(o),f=On(),p=ms(s,f),y=m.useMemo(function(){return n.filter(function(w){return Math.abs(e2(w.arc.endAngle-w.arc.startAngle))>=a})},[n,a]),v=k4e(y,i,r),b=v.transition,C=v.interpolate,x=u;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:b(function(w,S){return m.createElement(x,{key:S.id,datum:S,label:c(S),style:Vn({},w,{transform:C(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:p(S)})})})})},M4e=function(e){var t=e.label,n=e.style,r=On();return g.jsxs(In.g,{opacity:n.opacity,children:[g.jsx(In.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),g.jsx(In.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Vn({},r.labels.text,{fill:n.textColor}),children:t})]})},T4e=function(e){var t=GW(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t1.5*Math.PI?"start":"end"},KW=function(e,t,n,r){var o,i,a=GW(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=$c(a,e.outerRadius+t),l=$c(a,e.outerRadius+t+n);return a1.5*Math.PI?(o="after",i={x:l.x+r,y:l.y}):(o="before",i={x:l.x-r,y:l.y}),{side:o,points:[s,l,i]}},E4e=oT().x(function(e){return e.x}).y(function(e){return e.y}),I4e=function(e,t,n,r,o,i,a){return fu([e,t,n,r,o,i,a],function(s,l,u,c,f,p,y){var v=KW({startAngle:s,endAngle:l,innerRadius:u,outerRadius:c},f,p,y).points;return E4e(v)})},R4e=function(e,t,n,r){return fu([e,t,n,r],function(o,i,a,s){return T4e({startAngle:o,endAngle:i,innerRadius:a,outerRadius:s})})},O4e=function(e,t,n,r,o,i,a,s){return fu([e,t,n,r,o,i,a,s],function(l,u,c,f,p,y,v,b){var C=KW({startAngle:l,endAngle:u,innerRadius:c,outerRadius:f},p,y,v),x=C.points,w=C.side,S=x[2];return w==="before"?S.x-=b:S.x+=b,"translate("+S.x+","+S.y+")"})},A4e=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,o=e.diagonalLength,i=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,u=e.linkColor,c=e.textColor,f=To(),p=f.animate,y=f.config,v=On(),b=ms(u,v),C=ms(c,v),x=function(S,$){return m.useMemo(function(){return C4e(S,$)},[S,$])}(t,s),w=function(S){var $=S.offset,T=S.diagonalLength,k=S.straightLength,M=S.textOffset,I=S.getLinkColor,N=S.getTextColor;return m.useMemo(function(){return{enter:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:I(E),textColor:N(E),opacity:0}},update:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:T,straightLength:k,textOffset:M,linkColor:I(E),textColor:N(E),opacity:1}},leave:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:I(E),textColor:N(E),opacity:0}}}},[T,k,M,I,N])}({offset:r,diagonalLength:o,straightLength:i,textOffset:l,getLinkColor:b,getTextColor:C});return{transition:ud(x,{keys:function(S){return S.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:y,immediate:!p}),interpolateLink:I4e,interpolateTextAnchor:R4e,interpolateTextPosition:O4e}},F4e=function(e){var t=e.center,n=e.data,r=e.label,o=e.skipAngle,i=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,u=e.textOffset,c=e.textColor,f=e.linkColor,p=e.component,y=p===void 0?M4e:p,v=_c(r),b=A4e({data:n,skipAngle:o,offset:i,diagonalLength:a,straightLength:s,textOffset:u,linkColor:f,textColor:c}),C=b.transition,x=b.interpolateLink,w=b.interpolateTextAnchor,S=b.interpolateTextPosition,$=y;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(T,k){return m.createElement($,{key:k.id,datum:k,label:v(k),style:Vn({},T,{thickness:l,path:x(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength),textAnchor:w(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius),textPosition:S(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength,T.textOffset)})})})})},L4e=function(e){var t=e.datum,n=e.style,r=e.onClick,o=e.onMouseEnter,i=e.onMouseMove,a=e.onMouseLeave,s=m.useCallback(function(f){return r==null?void 0:r(t,f)},[r,t]),l=m.useCallback(function(f){return o==null?void 0:o(t,f)},[o,t]),u=m.useCallback(function(f){return i==null?void 0:i(t,f)},[i,t]),c=m.useCallback(function(f){return a==null?void 0:a(t,f)},[a,t]);return g.jsx(In.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:o?l:void 0,onMouseMove:i?u:void 0,onMouseLeave:a?c:void 0})},D4e=function(e,t,n,r,o){return fu([e,t,n,r],function(i,a,s,l){return o({startAngle:i,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},j4e=function(e,t,n){t===void 0&&(t="innerRadius");var r=To(),o=r.animate,i=r.config,a=qW(t,n);return{transition:ud(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:i,immediate:!o}),interpolate:D4e}},N4e=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.transitionMode,f=e.component,p=f===void 0?L4e:f,y=On(),v=ms(i,y),b=j4e(n,c,{enter:function(S){return{opacity:0,color:S.color,borderColor:v(S)}},update:function(S){return{opacity:1,color:S.color,borderColor:v(S)}},leave:function(S){return{opacity:0,color:S.color,borderColor:v(S)}}}),C=b.transition,x=b.interpolate,w=p;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(S,$){return m.createElement(w,{key:$.id,datum:$,style:Vn({},S,{borderWidth:o,path:x(S.startAngle,S.endAngle,S.innerRadius,S.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:u})})})},z4e=function(e,t,n,r,o,i){i===void 0&&(i=!0);var a=[],s=$c(Qi(r),n);a.push([s.x,s.y]);var l=$c(Qi(o),n);a.push([l.x,l.y]);for(var u=Math.round(Math.min(r,o));u<=Math.round(Math.max(r,o));u++)if(u%90==0){var c=$c(Qi(u),n);a.push([c.x,c.y])}a=a.map(function(C){var x=C[0],w=C[1];return[e+x,t+w]}),i&&a.push([e,t]);var f=a.map(function(C){return C[0]}),p=a.map(function(C){return C[1]}),y=Math.min.apply(Math,f),v=Math.max.apply(Math,f),b=Math.min.apply(Math,p);return{points:a,x:y,y:b,width:v-y,height:Math.max.apply(Math,p)-b}},B4e=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,o=t.padAngle,i=o===void 0?0:o;return m.useMemo(function(){return J3e().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])},H4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},W4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("g",{transform:"translate("+t+","+n+")",children:g.jsx("path",{d:` + `),g.jsxs("pattern",{id:t,width:c,height:f,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:c,height:f,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),g.jsx("path",{d:u,strokeWidth:a,stroke:i,strokeLinecap:"square"})]})});F1.displayName="PatternLines",F1.propTypes={id:R.string.isRequired,spacing:R.number.isRequired,rotation:R.number.isRequired,background:R.string.isRequired,color:R.string.isRequired,lineWidth:R.number.isRequired},F1.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var L1=m.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=i/2;return a===!0&&(s=2*o+2*i),g.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:s,height:s,fill:n}),g.jsx("rect",{x:l,y:l,width:o,height:o,fill:r}),a&&g.jsx("rect",{x:1.5*i+o,y:1.5*i+o,width:o,height:o,fill:r})]})});L1.displayName="PatternSquares",L1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},L1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var EW={patternDots:A1,patternLines:F1,patternSquares:L1},jOe=["type"],Ck=Rr({},TW,EW),IW=function(e){var t=e.defs;return!t||t.length<1?null:g.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,o=fT(n,jOe);return Ck[r]?m.createElement(Ck[r],Rr({key:o.id},o)):null})})};IW.propTypes={defs:R.arrayOf(R.shape({type:R.oneOf(Object.keys(Ck)).isRequired,id:R.string.isRequired}))};var NOe=m.memo(IW),e2=function(e){var t=e.width,n=e.height,r=e.margin,o=e.defs,i=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,c=e.isFocusable,f=On();return g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,focusable:c,tabIndex:c?0:void 0,children:[g.jsx(NOe,{defs:o}),g.jsx("rect",{width:t,height:n,fill:f.background}),g.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};e2.propTypes={width:R.number.isRequired,height:R.number.isRequired,margin:R.shape({top:R.number.isRequired,left:R.number.isRequired}).isRequired,defs:R.array,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,role:R.string,isFocusable:R.bool,ariaLabel:R.string,ariaLabelledBy:R.string,ariaDescribedBy:R.string};var RW=function(e){var t=e.size,n=e.color,r=e.borderWidth,o=e.borderColor;return g.jsx("circle",{r:t/2,fill:n,stroke:o,strokeWidth:r,style:{pointerEvents:"none"}})};RW.propTypes={size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired};var zOe=m.memo(RW),OW=function(e){var t=e.x,n=e.y,r=e.symbol,o=r===void 0?zOe:r,i=e.size,a=e.datum,s=e.color,l=e.borderWidth,u=e.borderColor,c=e.label,f=e.labelTextAnchor,p=f===void 0?"middle":f,y=e.labelYOffset,v=y===void 0?-12:y,b=On(),C=To(),x=C.animate,w=C.config,S=xs({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return g.jsxs(In.g,{transform:S.transform,style:{pointerEvents:"none"},children:[m.createElement(o,{size:i,color:s,datum:a,borderWidth:l,borderColor:u}),c&&g.jsx("text",{textAnchor:p,y:v,style:b.dots.text,children:c})]})};OW.propTypes={x:R.number.isRequired,y:R.number.isRequired,datum:R.object.isRequired,size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired,symbol:R.oneOfType([R.func,R.object]),label:R.oneOfType([R.string,R.number]),labelTextAnchor:R.oneOf(["start","middle","end"]),labelYOffset:R.number};var BOe=m.memo(OW),Sk=function(e){var t=e.width,n=e.height,r=e.axis,o=e.scale,i=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,u=e.legendPosition,c=e.legendOffsetX,f=e.legendOffsetY,p=e.legendOrientation,y=On(),v=0,b=0,C=0,x=0;r==="y"?(C=o(i),b=t):(v=o(i),x=n);var w=null;if(l){var S=function($){var T=$.axis,k=$.width,M=$.height,I=$.position,N=$.offsetX,E=$.offsetY,A=$.orientation,z=0,L=0,O=A==="vertical"?-90:0,D="start";if(T==="x")switch(I){case"top-left":z=-N,L=E,D="end";break;case"top":L=-E,D=A==="horizontal"?"middle":"start";break;case"top-right":z=N,L=E,D=A==="horizontal"?"start":"end";break;case"right":z=N,L=M/2,D=A==="horizontal"?"start":"middle";break;case"bottom-right":z=N,L=M-E,D="start";break;case"bottom":L=M+E,D=A==="horizontal"?"middle":"end";break;case"bottom-left":L=M-E,z=-N,D=A==="horizontal"?"end":"start";break;case"left":z=-N,L=M/2,D=A==="horizontal"?"end":"middle"}else switch(I){case"top-left":z=N,L=-E,D="start";break;case"top":z=k/2,L=-E,D=A==="horizontal"?"middle":"start";break;case"top-right":z=k-N,L=-E,D=A==="horizontal"?"end":"start";break;case"right":z=k+N,D=A==="horizontal"?"start":"middle";break;case"bottom-right":z=k-N,L=E,D="end";break;case"bottom":z=k/2,L=E,D=A==="horizontal"?"middle":"end";break;case"bottom-left":z=N,L=E,D=A==="horizontal"?"start":"end";break;case"left":z=-N,D=A==="horizontal"?"end":"middle"}return{x:z,y:L,rotation:O,textAnchor:D}}({axis:r,width:t,height:n,position:u,offsetX:c,offsetY:f,orientation:p});w=g.jsx("text",{transform:"translate("+S.x+", "+S.y+") rotate("+S.rotation+")",textAnchor:S.textAnchor,dominantBaseline:"central",style:s,children:l})}return g.jsxs("g",{transform:"translate("+v+", "+C+")",children:[g.jsx("line",{x1:0,x2:b,y1:0,y2:x,stroke:y.markers.lineColor,strokeWidth:y.markers.lineStrokeWidth,style:a}),w]})};Sk.propTypes={width:R.number.isRequired,height:R.number.isRequired,axis:R.oneOf(["x","y"]).isRequired,scale:R.func.isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object,legend:R.string,legendPosition:R.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:R.number.isRequired,legendOffsetY:R.number.isRequired,legendOrientation:R.oneOf(["horizontal","vertical"]).isRequired},Sk.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var HOe=m.memo(Sk),AW=function(e){var t=e.markers,n=e.width,r=e.height,o=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(a,s){return g.jsx(HOe,Rr({},a,{width:n,height:r,scale:a.axis==="y"?i:o}),s)}):null};AW.propTypes={width:R.number.isRequired,height:R.number.isRequired,xScale:R.func.isRequired,yScale:R.func.isRequired,markers:R.arrayOf(R.shape({axis:R.oneOf(["x","y"]).isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object}))};var FW=m.memo(AW),WOe=["theme","renderWrapper","animate","motionConfig"],LW=function(e){return function(t){var n,r;function o(){return t.apply(this,arguments)||this}return r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,bk(n,r),o.prototype.render=function(){var i=this.props,a=i.theme,s=i.renderWrapper,l=i.animate,u=i.motionConfig,c=fT(i,WOe);return g.jsx(x0,{theme:a,renderWrapper:s,isInteractive:c.isInteractive,animate:l,motionConfig:u,children:g.jsx(e,Rr({},c))})},o}(m.Component)},VOe=function(e,t){var n,r=Dy(e)?e:function(o){return iu(o,e)};return t&&(n=Dy(t)?t:Pu(t)),n?function(o){return n(r(o))}:r},DW=function(e){return Dy(e)?e:function(t){return iu(t,e)}},$c=function(e){return m.useMemo(function(){return DW(e)},[e])},jW=function(e,t,n,r,o,i){return e<=o&&o<=e+n&&t<=i&&i<=t+r},Im=function(e,t){var n,r=t.clientX,o=t.clientY,i=e.getBoundingClientRect(),a=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===i.width?1:n.width/i.width;return[(r-i.left)*a,(o-i.top)*a]},UOe=Object.keys(TW),GOe=Object.keys(EW),qOe=function(e,t,n){if(e==="*")return!0;if(Dy(e))return e(t);if(p$e(e)){var r=n?iu(t,n):t;return aOe(vIe(r,Object.keys(e)),e)}return!1},gT=function(e,t,n,r){var o=r===void 0?{}:r,i=o.dataKey,a=o.colorKey,s=a===void 0?"color":a,l=o.targetKey,u=l===void 0?"fill":l,c=[],f={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(p){for(var y=function(){var b=n[v],C=b.id,x=b.match;if(qOe(x,p,i)){var w=e.find(function(E){return E.id===C});if(w){if(GOe.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var S=iu(p,s),$=w.background,T=w.color,k=C;w.background==="inherit"&&(k=k+".bg."+S,$=S),w.color==="inherit"&&(k=k+".fg."+S,T=S),ac(p,u,"url(#"+k+")"),f[k]||(c.push(Rr({},w,{id:k,background:$,color:T})),f[k]=1)}else ac(p,u,"url(#"+C+")");else if(UOe.includes(w.type))if(w.colors.map(function(E){return E.color}).includes("inherit")){var M=iu(p,s),I=C,N=Rr({},w,{colors:w.colors.map(function(E,A){return E.color!=="inherit"?E:(I=I+"."+A+"."+M,Rr({},E,{color:E.color==="inherit"?M:E.color}))})});N.id=I,ac(p,u,"url(#"+I+")"),f[I]||(c.push(N),f[I]=1)}else ac(p,u,"url(#"+C+")")}return"break"}},v=0;v>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Jv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Jv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=YOe.exec(e))?new Ho(t[1],t[2],t[3],1):(t=XOe.exec(e))?new Ho(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QOe.exec(e))?Jv(t[1],t[2],t[3],t[4]):(t=ZOe.exec(e))?Jv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JOe.exec(e))?c8(t[1],t[2]/100,t[3]/100,1):(t=e4e.exec(e))?c8(t[1],t[2]/100,t[3]/100,t[4]):o8.hasOwnProperty(e)?s8(o8[e]):e==="transparent"?new Ho(NaN,NaN,NaN,0):null}function s8(e){return new Ho(e>>16&255,e>>8&255,e&255,1)}function Jv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ho(e,t,n,r)}function r4e(e){return e instanceof w0||(e=Qc(e)),e?(e=e.rgb(),new Ho(e.r,e.g,e.b,e.opacity)):new Ho}function zW(e,t,n,r){return arguments.length===1?r4e(e):new Ho(e,t,n,r??1)}function Ho(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}vT(Ho,zW,NW(w0,{brighter(e){return e=e==null?tb:Math.pow(tb,e),new Ho(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Og:Math.pow(Og,e),new Ho(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ho(_c(this.r),_c(this.g),_c(this.b),nb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:l8,formatHex:l8,formatHex8:o4e,formatRgb:u8,toString:u8}));function l8(){return`#${lc(this.r)}${lc(this.g)}${lc(this.b)}`}function o4e(){return`#${lc(this.r)}${lc(this.g)}${lc(this.b)}${lc((isNaN(this.opacity)?1:this.opacity)*255)}`}function u8(){const e=nb(this.opacity);return`${e===1?"rgb(":"rgba("}${_c(this.r)}, ${_c(this.g)}, ${_c(this.b)}${e===1?")":`, ${e})`}`}function nb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _c(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lc(e){return e=_c(e),(e<16?"0":"")+e.toString(16)}function c8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ca(e,t,n,r)}function BW(e){if(e instanceof Ca)return new Ca(e.h,e.s,e.l,e.opacity);if(e instanceof w0||(e=Qc(e)),!e)return new Ca;if(e instanceof Ca)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Ca(a,s,l,e.opacity)}function i4e(e,t,n,r){return arguments.length===1?BW(e):new Ca(e,t,n,r??1)}function Ca(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vT(Ca,i4e,NW(w0,{brighter(e){return e=e==null?tb:Math.pow(tb,e),new Ca(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Og:Math.pow(Og,e),new Ca(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ho(ZS(e>=240?e-240:e+120,o,r),ZS(e,o,r),ZS(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ca(d8(this.h),e1(this.s),e1(this.l),nb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=nb(this.opacity);return`${e===1?"hsl(":"hsla("}${d8(this.h)}, ${e1(this.s)*100}%, ${e1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function d8(e){return e=(e||0)%360,e<0?e+360:e}function e1(e){return Math.max(0,Math.min(1,e||0))}function ZS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var HW={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:AH,accent:FH,dark2:LH,paired:DH,pastel1:jH,pastel2:NH,set1:zH,set2:BH,set3:Y5},s4e=Object.keys(HW),WW={brown_blueGreen:yw,purpleRed_green:bw,pink_yellowGreen:xw,purple_orange:ww,red_blue:Cw,red_grey:Sw,red_yellow_blue:$w,red_yellow_green:_w,spectral:kw},l4e=Object.keys(WW),u4e={brown_blueGreen:uTe,purpleRed_green:cTe,pink_yellowGreen:dTe,purple_orange:fTe,red_blue:pTe,red_grey:hTe,red_yellow_blue:mTe,red_yellow_green:gTe,spectral:vTe},VW={blues:Nw,greens:zw,greys:Bw,oranges:Vw,purples:Hw,reds:Ww,blue_green:Pw,blue_purple:Mw,green_blue:Tw,orange_red:Ew,purple_blue_green:Iw,purple_blue:Rw,purple_red:Ow,red_purple:Aw,yellow_green_blue:Fw,yellow_green:Lw,yellow_orange_brown:Dw,yellow_orange_red:jw},c4e=Object.keys(VW),d4e={blues:ETe,greens:ITe,greys:RTe,oranges:FTe,purples:OTe,reds:ATe,turbo:n3e,viridis:r3e,inferno:i3e,magma:o3e,plasma:a3e,cividis:LTe,warm:XTe,cool:QTe,cubehelixDefault:YTe,blue_green:yTe,blue_purple:bTe,green_blue:xTe,orange_red:wTe,purple_blue_green:CTe,purple_blue:STe,purple_red:$Te,red_purple:_Te,yellow_green_blue:kTe,yellow_green:PTe,yellow_orange_brown:MTe,yellow_orange_red:TTe},D1=rb({},HW,WW,VW),f4e=Object.keys(D1),p4e=function(e){return s4e.includes(e)},h4e=function(e){return l4e.includes(e)},m4e=function(e){return c4e.includes(e)},g4e={rainbow:ZTe,sinebow:t3e};rb({},u4e,d4e,g4e);var v4e=function(e,t){if(typeof e=="function")return e;if(yi.isPlainObject(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=yi.get(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return yi.get(l,e.from)};if(Array.isArray(e.modifiers)){for(var o,i=[],a=function(){var l=o.value,u=l[0],c=l[1];if(u==="brighter")i.push(function(f){return f.brighter(c)});else if(u==="darker")i.push(function(f){return f.darker(c)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(f){return f.opacity=c,f})}},s=a4e(e.modifiers);!(o=s()).done;)a();return i.length===0?r:function(l){return i.reduce(function(u,c){return c(u)},zW(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},ms=function(e,t){return m.useMemo(function(){return v4e(e,t)},[e,t])},y4e=R.oneOfType([R.func,R.arrayOf(R.string),R.shape({scheme:R.oneOf(f4e).isRequired,size:R.number}),R.shape({datum:R.string.isRequired}),R.string]);R.oneOfType([R.string,R.func,R.shape({theme:R.string.isRequired}),R.shape({from:R.string.isRequired,modifiers:R.arrayOf(R.array)})]);var b4e=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(f){return yi.get(f,t)};if(Array.isArray(e)){var r=sc(e),o=function(f){return r(n(f))};return o.scale=r,o}if(yi.isPlainObject(e)){if(function(f){return f.datum!==void 0}(e))return function(f){return yi.get(f,e.datum)};if(function(f){return f.scheme!==void 0}(e)){if(p4e(e.scheme)){var i=sc(D1[e.scheme]),a=function(f){return i(n(f))};return a.scale=i,a}if(h4e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=sc(D1[e.scheme][e.size||11]),l=function(f){return s(n(f))};return l.scale=s,l}if(m4e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=sc(D1[e.scheme][e.size||9]),c=function(f){return u(n(f))};return c.scale=u,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},yT=function(e,t){return m.useMemo(function(){return b4e(e,t)},[e,t])};function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t})},S4e={startAngle:{enter:function(e){return Vn({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Vn({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Vn({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},GW=function(e,t){return m.useMemo(function(){var n=S4e[e];return{enter:function(r){return Vn({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Vn({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Vn({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},$4e=function(e,t){var n=FOe(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Sc(n,r)},_4e=function(e){return function(t,n,r,o){return du([t,n,r,o],function(i,a,s,l){var u=$4e({startAngle:i,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+u.x+","+u.y+")"})}},k4e=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var o=To(),i=o.animate,a=o.config,s=GW(n,r);return{transition:ld(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!i}),interpolate:_4e(t)}},P4e=function(e){var t=e.center,n=e.data,r=e.transitionMode,o=e.label,i=e.radiusOffset,a=e.skipAngle,s=e.textColor,l=e.component,u=l===void 0?w4e:l,c=$c(o),f=On(),p=ms(s,f),y=m.useMemo(function(){return n.filter(function(w){return Math.abs(Jw(w.arc.endAngle-w.arc.startAngle))>=a})},[n,a]),v=k4e(y,i,r),b=v.transition,C=v.interpolate,x=u;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:b(function(w,S){return m.createElement(x,{key:S.id,datum:S,label:c(S),style:Vn({},w,{transform:C(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:p(S)})})})})},M4e=function(e){var t=e.label,n=e.style,r=On();return g.jsxs(In.g,{opacity:n.opacity,children:[g.jsx(In.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),g.jsx(In.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Vn({},r.labels.text,{fill:n.textColor}),children:t})]})},T4e=function(e){var t=UW(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t1.5*Math.PI?"start":"end"},qW=function(e,t,n,r){var o,i,a=UW(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=Sc(a,e.outerRadius+t),l=Sc(a,e.outerRadius+t+n);return a1.5*Math.PI?(o="after",i={x:l.x+r,y:l.y}):(o="before",i={x:l.x-r,y:l.y}),{side:o,points:[s,l,i]}},E4e=rT().x(function(e){return e.x}).y(function(e){return e.y}),I4e=function(e,t,n,r,o,i,a){return du([e,t,n,r,o,i,a],function(s,l,u,c,f,p,y){var v=qW({startAngle:s,endAngle:l,innerRadius:u,outerRadius:c},f,p,y).points;return E4e(v)})},R4e=function(e,t,n,r){return du([e,t,n,r],function(o,i,a,s){return T4e({startAngle:o,endAngle:i,innerRadius:a,outerRadius:s})})},O4e=function(e,t,n,r,o,i,a,s){return du([e,t,n,r,o,i,a,s],function(l,u,c,f,p,y,v,b){var C=qW({startAngle:l,endAngle:u,innerRadius:c,outerRadius:f},p,y,v),x=C.points,w=C.side,S=x[2];return w==="before"?S.x-=b:S.x+=b,"translate("+S.x+","+S.y+")"})},A4e=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,o=e.diagonalLength,i=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,u=e.linkColor,c=e.textColor,f=To(),p=f.animate,y=f.config,v=On(),b=ms(u,v),C=ms(c,v),x=function(S,$){return m.useMemo(function(){return C4e(S,$)},[S,$])}(t,s),w=function(S){var $=S.offset,T=S.diagonalLength,k=S.straightLength,M=S.textOffset,I=S.getLinkColor,N=S.getTextColor;return m.useMemo(function(){return{enter:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:I(E),textColor:N(E),opacity:0}},update:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:T,straightLength:k,textOffset:M,linkColor:I(E),textColor:N(E),opacity:1}},leave:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:I(E),textColor:N(E),opacity:0}}}},[T,k,M,I,N])}({offset:r,diagonalLength:o,straightLength:i,textOffset:l,getLinkColor:b,getTextColor:C});return{transition:ld(x,{keys:function(S){return S.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:y,immediate:!p}),interpolateLink:I4e,interpolateTextAnchor:R4e,interpolateTextPosition:O4e}},F4e=function(e){var t=e.center,n=e.data,r=e.label,o=e.skipAngle,i=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,u=e.textOffset,c=e.textColor,f=e.linkColor,p=e.component,y=p===void 0?M4e:p,v=$c(r),b=A4e({data:n,skipAngle:o,offset:i,diagonalLength:a,straightLength:s,textOffset:u,linkColor:f,textColor:c}),C=b.transition,x=b.interpolateLink,w=b.interpolateTextAnchor,S=b.interpolateTextPosition,$=y;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(T,k){return m.createElement($,{key:k.id,datum:k,label:v(k),style:Vn({},T,{thickness:l,path:x(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength),textAnchor:w(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius),textPosition:S(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength,T.textOffset)})})})})},L4e=function(e){var t=e.datum,n=e.style,r=e.onClick,o=e.onMouseEnter,i=e.onMouseMove,a=e.onMouseLeave,s=m.useCallback(function(f){return r==null?void 0:r(t,f)},[r,t]),l=m.useCallback(function(f){return o==null?void 0:o(t,f)},[o,t]),u=m.useCallback(function(f){return i==null?void 0:i(t,f)},[i,t]),c=m.useCallback(function(f){return a==null?void 0:a(t,f)},[a,t]);return g.jsx(In.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:o?l:void 0,onMouseMove:i?u:void 0,onMouseLeave:a?c:void 0})},D4e=function(e,t,n,r,o){return du([e,t,n,r],function(i,a,s,l){return o({startAngle:i,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},j4e=function(e,t,n){t===void 0&&(t="innerRadius");var r=To(),o=r.animate,i=r.config,a=GW(t,n);return{transition:ld(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:i,immediate:!o}),interpolate:D4e}},N4e=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.transitionMode,f=e.component,p=f===void 0?L4e:f,y=On(),v=ms(i,y),b=j4e(n,c,{enter:function(S){return{opacity:0,color:S.color,borderColor:v(S)}},update:function(S){return{opacity:1,color:S.color,borderColor:v(S)}},leave:function(S){return{opacity:0,color:S.color,borderColor:v(S)}}}),C=b.transition,x=b.interpolate,w=p;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(S,$){return m.createElement(w,{key:$.id,datum:$,style:Vn({},S,{borderWidth:o,path:x(S.startAngle,S.endAngle,S.innerRadius,S.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:u})})})},z4e=function(e,t,n,r,o,i){i===void 0&&(i=!0);var a=[],s=Sc(Qi(r),n);a.push([s.x,s.y]);var l=Sc(Qi(o),n);a.push([l.x,l.y]);for(var u=Math.round(Math.min(r,o));u<=Math.round(Math.max(r,o));u++)if(u%90==0){var c=Sc(Qi(u),n);a.push([c.x,c.y])}a=a.map(function(C){var x=C[0],w=C[1];return[e+x,t+w]}),i&&a.push([e,t]);var f=a.map(function(C){return C[0]}),p=a.map(function(C){return C[1]}),y=Math.min.apply(Math,f),v=Math.max.apply(Math,f),b=Math.min.apply(Math,p);return{points:a,x:y,y:b,width:v-y,height:Math.max.apply(Math,p)-b}},B4e=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,o=t.padAngle,i=o===void 0?0:o;return m.useMemo(function(){return J3e().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])},H4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},W4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("g",{transform:"translate("+t+","+n+")",children:g.jsx("path",{d:` M`+r/2+` 0 L`+.8*r+" "+r/2+` L`+r/2+" "+r+` @@ -726,17 +726,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L`+r+" "+r+` L0 `+r+` L`+r/2+` 0 - `,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var h8,Z4e=function(e){var t=e.width,n=e.height,r=e.legends,o=e.data,i=e.toggleSerie;return g.jsx(g.Fragment,{children:r.map(function(a,s){var l;return g.jsx(wT,cl({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:o,toggleSerie:a.toggleSerie?i:void 0}),s)})})},kt={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcLinkLabels","arcs","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return g.jsx(y5,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(h8=window.devicePixelRatio)!=null?h8:1},J4e=["points"],eAe=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.colors,l=s===void 0?kt.colors:s,u=_c(r),c=_c(i),f=Og(a),p=bT(l,"id");return m.useMemo(function(){return t.map(function(y){var v,b=u(y),C=c(y),x={id:b,label:(v=y.label)!=null?v:b,hidden:!1,value:C,formattedValue:f(C),data:y};return cl({},x,{color:p(x)})})},[t,u,c,f,p])},tAe=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,o=e.innerRadius,i=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,u=e.activeInnerRadiusOffset,c=e.activeOuterRadiusOffset,f=e.hiddenIds,p=m.useMemo(function(){var y=rEe().value(function(v){return v.value}).startAngle(Qi(n)).endAngle(Qi(r)).padAngle(Qi(a));return s||y.sortValues(null),y},[n,r,a,s]);return m.useMemo(function(){var y=t.filter(function(v){return!f.includes(v.id)});return{dataWithArc:p(y).map(function(v){var b=Math.abs(v.endAngle-v.startAngle);return cl({},v.data,{arc:{index:v.index,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:l===v.data.id?o-u:o,outerRadius:l===v.data.id?i+c:i,thickness:i-o,padAngle:v.padAngle,angle:b,angleDeg:e2(b)}})}),legendData:t.map(function(v){return cl({},v,{hidden:f.includes(v.id)})})}},[p,t,f,l,o,u,i,c])},nAe=function(e){var t=e.data,n=e.width,r=e.height,o=e.innerRadius,i=o===void 0?kt.innerRadius:o,a=e.startAngle,s=a===void 0?kt.startAngle:a,l=e.endAngle,u=l===void 0?kt.endAngle:l,c=e.padAngle,f=c===void 0?kt.padAngle:c,p=e.sortByValue,y=p===void 0?kt.sortByValue:p,v=e.cornerRadius,b=v===void 0?kt.cornerRadius:v,C=e.fit,x=C===void 0?kt.fit:C,w=e.activeInnerRadiusOffset,S=w===void 0?kt.activeInnerRadiusOffset:w,$=e.activeOuterRadiusOffset,T=$===void 0?kt.activeOuterRadiusOffset:$,k=m.useState(null),M=k[0],I=k[1],N=m.useState([]),E=N[0],A=N[1],z=m.useMemo(function(){var D,H=Math.min(n,r)/2,B=H*Math.min(i,1),j=n/2,W=r/2;if(x){var U=z4e(j,W,H,s-90,u-90),Z=U.points,Y=ZW(U,J4e),se=Math.min(n/Y.width,r/Y.height),Q={width:Y.width*se,height:Y.height*se};Q.x=(n-Q.width)/2,Q.y=(r-Q.height)/2,j=(j-Y.x)/Y.width*Y.width*se+Q.x,W=(W-Y.y)/Y.height*Y.height*se+Q.y,D={box:Y,ratio:se,points:Z},H*=se,B*=se}return{centerX:j,centerY:W,radius:H,innerRadius:B,debug:D}},[n,r,i,s,u,x,b]),L=tAe({data:t,startAngle:s,endAngle:u,innerRadius:z.innerRadius,outerRadius:z.radius,padAngle:f,sortByValue:y,activeId:M,activeInnerRadiusOffset:S,activeOuterRadiusOffset:T,hiddenIds:E}),O=m.useCallback(function(D){A(function(H){return H.indexOf(D)>-1?H.filter(function(B){return B!==D}):[].concat(H,[D])})},[]);return cl({arcGenerator:B4e({cornerRadius:b,padAngle:Qi(f)}),setActiveId:I,toggleSerie:O},L,z)},rAe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,o=e.centerY,i=e.radius,a=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:o,radius:i,innerRadius:a}},[t,n,r,o,i,a])},oAe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.setActiveId,p=e.tooltip,y=e.transitionMode,v=zp(),b=v.showTooltipFromEvent,C=v.hideTooltip,x=m.useMemo(function(){if(a)return function(T,k){s==null||s(T,k)}},[a,s]),w=m.useMemo(function(){if(a)return function(T,k){b(m.createElement(p,{datum:T}),k),f(T.id),l==null||l(T,k)}},[a,b,f,l,p]),S=m.useMemo(function(){if(a)return function(T,k){b(m.createElement(p,{datum:T}),k),u==null||u(T,k)}},[a,b,u,p]),$=m.useMemo(function(){if(a)return function(T,k){C(),f(null),c==null||c(T,k)}},[a,C,f,c]);return g.jsx(N4e,{center:t,data:n,arcGenerator:r,borderWidth:o,borderColor:i,transitionMode:y,onClick:x,onMouseEnter:w,onMouseMove:S,onMouseLeave:$})},iAe=["isInteractive","animate","motionConfig","theme","renderWrapper"],aAe=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.sortByValue,l=s===void 0?kt.sortByValue:s,u=e.layers,c=u===void 0?kt.layers:u,f=e.startAngle,p=f===void 0?kt.startAngle:f,y=e.endAngle,v=y===void 0?kt.endAngle:y,b=e.padAngle,C=b===void 0?kt.padAngle:b,x=e.fit,w=x===void 0?kt.fit:x,S=e.innerRadius,$=S===void 0?kt.innerRadius:S,T=e.cornerRadius,k=T===void 0?kt.cornerRadius:T,M=e.activeInnerRadiusOffset,I=M===void 0?kt.activeInnerRadiusOffset:M,N=e.activeOuterRadiusOffset,E=N===void 0?kt.activeOuterRadiusOffset:N,A=e.width,z=e.height,L=e.margin,O=e.colors,D=O===void 0?kt.colors:O,H=e.borderWidth,B=H===void 0?kt.borderWidth:H,j=e.borderColor,W=j===void 0?kt.borderColor:j,U=e.enableArcLabels,Z=U===void 0?kt.enableArcLabels:U,Y=e.arcLabel,se=Y===void 0?kt.arcLabel:Y,Q=e.arcLabelsSkipAngle,ne=Q===void 0?kt.arcLabelsSkipAngle:Q,re=e.arcLabelsTextColor,ge=re===void 0?kt.arcLabelsTextColor:re,xe=e.arcLabelsRadiusOffset,fe=xe===void 0?kt.arcLabelsRadiusOffset:xe,Se=e.arcLabelsComponent,de=e.enableArcLinkLabels,ie=de===void 0?kt.enableArcLinkLabels:de,Pe=e.arcLinkLabel,$e=Pe===void 0?kt.arcLinkLabel:Pe,me=e.arcLinkLabelsSkipAngle,ue=me===void 0?kt.arcLinkLabelsSkipAngle:me,ce=e.arcLinkLabelsOffset,Te=ce===void 0?kt.arcLinkLabelsOffset:ce,Le=e.arcLinkLabelsDiagonalLength,Re=Le===void 0?kt.arcLinkLabelsDiagonalLength:Le,Oe=e.arcLinkLabelsStraightLength,K=Oe===void 0?kt.arcLinkLabelsStraightLength:Oe,ee=e.arcLinkLabelsThickness,pe=ee===void 0?kt.arcLinkLabelsThickness:ee,ye=e.arcLinkLabelsTextOffset,De=ye===void 0?kt.arcLinkLabelsTextOffset:ye,Ae=e.arcLinkLabelsTextColor,Ee=Ae===void 0?kt.arcLinkLabelsTextColor:Ae,Ce=e.arcLinkLabelsColor,Qe=Ce===void 0?kt.arcLinkLabelsColor:Ce,Ct=e.arcLinkLabelComponent,et=e.defs,Be=et===void 0?kt.defs:et,te=e.fill,X=te===void 0?kt.fill:te,oe=e.isInteractive,Ie=oe===void 0?kt.isInteractive:oe,Ve=e.onClick,Ke=e.onMouseEnter,at=e.onMouseMove,Je=e.onMouseLeave,nt=e.tooltip,_t=nt===void 0?kt.tooltip:nt,ht=e.transitionMode,lt=ht===void 0?kt.transitionMode:ht,Rt=e.legends,jt=Rt===void 0?kt.legends:Rt,dn=e.role,hn=dn===void 0?kt.role:dn,Pt=x0(A,z,L),zt=Pt.outerWidth,un=Pt.outerHeight,cn=Pt.margin,ut=Pt.innerWidth,mt=Pt.innerHeight,Ot=eAe({data:t,id:r,value:i,valueFormat:a,colors:D}),At=nAe({data:Ot,width:ut,height:mt,fit:w,innerRadius:$,startAngle:p,endAngle:v,padAngle:C,sortByValue:l,cornerRadius:k,activeInnerRadiusOffset:I,activeOuterRadiusOffset:E}),tt=At.dataWithArc,Ut=At.legendData,_e=At.arcGenerator,we=At.centerX,Fe=At.centerY,rt=At.radius,Tt=At.innerRadius,en=At.setActiveId,_n=At.toggleSerie,ct=vT(Be,tt,X),gt={arcLinkLabels:null,arcs:null,arcLabels:null,legends:null};ie&&c.includes("arcLinkLabels")&&(gt.arcLinkLabels=g.jsx(F4e,{center:[we,Fe],data:tt,label:$e,skipAngle:ue,offset:Te,diagonalLength:Re,straightLength:K,strokeWidth:pe,textOffset:De,textColor:Ee,linkColor:Qe,component:Ct},"arcLinkLabels")),c.includes("arcs")&&(gt.arcs=g.jsx(oAe,{center:[we,Fe],data:tt,arcGenerator:_e,borderWidth:B,borderColor:W,isInteractive:Ie,onClick:Ve,onMouseEnter:Ke,onMouseMove:at,onMouseLeave:Je,setActiveId:en,tooltip:_t,transitionMode:lt},"arcs")),Z&&c.includes("arcLabels")&&(gt.arcLabels=g.jsx(P4e,{center:[we,Fe],data:tt,label:se,radiusOffset:fe,skipAngle:ne,textColor:ge,transitionMode:lt,component:Se},"arcLabels")),jt.length>0&&c.includes("legends")&&(gt.legends=g.jsx(Z4e,{width:ut,height:mt,data:Ut,legends:jt,toggleSerie:_n},"legends"));var or=rAe({dataWithArc:tt,arcGenerator:_e,centerX:we,centerY:Fe,radius:rt,innerRadius:Tt});return g.jsx(t2,{width:zt,height:un,margin:cn,defs:ct,role:hn,children:c.map(function(Td,Ed){return gt[Td]!==void 0?gt[Td]:typeof Td=="function"?g.jsx(m.Fragment,{children:m.createElement(Td,or)},Ed):null})})},sAe=function(e){var t=e.isInteractive,n=t===void 0?kt.isInteractive:t,r=e.animate,o=r===void 0?kt.animate:r,i=e.motionConfig,a=i===void 0?kt.motionConfig:i,s=e.theme,l=e.renderWrapper,u=ZW(e,iAe);return g.jsx(w0,{animate:o,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:g.jsx(aAe,cl({isInteractive:n},u))})},lAe=function(e){return g.jsx(eh,{children:function(t){var n=t.width,r=t.height;return g.jsx(sAe,cl({width:n,height:r},e))}})};const uAe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(lAe,{data:e,margin:{top:20,right:80,bottom:20,left:80},activeOuterRadiusOffset:8,colors:{scheme:"blues"},borderColor:{from:"color",modifiers:[["darker",.2]]},enableArcLinkLabels:!0,arcLinkLabelsSkipAngle:10,arcLinkLabelsTextColor:n.primary[100],arcLinkLabelsThickness:2,arcLinkLabelsColor:{from:"color",modifiers:[]},arcLabelsSkipAngle:10,arcLabelsTextColor:"#000",arcLabelsRadiusOffset:.7,valueFormat:r=>`${Number(r).toLocaleString("ru-RU",{minimumFractionDigits:2})}%`,motionConfig:{mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},theme:{tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}}})},cAe=[{id:1,amount:1e3,paymentMethod:"credit card",sourceName:"Job Salary",status:"Active",frequency:"Monthly",received:"05.01.2023",category:"Employment ",description:"Monthly pay",nextPayment:"05.02.2023",taxRate:20},{id:2,amount:500,paymentMethod:"online",sourceName:"Freelance Work",status:"Active",frequency:"Weekly",received:"07.01.2023",category:"Freelance",description:"Web design",nextPayment:"14.01.2023",taxRate:30},{id:3,amount:300,paymentMethod:"online",sourceName:"Rental Income",status:"Active",frequency:"Monthly",received:"15.01.2023",category:"Property ",description:"Rent",nextPayment:"15.02.2023",taxRate:20},{id:4,amount:300,paymentMethod:"Venmo",sourceName:"Side Gig",status:"Active",frequency:"Weekly",received:"31.12.2022",category:"Business",description:"Photography",nextPayment:"01.03.2023",taxRate:15},{id:5,amount:150,paymentMethod:"cash",sourceName:"Side Hustle",status:"Active",frequency:"Bi-weekly",received:"01.01.2023",category:"Gig",description:"Event DJ",nextPayment:"14.01.2023",taxRate:10},{id:6,amount:100,paymentMethod:"credit card",sourceName:"Gift Money",status:"Active",frequency:"One-time",received:"01.01.2023",category:"Personal",description:"Birthday",nextPayment:null,taxRate:5},{id:7,amount:250,paymentMethod:"Bank Transfer",sourceName:"Dividend",status:"Active",frequency:"Yearly",received:"29.12.2023",category:"Investment",description:"Stocks",nextPayment:"2024.01.15",taxRate:10},{id:8,amount:400,paymentMethod:"PayPal",sourceName:"Rent",status:"Active",frequency:"Monthly",received:"03.02.2023",category:"Housing",description:"Apartment",nextPayment:"03.03.2023",taxRate:15},{id:9,amount:400,paymentMethod:"PayPal",sourceName:"Sale",status:"Active",frequency:"One-time",received:"20.01.2023",category:"Personal",description:"Electronics",nextPayment:null,taxRate:20}],dAe=[{id:"Electricity",label:"Electricity",value:19,color:"hsl(173, 70%, 50%)"},{id:"Phone",label:"Phone",value:7,color:"hsl(352, 70%, 50%)"},{id:"Gas",label:"Gas",value:10,color:"hsl(180, 70%, 50%)"},{id:"WaterSewer",label:"Water and sewer",value:18,color:"hsl(128, 70%, 50%)"},{id:"Cable",label:"Cable",value:5,color:"hsl(269, 70%, 50%)"},{id:"Waste",label:"Waste removal",value:6,color:"hsl(24, 85%, 56%)"},{id:"Other",label:"Other",value:35,color:"hsl(240, 9%, 81%)"}],fAe=[{title:"Housing",currentValue:"2,500",limit:"3,000"},{title:"Utilities",currentValue:"600",limit:"1,500"},{title:"Transportation",currentValue:"900",limit:"2,000"},{title:"Food",currentValue:"1,250",limit:"2,500"},{title:"Health Insurance",currentValue:"500",limit:"1,500"},{title:"Personal Care",currentValue:"80",limit:"500"},{title:"Clothing",currentValue:"200",limit:"500"},{title:"Entertainment",currentValue:"50",limit:"300"},{title:"Travel",currentValue:"1,200",limit:"5,000"},{title:"Education",currentValue:"800",limit:"2,000"},{title:"Debt Repayment",currentValue:"3,000",limit:"4,000"},{title:"Insurance",currentValue:"1,750",limit:"3,000"},{title:"Phone Bill",currentValue:"2,500",limit:"3,000"},{title:"Internet Bill",currentValue:"2,500",limit:"3,000"},{title:"Charity and Donations",currentValue:"500",limit:"1,000"}],pAe=[{id:1,title:"Emergency",amount:"$1000",description:"Emergency Fund",goal:"$5000",targetDate:"12.31.2023",progress:"20%",category:"General",status:"Incomplete"},{id:2,title:"Vacation",amount:"$2000",description:"Saving for vacation",goal:"$5000",targetDate:"06.30.2024",progress:"40%",category:"Travel",status:"Incomplete"},{id:3,title:"Car",amount:"$500",description:"Saving for a new car",goal:"$10000",targetDate:"10.15.2024",progress:"5%",category:"Vehicle",status:"Incomplete"},{id:4,title:"Education",amount:"$2500",description:"College fund",goal:"$15000",targetDate:"12.31.2024",progress:"16.67%",category:"Education",status:"Incomplete"}],JW=()=>g.jsx(mr,{title:"Budget Allocation",content:g.jsx(_i,{style:{height:"400px",padding:0},children:g.jsx(uAe,{data:dAe})}),height:500}),eV=m.createContext(void 0);function Wt(){const e=m.useContext(eV);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 tV=m.createContext(void 0),dt=()=>{const e=m.useContext(tV);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},nV=m.createContext(void 0);function Tu(){const e=m.useContext(nV);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 m8={};function CT(e,t){const n=m.useRef(m8);return n.current===m8&&(n.current=e(t)),n}const hAe=[];function rV(e){m.useEffect(e,hAe)}const $s=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},mAe=Object.is;function oV(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,!mAe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}$s(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function gAe(e){return e.acceptsApiRef}function g8(e,t){return gAe(t)?t(e):t(e.current.state)}const vAe=Object.is,ST=oV,yAe=()=>({state:null,equals:null,selector:null}),it=(e,t,n=vAe)=>{const r=CT(yAe),o=r.current.selector!==null,[i,a]=m.useState(o?null:g8(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,rV(()=>e.current.store.subscribe(()=>{const s=g8(e,r.current.selector);r.current.equals(r.current.state,s)||(r.current.state=s,a(s))})),i};function Jt(e){return yt("MuiDataGrid",e)}const le=bt("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var ib="NOT_FOUND";function bAe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ib},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function xAe(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 ib}function o(s,l){r(s)===ib&&(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 wAe=function(t,n){return t===n};function CAe(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&o&&i)s=(l,u)=>{const c=cf(l),f=u??(c?l.current.instanceId:df),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f),x=o(p,f);return i(y,v,b,C,x)};else if(e&&t&&n&&r&&o)s=(l,u)=>{const c=cf(l),f=u??(c?l.current.instanceId:df),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f);return o(y,v,b,C)};else if(e&&t&&n&&r)s=(l,u)=>{const c=cf(l),f=u??(c?l.current.instanceId:df),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f);return r(y,v,b)};else if(e&&t&&n)s=(l,u)=>{const c=cf(l),f=u??(c?l.current.instanceId:df),p=c?l.current.state:l,y=e(p,f),v=t(p,f);return n(y,v)};else if(e&&t)s=(l,u)=>{const c=cf(l),f=u??(c?l.current.instanceId:df),p=c?l.current.state:l,y=e(p,f);return t(y)};else throw new Error("Missing arguments");return s.acceptsApiRef=!0,s},Jn=(...e)=>{const t=(...n)=>{var r,o;const[i,a]=n,s=cf(i),l=s?i.current.instanceId:a??df,u=s?i.current.state:i,{cache:c}=kAe;if(c.get(l)&&(r=c.get(l))!=null&&r.get(e)){var f;return(f=c.get(l))==null?void 0:f.get(e)(u,l)}const p=_Ae(...e);return c.get(l)||c.set(l,new Map),(o=c.get(l))==null||o.set(e,p),p(u,l)};return t.acceptsApiRef=!0,t},Pc=e=>e.columns,nl=Vt(Pc,e=>e.orderedFields),vd=Vt(Pc,e=>e.lookup),us=Jn(nl,vd,(e,t)=>e.map(n=>t[n])),_a=Vt(Pc,e=>e.columnVisibilityModel),Xr=Jn(us,_a,(e,t)=>e.filter(n=>t[n.field]!==!1)),r2=Jn(Xr,e=>e.map(t=>t.field)),Mp=Jn(Xr,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),iV=Jn(us,e=>e.filter(t=>t.filterable)),PAe=Jn(us,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),o2=e=>e.columnGrouping,MAe=Jn(o2,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),aV=Jn(o2,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),TAe=Jn(o2,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),S0=Vt(o2,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Aa=e=>e.rows,i2=Vt(Aa,e=>e.totalRowCount),EAe=Vt(Aa,e=>e.loading),IAe=Vt(Aa,e=>e.totalTopLevelRowCount),ql=Vt(Aa,e=>e.dataRowIdToModelLookup),ab=Vt(Aa,e=>e.dataRowIdToIdLookup),Ca=Vt(Aa,e=>e.tree),RAe=Vt(Aa,e=>e.groupingName),v8=Vt(Aa,e=>e.treeDepths),a2=Jn(Aa,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}),n1=Vt(Aa,e=>e.dataRowIds),OAe=Vt(Aa,e=>e==null?void 0:e.additionalRowGroups),th=Jn(OAe,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:{}}})}}),AAe=Vt(th,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)}),sV=()=>{var e;const t=Tu(),n=dt(),r=it(t,Xr),o=it(t,i2),i=it(t,S0),a=it(t,AAe);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}},FAe=e=>{const{classes:t}=e;return Ge({root:["main"]},Jt,t)},LAe=Ar("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),DAe=m.forwardRef((e,t)=>{var n;const r=dt(),o=FAe(r),i=(n=r.experimentalFeatures)!=null&&n.ariaV7?sV:null,a=typeof i=="function"?i():null;return g.jsx(LAe,P({ref:t,className:o.root,ownerState:r},a,{children:e.children}))}),lV=e=>e.sorting,_T=Vt(lV,e=>e.sortedRows),kT=Jn(_T,ql,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Di=Vt(lV,e=>e.sortModel),jAe=Jn(Di,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),PT=e=>e.filter,qr=Vt(PT,e=>e.filterModel),NAe=Vt(qr,e=>e.quickFilterValues),zAe=e=>e.visibleRowsLookup,uV=Vt(PT,e=>e.filteredRowsLookup);Vt(PT,e=>e.filteredDescendantCountLookup);const Eu=Jn(zAe,kT,(e,t)=>t.filter(n=>e[n.id]!==!1)),Om=Jn(Eu,e=>e.map(t=>t.id)),BAe=Jn(uV,kT,(e,t)=>t.filter(n=>e[n.id]!==!1)),HAe=Jn(BAe,e=>e.map(t=>t.id)),cV=Jn(Eu,Ca,a2,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),dV=Vt(Eu,e=>e.length),s2=Vt(cV,e=>e.length),fV=Jn(qr,vd,(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})}),WAe=Jn(fV,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),l2=e=>e.focus,si=Vt(l2,e=>e.cell),VAe=Vt(l2,e=>e.columnHeader);Vt(l2,e=>e.columnHeaderFilter);const sb=Vt(l2,e=>e.columnGroupHeader),u2=e=>e.tabIndex,lb=Vt(u2,e=>e.cell),pV=Vt(u2,e=>e.columnHeader);Vt(u2,e=>e.columnHeaderFilter);const UAe=Vt(u2,e=>e.columnGroupHeader),MT=e=>e.density,hV=Vt(MT,e=>e.value),nh=Vt(MT,e=>e.factor),_k=e=>e.columnMenu;function GAe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Tu(),i=dt(),a=m.useRef(null),s=it(o,Xr),l=it(o,WAe),u=it(o,jAe),c=it(o,Mp),f=it(o,pV),p=it(o,lb),y=it(o,UAe),v=it(o,VAe),b=it(o,sb),C=it(o,nh),x=it(o,S0),w=it(o,_k),S=it(o,_a),$=it(o,TAe),T=!(y===null&&f===null&&p===null);pn(()=>{o.current.computeSizeAndPublishResizeEvent();const E=a.current;if(typeof ResizeObserver>"u")return()=>{};let A;const z=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return E&&z.observe(E),()=>{A&&window.cancelAnimationFrame(A),E&&z.unobserve(E)}},[o]);const k=m.useRef(null),M=m.useRef(null),I=m.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:M,columnHeadersElementRef:k,virtualScrollerRef:I,mainElementRef:a});const N=!!o.current.getRootDimensions();return g.jsxs(DAe,{ref:a,children:[g.jsx(i.slots.columnHeaders,P({ref:M,innerRef:k,visibleColumns:s,filterColumnLookup:l,sortColumnLookup:u,columnPositions:c,columnHeaderTabIndexState:f,columnGroupHeaderTabIndexState:y,columnHeaderFocus:v,columnGroupHeaderFocus:b,densityFactor:C,headerGroupingMaxDepth:x,columnMenuState:w,columnVisibility:S,columnGroupsHeaderStructure:$,hasOtherElementInTabSequence:T},n)),N&&g.jsx(t,{ref:I}),r]})}function qAe(){var e;const t=dt();return t.hideFooter?null:g.jsx(t.slots.footer,P({},(e=t.slotProps)==null?void 0:e.footer))}const xo="auto-generated-group-node-root",Xf=Symbol("mui.id_autogenerated"),KAe=()=>({type:"group",id:xo,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function YAe(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 ub=(e,t,n)=>{const r=t?t(e):e.id;return YAe(r,e,n),r},N1=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let s=0;s{const n=e[xo];return Math.max(t,n.children.length+(n.footerId==null?0:1))},gV=({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:mV({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Lg=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,TT=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(p=>{const y=ub(p,t,"A row was provided without id when calling updateRows():");a.has(y)?a.set(y,P({},a.get(y),p)):a.set(y,p)});const s={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:P({},e.updates.idToActionLookup)},l=P({},e.dataRowIdToModelLookup),u=P({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((p,y)=>{const v=s.idToActionLookup[y];if(p._action==="delete"){if(v==="remove"||!l[y])return;v!=null&&(c[v][y]=!0),s.actions.remove.push(y),delete l[y],delete u[y];return}const b=l[y];if(b){v==="remove"?(c.remove[y]=!0,s.actions.modify.push(y)):v==null&&s.actions.modify.push(y),l[y]=P({},b,p);return}v==="remove"?(c.remove[y]=!0,s.actions.insert.push(y)):v==null&&s.actions.insert.push(y),l[y]=p,u[y]=y});const f=Object.keys(c);for(let p=0;p0&&(s.actions[y]=s.actions[y].filter(b=>!v[b]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:u,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function vV(e){var t,n;const r=th(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 yV(e,t){const n=nh(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const QAe=Ar("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),ZAe=Ar("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),JAe=e=>{const{classes:t}=e;return Ge({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Jt,t)};function e6e(e){var t,n;const r=Wt(),o=dt(),[i,a]=m.useState(()=>{var c,f;return(c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null}),s=m.useCallback(()=>{var c,f;a((c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null)},[r]);pn(()=>r.current.subscribeEvent("viewportInnerSizeChange",s),[r,s]);let l=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&l===0&&(l=yV(r,o.rowHeight));const u=JAe(P({},e,{classes:o.classes}));return i?g.jsx(QAe,{className:ze(u.root),overlayType:e.overlayType,children:g.jsx(ZAe,P({className:ze(u.inner),style:{height:l,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function t6e(){const e=Wt(),t=dt(),n=it(e,i2),r=it(e,dV),o=it(e,EAe),i=!o&&n===0,a=!o&&n>0&&r===0;let s=null,l="";if(i){var u;s=g.jsx(t.slots.noRowsOverlay,P({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),l="noRowsOverlay"}if(a){var c;s=g.jsx(t.slots.noResultsOverlay,P({},(c=t.slotProps)==null?void 0:c.noResultsOverlay)),l="noResultsOverlay"}if(o){var f;s=g.jsx(t.slots.loadingOverlay,P({},(f=t.slotProps)==null?void 0:f.loadingOverlay)),l="loadingOverlay"}return s===null?null:g.jsx(e6e,{overlayType:l,children:s})}function c2(e){return m.memo(e,oV)}let e$;function n6e(){return e$===void 0&&document.createElement("div").focus({get preventScroll(){return e$=!0,!1}}),e$}var gs=function(e){return e.Cell="cell",e.Row="row",e}(gs||{}),Pn=function(e){return e.Edit="edit",e.View="view",e}(Pn||{}),Bn=function(e){return e.Edit="edit",e.View="view",e}(Bn||{}),zo=function(e){return e.And="and",e.Or="or",e}(zo||{}),El=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(El||{}),va=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(va||{}),Il=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Il||{}),zs=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(zs||{});function bV(e){return e.field!==void 0}function r6e(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function o6e(e,t){return e.closest(`.${t}`)}function ET(e){return e.replace(/["\\]/g,"\\$&")}function i6e(e,t){return e.querySelector(`[role="columnheader"][data-field="${ET(t)}"]`)}function xV(e){return`.${le.row}[data-id="${ET(String(e))}"]`}function a6e(e,t){return e.querySelector(xV(t))}function s6e(e,{id:t,field:n}){const r=xV(t),o=`.${le.cell}[data-field="${ET(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Yt(e,t,n){const r=m.useRef(!0);m.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Ef extends Error{}function l6e(e,t){const{getRowId:n}=t,r=m.useCallback(v=>({field:v,colDef:e.current.getColumn(v)}),[e]),o=m.useCallback(v=>{const b=e.current.getRow(v);if(!b)throw new Ef(`No row with id #${v} found`);return{id:v,columns:e.current.getAllColumns(),row:b}},[e]),i=m.useCallback((v,b)=>{const C=e.current.getRow(v),x=e.current.getRowNode(v);if(!C||!x)throw new Ef(`No row with id #${v} found`);const w=si(e),S=lb(e);return{id:v,field:b,row:C,rowNode:x,value:C[b],colDef:e.current.getColumn(b),cellMode:e.current.getCellMode(v,b),api:e.current,hasFocus:w!==null&&w.field===b&&w.id===v,tabIndex:S&&S.field===b&&S.id===v?0:-1}},[e]),a=m.useCallback((v,b)=>{const C=e.current.getColumn(b),x=e.current.getCellValue(v,b),w=e.current.getRow(v),S=e.current.getRowNode(v);if(!w||!S)throw new Ef(`No row with id #${v} found`);const $=si(e),T=lb(e),k={id:v,field:b,row:w,rowNode:S,colDef:C,cellMode:e.current.getCellMode(v,b),hasFocus:$!==null&&$.field===b&&$.id===v,tabIndex:T&&T.field===b&&T.id===v?0:-1,value:x,formattedValue:x,isEditable:!1};return C&&C.valueFormatter&&(k.formattedValue=C.valueFormatter({id:v,field:k.field,value:k.value,api:e.current})),k.isEditable=C&&e.current.isCellEditable(k),k},[e]),s=m.useCallback((v,b)=>{const C=e.current.getColumn(b);if(!C||!C.valueGetter){const x=e.current.getRow(v);if(!x)throw new Ef(`No row with id #${v} found`);return x[b]}return C.valueGetter(i(v,b))},[e,i]),l=m.useCallback((v,b)=>{var C;const x=Xf in v?v[Xf]:(C=n==null?void 0:n(v))!=null?C:v.id,w=b.field;return!b||!b.valueGetter?v[w]:b.valueGetter(i(x,w))},[i,n]),u=m.useCallback((v,b)=>{var C;const x=l(v,b);if(!b||!b.valueFormatter)return x;const w=(C=n?n(v):v.id)!=null?C:v[Xf],S=b.field;return b.valueFormatter({id:w,field:S,value:x,api:e.current})},[e,n,l]),c=m.useCallback(v=>e.current.rootElementRef.current?i6e(e.current.rootElementRef.current,v):null,[e]),f=m.useCallback(v=>e.current.rootElementRef.current?a6e(e.current.rootElementRef.current,v):null,[e]),p=m.useCallback((v,b)=>e.current.rootElementRef.current?s6e(e.current.rootElementRef.current,{id:v,field:b}):null,[e]);Yt(e,{getCellValue:s,getCellParams:a,getCellElement:p,getRowValue:l,getRowFormattedValue:u,getRowParams:o,getRowElement:f,getColumnHeaderParams:r,getColumnHeaderElement:c},"public")}const u6e=["changeReason","unstable_updateValueOnRender"],c6e=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],d6e=["changeReason","unstable_updateValueOnRender"],cb={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Pn.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},f6e=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:i,classes:a}=e,s={root:["cell",`cell--text${je(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",i&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return Ge(s,Jt,a)},p6e=m.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=Wt(),a=dt(),s=n.field,l=it(i,()=>{try{const N=i.current.getCellParams(r,s);return N.api=i.current,N}catch(I){if(I instanceof Ef)return cb;throw I}},ST),u=it(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s}));if(l===cb)return null;const{cellMode:c,hasFocus:f,isEditable:p,value:y,formattedValue:v}=l,b=n.type==="actions",C=(c==="view"||!p)&&!b?l.tabIndex:-1,{classes:x,getCellClassName:w}=a,S=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});n.cellClassName&&S.push(typeof n.cellClassName=="function"?n.cellClassName(l):n.cellClassName),w&&S.push(w(l));let $;if(o==null&&n.renderCell&&($=n.renderCell(l),S.push(le["cell--withRenderer"]),S.push(x==null?void 0:x["cell--withRenderer"])),o!=null&&n.renderEditCell){const I=i.current.getRowWithUpdatedValues(r,n.field),N=be(o,u6e),E=P({},l,{row:I},N);$=n.renderEditCell(E),S.push(le["cell--editing"]),S.push(x==null?void 0:x["cell--editing"])}const{slots:T}=a,k=T.cell,M=P({},e,{ref:t,field:s,formattedValue:v,hasFocus:f,isEditable:p,isSelected:u,value:y,cellMode:c,children:$,tabIndex:C,className:ze(S)});return m.createElement(k,M)}),h6e=c2(p6e),m6e=m.forwardRef((e,t)=>{var n,r,o,i;const{column:a,rowId:s,editCellState:l,align:u,colIndex:c,height:f,width:p,className:y,showRightBorder:v,colSpan:b,disableDragEvents:C,isNotVisible:x,onClick:w,onDoubleClick:S,onMouseDown:$,onMouseUp:T,onMouseOver:k,onKeyDown:M,onKeyUp:I,onDragEnter:N,onDragOver:E}=e,A=be(e,c6e),z=Wt(),L=dt(),O=a.field,D=it(z,()=>{try{const ee=z.current.getCellParams(s,O);return ee.api=z.current,ee}catch(K){if(K instanceof Ef)return cb;throw K}},ST),H=it(z,()=>z.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:O})),{cellMode:B,hasFocus:j,isEditable:W,value:U,formattedValue:Z}=D,Y=a.type==="actions"&&((n=(r=a).getActions)==null?void 0:n.call(r,z.current.getRowParams(s)).some(K=>!K.props.disabled)),se=(B==="view"||!W)&&!Y?D.tabIndex:-1,{classes:Q,getCellClassName:ne}=L,re=z.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:O});a.cellClassName&&re.push(typeof a.cellClassName=="function"?a.cellClassName(D):a.cellClassName),ne&&re.push(ne(D));const ge=Z??U,xe=m.useRef(null),fe=on(t,xe),Se=m.useRef(null),de=(o=L.unstable_cellSelection)!=null?o:!1,ie={align:u,showRightBorder:v,isEditable:W,classes:L.classes,isSelected:H,isSelectionMode:de},Pe=f6e(ie),$e=m.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),T&&T(ee)},[z,O,T,s]),me=m.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),$&&$(ee)},[z,O,$,s]),ue=m.useCallback((K,ee)=>pe=>{if(!z.current.getRow(s))return;const ye=z.current.getCellParams(s,O||"");z.current.publishEvent(K,ye,pe),ee&&ee(pe)},[z,O,s]),ce=m.useMemo(()=>x?{padding:0,opacity:0,width:0,border:0}:{minWidth:p,maxWidth:p,minHeight:f,maxHeight:f==="auto"?"none":f},[p,f,x]);if(m.useEffect(()=>{if(!j||B===Pn.Edit)return;const K=Gn(z.current.rootElementRef.current);if(xe.current&&!xe.current.contains(K.activeElement)){const ee=xe.current.querySelector('[tabindex="0"]'),pe=Se.current||ee||xe.current;if(n6e())pe.focus({preventScroll:!0});else{const ye=z.current.getScrollPosition();pe.focus(),z.current.scroll(ye)}}},[j,B,z]),D===cb)return null;let Te=A.onFocus,Le;if(l==null&&a.renderCell&&(Le=a.renderCell(D),re.push(le["cell--withRenderer"]),re.push(Q==null?void 0:Q["cell--withRenderer"])),l!=null&&a.renderEditCell){const K=z.current.getRowWithUpdatedValues(s,a.field),ee=be(l,d6e),pe=P({},D,{row:K},ee);Le=a.renderEditCell(pe),re.push(le["cell--editing"]),re.push(Q==null?void 0:Q["cell--editing"])}if(Le===void 0){const K=ge==null?void 0:ge.toString();Le=g.jsx("div",{className:Pe.content,title:K,role:"presentation",children:K})}m.isValidElement(Le)&&Y&&(Le=m.cloneElement(Le,{focusElementRef:Se}));const Re=C?null:{onDragEnter:ue("cellDragEnter",N),onDragOver:ue("cellDragOver",E)},Oe=(i=L.experimentalFeatures)==null?void 0:i.ariaV7;return g.jsx("div",P({ref:fe,className:ze(y,re,Pe.root),role:Oe?"gridcell":"cell","data-field":O,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":b,style:ce,tabIndex:se,onClick:ue("cellClick",w),onDoubleClick:ue("cellDoubleClick",S),onMouseOver:ue("cellMouseOver",k),onMouseDown:me("cellMouseDown"),onMouseUp:$e("cellMouseUp"),onKeyDown:ue("cellKeyDown",M),onKeyUp:ue("cellKeyUp",I)},Re,A,{onFocus:Te,children:Le}))}),kk=c2(m6e),g6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],v6e=e=>{const{classes:t}=e;return Ge({root:["booleanCell"]},Jt,t)};function y6e(e){const{value:t}=e,n=be(e,g6e),r=Wt(),o=dt(),i={classes:o.classes},a=v6e(i),s=m.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return g.jsx(s,P({fontSize:"small",className:a.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const b6e=m.memo(y6e),x6e=e=>Lg(e.rowNode)?"":g.jsx(b6e,P({},e)),w6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],C6e=e=>{const{classes:t}=e;return Ge({root:["editBooleanCell"]},Jt,t)};function S6e(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:a,onValueChange:s}=e,l=be(e,w6e),u=Wt(),c=m.useRef(null),f=ln(),[p,y]=m.useState(r),v=dt(),b={classes:v.classes},C=C6e(b),x=m.useCallback(async w=>{const S=w.target.checked;s&&await s(w,S),y(S),await u.current.setEditCellValue({id:n,field:o,value:S},w)},[u,o,n,s]);return m.useEffect(()=>{y(r)},[r]),pn(()=>{a&&c.current.focus()},[a]),g.jsx("label",P({htmlFor:f,className:ze(C.root,i)},l,{children:g.jsx(v.slots.baseCheckbox,P({id:f,inputRef:c,checked:!!p,onChange:x,size:"small"},(t=v.slotProps)==null?void 0:t.baseCheckbox))}))}const $6e=e=>g.jsx(S6e,P({},e)),_6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],k6e=ke(ld)({fontSize:"inherit"}),P6e=e=>{const{classes:t}=e;return Ge({root:["editInputCell"]},Jt,t)};function M6e(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:s}=e,l=be(e,_6e),u=o.type==="dateTime",c=Wt(),f=m.useRef(),p=m.useMemo(()=>{let M;n==null?M=null:n instanceof Date?M=n:M=new Date((n??"").toString());let I;return M==null||Number.isNaN(M.getTime())?I="":I=new Date(M.getTime()-M.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:M,formatted:I}},[n,u]),[y,v]=m.useState(p),C={classes:dt().classes},x=P6e(C),w=m.useRef(!1),S=m.useCallback(M=>{if(M==="")return null;const[I,N]=M.split("T"),[E,A,z]=I.split("-"),L=new Date;if(L.setFullYear(Number(E),Number(A)-1,Number(z)),L.setHours(0,0,0,0),N){const[O,D]=N.split(":");L.setHours(Number(O),Number(D),0,0)}return L},[]),$=m.useCallback(async M=>{const I=M.target.value,N=S(I);s&&await s(M,N),v({parsed:N,formatted:I}),c.current.setEditCellValue({id:t,field:r,value:N},M)},[c,r,t,s,S]);m.useEffect(()=>{v(M=>{var I,N;return p.parsed!==M.parsed&&((I=p.parsed)==null?void 0:I.getTime())!==((N=M.parsed)==null?void 0:N.getTime())?p:M})},[p]),pn(()=>{i&&f.current.focus()},[i]);const T=c.current.unstable_getEditCellMeta(t,r),k=M=>{if(f.current=M,T!=null&&T.unstable_updateValueOnRender&&!w.current){const I=f.current.value,N=S(I);v({parsed:N,formatted:I}),c.current.setEditCellValue({id:t,field:r,value:N}),w.current=!0}};return g.jsx(k6e,P({inputRef:k,fullWidth:!0,className:x.root,type:u?"datetime-local":"date",inputProps:P({max:u?"9999-12-31T23:59":"9999-12-31"},a),value:y.formatted,onChange:$},l))}const wV=e=>g.jsx(M6e,P({},e)),T6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],E6e=e=>{const{classes:t}=e;return Ge({root:["editInputCell"]},Jt,t)},I6e=ke(ld,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),R6e=m.forwardRef((e,t)=>{const n=dt(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:u,onValueChange:c}=e,f=be(e,T6e),p=Wt(),y=m.useRef(),[v,b]=m.useState(o),C=E6e(n),x=m.useCallback(async S=>{const $=S.target.value;c&&await c(S,$);const T=p.current.getColumn(i);let k=$;T.valueParser&&(k=T.valueParser($,p.current.getCellParams(r,i))),b(k),p.current.setEditCellValue({id:r,field:i,value:k,debounceMs:l,unstable_skipValueParser:!0},S)},[p,l,i,r,c]),w=p.current.unstable_getEditCellMeta(r,i);return m.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&b(o)},[w,o]),pn(()=>{s&&y.current.focus()},[s]),g.jsx(I6e,P({ref:t,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:v??"",onChange:x,endAdornment:u?g.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},f))}),O6e=e=>g.jsx(R6e,P({},e)),db=e=>e==="Escape",A6e=e=>e==="Enter",d2=e=>e==="Tab",CV=e=>e===" ",F6e=e=>e.indexOf("Arrow")===0,L6e=e=>e==="Home"||e==="End",D6e=e=>e.indexOf("Page")===0;function SV(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const fb=e=>L6e(e)||F6e(e)||D6e(e)||CV(e),j6e=e=>!!e.key,IT=e=>d2(e)||db(e);function Mc(e){return(e==null?void 0:e.type)==="singleSelect"}function Pk(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 N6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],z6e=["MenuProps"];function B6e(e){return!!e.key}function H6e(e){var t,n,r;const o=dt(),{id:i,value:a,field:s,row:l,colDef:u,hasFocus:c,error:f,onValueChange:p,initialOpen:y=o.editMode===gs.Cell,getOptionLabel:v,getOptionValue:b}=e,C=be(e,N6e),x=Wt(),w=m.useRef(),S=m.useRef(),[$,T]=m.useState(y),M=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,I=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:N}=I,E=be(I,z6e);if(pn(()=>{if(c){var B;(B=S.current)==null||B.focus()}},[c]),!Mc(u))return null;let A;if(typeof(u==null?void 0:u.valueOptions)=="function"?A=u==null?void 0:u.valueOptions({id:i,row:l,field:s}):A=u==null?void 0:u.valueOptions,!A)return null;const z=b||u.getOptionValue,L=v||u.getOptionLabel,O=async B=>{if(!Mc(u)||!A)return;T(!1);const j=B.target,W=Pk(j.value,A,z);p&&await p(B,W),await x.current.setEditCellValue({id:i,field:s,value:W},B)},D=(B,j)=>{if(o.editMode===gs.Row){T(!1);return}if(j==="backdropClick"||db(B.key)){const W=x.current.getCellParams(i,s);x.current.publishEvent("cellEditStop",P({},W,{reason:db(B.key)?va.escapeKeyDown:va.cellFocusOut}))}},H=B=>{B6e(B)&&B.key==="Enter"||T(!0)};return!A||!u?null:g.jsx(o.slots.baseSelect,P({ref:w,inputRef:S,value:a,onChange:O,open:$,onOpen:H,MenuProps:P({onClose:D},N),error:f,native:M,fullWidth:!0},C,E,{children:A.map(B=>{var j;const W=z(B);return m.createElement(o.slots.baseSelectOption,P({},((j=o.slotProps)==null?void 0:j.baseSelectOption)||{},{native:M,key:W,value:W}),L(B))})}))}const W6e=e=>g.jsx(H6e,P({},e)),V6e=["open","target","onClose","children","position","className","onExited"],U6e=e=>{const{classes:t}=e;return Ge({root:["menu"]},Jt,t)},G6e=ke(sd,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${le.menuList}`]:{outline:0}})),q6e={"bottom-start":"top left","bottom-end":"top right"};function f2(e){var t;const{open:n,target:r,onClose:o,children:i,position:a,className:s,onExited:l}=e,u=be(e,V6e),c=Wt(),f=dt(),p=U6e(f),y=m.useRef(null);pn(()=>{if(n)y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,x;(C=y.current)==null||(x=C.focus)==null||x.call(C),y.current=null}},[n]),m.useEffect(()=>{const C=n?"menuOpen":"menuClose";c.current.publishEvent(C,{target:r})},[c,n,r]);const v=C=>x=>{C&&C(),l&&l(x)},b=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return g.jsx(G6e,P({as:f.slots.basePopper,className:ze(s,p.root),ownerState:f,open:n,anchorEl:r,transition:!0,placement:a},u,(t=f.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:x})=>g.jsx(Nj,{onClickAway:b,mouseEvent:"onMouseDown",children:g.jsx(ky,P({},C,{style:{transformOrigin:q6e[x]},onExited:v(C==null?void 0:C.onExited),children:g.jsx(ad,{children:i})}))})}))}const K6e=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Y6e=e=>typeof e.getActions=="function";function X6e(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:s}=e,l=be(e,K6e),[u,c]=m.useState(-1),[f,p]=m.useState(!1),y=Wt(),v=m.useRef(null),b=m.useRef(null),C=m.useRef(!1),x=m.useRef({}),w=Xt(),S=ln(),$=ln(),T=dt();if(!Y6e(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(y.current.getRowParams(r)),M=k.filter(H=>!H.props.showInMenu),I=k.filter(H=>H.props.showInMenu),N=M.length+(I.length?1:0);m.useLayoutEffect(()=>{o||Object.entries(x.current).forEach(([H,B])=>{B==null||B.stop({},()=>{delete x.current[H]})})},[o]),m.useEffect(()=>{if(u<0||!v.current||u>=v.current.children.length)return;v.current.children[u].focus({preventScroll:!0})},[u]),m.useEffect(()=>{o||(c(-1),C.current=!1)},[o]),m.useImperativeHandle(s,()=>({focus(){if(!C.current){const H=k.findIndex(B=>!B.props.disabled);c(H)}}}),[k]),m.useEffect(()=>{u>=N&&c(N-1)},[u,N]);const E=()=>{p(!0),c(N-1),C.current=!0},A=()=>{p(!1)},z=H=>B=>{x.current[H]=B},L=(H,B)=>j=>{c(H),C.current=!0,B&&B(j)},O=H=>{if(N<=1)return;const B=(W,U)=>{var Z;if(W<0||W>k.length)return W;const Y=w.direction==="rtl"?-1:1,se=(U==="left"?-1:1)*Y;return(Z=k[W+se])!=null&&Z.props.disabled?B(W+se,U):W+se};let j=u;H.key==="ArrowRight"?j=B(u,"right"):H.key==="ArrowLeft"&&(j=B(u,"left")),!(j<0||j>=N)&&j!==u&&(H.preventDefault(),H.stopPropagation(),c(j))},D=H=>{H.key==="Tab"&&H.preventDefault(),["Tab","Enter","Escape"].includes(H.key)&&A()};return g.jsxs("div",P({role:"menu",ref:v,tabIndex:-1,className:le.actionsCell,onKeyDown:O},l,{children:[M.map((H,B)=>m.cloneElement(H,{key:B,touchRippleRef:z(B),onClick:L(B,H.props.onClick),tabIndex:u===B?i:-1})),I.length>0&&$&&g.jsx(T.slots.baseIconButton,P({ref:b,id:$,"aria-label":y.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?S:void 0,role:"menuitem",size:"small",onClick:E,touchRippleRef:z($),tabIndex:u===M.length?i:-1},(t=T.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(T.slots.moreActionsIcon,{fontSize:"small"})})),I.length>0&&g.jsx(f2,{open:f,target:b.current,position:a,onClose:A,onClick:A,children:g.jsx(a0,{id:S,className:le.menuList,onKeyDown:D,"aria-labelledby":$,variant:"menu",autoFocusItem:!0,children:I.map((H,B)=>m.cloneElement(H,{key:B}))})})]}))}const Q6e=e=>g.jsx(X6e,P({},e)),Z6e=["field","align","width","contentWidth"],J6e=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${je(t)}`,"withBorderColor"]};return Ge(r,Jt,n)};function eFe(e){const{align:t,width:n,contentWidth:r}=e,o=be(e,Z6e),a={classes:dt().classes,align:t},s=J6e(a);return g.jsx("div",P({className:s.root,style:{width:n}},o,{children:g.jsx(Kge,{width:`${r}%`})}))}function tFe(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Ex(Lt(e.palette.divider,1),.88):Tx(Lt(e.palette.divider,1),.68)}const y8={[`.${le.columnSeparator}, .${le["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},b8={[`& .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.menuIcon}`]:{width:"auto",visibility:"visible"}},nFe=ke("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${le.autoHeight}`]:t.autoHeight},{[`&.${le.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${le["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${le["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${le["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${le.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${le["root--disableUserSelection"]} .${le.cell}`]:t["root--disableUserSelection"]},{[`&.${le.autosizing}`]:t.autosizing},{[`& .${le.editBooleanCell}`]:t.editBooleanCell},{[`& .${le["cell--editing"]}`]:t["cell--editing"]},{[`& .${le["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${le["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${le["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${le["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${le.cell}`]:t.cell},{[`& .${le["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${le["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${le["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${le["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${le["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${le.cellContent}`]:t.cellContent},{[`& .${le.cellCheckbox}`]:t.cellCheckbox},{[`& .${le.cellSkeleton}`]:t.cellSkeleton},{[`& .${le.checkboxInput}`]:t.checkboxInput},{[`& .${le["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${le["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${le["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${le["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${le["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${le["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${le["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${le["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${le["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${le.columnHeader}`]:t.columnHeader},{[`& .${le.headerFilterRow}`]:t.headerFilterRow},{[`& .${le.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${le.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${le.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${le["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${le["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${le.columnSeparator}`]:t.columnSeparator},{[`& .${le.filterIcon}`]:t.filterIcon},{[`& .${le.iconSeparator}`]:t.iconSeparator},{[`& .${le.menuIcon}`]:t.menuIcon},{[`& .${le.menuIconButton}`]:t.menuIconButton},{[`& .${le.menuOpen}`]:t.menuOpen},{[`& .${le.menuList}`]:t.menuList},{[`& .${le["row--editable"]}`]:t["row--editable"]},{[`& .${le["row--editing"]}`]:t["row--editing"]},{[`& .${le["row--dragging"]}`]:t["row--dragging"]},{[`& .${le.row}`]:t.row},{[`& .${le.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${le.rowReorderCell}`]:t.rowReorderCell},{[`& .${le["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${le.sortIcon}`]:t.sortIcon},{[`& .${le.withBorderColor}`]:t.withBorderColor},{[`& .${le.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${le.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${le.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${le["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=tFe(e),n=e.shape.borderRadius;return P({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Lt(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${le.autoHeight}`]:{height:"auto",[`& .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"}},[`&.${le.autosizing}`]:{[`& .${le.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${le.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${le["virtualScrollerContent--overflowed"]} .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"},[`& .${le.columnHeader}, & .${le.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${le.columnHeader}:focus-within, & .${le.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:Lt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${le.columnHeader}:focus, & .${le.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${le.columnHeaderCheckbox}, & .${le.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${le.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${le["columnHeader--sorted"]} .${le.iconButtonContainer}, & .${le["columnHeader--filtered"]} .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}) .${le.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${le.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${le.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${le["columnHeader--filledGroup"]} .${le.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]} .${le.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${le.sortIcon}, & .${le.filterIcon}`]:{fontSize:"inherit"},[`& .${le["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${le["columnHeader--alignCenter"]} .${le.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${le["columnHeader--alignRight"]} .${le.columnHeaderDraggableContainer}, & .${le["columnHeader--alignRight"]} .${le.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${le["columnHeader--alignCenter"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${le["columnHeader--alignRight"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${le["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${le.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${le.columnHeaders}:hover`]:y8,[`& .${le.columnHeader}:hover`]:b8,[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}):hover .${le.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${le.columnHeaders}`]:y8,[`& .${le.columnHeader}`]:b8},[`& .${le["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${le["columnSeparator--sideRight"]}`]:{right:-12},[`& .${le["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${le["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${le.iconSeparator}`]:{color:"inherit"},[`& .${le.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${le.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${le.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( + `,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var p8,Z4e=function(e){var t=e.width,n=e.height,r=e.legends,o=e.data,i=e.toggleSerie;return g.jsx(g.Fragment,{children:r.map(function(a,s){var l;return g.jsx(xT,ul({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:o,toggleSerie:a.toggleSerie?i:void 0}),s)})})},kt={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcLinkLabels","arcs","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return g.jsx(v5,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(p8=window.devicePixelRatio)!=null?p8:1},J4e=["points"],eAe=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.colors,l=s===void 0?kt.colors:s,u=$c(r),c=$c(i),f=Rg(a),p=yT(l,"id");return m.useMemo(function(){return t.map(function(y){var v,b=u(y),C=c(y),x={id:b,label:(v=y.label)!=null?v:b,hidden:!1,value:C,formattedValue:f(C),data:y};return ul({},x,{color:p(x)})})},[t,u,c,f,p])},tAe=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,o=e.innerRadius,i=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,u=e.activeInnerRadiusOffset,c=e.activeOuterRadiusOffset,f=e.hiddenIds,p=m.useMemo(function(){var y=rEe().value(function(v){return v.value}).startAngle(Qi(n)).endAngle(Qi(r)).padAngle(Qi(a));return s||y.sortValues(null),y},[n,r,a,s]);return m.useMemo(function(){var y=t.filter(function(v){return!f.includes(v.id)});return{dataWithArc:p(y).map(function(v){var b=Math.abs(v.endAngle-v.startAngle);return ul({},v.data,{arc:{index:v.index,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:l===v.data.id?o-u:o,outerRadius:l===v.data.id?i+c:i,thickness:i-o,padAngle:v.padAngle,angle:b,angleDeg:Jw(b)}})}),legendData:t.map(function(v){return ul({},v,{hidden:f.includes(v.id)})})}},[p,t,f,l,o,u,i,c])},nAe=function(e){var t=e.data,n=e.width,r=e.height,o=e.innerRadius,i=o===void 0?kt.innerRadius:o,a=e.startAngle,s=a===void 0?kt.startAngle:a,l=e.endAngle,u=l===void 0?kt.endAngle:l,c=e.padAngle,f=c===void 0?kt.padAngle:c,p=e.sortByValue,y=p===void 0?kt.sortByValue:p,v=e.cornerRadius,b=v===void 0?kt.cornerRadius:v,C=e.fit,x=C===void 0?kt.fit:C,w=e.activeInnerRadiusOffset,S=w===void 0?kt.activeInnerRadiusOffset:w,$=e.activeOuterRadiusOffset,T=$===void 0?kt.activeOuterRadiusOffset:$,k=m.useState(null),M=k[0],I=k[1],N=m.useState([]),E=N[0],A=N[1],z=m.useMemo(function(){var D,H=Math.min(n,r)/2,B=H*Math.min(i,1),j=n/2,W=r/2;if(x){var U=z4e(j,W,H,s-90,u-90),Z=U.points,Y=QW(U,J4e),se=Math.min(n/Y.width,r/Y.height),Q={width:Y.width*se,height:Y.height*se};Q.x=(n-Q.width)/2,Q.y=(r-Q.height)/2,j=(j-Y.x)/Y.width*Y.width*se+Q.x,W=(W-Y.y)/Y.height*Y.height*se+Q.y,D={box:Y,ratio:se,points:Z},H*=se,B*=se}return{centerX:j,centerY:W,radius:H,innerRadius:B,debug:D}},[n,r,i,s,u,x,b]),L=tAe({data:t,startAngle:s,endAngle:u,innerRadius:z.innerRadius,outerRadius:z.radius,padAngle:f,sortByValue:y,activeId:M,activeInnerRadiusOffset:S,activeOuterRadiusOffset:T,hiddenIds:E}),O=m.useCallback(function(D){A(function(H){return H.indexOf(D)>-1?H.filter(function(B){return B!==D}):[].concat(H,[D])})},[]);return ul({arcGenerator:B4e({cornerRadius:b,padAngle:Qi(f)}),setActiveId:I,toggleSerie:O},L,z)},rAe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,o=e.centerY,i=e.radius,a=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:o,radius:i,innerRadius:a}},[t,n,r,o,i,a])},oAe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.setActiveId,p=e.tooltip,y=e.transitionMode,v=Np(),b=v.showTooltipFromEvent,C=v.hideTooltip,x=m.useMemo(function(){if(a)return function(T,k){s==null||s(T,k)}},[a,s]),w=m.useMemo(function(){if(a)return function(T,k){b(m.createElement(p,{datum:T}),k),f(T.id),l==null||l(T,k)}},[a,b,f,l,p]),S=m.useMemo(function(){if(a)return function(T,k){b(m.createElement(p,{datum:T}),k),u==null||u(T,k)}},[a,b,u,p]),$=m.useMemo(function(){if(a)return function(T,k){C(),f(null),c==null||c(T,k)}},[a,C,f,c]);return g.jsx(N4e,{center:t,data:n,arcGenerator:r,borderWidth:o,borderColor:i,transitionMode:y,onClick:x,onMouseEnter:w,onMouseMove:S,onMouseLeave:$})},iAe=["isInteractive","animate","motionConfig","theme","renderWrapper"],aAe=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.sortByValue,l=s===void 0?kt.sortByValue:s,u=e.layers,c=u===void 0?kt.layers:u,f=e.startAngle,p=f===void 0?kt.startAngle:f,y=e.endAngle,v=y===void 0?kt.endAngle:y,b=e.padAngle,C=b===void 0?kt.padAngle:b,x=e.fit,w=x===void 0?kt.fit:x,S=e.innerRadius,$=S===void 0?kt.innerRadius:S,T=e.cornerRadius,k=T===void 0?kt.cornerRadius:T,M=e.activeInnerRadiusOffset,I=M===void 0?kt.activeInnerRadiusOffset:M,N=e.activeOuterRadiusOffset,E=N===void 0?kt.activeOuterRadiusOffset:N,A=e.width,z=e.height,L=e.margin,O=e.colors,D=O===void 0?kt.colors:O,H=e.borderWidth,B=H===void 0?kt.borderWidth:H,j=e.borderColor,W=j===void 0?kt.borderColor:j,U=e.enableArcLabels,Z=U===void 0?kt.enableArcLabels:U,Y=e.arcLabel,se=Y===void 0?kt.arcLabel:Y,Q=e.arcLabelsSkipAngle,ne=Q===void 0?kt.arcLabelsSkipAngle:Q,re=e.arcLabelsTextColor,ge=re===void 0?kt.arcLabelsTextColor:re,xe=e.arcLabelsRadiusOffset,fe=xe===void 0?kt.arcLabelsRadiusOffset:xe,Se=e.arcLabelsComponent,de=e.enableArcLinkLabels,ie=de===void 0?kt.enableArcLinkLabels:de,Pe=e.arcLinkLabel,$e=Pe===void 0?kt.arcLinkLabel:Pe,me=e.arcLinkLabelsSkipAngle,ue=me===void 0?kt.arcLinkLabelsSkipAngle:me,ce=e.arcLinkLabelsOffset,Te=ce===void 0?kt.arcLinkLabelsOffset:ce,Le=e.arcLinkLabelsDiagonalLength,Re=Le===void 0?kt.arcLinkLabelsDiagonalLength:Le,Oe=e.arcLinkLabelsStraightLength,K=Oe===void 0?kt.arcLinkLabelsStraightLength:Oe,ee=e.arcLinkLabelsThickness,pe=ee===void 0?kt.arcLinkLabelsThickness:ee,ye=e.arcLinkLabelsTextOffset,De=ye===void 0?kt.arcLinkLabelsTextOffset:ye,Ae=e.arcLinkLabelsTextColor,Ee=Ae===void 0?kt.arcLinkLabelsTextColor:Ae,Ce=e.arcLinkLabelsColor,Qe=Ce===void 0?kt.arcLinkLabelsColor:Ce,Ct=e.arcLinkLabelComponent,et=e.defs,Be=et===void 0?kt.defs:et,te=e.fill,X=te===void 0?kt.fill:te,oe=e.isInteractive,Ie=oe===void 0?kt.isInteractive:oe,Ve=e.onClick,Ke=e.onMouseEnter,at=e.onMouseMove,Je=e.onMouseLeave,nt=e.tooltip,_t=nt===void 0?kt.tooltip:nt,ht=e.transitionMode,lt=ht===void 0?kt.transitionMode:ht,Rt=e.legends,jt=Rt===void 0?kt.legends:Rt,dn=e.role,hn=dn===void 0?kt.role:dn,Pt=b0(A,z,L),zt=Pt.outerWidth,un=Pt.outerHeight,cn=Pt.margin,ut=Pt.innerWidth,mt=Pt.innerHeight,Ot=eAe({data:t,id:r,value:i,valueFormat:a,colors:D}),At=nAe({data:Ot,width:ut,height:mt,fit:w,innerRadius:$,startAngle:p,endAngle:v,padAngle:C,sortByValue:l,cornerRadius:k,activeInnerRadiusOffset:I,activeOuterRadiusOffset:E}),tt=At.dataWithArc,Ut=At.legendData,_e=At.arcGenerator,we=At.centerX,Fe=At.centerY,rt=At.radius,Tt=At.innerRadius,en=At.setActiveId,_n=At.toggleSerie,ct=gT(Be,tt,X),gt={arcLinkLabels:null,arcs:null,arcLabels:null,legends:null};ie&&c.includes("arcLinkLabels")&&(gt.arcLinkLabels=g.jsx(F4e,{center:[we,Fe],data:tt,label:$e,skipAngle:ue,offset:Te,diagonalLength:Re,straightLength:K,strokeWidth:pe,textOffset:De,textColor:Ee,linkColor:Qe,component:Ct},"arcLinkLabels")),c.includes("arcs")&&(gt.arcs=g.jsx(oAe,{center:[we,Fe],data:tt,arcGenerator:_e,borderWidth:B,borderColor:W,isInteractive:Ie,onClick:Ve,onMouseEnter:Ke,onMouseMove:at,onMouseLeave:Je,setActiveId:en,tooltip:_t,transitionMode:lt},"arcs")),Z&&c.includes("arcLabels")&&(gt.arcLabels=g.jsx(P4e,{center:[we,Fe],data:tt,label:se,radiusOffset:fe,skipAngle:ne,textColor:ge,transitionMode:lt,component:Se},"arcLabels")),jt.length>0&&c.includes("legends")&&(gt.legends=g.jsx(Z4e,{width:ut,height:mt,data:Ut,legends:jt,toggleSerie:_n},"legends"));var or=rAe({dataWithArc:tt,arcGenerator:_e,centerX:we,centerY:Fe,radius:rt,innerRadius:Tt});return g.jsx(e2,{width:zt,height:un,margin:cn,defs:ct,role:hn,children:c.map(function(Md,Td){return gt[Md]!==void 0?gt[Md]:typeof Md=="function"?g.jsx(m.Fragment,{children:m.createElement(Md,or)},Td):null})})},sAe=function(e){var t=e.isInteractive,n=t===void 0?kt.isInteractive:t,r=e.animate,o=r===void 0?kt.animate:r,i=e.motionConfig,a=i===void 0?kt.motionConfig:i,s=e.theme,l=e.renderWrapper,u=QW(e,iAe);return g.jsx(x0,{animate:o,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:g.jsx(aAe,ul({isInteractive:n},u))})},lAe=function(e){return g.jsx(Jp,{children:function(t){var n=t.width,r=t.height;return g.jsx(sAe,ul({width:n,height:r},e))}})};const uAe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(lAe,{data:e,margin:{top:20,right:80,bottom:20,left:80},activeOuterRadiusOffset:8,colors:{scheme:"blues"},borderColor:{from:"color",modifiers:[["darker",.2]]},enableArcLinkLabels:!0,arcLinkLabelsSkipAngle:10,arcLinkLabelsTextColor:n.primary[100],arcLinkLabelsThickness:2,arcLinkLabelsColor:{from:"color",modifiers:[]},arcLabelsSkipAngle:10,arcLabelsTextColor:"#000",arcLabelsRadiusOffset:.7,valueFormat:r=>`${Number(r).toLocaleString("ru-RU",{minimumFractionDigits:2})}%`,motionConfig:{mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},theme:{tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}}})},cAe=[{field:"id",headerName:"ID",type:"number",flex:1,minWidth:80,maxWidth:80},{field:"sourceName",headerName:"Source name",type:"string",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"amount",headerName:"Amount ($)",type:"number",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"paymentMethod",headerName:"Payment Method",type:"string",sortable:!0,flex:.3,minWidth:160,maxWidth:150,editable:!0},{field:"frequency",headerName:"Frequency",type:"string",flex:1,minWidth:120,maxWidth:90},{field:"status",headerName:"Status",type:"boolean",flex:1,minWidth:100,maxWidth:100},{field:"received",headerName:"Received",type:"string",flex:1,minWidth:120,maxWidth:100},{field:"category",headerName:"Category",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"description",headerName:"Description",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"nextPayment",headerName:"Next Payment",type:"string",flex:1,minWidth:120,maxWidth:120},{field:"taxRate",headerName:"Tax Rate (%)",type:"number",flex:1,minWidth:120,maxWidth:100}],dAe=[{id:1,amount:1e3,paymentMethod:"credit card",sourceName:"Job Salary",status:"Active",frequency:"Monthly",received:"05.01.2023",category:"Employment ",description:"Monthly pay",nextPayment:"05.02.2023",taxRate:20},{id:2,amount:500,paymentMethod:"online",sourceName:"Freelance Work",status:"Active",frequency:"Weekly",received:"07.01.2023",category:"Freelance",description:"Web design",nextPayment:"14.01.2023",taxRate:30},{id:3,amount:300,paymentMethod:"online",sourceName:"Rental Income",status:"Active",frequency:"Monthly",received:"15.01.2023",category:"Property ",description:"Rent",nextPayment:"15.02.2023",taxRate:20},{id:4,amount:300,paymentMethod:"Venmo",sourceName:"Side Gig",status:"Active",frequency:"Weekly",received:"31.12.2022",category:"Business",description:"Photography",nextPayment:"01.03.2023",taxRate:15},{id:5,amount:150,paymentMethod:"cash",sourceName:"Side Hustle",status:"Active",frequency:"Bi-weekly",received:"01.01.2023",category:"Gig",description:"Event DJ",nextPayment:"14.01.2023",taxRate:10},{id:6,amount:100,paymentMethod:"credit card",sourceName:"Gift Money",status:"Active",frequency:"One-time",received:"01.01.2023",category:"Personal",description:"Birthday",nextPayment:null,taxRate:5},{id:7,amount:250,paymentMethod:"Bank Transfer",sourceName:"Dividend",status:"Active",frequency:"Yearly",received:"29.12.2023",category:"Investment",description:"Stocks",nextPayment:"2024.01.15",taxRate:10},{id:8,amount:400,paymentMethod:"PayPal",sourceName:"Rent",status:"Active",frequency:"Monthly",received:"03.02.2023",category:"Housing",description:"Apartment",nextPayment:"03.03.2023",taxRate:15},{id:9,amount:400,paymentMethod:"PayPal",sourceName:"Sale",status:"Active",frequency:"One-time",received:"20.01.2023",category:"Personal",description:"Electronics",nextPayment:null,taxRate:20}],fAe=[{id:"Electricity",label:"Electricity",value:19,color:"hsl(173, 70%, 50%)"},{id:"Phone",label:"Phone",value:7,color:"hsl(352, 70%, 50%)"},{id:"Gas",label:"Gas",value:10,color:"hsl(180, 70%, 50%)"},{id:"WaterSewer",label:"Water and sewer",value:18,color:"hsl(128, 70%, 50%)"},{id:"Cable",label:"Cable",value:5,color:"hsl(269, 70%, 50%)"},{id:"Waste",label:"Waste removal",value:6,color:"hsl(24, 85%, 56%)"},{id:"Other",label:"Other",value:35,color:"hsl(240, 9%, 81%)"}],pAe=[{title:"Housing",currentValue:"2,500",limit:"3,000"},{title:"Utilities",currentValue:"600",limit:"1,500"},{title:"Transportation",currentValue:"900",limit:"2,000"},{title:"Food",currentValue:"1,250",limit:"2,500"},{title:"Health Insurance",currentValue:"500",limit:"1,500"},{title:"Personal Care",currentValue:"80",limit:"500"},{title:"Clothing",currentValue:"200",limit:"500"},{title:"Entertainment",currentValue:"50",limit:"300"},{title:"Travel",currentValue:"1,200",limit:"5,000"},{title:"Education",currentValue:"800",limit:"2,000"},{title:"Debt Repayment",currentValue:"3,000",limit:"4,000"},{title:"Insurance",currentValue:"1,750",limit:"3,000"},{title:"Phone Bill",currentValue:"2,500",limit:"3,000"},{title:"Internet Bill",currentValue:"2,500",limit:"3,000"},{title:"Charity and Donations",currentValue:"500",limit:"1,000"}],hAe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"title",headerName:"Title",flex:1,minWidth:160,maxWidth:190},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:130},{field:"description",headerName:"Description",flex:1,minWidth:160,maxWidth:190},{field:"goal",headerName:"Goal",flex:1,minWidth:110,maxWidth:130},{field:"targetDate",headerName:"Target Date",flex:1,minWidth:130,maxWidth:160},{field:"progress",headerName:"Progress"},{field:"category",headerName:"Category",flex:1,minWidth:120,maxWidth:100},{field:"status",headerName:"Status",description:"This column has a value getter and is not sortable.",flex:1,minWidth:130,maxWidth:160}],mAe=[{id:1,title:"Emergency",amount:"$1000",description:"Emergency Fund",goal:"$5000",targetDate:"12.31.2023",progress:"20%",category:"General",status:"Incomplete"},{id:2,title:"Vacation",amount:"$2000",description:"Saving for vacation",goal:"$5000",targetDate:"06.30.2024",progress:"40%",category:"Travel",status:"Incomplete"},{id:3,title:"Car",amount:"$500",description:"Saving for a new car",goal:"$10000",targetDate:"10.15.2024",progress:"5%",category:"Vehicle",status:"Incomplete"},{id:4,title:"Education",amount:"$2500",description:"College fund",goal:"$15000",targetDate:"12.31.2024",progress:"16.67%",category:"Education",status:"Incomplete"}],ZW=()=>g.jsx(mr,{title:"Budget Allocation",content:g.jsx(_i,{style:{height:"400px",padding:0},children:g.jsx(uAe,{data:fAe})}),height:500}),JW=m.createContext(void 0);function Wt(){const e=m.useContext(JW);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return e}const eV=m.createContext(void 0),dt=()=>{const e=m.useContext(eV);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},tV=m.createContext(void 0);function Mu(){const e=m.useContext(tV);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return e}const h8={};function wT(e,t){const n=m.useRef(h8);return n.current===h8&&(n.current=e(t)),n}const gAe=[];function nV(e){m.useEffect(e,gAe)}const $s=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},vAe=Object.is;function rV(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!vAe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}$s(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function yAe(e){return e.acceptsApiRef}function m8(e,t){return yAe(t)?t(e):t(e.current.state)}const bAe=Object.is,CT=rV,xAe=()=>({state:null,equals:null,selector:null}),it=(e,t,n=bAe)=>{const r=wT(xAe),o=r.current.selector!==null,[i,a]=m.useState(o?null:m8(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,nV(()=>e.current.store.subscribe(()=>{const s=m8(e,r.current.selector);r.current.equals(r.current.state,s)||(r.current.state=s,a(s))})),i};function Jt(e){return yt("MuiDataGrid",e)}const le=bt("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var ob="NOT_FOUND";function wAe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ob},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function CAe(e,t){var n=[];function r(s){var l=n.findIndex(function(c){return t(s,c.key)});if(l>-1){var u=n[l];return l>0&&(n.splice(l,1),n.unshift(u)),u.value}return ob}function o(s,l){r(s)===ob&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var SAe=function(t,n){return t===n};function $Ae(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&o&&i)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f),x=o(p,f);return i(y,v,b,C,x)};else if(e&&t&&n&&r&&o)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f);return o(y,v,b,C)};else if(e&&t&&n&&r)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f);return r(y,v,b)};else if(e&&t&&n)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f);return n(y,v)};else if(e&&t)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f);return t(y)};else throw new Error("Missing arguments");return s.acceptsApiRef=!0,s},Jn=(...e)=>{const t=(...n)=>{var r,o;const[i,a]=n,s=uf(i),l=s?i.current.instanceId:a??cf,u=s?i.current.state:i,{cache:c}=MAe;if(c.get(l)&&(r=c.get(l))!=null&&r.get(e)){var f;return(f=c.get(l))==null?void 0:f.get(e)(u,l)}const p=PAe(...e);return c.get(l)||c.set(l,new Map),(o=c.get(l))==null||o.set(e,p),p(u,l)};return t.acceptsApiRef=!0,t},kc=e=>e.columns,tl=Vt(kc,e=>e.orderedFields),gd=Vt(kc,e=>e.lookup),us=Jn(tl,gd,(e,t)=>e.map(n=>t[n])),$a=Vt(kc,e=>e.columnVisibilityModel),Xr=Jn(us,$a,(e,t)=>e.filter(n=>t[n.field]!==!1)),n2=Jn(Xr,e=>e.map(t=>t.field)),Pp=Jn(Xr,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),oV=Jn(us,e=>e.filter(t=>t.filterable)),TAe=Jn(us,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),r2=e=>e.columnGrouping,EAe=Jn(r2,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),iV=Jn(r2,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),IAe=Jn(r2,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),C0=Vt(r2,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Oa=e=>e.rows,o2=Vt(Oa,e=>e.totalRowCount),RAe=Vt(Oa,e=>e.loading),OAe=Vt(Oa,e=>e.totalTopLevelRowCount),Gl=Vt(Oa,e=>e.dataRowIdToModelLookup),ib=Vt(Oa,e=>e.dataRowIdToIdLookup),wa=Vt(Oa,e=>e.tree),AAe=Vt(Oa,e=>e.groupingName),g8=Vt(Oa,e=>e.treeDepths),i2=Jn(Oa,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),t1=Vt(Oa,e=>e.dataRowIds),FAe=Vt(Oa,e=>e==null?void 0:e.additionalRowGroups),eh=Jn(FAe,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}})}}),LAe=Vt(eh,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),aV=()=>{var e;const t=Mu(),n=dt(),r=it(t,Xr),o=it(t,o2),i=it(t,C0),a=it(t,LAe);let s="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(s="treegrid"),{role:s,"aria-colcount":r.length,"aria-rowcount":i+1+a+o,"aria-multiselectable":!n.disableMultipleRowSelection}},DAe=e=>{const{classes:t}=e;return qe({root:["main"]},Jt,t)},jAe=Ar("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),NAe=m.forwardRef((e,t)=>{var n;const r=dt(),o=DAe(r),i=(n=r.experimentalFeatures)!=null&&n.ariaV7?aV:null,a=typeof i=="function"?i():null;return g.jsx(jAe,P({ref:t,className:o.root,ownerState:r},a,{children:e.children}))}),sV=e=>e.sorting,$T=Vt(sV,e=>e.sortedRows),_T=Jn($T,Gl,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Di=Vt(sV,e=>e.sortModel),zAe=Jn(Di,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),kT=e=>e.filter,qr=Vt(kT,e=>e.filterModel),BAe=Vt(qr,e=>e.quickFilterValues),HAe=e=>e.visibleRowsLookup,lV=Vt(kT,e=>e.filteredRowsLookup);Vt(kT,e=>e.filteredDescendantCountLookup);const Tu=Jn(HAe,_T,(e,t)=>t.filter(n=>e[n.id]!==!1)),Rm=Jn(Tu,e=>e.map(t=>t.id)),WAe=Jn(lV,_T,(e,t)=>t.filter(n=>e[n.id]!==!1)),VAe=Jn(WAe,e=>e.map(t=>t.id)),uV=Jn(Tu,wa,i2,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),cV=Vt(Tu,e=>e.length),a2=Vt(uV,e=>e.length),dV=Jn(qr,gd,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.field)return!1;const a=t[r.field];if(!(a!=null&&a.filterOperators)||(a==null||(o=a.filterOperators)==null?void 0:o.length)===0)return!1;const s=a.filterOperators.find(l=>l.value===r.operator);return s?!s.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),UAe=Jn(dV,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),s2=e=>e.focus,si=Vt(s2,e=>e.cell),GAe=Vt(s2,e=>e.columnHeader);Vt(s2,e=>e.columnHeaderFilter);const ab=Vt(s2,e=>e.columnGroupHeader),l2=e=>e.tabIndex,sb=Vt(l2,e=>e.cell),fV=Vt(l2,e=>e.columnHeader);Vt(l2,e=>e.columnHeaderFilter);const qAe=Vt(l2,e=>e.columnGroupHeader),PT=e=>e.density,pV=Vt(PT,e=>e.value),th=Vt(PT,e=>e.factor),$k=e=>e.columnMenu;function KAe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Mu(),i=dt(),a=m.useRef(null),s=it(o,Xr),l=it(o,UAe),u=it(o,zAe),c=it(o,Pp),f=it(o,fV),p=it(o,sb),y=it(o,qAe),v=it(o,GAe),b=it(o,ab),C=it(o,th),x=it(o,C0),w=it(o,$k),S=it(o,$a),$=it(o,IAe),T=!(y===null&&f===null&&p===null);pn(()=>{o.current.computeSizeAndPublishResizeEvent();const E=a.current;if(typeof ResizeObserver>"u")return()=>{};let A;const z=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return E&&z.observe(E),()=>{A&&window.cancelAnimationFrame(A),E&&z.unobserve(E)}},[o]);const k=m.useRef(null),M=m.useRef(null),I=m.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:M,columnHeadersElementRef:k,virtualScrollerRef:I,mainElementRef:a});const N=!!o.current.getRootDimensions();return g.jsxs(NAe,{ref:a,children:[g.jsx(i.slots.columnHeaders,P({ref:M,innerRef:k,visibleColumns:s,filterColumnLookup:l,sortColumnLookup:u,columnPositions:c,columnHeaderTabIndexState:f,columnGroupHeaderTabIndexState:y,columnHeaderFocus:v,columnGroupHeaderFocus:b,densityFactor:C,headerGroupingMaxDepth:x,columnMenuState:w,columnVisibility:S,columnGroupsHeaderStructure:$,hasOtherElementInTabSequence:T},n)),N&&g.jsx(t,{ref:I}),r]})}function YAe(){var e;const t=dt();return t.hideFooter?null:g.jsx(t.slots.footer,P({},(e=t.slotProps)==null?void 0:e.footer))}const xo="auto-generated-group-node-root",Yf=Symbol("mui.id_autogenerated"),XAe=()=>({type:"group",id:xo,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function QAe(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` +`))}const lb=(e,t,n)=>{const r=t?t(e):e.id;return QAe(r,e,n),r},j1=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let s=0;s{const n=e[xo];return Math.max(t,n.children.length+(n.footerId==null?0:1))},mV=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:s,dataRowIds:l,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:s,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:l,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},P({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:hV({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Fg=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,MT=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(p=>{const y=lb(p,t,"A row was provided without id when calling updateRows():");a.has(y)?a.set(y,P({},a.get(y),p)):a.set(y,p)});const s={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:P({},e.updates.idToActionLookup)},l=P({},e.dataRowIdToModelLookup),u=P({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((p,y)=>{const v=s.idToActionLookup[y];if(p._action==="delete"){if(v==="remove"||!l[y])return;v!=null&&(c[v][y]=!0),s.actions.remove.push(y),delete l[y],delete u[y];return}const b=l[y];if(b){v==="remove"?(c.remove[y]=!0,s.actions.modify.push(y)):v==null&&s.actions.modify.push(y),l[y]=P({},b,p);return}v==="remove"?(c.remove[y]=!0,s.actions.insert.push(y)):v==null&&s.actions.insert.push(y),l[y]=p,u[y]=y});const f=Object.keys(c);for(let p=0;p0&&(s.actions[y]=s.actions[y].filter(b=>!v[b]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:u,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function gV(e){var t,n;const r=eh(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0;return{top:o,bottom:i}}function vV(e,t){const n=th(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const JAe=Ar("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),e6e=Ar("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),t6e=e=>{const{classes:t}=e;return qe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Jt,t)};function n6e(e){var t,n;const r=Wt(),o=dt(),[i,a]=m.useState(()=>{var c,f;return(c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null}),s=m.useCallback(()=>{var c,f;a((c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null)},[r]);pn(()=>r.current.subscribeEvent("viewportInnerSizeChange",s),[r,s]);let l=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&l===0&&(l=vV(r,o.rowHeight));const u=t6e(P({},e,{classes:o.classes}));return i?g.jsx(JAe,{className:ze(u.root),overlayType:e.overlayType,children:g.jsx(e6e,P({className:ze(u.inner),style:{height:l,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function r6e(){const e=Wt(),t=dt(),n=it(e,o2),r=it(e,cV),o=it(e,RAe),i=!o&&n===0,a=!o&&n>0&&r===0;let s=null,l="";if(i){var u;s=g.jsx(t.slots.noRowsOverlay,P({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),l="noRowsOverlay"}if(a){var c;s=g.jsx(t.slots.noResultsOverlay,P({},(c=t.slotProps)==null?void 0:c.noResultsOverlay)),l="noResultsOverlay"}if(o){var f;s=g.jsx(t.slots.loadingOverlay,P({},(f=t.slotProps)==null?void 0:f.loadingOverlay)),l="loadingOverlay"}return s===null?null:g.jsx(n6e,{overlayType:l,children:s})}function u2(e){return m.memo(e,rV)}let JS;function o6e(){return JS===void 0&&document.createElement("div").focus({get preventScroll(){return JS=!0,!1}}),JS}var gs=function(e){return e.Cell="cell",e.Row="row",e}(gs||{}),Pn=function(e){return e.Edit="edit",e.View="view",e}(Pn||{}),Bn=function(e){return e.Edit="edit",e.View="view",e}(Bn||{}),zo=function(e){return e.And="and",e.Or="or",e}(zo||{}),Tl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Tl||{}),ga=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ga||{}),El=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(El||{}),Ns=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ns||{});function yV(e){return e.field!==void 0}function i6e(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function a6e(e,t){return e.closest(`.${t}`)}function TT(e){return e.replace(/["\\]/g,"\\$&")}function s6e(e,t){return e.querySelector(`[role="columnheader"][data-field="${TT(t)}"]`)}function bV(e){return`.${le.row}[data-id="${TT(String(e))}"]`}function l6e(e,t){return e.querySelector(bV(t))}function u6e(e,{id:t,field:n}){const r=bV(t),o=`.${le.cell}[data-field="${TT(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Yt(e,t,n){const r=m.useRef(!0);m.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Tf extends Error{}function c6e(e,t){const{getRowId:n}=t,r=m.useCallback(v=>({field:v,colDef:e.current.getColumn(v)}),[e]),o=m.useCallback(v=>{const b=e.current.getRow(v);if(!b)throw new Tf(`No row with id #${v} found`);return{id:v,columns:e.current.getAllColumns(),row:b}},[e]),i=m.useCallback((v,b)=>{const C=e.current.getRow(v),x=e.current.getRowNode(v);if(!C||!x)throw new Tf(`No row with id #${v} found`);const w=si(e),S=sb(e);return{id:v,field:b,row:C,rowNode:x,value:C[b],colDef:e.current.getColumn(b),cellMode:e.current.getCellMode(v,b),api:e.current,hasFocus:w!==null&&w.field===b&&w.id===v,tabIndex:S&&S.field===b&&S.id===v?0:-1}},[e]),a=m.useCallback((v,b)=>{const C=e.current.getColumn(b),x=e.current.getCellValue(v,b),w=e.current.getRow(v),S=e.current.getRowNode(v);if(!w||!S)throw new Tf(`No row with id #${v} found`);const $=si(e),T=sb(e),k={id:v,field:b,row:w,rowNode:S,colDef:C,cellMode:e.current.getCellMode(v,b),hasFocus:$!==null&&$.field===b&&$.id===v,tabIndex:T&&T.field===b&&T.id===v?0:-1,value:x,formattedValue:x,isEditable:!1};return C&&C.valueFormatter&&(k.formattedValue=C.valueFormatter({id:v,field:k.field,value:k.value,api:e.current})),k.isEditable=C&&e.current.isCellEditable(k),k},[e]),s=m.useCallback((v,b)=>{const C=e.current.getColumn(b);if(!C||!C.valueGetter){const x=e.current.getRow(v);if(!x)throw new Tf(`No row with id #${v} found`);return x[b]}return C.valueGetter(i(v,b))},[e,i]),l=m.useCallback((v,b)=>{var C;const x=Yf in v?v[Yf]:(C=n==null?void 0:n(v))!=null?C:v.id,w=b.field;return!b||!b.valueGetter?v[w]:b.valueGetter(i(x,w))},[i,n]),u=m.useCallback((v,b)=>{var C;const x=l(v,b);if(!b||!b.valueFormatter)return x;const w=(C=n?n(v):v.id)!=null?C:v[Yf],S=b.field;return b.valueFormatter({id:w,field:S,value:x,api:e.current})},[e,n,l]),c=m.useCallback(v=>e.current.rootElementRef.current?s6e(e.current.rootElementRef.current,v):null,[e]),f=m.useCallback(v=>e.current.rootElementRef.current?l6e(e.current.rootElementRef.current,v):null,[e]),p=m.useCallback((v,b)=>e.current.rootElementRef.current?u6e(e.current.rootElementRef.current,{id:v,field:b}):null,[e]);Yt(e,{getCellValue:s,getCellParams:a,getCellElement:p,getRowValue:l,getRowFormattedValue:u,getRowParams:o,getRowElement:f,getColumnHeaderParams:r,getColumnHeaderElement:c},"public")}const d6e=["changeReason","unstable_updateValueOnRender"],f6e=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],p6e=["changeReason","unstable_updateValueOnRender"],ub={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Pn.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},h6e=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:i,classes:a}=e,s={root:["cell",`cell--text${je(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",i&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return qe(s,Jt,a)},m6e=m.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=Wt(),a=dt(),s=n.field,l=it(i,()=>{try{const N=i.current.getCellParams(r,s);return N.api=i.current,N}catch(I){if(I instanceof Tf)return ub;throw I}},CT),u=it(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s}));if(l===ub)return null;const{cellMode:c,hasFocus:f,isEditable:p,value:y,formattedValue:v}=l,b=n.type==="actions",C=(c==="view"||!p)&&!b?l.tabIndex:-1,{classes:x,getCellClassName:w}=a,S=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});n.cellClassName&&S.push(typeof n.cellClassName=="function"?n.cellClassName(l):n.cellClassName),w&&S.push(w(l));let $;if(o==null&&n.renderCell&&($=n.renderCell(l),S.push(le["cell--withRenderer"]),S.push(x==null?void 0:x["cell--withRenderer"])),o!=null&&n.renderEditCell){const I=i.current.getRowWithUpdatedValues(r,n.field),N=be(o,d6e),E=P({},l,{row:I},N);$=n.renderEditCell(E),S.push(le["cell--editing"]),S.push(x==null?void 0:x["cell--editing"])}const{slots:T}=a,k=T.cell,M=P({},e,{ref:t,field:s,formattedValue:v,hasFocus:f,isEditable:p,isSelected:u,value:y,cellMode:c,children:$,tabIndex:C,className:ze(S)});return m.createElement(k,M)}),g6e=u2(m6e),v6e=m.forwardRef((e,t)=>{var n,r,o,i;const{column:a,rowId:s,editCellState:l,align:u,colIndex:c,height:f,width:p,className:y,showRightBorder:v,colSpan:b,disableDragEvents:C,isNotVisible:x,onClick:w,onDoubleClick:S,onMouseDown:$,onMouseUp:T,onMouseOver:k,onKeyDown:M,onKeyUp:I,onDragEnter:N,onDragOver:E}=e,A=be(e,f6e),z=Wt(),L=dt(),O=a.field,D=it(z,()=>{try{const ee=z.current.getCellParams(s,O);return ee.api=z.current,ee}catch(K){if(K instanceof Tf)return ub;throw K}},CT),H=it(z,()=>z.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:O})),{cellMode:B,hasFocus:j,isEditable:W,value:U,formattedValue:Z}=D,Y=a.type==="actions"&&((n=(r=a).getActions)==null?void 0:n.call(r,z.current.getRowParams(s)).some(K=>!K.props.disabled)),se=(B==="view"||!W)&&!Y?D.tabIndex:-1,{classes:Q,getCellClassName:ne}=L,re=z.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:O});a.cellClassName&&re.push(typeof a.cellClassName=="function"?a.cellClassName(D):a.cellClassName),ne&&re.push(ne(D));const ge=Z??U,xe=m.useRef(null),fe=on(t,xe),Se=m.useRef(null),de=(o=L.unstable_cellSelection)!=null?o:!1,ie={align:u,showRightBorder:v,isEditable:W,classes:L.classes,isSelected:H,isSelectionMode:de},Pe=h6e(ie),$e=m.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),T&&T(ee)},[z,O,T,s]),me=m.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),$&&$(ee)},[z,O,$,s]),ue=m.useCallback((K,ee)=>pe=>{if(!z.current.getRow(s))return;const ye=z.current.getCellParams(s,O||"");z.current.publishEvent(K,ye,pe),ee&&ee(pe)},[z,O,s]),ce=m.useMemo(()=>x?{padding:0,opacity:0,width:0,border:0}:{minWidth:p,maxWidth:p,minHeight:f,maxHeight:f==="auto"?"none":f},[p,f,x]);if(m.useEffect(()=>{if(!j||B===Pn.Edit)return;const K=Gn(z.current.rootElementRef.current);if(xe.current&&!xe.current.contains(K.activeElement)){const ee=xe.current.querySelector('[tabindex="0"]'),pe=Se.current||ee||xe.current;if(o6e())pe.focus({preventScroll:!0});else{const ye=z.current.getScrollPosition();pe.focus(),z.current.scroll(ye)}}},[j,B,z]),D===ub)return null;let Te=A.onFocus,Le;if(l==null&&a.renderCell&&(Le=a.renderCell(D),re.push(le["cell--withRenderer"]),re.push(Q==null?void 0:Q["cell--withRenderer"])),l!=null&&a.renderEditCell){const K=z.current.getRowWithUpdatedValues(s,a.field),ee=be(l,p6e),pe=P({},D,{row:K},ee);Le=a.renderEditCell(pe),re.push(le["cell--editing"]),re.push(Q==null?void 0:Q["cell--editing"])}if(Le===void 0){const K=ge==null?void 0:ge.toString();Le=g.jsx("div",{className:Pe.content,title:K,role:"presentation",children:K})}m.isValidElement(Le)&&Y&&(Le=m.cloneElement(Le,{focusElementRef:Se}));const Re=C?null:{onDragEnter:ue("cellDragEnter",N),onDragOver:ue("cellDragOver",E)},Oe=(i=L.experimentalFeatures)==null?void 0:i.ariaV7;return g.jsx("div",P({ref:fe,className:ze(y,re,Pe.root),role:Oe?"gridcell":"cell","data-field":O,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":b,style:ce,tabIndex:se,onClick:ue("cellClick",w),onDoubleClick:ue("cellDoubleClick",S),onMouseOver:ue("cellMouseOver",k),onMouseDown:me("cellMouseDown"),onMouseUp:$e("cellMouseUp"),onKeyDown:ue("cellKeyDown",M),onKeyUp:ue("cellKeyUp",I)},Re,A,{onFocus:Te,children:Le}))}),_k=u2(v6e),y6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],b6e=e=>{const{classes:t}=e;return qe({root:["booleanCell"]},Jt,t)};function x6e(e){const{value:t}=e,n=be(e,y6e),r=Wt(),o=dt(),i={classes:o.classes},a=b6e(i),s=m.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return g.jsx(s,P({fontSize:"small",className:a.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const w6e=m.memo(x6e),C6e=e=>Fg(e.rowNode)?"":g.jsx(w6e,P({},e)),S6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],$6e=e=>{const{classes:t}=e;return qe({root:["editBooleanCell"]},Jt,t)};function _6e(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:a,onValueChange:s}=e,l=be(e,S6e),u=Wt(),c=m.useRef(null),f=ln(),[p,y]=m.useState(r),v=dt(),b={classes:v.classes},C=$6e(b),x=m.useCallback(async w=>{const S=w.target.checked;s&&await s(w,S),y(S),await u.current.setEditCellValue({id:n,field:o,value:S},w)},[u,o,n,s]);return m.useEffect(()=>{y(r)},[r]),pn(()=>{a&&c.current.focus()},[a]),g.jsx("label",P({htmlFor:f,className:ze(C.root,i)},l,{children:g.jsx(v.slots.baseCheckbox,P({id:f,inputRef:c,checked:!!p,onChange:x,size:"small"},(t=v.slotProps)==null?void 0:t.baseCheckbox))}))}const k6e=e=>g.jsx(_6e,P({},e)),P6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],M6e=ke(sd)({fontSize:"inherit"}),T6e=e=>{const{classes:t}=e;return qe({root:["editInputCell"]},Jt,t)};function E6e(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:s}=e,l=be(e,P6e),u=o.type==="dateTime",c=Wt(),f=m.useRef(),p=m.useMemo(()=>{let M;n==null?M=null:n instanceof Date?M=n:M=new Date((n??"").toString());let I;return M==null||Number.isNaN(M.getTime())?I="":I=new Date(M.getTime()-M.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:M,formatted:I}},[n,u]),[y,v]=m.useState(p),C={classes:dt().classes},x=T6e(C),w=m.useRef(!1),S=m.useCallback(M=>{if(M==="")return null;const[I,N]=M.split("T"),[E,A,z]=I.split("-"),L=new Date;if(L.setFullYear(Number(E),Number(A)-1,Number(z)),L.setHours(0,0,0,0),N){const[O,D]=N.split(":");L.setHours(Number(O),Number(D),0,0)}return L},[]),$=m.useCallback(async M=>{const I=M.target.value,N=S(I);s&&await s(M,N),v({parsed:N,formatted:I}),c.current.setEditCellValue({id:t,field:r,value:N},M)},[c,r,t,s,S]);m.useEffect(()=>{v(M=>{var I,N;return p.parsed!==M.parsed&&((I=p.parsed)==null?void 0:I.getTime())!==((N=M.parsed)==null?void 0:N.getTime())?p:M})},[p]),pn(()=>{i&&f.current.focus()},[i]);const T=c.current.unstable_getEditCellMeta(t,r),k=M=>{if(f.current=M,T!=null&&T.unstable_updateValueOnRender&&!w.current){const I=f.current.value,N=S(I);v({parsed:N,formatted:I}),c.current.setEditCellValue({id:t,field:r,value:N}),w.current=!0}};return g.jsx(M6e,P({inputRef:k,fullWidth:!0,className:x.root,type:u?"datetime-local":"date",inputProps:P({max:u?"9999-12-31T23:59":"9999-12-31"},a),value:y.formatted,onChange:$},l))}const xV=e=>g.jsx(E6e,P({},e)),I6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],R6e=e=>{const{classes:t}=e;return qe({root:["editInputCell"]},Jt,t)},O6e=ke(sd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),A6e=m.forwardRef((e,t)=>{const n=dt(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:u,onValueChange:c}=e,f=be(e,I6e),p=Wt(),y=m.useRef(),[v,b]=m.useState(o),C=R6e(n),x=m.useCallback(async S=>{const $=S.target.value;c&&await c(S,$);const T=p.current.getColumn(i);let k=$;T.valueParser&&(k=T.valueParser($,p.current.getCellParams(r,i))),b(k),p.current.setEditCellValue({id:r,field:i,value:k,debounceMs:l,unstable_skipValueParser:!0},S)},[p,l,i,r,c]),w=p.current.unstable_getEditCellMeta(r,i);return m.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&b(o)},[w,o]),pn(()=>{s&&y.current.focus()},[s]),g.jsx(O6e,P({ref:t,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:v??"",onChange:x,endAdornment:u?g.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},f))}),F6e=e=>g.jsx(A6e,P({},e)),cb=e=>e==="Escape",L6e=e=>e==="Enter",c2=e=>e==="Tab",wV=e=>e===" ",D6e=e=>e.indexOf("Arrow")===0,j6e=e=>e==="Home"||e==="End",N6e=e=>e.indexOf("Page")===0;function CV(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const db=e=>j6e(e)||D6e(e)||N6e(e)||wV(e),z6e=e=>!!e.key,ET=e=>c2(e)||cb(e);function Pc(e){return(e==null?void 0:e.type)==="singleSelect"}function kk(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const B6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],H6e=["MenuProps"];function W6e(e){return!!e.key}function V6e(e){var t,n,r;const o=dt(),{id:i,value:a,field:s,row:l,colDef:u,hasFocus:c,error:f,onValueChange:p,initialOpen:y=o.editMode===gs.Cell,getOptionLabel:v,getOptionValue:b}=e,C=be(e,B6e),x=Wt(),w=m.useRef(),S=m.useRef(),[$,T]=m.useState(y),M=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,I=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:N}=I,E=be(I,H6e);if(pn(()=>{if(c){var B;(B=S.current)==null||B.focus()}},[c]),!Pc(u))return null;let A;if(typeof(u==null?void 0:u.valueOptions)=="function"?A=u==null?void 0:u.valueOptions({id:i,row:l,field:s}):A=u==null?void 0:u.valueOptions,!A)return null;const z=b||u.getOptionValue,L=v||u.getOptionLabel,O=async B=>{if(!Pc(u)||!A)return;T(!1);const j=B.target,W=kk(j.value,A,z);p&&await p(B,W),await x.current.setEditCellValue({id:i,field:s,value:W},B)},D=(B,j)=>{if(o.editMode===gs.Row){T(!1);return}if(j==="backdropClick"||cb(B.key)){const W=x.current.getCellParams(i,s);x.current.publishEvent("cellEditStop",P({},W,{reason:cb(B.key)?ga.escapeKeyDown:ga.cellFocusOut}))}},H=B=>{W6e(B)&&B.key==="Enter"||T(!0)};return!A||!u?null:g.jsx(o.slots.baseSelect,P({ref:w,inputRef:S,value:a,onChange:O,open:$,onOpen:H,MenuProps:P({onClose:D},N),error:f,native:M,fullWidth:!0},C,E,{children:A.map(B=>{var j;const W=z(B);return m.createElement(o.slots.baseSelectOption,P({},((j=o.slotProps)==null?void 0:j.baseSelectOption)||{},{native:M,key:W,value:W}),L(B))})}))}const U6e=e=>g.jsx(V6e,P({},e)),G6e=["open","target","onClose","children","position","className","onExited"],q6e=e=>{const{classes:t}=e;return qe({root:["menu"]},Jt,t)},K6e=ke(ad,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${le.menuList}`]:{outline:0}})),Y6e={"bottom-start":"top left","bottom-end":"top right"};function d2(e){var t;const{open:n,target:r,onClose:o,children:i,position:a,className:s,onExited:l}=e,u=be(e,G6e),c=Wt(),f=dt(),p=q6e(f),y=m.useRef(null);pn(()=>{if(n)y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,x;(C=y.current)==null||(x=C.focus)==null||x.call(C),y.current=null}},[n]),m.useEffect(()=>{const C=n?"menuOpen":"menuClose";c.current.publishEvent(C,{target:r})},[c,n,r]);const v=C=>x=>{C&&C(),l&&l(x)},b=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return g.jsx(K6e,P({as:f.slots.basePopper,className:ze(s,p.root),ownerState:f,open:n,anchorEl:r,transition:!0,placement:a},u,(t=f.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:x})=>g.jsx(Dj,{onClickAway:b,mouseEvent:"onMouseDown",children:g.jsx(_y,P({},C,{style:{transformOrigin:Y6e[x]},onExited:v(C==null?void 0:C.onExited),children:g.jsx(id,{children:i})}))})}))}const X6e=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Q6e=e=>typeof e.getActions=="function";function Z6e(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:s}=e,l=be(e,X6e),[u,c]=m.useState(-1),[f,p]=m.useState(!1),y=Wt(),v=m.useRef(null),b=m.useRef(null),C=m.useRef(!1),x=m.useRef({}),w=Xt(),S=ln(),$=ln(),T=dt();if(!Q6e(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(y.current.getRowParams(r)),M=k.filter(H=>!H.props.showInMenu),I=k.filter(H=>H.props.showInMenu),N=M.length+(I.length?1:0);m.useLayoutEffect(()=>{o||Object.entries(x.current).forEach(([H,B])=>{B==null||B.stop({},()=>{delete x.current[H]})})},[o]),m.useEffect(()=>{if(u<0||!v.current||u>=v.current.children.length)return;v.current.children[u].focus({preventScroll:!0})},[u]),m.useEffect(()=>{o||(c(-1),C.current=!1)},[o]),m.useImperativeHandle(s,()=>({focus(){if(!C.current){const H=k.findIndex(B=>!B.props.disabled);c(H)}}}),[k]),m.useEffect(()=>{u>=N&&c(N-1)},[u,N]);const E=()=>{p(!0),c(N-1),C.current=!0},A=()=>{p(!1)},z=H=>B=>{x.current[H]=B},L=(H,B)=>j=>{c(H),C.current=!0,B&&B(j)},O=H=>{if(N<=1)return;const B=(W,U)=>{var Z;if(W<0||W>k.length)return W;const Y=w.direction==="rtl"?-1:1,se=(U==="left"?-1:1)*Y;return(Z=k[W+se])!=null&&Z.props.disabled?B(W+se,U):W+se};let j=u;H.key==="ArrowRight"?j=B(u,"right"):H.key==="ArrowLeft"&&(j=B(u,"left")),!(j<0||j>=N)&&j!==u&&(H.preventDefault(),H.stopPropagation(),c(j))},D=H=>{H.key==="Tab"&&H.preventDefault(),["Tab","Enter","Escape"].includes(H.key)&&A()};return g.jsxs("div",P({role:"menu",ref:v,tabIndex:-1,className:le.actionsCell,onKeyDown:O},l,{children:[M.map((H,B)=>m.cloneElement(H,{key:B,touchRippleRef:z(B),onClick:L(B,H.props.onClick),tabIndex:u===B?i:-1})),I.length>0&&$&&g.jsx(T.slots.baseIconButton,P({ref:b,id:$,"aria-label":y.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?S:void 0,role:"menuitem",size:"small",onClick:E,touchRippleRef:z($),tabIndex:u===M.length?i:-1},(t=T.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(T.slots.moreActionsIcon,{fontSize:"small"})})),I.length>0&&g.jsx(d2,{open:f,target:b.current,position:a,onClose:A,onClick:A,children:g.jsx(i0,{id:S,className:le.menuList,onKeyDown:D,"aria-labelledby":$,variant:"menu",autoFocusItem:!0,children:I.map((H,B)=>m.cloneElement(H,{key:B}))})})]}))}const J6e=e=>g.jsx(Z6e,P({},e)),eFe=["field","align","width","contentWidth"],tFe=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${je(t)}`,"withBorderColor"]};return qe(r,Jt,n)};function nFe(e){const{align:t,width:n,contentWidth:r}=e,o=be(e,eFe),a={classes:dt().classes,align:t},s=tFe(a);return g.jsx("div",P({className:s.root,style:{width:n}},o,{children:g.jsx(Kge,{width:`${r}%`})}))}function rFe(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Tx(Lt(e.palette.divider,1),.88):Mx(Lt(e.palette.divider,1),.68)}const v8={[`.${le.columnSeparator}, .${le["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},y8={[`& .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.menuIcon}`]:{width:"auto",visibility:"visible"}},oFe=ke("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${le.autoHeight}`]:t.autoHeight},{[`&.${le.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${le["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${le["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${le["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${le.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${le["root--disableUserSelection"]} .${le.cell}`]:t["root--disableUserSelection"]},{[`&.${le.autosizing}`]:t.autosizing},{[`& .${le.editBooleanCell}`]:t.editBooleanCell},{[`& .${le["cell--editing"]}`]:t["cell--editing"]},{[`& .${le["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${le["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${le["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${le["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${le.cell}`]:t.cell},{[`& .${le["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${le["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${le["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${le["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${le["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${le.cellContent}`]:t.cellContent},{[`& .${le.cellCheckbox}`]:t.cellCheckbox},{[`& .${le.cellSkeleton}`]:t.cellSkeleton},{[`& .${le.checkboxInput}`]:t.checkboxInput},{[`& .${le["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${le["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${le["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${le["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${le["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${le["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${le["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${le["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${le["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${le.columnHeader}`]:t.columnHeader},{[`& .${le.headerFilterRow}`]:t.headerFilterRow},{[`& .${le.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${le.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${le.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${le["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${le["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${le.columnSeparator}`]:t.columnSeparator},{[`& .${le.filterIcon}`]:t.filterIcon},{[`& .${le.iconSeparator}`]:t.iconSeparator},{[`& .${le.menuIcon}`]:t.menuIcon},{[`& .${le.menuIconButton}`]:t.menuIconButton},{[`& .${le.menuOpen}`]:t.menuOpen},{[`& .${le.menuList}`]:t.menuList},{[`& .${le["row--editable"]}`]:t["row--editable"]},{[`& .${le["row--editing"]}`]:t["row--editing"]},{[`& .${le["row--dragging"]}`]:t["row--dragging"]},{[`& .${le.row}`]:t.row},{[`& .${le.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${le.rowReorderCell}`]:t.rowReorderCell},{[`& .${le["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${le.sortIcon}`]:t.sortIcon},{[`& .${le.withBorderColor}`]:t.withBorderColor},{[`& .${le.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${le.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${le.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${le["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=rFe(e),n=e.shape.borderRadius;return P({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Lt(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${le.autoHeight}`]:{height:"auto",[`& .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"}},[`&.${le.autosizing}`]:{[`& .${le.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${le.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${le["virtualScrollerContent--overflowed"]} .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"},[`& .${le.columnHeader}, & .${le.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${le.columnHeader}:focus-within, & .${le.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:Lt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${le.columnHeader}:focus, & .${le.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${le.columnHeaderCheckbox}, & .${le.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${le.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${le["columnHeader--sorted"]} .${le.iconButtonContainer}, & .${le["columnHeader--filtered"]} .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}) .${le.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${le.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${le.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${le["columnHeader--filledGroup"]} .${le.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]} .${le.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${le.sortIcon}, & .${le.filterIcon}`]:{fontSize:"inherit"},[`& .${le["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${le["columnHeader--alignCenter"]} .${le.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${le["columnHeader--alignRight"]} .${le.columnHeaderDraggableContainer}, & .${le["columnHeader--alignRight"]} .${le.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${le["columnHeader--alignCenter"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${le["columnHeader--alignRight"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${le["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${le.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${le.columnHeaders}:hover`]:v8,[`& .${le.columnHeader}:hover`]:y8,[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}):hover .${le.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${le.columnHeaders}`]:v8,[`& .${le.columnHeader}`]:y8},[`& .${le["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${le["columnSeparator--sideRight"]}`]:{right:-12},[`& .${le["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${le["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${le.iconSeparator}`]:{color:"inherit"},[`& .${le.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${le.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${le.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( ${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity} - ))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${le.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${le["root--disableUserSelection"]} .${le.cell}`]:{userSelect:"none"},[`& .${le.row}:not(.${le["row--dynamicHeight"]}) > .${le.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${le.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${le.cell}.${le["cell--selectionMode"]}`]:{cursor:"default"},[`& .${le.cell}.${le["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${le["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${le["row--editing"]} .${le.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${le.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${le.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${le.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${le.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${le.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${le.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${le.withBorderColor}`]:{borderColor:t},[`& .${le["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${le["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${le["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${le.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${le.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${le["columnHeader--dragging"]}, & .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${le.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${le.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${le.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),rFe=["children","className"],oFe=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${je(n)}`,"withBorderColor"]};return Ge(o,Jt,r)},iFe=m.forwardRef(function(t,n){var r;const o=dt(),{children:i,className:a}=t,s=be(t,rFe),l=Tu(),u=it(l,hV),c=m.useRef(null),f=on(c,n),p=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:sV,y=typeof p=="function"?p():null,v=P({},o,{density:u}),b=oFe(v);l.current.register("public",{rootElementRef:c});const[C,x]=m.useState(!1);return pn(()=>{x(!0)},[]),C?g.jsx(nFe,P({ref:f,className:ze(a,b.root),ownerState:v},y,s,{children:i})):null}),aFe=["className"],sFe=e=>{const{classes:t}=e;return Ge({root:["footerContainer","withBorderColor"]},Jt,t)},lFe=Ar("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),uFe=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,aFe),i=dt(),a=sFe(i);return g.jsx(lFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),cFe=["className"],dFe=e=>{const{classes:t}=e;return Ge({root:["overlay"]},Jt,t)},fFe=Ar("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),RT=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,cFe),i=dt(),a=dFe(i);return g.jsx(fFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),pFe=["className","children"],hFe=e=>{const{classes:t}=e;return Ge({root:["toolbarContainer"]},Jt,t)},mFe=Ar("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),gFe=m.forwardRef(function(t,n){const{className:r,children:o}=t,i=be(t,pFe),a=dt(),s=hFe(a);return o?g.jsx(mFe,P({ref:n,className:ze(r,s.root),ownerState:a},i,{children:o})):null}),vFe=["className"],yFe=e=>{const{classes:t}=e;return Ge({root:["iconButtonContainer"]},Jt,t)},bFe=Ar("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),$V=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,vFe),i=dt(),a=yFe(i);return g.jsx(bFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),xFe=e=>{const{classes:t}=e;return Ge({icon:["sortIcon"]},Jt,t)};function wFe(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 CFe(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=Wt(),a=dt(),s=P({},e,{classes:a.classes}),l=xFe(s),u=wFe(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($V,{children:[r!=null&&g.jsx(AM,{badgeContent:r,color:"default",children:c}),r==null&&c]})}const SFe=m.memo(CFe),$Fe=e=>{const{classes:t,open:n}=e;return Ge({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Jt,t)},_Fe=m.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:s}=e,l=Wt(),u=dt(),c=P({},e,{classes:u.classes}),f=$Fe(c),p=m.useCallback(y=>{y.preventDefault(),y.stopPropagation(),l.current.toggleColumnMenu(r.field)},[l,r.field]);return g.jsx("div",{className:f.root,children:g.jsx(u.slots.baseTooltip,P({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:g.jsx(u.slots.baseIconButton,P({ref:s,tabIndex:-1,className:f.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:a},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:g.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function kFe({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=Wt(),u=l.current.getColumn(o),c=Dn(f=>{f&&(f.stopPropagation(),a!=null&&a.contains(f.target))||l.current.hideColumnMenu()});return!a||!u?null:g.jsx(f2,{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 PFe=["className"],MFe=e=>{const{classes:t}=e;return Ge({root:["columnHeaderTitle"]},Jt,t)},TFe=Ar("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),EFe=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,PFe),i=dt(),a=MFe(i);return g.jsx(TFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))});function IFe(e){var t;const{label:n,description:r}=e,o=dt(),i=m.useRef(null),[a,s]=m.useState(""),l=m.useCallback(()=>{if(!r&&i!=null&&i.current){const u=r6e(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(EFe,{onMouseOver:l,ref:i,children:n})}))}const RFe=["resizable","resizing","height","side"];var _V=function(e){return e.Left="left",e.Right="right",e}(_V||{});const OFe=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${je(o)}`],icon:["iconSeparator"]};return Ge(i,Jt,r)};function AFe(e){const{height:t,side:n=_V.Right}=e,r=be(e,RFe),o=dt(),i=P({},e,{side:n,classes:o.classes}),a=OFe(i),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return g.jsx("div",P({className:a.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:s,children:g.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const FFe=m.memo(AFe),LFe=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],kV=m.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:a,isResizing:s,sortDirection:l,hasFocus:u,tabIndex:c,separatorSide:f,isDraggable:p,headerComponent:y,description:v,width:b,columnMenuIconButton:C=null,columnMenu:x=null,columnTitleIconButtons:w=null,headerClassName:S,label:$,resizable:T,draggableContainerProps:k,columnHeaderSeparatorProps:M}=t,I=be(t,LFe),N=Tu(),E=dt(),A=m.useRef(null),[z,L]=m.useState(o),O=on(A,n);let D="none";return l!=null&&(D=l==="asc"?"ascending":"descending"),m.useEffect(()=>{z||L(o)},[z,o]),m.useLayoutEffect(()=>{const H=N.current.state.columnMenu;if(u&&!H.open){const j=A.current.querySelector('[tabindex="0"]')||A.current;j==null||j.focus(),N.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[N,u]),g.jsxs("div",P({ref:O,className:ze(r.root,S),style:{height:a,width:b,minWidth:b,maxWidth:b},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":D,"aria-label":y==null?$:void 0},I,{children:[g.jsxs("div",P({className:r.draggableContainer,draggable:p,role:"presentation"},k,{children:[g.jsxs("div",{className:r.titleContainer,role:"presentation",children:[g.jsx("div",{className:r.titleContainerContent,children:y!==void 0?y:g.jsx(IFe,{label:$,description:v,columnWidth:b})}),w]}),C]})),g.jsx(FFe,P({resizable:!E.disableColumnResize&&!!T,resizing:s,height:a,side:f},M)),x]}))}),DFe=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 Ge(c,Jt,n)};function jFe(e){var t,n,r,o;const{colDef:i,columnMenuOpen:a,colIndex:s,headerHeight:l,isResizing:u,sortDirection:c,sortIndex:f,filterItemsCounter:p,hasFocus:y,tabIndex:v,disableReorder:b,separatorSide:C}=e,x=Tu(),w=dt(),S=m.useRef(null),$=ln(),T=ln(),k=m.useRef(null),[M,I]=m.useState(a),N=m.useMemo(()=>!w.disableColumnReorder&&!b&&!i.disableReorder,[w.disableColumnReorder,b,i.disableReorder]);let E;i.renderHeader&&(E=i.renderHeader(x.current.getColumnHeaderParams(i.field)));const A=P({},e,{classes:w.classes,showRightBorder:w.showColumnVerticalBorder}),z=DFe(A),L=m.useCallback(Q=>ne=>{ne.currentTarget.contains(ne.target)&&x.current.publishEvent(Q,x.current.getColumnHeaderParams(i.field),ne)},[x,i.field]),O=m.useMemo(()=>({onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),D=m.useMemo(()=>N?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[N,L]),H=m.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);m.useEffect(()=>{M||I(a)},[M,a]);const B=m.useCallback(()=>{I(!1)},[]),j=!w.disableColumnMenu&&!i.disableColumnMenu&&g.jsx(_Fe,{colDef:i,columnMenuId:$,columnMenuButtonId:T,open:M,iconButtonRef:k}),W=g.jsx(kFe,{columnMenuId:$,columnMenuButtonId:T,field:i.field,open:a,target:k.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(t=w.slotProps)==null?void 0:t.columnMenu,onExited:B}),U=(n=i.sortingOrder)!=null?n:w.sortingOrder,Z=g.jsxs(m.Fragment,{children:[!w.disableColumnFilter&&g.jsx(w.slots.columnHeaderFilterIconButton,P({field:i.field,counter:p},(r=w.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&g.jsx(SFe,{direction:c,index:f,sortingOrder:U})]});m.useLayoutEffect(()=>{const Q=x.current.state.columnMenu;if(y&&!Q.open){const re=S.current.querySelector('[tabindex="0"]')||S.current;re==null||re.focus(),x.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[x,y]);const Y=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,se=(o=i.headerName)!=null?o:i.field;return g.jsx(kV,P({ref:S,classes:z,columnMenuOpen:a,colIndex:s,height:l,isResizing:u,sortDirection:c,hasFocus:y,tabIndex:v,separatorSide:C,isDraggable:N,headerComponent:E,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:j,columnTitleIconButtons:Z,headerClassName:Y,label:se,resizable:!w.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:W,draggableContainerProps:D,columnHeaderSeparatorProps:H},O))}const Dg=()=>({items:[],logicOperator:zo.And,quickFilterValues:[],quickFilterLogicOperator:zo.And}),x8=1e3;class NFe{constructor(t=x8){this.timeouts=new Map,this.cleanupTimeout=x8,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 zFe{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var cs=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(cs||{});class BFe{}function HFe(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new zFe:new NFe);const[s]=m.useState(new BFe),l=m.useRef(null),u=m.useRef();u.current=i;const c=m.useRef(null);if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,c.current=null},c.current)}else!u.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));m.useEffect(()=>{if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o,a])}}const WFe={registry:null},vt=HFe(WFe),VFe={isFirst:!0};function Yn(e,t,n){vt(e,t,n,VFe)}function ho(e,t){const n=m.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function UFe(e){return typeof e=="number"&&!Number.isNaN(e)}function PV(e){return typeof e=="function"}function OT(e){return typeof e=="object"&&e!==null}function GFe(){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 z1(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Tp=(e,t,n)=>Math.max(t,Math.min(n,e));function rl(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 KFe(e,t,n){const r=qFe(e);return()=>t+(n-t)*r()}function MV(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const YFe=(e,t,n,r,o)=>{const i=ho(e,"useNativeEventListener"),[a,s]=m.useState(!1),l=m.useRef(r),u=m.useCallback(c=>l.current&&l.current(c),[]);m.useEffect(()=>{l.current=r},[r]),m.useEffect(()=>{let c;if(PV(t)?c=t():c=t&&t.current?t.current:null,c&&n&&!a){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o);const f=c;s(!0);const p=()=>{i.debug(`Clearing native ${n} event`),f.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",p)}},[t,u,n,a,i,o,e])},$0=e=>{const t=m.useRef(!0);t.current&&(t.current=!1,e())},XFe=100,QFe=e=>e?0:100,TV=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;$s(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const EV=e=>({page:0,pageSize:e?0:100}),ZFe=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),IV=(e,t)=>{if(t===cs.DataGrid&&e>XFe)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(` -`))},RV=e=>e.pagination,zi=Vt(RV,e=>e.paginationModel),JFe=Vt(zi,e=>e.page),e8e=Vt(zi,e=>e.pageSize);Vt(zi,s2,(e,t)=>TV(t,e.pageSize));const AT=Jn(zi,Ca,a2,Eu,cV,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),s=Math.min(a+e.pageSize-1,i-1);if(a===-1||s===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const l=o[a],u=s-a+1,c=r.findIndex(v=>v.id===l.id);let f=c,p=0;for(;f0)&&(f+=1),b===0&&(p+=1))}return{firstRowIndex:c,lastRowIndex:f-1}}),t8e=Jn(Eu,AT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),OV=Jn(Om,AT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Jc=e=>e.preferencePanel;var Ea=function(e){return e.filters="filters",e.columns="columns",e}(Ea||{});const jg=e=>e.rowsMeta,ji=e=>e.rowSelection,n8e=Vt(ji,e=>e.length),r8e=Jn(ji,ql,(e,t)=>new Map(e.map(n=>[n,t[n]]))),pb=Jn(ji,e=>e.reduce((t,n)=>(t[n]=n,t),{})),o8e=$s(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),AV=(e,t)=>t&&e.length>1?(o8e(),[e[0]]):e,w8=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:AV(e,t)})}),i8e=e=>e==="desc",a8e=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=i8e(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}},s8e=(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),l8e=(e,t)=>{const n=e.map(r=>a8e(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)=>s8e(n,o,i)).map(o=>o.node.id)},C8=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},FT=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,u8e=new Intl.Collator,c8e=(e,t)=>{const n=FT(e,t);return n!==null?n:typeof e=="string"?u8e.compare(e.toString(),t.toString()):e-t},FV=(e,t)=>{const n=FT(e,t);return n!==null?n:Number(e)-Number(t)},LV=(e,t)=>{const n=FT(e,t);return n!==null?n:e>t?1:ee.headerFiltering,d8e=Vt(DV,e=>e.editing),f8e=Vt(DV,e=>e.menuOpen),p8e=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return P({},e,{virtualization:n})};function h8e(e,t){const n=i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabled:i})}))};Yt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabledForColumns:i})}))}},"public"),m.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const jV=e=>e.virtualization,m8e=Vt(jV,e=>e.enabled),NV=Vt(jV,e=>e.enabledForColumns),g8e=e=>{const{classes:t}=e;return Ge({icon:["filterIcon"]},Jt,t)};function v8e(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=Wt(),s=dt(),l=P({},e,{classes:s.classes}),u=g8e(l),c=it(a,Jc),f=ln(),p=ln(),y=m.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:x,openedPanelValue:w}=Jc(a.current.state);x&&w===Ea.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,p,f),i&&i(a.current.getColumnHeaderParams(o),C)},[a,o,i,p,f]);if(!r)return null;const v=c.open&&c.labelId===f,b=g.jsx(s.slots.baseIconButton,P({id:f,onClick:y,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?p:void 0},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(s.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return g.jsx(s.slots.baseTooltip,P({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=s.slotProps)==null?void 0:n.baseTooltip,{children:g.jsxs($V,{children:[r>1&&g.jsx(AM,{badgeContent:r,color:"default",children:b}),r===1&&b]})}))}const y8e=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],b8e=e=>{const{classes:t}=e;return Ge({root:["checkboxInput"]},Jt,t)},x8e=m.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:s,hasFocus:l,tabIndex:u}=t,c=be(t,y8e),f=Wt(),p=dt(),y={classes:p.classes},v=b8e(y),b=m.useRef(null),C=m.useRef(null),x=on(b,n),w=f.current.getCellElement(i,o),S=M=>{const I={value:M.target.checked,id:i};f.current.publishEvent("rowSelectionCheckboxChange",I,M)};m.useLayoutEffect(()=>{u===0&&w&&(w.tabIndex=-1)},[w,u]),m.useEffect(()=>{if(l){var M;const I=(M=b.current)==null?void 0:M.querySelector("input");I==null||I.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[l]);const $=m.useCallback(M=>{CV(M.key)&&M.stopPropagation()},[]);if(s.type==="footer"||s.type==="pinnedRow")return null;const T=f.current.isRowSelectable(i),k=f.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return g.jsx(p.slots.baseCheckbox,P({ref:x,tabIndex:u,checked:a,onChange:S,className:v.root,inputProps:{"aria-label":k},onKeyDown:$,disabled:!T,touchRippleRef:C},(r=p.slotProps)==null?void 0:r.baseCheckbox,c))}),w8e=x8e,C8e=["field","colDef"],S8e=e=>{const{classes:t}=e;return Ge({root:["checkboxInput"]},Jt,t)},$8e=m.forwardRef(function(t,n){var r;const o=be(t,C8e),[,i]=m.useState(!1),a=Wt(),s=dt(),l={classes:s.classes},u=S8e(l),c=it(a,pV),f=it(a,ji),p=it(a,Om),y=it(a,OV),v=m.useMemo(()=>typeof s.isRowSelectable!="function"?f:f.filter(I=>a.current.getRow(I)?s.isRowSelectable(a.current.getRowParams(I)):!1),[a,s.isRowSelectable,f]),b=m.useMemo(()=>(!s.pagination||!s.checkboxSelectionVisibleOnly?p:y).reduce((N,E)=>(N[E]=!0,N),{}),[s.pagination,s.checkboxSelectionVisibleOnly,y,p]),C=m.useMemo(()=>v.filter(I=>b[I]).length,[v,b]),x=C>0&&C0,S=I=>{const N={value:I.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",N)},$=c!==null&&c.field===t.field?0:-1;m.useLayoutEffect(()=>{const I=a.current.getColumnHeaderElement(t.field);$===0&&I&&(I.tabIndex=-1)},[$,a,t.field]);const T=m.useCallback(I=>{I.key===" "&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[a,w]),k=m.useCallback(()=>{i(I=>!I)},[]);m.useEffect(()=>a.current.subscribeEvent("rowSelectionChange",k),[a,k]);const M=a.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return g.jsx(s.slots.baseCheckbox,P({ref:n,indeterminate:x,checked:w,onChange:S,className:u.root,inputProps:{"aria-label":M},tabIndex:$,onKeyDown:T},(r=s.slotProps)==null?void 0:r.baseCheckbox,o))}),S8=xt(g.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),$8=xt(g.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),_8=xt(g.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),k8=xt(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),_8e=xt(g.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),P8=xt(g.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),k8e=xt(g.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");xt(g.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");xt(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const P8e=xt(g.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),M8e=xt(g.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),T8e=xt(g.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),E8e=xt(g.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),I8e=xt(g.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),R8e=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),t$=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),M8=xt(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),O8e=xt(g.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),A8e=xt(g.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),T8=xt(g.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),F8e=xt(g.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),L8e=xt(g.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),D8e=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),j8e=xt(g.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),N8e=xt(g.jsx("g",{children:g.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),z8e=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");xt(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const B8e=xt(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),H8e=["hideMenu","colDef","id","labelledby","className","children","open"],W8e=ke(a0)(()=>({minWidth:248})),V8e=m.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,u=be(t,H8e),c=m.useCallback(f=>{d2(f.key)&&f.preventDefault(),IT(f.key)&&r(f)},[r]);return g.jsx(W8e,P({id:o,ref:n,className:ze(le.menuList,a),"aria-labelledby":i,onKeyDown:c,autoFocus:l},u,{children:s}))}),U8e=["displayOrder"],G8e=e=>{const t=Tu(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:a,colDef:s,addDividers:l=!0}=e,u=m.useMemo(()=>P({},n,o),[n,o]),c=m.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const y=P({},i);return Object.entries(r).forEach(([v,b])=>{y[v]=P({},b,i[v]||{})}),y},[r,i]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=m.useMemo(()=>{const y=Object.keys(n);return Object.keys(o).filter(v=>!y.includes(v))},[o,n]);return m.useMemo(()=>{const b=Array.from(new Set([...f,...p])).filter(C=>u[C]!=null).sort((C,x)=>{const w=c[C],S=c[x],$=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,T=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return $-T});return b.reduce((C,x,w)=>{let S={colDef:s,onClick:a};const $=c[x];if($){const T=be($,U8e);S=P({},S,T)}return l&&w!==b.length-1?[...C,[u[x],S],[lN,{}]]:[...C,[u[x],S]]},[])},[l,s,f,a,u,c,p])};function q8e(e){const{colDef:t,onClick:n}=e,r=Wt(),o=dt(),s=Xr(r).filter(u=>u.disableColumnMenu!==!0).length===1,l=m.useCallback(u=>{s||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,s]);return o.disableColumnSelector||t.hideable===!1?null:g.jsxs(Co,{onClick:l,disabled:s,children:[g.jsx(yc,{children:g.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),g.jsx(Wf,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function K8e(e){const{onClick:t}=e,n=Wt(),r=dt(),o=m.useCallback(i=>{t(i),n.current.showPreferences(Ea.columns)},[n,t]);return r.disableColumnSelector?null:g.jsxs(Co,{onClick:o,children:[g.jsx(yc,{children:g.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),g.jsx(Wf,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Y8e(e){return g.jsxs(m.Fragment,{children:[g.jsx(q8e,P({},e)),g.jsx(K8e,P({},e))]})}function X8e(e){const{colDef:t,onClick:n}=e,r=Wt(),o=dt(),i=m.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:g.jsxs(Co,{onClick:i,children:[g.jsx(yc,{children:g.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),g.jsx(Wf,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Q8e(e){var t;const{colDef:n,onClick:r}=e,o=Wt(),i=it(o,Di),a=dt(),s=m.useMemo(()=>{if(!n)return null;const f=i.find(p=>p.field===n.field);return f==null?void 0:f.sort},[n,i]),l=(t=n.sortingOrder)!=null?t:a.sortingOrder,u=m.useCallback(f=>{r(f);const p=f.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,p===s?null:p)},[o,n,r,s]);if(!n||!n.sortable||!l.some(f=>!!f))return null;const c=f=>{const p=o.current.getLocaleText(f);return typeof p=="function"?p(n):p};return g.jsxs(m.Fragment,{children:[l.includes("asc")&&s!=="asc"?g.jsxs(Co,{onClick:u,"data-value":"asc",children:[g.jsx(yc,{children:g.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),g.jsx(Wf,{children:c("columnMenuSortAsc")})]}):null,l.includes("desc")&&s!=="desc"?g.jsxs(Co,{onClick:u,"data-value":"desc",children:[g.jsx(yc,{children:g.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),g.jsx(Wf,{children:c("columnMenuSortDesc")})]}):null,l.includes(null)&&s!=null?g.jsxs(Co,{onClick:u,children:[g.jsx(yc,{}),g.jsx(Wf,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Z8e=["defaultSlots","defaultSlotProps","slots","slotProps"],J8e={columnMenuSortItem:Q8e,columnMenuFilterItem:X8e,columnMenuColumnsItem:Y8e},e9e={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},t9e=m.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=be(t,Z8e),l=G8e(P({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return g.jsx(V8e,P({ref:n},s,{children:l.map(([u,c],f)=>g.jsx(u,P({},c),f))}))}),n9e=m.forwardRef(function(t,n){return g.jsx(t9e,P({},t,{ref:n,defaultSlots:J8e,defaultSlotProps:e9e}))}),r9e=["className"],o9e=e=>{const{classes:t}=e;return Ge({root:["panelContent"]},Jt,t)},i9e=Ar("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function zV(e){const{className:t}=e,n=be(e,r9e),r=dt(),o=o9e(r);return g.jsx(i9e,P({className:ze(t,o.root),ownerState:r},n))}const a9e=["className"],s9e=e=>{const{classes:t}=e;return Ge({root:["panelFooter"]},Jt,t)},l9e=Ar("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function BV(e){const{className:t}=e,n=be(e,a9e),r=dt(),o=s9e(r);return g.jsx(l9e,P({className:ze(t,o.root),ownerState:r},n))}const u9e=["className"],c9e=e=>{const{classes:t}=e;return Ge({root:["panelHeader"]},Jt,t)},d9e=Ar("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function f9e(e){const{className:t}=e,n=be(e,u9e),r=dt(),o=c9e(r);return g.jsx(d9e,P({className:ze(t,o.root),ownerState:r},n))}const p9e=["className","slotProps"],h9e=e=>{const{classes:t}=e;return Ge({root:["panelWrapper"]},Jt,t)},m9e=ke("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),g9e=()=>!0,HV=m.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=be(t,p9e),a=dt(),s=h9e(a);return g.jsx(zj,P({open:!0,disableEnforceFocus:!0,isEnabled:g9e},o.TrapFocus,{children:g.jsx(m9e,P({ref:n,tabIndex:-1,className:ze(r,s.root),ownerState:a},i))}))}),v9e=!1,y9e=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],b9e=e=>{const{classes:t}=e;return Ge({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Jt,t)},x9e=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),w9e=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${lo.root}`]:{marginRight:e.spacing(.5)}})),C9e=ke(wo)({justifyContent:"flex-end"}),E8=new Intl.Collator,S9e=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function $9e(e){var t,n,r;const o=Wt(),i=m.useRef(null),a=it(o,us),s=it(o,_a),l=dt(),[u,c]=m.useState(""),f=b9e(l),{sort:p,searchPredicate:y=S9e,autoFocusSearchField:v=!0,disableHideAllButton:b=!1,disableShowAllButton:C=!1,getTogglableColumns:x}=e,w=be(e,y9e),S=m.useMemo(()=>{switch(p){case"asc":return[...a].sort((A,z)=>E8.compare(A.headerName||A.field,z.headerName||z.field));case"desc":return[...a].sort((A,z)=>-E8.compare(A.headerName||A.field,z.headerName||z.field));default:return a}},[a,p]),$=A=>{const{name:z}=A.target;o.current.setColumnVisibility(z,s[z]===!1)},T=m.useCallback(A=>{const z=_a(o),L=P({},z),O=x?x(a):null;return a.forEach(D=>{D.hideable&&(O==null||O.includes(D.field))&&(A?delete L[D.field]:L[D.field]=!1)}),o.current.setColumnVisibilityModel(L)},[o,a,x]),k=m.useCallback(A=>{c(A.target.value)},[]),M=m.useMemo(()=>{const A=x?x(S):null,z=A?S.filter(({field:L})=>A.includes(L)):S;return u?z.filter(L=>y(L,u.toLowerCase())):z},[S,u,y,x]),I=m.useRef(null);m.useEffect(()=>{v?i.current.focus():I.current&&typeof I.current.focus=="function"&&I.current.focus()},[v]);let N=!1;const E=A=>N===!1&&A.hideable!==!1?(N=!0,!0):!1;return g.jsxs(HV,P({},w,{children:[g.jsx(f9e,{children:g.jsx(l.slots.baseTextField,P({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:u,onChange:k,variant:"standard",fullWidth:!0},(t=l.slotProps)==null?void 0:t.baseTextField))}),g.jsx(zV,{children:g.jsx(x9e,{className:f.root,ownerState:l,children:M.map(A=>{var z;return g.jsxs(w9e,{className:f.columnsPanelRow,ownerState:l,children:[g.jsx(O_,{control:g.jsx(l.slots.baseSwitch,P({disabled:A.hideable===!1,checked:s[A.field]!==!1,onClick:$,name:A.field,size:"small",inputRef:E(A)?I:void 0},(z=l.slotProps)==null?void 0:z.baseSwitch)),label:A.headerName||A.field}),!l.disableColumnReorder&&v9e&&g.jsx(C9e,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:g.jsx(l.slots.columnReorderIcon,{})})]},A.field)})})}),C&&b?null:g.jsxs(BV,{children:[b?g.jsx("span",{}):g.jsx(l.slots.baseButton,P({onClick:()=>T(!1)},(n=l.slotProps)==null?void 0:n.baseButton,{disabled:b,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:g.jsx(l.slots.baseButton,P({onClick:()=>T(!0)},(r=l.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const _9e=["children","className","classes"],k9e=bt("MuiDataGrid",["panel","paper"]),P9e=ke(sd,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),M9e=ke(ad,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),T9e=m.forwardRef((e,t)=>{const{children:n,className:r}=e,o=be(e,_9e),i=Wt(),a=dt(),s=k9e,[l,u]=m.useState(!1),c=m.useCallback(()=>{i.current.hidePreferences()},[i]),f=m.useCallback(b=>{db(b.key)&&i.current.hidePreferences()},[i]),p=m.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[y,v]=m.useState(null);return m.useEffect(()=>{var b;const C=(b=i.current.rootElementRef)==null||(b=b.current)==null?void 0:b.querySelector(`.${le.columnHeaders}`);C&&v(C)},[i]),y?g.jsx(P9e,P({ref:t,placement:"bottom-start",className:ze(r,s.panel),ownerState:a,anchorEl:y,modifiers:p},o,{children:g.jsx(Nj,{mouseEvent:"onMouseUp",onClickAway:c,children:g.jsx(M9e,{className:s.paper,ownerState:a,elevation:8,onKeyDown:f,children:l&&n})})})):null}),E9e=m.forwardRef(function(t,n){var r,o,i;const a=Wt(),s=it(a,us),l=dt(),u=it(a,Jc),c=a.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:Ea.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}))}),I9e=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],R9e=["InputComponentProps"],O9e=e=>{const{classes:t}=e;return Ge({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Jt,t)},A9e=ke("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),F9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),L9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),D9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),j9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),N9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),z9e=e=>{switch(e){case zo.And:return"filterPanelOperatorAnd";case zo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Qh=e=>e.headerName||e.field,I8=new Intl.Collator,B9e=m.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p;const{item:y,hasMultipleFilters:v,deleteFilter:b,applyFilterChanges:C,multiFilterOperator:x,showMultiFilterOperators:w,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:$,focusElementRef:T,logicOperators:k=[zo.And,zo.Or],columnsSort:M,filterColumns:I,deleteIconProps:N={},logicOperatorInputProps:E={},operatorInputProps:A={},columnInputProps:z={},valueInputProps:L={}}=t,O=be(t,I9e),D=Wt(),H=it(D,iV),B=it(D,qr),j=ln(),W=ln(),U=ln(),Z=ln(),Y=dt(),se=O9e(Y),Q=m.useRef(null),ne=m.useRef(null),re=v&&k.length>0,ge=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},fe=(i=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,Se=((a=Y.slotProps)==null?void 0:a.baseInputLabel)||{},de=((s=Y.slotProps)==null?void 0:s.baseSelectOption)||{},{InputComponentProps:ie}=L,Pe=be(L,R9e),$e=m.useMemo(()=>{if(I===void 0||typeof I!="function")return H;const K=I({field:y.field,columns:H,currentFilters:(B==null?void 0:B.items)||[]});return H.filter(ee=>K.includes(ee.field))},[I,B==null?void 0:B.items,H,y.field]),me=m.useMemo(()=>{switch(M){case"asc":return $e.sort((K,ee)=>I8.compare(Qh(K),Qh(ee)));case"desc":return $e.sort((K,ee)=>-I8.compare(Qh(K),Qh(ee)));default:return $e}},[$e,M]),ue=y.field?D.current.getColumn(y.field):null,ce=m.useMemo(()=>{var K;return!y.operator||!ue?null:(K=ue.filterOperators)==null?void 0:K.find(ee=>ee.value===y.operator)},[y,ue]),Te=m.useCallback(K=>{const ee=K.target.value,pe=D.current.getColumn(ee);if(pe.field===ue.field)return;const ye=pe.filterOperators.find(Ae=>Ae.value===y.operator)||pe.filterOperators[0],De=!ye.InputComponent||ye.InputComponent!==(ce==null?void 0:ce.InputComponent);C(P({},y,{field:ee,operator:ye.value,value:De?void 0:y.value}))},[D,C,y,ue,ce]),Le=m.useCallback(K=>{const ee=K.target.value,pe=ue==null?void 0:ue.filterOperators.find(De=>De.value===ee),ye=!(pe!=null&&pe.InputComponent)||(pe==null?void 0:pe.InputComponent)!==(ce==null?void 0:ce.InputComponent);C(P({},y,{operator:ee,value:ye?void 0:y.value}))},[C,y,ue,ce]),Re=m.useCallback(K=>{const ee=K.target.value===zo.And.toString()?zo.And:zo.Or;$(ee)},[$]),Oe=()=>{Y.disableMultipleColumnsFiltering?y.value===void 0?b(y):C(P({},y,{value:void 0})):b(y)};return m.useImperativeHandle(T,()=>({focus:()=>{if(ce!=null&&ce.InputComponent){var K;Q==null||(K=Q.current)==null||K.focus()}else ne.current.focus()}}),[ce]),g.jsxs(A9e,P({ref:n,className:se.root,"data-id":y.id,ownerState:Y},O,{children:[g.jsx(F9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,N,{className:ze(se.deleteIcon,ge.className,N.className),ownerState:Y,children:g.jsx(Y.slots.baseIconButton,P({"aria-label":D.current.getLocaleText("filterPanelDeleteIconLabel"),title:D.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Oe,size:"small"},(l=Y.slotProps)==null?void 0:l.baseIconButton,{children:g.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),g.jsx(L9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,E,{sx:P({display:re?"flex":"none",visibility:w?"visible":"hidden"},ge.sx||{},E.sx||{}),className:ze(se.logicOperatorInput,ge.className,E.className),ownerState:Y,children:g.jsx(Y.slots.baseSelect,P({inputProps:{"aria-label":D.current.getLocaleText("filterPanelLogicOperator")},value:x,onChange:Re,disabled:!!S||k.length===1,native:fe},(u=Y.slotProps)==null?void 0:u.baseSelect,{children:k.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.toString(),value:K.toString()}),D.current.getLocaleText(z9e(K))))}))})),g.jsxs(D9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,z,{className:ze(se.columnInput,ge.className,z.className),ownerState:Y,children:[g.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:j,id:W,children:D.current.getLocaleText("filterPanelColumns")})),g.jsx(Y.slots.baseSelect,P({labelId:W,id:j,label:D.current.getLocaleText("filterPanelColumns"),value:y.field||"",onChange:Te,native:fe},(c=Y.slotProps)==null?void 0:c.baseSelect,{children:me.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.field,value:K.field}),Qh(K)))}))]})),g.jsxs(j9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,A,{className:ze(se.operatorInput,ge.className,A.className),ownerState:Y,children:[g.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:U,id:Z,children:D.current.getLocaleText("filterPanelOperator")})),g.jsx(Y.slots.baseSelect,P({labelId:Z,label:D.current.getLocaleText("filterPanelOperator"),id:U,value:y.operator,onChange:Le,native:fe,inputRef:ne},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:ue==null||(p=ue.filterOperators)==null?void 0:p.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.value,value:K.value}),K.label||D.current.getLocaleText(`filterOperator${je(K.value)}`)))}))]})),g.jsx(N9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,Pe,{className:ze(se.valueInput,ge.className,Pe.className),ownerState:Y,children:ce!=null&&ce.InputComponent?g.jsx(ce.InputComponent,P({apiRef:D,item:y,applyValue:C,focusElementRef:Q},ce.InputComponentProps,ie)):null}))]}))});class LT{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new LT}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function DT(){const e=CT(LT.create).current;return rV(e.disposeEffect),e}const H9e=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Ka(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,tabIndex:l,disabled:u,clearButton:c,InputProps:f}=e,p=be(e,H9e),y=DT(),[v,b]=m.useState((t=r.value)!=null?t:""),[C,x]=m.useState(!1),w=ln(),S=dt(),$=m.useCallback(T=>{const{value:k}=T.target;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{const M=P({},r,{value:k,fromInput:w});o(M),x(!1)})},[w,o,r,S.filterDebounceMs,y]);return m.useEffect(()=>{if(r.fromInput!==w){var k;b(String((k=r.value)!=null?k:""))}},[w,r]),g.jsx(S.slots.baseTextField,P({id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputProps:P({},C||c?{endAdornment:C?g.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},f,{inputProps:P({tabIndex:l},f==null?void 0:f.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const W9e=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function tf(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,InputProps:l,clearButton:u,tabIndex:c,disabled:f}=e,p=be(e,W9e),y=DT(),[v,b]=m.useState((t=r.value)!=null?t:""),[C,x]=m.useState(!1),w=ln(),S=dt(),$=m.useCallback(T=>{const k=T.target.value;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{o(P({},r,{value:k})),x(!1)})},[o,r,S.filterDebounceMs,y]);return m.useEffect(()=>{var T;const k=(T=r.value)!=null?T:"";b(String(k))},[r.value]),g.jsx(S.slots.baseTextField,P({fullWidth:!0,id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:P({},C||u?{endAdornment:C?g.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:f},l,{inputProps:P({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const V9e=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],U9e=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:a})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(l=>{const u=o(l),c=r(l);return m.createElement(n,P({},a,{native:i,key:u,value:u}),c)}),G9e=ke("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function R8(e){var t,n,r,o,i,a,s,l;const{item:u,applyValue:c,type:f,apiRef:p,focusElementRef:y,getOptionLabel:v,getOptionValue:b,placeholder:C,tabIndex:x,label:w,clearButton:S}=e,$=be(e,V9e),[T,k]=m.useState((t=u.value)!=null?t:""),M=ln(),I=ln(),N=dt(),E=(n=(r=N.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let A=null;if(u.field){const B=p.current.getColumn(u.field);Mc(B)&&(A=B)}const z=b||((o=A)==null?void 0:o.getOptionValue),L=v||((i=A)==null?void 0:i.getOptionLabel),O=m.useMemo(()=>{if(A)return typeof A.valueOptions=="function"?A.valueOptions({field:A.field}):A.valueOptions},[A]),D=m.useCallback(B=>{let j=B.target.value;j=Pk(j,O,z),k(String(j)),c(P({},u,{value:j}))},[O,z,c,u]);if(m.useEffect(()=>{var B;let j;if(O!==void 0){if(j=Pk(u.value,O,z),j!==u.value){c(P({},u,{value:j}));return}}else j=u.value;j=(B=j)!=null?B:"",k(String(j))},[u,O,c,z]),!Mc(A)||!Mc(A))return null;const H=w??p.current.getLocaleText("filterPanelInputLabel");return g.jsxs(G9e,{children:[g.jsxs(N.slots.baseFormControl,{children:[g.jsx(N.slots.baseInputLabel,P({},(a=N.slotProps)==null?void 0:a.baseInputLabel,{id:I,htmlFor:M,shrink:!0,variant:"standard",children:H})),g.jsx(N.slots.baseSelect,P({id:M,label:H,labelId:I,value:T,onChange:D,variant:"standard",type:f||"text",inputProps:{tabIndex:x,ref:y,placeholder:C??p.current.getLocaleText("filterPanelInputPlaceholder")},native:E},$,(s=N.slotProps)==null?void 0:s.baseSelect,{children:U9e({column:A,OptionComponent:N.slots.baseSelectOption,getOptionLabel:L,getOptionValue:z,isSelectNative:E,baseSelectOptionProps:(l=N.slotProps)==null?void 0:l.baseSelectOption})}))]}),S]})}const q9e=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],K9e=ke("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Y9e(e){var t,n,r,o;const{item:i,applyValue:a,apiRef:s,focusElementRef:l,clearButton:u,tabIndex:c,label:f}=e,p=be(e,q9e),[y,v]=m.useState(i.value||""),b=dt(),C=ln(),x=ln(),w=((t=b.slotProps)==null?void 0:t.baseSelect)||{},S=(n=w.native)!=null?n:!0,$=((r=b.slotProps)==null?void 0:r.baseSelectOption)||{},T=m.useCallback(M=>{const I=M.target.value;v(I),a(P({},i,{value:I}))},[a,i]);m.useEffect(()=>{v(i.value||"")},[i.value]);const k=f??s.current.getLocaleText("filterPanelInputLabel");return g.jsxs(K9e,{children:[g.jsxs(b.slots.baseFormControl,{fullWidth:!0,children:[g.jsx(b.slots.baseInputLabel,P({},(o=b.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:k})),g.jsxs(b.slots.baseSelect,P({labelId:C,id:x,label:k,value:y,onChange:T,variant:"standard",native:S,displayEmpty:!0,inputProps:{ref:l,tabIndex:c}},p,w,{children:[g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"",children:s.current.getLocaleText("filterValueAny")})),g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"true",children:s.current.getLocaleText("filterValueTrue")})),g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const X9e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],O8=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Q9e=m.forwardRef(function(t,n){var r,o;const i=Wt(),a=dt(),s=it(i,qr),l=it(i,iV),u=m.useRef(null),c=m.useRef(null),{logicOperators:f=[zo.And,zo.Or],columnsSort:p,filterFormProps:y,getColumnForNewFilter:v,disableAddFilterButton:b=!1,disableRemoveAllButton:C=!1}=t,x=be(t,X9e),w=i.current.upsertFilterItem,S=m.useCallback(A=>{i.current.setFilterLogicOperator(A)},[i]),$=m.useCallback(()=>{let A;if(v&&typeof v=="function"){const z=v({currentFilters:(s==null?void 0:s.items)||[],columns:l});if(z===null)return null;A=l.find(({field:L})=>L===z)}else A=l.find(z=>{var L;return(L=z.filterOperators)==null?void 0:L.length});return A?O8(A):null},[s==null?void 0:s.items,l,v]),T=m.useCallback(()=>{if(v===void 0||typeof v!="function")return $();const A=s.items.length?s.items:[$()].filter(Boolean),z=v({currentFilters:A,columns:l});if(z===null)return null;const L=l.find(({field:O})=>O===z);return L?O8(L):null},[s.items,l,v,$]),k=m.useMemo(()=>s.items.length?s.items:(c.current||(c.current=$()),c.current?[c.current]:[]),[s.items,$]),M=k.length>1,I=()=>{const A=T();A&&i.current.upsertFilterItems([...k,A])},N=m.useCallback(A=>{const z=k.length===1;i.current.deleteFilterItem(A),z&&i.current.hideFilterPanel()},[i,k.length]),E=()=>{k.length===1&&k[0].value===void 0&&(i.current.deleteFilterItem(k[0]),i.current.hideFilterPanel()),i.current.setFilterModel(P({},s,{items:[]}))};return m.useEffect(()=>{f.length>0&&s.logicOperator&&!f.includes(s.logicOperator)&&S(f[0])},[f,S,s.logicOperator]),m.useEffect(()=>{k.length>0&&u.current.focus()},[k.length]),g.jsxs(HV,P({ref:n},x,{children:[g.jsx(zV,{children:k.map((A,z)=>g.jsx(B9e,P({item:A,applyFilterChanges:w,deleteFilter:N,hasMultipleFilters:M,showMultiFilterOperators:z>0,multiFilterOperator:s.logicOperator,disableMultiFilterOperator:z!==1,applyMultiFilterOperatorChanges:S,focusElementRef:z===k.length-1?u:null,logicOperators:f,columnsSort:p},y),A.id==null?z:A.id))}),!a.disableMultipleColumnsFiltering&&!(b&&C)?g.jsxs(BV,{children:[b?g.jsx("span",{}):g.jsx(a.slots.baseButton,P({onClick:I,startIcon:g.jsx(a.slots.filterPanelAddIcon,{})},(r=a.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),C?null:g.jsx(a.slots.baseButton,P({onClick:E,startIcon:g.jsx(a.slots.filterPanelRemoveAllIcon,{})},(o=a.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),Z9e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function WV(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:s,helperText:l,size:u,variant:c}=e,f=be(e,Z9e),p={color:a,error:s,helperText:l,size:u,variant:c},[y,v]=m.useState(t.value||[]),b=ln(),C=dt();m.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];v(S.map(String))},[t.value]);const x=m.useCallback((w,S)=>{v(S.map(String)),n(P({},t,{value:[...S]}))},[n,t]);return g.jsx(rN,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,S)=>{const{inputValue:$}=S;return $==null||$===""?[]:[$]},id:b,value:y,onChange:x,renderTags:(w,S)=>w.map(($,T)=>g.jsx(C.slots.baseChip,P({variant:"outlined",size:"small",label:$},S({index:T})))),renderInput:w=>{var S;return g.jsx(C.slots.baseTextField,P({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},w.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},p,(S=C.slotProps)==null?void 0:S.baseTextField))}},f))}const J9e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],eLe=Zj();function tLe(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:a,color:s,error:l,helperText:u,size:c,variant:f="standard",getOptionLabel:p,getOptionValue:y}=e,v=be(e,J9e),b={color:s,error:l,helperText:u,size:c,variant:f},C=ln(),x=dt();let w=null;if(r.field){const E=i.current.getColumn(r.field);Mc(E)&&(w=E)}const S=y||((t=w)==null?void 0:t.getOptionValue),$=p||((n=w)==null?void 0:n.getOptionLabel),T=m.useCallback((E,A)=>S(E)===S(A),[S]),k=m.useMemo(()=>{var E;return(E=w)!=null&&E.valueOptions?typeof w.valueOptions=="function"?w.valueOptions({field:w.field}):w.valueOptions:[]},[w]),M=m.useMemo(()=>k==null?void 0:k.map(S),[k,S]),I=m.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(A=>M==null?void 0:M.findIndex(z=>z===A)).filter(A=>A>=0).map(A=>k[A]):r.value:[],[r.value,k,M]);m.useEffect(()=>{(!Array.isArray(r.value)||I.length!==r.value.length)&&o(P({},r,{value:I.map(S)}))},[r,I,o,S]);const N=m.useCallback((E,A)=>{o(P({},r,{value:A.map(S)}))},[o,r,S]);return g.jsx(rN,P({multiple:!0,options:k,isOptionEqualToValue:T,filterOptions:eLe,id:C,value:I,onChange:N,getOptionLabel:$,renderTags:(E,A)=>E.map((z,L)=>g.jsx(x.slots.baseChip,P({variant:"outlined",size:"small",label:$(z)},A({index:L})))),renderInput:E=>{var A;return g.jsx(x.slots.baseTextField,P({},E,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},E.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},b,(A=x.slotProps)==null?void 0:A.baseTextField))}},v))}const nLe=["onClick"],rLe=m.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,nLe),a=ln(),s=ln(),l=Wt(),u=dt(),c=it(l,Jc),f=y=>{c.open&&c.openedPanelValue===Ea.columns?l.current.hidePreferences():l.current.showPreferences(Ea.columns,s,a),o==null||o(y)};if(u.disableColumnSelector)return null;const p=c.open&&c.panelId===s;return g.jsx(u.slots.baseButton,P({ref:n,id:a,size:"small","aria-label":l.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?s:void 0,startIcon:g.jsx(u.slots.columnSelectorIcon,{})},i,{onClick:f},(r=u.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("toolbarColumns")}))}),oLe=["onClick"],iLe=m.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,oLe),a=Wt(),s=dt(),l=it(a,hV),u=ln(),c=ln(),[f,p]=m.useState(!1),y=m.useRef(null),v=on(n,y),b=[{icon:g.jsx(s.slots.densityCompactIcon,{}),label:a.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:g.jsx(s.slots.densityStandardIcon,{}),label:a.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:g.jsx(s.slots.densityComfortableIcon,{}),label:a.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],C=m.useMemo(()=>{switch(l){case"compact":return g.jsx(s.slots.densityCompactIcon,{});case"comfortable":return g.jsx(s.slots.densityComfortableIcon,{});default:return g.jsx(s.slots.densityStandardIcon,{})}},[l,s]),x=k=>{p(M=>!M),o==null||o(k)},w=()=>{p(!1)},S=k=>{a.current.setDensity(k),p(!1)},$=k=>{d2(k.key)&&k.preventDefault(),IT(k.key)&&p(!1)};if(s.disableDensitySelector)return null;const T=b.map((k,M)=>g.jsxs(Co,{onClick:()=>S(k.value),selected:k.value===l,children:[g.jsx(yc,{children:k.icon}),k.label]},M));return g.jsxs(m.Fragment,{children:[g.jsx(s.slots.baseButton,P({ref:v,size:"small",startIcon:C,"aria-label":a.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?c:void 0,id:u},i,{onClick:x},(r=s.slotProps)==null?void 0:r.baseButton,{children:a.current.getLocaleText("toolbarDensity")})),g.jsx(f2,{open:f,target:y.current,onClose:w,position:"bottom-start",children:g.jsx(a0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:$,autoFocusItem:f,children:T})})]})}),aLe=["componentsProps"],sLe=e=>{const{classes:t}=e;return Ge({root:["toolbarFilterList"]},Jt,t)},lLe=ke("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,t)=>t.toolbarFilterList})(({theme:e})=>({margin:e.spacing(1,1,.5),padding:e.spacing(0,1)})),uLe=m.forwardRef(function(t,n){var r,o;const{componentsProps:i={}}=t,a=be(t,aLe),s=i.button||{},l=Wt(),u=dt(),c=it(l,fV),f=it(l,vd),p=it(l,Jc),y=sLe(u),v=ln(),b=ln(),C=m.useMemo(()=>{if(p.open)return l.current.getLocaleText("toolbarFiltersTooltipHide");if(c.length===0)return l.current.getLocaleText("toolbarFiltersTooltipShow");const S=T=>f[T.field].filterOperators.find(k=>k.value===T.operator).label||l.current.getLocaleText(`filterOperator${je(T.operator)}`).toString(),$=T=>{const{getValueAsString:k}=f[T.field].filterOperators.find(M=>M.value===T.operator);return k?k(T.value):T.value};return g.jsxs("div",{children:[l.current.getLocaleText("toolbarFiltersTooltipActive")(c.length),g.jsx(lLe,{className:y.root,ownerState:u,children:c.map((T,k)=>P({},f[T.field]&&g.jsx("li",{children:`${f[T.field].headerName||T.field} + ))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${le.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${le["root--disableUserSelection"]} .${le.cell}`]:{userSelect:"none"},[`& .${le.row}:not(.${le["row--dynamicHeight"]}) > .${le.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${le.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${le.cell}.${le["cell--selectionMode"]}`]:{cursor:"default"},[`& .${le.cell}.${le["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${le["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${le["row--editing"]} .${le.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${le.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${le.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${le.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${le.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${le.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${le.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${le.withBorderColor}`]:{borderColor:t},[`& .${le["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${le["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${le["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${le.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${le.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${le["columnHeader--dragging"]}, & .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${le.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${le.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${le.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),iFe=["children","className"],aFe=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${je(n)}`,"withBorderColor"]};return qe(o,Jt,r)},sFe=m.forwardRef(function(t,n){var r;const o=dt(),{children:i,className:a}=t,s=be(t,iFe),l=Mu(),u=it(l,pV),c=m.useRef(null),f=on(c,n),p=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:aV,y=typeof p=="function"?p():null,v=P({},o,{density:u}),b=aFe(v);l.current.register("public",{rootElementRef:c});const[C,x]=m.useState(!1);return pn(()=>{x(!0)},[]),C?g.jsx(oFe,P({ref:f,className:ze(a,b.root),ownerState:v},y,s,{children:i})):null}),lFe=["className"],uFe=e=>{const{classes:t}=e;return qe({root:["footerContainer","withBorderColor"]},Jt,t)},cFe=Ar("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),dFe=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,lFe),i=dt(),a=uFe(i);return g.jsx(cFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),fFe=["className"],pFe=e=>{const{classes:t}=e;return qe({root:["overlay"]},Jt,t)},hFe=Ar("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),IT=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,fFe),i=dt(),a=pFe(i);return g.jsx(hFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),mFe=["className","children"],gFe=e=>{const{classes:t}=e;return qe({root:["toolbarContainer"]},Jt,t)},vFe=Ar("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),yFe=m.forwardRef(function(t,n){const{className:r,children:o}=t,i=be(t,mFe),a=dt(),s=gFe(a);return o?g.jsx(vFe,P({ref:n,className:ze(r,s.root),ownerState:a},i,{children:o})):null}),bFe=["className"],xFe=e=>{const{classes:t}=e;return qe({root:["iconButtonContainer"]},Jt,t)},wFe=Ar("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),SV=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,bFe),i=dt(),a=xFe(i);return g.jsx(wFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),CFe=e=>{const{classes:t}=e;return qe({icon:["sortIcon"]},Jt,t)};function SFe(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?g.jsx(o,P({fontSize:"small",className:n},i)):null}function $Fe(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=Wt(),a=dt(),s=P({},e,{classes:a.classes}),l=CFe(s),u=SFe(a.slots,n,l.icon,o);if(!u)return null;const c=g.jsx(a.slots.baseIconButton,P({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=a.slotProps)==null?void 0:t.baseIconButton,{children:u}));return g.jsxs(SV,{children:[r!=null&&g.jsx(OM,{badgeContent:r,color:"default",children:c}),r==null&&c]})}const _Fe=m.memo($Fe),kFe=e=>{const{classes:t,open:n}=e;return qe({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Jt,t)},PFe=m.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:s}=e,l=Wt(),u=dt(),c=P({},e,{classes:u.classes}),f=kFe(c),p=m.useCallback(y=>{y.preventDefault(),y.stopPropagation(),l.current.toggleColumnMenu(r.field)},[l,r.field]);return g.jsx("div",{className:f.root,children:g.jsx(u.slots.baseTooltip,P({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:g.jsx(u.slots.baseIconButton,P({ref:s,tabIndex:-1,className:f.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:a},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:g.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function MFe({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=Wt(),u=l.current.getColumn(o),c=Dn(f=>{f&&(f.stopPropagation(),a!=null&&a.contains(f.target))||l.current.hideColumnMenu()});return!a||!u?null:g.jsx(d2,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:a,onClose:c,onExited:s,children:g.jsx(n,P({colDef:u,hideMenu:c,open:i,id:e,labelledby:t},r))})}const TFe=["className"],EFe=e=>{const{classes:t}=e;return qe({root:["columnHeaderTitle"]},Jt,t)},IFe=Ar("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),RFe=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,TFe),i=dt(),a=EFe(i);return g.jsx(IFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))});function OFe(e){var t;const{label:n,description:r}=e,o=dt(),i=m.useRef(null),[a,s]=m.useState(""),l=m.useCallback(()=>{if(!r&&i!=null&&i.current){const u=i6e(i.current);s(u?n:"")}},[r,n]);return g.jsx(o.slots.baseTooltip,P({title:r||a},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:g.jsx(RFe,{onMouseOver:l,ref:i,children:n})}))}const AFe=["resizable","resizing","height","side"];var $V=function(e){return e.Left="left",e.Right="right",e}($V||{});const FFe=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${je(o)}`],icon:["iconSeparator"]};return qe(i,Jt,r)};function LFe(e){const{height:t,side:n=$V.Right}=e,r=be(e,AFe),o=dt(),i=P({},e,{side:n,classes:o.classes}),a=FFe(i),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return g.jsx("div",P({className:a.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:s,children:g.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const DFe=m.memo(LFe),jFe=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],_V=m.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:a,isResizing:s,sortDirection:l,hasFocus:u,tabIndex:c,separatorSide:f,isDraggable:p,headerComponent:y,description:v,width:b,columnMenuIconButton:C=null,columnMenu:x=null,columnTitleIconButtons:w=null,headerClassName:S,label:$,resizable:T,draggableContainerProps:k,columnHeaderSeparatorProps:M}=t,I=be(t,jFe),N=Mu(),E=dt(),A=m.useRef(null),[z,L]=m.useState(o),O=on(A,n);let D="none";return l!=null&&(D=l==="asc"?"ascending":"descending"),m.useEffect(()=>{z||L(o)},[z,o]),m.useLayoutEffect(()=>{const H=N.current.state.columnMenu;if(u&&!H.open){const j=A.current.querySelector('[tabindex="0"]')||A.current;j==null||j.focus(),N.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[N,u]),g.jsxs("div",P({ref:O,className:ze(r.root,S),style:{height:a,width:b,minWidth:b,maxWidth:b},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":D,"aria-label":y==null?$:void 0},I,{children:[g.jsxs("div",P({className:r.draggableContainer,draggable:p,role:"presentation"},k,{children:[g.jsxs("div",{className:r.titleContainer,role:"presentation",children:[g.jsx("div",{className:r.titleContainerContent,children:y!==void 0?y:g.jsx(OFe,{label:$,description:v,columnWidth:b})}),w]}),C]})),g.jsx(DFe,P({resizable:!E.disableColumnResize&&!!T,resizing:s,height:a,side:f},M)),x]}))}),NFe=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:a}=e,s=o!=null,l=a!=null&&a>0,u=t.type==="number",c={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",s&&"columnHeader--sorted",l&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return qe(c,Jt,n)};function zFe(e){var t,n,r,o;const{colDef:i,columnMenuOpen:a,colIndex:s,headerHeight:l,isResizing:u,sortDirection:c,sortIndex:f,filterItemsCounter:p,hasFocus:y,tabIndex:v,disableReorder:b,separatorSide:C}=e,x=Mu(),w=dt(),S=m.useRef(null),$=ln(),T=ln(),k=m.useRef(null),[M,I]=m.useState(a),N=m.useMemo(()=>!w.disableColumnReorder&&!b&&!i.disableReorder,[w.disableColumnReorder,b,i.disableReorder]);let E;i.renderHeader&&(E=i.renderHeader(x.current.getColumnHeaderParams(i.field)));const A=P({},e,{classes:w.classes,showRightBorder:w.showColumnVerticalBorder}),z=NFe(A),L=m.useCallback(Q=>ne=>{ne.currentTarget.contains(ne.target)&&x.current.publishEvent(Q,x.current.getColumnHeaderParams(i.field),ne)},[x,i.field]),O=m.useMemo(()=>({onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),D=m.useMemo(()=>N?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[N,L]),H=m.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);m.useEffect(()=>{M||I(a)},[M,a]);const B=m.useCallback(()=>{I(!1)},[]),j=!w.disableColumnMenu&&!i.disableColumnMenu&&g.jsx(PFe,{colDef:i,columnMenuId:$,columnMenuButtonId:T,open:M,iconButtonRef:k}),W=g.jsx(MFe,{columnMenuId:$,columnMenuButtonId:T,field:i.field,open:a,target:k.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(t=w.slotProps)==null?void 0:t.columnMenu,onExited:B}),U=(n=i.sortingOrder)!=null?n:w.sortingOrder,Z=g.jsxs(m.Fragment,{children:[!w.disableColumnFilter&&g.jsx(w.slots.columnHeaderFilterIconButton,P({field:i.field,counter:p},(r=w.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&g.jsx(_Fe,{direction:c,index:f,sortingOrder:U})]});m.useLayoutEffect(()=>{const Q=x.current.state.columnMenu;if(y&&!Q.open){const re=S.current.querySelector('[tabindex="0"]')||S.current;re==null||re.focus(),x.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[x,y]);const Y=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,se=(o=i.headerName)!=null?o:i.field;return g.jsx(_V,P({ref:S,classes:z,columnMenuOpen:a,colIndex:s,height:l,isResizing:u,sortDirection:c,hasFocus:y,tabIndex:v,separatorSide:C,isDraggable:N,headerComponent:E,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:j,columnTitleIconButtons:Z,headerClassName:Y,label:se,resizable:!w.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:W,draggableContainerProps:D,columnHeaderSeparatorProps:H},O))}const Lg=()=>({items:[],logicOperator:zo.And,quickFilterValues:[],quickFilterLogicOperator:zo.And}),b8=1e3;class BFe{constructor(t=b8){this.timeouts=new Map,this.cleanupTimeout=b8,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class HFe{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var cs=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(cs||{});class WFe{}function VFe(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new HFe:new BFe);const[s]=m.useState(new WFe),l=m.useRef(null),u=m.useRef();u.current=i;const c=m.useRef(null);if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,c.current=null},c.current)}else!u.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));m.useEffect(()=>{if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o,a])}}const UFe={registry:null},vt=VFe(UFe),GFe={isFirst:!0};function Yn(e,t,n){vt(e,t,n,GFe)}function ho(e,t){const n=m.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function qFe(e){return typeof e=="number"&&!Number.isNaN(e)}function kV(e){return typeof e=="function"}function RT(e){return typeof e=="object"&&e!==null}function KFe(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function N1(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Mp=(e,t,n)=>Math.max(t,Math.min(n,e));function nl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function XFe(e,t,n){const r=YFe(e);return()=>t+(n-t)*r()}function PV(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const QFe=(e,t,n,r,o)=>{const i=ho(e,"useNativeEventListener"),[a,s]=m.useState(!1),l=m.useRef(r),u=m.useCallback(c=>l.current&&l.current(c),[]);m.useEffect(()=>{l.current=r},[r]),m.useEffect(()=>{let c;if(kV(t)?c=t():c=t&&t.current?t.current:null,c&&n&&!a){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o);const f=c;s(!0);const p=()=>{i.debug(`Clearing native ${n} event`),f.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",p)}},[t,u,n,a,i,o,e])},S0=e=>{const t=m.useRef(!0);t.current&&(t.current=!1,e())},ZFe=100,JFe=e=>e?0:100,MV=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;$s(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const TV=e=>({page:0,pageSize:e?0:100}),e8e=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),EV=(e,t)=>{if(t===cs.DataGrid&&e>ZFe)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`))},IV=e=>e.pagination,zi=Vt(IV,e=>e.paginationModel),t8e=Vt(zi,e=>e.page),n8e=Vt(zi,e=>e.pageSize);Vt(zi,a2,(e,t)=>MV(t,e.pageSize));const OT=Jn(zi,wa,i2,Tu,uV,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),s=Math.min(a+e.pageSize-1,i-1);if(a===-1||s===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const l=o[a],u=s-a+1,c=r.findIndex(v=>v.id===l.id);let f=c,p=0;for(;f0)&&(f+=1),b===0&&(p+=1))}return{firstRowIndex:c,lastRowIndex:f-1}}),r8e=Jn(Tu,OT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),RV=Jn(Rm,OT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Zc=e=>e.preferencePanel;var Ta=function(e){return e.filters="filters",e.columns="columns",e}(Ta||{});const Dg=e=>e.rowsMeta,ji=e=>e.rowSelection,o8e=Vt(ji,e=>e.length),i8e=Jn(ji,Gl,(e,t)=>new Map(e.map(n=>[n,t[n]]))),fb=Jn(ji,e=>e.reduce((t,n)=>(t[n]=n,t),{})),a8e=$s(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),OV=(e,t)=>t&&e.length>1?(a8e(),[e[0]]):e,x8=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:OV(e,t)})}),s8e=e=>e==="desc",l8e=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=s8e(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},u8e=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],s=n.params[i];return r=o.comparator(a.value,s.value,a,s),r},0),c8e=(e,t)=>{const n=e.map(r=>l8e(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>u8e(n,o,i)).map(o=>o.node.id)},w8=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},AT=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,d8e=new Intl.Collator,f8e=(e,t)=>{const n=AT(e,t);return n!==null?n:typeof e=="string"?d8e.compare(e.toString(),t.toString()):e-t},AV=(e,t)=>{const n=AT(e,t);return n!==null?n:Number(e)-Number(t)},FV=(e,t)=>{const n=AT(e,t);return n!==null?n:e>t?1:ee.headerFiltering,p8e=Vt(LV,e=>e.editing),h8e=Vt(LV,e=>e.menuOpen),m8e=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return P({},e,{virtualization:n})};function g8e(e,t){const n=i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabled:i})}))};Yt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabledForColumns:i})}))}},"public"),m.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const DV=e=>e.virtualization,v8e=Vt(DV,e=>e.enabled),jV=Vt(DV,e=>e.enabledForColumns),y8e=e=>{const{classes:t}=e;return qe({icon:["filterIcon"]},Jt,t)};function b8e(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=Wt(),s=dt(),l=P({},e,{classes:s.classes}),u=y8e(l),c=it(a,Zc),f=ln(),p=ln(),y=m.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:x,openedPanelValue:w}=Zc(a.current.state);x&&w===Ta.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,p,f),i&&i(a.current.getColumnHeaderParams(o),C)},[a,o,i,p,f]);if(!r)return null;const v=c.open&&c.labelId===f,b=g.jsx(s.slots.baseIconButton,P({id:f,onClick:y,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?p:void 0},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(s.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return g.jsx(s.slots.baseTooltip,P({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=s.slotProps)==null?void 0:n.baseTooltip,{children:g.jsxs(SV,{children:[r>1&&g.jsx(OM,{badgeContent:r,color:"default",children:b}),r===1&&b]})}))}const x8e=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],w8e=e=>{const{classes:t}=e;return qe({root:["checkboxInput"]},Jt,t)},C8e=m.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:s,hasFocus:l,tabIndex:u}=t,c=be(t,x8e),f=Wt(),p=dt(),y={classes:p.classes},v=w8e(y),b=m.useRef(null),C=m.useRef(null),x=on(b,n),w=f.current.getCellElement(i,o),S=M=>{const I={value:M.target.checked,id:i};f.current.publishEvent("rowSelectionCheckboxChange",I,M)};m.useLayoutEffect(()=>{u===0&&w&&(w.tabIndex=-1)},[w,u]),m.useEffect(()=>{if(l){var M;const I=(M=b.current)==null?void 0:M.querySelector("input");I==null||I.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[l]);const $=m.useCallback(M=>{wV(M.key)&&M.stopPropagation()},[]);if(s.type==="footer"||s.type==="pinnedRow")return null;const T=f.current.isRowSelectable(i),k=f.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return g.jsx(p.slots.baseCheckbox,P({ref:x,tabIndex:u,checked:a,onChange:S,className:v.root,inputProps:{"aria-label":k},onKeyDown:$,disabled:!T,touchRippleRef:C},(r=p.slotProps)==null?void 0:r.baseCheckbox,c))}),S8e=C8e,$8e=["field","colDef"],_8e=e=>{const{classes:t}=e;return qe({root:["checkboxInput"]},Jt,t)},k8e=m.forwardRef(function(t,n){var r;const o=be(t,$8e),[,i]=m.useState(!1),a=Wt(),s=dt(),l={classes:s.classes},u=_8e(l),c=it(a,fV),f=it(a,ji),p=it(a,Rm),y=it(a,RV),v=m.useMemo(()=>typeof s.isRowSelectable!="function"?f:f.filter(I=>a.current.getRow(I)?s.isRowSelectable(a.current.getRowParams(I)):!1),[a,s.isRowSelectable,f]),b=m.useMemo(()=>(!s.pagination||!s.checkboxSelectionVisibleOnly?p:y).reduce((N,E)=>(N[E]=!0,N),{}),[s.pagination,s.checkboxSelectionVisibleOnly,y,p]),C=m.useMemo(()=>v.filter(I=>b[I]).length,[v,b]),x=C>0&&C0,S=I=>{const N={value:I.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",N)},$=c!==null&&c.field===t.field?0:-1;m.useLayoutEffect(()=>{const I=a.current.getColumnHeaderElement(t.field);$===0&&I&&(I.tabIndex=-1)},[$,a,t.field]);const T=m.useCallback(I=>{I.key===" "&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[a,w]),k=m.useCallback(()=>{i(I=>!I)},[]);m.useEffect(()=>a.current.subscribeEvent("rowSelectionChange",k),[a,k]);const M=a.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return g.jsx(s.slots.baseCheckbox,P({ref:n,indeterminate:x,checked:w,onChange:S,className:u.root,inputProps:{"aria-label":M},tabIndex:$,onKeyDown:T},(r=s.slotProps)==null?void 0:r.baseCheckbox,o))}),C8=xt(g.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),S8=xt(g.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),$8=xt(g.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),_8=xt(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),P8e=xt(g.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),k8=xt(g.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),M8e=xt(g.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");xt(g.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");xt(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const T8e=xt(g.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),E8e=xt(g.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),I8e=xt(g.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),R8e=xt(g.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),O8e=xt(g.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),A8e=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),e$=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),P8=xt(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),F8e=xt(g.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),L8e=xt(g.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),M8=xt(g.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),D8e=xt(g.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),j8e=xt(g.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),N8e=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),z8e=xt(g.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),B8e=xt(g.jsx("g",{children:g.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),H8e=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");xt(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const W8e=xt(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),V8e=["hideMenu","colDef","id","labelledby","className","children","open"],U8e=ke(i0)(()=>({minWidth:248})),G8e=m.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,u=be(t,V8e),c=m.useCallback(f=>{c2(f.key)&&f.preventDefault(),ET(f.key)&&r(f)},[r]);return g.jsx(U8e,P({id:o,ref:n,className:ze(le.menuList,a),"aria-labelledby":i,onKeyDown:c,autoFocus:l},u,{children:s}))}),q8e=["displayOrder"],K8e=e=>{const t=Mu(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:a,colDef:s,addDividers:l=!0}=e,u=m.useMemo(()=>P({},n,o),[n,o]),c=m.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const y=P({},i);return Object.entries(r).forEach(([v,b])=>{y[v]=P({},b,i[v]||{})}),y},[r,i]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=m.useMemo(()=>{const y=Object.keys(n);return Object.keys(o).filter(v=>!y.includes(v))},[o,n]);return m.useMemo(()=>{const b=Array.from(new Set([...f,...p])).filter(C=>u[C]!=null).sort((C,x)=>{const w=c[C],S=c[x],$=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,T=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return $-T});return b.reduce((C,x,w)=>{let S={colDef:s,onClick:a};const $=c[x];if($){const T=be($,q8e);S=P({},S,T)}return l&&w!==b.length-1?[...C,[u[x],S],[aN,{}]]:[...C,[u[x],S]]},[])},[l,s,f,a,u,c,p])};function Y8e(e){const{colDef:t,onClick:n}=e,r=Wt(),o=dt(),s=Xr(r).filter(u=>u.disableColumnMenu!==!0).length===1,l=m.useCallback(u=>{s||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,s]);return o.disableColumnSelector||t.hideable===!1?null:g.jsxs(Co,{onClick:l,disabled:s,children:[g.jsx(vc,{children:g.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),g.jsx(Hf,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function X8e(e){const{onClick:t}=e,n=Wt(),r=dt(),o=m.useCallback(i=>{t(i),n.current.showPreferences(Ta.columns)},[n,t]);return r.disableColumnSelector?null:g.jsxs(Co,{onClick:o,children:[g.jsx(vc,{children:g.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),g.jsx(Hf,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Q8e(e){return g.jsxs(m.Fragment,{children:[g.jsx(Y8e,P({},e)),g.jsx(X8e,P({},e))]})}function Z8e(e){const{colDef:t,onClick:n}=e,r=Wt(),o=dt(),i=m.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:g.jsxs(Co,{onClick:i,children:[g.jsx(vc,{children:g.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),g.jsx(Hf,{children:r.current.getLocaleText("columnMenuFilter")})]})}function J8e(e){var t;const{colDef:n,onClick:r}=e,o=Wt(),i=it(o,Di),a=dt(),s=m.useMemo(()=>{if(!n)return null;const f=i.find(p=>p.field===n.field);return f==null?void 0:f.sort},[n,i]),l=(t=n.sortingOrder)!=null?t:a.sortingOrder,u=m.useCallback(f=>{r(f);const p=f.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,p===s?null:p)},[o,n,r,s]);if(!n||!n.sortable||!l.some(f=>!!f))return null;const c=f=>{const p=o.current.getLocaleText(f);return typeof p=="function"?p(n):p};return g.jsxs(m.Fragment,{children:[l.includes("asc")&&s!=="asc"?g.jsxs(Co,{onClick:u,"data-value":"asc",children:[g.jsx(vc,{children:g.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),g.jsx(Hf,{children:c("columnMenuSortAsc")})]}):null,l.includes("desc")&&s!=="desc"?g.jsxs(Co,{onClick:u,"data-value":"desc",children:[g.jsx(vc,{children:g.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),g.jsx(Hf,{children:c("columnMenuSortDesc")})]}):null,l.includes(null)&&s!=null?g.jsxs(Co,{onClick:u,children:[g.jsx(vc,{}),g.jsx(Hf,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const e9e=["defaultSlots","defaultSlotProps","slots","slotProps"],t9e={columnMenuSortItem:J8e,columnMenuFilterItem:Z8e,columnMenuColumnsItem:Q8e},n9e={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},r9e=m.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=be(t,e9e),l=K8e(P({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return g.jsx(G8e,P({ref:n},s,{children:l.map(([u,c],f)=>g.jsx(u,P({},c),f))}))}),o9e=m.forwardRef(function(t,n){return g.jsx(r9e,P({},t,{ref:n,defaultSlots:t9e,defaultSlotProps:n9e}))}),i9e=["className"],a9e=e=>{const{classes:t}=e;return qe({root:["panelContent"]},Jt,t)},s9e=Ar("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function NV(e){const{className:t}=e,n=be(e,i9e),r=dt(),o=a9e(r);return g.jsx(s9e,P({className:ze(t,o.root),ownerState:r},n))}const l9e=["className"],u9e=e=>{const{classes:t}=e;return qe({root:["panelFooter"]},Jt,t)},c9e=Ar("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function zV(e){const{className:t}=e,n=be(e,l9e),r=dt(),o=u9e(r);return g.jsx(c9e,P({className:ze(t,o.root),ownerState:r},n))}const d9e=["className"],f9e=e=>{const{classes:t}=e;return qe({root:["panelHeader"]},Jt,t)},p9e=Ar("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function h9e(e){const{className:t}=e,n=be(e,d9e),r=dt(),o=f9e(r);return g.jsx(p9e,P({className:ze(t,o.root),ownerState:r},n))}const m9e=["className","slotProps"],g9e=e=>{const{classes:t}=e;return qe({root:["panelWrapper"]},Jt,t)},v9e=ke("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),y9e=()=>!0,BV=m.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=be(t,m9e),a=dt(),s=g9e(a);return g.jsx(jj,P({open:!0,disableEnforceFocus:!0,isEnabled:y9e},o.TrapFocus,{children:g.jsx(v9e,P({ref:n,tabIndex:-1,className:ze(r,s.root),ownerState:a},i))}))}),b9e=!1,x9e=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],w9e=e=>{const{classes:t}=e;return qe({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Jt,t)},C9e=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),S9e=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${lo.root}`]:{marginRight:e.spacing(.5)}})),$9e=ke(wo)({justifyContent:"flex-end"}),T8=new Intl.Collator,_9e=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function k9e(e){var t,n,r;const o=Wt(),i=m.useRef(null),a=it(o,us),s=it(o,$a),l=dt(),[u,c]=m.useState(""),f=w9e(l),{sort:p,searchPredicate:y=_9e,autoFocusSearchField:v=!0,disableHideAllButton:b=!1,disableShowAllButton:C=!1,getTogglableColumns:x}=e,w=be(e,x9e),S=m.useMemo(()=>{switch(p){case"asc":return[...a].sort((A,z)=>T8.compare(A.headerName||A.field,z.headerName||z.field));case"desc":return[...a].sort((A,z)=>-T8.compare(A.headerName||A.field,z.headerName||z.field));default:return a}},[a,p]),$=A=>{const{name:z}=A.target;o.current.setColumnVisibility(z,s[z]===!1)},T=m.useCallback(A=>{const z=$a(o),L=P({},z),O=x?x(a):null;return a.forEach(D=>{D.hideable&&(O==null||O.includes(D.field))&&(A?delete L[D.field]:L[D.field]=!1)}),o.current.setColumnVisibilityModel(L)},[o,a,x]),k=m.useCallback(A=>{c(A.target.value)},[]),M=m.useMemo(()=>{const A=x?x(S):null,z=A?S.filter(({field:L})=>A.includes(L)):S;return u?z.filter(L=>y(L,u.toLowerCase())):z},[S,u,y,x]),I=m.useRef(null);m.useEffect(()=>{v?i.current.focus():I.current&&typeof I.current.focus=="function"&&I.current.focus()},[v]);let N=!1;const E=A=>N===!1&&A.hideable!==!1?(N=!0,!0):!1;return g.jsxs(BV,P({},w,{children:[g.jsx(h9e,{children:g.jsx(l.slots.baseTextField,P({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:u,onChange:k,variant:"standard",fullWidth:!0},(t=l.slotProps)==null?void 0:t.baseTextField))}),g.jsx(NV,{children:g.jsx(C9e,{className:f.root,ownerState:l,children:M.map(A=>{var z;return g.jsxs(S9e,{className:f.columnsPanelRow,ownerState:l,children:[g.jsx(R_,{control:g.jsx(l.slots.baseSwitch,P({disabled:A.hideable===!1,checked:s[A.field]!==!1,onClick:$,name:A.field,size:"small",inputRef:E(A)?I:void 0},(z=l.slotProps)==null?void 0:z.baseSwitch)),label:A.headerName||A.field}),!l.disableColumnReorder&&b9e&&g.jsx($9e,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:g.jsx(l.slots.columnReorderIcon,{})})]},A.field)})})}),C&&b?null:g.jsxs(zV,{children:[b?g.jsx("span",{}):g.jsx(l.slots.baseButton,P({onClick:()=>T(!1)},(n=l.slotProps)==null?void 0:n.baseButton,{disabled:b,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:g.jsx(l.slots.baseButton,P({onClick:()=>T(!0)},(r=l.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const P9e=["children","className","classes"],M9e=bt("MuiDataGrid",["panel","paper"]),T9e=ke(ad,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),E9e=ke(id,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),I9e=m.forwardRef((e,t)=>{const{children:n,className:r}=e,o=be(e,P9e),i=Wt(),a=dt(),s=M9e,[l,u]=m.useState(!1),c=m.useCallback(()=>{i.current.hidePreferences()},[i]),f=m.useCallback(b=>{cb(b.key)&&i.current.hidePreferences()},[i]),p=m.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[y,v]=m.useState(null);return m.useEffect(()=>{var b;const C=(b=i.current.rootElementRef)==null||(b=b.current)==null?void 0:b.querySelector(`.${le.columnHeaders}`);C&&v(C)},[i]),y?g.jsx(T9e,P({ref:t,placement:"bottom-start",className:ze(r,s.panel),ownerState:a,anchorEl:y,modifiers:p},o,{children:g.jsx(Dj,{mouseEvent:"onMouseUp",onClickAway:c,children:g.jsx(E9e,{className:s.paper,ownerState:a,elevation:8,onKeyDown:f,children:l&&n})})})):null}),R9e=m.forwardRef(function(t,n){var r,o,i;const a=Wt(),s=it(a,us),l=dt(),u=it(a,Zc),c=a.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:Ta.filters);return g.jsx(l.slots.panel,P({ref:n,as:l.slots.basePopper,open:s.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=l.slotProps)==null?void 0:o.panel,t,(i=l.slotProps)==null?void 0:i.basePopper,{children:c}))}),O9e=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],A9e=["InputComponentProps"],F9e=e=>{const{classes:t}=e;return qe({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Jt,t)},L9e=ke("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),D9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),j9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),N9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),z9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),B9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),H9e=e=>{switch(e){case zo.And:return"filterPanelOperatorAnd";case zo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Xh=e=>e.headerName||e.field,E8=new Intl.Collator,W9e=m.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p;const{item:y,hasMultipleFilters:v,deleteFilter:b,applyFilterChanges:C,multiFilterOperator:x,showMultiFilterOperators:w,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:$,focusElementRef:T,logicOperators:k=[zo.And,zo.Or],columnsSort:M,filterColumns:I,deleteIconProps:N={},logicOperatorInputProps:E={},operatorInputProps:A={},columnInputProps:z={},valueInputProps:L={}}=t,O=be(t,O9e),D=Wt(),H=it(D,oV),B=it(D,qr),j=ln(),W=ln(),U=ln(),Z=ln(),Y=dt(),se=F9e(Y),Q=m.useRef(null),ne=m.useRef(null),re=v&&k.length>0,ge=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},fe=(i=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,Se=((a=Y.slotProps)==null?void 0:a.baseInputLabel)||{},de=((s=Y.slotProps)==null?void 0:s.baseSelectOption)||{},{InputComponentProps:ie}=L,Pe=be(L,A9e),$e=m.useMemo(()=>{if(I===void 0||typeof I!="function")return H;const K=I({field:y.field,columns:H,currentFilters:(B==null?void 0:B.items)||[]});return H.filter(ee=>K.includes(ee.field))},[I,B==null?void 0:B.items,H,y.field]),me=m.useMemo(()=>{switch(M){case"asc":return $e.sort((K,ee)=>E8.compare(Xh(K),Xh(ee)));case"desc":return $e.sort((K,ee)=>-E8.compare(Xh(K),Xh(ee)));default:return $e}},[$e,M]),ue=y.field?D.current.getColumn(y.field):null,ce=m.useMemo(()=>{var K;return!y.operator||!ue?null:(K=ue.filterOperators)==null?void 0:K.find(ee=>ee.value===y.operator)},[y,ue]),Te=m.useCallback(K=>{const ee=K.target.value,pe=D.current.getColumn(ee);if(pe.field===ue.field)return;const ye=pe.filterOperators.find(Ae=>Ae.value===y.operator)||pe.filterOperators[0],De=!ye.InputComponent||ye.InputComponent!==(ce==null?void 0:ce.InputComponent);C(P({},y,{field:ee,operator:ye.value,value:De?void 0:y.value}))},[D,C,y,ue,ce]),Le=m.useCallback(K=>{const ee=K.target.value,pe=ue==null?void 0:ue.filterOperators.find(De=>De.value===ee),ye=!(pe!=null&&pe.InputComponent)||(pe==null?void 0:pe.InputComponent)!==(ce==null?void 0:ce.InputComponent);C(P({},y,{operator:ee,value:ye?void 0:y.value}))},[C,y,ue,ce]),Re=m.useCallback(K=>{const ee=K.target.value===zo.And.toString()?zo.And:zo.Or;$(ee)},[$]),Oe=()=>{Y.disableMultipleColumnsFiltering?y.value===void 0?b(y):C(P({},y,{value:void 0})):b(y)};return m.useImperativeHandle(T,()=>({focus:()=>{if(ce!=null&&ce.InputComponent){var K;Q==null||(K=Q.current)==null||K.focus()}else ne.current.focus()}}),[ce]),g.jsxs(L9e,P({ref:n,className:se.root,"data-id":y.id,ownerState:Y},O,{children:[g.jsx(D9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,N,{className:ze(se.deleteIcon,ge.className,N.className),ownerState:Y,children:g.jsx(Y.slots.baseIconButton,P({"aria-label":D.current.getLocaleText("filterPanelDeleteIconLabel"),title:D.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Oe,size:"small"},(l=Y.slotProps)==null?void 0:l.baseIconButton,{children:g.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),g.jsx(j9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,E,{sx:P({display:re?"flex":"none",visibility:w?"visible":"hidden"},ge.sx||{},E.sx||{}),className:ze(se.logicOperatorInput,ge.className,E.className),ownerState:Y,children:g.jsx(Y.slots.baseSelect,P({inputProps:{"aria-label":D.current.getLocaleText("filterPanelLogicOperator")},value:x,onChange:Re,disabled:!!S||k.length===1,native:fe},(u=Y.slotProps)==null?void 0:u.baseSelect,{children:k.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.toString(),value:K.toString()}),D.current.getLocaleText(H9e(K))))}))})),g.jsxs(N9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,z,{className:ze(se.columnInput,ge.className,z.className),ownerState:Y,children:[g.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:j,id:W,children:D.current.getLocaleText("filterPanelColumns")})),g.jsx(Y.slots.baseSelect,P({labelId:W,id:j,label:D.current.getLocaleText("filterPanelColumns"),value:y.field||"",onChange:Te,native:fe},(c=Y.slotProps)==null?void 0:c.baseSelect,{children:me.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.field,value:K.field}),Xh(K)))}))]})),g.jsxs(z9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,A,{className:ze(se.operatorInput,ge.className,A.className),ownerState:Y,children:[g.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:U,id:Z,children:D.current.getLocaleText("filterPanelOperator")})),g.jsx(Y.slots.baseSelect,P({labelId:Z,label:D.current.getLocaleText("filterPanelOperator"),id:U,value:y.operator,onChange:Le,native:fe,inputRef:ne},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:ue==null||(p=ue.filterOperators)==null?void 0:p.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.value,value:K.value}),K.label||D.current.getLocaleText(`filterOperator${je(K.value)}`)))}))]})),g.jsx(B9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,Pe,{className:ze(se.valueInput,ge.className,Pe.className),ownerState:Y,children:ce!=null&&ce.InputComponent?g.jsx(ce.InputComponent,P({apiRef:D,item:y,applyValue:C,focusElementRef:Q},ce.InputComponentProps,ie)):null}))]}))});class FT{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new FT}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function LT(){const e=wT(FT.create).current;return nV(e.disposeEffect),e}const V9e=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Ka(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,tabIndex:l,disabled:u,clearButton:c,InputProps:f}=e,p=be(e,V9e),y=LT(),[v,b]=m.useState((t=r.value)!=null?t:""),[C,x]=m.useState(!1),w=ln(),S=dt(),$=m.useCallback(T=>{const{value:k}=T.target;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{const M=P({},r,{value:k,fromInput:w});o(M),x(!1)})},[w,o,r,S.filterDebounceMs,y]);return m.useEffect(()=>{if(r.fromInput!==w){var k;b(String((k=r.value)!=null?k:""))}},[w,r]),g.jsx(S.slots.baseTextField,P({id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputProps:P({},C||c?{endAdornment:C?g.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},f,{inputProps:P({tabIndex:l},f==null?void 0:f.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const U9e=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function ef(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,InputProps:l,clearButton:u,tabIndex:c,disabled:f}=e,p=be(e,U9e),y=LT(),[v,b]=m.useState((t=r.value)!=null?t:""),[C,x]=m.useState(!1),w=ln(),S=dt(),$=m.useCallback(T=>{const k=T.target.value;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{o(P({},r,{value:k})),x(!1)})},[o,r,S.filterDebounceMs,y]);return m.useEffect(()=>{var T;const k=(T=r.value)!=null?T:"";b(String(k))},[r.value]),g.jsx(S.slots.baseTextField,P({fullWidth:!0,id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:P({},C||u?{endAdornment:C?g.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:f},l,{inputProps:P({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const G9e=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],q9e=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:a})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(l=>{const u=o(l),c=r(l);return m.createElement(n,P({},a,{native:i,key:u,value:u}),c)}),K9e=ke("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function I8(e){var t,n,r,o,i,a,s,l;const{item:u,applyValue:c,type:f,apiRef:p,focusElementRef:y,getOptionLabel:v,getOptionValue:b,placeholder:C,tabIndex:x,label:w,clearButton:S}=e,$=be(e,G9e),[T,k]=m.useState((t=u.value)!=null?t:""),M=ln(),I=ln(),N=dt(),E=(n=(r=N.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let A=null;if(u.field){const B=p.current.getColumn(u.field);Pc(B)&&(A=B)}const z=b||((o=A)==null?void 0:o.getOptionValue),L=v||((i=A)==null?void 0:i.getOptionLabel),O=m.useMemo(()=>{if(A)return typeof A.valueOptions=="function"?A.valueOptions({field:A.field}):A.valueOptions},[A]),D=m.useCallback(B=>{let j=B.target.value;j=kk(j,O,z),k(String(j)),c(P({},u,{value:j}))},[O,z,c,u]);if(m.useEffect(()=>{var B;let j;if(O!==void 0){if(j=kk(u.value,O,z),j!==u.value){c(P({},u,{value:j}));return}}else j=u.value;j=(B=j)!=null?B:"",k(String(j))},[u,O,c,z]),!Pc(A)||!Pc(A))return null;const H=w??p.current.getLocaleText("filterPanelInputLabel");return g.jsxs(K9e,{children:[g.jsxs(N.slots.baseFormControl,{children:[g.jsx(N.slots.baseInputLabel,P({},(a=N.slotProps)==null?void 0:a.baseInputLabel,{id:I,htmlFor:M,shrink:!0,variant:"standard",children:H})),g.jsx(N.slots.baseSelect,P({id:M,label:H,labelId:I,value:T,onChange:D,variant:"standard",type:f||"text",inputProps:{tabIndex:x,ref:y,placeholder:C??p.current.getLocaleText("filterPanelInputPlaceholder")},native:E},$,(s=N.slotProps)==null?void 0:s.baseSelect,{children:q9e({column:A,OptionComponent:N.slots.baseSelectOption,getOptionLabel:L,getOptionValue:z,isSelectNative:E,baseSelectOptionProps:(l=N.slotProps)==null?void 0:l.baseSelectOption})}))]}),S]})}const Y9e=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],X9e=ke("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Q9e(e){var t,n,r,o;const{item:i,applyValue:a,apiRef:s,focusElementRef:l,clearButton:u,tabIndex:c,label:f}=e,p=be(e,Y9e),[y,v]=m.useState(i.value||""),b=dt(),C=ln(),x=ln(),w=((t=b.slotProps)==null?void 0:t.baseSelect)||{},S=(n=w.native)!=null?n:!0,$=((r=b.slotProps)==null?void 0:r.baseSelectOption)||{},T=m.useCallback(M=>{const I=M.target.value;v(I),a(P({},i,{value:I}))},[a,i]);m.useEffect(()=>{v(i.value||"")},[i.value]);const k=f??s.current.getLocaleText("filterPanelInputLabel");return g.jsxs(X9e,{children:[g.jsxs(b.slots.baseFormControl,{fullWidth:!0,children:[g.jsx(b.slots.baseInputLabel,P({},(o=b.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:k})),g.jsxs(b.slots.baseSelect,P({labelId:C,id:x,label:k,value:y,onChange:T,variant:"standard",native:S,displayEmpty:!0,inputProps:{ref:l,tabIndex:c}},p,w,{children:[g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"",children:s.current.getLocaleText("filterValueAny")})),g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"true",children:s.current.getLocaleText("filterValueTrue")})),g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const Z9e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],R8=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),J9e=m.forwardRef(function(t,n){var r,o;const i=Wt(),a=dt(),s=it(i,qr),l=it(i,oV),u=m.useRef(null),c=m.useRef(null),{logicOperators:f=[zo.And,zo.Or],columnsSort:p,filterFormProps:y,getColumnForNewFilter:v,disableAddFilterButton:b=!1,disableRemoveAllButton:C=!1}=t,x=be(t,Z9e),w=i.current.upsertFilterItem,S=m.useCallback(A=>{i.current.setFilterLogicOperator(A)},[i]),$=m.useCallback(()=>{let A;if(v&&typeof v=="function"){const z=v({currentFilters:(s==null?void 0:s.items)||[],columns:l});if(z===null)return null;A=l.find(({field:L})=>L===z)}else A=l.find(z=>{var L;return(L=z.filterOperators)==null?void 0:L.length});return A?R8(A):null},[s==null?void 0:s.items,l,v]),T=m.useCallback(()=>{if(v===void 0||typeof v!="function")return $();const A=s.items.length?s.items:[$()].filter(Boolean),z=v({currentFilters:A,columns:l});if(z===null)return null;const L=l.find(({field:O})=>O===z);return L?R8(L):null},[s.items,l,v,$]),k=m.useMemo(()=>s.items.length?s.items:(c.current||(c.current=$()),c.current?[c.current]:[]),[s.items,$]),M=k.length>1,I=()=>{const A=T();A&&i.current.upsertFilterItems([...k,A])},N=m.useCallback(A=>{const z=k.length===1;i.current.deleteFilterItem(A),z&&i.current.hideFilterPanel()},[i,k.length]),E=()=>{k.length===1&&k[0].value===void 0&&(i.current.deleteFilterItem(k[0]),i.current.hideFilterPanel()),i.current.setFilterModel(P({},s,{items:[]}))};return m.useEffect(()=>{f.length>0&&s.logicOperator&&!f.includes(s.logicOperator)&&S(f[0])},[f,S,s.logicOperator]),m.useEffect(()=>{k.length>0&&u.current.focus()},[k.length]),g.jsxs(BV,P({ref:n},x,{children:[g.jsx(NV,{children:k.map((A,z)=>g.jsx(W9e,P({item:A,applyFilterChanges:w,deleteFilter:N,hasMultipleFilters:M,showMultiFilterOperators:z>0,multiFilterOperator:s.logicOperator,disableMultiFilterOperator:z!==1,applyMultiFilterOperatorChanges:S,focusElementRef:z===k.length-1?u:null,logicOperators:f,columnsSort:p},y),A.id==null?z:A.id))}),!a.disableMultipleColumnsFiltering&&!(b&&C)?g.jsxs(zV,{children:[b?g.jsx("span",{}):g.jsx(a.slots.baseButton,P({onClick:I,startIcon:g.jsx(a.slots.filterPanelAddIcon,{})},(r=a.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),C?null:g.jsx(a.slots.baseButton,P({onClick:E,startIcon:g.jsx(a.slots.filterPanelRemoveAllIcon,{})},(o=a.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),eLe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function HV(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:s,helperText:l,size:u,variant:c}=e,f=be(e,eLe),p={color:a,error:s,helperText:l,size:u,variant:c},[y,v]=m.useState(t.value||[]),b=ln(),C=dt();m.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];v(S.map(String))},[t.value]);const x=m.useCallback((w,S)=>{v(S.map(String)),n(P({},t,{value:[...S]}))},[n,t]);return g.jsx(tN,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,S)=>{const{inputValue:$}=S;return $==null||$===""?[]:[$]},id:b,value:y,onChange:x,renderTags:(w,S)=>w.map(($,T)=>g.jsx(C.slots.baseChip,P({variant:"outlined",size:"small",label:$},S({index:T})))),renderInput:w=>{var S;return g.jsx(C.slots.baseTextField,P({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},w.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},p,(S=C.slotProps)==null?void 0:S.baseTextField))}},f))}const tLe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],nLe=Xj();function rLe(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:a,color:s,error:l,helperText:u,size:c,variant:f="standard",getOptionLabel:p,getOptionValue:y}=e,v=be(e,tLe),b={color:s,error:l,helperText:u,size:c,variant:f},C=ln(),x=dt();let w=null;if(r.field){const E=i.current.getColumn(r.field);Pc(E)&&(w=E)}const S=y||((t=w)==null?void 0:t.getOptionValue),$=p||((n=w)==null?void 0:n.getOptionLabel),T=m.useCallback((E,A)=>S(E)===S(A),[S]),k=m.useMemo(()=>{var E;return(E=w)!=null&&E.valueOptions?typeof w.valueOptions=="function"?w.valueOptions({field:w.field}):w.valueOptions:[]},[w]),M=m.useMemo(()=>k==null?void 0:k.map(S),[k,S]),I=m.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(A=>M==null?void 0:M.findIndex(z=>z===A)).filter(A=>A>=0).map(A=>k[A]):r.value:[],[r.value,k,M]);m.useEffect(()=>{(!Array.isArray(r.value)||I.length!==r.value.length)&&o(P({},r,{value:I.map(S)}))},[r,I,o,S]);const N=m.useCallback((E,A)=>{o(P({},r,{value:A.map(S)}))},[o,r,S]);return g.jsx(tN,P({multiple:!0,options:k,isOptionEqualToValue:T,filterOptions:nLe,id:C,value:I,onChange:N,getOptionLabel:$,renderTags:(E,A)=>E.map((z,L)=>g.jsx(x.slots.baseChip,P({variant:"outlined",size:"small",label:$(z)},A({index:L})))),renderInput:E=>{var A;return g.jsx(x.slots.baseTextField,P({},E,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},E.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},b,(A=x.slotProps)==null?void 0:A.baseTextField))}},v))}const oLe=["onClick"],iLe=m.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,oLe),a=ln(),s=ln(),l=Wt(),u=dt(),c=it(l,Zc),f=y=>{c.open&&c.openedPanelValue===Ta.columns?l.current.hidePreferences():l.current.showPreferences(Ta.columns,s,a),o==null||o(y)};if(u.disableColumnSelector)return null;const p=c.open&&c.panelId===s;return g.jsx(u.slots.baseButton,P({ref:n,id:a,size:"small","aria-label":l.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?s:void 0,startIcon:g.jsx(u.slots.columnSelectorIcon,{})},i,{onClick:f},(r=u.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("toolbarColumns")}))}),aLe=["onClick"],sLe=m.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,aLe),a=Wt(),s=dt(),l=it(a,pV),u=ln(),c=ln(),[f,p]=m.useState(!1),y=m.useRef(null),v=on(n,y),b=[{icon:g.jsx(s.slots.densityCompactIcon,{}),label:a.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:g.jsx(s.slots.densityStandardIcon,{}),label:a.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:g.jsx(s.slots.densityComfortableIcon,{}),label:a.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],C=m.useMemo(()=>{switch(l){case"compact":return g.jsx(s.slots.densityCompactIcon,{});case"comfortable":return g.jsx(s.slots.densityComfortableIcon,{});default:return g.jsx(s.slots.densityStandardIcon,{})}},[l,s]),x=k=>{p(M=>!M),o==null||o(k)},w=()=>{p(!1)},S=k=>{a.current.setDensity(k),p(!1)},$=k=>{c2(k.key)&&k.preventDefault(),ET(k.key)&&p(!1)};if(s.disableDensitySelector)return null;const T=b.map((k,M)=>g.jsxs(Co,{onClick:()=>S(k.value),selected:k.value===l,children:[g.jsx(vc,{children:k.icon}),k.label]},M));return g.jsxs(m.Fragment,{children:[g.jsx(s.slots.baseButton,P({ref:v,size:"small",startIcon:C,"aria-label":a.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?c:void 0,id:u},i,{onClick:x},(r=s.slotProps)==null?void 0:r.baseButton,{children:a.current.getLocaleText("toolbarDensity")})),g.jsx(d2,{open:f,target:y.current,onClose:w,position:"bottom-start",children:g.jsx(i0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:$,autoFocusItem:f,children:T})})]})}),lLe=["componentsProps"],uLe=e=>{const{classes:t}=e;return qe({root:["toolbarFilterList"]},Jt,t)},cLe=ke("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,t)=>t.toolbarFilterList})(({theme:e})=>({margin:e.spacing(1,1,.5),padding:e.spacing(0,1)})),dLe=m.forwardRef(function(t,n){var r,o;const{componentsProps:i={}}=t,a=be(t,lLe),s=i.button||{},l=Wt(),u=dt(),c=it(l,dV),f=it(l,gd),p=it(l,Zc),y=uLe(u),v=ln(),b=ln(),C=m.useMemo(()=>{if(p.open)return l.current.getLocaleText("toolbarFiltersTooltipHide");if(c.length===0)return l.current.getLocaleText("toolbarFiltersTooltipShow");const S=T=>f[T.field].filterOperators.find(k=>k.value===T.operator).label||l.current.getLocaleText(`filterOperator${je(T.operator)}`).toString(),$=T=>{const{getValueAsString:k}=f[T.field].filterOperators.find(M=>M.value===T.operator);return k?k(T.value):T.value};return g.jsxs("div",{children:[l.current.getLocaleText("toolbarFiltersTooltipActive")(c.length),g.jsx(cLe,{className:y.root,ownerState:u,children:c.map((T,k)=>P({},f[T.field]&&g.jsx("li",{children:`${f[T.field].headerName||T.field} ${S(T)} - ${T.value!=null?$(T):""}`},k)))})]})},[l,u,p.open,c,f,y]),x=S=>{var $;const{open:T,openedPanelValue:k}=p;T&&k===Ea.filters?l.current.hidePreferences():l.current.showPreferences(Ea.filters,b,v),($=s.onClick)==null||$.call(s,S)};if(u.disableColumnFilter)return null;const w=p.open&&p.panelId===b;return g.jsx(u.slots.baseTooltip,P({title:C,enterDelay:1e3},a,(r=u.slotProps)==null?void 0:r.baseTooltip,{children:g.jsx(u.slots.baseButton,P({ref:n,id:v,size:"small","aria-label":l.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":w?b:void 0,"aria-expanded":w,"aria-haspopup":!0,startIcon:g.jsx(AM,{badgeContent:c.length,color:"primary",children:g.jsx(u.slots.openFilterButtonIcon,{})})},s,{onClick:x},(o=u.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("toolbarFilters")}))}))}),cLe=["children","onClick"],dLe=m.forwardRef(function(t,n){var r;const{children:o,onClick:i}=t,a=be(t,cLe),s=Wt(),l=dt(),u=ln(),c=ln(),[f,p]=m.useState(!1),y=m.useRef(null),v=on(n,y),b=w=>{p(S=>!S),i==null||i(w)},C=()=>p(!1),x=w=>{d2(w.key)&&w.preventDefault(),IT(w.key)&&C()};return o==null?null:g.jsxs(m.Fragment,{children:[g.jsx(l.slots.baseButton,P({ref:v,size:"small",startIcon:g.jsx(l.slots.exportIcon,{}),"aria-expanded":f,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":f?c:void 0,id:u},a,{onClick:b},(r=l.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("toolbarExport")})),g.jsx(f2,{open:f,target:y.current,onClose:C,position:"bottom-start",children:g.jsx(a0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:x,autoFocusItem:f,children:m.Children.map(o,w=>m.isValidElement(w)?m.cloneElement(w,{hideMenu:C}):w)})})]})}),fLe=["hideMenu","options"],pLe=["hideMenu","options"],hLe=["csvOptions","printOptions","excelOptions"];function mLe(e){const t=Wt(),{hideMenu:n,options:r}=e,o=be(e,fLe);return g.jsx(Co,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function gLe(e){const t=Wt(),{hideMenu:n,options:r}=e,o=be(e,pLe);return g.jsx(Co,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const vLe=m.forwardRef(function(t,n){const{csvOptions:r={},printOptions:o={},excelOptions:i}=t,a=be(t,hLe),l=Wt().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:i,csvOptions:r,printOptions:o}).sort((u,c)=>u.componentName>c.componentName?1:-1);return l.length===0?null:g.jsx(dLe,P({},a,{ref:n,children:l.map((u,c)=>m.cloneElement(u.component,{key:c}))}))}),yLe=["quickFilterParser","quickFilterFormatter","debounceMs"],bLe=ke(ou,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,t)=>t.toolbarQuickFilter})(({theme:e})=>({width:"auto",paddingBottom:e.spacing(.5),"& input":{marginLeft:e.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"& input[type=search]::-ms-clear,\n& input[type=search]::-ms-reveal":{display:"none",width:0,height:0},'& input[type="search"]::-webkit-search-decoration,\n & input[type="search"]::-webkit-search-cancel-button,\n & input[type="search"]::-webkit-search-results-button,\n & input[type="search"]::-webkit-search-results-decoration':{display:"none"}})),xLe=e=>e.split(" ").filter(t=>t!==""),wLe=e=>e.join(" ");function CLe(e){var t,n;const r=Wt(),o=dt(),i=it(r,NAe),{quickFilterParser:a=xLe,quickFilterFormatter:s=wLe,debounceMs:l=o.filterDebounceMs}=e,u=be(e,yLe),[c,f]=m.useState(()=>s(i??[])),p=m.useRef(i);m.useEffect(()=>{rl(p.current,i)||(p.current=i,f(x=>rl(a(x),i)?x:s(i??[])))},[i,s,a]);const y=m.useCallback(x=>{const w=a(x);p.current=w,r.current.setQuickFilterValues(w)},[r,a]),v=m.useMemo(()=>Cu(y,l),[y,l]),b=m.useCallback(x=>{const w=x.target.value;f(w),v(w)},[v]),C=m.useCallback(()=>{f(""),y("")},[y]);return g.jsx(bLe,P({as:o.slots.baseTextField,ownerState:o,variant:"standard",value:c,onChange:b,placeholder:r.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":r.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},u,{InputProps:P({startAdornment:g.jsx(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:g.jsx(o.slots.baseIconButton,P({"aria-label":r.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:c?"visible":"hidden"},onClick:C},(t=o.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},u.InputProps)},(n=o.slotProps)==null?void 0:n.baseTextField))}const SLe=["className","selectedRowCount"],$Le=e=>{const{classes:t}=e;return Ge({root:["selectedRowCount"]},Jt,t)},_Le=Ar("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),kLe=m.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=be(t,SLe),a=Wt(),s=dt(),l=$Le(s),u=a.current.getLocaleText("footerRowSelected")(o);return g.jsx(_Le,P({ref:n,className:ze(l.root,r),ownerState:s},i,{children:u}))}),PLe=m.forwardRef(function(t,n){var r,o;const i=Wt(),a=dt(),s=it(i,IAe),l=it(i,n8e),u=it(i,s2),c=!a.hideFooterSelectedRowCount&&l>0?g.jsx(kLe,{selectedRowCount:l}):g.jsx("div",{}),f=!a.hideFooterRowCount&&!a.pagination?g.jsx(a.slots.footerRowCount,P({},(r=a.slotProps)==null?void 0:r.footerRowCount,{rowCount:s,visibleRowCount:u})):null,p=a.pagination&&!a.hideFooterPagination&&a.slots.pagination&&g.jsx(a.slots.pagination,P({},(o=a.slotProps)==null?void 0:o.pagination));return g.jsxs(uFe,P({ref:n},t,{children:[c,f,p]}))});function MLe(){var e,t;const n=dt();return g.jsxs(m.Fragment,{children:[g.jsx(n.slots.preferencesPanel,P({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&g.jsx(n.slots.toolbar,P({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const TLe=m.forwardRef(function(t,n){return g.jsx(RT,P({ref:n},t,{children:g.jsx(Fpe,{})}))}),ELe=m.forwardRef(function(t,n){const o=Wt().current.getLocaleText("noRowsLabel");return g.jsx(RT,P({ref:n},t,{children:o}))}),ILe=ke(J0e)(({theme:e})=>({[`& .${bc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${bc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),RLe=m.forwardRef(function(t,n){const r=Wt(),o=dt(),i=it(r,zi),a=it(r,s2),s=m.useMemo(()=>{var y,v;return(y=(v=o.rowCount)!=null?v:a)!=null?y:0},[o.rowCount,a]),l=m.useMemo(()=>Math.floor(s/(i.pageSize||1)),[s,i.pageSize]),u=m.useCallback(y=>{const v=Number(y.target.value);r.current.setPageSize(v)},[r]),c=m.useCallback((y,v)=>{r.current.setPage(v)},[r]),p=(y=>{for(let v=0;v{const{classes:t}=e;return Ge({root:["rowCount"]},Jt,t)},FLe=Ar("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),LLe=m.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=be(t,OLe),s=Wt(),l=dt(),u=ALe(l);if(o===0)return null;const c=i{let n,r;return t.pagination&&t.paginationMode==="client"?(r=AT(e),n=t8e(e)):(n=Eu(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},yd=(e,t)=>{const n=hb(e,t);return m.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Mk={current:null};function _0(e){return e.isInternal=!0,e}function mb(e){return e!==void 0&&e.isInternal===!0}function DLe(e){return _0((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Mk.current))})}function k0(e){return e.map(t=>P({},t,{getApplyFilterFn:DLe(t.getApplyFilterFnV7),getApplyFilterFnV7:_0(t.getApplyFilterFnV7)}))}function VV(e){return _0((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}function UV(e){return{current:e.current.getPublicApi()}}const jLe=typeof window>"u"?globalThis:window,GV=jLe[atob("ZXZhbA==")];let Tk;try{Tk=GV("true")}catch{Tk=!1}const Ek=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=vd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},NLe=$s(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),zLe=$s("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),BLe=$s("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),qV=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(NLe(),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&&zLe(),a&&BLe(),a||i?P({},e,{items:o.map(s=>Ek(s,n))}):e.items!==o?P({},e,{items:o}):e},A8=(e,t,n)=>r=>P({},r,{filterModel:qV(e,t,n)}),Kl=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,KV=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const y=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(v=>y(v)):y(e.value)}else r=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(r=Kl(r));const a=P({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const l=s.find(y=>y.value===a.operator);if(!l)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const u=!mb(l.getApplyFilterFn),c=!mb(l.getApplyFilterFnV7),f=UV(t);if(l.getApplyFilterFnV7&&!(u&&!c)){const y=l.getApplyFilterFnV7(a,n);return typeof y!="function"?null:{v7:!0,item:a,fn:v=>{let b=t.current.getRowValue(v,n);return i&&(b=Kl(b)),y(b,v,n,f)}}}const p=l.getApplyFilterFn(a,n);return typeof p!="function"?null:{v7:!1,item:a,fn:y=>{const v=t.current.getCellParams(y,a.field);Mk.current=f,i&&(v.value=Kl(v.value));const b=p(v);return Mk.current=null,b}}};let F8=1;const HLe=(e,t,n)=>{const{items:r}=e,o=r.map(l=>KV(l,t)).filter(l=>!!l);if(o.length===0)return null;if(!Tk||n)return(l,u)=>{const c={};for(let f=0;f{var $;const{open:T,openedPanelValue:k}=p;T&&k===Ta.filters?l.current.hidePreferences():l.current.showPreferences(Ta.filters,b,v),($=s.onClick)==null||$.call(s,S)};if(u.disableColumnFilter)return null;const w=p.open&&p.panelId===b;return g.jsx(u.slots.baseTooltip,P({title:C,enterDelay:1e3},a,(r=u.slotProps)==null?void 0:r.baseTooltip,{children:g.jsx(u.slots.baseButton,P({ref:n,id:v,size:"small","aria-label":l.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":w?b:void 0,"aria-expanded":w,"aria-haspopup":!0,startIcon:g.jsx(OM,{badgeContent:c.length,color:"primary",children:g.jsx(u.slots.openFilterButtonIcon,{})})},s,{onClick:x},(o=u.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("toolbarFilters")}))}))}),fLe=["children","onClick"],pLe=m.forwardRef(function(t,n){var r;const{children:o,onClick:i}=t,a=be(t,fLe),s=Wt(),l=dt(),u=ln(),c=ln(),[f,p]=m.useState(!1),y=m.useRef(null),v=on(n,y),b=w=>{p(S=>!S),i==null||i(w)},C=()=>p(!1),x=w=>{c2(w.key)&&w.preventDefault(),ET(w.key)&&C()};return o==null?null:g.jsxs(m.Fragment,{children:[g.jsx(l.slots.baseButton,P({ref:v,size:"small",startIcon:g.jsx(l.slots.exportIcon,{}),"aria-expanded":f,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":f?c:void 0,id:u},a,{onClick:b},(r=l.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("toolbarExport")})),g.jsx(d2,{open:f,target:y.current,onClose:C,position:"bottom-start",children:g.jsx(i0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:x,autoFocusItem:f,children:m.Children.map(o,w=>m.isValidElement(w)?m.cloneElement(w,{hideMenu:C}):w)})})]})}),hLe=["hideMenu","options"],mLe=["hideMenu","options"],gLe=["csvOptions","printOptions","excelOptions"];function vLe(e){const t=Wt(),{hideMenu:n,options:r}=e,o=be(e,hLe);return g.jsx(Co,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function yLe(e){const t=Wt(),{hideMenu:n,options:r}=e,o=be(e,mLe);return g.jsx(Co,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const bLe=m.forwardRef(function(t,n){const{csvOptions:r={},printOptions:o={},excelOptions:i}=t,a=be(t,gLe),l=Wt().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:i,csvOptions:r,printOptions:o}).sort((u,c)=>u.componentName>c.componentName?1:-1);return l.length===0?null:g.jsx(pLe,P({},a,{ref:n,children:l.map((u,c)=>m.cloneElement(u.component,{key:c}))}))}),xLe=["quickFilterParser","quickFilterFormatter","debounceMs"],wLe=ke(ru,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,t)=>t.toolbarQuickFilter})(({theme:e})=>({width:"auto",paddingBottom:e.spacing(.5),"& input":{marginLeft:e.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"& input[type=search]::-ms-clear,\n& input[type=search]::-ms-reveal":{display:"none",width:0,height:0},'& input[type="search"]::-webkit-search-decoration,\n & input[type="search"]::-webkit-search-cancel-button,\n & input[type="search"]::-webkit-search-results-button,\n & input[type="search"]::-webkit-search-results-decoration':{display:"none"}})),CLe=e=>e.split(" ").filter(t=>t!==""),SLe=e=>e.join(" ");function $Le(e){var t,n;const r=Wt(),o=dt(),i=it(r,BAe),{quickFilterParser:a=CLe,quickFilterFormatter:s=SLe,debounceMs:l=o.filterDebounceMs}=e,u=be(e,xLe),[c,f]=m.useState(()=>s(i??[])),p=m.useRef(i);m.useEffect(()=>{nl(p.current,i)||(p.current=i,f(x=>nl(a(x),i)?x:s(i??[])))},[i,s,a]);const y=m.useCallback(x=>{const w=a(x);p.current=w,r.current.setQuickFilterValues(w)},[r,a]),v=m.useMemo(()=>wu(y,l),[y,l]),b=m.useCallback(x=>{const w=x.target.value;f(w),v(w)},[v]),C=m.useCallback(()=>{f(""),y("")},[y]);return g.jsx(wLe,P({as:o.slots.baseTextField,ownerState:o,variant:"standard",value:c,onChange:b,placeholder:r.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":r.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},u,{InputProps:P({startAdornment:g.jsx(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:g.jsx(o.slots.baseIconButton,P({"aria-label":r.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:c?"visible":"hidden"},onClick:C},(t=o.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},u.InputProps)},(n=o.slotProps)==null?void 0:n.baseTextField))}const _Le=["className","selectedRowCount"],kLe=e=>{const{classes:t}=e;return qe({root:["selectedRowCount"]},Jt,t)},PLe=Ar("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),MLe=m.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=be(t,_Le),a=Wt(),s=dt(),l=kLe(s),u=a.current.getLocaleText("footerRowSelected")(o);return g.jsx(PLe,P({ref:n,className:ze(l.root,r),ownerState:s},i,{children:u}))}),TLe=m.forwardRef(function(t,n){var r,o;const i=Wt(),a=dt(),s=it(i,OAe),l=it(i,o8e),u=it(i,a2),c=!a.hideFooterSelectedRowCount&&l>0?g.jsx(MLe,{selectedRowCount:l}):g.jsx("div",{}),f=!a.hideFooterRowCount&&!a.pagination?g.jsx(a.slots.footerRowCount,P({},(r=a.slotProps)==null?void 0:r.footerRowCount,{rowCount:s,visibleRowCount:u})):null,p=a.pagination&&!a.hideFooterPagination&&a.slots.pagination&&g.jsx(a.slots.pagination,P({},(o=a.slotProps)==null?void 0:o.pagination));return g.jsxs(dFe,P({ref:n},t,{children:[c,f,p]}))});function ELe(){var e,t;const n=dt();return g.jsxs(m.Fragment,{children:[g.jsx(n.slots.preferencesPanel,P({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&g.jsx(n.slots.toolbar,P({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const ILe=m.forwardRef(function(t,n){return g.jsx(IT,P({ref:n},t,{children:g.jsx(Fpe,{})}))}),RLe=m.forwardRef(function(t,n){const o=Wt().current.getLocaleText("noRowsLabel");return g.jsx(IT,P({ref:n},t,{children:o}))}),OLe=ke(J0e)(({theme:e})=>({[`& .${yc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${yc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),ALe=m.forwardRef(function(t,n){const r=Wt(),o=dt(),i=it(r,zi),a=it(r,a2),s=m.useMemo(()=>{var y,v;return(y=(v=o.rowCount)!=null?v:a)!=null?y:0},[o.rowCount,a]),l=m.useMemo(()=>Math.floor(s/(i.pageSize||1)),[s,i.pageSize]),u=m.useCallback(y=>{const v=Number(y.target.value);r.current.setPageSize(v)},[r]),c=m.useCallback((y,v)=>{r.current.setPage(v)},[r]),p=(y=>{for(let v=0;v{const{classes:t}=e;return qe({root:["rowCount"]},Jt,t)},DLe=Ar("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),jLe=m.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=be(t,FLe),s=Wt(),l=dt(),u=LLe(l);if(o===0)return null;const c=i{let n,r;return t.pagination&&t.paginationMode==="client"?(r=OT(e),n=r8e(e)):(n=Tu(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},vd=(e,t)=>{const n=pb(e,t);return m.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Pk={current:null};function $0(e){return e.isInternal=!0,e}function hb(e){return e!==void 0&&e.isInternal===!0}function NLe(e){return $0((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Pk.current))})}function _0(e){return e.map(t=>P({},t,{getApplyFilterFn:NLe(t.getApplyFilterFnV7),getApplyFilterFnV7:$0(t.getApplyFilterFnV7)}))}function WV(e){return $0((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}function VV(e){return{current:e.current.getPublicApi()}}const zLe=typeof window>"u"?globalThis:window,UV=zLe[atob("ZXZhbA==")];let Mk;try{Mk=UV("true")}catch{Mk=!1}const Tk=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=gd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},BLe=$s(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),HLe=$s("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),WLe=$s("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),GV=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(BLe(),o=[e.items[0]]):o=e.items;const i=r&&o.some(s=>s.id==null),a=o.some(s=>s.operator==null);return i&&HLe(),a&&WLe(),a||i?P({},e,{items:o.map(s=>Tk(s,n))}):e.items!==o?P({},e,{items:o}):e},O8=(e,t,n)=>r=>P({},r,{filterModel:GV(e,t,n)}),ql=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,qV=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const y=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(v=>y(v)):y(e.value)}else r=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(r=ql(r));const a=P({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const l=s.find(y=>y.value===a.operator);if(!l)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const u=!hb(l.getApplyFilterFn),c=!hb(l.getApplyFilterFnV7),f=VV(t);if(l.getApplyFilterFnV7&&!(u&&!c)){const y=l.getApplyFilterFnV7(a,n);return typeof y!="function"?null:{v7:!0,item:a,fn:v=>{let b=t.current.getRowValue(v,n);return i&&(b=ql(b)),y(b,v,n,f)}}}const p=l.getApplyFilterFn(a,n);return typeof p!="function"?null:{v7:!1,item:a,fn:y=>{const v=t.current.getCellParams(y,a.field);Pk.current=f,i&&(v.value=ql(v.value));const b=p(v);return Pk.current=null,b}}};let A8=1;const VLe=(e,t,n)=>{const{items:r}=e,o=r.map(l=>qV(l,t)).filter(l=>!!l);if(o.length===0)return null;if(!Mk||n)return(l,u)=>{const c={};for(let f=0;f`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(` `)} @@ -749,21 +749,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)}}; return result$$; - })`,a=GV(i.replaceAll("$$",String(F8))),s=(l,u)=>a(t.current.getRowId,o,l,u);return F8+=1,s},WLe=(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)?r2(t):nl(t),l=[],{ignoreDiacritics:u}=t.current.rootProps,c=UV(t);return s.forEach(f=>{const p=t.current.getColumn(f),y=p==null?void 0:p.getApplyQuickFilterFn,v=p==null?void 0:p.getApplyQuickFilterFnV7,b=!mb(y),C=!mb(v);v&&!(b&&!C)?l.push({column:p,appliers:i.map(x=>{const w=u?Kl(x):x;return{v7:!0,fn:v(w,p,c)}})}):y&&l.push({column:p,appliers:i.map(x=>{const w=u?Kl(x):x;return{v7:!1,fn:y(w,p,c)}})})}),function(p,y){const v={},b={};e:for(let x=0;x{const r=HLe(e,t,n),o=WLe(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}},L8=e=>e!=null,ULe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>KV(r,t)!==null)),e.cleanedFilterItems),GLe=(e,t,n,r,o)=>{const i=ULe(o,r,n.items),a=e.filter(L8),s=t.filter(L8);if(a.length>0){var l;const c=p=>a.some(y=>y[p.id]);if(((l=n.logicOperator)!=null?l:Dg().logicOperator)===zo.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(s.length>0&&n.quickFilterValues!=null){var u;const c=p=>s.some(y=>y[p]);if(((u=n.quickFilterLogicOperator)!=null?u:Dg().quickFilterLogicOperator)===zo.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},D8=_0(e=>{if(!e)return null;const t=new RegExp(z1(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Kl(a)),a!=null?t.test(a.toString()):!1}}),qLe=(e=!1)=>k0([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(z1(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ka},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ka},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${z1(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ka},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${z1(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ka},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:WV}]),Ma={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:c8e,type:"string",align:"left",filterOperators:qLe(),renderEditCell:O6e,getApplyQuickFilterFn:VV(D8),getApplyQuickFilterFnV7:D8},KLe=()=>k0([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Y9e}]);function YLe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const XLe=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}},YV=P({},Ma,{type:"boolean",align:"center",headerAlign:"center",renderCell:x6e,renderEditCell:$6e,sortComparator:FV,valueFormatter:YLe,filterOperators:KLe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>XLe(e)}),Rl="__check__",rh=P({},YV,{field:Rl,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=>pb(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>g.jsx($8e,P({},e)),renderCell:e=>g.jsx(w8e,P({},e))}),p2="actions",QLe=P({},Ma,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Q6e,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),jT="__detail_panel_toggle__",bo=e=>e.editRows,ZLe=["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"],JLe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:a}=e;return Ge({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Jt,a)};function eDe({width:e}){if(!e)return null;const t={width:e};return g.jsx("div",{className:`${le.cell} ${le.withBorderColor}`,style:t})}const tDe=m.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:i,row:a,index:s,style:l,position:u,rowHeight:c,className:f,visibleColumns:p,renderedColumns:y,containerWidth:v,firstColumnToRender:b,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:x,isNotVisible:w,focusedCell:S,onClick:$,onDoubleClick:T,onMouseEnter:k,onMouseLeave:M,onMouseOut:I,onMouseOver:N}=t,E=be(t,ZLe),A=Wt(),z=m.useRef(null),L=dt(),O=yd(A,L),D=it(A,$T),H=it(A,Di),B=it(A,a2),j=it(A,S0),W=it(A,bo),U=on(z,n),Z=s+j+2,Y={selected:r,hovered:o,isLastVisible:C,classes:L.classes,editing:A.current.getRowMode(i)===Bn.Edit,editable:L.editMode===gs.Row,rowHeight:c},se=JLe(Y);m.useLayoutEffect(()=>{c==="auto"&&z.current&&typeof ResizeObserver>"u"&&A.current.unstable_storeRowHeightMeasurement(i,z.current.clientHeight,u)},[A,c,i,u]),m.useLayoutEffect(()=>{if(O.range){const De=A.current.getRowIndexRelativeToVisibleRows(i);De!=null&&A.current.unstable_setLastMeasuredRowIndex(De)}const ee=z.current;if(!ee||c!=="auto"||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(De=>{const[Ae]=De,Ee=Ae.borderBoxSize&&Ae.borderBoxSize.length>0?Ae.borderBoxSize[0].blockSize:Ae.contentRect.height;A.current.unstable_storeRowHeightMeasurement(i,Ee,u)});return ye.observe(ee),()=>ye.disconnect()},[A,O.range,s,c,i,u]);const Q=m.useCallback((ee,pe)=>ye=>{ye.target.nodeType===1&&!ye.currentTarget.contains(ye.target)||A.current.getRow(i)&&(A.current.publishEvent(ee,A.current.getRowParams(i),ye),pe&&pe(ye))},[A,i]),ne=m.useCallback(ee=>{const pe=o6e(ee.target,le.cell),ye=pe==null?void 0:pe.getAttribute("data-field");if(ye){if(ye===rh.field||ye===jT||ye==="__reorder__"||A.current.getCellMode(i,ye)===Pn.Edit)return;const De=A.current.getColumn(ye);if((De==null?void 0:De.type)===p2)return}Q("rowClick",$)(ee)},[A,$,Q,i]),{slots:re,slotProps:ge,disableColumnReorder:xe}=L,fe=re.cell===kk?kk:h6e,Se=L.rowReordering,de=(ee,pe)=>{var ye,De;const Ae=xe&&ee.disableReorder||!Se&&!!H.length&&B>1&&Object.keys(W).length>0,Ee=(ye=(De=W[i])==null?void 0:De[ee.field])!=null?ye:null;let Ce=!1;return x!==void 0&&p[x].field===ee.field&&(Ce=!0),g.jsx(fe,P({column:ee,width:pe.width,rowId:i,height:c,showRightBorder:pe.showRightBorder,align:ee.align||"left",colIndex:pe.indexRelativeToAllColumns,colSpan:pe.colSpan,disableDragEvents:Ae,editCellState:Ee,isNotVisible:Ce},ge==null?void 0:ge.cell),ee.field)},ie=it(A,()=>P({},A.current.unstable_getRowInternalSizes(i)),ST);let Pe=c;if(Pe==="auto"&&ie){let ee=0;const pe=Object.entries(ie).reduce((ye,[De,Ae])=>/^base[A-Z]/.test(De)?(ee+=1,Ae>ye?Ae:ye):ye,0);pe>0&&ee>1&&(Pe=pe)}const $e=m.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const ee=P({},l,{maxHeight:c==="auto"?"none":c,minHeight:Pe});if(ie!=null&&ie.spacingTop){const pe=L.rowSpacingType==="border"?"borderTopWidth":"marginTop";ee[pe]=ie.spacingTop}if(ie!=null&&ie.spacingBottom){const pe=L.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ye=ee[pe];typeof ye!="number"&&(ye=parseInt(ye||"0",10)),ye+=ie.spacingBottom,ee[pe]=ye}return ee},[w,c,l,Pe,ie,L.rowSpacingType]),me=A.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof L.getRowClassName=="function"){var ue;const ee=s-(((ue=O.range)==null?void 0:ue.firstRowIndex)||0),pe=P({},A.current.getRowParams(i),{isFirstVisible:ee===0,isLastVisible:ee===O.rows.length-1,indexRelativeToCurrentPage:ee});me.push(L.getRowClassName(pe))}const ce=KFe(1e4,20,80),Te=A.current.getRowNode(i);if(!Te)return null;const Le=Te.type,Re=[];for(let ee=0;ee0&&g.jsx(eDe,{width:Oe})]}))}),nDe=c2(tDe);function rDe({privateApiRef:e,props:t,children:n}){const r=m.useRef(e.current.getPublicApi());return g.jsx(tV.Provider,{value:t,children:g.jsx(nV.Provider,{value:e,children:g.jsx(eV.Provider,{value:r,children:n})})})}const oDe=GFe()&&window.localStorage.getItem("DEBUG")!=null,um=()=>{},iDe={debug:um,info:um,warn:um,error:um},j8=["debug","info","warn","error"];function N8(e,t,n=console){const r=j8.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return j8.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[u,...c]=l;n[a](`MUI: ${e} - ${u}`,...c)}:i[a]=um,i),{})}const aDe=(e,t)=>{const n=m.useCallback(r=>oDe?N8(r,"debug",t.logger):t.logLevel?N8(r,t.logLevel.toString(),t.logger):iDe,[t.logLevel,t.logger]);Yt(e,{getLogger:n},"private")};class NT{static create(t){return new NT(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 sDe{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 z8=0;function uDe(e){var t;const n=(t=e.current)==null?void 0:t[XV];if(n)return n;const r={},o={state:r,store:NT.create(r),instanceId:{id:z8}};return z8+=1,o.getPublicApi=()=>e.current,o.register=(i,a)=>{Object.keys(a).forEach(s=>{const l=a[s],u=o[s];if((u==null?void 0:u.spying)===!0?u.target=l:o[s]=l,i==="public"){const c=e.current,f=c[s];(f==null?void 0:f.spying)===!0?f.target=l:c[s]=l}})},o.register("private",{caches:{},eventManager:new sDe}),o}function cDe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[XV]:e.current}}function dDe(e,t){const n=m.useRef(),r=m.useRef();r.current||(r.current=uDe(n)),n.current||(n.current=cDe(r));const o=m.useCallback((...a)=>{const[s,l,u={}]=a;if(u.defaultMuiPrevented=!1,lDe(u)&&u.isPropagationStopped())return;const c=t.signature===cs.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,u,c)},[r,t.signature]),i=m.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const u=r.current;return()=>{u.eventManager.removeListener(a,s)}},[r]);return Yt(r,{subscribeEvent:i,publishEvent:o},"public"),m.useImperativeHandle(e,()=>n.current,[n]),m.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const fDe=(e,t)=>{const n=m.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function Ng(e){"@babel/helpers - typeof";return Ng=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},Ng(e)}function pDe(e,t){if(Ng(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ng(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zg(e){var t=pDe(e,"string");return Ng(t)==="symbol"?t:String(t)}const hDe=e=>{const t=m.useRef({}),n=m.useRef(!1),r=m.useCallback(c=>{n.current||!c||(n.current=!0,Object.values(c.appliers).forEach(f=>{f()}),n.current=!1)},[]),o=m.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const y=t.current[c];return y.processors.get(f)!==p&&(y.processors.set(f,p),r(y)),()=>{t.current[c].processors.set(f,null)}},[r]),i=m.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const y=t.current[c].appliers,v=be(y,[f].map(zg));t.current[c].appliers=v}),[]),a=m.useCallback(c=>{const f=t.current[c];r(f)},[r]),s=m.useCallback((...c)=>{const[f,p,y]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((b,C)=>C?C(b,y):b,p):p},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},u={unstable_applyPipeProcessors:s};Yt(e,l,"private"),Yt(e,u,"public")},Ir=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);$0(()=>{i()});const a=m.useRef(!0);m.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},zT=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);$0(()=>{i()});const a=m.useRef(!0);m.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},gb=(e,t,n,r)=>{const o=m.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);$0(()=>{o()});const i=m.useRef(!0);m.useEffect(()=>{i.current?i.current=!1:o()},[o])},ed="none",B8={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},mDe=e=>{const t=m.useRef(new Map),n=m.useRef({}),r=m.useCallback((l,u,c)=>{const f=()=>{const v=n.current[u],b=be(v,[l].map(zg));n.current[u]=b};n.current[u]||(n.current[u]={});const p=n.current[u],y=p[l];return p[l]=c,!y||y===c||l===e.current.getActiveStrategy(B8[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),f},[e]),o=m.useCallback((l,u)=>{const c=e.current.getActiveStrategy(B8[l]);if(c==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const f=n.current[l];if(!f||!f[c])throw new Error(`No processor found for processor "${l}" on strategy "${c}"`);const p=f[c];return p(u)},[e]),i=m.useCallback(l=>{var u;const f=Array.from(t.current.entries()).find(([,p])=>p.group!==l?!1:p.isAvailable());return(u=f==null?void 0:f[0])!=null?u:ed},[]),a=m.useCallback((l,u,c)=>{t.current.set(u,{group:l,isAvailable:c}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Yt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},gDe=(e,t)=>{const n=m.useRef({}),[,r]=m.useState(),o=m.useCallback(c=>{n.current[c.stateId]=c},[]),i=m.useCallback((c,f)=>{let p;if(PV(c)?p=c(e.current.state):p=c,e.current.state===p)return!1;let y=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const C=n.current[b],x=C.stateSelector(e.current.state,e.current.instanceId),w=C.stateSelector(p,e.current.instanceId);w!==x&&(v.push({stateId:C.stateId,hasPropChanged:w!==C.propModel}),C.propModel!==void 0&&w!==C.propModel&&(y=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(y||(e.current.state=p,e.current.publishEvent&&e.current.publishEvent("stateChange",p),e.current.store.update(p)),v.length===1){const{stateId:b,hasPropChanged:C}=v[0],x=n.current[b],w=x.stateSelector(p,e.current.instanceId);if(x.propOnChange&&C){const S=t.signature===cs.DataGridPro?{api:e.current,reason:f}:{reason:f};x.propOnChange(w,S)}y||e.current.publishEvent(x.changeEvent,w,{reason:f})}return!y},[e,t.signature]),a=m.useCallback((c,f,p)=>e.current.setState(y=>P({},y,{[c]:f(y[c])}),p),[e]),s=m.useCallback(()=>r(()=>e.current.state),[e]),l={setState:i,forceUpdate:s},u={updateControlState:a,registerControlState:o};Yt(e,l,"public"),Yt(e,u,"private")},vDe=(e,t)=>{const n=dDe(e,t);return aDe(n,t),gDe(n,t),hDe(n),mDe(n),fDe(n,t),n.current.register("private",{rootProps:t}),n},Ao=(e,t,n)=>{const r=m.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},yDe=/(\d+)-(\d+)-(\d+)/,bDe=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function nf(e,t,n,r){if(!e.value)return null;const[o,i,a,s,l]=e.value.match(n?bDe:yDe).slice(1).map(Number),u=new Date(o,i-1,a,s||0,l||0).getTime();return c=>{if(!c)return!1;if(r)return t(c.getTime(),u);const p=new Date(c).setHours(n?c.getHours():0,n?c.getMinutes():0,0,0);return t(p,u)}}const QV=e=>k0([{value:"is",getApplyFilterFnV7:t=>nf(t,(n,r)=>n===r,e),InputComponent:tf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>nf(t,(n,r)=>n!==r,e),InputComponent:tf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>nf(t,(n,r)=>n>r,e),InputComponent:tf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>nf(t,(n,r)=>n>=r,e),InputComponent:tf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>nf(t,(n,r)=>nnf(t,(n,r)=>n<=r,e),InputComponent:tf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function ZV({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 xDe({value:e,field:t,id:n}){return e?(ZV({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function wDe({value:e,field:t,id:n}){return e?(ZV({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const CDe=P({},Ma,{type:"date",sortComparator:LV,valueFormatter:xDe,filterOperators:QV(),renderEditCell:wV,pastedValueParser:e=>new Date(e)}),SDe=P({},Ma,{type:"dateTime",sortComparator:LV,valueFormatter:wDe,filterOperators:QV(!0),renderEditCell:wV,pastedValueParser:e=>new Date(e)}),Ll=e=>e==null?null:Number(e),H8=_0(e=>e==null||Number.isNaN(e)||e===""?null:t=>Ll(t)===Ll(e)),$De=()=>k0([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ll(t)===e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ll(t)!==e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ll(t)>e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ll(t)>=e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ll(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ll(t)<=e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:WV,InputComponentProps:{type:"number"}}]),_De=P({},Ma,{type:"number",align:"right",headerAlign:"right",sortComparator:FV,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>UFe(e)?e.toLocaleString():e||"",filterOperators:$De(),getApplyQuickFilterFn:VV(H8),getApplyQuickFilterFnV7:H8}),rf=e=>e==null||!OT(e)?e:e.value,kDe=()=>k0([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>rf(t)===rf(e.value),InputComponent:R8},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>rf(t)!==rf(e.value),InputComponent:R8},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(rf);return n=>t.includes(rf(n))},InputComponent:tLe}]),PDe=e=>typeof e[0]=="object",MDe=e=>OT(e)?e.value:e,TDe=e=>OT(e)?e.label:String(e),EDe=P({},Ma,{type:"singleSelect",getOptionLabel:TDe,getOptionValue:MDe,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Mc(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!PDe(a))return i.getOptionLabel(r);const s=a.find(l=>i.getOptionValue(l)===r);return s?i.getOptionLabel(s):""},renderEditCell:W6e,filterOperators:kDe(),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}}),JV="__default__",IDe=()=>({string:Ma,number:_De,date:CDe,dateTime:SDe,boolean:YV,singleSelect:EDe,[p2]:QLe,[JV]:Ma});function Ik(e,t){return typeof e=="string"&&[t,` -`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const eU=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const s=e.colDef.type;if(s==="number")o=String(e.value);else if(s==="date"||s==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Ik(o,n)};$s(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Rk{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const RDe=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Rk({delimiterCharacter:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(eU(s,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function ODe(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:s}=e,l=n.reduce((y,v)=>`${y}${RDe({id:v,columns:t,getCellParams:s.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r -`,"").trim();if(!o)return l;const u=t.filter(y=>y.field!==rh.field),c=[];if(i){const y=s.current.unstable_getAllGroupDetails();let v=0;const b=u.reduce((C,x)=>{const w=s.current.unstable_getColumnGroupPath(x.field);return C[x.field]=w,v=Math.max(v,w.length),C},{});for(let C=0;C{const S=(b[w.field]||[])[C],$=y[S];x.addValue($?$.headerName||$.groupId:"")})}}const f=new Rk({delimiterCharacter:r,sanitizeCellValue:Ik});return u.forEach(y=>{f.addValue(y.headerName||y.field)}),c.push(f),`${`${c.map(y=>y.getRowString()).join(`\r + })`,a=UV(i.replaceAll("$$",String(A8))),s=(l,u)=>a(t.current.getRowId,o,l,u);return A8+=1,s},ULe=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const s=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?n2(t):tl(t),l=[],{ignoreDiacritics:u}=t.current.rootProps,c=VV(t);return s.forEach(f=>{const p=t.current.getColumn(f),y=p==null?void 0:p.getApplyQuickFilterFn,v=p==null?void 0:p.getApplyQuickFilterFnV7,b=!hb(y),C=!hb(v);v&&!(b&&!C)?l.push({column:p,appliers:i.map(x=>{const w=u?ql(x):x;return{v7:!0,fn:v(w,p,c)}})}):y&&l.push({column:p,appliers:i.map(x=>{const w=u?ql(x):x;return{v7:!1,fn:y(w,p,c)}})})}),function(p,y){const v={},b={};e:for(let x=0;x{const r=VLe(e,t,n),o=ULe(e,t);return function(a,s,l){var u,c;l.passingFilterItems=(u=r==null?void 0:r(a,s))!=null?u:null,l.passingQuickFilterValues=(c=o==null?void 0:o(a,s))!=null?c:null}},F8=e=>e!=null,qLe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>qV(r,t)!==null)),e.cleanedFilterItems),KLe=(e,t,n,r,o)=>{const i=qLe(o,r,n.items),a=e.filter(F8),s=t.filter(F8);if(a.length>0){var l;const c=p=>a.some(y=>y[p.id]);if(((l=n.logicOperator)!=null?l:Lg().logicOperator)===zo.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(s.length>0&&n.quickFilterValues!=null){var u;const c=p=>s.some(y=>y[p]);if(((u=n.quickFilterLogicOperator)!=null?u:Lg().quickFilterLogicOperator)===zo.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},L8=$0(e=>{if(!e)return null;const t=new RegExp(N1(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=ql(a)),a!=null?t.test(a.toString()):!1}}),YLe=(e=!1)=>_0([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(N1(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ka},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ka},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${N1(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ka},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${N1(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ka},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:HV}]),Pa={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:f8e,type:"string",align:"left",filterOperators:YLe(),renderEditCell:F6e,getApplyQuickFilterFn:WV(L8),getApplyQuickFilterFnV7:L8},XLe=()=>_0([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Q9e}]);function QLe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const ZLe=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},KV=P({},Pa,{type:"boolean",align:"center",headerAlign:"center",renderCell:C6e,renderEditCell:k6e,sortComparator:AV,valueFormatter:QLe,filterOperators:XLe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>ZLe(e)}),Il="__check__",nh=P({},KV,{field:Il,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>fb(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>g.jsx(k8e,P({},e)),renderCell:e=>g.jsx(S8e,P({},e))}),f2="actions",JLe=P({},Pa,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:J6e,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),DT="__detail_panel_toggle__",bo=e=>e.editRows,eDe=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],tDe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:a}=e;return qe({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Jt,a)};function nDe({width:e}){if(!e)return null;const t={width:e};return g.jsx("div",{className:`${le.cell} ${le.withBorderColor}`,style:t})}const rDe=m.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:i,row:a,index:s,style:l,position:u,rowHeight:c,className:f,visibleColumns:p,renderedColumns:y,containerWidth:v,firstColumnToRender:b,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:x,isNotVisible:w,focusedCell:S,onClick:$,onDoubleClick:T,onMouseEnter:k,onMouseLeave:M,onMouseOut:I,onMouseOver:N}=t,E=be(t,eDe),A=Wt(),z=m.useRef(null),L=dt(),O=vd(A,L),D=it(A,ST),H=it(A,Di),B=it(A,i2),j=it(A,C0),W=it(A,bo),U=on(z,n),Z=s+j+2,Y={selected:r,hovered:o,isLastVisible:C,classes:L.classes,editing:A.current.getRowMode(i)===Bn.Edit,editable:L.editMode===gs.Row,rowHeight:c},se=tDe(Y);m.useLayoutEffect(()=>{c==="auto"&&z.current&&typeof ResizeObserver>"u"&&A.current.unstable_storeRowHeightMeasurement(i,z.current.clientHeight,u)},[A,c,i,u]),m.useLayoutEffect(()=>{if(O.range){const De=A.current.getRowIndexRelativeToVisibleRows(i);De!=null&&A.current.unstable_setLastMeasuredRowIndex(De)}const ee=z.current;if(!ee||c!=="auto"||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(De=>{const[Ae]=De,Ee=Ae.borderBoxSize&&Ae.borderBoxSize.length>0?Ae.borderBoxSize[0].blockSize:Ae.contentRect.height;A.current.unstable_storeRowHeightMeasurement(i,Ee,u)});return ye.observe(ee),()=>ye.disconnect()},[A,O.range,s,c,i,u]);const Q=m.useCallback((ee,pe)=>ye=>{ye.target.nodeType===1&&!ye.currentTarget.contains(ye.target)||A.current.getRow(i)&&(A.current.publishEvent(ee,A.current.getRowParams(i),ye),pe&&pe(ye))},[A,i]),ne=m.useCallback(ee=>{const pe=a6e(ee.target,le.cell),ye=pe==null?void 0:pe.getAttribute("data-field");if(ye){if(ye===nh.field||ye===DT||ye==="__reorder__"||A.current.getCellMode(i,ye)===Pn.Edit)return;const De=A.current.getColumn(ye);if((De==null?void 0:De.type)===f2)return}Q("rowClick",$)(ee)},[A,$,Q,i]),{slots:re,slotProps:ge,disableColumnReorder:xe}=L,fe=re.cell===_k?_k:g6e,Se=L.rowReordering,de=(ee,pe)=>{var ye,De;const Ae=xe&&ee.disableReorder||!Se&&!!H.length&&B>1&&Object.keys(W).length>0,Ee=(ye=(De=W[i])==null?void 0:De[ee.field])!=null?ye:null;let Ce=!1;return x!==void 0&&p[x].field===ee.field&&(Ce=!0),g.jsx(fe,P({column:ee,width:pe.width,rowId:i,height:c,showRightBorder:pe.showRightBorder,align:ee.align||"left",colIndex:pe.indexRelativeToAllColumns,colSpan:pe.colSpan,disableDragEvents:Ae,editCellState:Ee,isNotVisible:Ce},ge==null?void 0:ge.cell),ee.field)},ie=it(A,()=>P({},A.current.unstable_getRowInternalSizes(i)),CT);let Pe=c;if(Pe==="auto"&&ie){let ee=0;const pe=Object.entries(ie).reduce((ye,[De,Ae])=>/^base[A-Z]/.test(De)?(ee+=1,Ae>ye?Ae:ye):ye,0);pe>0&&ee>1&&(Pe=pe)}const $e=m.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const ee=P({},l,{maxHeight:c==="auto"?"none":c,minHeight:Pe});if(ie!=null&&ie.spacingTop){const pe=L.rowSpacingType==="border"?"borderTopWidth":"marginTop";ee[pe]=ie.spacingTop}if(ie!=null&&ie.spacingBottom){const pe=L.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ye=ee[pe];typeof ye!="number"&&(ye=parseInt(ye||"0",10)),ye+=ie.spacingBottom,ee[pe]=ye}return ee},[w,c,l,Pe,ie,L.rowSpacingType]),me=A.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof L.getRowClassName=="function"){var ue;const ee=s-(((ue=O.range)==null?void 0:ue.firstRowIndex)||0),pe=P({},A.current.getRowParams(i),{isFirstVisible:ee===0,isLastVisible:ee===O.rows.length-1,indexRelativeToCurrentPage:ee});me.push(L.getRowClassName(pe))}const ce=XFe(1e4,20,80),Te=A.current.getRowNode(i);if(!Te)return null;const Le=Te.type,Re=[];for(let ee=0;ee0&&g.jsx(nDe,{width:Oe})]}))}),oDe=u2(rDe);function iDe({privateApiRef:e,props:t,children:n}){const r=m.useRef(e.current.getPublicApi());return g.jsx(eV.Provider,{value:t,children:g.jsx(tV.Provider,{value:e,children:g.jsx(JW.Provider,{value:r,children:n})})})}const aDe=KFe()&&window.localStorage.getItem("DEBUG")!=null,lm=()=>{},sDe={debug:lm,info:lm,warn:lm,error:lm},D8=["debug","info","warn","error"];function j8(e,t,n=console){const r=D8.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return D8.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[u,...c]=l;n[a](`MUI: ${e} - ${u}`,...c)}:i[a]=lm,i),{})}const lDe=(e,t)=>{const n=m.useCallback(r=>aDe?j8(r,"debug",t.logger):t.logLevel?j8(r,t.logLevel.toString(),t.logger):sDe,[t.logLevel,t.logger]);Yt(e,{getLogger:n},"private")};class jT{static create(t){return new jT(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class uDe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;ae.isPropagationStopped!==void 0;let N8=0;function dDe(e){var t;const n=(t=e.current)==null?void 0:t[YV];if(n)return n;const r={},o={state:r,store:jT.create(r),instanceId:{id:N8}};return N8+=1,o.getPublicApi=()=>e.current,o.register=(i,a)=>{Object.keys(a).forEach(s=>{const l=a[s],u=o[s];if((u==null?void 0:u.spying)===!0?u.target=l:o[s]=l,i==="public"){const c=e.current,f=c[s];(f==null?void 0:f.spying)===!0?f.target=l:c[s]=l}})},o.register("private",{caches:{},eventManager:new uDe}),o}function fDe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[YV]:e.current}}function pDe(e,t){const n=m.useRef(),r=m.useRef();r.current||(r.current=dDe(n)),n.current||(n.current=fDe(r));const o=m.useCallback((...a)=>{const[s,l,u={}]=a;if(u.defaultMuiPrevented=!1,cDe(u)&&u.isPropagationStopped())return;const c=t.signature===cs.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,u,c)},[r,t.signature]),i=m.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const u=r.current;return()=>{u.eventManager.removeListener(a,s)}},[r]);return Yt(r,{subscribeEvent:i,publishEvent:o},"public"),m.useImperativeHandle(e,()=>n.current,[n]),m.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const hDe=(e,t)=>{const n=m.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function jg(e){"@babel/helpers - typeof";return jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function mDe(e,t){if(jg(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jg(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ng(e){var t=mDe(e,"string");return jg(t)==="symbol"?t:String(t)}const gDe=e=>{const t=m.useRef({}),n=m.useRef(!1),r=m.useCallback(c=>{n.current||!c||(n.current=!0,Object.values(c.appliers).forEach(f=>{f()}),n.current=!1)},[]),o=m.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const y=t.current[c];return y.processors.get(f)!==p&&(y.processors.set(f,p),r(y)),()=>{t.current[c].processors.set(f,null)}},[r]),i=m.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const y=t.current[c].appliers,v=be(y,[f].map(Ng));t.current[c].appliers=v}),[]),a=m.useCallback(c=>{const f=t.current[c];r(f)},[r]),s=m.useCallback((...c)=>{const[f,p,y]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((b,C)=>C?C(b,y):b,p):p},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},u={unstable_applyPipeProcessors:s};Yt(e,l,"private"),Yt(e,u,"public")},Ir=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);S0(()=>{i()});const a=m.useRef(!0);m.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},NT=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);S0(()=>{i()});const a=m.useRef(!0);m.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},mb=(e,t,n,r)=>{const o=m.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);S0(()=>{o()});const i=m.useRef(!0);m.useEffect(()=>{i.current?i.current=!1:o()},[o])},Jc="none",z8={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},vDe=e=>{const t=m.useRef(new Map),n=m.useRef({}),r=m.useCallback((l,u,c)=>{const f=()=>{const v=n.current[u],b=be(v,[l].map(Ng));n.current[u]=b};n.current[u]||(n.current[u]={});const p=n.current[u],y=p[l];return p[l]=c,!y||y===c||l===e.current.getActiveStrategy(z8[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),f},[e]),o=m.useCallback((l,u)=>{const c=e.current.getActiveStrategy(z8[l]);if(c==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const f=n.current[l];if(!f||!f[c])throw new Error(`No processor found for processor "${l}" on strategy "${c}"`);const p=f[c];return p(u)},[e]),i=m.useCallback(l=>{var u;const f=Array.from(t.current.entries()).find(([,p])=>p.group!==l?!1:p.isAvailable());return(u=f==null?void 0:f[0])!=null?u:Jc},[]),a=m.useCallback((l,u,c)=>{t.current.set(u,{group:l,isAvailable:c}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Yt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},yDe=(e,t)=>{const n=m.useRef({}),[,r]=m.useState(),o=m.useCallback(c=>{n.current[c.stateId]=c},[]),i=m.useCallback((c,f)=>{let p;if(kV(c)?p=c(e.current.state):p=c,e.current.state===p)return!1;let y=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const C=n.current[b],x=C.stateSelector(e.current.state,e.current.instanceId),w=C.stateSelector(p,e.current.instanceId);w!==x&&(v.push({stateId:C.stateId,hasPropChanged:w!==C.propModel}),C.propModel!==void 0&&w!==C.propModel&&(y=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(y||(e.current.state=p,e.current.publishEvent&&e.current.publishEvent("stateChange",p),e.current.store.update(p)),v.length===1){const{stateId:b,hasPropChanged:C}=v[0],x=n.current[b],w=x.stateSelector(p,e.current.instanceId);if(x.propOnChange&&C){const S=t.signature===cs.DataGridPro?{api:e.current,reason:f}:{reason:f};x.propOnChange(w,S)}y||e.current.publishEvent(x.changeEvent,w,{reason:f})}return!y},[e,t.signature]),a=m.useCallback((c,f,p)=>e.current.setState(y=>P({},y,{[c]:f(y[c])}),p),[e]),s=m.useCallback(()=>r(()=>e.current.state),[e]),l={setState:i,forceUpdate:s},u={updateControlState:a,registerControlState:o};Yt(e,l,"public"),Yt(e,u,"private")},bDe=(e,t)=>{const n=pDe(e,t);return lDe(n,t),yDe(n,t),gDe(n),vDe(n),hDe(n,t),n.current.register("private",{rootProps:t}),n},Ao=(e,t,n)=>{const r=m.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},xDe=/(\d+)-(\d+)-(\d+)/,wDe=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function tf(e,t,n,r){if(!e.value)return null;const[o,i,a,s,l]=e.value.match(n?wDe:xDe).slice(1).map(Number),u=new Date(o,i-1,a,s||0,l||0).getTime();return c=>{if(!c)return!1;if(r)return t(c.getTime(),u);const p=new Date(c).setHours(n?c.getHours():0,n?c.getMinutes():0,0,0);return t(p,u)}}const XV=e=>_0([{value:"is",getApplyFilterFnV7:t=>tf(t,(n,r)=>n===r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>tf(t,(n,r)=>n!==r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>tf(t,(n,r)=>n>r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>tf(t,(n,r)=>n>=r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>tf(t,(n,r)=>ntf(t,(n,r)=>n<=r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function QV({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(` +`))}function CDe({value:e,field:t,id:n}){return e?(QV({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function SDe({value:e,field:t,id:n}){return e?(QV({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const $De=P({},Pa,{type:"date",sortComparator:FV,valueFormatter:CDe,filterOperators:XV(),renderEditCell:xV,pastedValueParser:e=>new Date(e)}),_De=P({},Pa,{type:"dateTime",sortComparator:FV,valueFormatter:SDe,filterOperators:XV(!0),renderEditCell:xV,pastedValueParser:e=>new Date(e)}),Fl=e=>e==null?null:Number(e),B8=$0(e=>e==null||Number.isNaN(e)||e===""?null:t=>Fl(t)===Fl(e)),kDe=()=>_0([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fl(t)===e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fl(t)!==e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)>e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)>=e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)<=e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:HV,InputComponentProps:{type:"number"}}]),PDe=P({},Pa,{type:"number",align:"right",headerAlign:"right",sortComparator:AV,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>qFe(e)?e.toLocaleString():e||"",filterOperators:kDe(),getApplyQuickFilterFn:WV(B8),getApplyQuickFilterFnV7:B8}),nf=e=>e==null||!RT(e)?e:e.value,MDe=()=>_0([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>nf(t)===nf(e.value),InputComponent:I8},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>nf(t)!==nf(e.value),InputComponent:I8},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(nf);return n=>t.includes(nf(n))},InputComponent:rLe}]),TDe=e=>typeof e[0]=="object",EDe=e=>RT(e)?e.value:e,IDe=e=>RT(e)?e.label:String(e),RDe=P({},Pa,{type:"singleSelect",getOptionLabel:IDe,getOptionValue:EDe,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Pc(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!TDe(a))return i.getOptionLabel(r);const s=a.find(l=>i.getOptionValue(l)===r);return s?i.getOptionLabel(s):""},renderEditCell:U6e,filterOperators:MDe(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(s=>i(s)===e))return e}}),ZV="__default__",ODe=()=>({string:Pa,number:PDe,date:$De,dateTime:_De,boolean:KV,singleSelect:RDe,[f2]:JLe,[ZV]:Pa});function Ek(e,t){return typeof e=="string"&&[t,` +`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const JV=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const s=e.colDef.type;if(s==="number")o=String(e.value);else if(s==="date"||s==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Ek(o,n)};$s(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Ik{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const ADe=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Ik({delimiterCharacter:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(JV(s,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function FDe(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:s}=e,l=n.reduce((y,v)=>`${y}${ADe({id:v,columns:t,getCellParams:s.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r +`,"").trim();if(!o)return l;const u=t.filter(y=>y.field!==nh.field),c=[];if(i){const y=s.current.unstable_getAllGroupDetails();let v=0;const b=u.reduce((C,x)=>{const w=s.current.unstable_getColumnGroupPath(x.field);return C[x.field]=w,v=Math.max(v,w.length),C},{});for(let C=0;C{const S=(b[w.field]||[])[C],$=y[S];x.addValue($?$.headerName||$.groupId:"")})}}const f=new Ik({delimiterCharacter:r,sanitizeCellValue:Ek});return u.forEach(y=>{f.addValue(y.headerName||y.field)}),c.push(f),`${`${c.map(y=>y.getRowString()).join(`\r `)}\r -`}${l}`.trim()}function W8(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 ADe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{W8(e)}):W8(e)}function FDe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const LDe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=m.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||FDe(a.target))return;let s="";if(e.current.getSelectedRows().size>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=si(e);if(u){const c=e.current.getCellParams(u.id,u.field);s=eU(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(ADe(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);YFe(e,e.current.rootElementRef,"keydown",i),Yn(e,"clipboardCopy",t.onClipboardCopy)},DDe=e=>P({},e,{columnMenu:{open:!1}}),jDe=e=>{const t=ho(e,"useGridColumnMenu"),n=m.useCallback(a=>{e.current.setState(l=>l.columnMenu.open&&l.columnMenu.field===a?l:(t.debug("Opening Column Menu"),P({},l,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=m.useCallback(()=>{const a=_k(e.current.state);if(a.field){const l=vd(e),u=_a(e),c=nl(e);let f=a.field;if(l[f]||(f=c[0]),u[f]===!1){const p=c.filter(v=>v===f?!0:u[v]!==!1),y=p.indexOf(f);f=p[y+1]||p[y-1]}e.current.setColumnHeaderFocus(f)}e.current.setState(l=>!l.columnMenu.open&&l.columnMenu.field===void 0?l:(t.debug("Hiding Column Menu"),P({},l,{columnMenu:P({},l.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=m.useCallback(a=>{t.debug("Toggle Column Menu");const s=_k(e.current.state);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Yt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),vt(e,"columnResizeStart",r),vt(e,"virtualScrollerWheel",e.current.hideColumnMenu),vt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},tU=["maxWidth","minWidth","width","flex"];function NDe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const s=o.all[a];s&&s.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,u=0;o.frozenFields.forEach(c=>{s-=o.all[c].computedWidth,l-=o.all[c].flex});for(let c=0;cf.maxWidth&&(u+=f.maxWidth-y,y=f.maxWidth,a.max[f.field]=!0),o.all[f.field]={frozen:!1,computedWidth:y,flex:f.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Ok=(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=Tp(l.width||Ma.width,l.minWidth||Ma.minWidth,l.maxWidth||Ma.maxWidth),o+=u,l.computedWidth=u}n[s]=l});const a=Math.max(t-o,0);if(r>0&&t>0){const s=NDe({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(s).forEach(l=>{n[l].computedWidth=s[l].computedWidth})}return P({},e,{lookup:n})},zDe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c!i[c])],l=P({},e.lookup);for(let c=0;c{p[y]=v===-1?1/0:v}),l[f]=p}return P({},e,{orderedFields:s,lookup:l})};function V8(e,t){let n=e[JV];return t&&e[t]&&(n=e[t]),n}const ff=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=_a(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,s,l;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=Pc(e.current.state);c={orderedFields:i?[]:[...v.orderedFields],lookup:P({},v.lookup),columnVisibilityModel:o}}let f={};i&&!u&&(f=Object.keys(c.lookup).reduce((v,b)=>P({},v,{[b]:!1}),{})),t.forEach(v=>{const{field:b}=v;f[b]=!0;let C=c.lookup[b];C==null?(C=P({},V8(r,v.type),{field:b,hasBeenResized:!1}),c.orderedFields.push(b)):i&&c.orderedFields.push(b),C&&C.type!==v.type&&(C=P({},V8(r,v.type),{field:b}));let x=C.hasBeenResized;tU.forEach(w=>{v[w]!==void 0&&(x=!0,v[w]===-1&&(v[w]=1/0))}),c.lookup[b]=P({},C,v,{hasBeenResized:x})}),i&&!u&&Object.keys(c.lookup).forEach(v=>{f[v]||delete c.lookup[v]});const p=e.current.unstable_applyPipeProcessors("hydrateColumns",c),y=zDe(p,n);return Ok(y,(a=(s=(l=e.current).getRootDimensions)==null||(s=s.call(l))==null?void 0:s.viewportInnerSize.width)!=null?a:0)},U8=e=>t=>P({},t,{columns:e});function Ak({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=ff({apiRef:n,columnTypes:nU,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 WDe(e,t){var n,r;const o=ho(e,"useGridColumns"),i=nU,a=m.useRef(t.columns),s=m.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:_a,changeEvent:"columnVisibilityModelChange"});const l=m.useCallback(O=>{o.debug("Updating columns state."),e.current.setState(U8(O)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",O.orderedFields)},[o,e]),u=m.useCallback(O=>vd(e)[O],[e]),c=m.useCallback(()=>us(e),[e]),f=m.useCallback(()=>Xr(e),[e]),p=m.useCallback((O,D=!0)=>(D?Xr(e):us(e)).findIndex(B=>B.field===O),[e]),y=m.useCallback(O=>{const D=p(O);return Mp(e)[D]},[e,p]),v=m.useCallback(O=>{_a(e)!==O&&(e.current.setState(H=>P({},H,{columns:ff({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),b=m.useCallback(O=>{const D=ff({apiRef:e,columnTypes:i,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});l(D)},[e,l,i]),C=m.useCallback((O,D)=>{var H;const B=_a(e),j=(H=B[O])!=null?H:!0;if(D!==j){const W=P({},B,{[O]:D});e.current.setColumnVisibilityModel(W)}},[e]),x=m.useCallback(O=>nl(e).findIndex(H=>H===O),[e]),w=m.useCallback((O,D)=>{const H=nl(e),B=x(O);if(B===D)return;o.debug(`Moving column ${O} to index ${D}`);const j=[...H],W=j.splice(B,1)[0];j.splice(D,0,W),l(P({},Pc(e.current.state),{orderedFields:j}));const U={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:B};e.current.publishEvent("columnIndexChange",U)},[e,o,l,x]),S=m.useCallback((O,D)=>{var H,B;o.debug(`Updating column ${O} width to ${D}`);const j=Pc(e.current.state),W=j.lookup[O],U=P({},W,{width:D,hasBeenResized:!0});l(Ok(P({},j,{lookup:P({},j.lookup,{[O]:U})}),(H=(B=e.current.getRootDimensions())==null?void 0:B.viewportInnerSize.width)!=null?H:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:U,width:D})},[e,o,l]),$={getColumn:u,getAllColumns:c,getColumnIndex:p,getColumnPosition:y,getVisibleColumns:f,getColumnIndexRelativeToVisibleColumns:x,updateColumns:b,setColumnVisibilityModel:v,setColumnVisibility:C,setColumnWidth:S},T={setColumnIndex:w};Yt(e,$,"public"),Yt(e,T,t.signature===cs.DataGrid?"private":"public");const k=m.useCallback((O,D)=>{var H,B;const j={},W=_a(e);(!D.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((H=(B=t.initialState)==null||(B=B.columns)==null?void 0:B.columnVisibilityModel)!=null?H:{}).length>0||Object.keys(W).length>0)&&(j.columnVisibilityModel=W),j.orderedFields=nl(e);const Z=us(e),Y={};return Z.forEach(se=>{if(se.hasBeenResized){const Q={};tU.forEach(ne=>{let re=se[ne];re===1/0&&(re=-1),Q[ne]=re}),Y[se.field]=Q}}),Object.keys(Y).length>0&&(j.dimensions=Y),P({},O,{columns:j})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),M=m.useCallback((O,D)=>{var H;const B=(H=D.stateToRestore.columns)==null?void 0:H.columnVisibilityModel,j=D.stateToRestore.columns;if(B==null&&j==null)return O;const W=ff({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:j,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(U8(W)),j!=null&&e.current.publishEvent("columnsChange",W.orderedFields),O},[e,i]),I=m.useCallback((O,D)=>{if(D===Ea.columns){var H;const B=t.slots.columnsPanel;return g.jsx(B,P({},(H=t.slotProps)==null?void 0:H.columnsPanel))}return O},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),N=m.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ir(e,"columnMenu",N),Ir(e,"exportState",k),Ir(e,"restoreState",M),Ir(e,"preferencePanel",I);const E=m.useRef(null);vt(e,"viewportInnerSizeChange",O=>{E.current!==O.width&&(E.current=O.width,l(Ok(Pc(e.current.state),O.width)))});const z=m.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const O=ff({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});l(O)},[e,o,l,i]);zT(e,"hydrateColumns",z);const L=m.useRef(!0);m.useEffect(()=>{if(L.current){L.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&s.current===i)return;const O=ff({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,s.current=i,l(O)},[o,e,l,t.columns,i]),m.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const VDe=.7,UDe=1.3,rU={compact:VDe,comfortable:UDe,standard:1},GDe=(e,t)=>P({},e,{density:{value:t.density,factor:rU[t.density]}}),qDe=(e,t)=>{const n=ho(e,"useDensity"),r=m.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(a=>{const s=MT(a),l={value:i,factor:rU[i]};return rl(s,l)?a:P({},a,{density:l})}),e.current.forceUpdate()},[n,e]);m.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Yt(e,{setDensity:r},"public")};function KDe(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 oU=({apiRef:e,options:t})=>{const n=us(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(s=>s.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:Xr(e)).filter(o=>!o.disableExport)},YDe=({apiRef:e})=>{var t,n;const r=HAe(e),o=Ca(e),i=e.current.getSelectedRows(),a=r.filter(c=>o[c].type!=="footer"),s=th(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},XDe=(e,t)=>{const n=ho(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=m.useCallback((u={})=>{var c,f,p;n.debug("Get data as CSV");const y=oU({apiRef:e,options:u}),b=((c=u.getRowsToExport)!=null?c:YDe)({apiRef:e});return ODe({columns:y,rowIds:b,delimiterCharacter:u.delimiter||",",includeHeaders:(f=u.includeHeaders)!=null?f:!0,includeColumnGroupsHeaders:(p=u.includeColumnGroupsHeaders)!=null?p:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=m.useCallback(u=>{n.debug("Export data as CSV");const c=i(u),f=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",c],{type:"text/csv"});KDe(f,"csv",u==null?void 0:u.fileName)},[n,i]);Yt(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=m.useCallback((u,c)=>{var f;return(f=c.csvOptions)!=null&&f.disableToolbarButton?u:[...u,{component:g.jsx(mLe,{options:c.csvOptions}),componentName:"csvExport"}]},[]);Ir(e,"exportMenu",l)},QDe=(e,t)=>{var n,r;const o=P({},EV(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return IV(o.pageSize,t.signature),P({},e,{pagination:{paginationModel:o}})},B1=(e,t,n)=>r=>{var o;let i=r.paginationModel;const a=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,s=TV(e,a);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const l=ZFe(i.page,s);return l!==i.page&&(i=P({},i,{page:l})),IV(i.pageSize,t),{paginationModel:i}},ZDe=(e,t)=>{var n;const r=ho(e,"useGridPagination"),o=it(e,s2),i=it(e,nh),a=Math.floor(t.rowHeight*i);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:zi,changeEvent:"paginationModelChange"});const s=m.useCallback(b=>{const C=zi(e);b!==C.page&&(r.debug(`Setting page to ${b}`),e.current.setPaginationModel({page:b,pageSize:C.pageSize}))},[e,r]),l=m.useCallback(b=>{const C=zi(e);b!==C.pageSize&&(r.debug(`Setting page size to ${b}`),e.current.setPaginationModel({pageSize:b,page:C.page}))},[e,r]),u=m.useCallback(b=>{var C;const x=zi(e);b!==x&&(r.debug("Setting 'paginationModel' to",b),e.current.updateControlState("pagination",B1((C=t.rowCount)!=null?C:o,t.signature,b),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Yt(e,{setPage:s,setPageSize:l,setPaginationModel:u},"public");const f=m.useCallback((b,C)=>{var x;const w=zi(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((x=t.initialState)==null||(x=x.pagination)==null?void 0:x.paginationModel)!=null||w.page!==0&&w.pageSize!==QFe(t.autoPageSize)?P({},b,{pagination:P({},b.pagination,{paginationModel:w})}):b},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),p=m.useCallback((b,C)=>{var x,w,S;const $=(x=C.stateToRestore.pagination)!=null&&x.paginationModel?P({},EV(t.autoPageSize),(w=C.stateToRestore.pagination)==null?void 0:w.paginationModel):zi(e);return e.current.updateControlState("pagination",B1((S=t.rowCount)!=null?S:o,t.signature,$),"stateRestorePreProcessing"),b},[e,t.autoPageSize,t.rowCount,t.signature,o]);Ir(e,"exportState",f),Ir(e,"restoreState",p);const y=()=>{var b;const C=zi(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},v=m.useCallback(()=>{const b=e.current.getRootDimensions();if(!t.autoPageSize||!b)return;const C=vV(e),x=Math.floor((b.viewportInnerSize.height-C.top-C.bottom)/a);e.current.setPageSize(x)},[e,t.autoPageSize,a]);vt(e,"viewportInnerSizeChange",v),vt(e,"paginationModelChange",y),m.useEffect(()=>{},[t.rowCount,t.paginationMode]),m.useEffect(()=>{var b;e.current.updateControlState("pagination",B1((b=t.rowCount)!=null?b:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),m.useEffect(()=>{v()},[v])};function JDe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function e7e(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 t7e=(e,t)=>{const n=ho(e,"useGridPrintExport"),r=m.useRef(null),o=m.useRef(null),i=m.useRef({}),a=m.useRef([]);m.useEffect(()=>{r.current=Gn(e.current.rootElementRef.current)},[e]);const s=m.useCallback((v,b,C)=>new Promise(x=>{const w=oU({apiRef:e,options:{fields:v,allColumns:b}}).map(T=>T.field),S=us(e),$={};S.forEach(T=>{$[T.field]=w.includes(T.field)}),C&&($[rh.field]=!0),e.current.setColumnVisibilityModel($),x()}),[e]),l=m.useCallback(v=>{const C=v({apiRef:e}).map(x=>e.current.getRow(x));e.current.setRows(C)},[e]),u=m.useCallback((v,b)=>{var C,x;const w=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),S=v.contentDocument;if(!S)return;const $=jg(e.current.state),T=e.current.rootElementRef.current,k=T.cloneNode(!0),M=k.querySelector(`.${le.main}`);M.style.overflow="visible",k.style.contain="size";const N=k.querySelector(`.${le.columnHeaders}`).querySelector(`.${le.columnHeadersInner}`);N.style.width="100%";let E=((C=T.querySelector(`.${le.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,A=((x=T.querySelector(`.${le.footerContainer}`))==null?void 0:x.offsetHeight)||0;if(w.hideToolbar){var z;(z=k.querySelector(`.${le.toolbarContainer}`))==null||z.remove(),E=0}if(w.hideFooter){var L;(L=k.querySelector(`.${le.footerContainer}`))==null||L.remove(),A=0}const O=$.currentPageTotalHeight+BT(e,t.columnHeaderHeight)+E+A;if(k.style.height=`${O}px`,k.style.boxSizing="content-box",b!=null&&b.getRowsToExport){const j=k.querySelector(`.${le.footerContainer}`);j.style.position="absolute",j.style.width="100%",j.style.top=`${O-A}px`}const D=document.createElement("div");D.appendChild(k),S.body.innerHTML=D.innerHTML;const H=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof H=="string"){const j=S.createElement("style");j.appendChild(S.createTextNode(H)),S.head.appendChild(j)}w.bodyClassName&&S.body.classList.add(...w.bodyClassName.split(" "));const B=[];if(w.copyStyles){const j=T.getRootNode(),U=(j.constructor.name==="ShadowRoot"?j:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let Z=0;Z{se.addEventListener("load",()=>Q())})),S.head.appendChild(se)}}}Promise.all(B).then(()=>{v.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=m.useCallback(v=>{var b;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(b=b.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),p={exportDataAsPrint:m.useCallback(async v=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=_a(e),a.current=e.current.getSortedRows(),t.pagination){const C=dV(e),x={page:0,pageSize:C};e.current.updateControlState("pagination",B1(C,"DataGridPro",x)),e.current.forceUpdate()}await s(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),v!=null&&v.getRowsToExport&&l(v.getRowsToExport),e.current.unstable_setVirtualization(!1),await JDe();const b=e7e(v==null?void 0:v.fileName);b.onload=()=>{u(b,v),b.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&c(b)})},r.current.body.appendChild(b)},[t,n,e,u,c,s,l])};Yt(e,p,"public");const y=m.useCallback((v,b)=>{var C;return(C=b.printOptions)!=null&&C.disableToolbarButton?v:[...v,{component:g.jsx(gLe,{options:b.printOptions}),componentName:"printExport"}]},[]);Ir(e,"exportMenu",y)},n7e=(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:Dg();return P({},e,{filter:{filterModel:qV(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},r7e=e=>e.filteredRowsLookup;function G8(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function o7e(){return n2(Object.values)}const i7e=(e,t)=>{var n,r;const o=ho(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:qr,changeEvent:"filterModelChange"});const i=m.useCallback(()=>{e.current.setState(E=>{const A=qr(E,e.current.instanceId),z=t.filterMode==="client"?VLe(A,e,t.disableEval):null,L=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:z,filterModel:A??Dg()}),O=P({},E,{filter:P({},E.filter,L)}),D=G8(e,O);return P({},O,{visibleRowsLookup:D})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=m.useCallback((E,A)=>A==null||A.filterable===!1||t.disableColumnFilter?E:[...E,"columnMenuFilterItem"],[t.disableColumnFilter]),s=m.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),l=m.useCallback(E=>{const A=qr(e),z=[...A.items],L=z.findIndex(O=>O.id===E.id);L===-1?z.push(E):z[L]=E,e.current.setFilterModel(P({},A,{items:z}),"upsertFilterItem")},[e]),u=m.useCallback(E=>{const A=qr(e),z=[...A.items];E.forEach(L=>{const O=E.findIndex(D=>D.id===L.id);O===-1?z.push(L):z[O]=L}),e.current.setFilterModel(P({},A,{items:E}),"upsertFilterItems")},[e]),c=m.useCallback(E=>{const A=qr(e),z=A.items.filter(L=>L.id!==E.id);z.length!==A.items.length&&e.current.setFilterModel(P({},A,{items:z}),"deleteFilterItem")},[e]),f=m.useCallback((E,A,z)=>{if(o.debug("Displaying filter panel"),E){const L=qr(e),O=L.items.filter(j=>{var W;if(j.value!==void 0)return!(Array.isArray(j.value)&&j.value.length===0);const Z=(W=e.current.getColumn(j.field).filterOperators)==null?void 0:W.find(se=>se.value===j.operator);return!(typeof(Z==null?void 0:Z.requiresFilterValue)>"u"?!0:Z==null?void 0:Z.requiresFilterValue)});let D;const H=O.find(j=>j.field===E),B=e.current.getColumn(E);H?D=O:t.disableMultipleColumnsFiltering?D=[Ek({field:E,operator:B.filterOperators[0].value},e)]:D=[...O,Ek({field:E,operator:B.filterOperators[0].value},e)],e.current.setFilterModel(P({},L,{items:D}))}e.current.showPreferences(Ea.filters,A,z)},[e,o,t.disableMultipleColumnsFiltering]),p=m.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),y=m.useCallback(E=>{const A=qr(e);A.logicOperator!==E&&e.current.setFilterModel(P({},A,{logicOperator:E}),"changeLogicOperator")},[e]),v=m.useCallback(E=>{const A=qr(e);rl(A.quickFilterValues,E)||e.current.setFilterModel(P({},A,{quickFilterValues:[...E]}))},[e]),b=m.useCallback((E,A)=>{qr(e)!==E&&(o.debug("Setting filter model"),e.current.updateControlState("filter",A8(E,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:y,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:u,setFilterModel:b,showFilterPanel:f,hideFilterPanel:p,setQuickFilterValues:v,ignoreDiacritics:t.ignoreDiacritics};Yt(e,C,"public");const x=m.useCallback((E,A)=>{var z;const L=qr(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((z=t.initialState)==null||(z=z.filter)==null?void 0:z.filterModel)!=null||!rl(L,Dg())?P({},E,{filter:{filterModel:L}}):E},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),w=m.useCallback((E,A)=>{var z;const L=(z=A.stateToRestore.filter)==null?void 0:z.filterModel;return L==null?E:(e.current.updateControlState("filter",A8(L,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},E,{callbacks:[...E.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=m.useCallback((E,A)=>{if(A===Ea.filters){var z;const L=t.slots.filterPanel;return g.jsx(L,P({},(z=t.slotProps)==null?void 0:z.filterPanel))}return E},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:$}=t,T=CT(o7e),k=m.useCallback(E=>{if(t.filterMode!=="client"||!E.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=ql(e),z={},{isRowMatchingFilters:L}=E,O={},D={passingFilterItems:null,passingQuickFilterValues:null},H=T.current(e.current.state.rows.dataRowIdToModelLookup);for(let W=0;W{o.debug("onColUpdated - GridColumns changed, applying filters");const E=qr(e),A=PAe(e),z=E.items.filter(L=>L.field&&A[L.field]);z.length{E==="filtering"&&e.current.unstable_applyFilters()},[e]),N=m.useCallback(()=>{e.current.setState(E=>P({},E,{visibleRowsLookup:G8(e,E)})),e.current.forceUpdate()},[e]);vt(e,"rowsSet",i),vt(e,"columnsChange",M),vt(e,"activeStrategyProcessorChange",I),vt(e,"rowExpansionChange",N),vt(e,"columnVisibilityModelChange",()=>{const E=qr(e);E.quickFilterValues&&E.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),$0(()=>{e.current.unstable_applyFilters()}),pn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},a7e=e=>P({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),s7e=(e,t)=>{const n=ho(e,"useGridFocus"),r=m.useRef(null),o=m.useCallback((M,I)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),I)},[e]),i=m.useCallback((M,I)=>{const N=si(e);(N==null?void 0:N.id)===M&&(N==null?void 0:N.field)===I||(e.current.setState(E=>(n.debug(`Focusing on cell with id=${M} and field=${I}`),P({},E,{tabIndex:{cell:{id:M,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(N&&o(N,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,I))))},[e,n,o]),a=m.useCallback((M,I={})=>{const N=si(e);o(N,I),e.current.setState(E=>(n.debug(`Focusing on column header with colIndex=${M}`),P({},E,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),s=m.useCallback((M,I={})=>{const N=si(e);o(N,I),e.current.setState(E=>(n.debug(`Focusing on column header filter with colIndex=${M}`),P({},E,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=m.useCallback((M,I,N={})=>{const E=si(e);E&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),N),e.current.setState(A=>P({},A,{tabIndex:{columnGroupHeader:{field:M,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=m.useCallback(()=>sb(e),[e]),c=m.useCallback((M,I,N)=>{let E=e.current.getColumnIndex(I);const A=Xr(e),z=hb(e,{pagination:t.pagination,paginationMode:t.paginationMode}),L=th(e),O=[].concat(L.top||[],z.rows,L.bottom||[]);let D=O.findIndex(W=>W.id===M);N==="right"?E+=1:N==="left"?E-=1:D+=1,E>=A.length?(D+=1,D=0&&(E=A.length-1)),D=Tp(D,0,O.length-1);const H=O[D];if(!H)return;const B=e.current.unstable_getCellColSpanInfo(H.id,E);B&&B.spannedByColSpan&&(N==="left"||N==="below"?E=B.leftVisibleCellIndex:N==="right"&&(E=B.rightVisibleCellIndex)),E=Tp(E,0,A.length-1);const j=A[E];e.current.setCellFocus(H.id,j.field)},[e,t.pagination,t.paginationMode]),f=m.useCallback(({id:M,field:I})=>{e.current.setCellFocus(M,I)},[e]),p=m.useCallback((M,I)=>{I.key==="Enter"||I.key==="Tab"||I.key==="Shift"||fb(I.key)||e.current.setCellFocus(M.id,M.field)},[e]),y=m.useCallback(({field:M},I)=>{I.target===I.currentTarget&&e.current.setColumnHeaderFocus(M,I)},[e]),v=m.useCallback(({fields:M,depth:I},N)=>{if(N.target!==N.currentTarget)return;const E=sb(e);E!==null&&E.depth===I&&M.includes(E.field)||e.current.setColumnGroupHeaderFocus(M[0],I,N)},[e]),b=m.useCallback((M,I)=>{var N;(N=I.relatedTarget)!=null&&N.className.includes(le.columnHeader)||(n.debug("Clearing focus"),e.current.setState(E=>P({},E,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=m.useCallback(M=>{r.current=M},[]),x=m.useCallback(M=>{const I=r.current;r.current=null;const N=si(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:I}))return;if(!N){I&&e.current.setCellFocus(I.id,I.field);return}if((I==null?void 0:I.id)===N.id&&(I==null?void 0:I.field)===N.field)return;const A=e.current.getCellElement(N.id,N.field);A!=null&&A.contains(M.target)||(I?e.current.setCellFocus(I.id,I.field):(e.current.setState(z=>P({},z,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(N,M)))},[e,o]),w=m.useCallback(M=>{if(M.cellMode==="view")return;const I=si(e);((I==null?void 0:I.id)!==M.id||(I==null?void 0:I.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),S=m.useCallback(()=>{const M=si(e);M&&!e.current.getRow(M.id)&&e.current.setState(I=>P({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),$=Dn(()=>{const M=si(e);if(!M)return;const I=hb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(I.rows.find(A=>A.id===M.id))return;const E=Xr(e);e.current.setState(A=>P({},A,{tabIndex:{cell:{id:I.rows[0].id,field:E[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},k={moveFocusToRelativeCell:c,setColumnGroupHeaderFocus:l,getColumnGroupHeaderFocus:u};Yt(e,T,"public"),Yt(e,k,"private"),m.useEffect(()=>{const M=Gn(e.current.rootElementRef.current);return M.addEventListener("mouseup",x),()=>{M.removeEventListener("mouseup",x)}},[e,x]),vt(e,"columnHeaderBlur",b),vt(e,"cellDoubleClick",f),vt(e,"cellMouseDown",C),vt(e,"cellKeyDown",p),vt(e,"cellModeChange",w),vt(e,"columnHeaderFocus",y),vt(e,"columnGroupHeaderFocus",v),vt(e,"rowsSet",S),vt(e,"paginationModelChange",$)};function l7e(e,t){const n=th(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const n$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(et)return e-1;return null},r$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e{const n=ho(e,"useGridKeyboardNavigation"),r=yd(e,t).rows,o=Xt(),i=m.useMemo(()=>l7e(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.unstable_headerFilters,s=m.useCallback((x,w,S="left")=>{const $=Eu(e),T=e.current.unstable_getCellColSpanInfo(w,x);T&&T.spannedByColSpan&&(S==="left"?x=T.leftVisibleCellIndex:S==="right"&&(x=T.rightVisibleCellIndex));const k=$.findIndex(I=>I.id===w);n.debug(`Navigating to cell row ${k}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:k});const M=e.current.getVisibleColumns()[x].field;e.current.setCellFocus(w,M)},[e,n]),l=m.useCallback((x,w)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(S,w)},[e,n]),u=m.useCallback((x,w)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(S,w)},[e,n]),c=m.useCallback((x,w,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:$}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus($,w,S)},[e,n]),f=m.useCallback(x=>{var w;return(w=i[x])==null?void 0:w.id},[i]),p=m.useCallback((x,w)=>{const S=w.currentTarget.querySelector(`.${le.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(w.target)&&x.field!==rh.field||!e.current.getRootDimensions())return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,I=i.length>0?0:null,N=i.length-1,E=0,A=Xr(e).length-1,z=S0(e);let L=!0;switch(w.key){case"ArrowDown":{I!==null&&(a?u(M,w):s(M,f(I)));break}case"ArrowRight":{const O=r$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowLeft":{const O=n$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowUp":{z>0&&c(M,z-1,w);break}case"PageDown":{I!==null&&N!==null&&s(M,f(Math.min(I+k,N)));break}case"Home":{l(E,w);break}case"End":{l(A,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:L=!1}L&&w.preventDefault()},[e,i.length,a,u,s,f,o.direction,l,c]),y=m.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=d8e(e)===x.field,T=f8e(e)===x.field;if($||T||!fb(w.key))return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,I=0,N=i.length-1,E=0,A=Xr(e).length-1;let z=!0;switch(w.key){case"ArrowDown":{const L=f(I);L!=null&&s(M,L);break}case"ArrowRight":{const L=r$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});L!==null&&u(L,w);break}case"ArrowLeft":{const L=n$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});L!==null?u(L,w):e.current.setColumnHeaderFilterFocus(x.field,w);break}case"ArrowUp":{l(M,w);break}case"PageDown":{N!==null&&s(M,f(Math.min(I+k,N)));break}case"Home":{u(E,w);break}case"End":{u(A,w);break}case" ":break;default:z=!1}z&&w.preventDefault()},[e,i.length,u,o.direction,l,s,f]),v=m.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=sb(e);if($===null)return;const{field:T,depth:k}=$,{fields:M,depth:I,maxDepth:N}=x,E=e.current.getViewportPageSize(),A=e.current.getColumnIndex(T),z=T?e.current.getColumnIndex(T):0,L=0,O=i.length-1,D=0,H=Xr(e).length-1;let B=!0;switch(w.key){case"ArrowDown":{I===N-1?l(A,w):c(A,k+1,w);break}case"ArrowUp":{I>0&&c(A,k-1,w);break}case"ArrowRight":{const j=M.length-M.indexOf(T)-1;A+j+1<=H&&c(A+j+1,k,w);break}case"ArrowLeft":{const j=M.indexOf(T);A-j-1>=D&&c(A-j-1,k,w);break}case"PageDown":{O!==null&&s(z,f(Math.min(L+E,O)));break}case"Home":{c(D,k,w);break}case"End":{c(H,k,w);break}case" ":break;default:B=!1}B&&w.preventDefault()},[e,i.length,l,c,s,f]),b=m.useCallback((x,w)=>{if(!w.currentTarget.contains(w.target))return;const S=e.current.getCellParams(x.id,x.field);if(S.cellMode===Pn.Edit||!fb(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:S}))return;const T=e.current.getRootDimensions();if(i.length===0||!T)return;const k=o.direction,M=e.current.getViewportPageSize(),I=x.field?e.current.getColumnIndex(x.field):0,N=i.findIndex(D=>D.id===x.id),E=0,A=i.length-1,z=0,L=Xr(e).length-1;let O=!0;switch(w.key){case"ArrowDown":{NE?s(I,f(N-1)):a?u(I,w):l(I,w);break}case"ArrowRight":{const D=r$({currentColIndex:I,firstColIndex:z,lastColIndex:L,direction:k});D!==null&&s(D,f(N),k==="rtl"?"left":"right");break}case"ArrowLeft":{const D=n$({currentColIndex:I,firstColIndex:z,lastColIndex:L,direction:k});D!==null&&s(D,f(N),k==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&I>z?s(I-1,f(N),"left"):!w.shiftKey&&I=E?s(I,f(D)):l(I,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?s(z,f(E)):s(z,f(N));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?s(L,f(A)):s(L,f(N));break}default:O=!1}O&&w.preventDefault()},[e,i,o.direction,s,f,a,u,l]),C=m.useCallback((x,{event:w})=>w.key===" "?!1:x,[]);Ir(e,"canStartEditing",C),vt(e,"columnHeaderKeyDown",p),vt(e,"headerFilterKeyDown",y),vt(e,"columnGroupHeaderKeyDown",v),vt(e,"cellKeyDown",b)},c7e=(e,t)=>{var n,r;return P({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},d7e=(e,t)=>{var n;const r=ho(e,"useGridPreferencesPanel"),o=m.useRef(),i=m.useRef(),a=m.useCallback(()=>{r.debug("Hiding Preferences Panel");const p=Jc(e.current.state);p.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:p.openedPanelValue}),e.current.setState(y=>P({},y,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),s=m.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),l=m.useCallback(()=>{o.current=setTimeout(a,100)},[a]),u=m.useCallback((p,y,v)=>{r.debug("Opening Preferences Panel"),s(),e.current.setState(b=>P({},b,{preferencePanel:P({},b.preferencePanel,{open:!0,openedPanelValue:p,panelId:y,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:p}),e.current.forceUpdate()},[r,s,e]);Yt(e,{showPreferences:u,hidePreferences:l},"public");const c=m.useCallback((p,y)=>{var v;const b=Jc(e.current.state);return!y.exportOnlyDirtyModels||((v=t.initialState)==null?void 0:v.preferencePanel)!=null||b.open?P({},p,{preferencePanel:b}):p},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),f=m.useCallback((p,y)=>{const v=y.stateToRestore.preferencePanel;return v!=null&&e.current.setState(b=>P({},b,{preferencePanel:v})),p},[e]);Ir(e,"exportState",c),Ir(e,"restoreState",f),m.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},f7e=["id","field"],p7e=["id","field"],h7e=$s(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),m7e=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:u}=t,c=O=>(...D)=>{t.editMode===gs.Cell&&O(...D)},f=m.useCallback((O,D)=>{const H=e.current.getCellParams(O,D);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${O} and field=${D} is not editable.`)},[e]),p=m.useCallback((O,D,H)=>{if(e.current.getCellMode(O,D)!==H)throw new Error(`MUI: The cell with id=${O} and field=${D} is not in ${H} mode.`)},[e]),y=m.useCallback((O,D)=>{if(!O.isEditable||O.cellMode===Pn.Edit)return;const H=P({},O,{reason:El.cellDoubleClick});e.current.publishEvent("cellEditStart",H,D)},[e]),v=m.useCallback((O,D)=>{if(O.cellMode===Pn.View||e.current.getCellMode(O.id,O.field)===Pn.View)return;const H=P({},O,{reason:va.cellFocusOut});e.current.publishEvent("cellEditStop",H,D)},[e]),b=m.useCallback((O,D)=>{if(O.cellMode===Pn.Edit){if(D.which===229)return;let H;if(D.key==="Escape"?H=va.escapeKeyDown:D.key==="Enter"?H=va.enterKeyDown:D.key==="Tab"&&(H=D.shiftKey?va.shiftTabKeyDown:va.tabKeyDown,D.preventDefault()),H){const B=P({},O,{reason:H});e.current.publishEvent("cellEditStop",B,D)}}else if(O.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:D,cellParams:O,editMode:"cell"}))return;if(SV(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?H=El.printableKeyDown:D.key==="Enter"?H=El.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(H=El.deleteKeyDown),H){const j=P({},O,{reason:H,key:D.key});e.current.publishEvent("cellEditStart",j,D)}}},[e]),C=m.useCallback(O=>{const{id:D,field:H,reason:B,key:j,colDef:W}=O,U={id:D,field:H};if(B===El.printableKeyDown)if(m.version.startsWith("17"))U.deleteValue=!0;else{const Z=W.valueParser?W.valueParser(j):j;U.initialValue=Z}else B===El.deleteKeyDown&&(U.deleteValue=!0);e.current.startCellEditMode(U)},[e]),x=m.useCallback(O=>{const{id:D,field:H,reason:B}=O;e.current.runPendingEditCellValueMutation(D,H);let j;B===va.enterKeyDown?j="below":B===va.tabKeyDown?j="right":B===va.shiftTabKeyDown&&(j="left");const W=B==="escapeKeyDown";e.current.stopCellEditMode({id:D,field:H,ignoreModifications:W,cellToFocusAfter:j})},[e]);vt(e,"cellDoubleClick",c(y)),vt(e,"cellFocusOut",c(v)),vt(e,"cellKeyDown",c(b)),vt(e,"cellEditStart",c(C)),vt(e,"cellEditStop",c(x)),Yn(e,"cellEditStart",t.onCellEditStart),Yn(e,"cellEditStop",t.onCellEditStop);const w=m.useCallback((O,D)=>{const H=bo(e.current.state);return H[O]&&H[O][D]?Pn.Edit:Pn.View},[e]),S=Dn(O=>{const D=O!==t.cellModesModel;u&&D&&u(O,{}),!(t.cellModesModel&&D)&&(r(O),o.current=O,e.current.publishEvent("cellModesModelChange",O))}),$=m.useCallback((O,D,H)=>{const B=P({},o.current);if(H!==null)B[O]=P({},B[O],{[D]:P({},H)});else{const j=B[O],W=be(j,[D].map(zg));B[O]=W,Object.keys(B[O]).length===0&&delete B[O]}S(B)},[S]),T=m.useCallback((O,D,H)=>{e.current.setState(B=>{const j=P({},B.editRows);return H!==null?j[O]=P({},j[O],{[D]:P({},H)}):(delete j[O][D],Object.keys(j[O]).length===0&&delete j[O]),P({},B,{editRows:j})}),e.current.forceUpdate()},[e]),k=m.useCallback(O=>{const{id:D,field:H}=O,B=be(O,f7e);f(D,H),p(D,H,Pn.View),$(D,H,P({mode:Pn.Edit},B))},[f,p,$]),M=Dn(O=>{const{id:D,field:H,deleteValue:B,initialValue:j}=O;let W=e.current.getCellValue(D,H),U=!1;(B||j)&&(W=B?"":j,U=!0),T(D,H,{value:W,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:U}),e.current.setCellFocus(D,H)}),I=m.useCallback(O=>{const{id:D,field:H}=O,B=be(O,p7e);p(D,H,Pn.Edit),$(D,H,P({mode:Pn.View},B))},[p,$]),N=Dn(async O=>{const{id:D,field:H,ignoreModifications:B,cellToFocusAfter:j="none"}=O;p(D,H,Pn.Edit),e.current.runPendingEditCellValueMutation(D,H);const W=()=>{T(D,H,null),$(D,H,null),j!=="none"&&e.current.moveFocusToRelativeCell(D,H,j)};if(B){W();return}const U=bo(e.current.state),{error:Z,isProcessingProps:Y}=U[D][H];if(Z||Y){i.current[D][H].mode=Pn.Edit,$(D,H,{mode:Pn.Edit});return}const se=e.current.getRowWithUpdatedValuesFromCellEditing(D,H);if(a){const Q=ne=>{i.current[D][H].mode=Pn.Edit,$(D,H,{mode:Pn.Edit}),s?s(ne):h7e()};try{const ne=e.current.getRow(D);Promise.resolve(a(se,ne)).then(re=>{e.current.updateRows([re]),W()}).catch(Q)}catch(ne){Q(ne)}}else e.current.updateRows([se]),W()}),E=m.useCallback(async O=>{var D;const{id:H,field:B,value:j,debounceMs:W,unstable_skipValueParser:U}=O;f(H,B),p(H,B,Pn.Edit);const Z=e.current.getColumn(B),Y=e.current.getRow(H);let se=j;Z.valueParser&&!U&&(se=Z.valueParser(j,e.current.getCellParams(H,B)));let Q=bo(e.current.state),ne=P({},Q[H][B],{value:se,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(Z.preProcessEditCellProps){const re=j!==Q[H][B].value;ne=P({},ne,{isProcessingProps:!0}),T(H,B,ne),ne=await Promise.resolve(Z.preProcessEditCellProps({id:H,row:Y,props:ne,hasChanged:re}))}return e.current.getCellMode(H,B)===Pn.View?!1:(Q=bo(e.current.state),ne=P({},ne,{isProcessingProps:!1}),ne.value=Z.preProcessEditCellProps?Q[H][B].value:se,T(H,B,ne),Q=bo(e.current.state),!((D=Q[H])!=null&&(D=D[B])!=null&&D.error))},[e,f,p,T]),A=m.useCallback((O,D)=>{const H=e.current.getColumn(D),B=bo(e.current.state),j=e.current.getRow(O);if(!B[O]||!B[O][D])return e.current.getRow(O);const{value:W}=B[O][D];return H.valueSetter?H.valueSetter({value:W,row:j}):P({},j,{[D]:W})},[e]),z={getCellMode:w,startCellEditMode:k,stopCellEditMode:I},L={setCellEditingEditCellValue:E,getRowWithUpdatedValuesFromCellEditing:A};Yt(e,z,"public"),Yt(e,L,"private"),m.useEffect(()=>{l&&S(l)},[l,S]),m.useEffect(()=>{const O=ab(e),D=i.current;i.current=MV(n),Object.entries(n).forEach(([H,B])=>{Object.entries(B).forEach(([j,W])=>{var U,Z;const Y=((U=D[H])==null||(U=U[j])==null?void 0:U.mode)||Pn.View,se=(Z=O[H])!=null?Z:H;W.mode===Pn.Edit&&Y===Pn.View?M(P({id:se,field:j},W)):W.mode===Pn.View&&Y===Pn.Edit&&N(P({id:se,field:j},W))})})},[e,n,M,N])},g7e=["id"],v7e=["id"],y7e=$s(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),b7e=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),a=m.useRef(null),s=m.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:u,rowModesModel:c,onRowModesModelChange:f}=t,p=j=>(...W)=>{t.editMode===gs.Row&&j(...W)},y=m.useCallback((j,W)=>{const U=e.current.getCellParams(j,W);if(!e.current.isCellEditable(U))throw new Error(`MUI: The cell with id=${j} and field=${W} is not editable.`)},[e]),v=m.useCallback((j,W)=>{if(e.current.getRowMode(j)!==W)throw new Error(`MUI: The row with id=${j} is not in ${W} mode.`)},[e]),b=m.useCallback((j,W)=>{if(!j.isEditable||e.current.getRowMode(j.id)===Bn.Edit)return;const U=e.current.getRowParams(j.id),Z=P({},U,{field:j.field,reason:Il.cellDoubleClick});e.current.publishEvent("rowEditStart",Z,W)},[e]),C=m.useCallback(j=>{s.current=j},[]),x=m.useCallback((j,W)=>{j.isEditable&&e.current.getRowMode(j.id)!==Bn.View&&(s.current=null,a.current=setTimeout(()=>{var U;if(a.current=null,((U=s.current)==null?void 0:U.id)!==j.id){if(!e.current.getRow(j.id)||e.current.getRowMode(j.id)===Bn.View)return;const Z=e.current.getRowParams(j.id),Y=P({},Z,{field:j.field,reason:zs.rowFocusOut});e.current.publishEvent("rowEditStop",Y,W)}}))},[e]);m.useEffect(()=>()=>{clearTimeout(a.current)},[]);const w=m.useCallback((j,W)=>{if(j.cellMode===Bn.Edit){if(W.which===229)return;let U;if(W.key==="Escape")U=zs.escapeKeyDown;else if(W.key==="Enter")U=zs.enterKeyDown;else if(W.key==="Tab"){const Z=r2(e).filter(Y=>e.current.getColumn(Y).type===p2?!0:e.current.isCellEditable(e.current.getCellParams(j.id,Y)));if(W.shiftKey?j.field===Z[0]&&(U=zs.shiftTabKeyDown):j.field===Z[Z.length-1]&&(U=zs.tabKeyDown),W.preventDefault(),!U){const Y=Z.findIndex(Q=>Q===j.field),se=Z[W.shiftKey?Y-1:Y+1];e.current.setCellFocus(j.id,se)}}if(U){const Z=P({},e.current.getRowParams(j.id),{reason:U,field:j.field});e.current.publishEvent("rowEditStop",Z,W)}}else if(j.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:j,editMode:"row"}))return;if(SV(W)||(W.ctrlKey||W.metaKey)&&W.key==="v"?U=Il.printableKeyDown:W.key==="Enter"?U=Il.enterKeyDown:(W.key==="Delete"||W.key==="Backspace")&&(U=Il.deleteKeyDown),U){const Y=e.current.getRowParams(j.id),se=P({},Y,{field:j.field,key:W.key,reason:U});e.current.publishEvent("rowEditStart",se,W)}}},[e]),S=m.useCallback(j=>{const{id:W,field:U,reason:Z,key:Y,columns:se}=j,Q={id:W,fieldToFocus:U};if(Z===Il.printableKeyDown)if(m.version.startsWith("17"))Q.deleteValue=!!U;else{const ne=se.find(re=>re.field===U);Q.initialValue=ne.valueParser?ne.valueParser(Y):Y}else Z===Il.deleteKeyDown&&(Q.deleteValue=!!U);e.current.startRowEditMode(Q)},[e]),$=m.useCallback(j=>{const{id:W,reason:U,field:Z}=j;e.current.runPendingEditCellValueMutation(W);let Y;U===zs.enterKeyDown?Y="below":U===zs.tabKeyDown?Y="right":U===zs.shiftTabKeyDown&&(Y="left");const se=U==="escapeKeyDown";e.current.stopRowEditMode({id:W,ignoreModifications:se,field:Z,cellToFocusAfter:Y})},[e]);vt(e,"cellDoubleClick",p(b)),vt(e,"cellFocusIn",p(C)),vt(e,"cellFocusOut",p(x)),vt(e,"cellKeyDown",p(w)),vt(e,"rowEditStart",p(S)),vt(e,"rowEditStop",p($)),Yn(e,"rowEditStart",t.onRowEditStart),Yn(e,"rowEditStop",t.onRowEditStop);const T=m.useCallback(j=>{if(t.editMode===gs.Cell)return Bn.View;const W=bo(e.current.state);return W[j]&&Object.keys(W[j]).length>0?Bn.Edit:Bn.View},[e,t.editMode]),k=Dn(j=>{const W=j!==t.rowModesModel;f&&W&&f(j,{}),!(t.rowModesModel&&W)&&(r(j),o.current=j,e.current.publishEvent("rowModesModelChange",j))}),M=m.useCallback((j,W)=>{const U=P({},o.current);W!==null?U[j]=P({},W):delete U[j],k(U)},[k]),I=m.useCallback((j,W)=>{e.current.setState(U=>{const Z=P({},U.editRows);return W!==null?Z[j]=W:delete Z[j],P({},U,{editRows:Z})}),e.current.forceUpdate()},[e]),N=m.useCallback((j,W,U)=>{e.current.setState(Z=>{const Y=P({},Z.editRows);return U!==null?Y[j]=P({},Y[j],{[W]:P({},U)}):(delete Y[j][W],Object.keys(Y[j]).length===0&&delete Y[j]),P({},Z,{editRows:Y})}),e.current.forceUpdate()},[e]),E=m.useCallback(j=>{const{id:W}=j,U=be(j,g7e);v(W,Bn.View),M(W,P({mode:Bn.Edit},U))},[v,M]),A=Dn(j=>{const{id:W,fieldToFocus:U,deleteValue:Z,initialValue:Y}=j,Q=nl(e).reduce((ne,re)=>{if(!e.current.getCellParams(W,re).isEditable)return ne;let xe=e.current.getCellValue(W,re),fe=!1;return U===re&&(Z||Y)&&(xe=Z?"":Y,fe=!0),ne[re]={value:xe,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:fe},ne},{});I(W,Q),U&&e.current.setCellFocus(W,U)}),z=m.useCallback(j=>{const{id:W}=j,U=be(j,v7e);v(W,Bn.Edit),M(W,P({mode:Bn.View},U))},[v,M]),L=Dn(j=>{const{id:W,ignoreModifications:U,field:Z,cellToFocusAfter:Y="none"}=j;e.current.runPendingEditCellValueMutation(W);const se=()=>{Y!=="none"&&Z&&e.current.moveFocusToRelativeCell(W,Z,Y),I(W,null),M(W,null)};if(U){se();return}const Q=bo(e.current.state),ne=e.current.getRow(W);if(Object.values(Q[W]).some(fe=>fe.isProcessingProps)){i.current[W].mode=Bn.Edit;return}if(Object.values(Q[W]).some(fe=>fe.error)){i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit});return}const xe=e.current.getRowWithUpdatedValuesFromRowEditing(W);if(l){const fe=Se=>{i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit}),u?u(Se):y7e()};try{Promise.resolve(l(xe,ne)).then(Se=>{e.current.updateRows([Se]),se()}).catch(fe)}catch(Se){fe(Se)}}else e.current.updateRows([xe]),se()}),O=m.useCallback(j=>{const{id:W,field:U,value:Z,debounceMs:Y,unstable_skipValueParser:se}=j;y(W,U);const Q=e.current.getColumn(U),ne=e.current.getRow(W);let re=Z;Q.valueParser&&!se&&(re=Q.valueParser(Z,e.current.getCellParams(W,U)));let ge=bo(e.current.state),xe=P({},ge[W][U],{value:re,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||N(W,U,xe),new Promise(fe=>{const Se=[];if(Q.preProcessEditCellProps){const de=xe.value!==ge[W][U].value;xe=P({},xe,{isProcessingProps:!0}),N(W,U,xe);const ie=ge[W],Pe=be(ie,[U].map(zg)),$e=Promise.resolve(Q.preProcessEditCellProps({id:W,row:ne,props:xe,hasChanged:de,otherFieldsProps:Pe})).then(me=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ge=bo(e.current.state),me=P({},me,{isProcessingProps:!1}),me.value=Q.preProcessEditCellProps?ge[W][U].value:re,N(W,U,me)});Se.push($e)}Object.entries(ge[W]).forEach(([de,ie])=>{if(de===U)return;const Pe=e.current.getColumn(de);if(!Pe.preProcessEditCellProps)return;ie=P({},ie,{isProcessingProps:!0}),N(W,de,ie),ge=bo(e.current.state);const $e=ge[W],me=be($e,[de].map(zg)),ue=Promise.resolve(Pe.preProcessEditCellProps({id:W,row:ne,props:ie,hasChanged:!1,otherFieldsProps:me})).then(ce=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ce=P({},ce,{isProcessingProps:!1}),N(W,de,ce)});Se.push(ue)}),Promise.all(Se).then(()=>{e.current.getRowMode(W)===Bn.Edit?(ge=bo(e.current.state),fe(!ge[W][U].error)):fe(!1)})})},[e,y,N]),D=m.useCallback(j=>{const W=bo(e.current.state),U=e.current.getRow(j);if(!W[j])return e.current.getRow(j);let Z=P({},U);return Object.entries(W[j]).forEach(([Y,se])=>{const Q=e.current.getColumn(Y);Q.valueSetter?Z=Q.valueSetter({value:se.value,row:Z}):Z[Y]=se.value}),Z},[e]),H={getRowMode:T,startRowEditMode:E,stopRowEditMode:z},B={setRowEditingEditCellValue:O,getRowWithUpdatedValuesFromRowEditing:D};Yt(e,H,"public"),Yt(e,B,"private"),m.useEffect(()=>{c&&k(c)},[c,k]),m.useEffect(()=>{const j=ab(e),W=i.current;i.current=MV(n),Object.entries(n).forEach(([U,Z])=>{var Y,se;const Q=((Y=W[U])==null?void 0:Y.mode)||Bn.View,ne=(se=j[U])!=null?se:U;Z.mode===Bn.Edit&&Q===Bn.View?A(P({id:ne},Z)):Z.mode===Bn.View&&Q===Bn.Edit&&L(P({id:ne},Z))})},[e,n,A,L])},x7e=e=>P({},e,{editRows:{}}),w7e=(e,t)=>{m7e(e,t),b7e(e,t);const n=m.useRef({}),{isCellEditable:r}=t,o=m.useCallback(p=>Lg(p.rowNode)||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!0,[r]),i=(p,y,v,b)=>{if(!v){b();return}if(n.current[p]||(n.current[p]={}),n.current[p][y]){const[w]=n.current[p][y];clearTimeout(w)}const C=()=>{const[w]=n.current[p][y];clearTimeout(w),b(),delete n.current[p][y]},x=setTimeout(()=>{b(),delete n.current[p][y]},v);n.current[p][y]=[x,C]};m.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([y,v])=>{Object.keys(v).forEach(b=>{const[C]=p[y][b];clearTimeout(C),delete p[y][b]})})}},[]);const a=m.useCallback((p,y)=>{if(n.current[p]){if(!y)Object.keys(n.current[p]).forEach(v=>{const[,b]=n.current[p][v];b()});else if(n.current[p][y]){const[,v]=n.current[p][y];v()}}},[]),s=m.useCallback(p=>{const{id:y,field:v,debounceMs:b}=p;return new Promise(C=>{i(y,v,b,async()=>{const x=t.editMode===gs.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(y,v)===Pn.Edit){const w=await x(p);C(w)}})})},[e,t.editMode]),l=m.useCallback((p,y)=>t.editMode===gs.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(p,y):e.current.getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]),u=m.useCallback((p,y)=>{var v,b;return(v=(b=bo(e.current.state)[p])==null?void 0:b[y])!=null?v:null},[e]),c={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:u},f={runPendingEditCellValueMutation:a};Yt(e,c,"public"),Yt(e,f,"private")},C7e=(e,t,n)=>(n.current.caches.rows=N1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:gV({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),S7e=(e,t)=>{const n=ho(e,"useGridRows"),r=yd(e,t),o=m.useRef(Date.now()),i=DT(),a=m.useCallback(L=>{const O=ql(e)[L];if(O)return O;const D=e.current.getRowNode(L);return D&&Lg(D)?{[Xf]:L}:null},[e]),s=t.getRowId,l=m.useCallback(L=>Xf in L?L[Xf]:s?s(L):L.id,[s]),u=m.useMemo(()=>r.rows.reduce((L,{id:O},D)=>(L[O]=D,L),{}),[r.rows]),c=m.useCallback(({cache:L,throttle:O})=>{const D=()=>{o.current=Date.now(),e.current.setState(B=>P({},B,{rows:gV({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Ca(e),previousTreeDepths:v8(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=L,!O){D();return}const H=t.throttleRowsMs-(Date.now()-o.current);if(H>0){i.start(H,D);return}D()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),f=m.useCallback(L=>{n.debug(`Updating all rows, new length ${L.length}`);const O=N1({rows:L,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),D=e.current.caches.rows;O.rowsBeforePartialUpdates=D.rowsBeforePartialUpdates,c({cache:O,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=m.useCallback(L=>{if(t.signature===cs.DataGrid&&L.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));const O=[];L.forEach(H=>{const B=ub(H,t.getRowId,"A row was provided without id when calling updateRows():"),j=e.current.getRowNode(B);if((j==null?void 0:j.type)==="pinnedRow"){const W=e.current.caches.pinnedRows,U=W.idLookup[B];U&&(W.idLookup[B]=P({},U,H))}else O.push(H)});const D=XAe({updates:O,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:D,throttle:!0})},[t.signature,t.getRowId,c,e]),y=m.useCallback(()=>{const L=n1(e),O=ql(e);return new Map(L.map(D=>{var H;return[D,(H=O[D])!=null?H:{}]}))},[e]),v=m.useCallback(()=>i2(e),[e]),b=m.useCallback(()=>n1(e),[e]),C=m.useCallback(L=>u[L],[u]),x=m.useCallback((L,O)=>{const D=e.current.getRowNode(L);if(!D)throw new Error(`MUI: No row with id #${L} found`);if(D.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const H=P({},D,{childrenExpanded:O});e.current.setState(B=>P({},B,{rows:P({},B.rows,{tree:P({},B.rows.tree,{[L]:H})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",H)},[e]),w=m.useCallback(L=>{var O;return(O=Ca(e)[L])!=null?O:null},[e]),S=m.useCallback(({skipAutoGeneratedRows:L=!0,groupId:O,applySorting:D,applyFiltering:H})=>{const B=Ca(e);let j;if(D){const W=B[O];if(!W)return[];const U=_T(e);j=[];const Z=U.findIndex(Y=>Y===O)+1;for(let Y=Z;YW.depth;Y+=1){const se=U[Y];(!L||!Lg(B[se]))&&j.push(se)}}else j=TT(B,O,L);if(H){const W=uV(e);j=j.filter(U=>W[U]!==!1)}return j},[e]),$=m.useCallback((L,O)=>{const D=e.current.getRowNode(L);if(!D)throw new Error(`MUI: No row with id #${L} found`);if(D.parent!==xo)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(D.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(H=>{const B=Ca(H,e.current.instanceId)[xo],j=B.children,W=j.findIndex(Z=>Z===L);if(W===-1||W===O)return H;n.debug(`Moving row ${L} to index ${O}`);const U=[...j];return U.splice(O,0,U.splice(W,1)[0]),P({},H,{rows:P({},H.rows,{tree:P({},H.rows.tree,{[xo]:P({},B,{children:U})})})})}),e.current.publishEvent("rowsSet")},[e,n]),T=m.useCallback((L,O)=>{if(t.signature===cs.DataGrid&&O.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));if(O.length===0)return;if(a2(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const H=P({},Ca(e)),B=P({},ql(e)),j=P({},ab(e)),W=H[xo],U=[...W.children];for(let Y=0;YH[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=B,e.current.caches.rows.dataRowIdToIdLookup=j,e.current.setState(Y=>P({},Y,{rows:P({},Y.rows,{dataRowIdToModelLookup:B,dataRowIdToIdLookup:j,dataRowIds:Z,tree:H})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:a,getRowId:l,getRowModels:y,getRowsCount:v,getAllRowIds:b,setRows:f,updateRows:p,getRowNode:w,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:T},M={setRowIndex:$,setRowChildrenExpansion:x,getRowGroupChildren:S},I=m.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?L=P({},e.current.caches.rows,{updates:{type:"full",rows:n1(e)}}):L=N1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:L,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),N=m.useCallback(L=>{L==="rowTreeCreation"&&I()},[I]),E=m.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==RAe(e)&&I()},[e,I]);vt(e,"activeStrategyProcessorChange",N),vt(e,"strategyAvailabilityChange",E);const A=m.useCallback(()=>{e.current.setState(L=>{const O=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Ca(L,e.current.instanceId),treeDepths:v8(L,e.current.instanceId),dataRowIds:n1(L,e.current.instanceId),dataRowIdToModelLookup:ql(L,e.current.instanceId),dataRowIdToIdLookup:ab(L,e.current.instanceId)});return P({},L,{rows:P({},L.rows,O,{totalTopLevelRowCount:mV({tree:O.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);zT(e,"hydrateRows",A),Yt(e,k,"public"),Yt(e,M,t.signature===cs.DataGrid?"private":"public");const z=m.useRef(!0);m.useEffect(()=>{if(z.current){z.current=!1;return}const L=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,D=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(L){O||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),D||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{totalRowCount:Math.max(t.rowCount||0,H.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,H.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:N1({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])},$7e=e=>{const t={[xo]:P({},KAe(),{children:e})};for(let n=0;n{const n=P({},e),r={};for(let a=0;a!r[a])),n[xo]=P({},o,{children:i}),{groupingName:ed,tree:n,treeDepths:{0:i.length},dataRowIds:i}},k7e=e=>e.updates.type==="full"?$7e(e.updates.rows):_7e({previousTree:e.previousTree,actions:e.updates.actions}),P7e=e=>{gb(e,ed,"rowTreeCreation",k7e)},iU=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],M7e=(e,t)=>{var n;return P({},e,{rowSelection:t.rowSelection?(n=iU(t.rowSelectionModel))!=null?n:[]:[]})},T7e=(e,t)=>{const n=ho(e,"useGridSelection"),r=O=>(...D)=>{t.rowSelection&&O(...D)},o=m.useMemo(()=>iU(t.rowSelectionModel,ji(e.current.state)),[e,t.rowSelectionModel]),i=m.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ji,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:l,isRowSelectable:u}=t,c=!s||a,f=yd(e,t),p=m.useCallback(O=>{var D;let H=O;const B=(D=i.current)!=null?D:O,j=e.current.isRowSelected(O);if(j){const W=Om(e),U=W.findIndex(Y=>Y===B),Z=W.findIndex(Y=>Y===H);if(U===Z)return;U>Z?H=W[Z+1]:H=W[Z-1]}i.current=O,e.current.selectRowRange({startId:B,endId:H},!j)},[e]),y=m.useCallback(O=>{if(t.signature===cs.DataGrid&&!t.checkboxSelection&&Array.isArray(O)&&O.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` -`));ji(e.current.state)!==O&&(n.debug("Setting selection model"),e.current.setState(H=>P({},H,{rowSelection:t.rowSelection?O:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),v=m.useCallback(O=>ji(e.current.state).includes(O),[e]),b=m.useCallback(O=>{if(u&&!u(e.current.getRowParams(O)))return!1;const D=e.current.getRowNode(O);return!((D==null?void 0:D.type)==="footer"||(D==null?void 0:D.type)==="pinnedRow")},[e,u]),C=m.useCallback(()=>r8e(e),[e]),x=m.useCallback((O,D=!0,H=!1)=>{if(e.current.isRowSelectable(O))if(i.current=O,H)n.debug(`Setting selection for row ${O}`),e.current.setRowSelectionModel(D?[O]:[]);else{n.debug(`Toggling selection for row ${O}`);const j=ji(e.current.state).filter(U=>U!==O);D&&j.push(O),(j.length<2||c)&&e.current.setRowSelectionModel(j)}},[e,n,c]),w=m.useCallback((O,D=!0,H=!1)=>{n.debug("Setting selection for several rows");const B=O.filter(U=>e.current.isRowSelectable(U));let j;if(H)j=D?B:[];else{const U=P({},pb(e));B.forEach(Z=>{D?U[Z]=Z:delete U[Z]}),j=Object.values(U)}(j.length<2||c)&&e.current.setRowSelectionModel(j)},[e,n,c]),S=m.useCallback(({startId:O,endId:D},H=!0,B=!1)=>{if(!e.current.getRow(O)||!e.current.getRow(D))return;n.debug(`Expanding selection from row ${O} to row ${D}`);const j=Om(e),W=j.indexOf(O),U=j.indexOf(D),[Z,Y]=W>U?[U,W]:[W,U],se=j.slice(Z,Y+1);e.current.selectRows(se,H,B)},[e,n]),$={selectRow:x,setRowSelectionModel:y,getSelectedRows:C,isRowSelected:v,isRowSelectable:b},T={selectRows:w,selectRowRange:S};Yt(e,$,"public"),Yt(e,T,t.signature===cs.DataGrid?"private":"public");const k=m.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const O=ji(e.current.state),D=ql(e),H=P({},pb(e));let B=!1;O.forEach(j=>{D[j]||(delete H[j],B=!0)}),B&&e.current.setRowSelectionModel(Object.values(H))},[e,t.keepNonExistentRowsSelected]),M=m.useCallback((O,D)=>{const H=D.metaKey||D.ctrlKey,B=!a&&!H&&!j6e(D),j=!c||B,W=e.current.isRowSelected(O);j?e.current.selectRow(O,B?!0:!W,!0):e.current.selectRow(O,!W,!1)},[e,c,a]),I=m.useCallback((O,D)=>{var H;if(l)return;const B=(H=D.target.closest(`.${le.cell}`))==null?void 0:H.getAttribute("data-field");if(B===rh.field||B===jT)return;if(B){const W=e.current.getColumn(B);if((W==null?void 0:W.type)===p2)return}e.current.getRowNode(O.id).type!=="pinnedRow"&&(D.shiftKey&&(c||a)?p(O.id):M(O.id,D))},[l,c,a,e,p,M]),N=m.useCallback((O,D)=>{if(c&&D.shiftKey){var H;(H=window.getSelection())==null||H.removeAllRanges()}},[c]),E=m.useCallback((O,D)=>{D.nativeEvent.shiftKey?p(O.id):e.current.selectRow(O.id,O.value)},[e,p]),A=m.useCallback(O=>{const H=t.checkboxSelectionVisibleOnly&&t.pagination?OV(e):Om(e);e.current.selectRows(H,O.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),z=m.useCallback((O,D)=>{if(e.current.getCellMode(O.id,O.field)!==Pn.Edit&&D.currentTarget.contains(D.target)){if(fb(D.key)&&D.shiftKey){const H=si(e);if(H&&H.id!==O.id){D.preventDefault();const B=e.current.isRowSelected(H.id);if(!c){e.current.selectRow(H.id,!B,!0);return}const j=e.current.getRowIndexRelativeToVisibleRows(H.id),W=e.current.getRowIndexRelativeToVisibleRows(O.id);let U,Z;j>W?B?(U=W,Z=j-1):(U=W,Z=j):B?(U=j+1,Z=W):(U=j,Z=W);const Y=f.rows.slice(U,Z+1).map(se=>se.id);e.current.selectRows(Y,!B);return}}if(D.key===" "&&D.shiftKey){D.preventDefault(),M(O.id,D);return}D.key==="a"&&(D.ctrlKey||D.metaKey)&&(D.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,M,w,f.rows,c]);vt(e,"sortedRowsSet",r(k)),vt(e,"rowClick",r(I)),vt(e,"rowSelectionCheckboxChange",r(E)),vt(e,"headerSelectionCheckboxChange",A),vt(e,"cellMouseDown",r(N)),vt(e,"cellKeyDown",r(z)),m.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),m.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const L=o!=null;m.useEffect(()=>{if(L||!t.rowSelection)return;const O=ji(e.current.state);if(b){const D=O.filter(H=>b(H));D.length{if(!t.rowSelection||L)return;const O=ji(e.current.state);!c&&O.length>1&&e.current.setRowSelectionModel([])},[e,c,a,L,t.rowSelection])},E7e={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"},I7e=e=>{const{classes:t}=e;return m.useMemo(()=>Ge({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Jt,t),[t])},R7e=(e,t)=>{const n={classes:t.classes},r=I7e(n),o=m.useCallback(i=>{const a=P({},rh,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[Rl]!=null;return s&&!l?(i.lookup[Rl]=a,i.orderedFields=[Rl,...i.orderedFields]):!s&&l?(delete i.lookup[Rl],i.orderedFields=i.orderedFields.filter(u=>u!==Rl)):s&&l&&(i.lookup[Rl]=P({},a,i.lookup[Rl])),i},[e,r,t.checkboxSelection]);Ir(e,"hydrateColumns",o)},O7e=(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:AV(i,t.disableMultipleColumnsSorting),sortedRows:[]}})},A7e=(e,t)=>{var n;const r=ho(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Di,changeEvent:"sortModelChange"});const o=m.useCallback((k,M)=>{const I=Di(e),N=I.findIndex(A=>A.field===k);let E=[...I];return N>-1?M?E.splice(N,1,M):E.splice(N,1):E=[...I,M],E},[e]),i=m.useCallback((k,M)=>{var I;const E=Di(e).find(z=>z.field===k.field);if(E){var A;const z=M===void 0?C8((A=k.sortingOrder)!=null?A:t.sortingOrder,E.sort):M;return z==null?void 0:P({},E,{sort:z})}return{field:k.field,sort:M===void 0?C8((I=k.sortingOrder)!=null?I:t.sortingOrder):M}},[e,t.sortingOrder]),a=m.useCallback((k,M)=>M==null||M.sortable===!1?k:(M.sortingOrder||t.sortingOrder).some(N=>!!N)?[...k,"columnMenuSortItem"]:k,[t.sortingOrder]),s=m.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),P({},k,{sorting:P({},k.sorting,{sortedRows:TT(Ca(e),xo,!1)})});const M=Di(k,e.current.instanceId),I=l8e(M,e),N=e.current.applyStrategyProcessor("sorting",{sortRowList:I});return P({},k,{sorting:P({},k.sorting,{sortedRows:N})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),l=m.useCallback(k=>{Di(e)!==k&&(r.debug("Setting sort model"),e.current.setState(w8(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=m.useCallback((k,M,I)=>{if(!k.sortable)return;const N=i(k,M);let E;!I||t.disableMultipleColumnsSorting?E=N?[N]:[]:E=o(k.field,N),e.current.setSortModel(E)},[e,o,i,t.disableMultipleColumnsSorting]),c=m.useCallback(()=>Di(e),[e]),f=m.useCallback(()=>kT(e).map(M=>M.model),[e]),p=m.useCallback(()=>_T(e),[e]),y=m.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Yt(e,{getSortModel:c,getSortedRows:f,getSortedRowIds:p,getRowIdFromRowIndex:y,setSortModel:l,sortColumn:u,applySorting:s},"public");const b=m.useCallback((k,M)=>{var I;const N=Di(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((I=t.initialState)==null||(I=I.sorting)==null?void 0:I.sortModel)!=null||N.length>0?P({},k,{sorting:{sortModel:N}}):k},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=m.useCallback((k,M)=>{var I;const N=(I=M.stateToRestore.sorting)==null?void 0:I.sortModel;return N==null?k:(e.current.setState(w8(N,t.disableMultipleColumnsSorting)),P({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),x=m.useCallback(k=>{const M=Ca(e),I=M[xo],N=k.sortRowList?k.sortRowList(I.children.map(E=>M[E])):[...I.children];return I.footerId!=null&&N.push(I.footerId),N},[e]);Ir(e,"exportState",b),Ir(e,"restoreState",C),gb(e,ed,"sorting",x);const w=m.useCallback(({colDef:k},M)=>{const I=M.shiftKey||M.metaKey||M.ctrlKey;u(k,void 0,I)},[u]),S=m.useCallback(({colDef:k},M)=>{A6e(M.key)&&!M.ctrlKey&&!M.metaKey&&u(k,void 0,M.shiftKey)},[u]),$=m.useCallback(()=>{const k=Di(e),M=vd(e);if(k.length>0){const I=k.filter(N=>M[N.field]);I.length{k==="sorting"&&e.current.applySorting()},[e]);Ir(e,"columnMenu",a),vt(e,"columnHeaderClick",w),vt(e,"columnHeaderKeyDown",S),vt(e,"rowsSet",e.current.applySorting),vt(e,"columnsChange",$),vt(e,"activeStrategyProcessorChange",T),$0(()=>{e.current.applySorting()}),pn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function q8(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=Xt(),r=ho(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,a=it(e,Eu),s=m.useCallback(f=>{const p=i2(e),y=Xr(e);if(!(f.rowIndex==null)&&p===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${f.rowIndex}, col: ${f.colIndex} `);let b={};if(f.colIndex!=null){const S=Mp(e);let $;if(typeof f.rowIndex<"u"){var C;const T=(C=a[f.rowIndex])==null?void 0:C.id,k=e.current.unstable_getCellColSpanInfo(T,f.colIndex);k&&!k.spannedByColSpan&&($=k.cellProps.width)}typeof $>"u"&&($=y[f.colIndex].computedWidth),b.left=q8({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:$,offsetTop:S[f.colIndex]})}if(f.rowIndex!=null){var x,w;const S=jg(e.current.state),$=JFe(e),T=e8e(e),k=t.pagination?f.rowIndex-$*T:f.rowIndex,M=S.positions[k+1]?S.positions[k+1]-S.positions[k]:S.currentPageTotalHeight-S.positions[k],I=((x=i.current.querySelector(`.${le["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,N=((w=i.current.querySelector(`.${le["pinnedRows--bottom"]}`))==null?void 0:w.clientHeight)||0;b.top=q8({clientHeight:i.current.clientHeight-I-N,scrollTop:i.current.scrollTop,offsetHeight:M,offsetTop:S.positions[k]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,f),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[r,e,i,t.pagination,a]),l=m.useCallback(f=>{if(i.current&&f.left!=null&&o.current){const p=n.direction==="rtl"?-1:1;o.current.scrollLeft=f.left,i.current.scrollLeft=p*f.left,r.debug(`Scrolling left: ${f.left}`)}i.current&&f.top!=null&&(i.current.scrollTop=f.top,r.debug(`Scrolling top: ${f.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),u=m.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Yt(e,{scroll:l,scrollToIndexes:s,getScrollPosition:u},"public")};function L7e(e,t){Yn(e,"columnHeaderClick",t.onColumnHeaderClick),Yn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Yn(e,"columnHeaderOver",t.onColumnHeaderOver),Yn(e,"columnHeaderOut",t.onColumnHeaderOut),Yn(e,"columnHeaderEnter",t.onColumnHeaderEnter),Yn(e,"columnHeaderLeave",t.onColumnHeaderLeave),Yn(e,"cellClick",t.onCellClick),Yn(e,"cellDoubleClick",t.onCellDoubleClick),Yn(e,"cellKeyDown",t.onCellKeyDown),Yn(e,"preferencePanelClose",t.onPreferencePanelClose),Yn(e,"preferencePanelOpen",t.onPreferencePanelOpen),Yn(e,"menuOpen",t.onMenuOpen),Yn(e,"menuClose",t.onMenuClose),Yn(e,"rowDoubleClick",t.onRowDoubleClick),Yn(e,"rowClick",t.onRowClick),Yn(e,"stateChange",t.onStateChange)}const D7e=({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 j7e(e,t){const n=ho(e,"useResizeContainer"),r=m.useRef(!1),o=m.useRef(null),i=m.useRef(null),a=it(e,jg),s=it(e,nh),l=Math.floor(t.rowHeight*s),u=BT(e,t.columnHeaderHeight),c=m.useCallback(()=>{var M;const I=(M=e.current.rootElementRef)==null?void 0:M.current,N=$T(e),E=vV(e);if(!o.current)return;let A;if(t.scrollbarSize!=null)A=t.scrollbarSize;else if(!N||!I)A=0;else{const W=Gn(I).createElement("div");W.style.width="99px",W.style.height="99px",W.style.position="absolute",W.style.overflow="scroll",W.className="scrollDiv",I.appendChild(W),A=W.offsetWidth-W.clientWidth,I.removeChild(W)}let z,L,O;if(t.autoHeight)O=!1,L=Math.round(N)>Math.round(o.current.width),z={width:o.current.width,height:a.currentPageTotalHeight+(L?A:0)};else{z={width:o.current.width,height:Math.max(o.current.height-u,0)};const j=D7e({content:{width:Math.round(N),height:a.currentPageTotalHeight},container:{width:Math.round(z.width),height:z.height-E.top-E.bottom},scrollBarSize:A});O=j.hasScrollY,L=j.hasScrollX}const D={width:z.width-(O?A:0),height:z.height-(L?A:0)},H={viewportOuterSize:z,viewportInnerSize:D,hasScrollX:L,hasScrollY:O,scrollBarSize:A},B=i.current;i.current=H,(H.viewportInnerSize.width!==(B==null?void 0:B.viewportInnerSize.width)||H.viewportInnerSize.height!==(B==null?void 0:B.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",H.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u]),[f,p]=m.useState(),y=m.useMemo(()=>Cu(p,60),[]),v=m.useRef();pn(()=>{f&&(c(),e.current.publishEvent("debouncedResize",o.current))},[e,f,c]);const b=m.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=m.useCallback(()=>i.current,[]),x=m.useCallback(()=>{const M=e.current.getRootDimensions();if(!M)return 0;const I=hb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const E=e.current.getRenderContext(),A=E.lastRowIndex-E.firstRowIndex;return Math.min(A-1,I.rows.length)}const N=Math.floor(M.viewportInnerSize.height/l);return Math.min(N,I.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,l]),w=m.useCallback(()=>{var M,I,N;const E=(M=e.current.mainElementRef)==null?void 0:M.current;if(!E)return;const z=ea(E).getComputedStyle(E),L=parseFloat(z.height)||0,O=parseFloat(z.width)||0,D=L!==((I=v.current)==null?void 0:I.height),H=O!==((N=v.current)==null?void 0:N.width);if(!v.current||D||H){const B={width:O,height:L};e.current.publishEvent("resize",B),v.current=B}},[e]),S={resize:b,getRootDimensions:C},$={getViewportPageSize:x,updateGridDimensionsRef:c,computeSizeAndPublishResizeEvent:w};Yt(e,S,"public"),Yt(e,$,"private");const T=m.useRef(!0),k=m.useCallback(M=>{o.current=M;const I=/jsdom/.test(window.navigator.userAgent);if(M.height===0&&!r.current&&!t.autoHeight&&!I&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`}${l}`.trim()}function H8(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function LDe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{H8(e)}):H8(e)}function DDe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const jDe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=m.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||DDe(a.target))return;let s="";if(e.current.getSelectedRows().size>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=si(e);if(u){const c=e.current.getCellParams(u.id,u.field);s=JV(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(LDe(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);QFe(e,e.current.rootElementRef,"keydown",i),Yn(e,"clipboardCopy",t.onClipboardCopy)},NDe=e=>P({},e,{columnMenu:{open:!1}}),zDe=e=>{const t=ho(e,"useGridColumnMenu"),n=m.useCallback(a=>{e.current.setState(l=>l.columnMenu.open&&l.columnMenu.field===a?l:(t.debug("Opening Column Menu"),P({},l,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=m.useCallback(()=>{const a=$k(e.current.state);if(a.field){const l=gd(e),u=$a(e),c=tl(e);let f=a.field;if(l[f]||(f=c[0]),u[f]===!1){const p=c.filter(v=>v===f?!0:u[v]!==!1),y=p.indexOf(f);f=p[y+1]||p[y-1]}e.current.setColumnHeaderFocus(f)}e.current.setState(l=>!l.columnMenu.open&&l.columnMenu.field===void 0?l:(t.debug("Hiding Column Menu"),P({},l,{columnMenu:P({},l.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=m.useCallback(a=>{t.debug("Toggle Column Menu");const s=$k(e.current.state);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Yt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),vt(e,"columnResizeStart",r),vt(e,"virtualScrollerWheel",e.current.hideColumnMenu),vt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},eU=["maxWidth","minWidth","width","flex"];function BDe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const s=o.all[a];s&&s.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,u=0;o.frozenFields.forEach(c=>{s-=o.all[c].computedWidth,l-=o.all[c].flex});for(let c=0;cf.maxWidth&&(u+=f.maxWidth-y,y=f.maxWidth,a.max[f.field]=!0),o.all[f.field]={frozen:!1,computedWidth:y,flex:f.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Rk=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(s=>{const l=P({},e.lookup[s]);if(e.columnVisibilityModel[s]===!1)l.computedWidth=0;else{let u;l.flex&&l.flex>0?(r+=l.flex,u=0,i.push(l)):u=Mp(l.width||Pa.width,l.minWidth||Pa.minWidth,l.maxWidth||Pa.maxWidth),o+=u,l.computedWidth=u}n[s]=l});const a=Math.max(t-o,0);if(r>0&&t>0){const s=BDe({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(s).forEach(l=>{n[l].computedWidth=s[l].computedWidth})}return P({},e,{lookup:n})},HDe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c!i[c])],l=P({},e.lookup);for(let c=0;c{p[y]=v===-1?1/0:v}),l[f]=p}return P({},e,{orderedFields:s,lookup:l})};function W8(e,t){let n=e[ZV];return t&&e[t]&&(n=e[t]),n}const df=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=$a(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,s,l;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=kc(e.current.state);c={orderedFields:i?[]:[...v.orderedFields],lookup:P({},v.lookup),columnVisibilityModel:o}}let f={};i&&!u&&(f=Object.keys(c.lookup).reduce((v,b)=>P({},v,{[b]:!1}),{})),t.forEach(v=>{const{field:b}=v;f[b]=!0;let C=c.lookup[b];C==null?(C=P({},W8(r,v.type),{field:b,hasBeenResized:!1}),c.orderedFields.push(b)):i&&c.orderedFields.push(b),C&&C.type!==v.type&&(C=P({},W8(r,v.type),{field:b}));let x=C.hasBeenResized;eU.forEach(w=>{v[w]!==void 0&&(x=!0,v[w]===-1&&(v[w]=1/0))}),c.lookup[b]=P({},C,v,{hasBeenResized:x})}),i&&!u&&Object.keys(c.lookup).forEach(v=>{f[v]||delete c.lookup[v]});const p=e.current.unstable_applyPipeProcessors("hydrateColumns",c),y=HDe(p,n);return Rk(y,(a=(s=(l=e.current).getRootDimensions)==null||(s=s.call(l))==null?void 0:s.viewportInnerSize.width)!=null?a:0)},V8=e=>t=>P({},t,{columns:e});function Ok({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a{var r,o,i,a;const s=df({apiRef:n,columnTypes:tU,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(i=t.columnVisibilityModel)!=null?i:(a=t.initialState)==null||(a=a.columns)==null?void 0:a.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return P({},e,{columns:s})};function UDe(e,t){var n,r;const o=ho(e,"useGridColumns"),i=tU,a=m.useRef(t.columns),s=m.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:$a,changeEvent:"columnVisibilityModelChange"});const l=m.useCallback(O=>{o.debug("Updating columns state."),e.current.setState(V8(O)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",O.orderedFields)},[o,e]),u=m.useCallback(O=>gd(e)[O],[e]),c=m.useCallback(()=>us(e),[e]),f=m.useCallback(()=>Xr(e),[e]),p=m.useCallback((O,D=!0)=>(D?Xr(e):us(e)).findIndex(B=>B.field===O),[e]),y=m.useCallback(O=>{const D=p(O);return Pp(e)[D]},[e,p]),v=m.useCallback(O=>{$a(e)!==O&&(e.current.setState(H=>P({},H,{columns:df({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),b=m.useCallback(O=>{const D=df({apiRef:e,columnTypes:i,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});l(D)},[e,l,i]),C=m.useCallback((O,D)=>{var H;const B=$a(e),j=(H=B[O])!=null?H:!0;if(D!==j){const W=P({},B,{[O]:D});e.current.setColumnVisibilityModel(W)}},[e]),x=m.useCallback(O=>tl(e).findIndex(H=>H===O),[e]),w=m.useCallback((O,D)=>{const H=tl(e),B=x(O);if(B===D)return;o.debug(`Moving column ${O} to index ${D}`);const j=[...H],W=j.splice(B,1)[0];j.splice(D,0,W),l(P({},kc(e.current.state),{orderedFields:j}));const U={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:B};e.current.publishEvent("columnIndexChange",U)},[e,o,l,x]),S=m.useCallback((O,D)=>{var H,B;o.debug(`Updating column ${O} width to ${D}`);const j=kc(e.current.state),W=j.lookup[O],U=P({},W,{width:D,hasBeenResized:!0});l(Rk(P({},j,{lookup:P({},j.lookup,{[O]:U})}),(H=(B=e.current.getRootDimensions())==null?void 0:B.viewportInnerSize.width)!=null?H:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:U,width:D})},[e,o,l]),$={getColumn:u,getAllColumns:c,getColumnIndex:p,getColumnPosition:y,getVisibleColumns:f,getColumnIndexRelativeToVisibleColumns:x,updateColumns:b,setColumnVisibilityModel:v,setColumnVisibility:C,setColumnWidth:S},T={setColumnIndex:w};Yt(e,$,"public"),Yt(e,T,t.signature===cs.DataGrid?"private":"public");const k=m.useCallback((O,D)=>{var H,B;const j={},W=$a(e);(!D.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((H=(B=t.initialState)==null||(B=B.columns)==null?void 0:B.columnVisibilityModel)!=null?H:{}).length>0||Object.keys(W).length>0)&&(j.columnVisibilityModel=W),j.orderedFields=tl(e);const Z=us(e),Y={};return Z.forEach(se=>{if(se.hasBeenResized){const Q={};eU.forEach(ne=>{let re=se[ne];re===1/0&&(re=-1),Q[ne]=re}),Y[se.field]=Q}}),Object.keys(Y).length>0&&(j.dimensions=Y),P({},O,{columns:j})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),M=m.useCallback((O,D)=>{var H;const B=(H=D.stateToRestore.columns)==null?void 0:H.columnVisibilityModel,j=D.stateToRestore.columns;if(B==null&&j==null)return O;const W=df({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:j,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(V8(W)),j!=null&&e.current.publishEvent("columnsChange",W.orderedFields),O},[e,i]),I=m.useCallback((O,D)=>{if(D===Ta.columns){var H;const B=t.slots.columnsPanel;return g.jsx(B,P({},(H=t.slotProps)==null?void 0:H.columnsPanel))}return O},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),N=m.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ir(e,"columnMenu",N),Ir(e,"exportState",k),Ir(e,"restoreState",M),Ir(e,"preferencePanel",I);const E=m.useRef(null);vt(e,"viewportInnerSizeChange",O=>{E.current!==O.width&&(E.current=O.width,l(Rk(kc(e.current.state),O.width)))});const z=m.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const O=df({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});l(O)},[e,o,l,i]);NT(e,"hydrateColumns",z);const L=m.useRef(!0);m.useEffect(()=>{if(L.current){L.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&s.current===i)return;const O=df({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,s.current=i,l(O)},[o,e,l,t.columns,i]),m.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const GDe=.7,qDe=1.3,nU={compact:GDe,comfortable:qDe,standard:1},KDe=(e,t)=>P({},e,{density:{value:t.density,factor:nU[t.density]}}),YDe=(e,t)=>{const n=ho(e,"useDensity"),r=m.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(a=>{const s=PT(a),l={value:i,factor:nU[i]};return nl(s,l)?a:P({},a,{density:l})}),e.current.forceUpdate()},[n,e]);m.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Yt(e,{setDensity:r},"public")};function XDe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const rU=({apiRef:e,options:t})=>{const n=us(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(s=>s.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:Xr(e)).filter(o=>!o.disableExport)},QDe=({apiRef:e})=>{var t,n;const r=VAe(e),o=wa(e),i=e.current.getSelectedRows(),a=r.filter(c=>o[c].type!=="footer"),s=eh(e),l=(s==null||(t=s.top)==null?void 0:t.map(c=>c.id))||[],u=(s==null||(n=s.bottom)==null?void 0:n.map(c=>c.id))||[];return a.unshift(...l),a.push(...u),i.size>0?a.filter(c=>i.has(c)):a},ZDe=(e,t)=>{const n=ho(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=m.useCallback((u={})=>{var c,f,p;n.debug("Get data as CSV");const y=rU({apiRef:e,options:u}),b=((c=u.getRowsToExport)!=null?c:QDe)({apiRef:e});return FDe({columns:y,rowIds:b,delimiterCharacter:u.delimiter||",",includeHeaders:(f=u.includeHeaders)!=null?f:!0,includeColumnGroupsHeaders:(p=u.includeColumnGroupsHeaders)!=null?p:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=m.useCallback(u=>{n.debug("Export data as CSV");const c=i(u),f=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",c],{type:"text/csv"});XDe(f,"csv",u==null?void 0:u.fileName)},[n,i]);Yt(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=m.useCallback((u,c)=>{var f;return(f=c.csvOptions)!=null&&f.disableToolbarButton?u:[...u,{component:g.jsx(vLe,{options:c.csvOptions}),componentName:"csvExport"}]},[]);Ir(e,"exportMenu",l)},JDe=(e,t)=>{var n,r;const o=P({},TV(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return EV(o.pageSize,t.signature),P({},e,{pagination:{paginationModel:o}})},z1=(e,t,n)=>r=>{var o;let i=r.paginationModel;const a=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,s=MV(e,a);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const l=e8e(i.page,s);return l!==i.page&&(i=P({},i,{page:l})),EV(i.pageSize,t),{paginationModel:i}},e7e=(e,t)=>{var n;const r=ho(e,"useGridPagination"),o=it(e,a2),i=it(e,th),a=Math.floor(t.rowHeight*i);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:zi,changeEvent:"paginationModelChange"});const s=m.useCallback(b=>{const C=zi(e);b!==C.page&&(r.debug(`Setting page to ${b}`),e.current.setPaginationModel({page:b,pageSize:C.pageSize}))},[e,r]),l=m.useCallback(b=>{const C=zi(e);b!==C.pageSize&&(r.debug(`Setting page size to ${b}`),e.current.setPaginationModel({pageSize:b,page:C.page}))},[e,r]),u=m.useCallback(b=>{var C;const x=zi(e);b!==x&&(r.debug("Setting 'paginationModel' to",b),e.current.updateControlState("pagination",z1((C=t.rowCount)!=null?C:o,t.signature,b),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Yt(e,{setPage:s,setPageSize:l,setPaginationModel:u},"public");const f=m.useCallback((b,C)=>{var x;const w=zi(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((x=t.initialState)==null||(x=x.pagination)==null?void 0:x.paginationModel)!=null||w.page!==0&&w.pageSize!==JFe(t.autoPageSize)?P({},b,{pagination:P({},b.pagination,{paginationModel:w})}):b},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),p=m.useCallback((b,C)=>{var x,w,S;const $=(x=C.stateToRestore.pagination)!=null&&x.paginationModel?P({},TV(t.autoPageSize),(w=C.stateToRestore.pagination)==null?void 0:w.paginationModel):zi(e);return e.current.updateControlState("pagination",z1((S=t.rowCount)!=null?S:o,t.signature,$),"stateRestorePreProcessing"),b},[e,t.autoPageSize,t.rowCount,t.signature,o]);Ir(e,"exportState",f),Ir(e,"restoreState",p);const y=()=>{var b;const C=zi(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},v=m.useCallback(()=>{const b=e.current.getRootDimensions();if(!t.autoPageSize||!b)return;const C=gV(e),x=Math.floor((b.viewportInnerSize.height-C.top-C.bottom)/a);e.current.setPageSize(x)},[e,t.autoPageSize,a]);vt(e,"viewportInnerSizeChange",v),vt(e,"paginationModelChange",y),m.useEffect(()=>{},[t.rowCount,t.paginationMode]),m.useEffect(()=>{var b;e.current.updateControlState("pagination",z1((b=t.rowCount)!=null?b:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),m.useEffect(()=>{v()},[v])};function t7e(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function n7e(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const r7e=(e,t)=>{const n=ho(e,"useGridPrintExport"),r=m.useRef(null),o=m.useRef(null),i=m.useRef({}),a=m.useRef([]);m.useEffect(()=>{r.current=Gn(e.current.rootElementRef.current)},[e]);const s=m.useCallback((v,b,C)=>new Promise(x=>{const w=rU({apiRef:e,options:{fields:v,allColumns:b}}).map(T=>T.field),S=us(e),$={};S.forEach(T=>{$[T.field]=w.includes(T.field)}),C&&($[nh.field]=!0),e.current.setColumnVisibilityModel($),x()}),[e]),l=m.useCallback(v=>{const C=v({apiRef:e}).map(x=>e.current.getRow(x));e.current.setRows(C)},[e]),u=m.useCallback((v,b)=>{var C,x;const w=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),S=v.contentDocument;if(!S)return;const $=Dg(e.current.state),T=e.current.rootElementRef.current,k=T.cloneNode(!0),M=k.querySelector(`.${le.main}`);M.style.overflow="visible",k.style.contain="size";const N=k.querySelector(`.${le.columnHeaders}`).querySelector(`.${le.columnHeadersInner}`);N.style.width="100%";let E=((C=T.querySelector(`.${le.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,A=((x=T.querySelector(`.${le.footerContainer}`))==null?void 0:x.offsetHeight)||0;if(w.hideToolbar){var z;(z=k.querySelector(`.${le.toolbarContainer}`))==null||z.remove(),E=0}if(w.hideFooter){var L;(L=k.querySelector(`.${le.footerContainer}`))==null||L.remove(),A=0}const O=$.currentPageTotalHeight+zT(e,t.columnHeaderHeight)+E+A;if(k.style.height=`${O}px`,k.style.boxSizing="content-box",b!=null&&b.getRowsToExport){const j=k.querySelector(`.${le.footerContainer}`);j.style.position="absolute",j.style.width="100%",j.style.top=`${O-A}px`}const D=document.createElement("div");D.appendChild(k),S.body.innerHTML=D.innerHTML;const H=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof H=="string"){const j=S.createElement("style");j.appendChild(S.createTextNode(H)),S.head.appendChild(j)}w.bodyClassName&&S.body.classList.add(...w.bodyClassName.split(" "));const B=[];if(w.copyStyles){const j=T.getRootNode(),U=(j.constructor.name==="ShadowRoot"?j:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let Z=0;Z{se.addEventListener("load",()=>Q())})),S.head.appendChild(se)}}}Promise.all(B).then(()=>{v.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=m.useCallback(v=>{var b;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(b=b.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),p={exportDataAsPrint:m.useCallback(async v=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=$a(e),a.current=e.current.getSortedRows(),t.pagination){const C=cV(e),x={page:0,pageSize:C};e.current.updateControlState("pagination",z1(C,"DataGridPro",x)),e.current.forceUpdate()}await s(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),v!=null&&v.getRowsToExport&&l(v.getRowsToExport),e.current.unstable_setVirtualization(!1),await t7e();const b=n7e(v==null?void 0:v.fileName);b.onload=()=>{u(b,v),b.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&c(b)})},r.current.body.appendChild(b)},[t,n,e,u,c,s,l])};Yt(e,p,"public");const y=m.useCallback((v,b)=>{var C;return(C=b.printOptions)!=null&&C.disableToolbarButton?v:[...v,{component:g.jsx(yLe,{options:b.printOptions}),componentName:"printExport"}]},[]);Ir(e,"exportMenu",y)},o7e=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:Lg();return P({},e,{filter:{filterModel:GV(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},i7e=e=>e.filteredRowsLookup;function U8(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function a7e(){return t2(Object.values)}const s7e=(e,t)=>{var n,r;const o=ho(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:qr,changeEvent:"filterModelChange"});const i=m.useCallback(()=>{e.current.setState(E=>{const A=qr(E,e.current.instanceId),z=t.filterMode==="client"?GLe(A,e,t.disableEval):null,L=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:z,filterModel:A??Lg()}),O=P({},E,{filter:P({},E.filter,L)}),D=U8(e,O);return P({},O,{visibleRowsLookup:D})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=m.useCallback((E,A)=>A==null||A.filterable===!1||t.disableColumnFilter?E:[...E,"columnMenuFilterItem"],[t.disableColumnFilter]),s=m.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),l=m.useCallback(E=>{const A=qr(e),z=[...A.items],L=z.findIndex(O=>O.id===E.id);L===-1?z.push(E):z[L]=E,e.current.setFilterModel(P({},A,{items:z}),"upsertFilterItem")},[e]),u=m.useCallback(E=>{const A=qr(e),z=[...A.items];E.forEach(L=>{const O=E.findIndex(D=>D.id===L.id);O===-1?z.push(L):z[O]=L}),e.current.setFilterModel(P({},A,{items:E}),"upsertFilterItems")},[e]),c=m.useCallback(E=>{const A=qr(e),z=A.items.filter(L=>L.id!==E.id);z.length!==A.items.length&&e.current.setFilterModel(P({},A,{items:z}),"deleteFilterItem")},[e]),f=m.useCallback((E,A,z)=>{if(o.debug("Displaying filter panel"),E){const L=qr(e),O=L.items.filter(j=>{var W;if(j.value!==void 0)return!(Array.isArray(j.value)&&j.value.length===0);const Z=(W=e.current.getColumn(j.field).filterOperators)==null?void 0:W.find(se=>se.value===j.operator);return!(typeof(Z==null?void 0:Z.requiresFilterValue)>"u"?!0:Z==null?void 0:Z.requiresFilterValue)});let D;const H=O.find(j=>j.field===E),B=e.current.getColumn(E);H?D=O:t.disableMultipleColumnsFiltering?D=[Tk({field:E,operator:B.filterOperators[0].value},e)]:D=[...O,Tk({field:E,operator:B.filterOperators[0].value},e)],e.current.setFilterModel(P({},L,{items:D}))}e.current.showPreferences(Ta.filters,A,z)},[e,o,t.disableMultipleColumnsFiltering]),p=m.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),y=m.useCallback(E=>{const A=qr(e);A.logicOperator!==E&&e.current.setFilterModel(P({},A,{logicOperator:E}),"changeLogicOperator")},[e]),v=m.useCallback(E=>{const A=qr(e);nl(A.quickFilterValues,E)||e.current.setFilterModel(P({},A,{quickFilterValues:[...E]}))},[e]),b=m.useCallback((E,A)=>{qr(e)!==E&&(o.debug("Setting filter model"),e.current.updateControlState("filter",O8(E,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:y,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:u,setFilterModel:b,showFilterPanel:f,hideFilterPanel:p,setQuickFilterValues:v,ignoreDiacritics:t.ignoreDiacritics};Yt(e,C,"public");const x=m.useCallback((E,A)=>{var z;const L=qr(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((z=t.initialState)==null||(z=z.filter)==null?void 0:z.filterModel)!=null||!nl(L,Lg())?P({},E,{filter:{filterModel:L}}):E},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),w=m.useCallback((E,A)=>{var z;const L=(z=A.stateToRestore.filter)==null?void 0:z.filterModel;return L==null?E:(e.current.updateControlState("filter",O8(L,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},E,{callbacks:[...E.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=m.useCallback((E,A)=>{if(A===Ta.filters){var z;const L=t.slots.filterPanel;return g.jsx(L,P({},(z=t.slotProps)==null?void 0:z.filterPanel))}return E},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:$}=t,T=wT(a7e),k=m.useCallback(E=>{if(t.filterMode!=="client"||!E.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=Gl(e),z={},{isRowMatchingFilters:L}=E,O={},D={passingFilterItems:null,passingQuickFilterValues:null},H=T.current(e.current.state.rows.dataRowIdToModelLookup);for(let W=0;W{o.debug("onColUpdated - GridColumns changed, applying filters");const E=qr(e),A=TAe(e),z=E.items.filter(L=>L.field&&A[L.field]);z.length{E==="filtering"&&e.current.unstable_applyFilters()},[e]),N=m.useCallback(()=>{e.current.setState(E=>P({},E,{visibleRowsLookup:U8(e,E)})),e.current.forceUpdate()},[e]);vt(e,"rowsSet",i),vt(e,"columnsChange",M),vt(e,"activeStrategyProcessorChange",I),vt(e,"rowExpansionChange",N),vt(e,"columnVisibilityModelChange",()=>{const E=qr(e);E.quickFilterValues&&E.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),S0(()=>{e.current.unstable_applyFilters()}),pn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},l7e=e=>P({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),u7e=(e,t)=>{const n=ho(e,"useGridFocus"),r=m.useRef(null),o=m.useCallback((M,I)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),I)},[e]),i=m.useCallback((M,I)=>{const N=si(e);(N==null?void 0:N.id)===M&&(N==null?void 0:N.field)===I||(e.current.setState(E=>(n.debug(`Focusing on cell with id=${M} and field=${I}`),P({},E,{tabIndex:{cell:{id:M,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(N&&o(N,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,I))))},[e,n,o]),a=m.useCallback((M,I={})=>{const N=si(e);o(N,I),e.current.setState(E=>(n.debug(`Focusing on column header with colIndex=${M}`),P({},E,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),s=m.useCallback((M,I={})=>{const N=si(e);o(N,I),e.current.setState(E=>(n.debug(`Focusing on column header filter with colIndex=${M}`),P({},E,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=m.useCallback((M,I,N={})=>{const E=si(e);E&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),N),e.current.setState(A=>P({},A,{tabIndex:{columnGroupHeader:{field:M,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=m.useCallback(()=>ab(e),[e]),c=m.useCallback((M,I,N)=>{let E=e.current.getColumnIndex(I);const A=Xr(e),z=pb(e,{pagination:t.pagination,paginationMode:t.paginationMode}),L=eh(e),O=[].concat(L.top||[],z.rows,L.bottom||[]);let D=O.findIndex(W=>W.id===M);N==="right"?E+=1:N==="left"?E-=1:D+=1,E>=A.length?(D+=1,D=0&&(E=A.length-1)),D=Mp(D,0,O.length-1);const H=O[D];if(!H)return;const B=e.current.unstable_getCellColSpanInfo(H.id,E);B&&B.spannedByColSpan&&(N==="left"||N==="below"?E=B.leftVisibleCellIndex:N==="right"&&(E=B.rightVisibleCellIndex)),E=Mp(E,0,A.length-1);const j=A[E];e.current.setCellFocus(H.id,j.field)},[e,t.pagination,t.paginationMode]),f=m.useCallback(({id:M,field:I})=>{e.current.setCellFocus(M,I)},[e]),p=m.useCallback((M,I)=>{I.key==="Enter"||I.key==="Tab"||I.key==="Shift"||db(I.key)||e.current.setCellFocus(M.id,M.field)},[e]),y=m.useCallback(({field:M},I)=>{I.target===I.currentTarget&&e.current.setColumnHeaderFocus(M,I)},[e]),v=m.useCallback(({fields:M,depth:I},N)=>{if(N.target!==N.currentTarget)return;const E=ab(e);E!==null&&E.depth===I&&M.includes(E.field)||e.current.setColumnGroupHeaderFocus(M[0],I,N)},[e]),b=m.useCallback((M,I)=>{var N;(N=I.relatedTarget)!=null&&N.className.includes(le.columnHeader)||(n.debug("Clearing focus"),e.current.setState(E=>P({},E,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=m.useCallback(M=>{r.current=M},[]),x=m.useCallback(M=>{const I=r.current;r.current=null;const N=si(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:I}))return;if(!N){I&&e.current.setCellFocus(I.id,I.field);return}if((I==null?void 0:I.id)===N.id&&(I==null?void 0:I.field)===N.field)return;const A=e.current.getCellElement(N.id,N.field);A!=null&&A.contains(M.target)||(I?e.current.setCellFocus(I.id,I.field):(e.current.setState(z=>P({},z,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(N,M)))},[e,o]),w=m.useCallback(M=>{if(M.cellMode==="view")return;const I=si(e);((I==null?void 0:I.id)!==M.id||(I==null?void 0:I.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),S=m.useCallback(()=>{const M=si(e);M&&!e.current.getRow(M.id)&&e.current.setState(I=>P({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),$=Dn(()=>{const M=si(e);if(!M)return;const I=pb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(I.rows.find(A=>A.id===M.id))return;const E=Xr(e);e.current.setState(A=>P({},A,{tabIndex:{cell:{id:I.rows[0].id,field:E[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},k={moveFocusToRelativeCell:c,setColumnGroupHeaderFocus:l,getColumnGroupHeaderFocus:u};Yt(e,T,"public"),Yt(e,k,"private"),m.useEffect(()=>{const M=Gn(e.current.rootElementRef.current);return M.addEventListener("mouseup",x),()=>{M.removeEventListener("mouseup",x)}},[e,x]),vt(e,"columnHeaderBlur",b),vt(e,"cellDoubleClick",f),vt(e,"cellMouseDown",C),vt(e,"cellKeyDown",p),vt(e,"cellModeChange",w),vt(e,"columnHeaderFocus",y),vt(e,"columnGroupHeaderFocus",v),vt(e,"rowsSet",S),vt(e,"paginationModelChange",$)};function c7e(e,t){const n=eh(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const t$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(et)return e-1;return null},n$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e{const n=ho(e,"useGridKeyboardNavigation"),r=vd(e,t).rows,o=Xt(),i=m.useMemo(()=>c7e(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.unstable_headerFilters,s=m.useCallback((x,w,S="left")=>{const $=Tu(e),T=e.current.unstable_getCellColSpanInfo(w,x);T&&T.spannedByColSpan&&(S==="left"?x=T.leftVisibleCellIndex:S==="right"&&(x=T.rightVisibleCellIndex));const k=$.findIndex(I=>I.id===w);n.debug(`Navigating to cell row ${k}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:k});const M=e.current.getVisibleColumns()[x].field;e.current.setCellFocus(w,M)},[e,n]),l=m.useCallback((x,w)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(S,w)},[e,n]),u=m.useCallback((x,w)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(S,w)},[e,n]),c=m.useCallback((x,w,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:$}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus($,w,S)},[e,n]),f=m.useCallback(x=>{var w;return(w=i[x])==null?void 0:w.id},[i]),p=m.useCallback((x,w)=>{const S=w.currentTarget.querySelector(`.${le.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(w.target)&&x.field!==nh.field||!e.current.getRootDimensions())return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,I=i.length>0?0:null,N=i.length-1,E=0,A=Xr(e).length-1,z=C0(e);let L=!0;switch(w.key){case"ArrowDown":{I!==null&&(a?u(M,w):s(M,f(I)));break}case"ArrowRight":{const O=n$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowLeft":{const O=t$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowUp":{z>0&&c(M,z-1,w);break}case"PageDown":{I!==null&&N!==null&&s(M,f(Math.min(I+k,N)));break}case"Home":{l(E,w);break}case"End":{l(A,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:L=!1}L&&w.preventDefault()},[e,i.length,a,u,s,f,o.direction,l,c]),y=m.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=p8e(e)===x.field,T=h8e(e)===x.field;if($||T||!db(w.key))return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,I=0,N=i.length-1,E=0,A=Xr(e).length-1;let z=!0;switch(w.key){case"ArrowDown":{const L=f(I);L!=null&&s(M,L);break}case"ArrowRight":{const L=n$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});L!==null&&u(L,w);break}case"ArrowLeft":{const L=t$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});L!==null?u(L,w):e.current.setColumnHeaderFilterFocus(x.field,w);break}case"ArrowUp":{l(M,w);break}case"PageDown":{N!==null&&s(M,f(Math.min(I+k,N)));break}case"Home":{u(E,w);break}case"End":{u(A,w);break}case" ":break;default:z=!1}z&&w.preventDefault()},[e,i.length,u,o.direction,l,s,f]),v=m.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=ab(e);if($===null)return;const{field:T,depth:k}=$,{fields:M,depth:I,maxDepth:N}=x,E=e.current.getViewportPageSize(),A=e.current.getColumnIndex(T),z=T?e.current.getColumnIndex(T):0,L=0,O=i.length-1,D=0,H=Xr(e).length-1;let B=!0;switch(w.key){case"ArrowDown":{I===N-1?l(A,w):c(A,k+1,w);break}case"ArrowUp":{I>0&&c(A,k-1,w);break}case"ArrowRight":{const j=M.length-M.indexOf(T)-1;A+j+1<=H&&c(A+j+1,k,w);break}case"ArrowLeft":{const j=M.indexOf(T);A-j-1>=D&&c(A-j-1,k,w);break}case"PageDown":{O!==null&&s(z,f(Math.min(L+E,O)));break}case"Home":{c(D,k,w);break}case"End":{c(H,k,w);break}case" ":break;default:B=!1}B&&w.preventDefault()},[e,i.length,l,c,s,f]),b=m.useCallback((x,w)=>{if(!w.currentTarget.contains(w.target))return;const S=e.current.getCellParams(x.id,x.field);if(S.cellMode===Pn.Edit||!db(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:S}))return;const T=e.current.getRootDimensions();if(i.length===0||!T)return;const k=o.direction,M=e.current.getViewportPageSize(),I=x.field?e.current.getColumnIndex(x.field):0,N=i.findIndex(D=>D.id===x.id),E=0,A=i.length-1,z=0,L=Xr(e).length-1;let O=!0;switch(w.key){case"ArrowDown":{NE?s(I,f(N-1)):a?u(I,w):l(I,w);break}case"ArrowRight":{const D=n$({currentColIndex:I,firstColIndex:z,lastColIndex:L,direction:k});D!==null&&s(D,f(N),k==="rtl"?"left":"right");break}case"ArrowLeft":{const D=t$({currentColIndex:I,firstColIndex:z,lastColIndex:L,direction:k});D!==null&&s(D,f(N),k==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&I>z?s(I-1,f(N),"left"):!w.shiftKey&&I=E?s(I,f(D)):l(I,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?s(z,f(E)):s(z,f(N));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?s(L,f(A)):s(L,f(N));break}default:O=!1}O&&w.preventDefault()},[e,i,o.direction,s,f,a,u,l]),C=m.useCallback((x,{event:w})=>w.key===" "?!1:x,[]);Ir(e,"canStartEditing",C),vt(e,"columnHeaderKeyDown",p),vt(e,"headerFilterKeyDown",y),vt(e,"columnGroupHeaderKeyDown",v),vt(e,"cellKeyDown",b)},f7e=(e,t)=>{var n,r;return P({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},p7e=(e,t)=>{var n;const r=ho(e,"useGridPreferencesPanel"),o=m.useRef(),i=m.useRef(),a=m.useCallback(()=>{r.debug("Hiding Preferences Panel");const p=Zc(e.current.state);p.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:p.openedPanelValue}),e.current.setState(y=>P({},y,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),s=m.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),l=m.useCallback(()=>{o.current=setTimeout(a,100)},[a]),u=m.useCallback((p,y,v)=>{r.debug("Opening Preferences Panel"),s(),e.current.setState(b=>P({},b,{preferencePanel:P({},b.preferencePanel,{open:!0,openedPanelValue:p,panelId:y,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:p}),e.current.forceUpdate()},[r,s,e]);Yt(e,{showPreferences:u,hidePreferences:l},"public");const c=m.useCallback((p,y)=>{var v;const b=Zc(e.current.state);return!y.exportOnlyDirtyModels||((v=t.initialState)==null?void 0:v.preferencePanel)!=null||b.open?P({},p,{preferencePanel:b}):p},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),f=m.useCallback((p,y)=>{const v=y.stateToRestore.preferencePanel;return v!=null&&e.current.setState(b=>P({},b,{preferencePanel:v})),p},[e]);Ir(e,"exportState",c),Ir(e,"restoreState",f),m.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},h7e=["id","field"],m7e=["id","field"],g7e=$s(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),v7e=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:u}=t,c=O=>(...D)=>{t.editMode===gs.Cell&&O(...D)},f=m.useCallback((O,D)=>{const H=e.current.getCellParams(O,D);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${O} and field=${D} is not editable.`)},[e]),p=m.useCallback((O,D,H)=>{if(e.current.getCellMode(O,D)!==H)throw new Error(`MUI: The cell with id=${O} and field=${D} is not in ${H} mode.`)},[e]),y=m.useCallback((O,D)=>{if(!O.isEditable||O.cellMode===Pn.Edit)return;const H=P({},O,{reason:Tl.cellDoubleClick});e.current.publishEvent("cellEditStart",H,D)},[e]),v=m.useCallback((O,D)=>{if(O.cellMode===Pn.View||e.current.getCellMode(O.id,O.field)===Pn.View)return;const H=P({},O,{reason:ga.cellFocusOut});e.current.publishEvent("cellEditStop",H,D)},[e]),b=m.useCallback((O,D)=>{if(O.cellMode===Pn.Edit){if(D.which===229)return;let H;if(D.key==="Escape"?H=ga.escapeKeyDown:D.key==="Enter"?H=ga.enterKeyDown:D.key==="Tab"&&(H=D.shiftKey?ga.shiftTabKeyDown:ga.tabKeyDown,D.preventDefault()),H){const B=P({},O,{reason:H});e.current.publishEvent("cellEditStop",B,D)}}else if(O.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:D,cellParams:O,editMode:"cell"}))return;if(CV(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?H=Tl.printableKeyDown:D.key==="Enter"?H=Tl.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(H=Tl.deleteKeyDown),H){const j=P({},O,{reason:H,key:D.key});e.current.publishEvent("cellEditStart",j,D)}}},[e]),C=m.useCallback(O=>{const{id:D,field:H,reason:B,key:j,colDef:W}=O,U={id:D,field:H};if(B===Tl.printableKeyDown)if(m.version.startsWith("17"))U.deleteValue=!0;else{const Z=W.valueParser?W.valueParser(j):j;U.initialValue=Z}else B===Tl.deleteKeyDown&&(U.deleteValue=!0);e.current.startCellEditMode(U)},[e]),x=m.useCallback(O=>{const{id:D,field:H,reason:B}=O;e.current.runPendingEditCellValueMutation(D,H);let j;B===ga.enterKeyDown?j="below":B===ga.tabKeyDown?j="right":B===ga.shiftTabKeyDown&&(j="left");const W=B==="escapeKeyDown";e.current.stopCellEditMode({id:D,field:H,ignoreModifications:W,cellToFocusAfter:j})},[e]);vt(e,"cellDoubleClick",c(y)),vt(e,"cellFocusOut",c(v)),vt(e,"cellKeyDown",c(b)),vt(e,"cellEditStart",c(C)),vt(e,"cellEditStop",c(x)),Yn(e,"cellEditStart",t.onCellEditStart),Yn(e,"cellEditStop",t.onCellEditStop);const w=m.useCallback((O,D)=>{const H=bo(e.current.state);return H[O]&&H[O][D]?Pn.Edit:Pn.View},[e]),S=Dn(O=>{const D=O!==t.cellModesModel;u&&D&&u(O,{}),!(t.cellModesModel&&D)&&(r(O),o.current=O,e.current.publishEvent("cellModesModelChange",O))}),$=m.useCallback((O,D,H)=>{const B=P({},o.current);if(H!==null)B[O]=P({},B[O],{[D]:P({},H)});else{const j=B[O],W=be(j,[D].map(Ng));B[O]=W,Object.keys(B[O]).length===0&&delete B[O]}S(B)},[S]),T=m.useCallback((O,D,H)=>{e.current.setState(B=>{const j=P({},B.editRows);return H!==null?j[O]=P({},j[O],{[D]:P({},H)}):(delete j[O][D],Object.keys(j[O]).length===0&&delete j[O]),P({},B,{editRows:j})}),e.current.forceUpdate()},[e]),k=m.useCallback(O=>{const{id:D,field:H}=O,B=be(O,h7e);f(D,H),p(D,H,Pn.View),$(D,H,P({mode:Pn.Edit},B))},[f,p,$]),M=Dn(O=>{const{id:D,field:H,deleteValue:B,initialValue:j}=O;let W=e.current.getCellValue(D,H),U=!1;(B||j)&&(W=B?"":j,U=!0),T(D,H,{value:W,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:U}),e.current.setCellFocus(D,H)}),I=m.useCallback(O=>{const{id:D,field:H}=O,B=be(O,m7e);p(D,H,Pn.Edit),$(D,H,P({mode:Pn.View},B))},[p,$]),N=Dn(async O=>{const{id:D,field:H,ignoreModifications:B,cellToFocusAfter:j="none"}=O;p(D,H,Pn.Edit),e.current.runPendingEditCellValueMutation(D,H);const W=()=>{T(D,H,null),$(D,H,null),j!=="none"&&e.current.moveFocusToRelativeCell(D,H,j)};if(B){W();return}const U=bo(e.current.state),{error:Z,isProcessingProps:Y}=U[D][H];if(Z||Y){i.current[D][H].mode=Pn.Edit,$(D,H,{mode:Pn.Edit});return}const se=e.current.getRowWithUpdatedValuesFromCellEditing(D,H);if(a){const Q=ne=>{i.current[D][H].mode=Pn.Edit,$(D,H,{mode:Pn.Edit}),s?s(ne):g7e()};try{const ne=e.current.getRow(D);Promise.resolve(a(se,ne)).then(re=>{e.current.updateRows([re]),W()}).catch(Q)}catch(ne){Q(ne)}}else e.current.updateRows([se]),W()}),E=m.useCallback(async O=>{var D;const{id:H,field:B,value:j,debounceMs:W,unstable_skipValueParser:U}=O;f(H,B),p(H,B,Pn.Edit);const Z=e.current.getColumn(B),Y=e.current.getRow(H);let se=j;Z.valueParser&&!U&&(se=Z.valueParser(j,e.current.getCellParams(H,B)));let Q=bo(e.current.state),ne=P({},Q[H][B],{value:se,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(Z.preProcessEditCellProps){const re=j!==Q[H][B].value;ne=P({},ne,{isProcessingProps:!0}),T(H,B,ne),ne=await Promise.resolve(Z.preProcessEditCellProps({id:H,row:Y,props:ne,hasChanged:re}))}return e.current.getCellMode(H,B)===Pn.View?!1:(Q=bo(e.current.state),ne=P({},ne,{isProcessingProps:!1}),ne.value=Z.preProcessEditCellProps?Q[H][B].value:se,T(H,B,ne),Q=bo(e.current.state),!((D=Q[H])!=null&&(D=D[B])!=null&&D.error))},[e,f,p,T]),A=m.useCallback((O,D)=>{const H=e.current.getColumn(D),B=bo(e.current.state),j=e.current.getRow(O);if(!B[O]||!B[O][D])return e.current.getRow(O);const{value:W}=B[O][D];return H.valueSetter?H.valueSetter({value:W,row:j}):P({},j,{[D]:W})},[e]),z={getCellMode:w,startCellEditMode:k,stopCellEditMode:I},L={setCellEditingEditCellValue:E,getRowWithUpdatedValuesFromCellEditing:A};Yt(e,z,"public"),Yt(e,L,"private"),m.useEffect(()=>{l&&S(l)},[l,S]),m.useEffect(()=>{const O=ib(e),D=i.current;i.current=PV(n),Object.entries(n).forEach(([H,B])=>{Object.entries(B).forEach(([j,W])=>{var U,Z;const Y=((U=D[H])==null||(U=U[j])==null?void 0:U.mode)||Pn.View,se=(Z=O[H])!=null?Z:H;W.mode===Pn.Edit&&Y===Pn.View?M(P({id:se,field:j},W)):W.mode===Pn.View&&Y===Pn.Edit&&N(P({id:se,field:j},W))})})},[e,n,M,N])},y7e=["id"],b7e=["id"],x7e=$s(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),w7e=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),a=m.useRef(null),s=m.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:u,rowModesModel:c,onRowModesModelChange:f}=t,p=j=>(...W)=>{t.editMode===gs.Row&&j(...W)},y=m.useCallback((j,W)=>{const U=e.current.getCellParams(j,W);if(!e.current.isCellEditable(U))throw new Error(`MUI: The cell with id=${j} and field=${W} is not editable.`)},[e]),v=m.useCallback((j,W)=>{if(e.current.getRowMode(j)!==W)throw new Error(`MUI: The row with id=${j} is not in ${W} mode.`)},[e]),b=m.useCallback((j,W)=>{if(!j.isEditable||e.current.getRowMode(j.id)===Bn.Edit)return;const U=e.current.getRowParams(j.id),Z=P({},U,{field:j.field,reason:El.cellDoubleClick});e.current.publishEvent("rowEditStart",Z,W)},[e]),C=m.useCallback(j=>{s.current=j},[]),x=m.useCallback((j,W)=>{j.isEditable&&e.current.getRowMode(j.id)!==Bn.View&&(s.current=null,a.current=setTimeout(()=>{var U;if(a.current=null,((U=s.current)==null?void 0:U.id)!==j.id){if(!e.current.getRow(j.id)||e.current.getRowMode(j.id)===Bn.View)return;const Z=e.current.getRowParams(j.id),Y=P({},Z,{field:j.field,reason:Ns.rowFocusOut});e.current.publishEvent("rowEditStop",Y,W)}}))},[e]);m.useEffect(()=>()=>{clearTimeout(a.current)},[]);const w=m.useCallback((j,W)=>{if(j.cellMode===Bn.Edit){if(W.which===229)return;let U;if(W.key==="Escape")U=Ns.escapeKeyDown;else if(W.key==="Enter")U=Ns.enterKeyDown;else if(W.key==="Tab"){const Z=n2(e).filter(Y=>e.current.getColumn(Y).type===f2?!0:e.current.isCellEditable(e.current.getCellParams(j.id,Y)));if(W.shiftKey?j.field===Z[0]&&(U=Ns.shiftTabKeyDown):j.field===Z[Z.length-1]&&(U=Ns.tabKeyDown),W.preventDefault(),!U){const Y=Z.findIndex(Q=>Q===j.field),se=Z[W.shiftKey?Y-1:Y+1];e.current.setCellFocus(j.id,se)}}if(U){const Z=P({},e.current.getRowParams(j.id),{reason:U,field:j.field});e.current.publishEvent("rowEditStop",Z,W)}}else if(j.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:j,editMode:"row"}))return;if(CV(W)||(W.ctrlKey||W.metaKey)&&W.key==="v"?U=El.printableKeyDown:W.key==="Enter"?U=El.enterKeyDown:(W.key==="Delete"||W.key==="Backspace")&&(U=El.deleteKeyDown),U){const Y=e.current.getRowParams(j.id),se=P({},Y,{field:j.field,key:W.key,reason:U});e.current.publishEvent("rowEditStart",se,W)}}},[e]),S=m.useCallback(j=>{const{id:W,field:U,reason:Z,key:Y,columns:se}=j,Q={id:W,fieldToFocus:U};if(Z===El.printableKeyDown)if(m.version.startsWith("17"))Q.deleteValue=!!U;else{const ne=se.find(re=>re.field===U);Q.initialValue=ne.valueParser?ne.valueParser(Y):Y}else Z===El.deleteKeyDown&&(Q.deleteValue=!!U);e.current.startRowEditMode(Q)},[e]),$=m.useCallback(j=>{const{id:W,reason:U,field:Z}=j;e.current.runPendingEditCellValueMutation(W);let Y;U===Ns.enterKeyDown?Y="below":U===Ns.tabKeyDown?Y="right":U===Ns.shiftTabKeyDown&&(Y="left");const se=U==="escapeKeyDown";e.current.stopRowEditMode({id:W,ignoreModifications:se,field:Z,cellToFocusAfter:Y})},[e]);vt(e,"cellDoubleClick",p(b)),vt(e,"cellFocusIn",p(C)),vt(e,"cellFocusOut",p(x)),vt(e,"cellKeyDown",p(w)),vt(e,"rowEditStart",p(S)),vt(e,"rowEditStop",p($)),Yn(e,"rowEditStart",t.onRowEditStart),Yn(e,"rowEditStop",t.onRowEditStop);const T=m.useCallback(j=>{if(t.editMode===gs.Cell)return Bn.View;const W=bo(e.current.state);return W[j]&&Object.keys(W[j]).length>0?Bn.Edit:Bn.View},[e,t.editMode]),k=Dn(j=>{const W=j!==t.rowModesModel;f&&W&&f(j,{}),!(t.rowModesModel&&W)&&(r(j),o.current=j,e.current.publishEvent("rowModesModelChange",j))}),M=m.useCallback((j,W)=>{const U=P({},o.current);W!==null?U[j]=P({},W):delete U[j],k(U)},[k]),I=m.useCallback((j,W)=>{e.current.setState(U=>{const Z=P({},U.editRows);return W!==null?Z[j]=W:delete Z[j],P({},U,{editRows:Z})}),e.current.forceUpdate()},[e]),N=m.useCallback((j,W,U)=>{e.current.setState(Z=>{const Y=P({},Z.editRows);return U!==null?Y[j]=P({},Y[j],{[W]:P({},U)}):(delete Y[j][W],Object.keys(Y[j]).length===0&&delete Y[j]),P({},Z,{editRows:Y})}),e.current.forceUpdate()},[e]),E=m.useCallback(j=>{const{id:W}=j,U=be(j,y7e);v(W,Bn.View),M(W,P({mode:Bn.Edit},U))},[v,M]),A=Dn(j=>{const{id:W,fieldToFocus:U,deleteValue:Z,initialValue:Y}=j,Q=tl(e).reduce((ne,re)=>{if(!e.current.getCellParams(W,re).isEditable)return ne;let xe=e.current.getCellValue(W,re),fe=!1;return U===re&&(Z||Y)&&(xe=Z?"":Y,fe=!0),ne[re]={value:xe,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:fe},ne},{});I(W,Q),U&&e.current.setCellFocus(W,U)}),z=m.useCallback(j=>{const{id:W}=j,U=be(j,b7e);v(W,Bn.Edit),M(W,P({mode:Bn.View},U))},[v,M]),L=Dn(j=>{const{id:W,ignoreModifications:U,field:Z,cellToFocusAfter:Y="none"}=j;e.current.runPendingEditCellValueMutation(W);const se=()=>{Y!=="none"&&Z&&e.current.moveFocusToRelativeCell(W,Z,Y),I(W,null),M(W,null)};if(U){se();return}const Q=bo(e.current.state),ne=e.current.getRow(W);if(Object.values(Q[W]).some(fe=>fe.isProcessingProps)){i.current[W].mode=Bn.Edit;return}if(Object.values(Q[W]).some(fe=>fe.error)){i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit});return}const xe=e.current.getRowWithUpdatedValuesFromRowEditing(W);if(l){const fe=Se=>{i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit}),u?u(Se):x7e()};try{Promise.resolve(l(xe,ne)).then(Se=>{e.current.updateRows([Se]),se()}).catch(fe)}catch(Se){fe(Se)}}else e.current.updateRows([xe]),se()}),O=m.useCallback(j=>{const{id:W,field:U,value:Z,debounceMs:Y,unstable_skipValueParser:se}=j;y(W,U);const Q=e.current.getColumn(U),ne=e.current.getRow(W);let re=Z;Q.valueParser&&!se&&(re=Q.valueParser(Z,e.current.getCellParams(W,U)));let ge=bo(e.current.state),xe=P({},ge[W][U],{value:re,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||N(W,U,xe),new Promise(fe=>{const Se=[];if(Q.preProcessEditCellProps){const de=xe.value!==ge[W][U].value;xe=P({},xe,{isProcessingProps:!0}),N(W,U,xe);const ie=ge[W],Pe=be(ie,[U].map(Ng)),$e=Promise.resolve(Q.preProcessEditCellProps({id:W,row:ne,props:xe,hasChanged:de,otherFieldsProps:Pe})).then(me=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ge=bo(e.current.state),me=P({},me,{isProcessingProps:!1}),me.value=Q.preProcessEditCellProps?ge[W][U].value:re,N(W,U,me)});Se.push($e)}Object.entries(ge[W]).forEach(([de,ie])=>{if(de===U)return;const Pe=e.current.getColumn(de);if(!Pe.preProcessEditCellProps)return;ie=P({},ie,{isProcessingProps:!0}),N(W,de,ie),ge=bo(e.current.state);const $e=ge[W],me=be($e,[de].map(Ng)),ue=Promise.resolve(Pe.preProcessEditCellProps({id:W,row:ne,props:ie,hasChanged:!1,otherFieldsProps:me})).then(ce=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ce=P({},ce,{isProcessingProps:!1}),N(W,de,ce)});Se.push(ue)}),Promise.all(Se).then(()=>{e.current.getRowMode(W)===Bn.Edit?(ge=bo(e.current.state),fe(!ge[W][U].error)):fe(!1)})})},[e,y,N]),D=m.useCallback(j=>{const W=bo(e.current.state),U=e.current.getRow(j);if(!W[j])return e.current.getRow(j);let Z=P({},U);return Object.entries(W[j]).forEach(([Y,se])=>{const Q=e.current.getColumn(Y);Q.valueSetter?Z=Q.valueSetter({value:se.value,row:Z}):Z[Y]=se.value}),Z},[e]),H={getRowMode:T,startRowEditMode:E,stopRowEditMode:z},B={setRowEditingEditCellValue:O,getRowWithUpdatedValuesFromRowEditing:D};Yt(e,H,"public"),Yt(e,B,"private"),m.useEffect(()=>{c&&k(c)},[c,k]),m.useEffect(()=>{const j=ib(e),W=i.current;i.current=PV(n),Object.entries(n).forEach(([U,Z])=>{var Y,se;const Q=((Y=W[U])==null?void 0:Y.mode)||Bn.View,ne=(se=j[U])!=null?se:U;Z.mode===Bn.Edit&&Q===Bn.View?A(P({id:ne},Z)):Z.mode===Bn.View&&Q===Bn.Edit&&L(P({id:ne},Z))})},[e,n,A,L])},C7e=e=>P({},e,{editRows:{}}),S7e=(e,t)=>{v7e(e,t),w7e(e,t);const n=m.useRef({}),{isCellEditable:r}=t,o=m.useCallback(p=>Fg(p.rowNode)||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!0,[r]),i=(p,y,v,b)=>{if(!v){b();return}if(n.current[p]||(n.current[p]={}),n.current[p][y]){const[w]=n.current[p][y];clearTimeout(w)}const C=()=>{const[w]=n.current[p][y];clearTimeout(w),b(),delete n.current[p][y]},x=setTimeout(()=>{b(),delete n.current[p][y]},v);n.current[p][y]=[x,C]};m.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([y,v])=>{Object.keys(v).forEach(b=>{const[C]=p[y][b];clearTimeout(C),delete p[y][b]})})}},[]);const a=m.useCallback((p,y)=>{if(n.current[p]){if(!y)Object.keys(n.current[p]).forEach(v=>{const[,b]=n.current[p][v];b()});else if(n.current[p][y]){const[,v]=n.current[p][y];v()}}},[]),s=m.useCallback(p=>{const{id:y,field:v,debounceMs:b}=p;return new Promise(C=>{i(y,v,b,async()=>{const x=t.editMode===gs.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(y,v)===Pn.Edit){const w=await x(p);C(w)}})})},[e,t.editMode]),l=m.useCallback((p,y)=>t.editMode===gs.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(p,y):e.current.getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]),u=m.useCallback((p,y)=>{var v,b;return(v=(b=bo(e.current.state)[p])==null?void 0:b[y])!=null?v:null},[e]),c={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:u},f={runPendingEditCellValueMutation:a};Yt(e,c,"public"),Yt(e,f,"private")},$7e=(e,t,n)=>(n.current.caches.rows=j1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:mV({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),_7e=(e,t)=>{const n=ho(e,"useGridRows"),r=vd(e,t),o=m.useRef(Date.now()),i=LT(),a=m.useCallback(L=>{const O=Gl(e)[L];if(O)return O;const D=e.current.getRowNode(L);return D&&Fg(D)?{[Yf]:L}:null},[e]),s=t.getRowId,l=m.useCallback(L=>Yf in L?L[Yf]:s?s(L):L.id,[s]),u=m.useMemo(()=>r.rows.reduce((L,{id:O},D)=>(L[O]=D,L),{}),[r.rows]),c=m.useCallback(({cache:L,throttle:O})=>{const D=()=>{o.current=Date.now(),e.current.setState(B=>P({},B,{rows:mV({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:wa(e),previousTreeDepths:g8(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=L,!O){D();return}const H=t.throttleRowsMs-(Date.now()-o.current);if(H>0){i.start(H,D);return}D()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),f=m.useCallback(L=>{n.debug(`Updating all rows, new length ${L.length}`);const O=j1({rows:L,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),D=e.current.caches.rows;O.rowsBeforePartialUpdates=D.rowsBeforePartialUpdates,c({cache:O,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=m.useCallback(L=>{if(t.signature===cs.DataGrid&&L.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));const O=[];L.forEach(H=>{const B=lb(H,t.getRowId,"A row was provided without id when calling updateRows():"),j=e.current.getRowNode(B);if((j==null?void 0:j.type)==="pinnedRow"){const W=e.current.caches.pinnedRows,U=W.idLookup[B];U&&(W.idLookup[B]=P({},U,H))}else O.push(H)});const D=ZAe({updates:O,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:D,throttle:!0})},[t.signature,t.getRowId,c,e]),y=m.useCallback(()=>{const L=t1(e),O=Gl(e);return new Map(L.map(D=>{var H;return[D,(H=O[D])!=null?H:{}]}))},[e]),v=m.useCallback(()=>o2(e),[e]),b=m.useCallback(()=>t1(e),[e]),C=m.useCallback(L=>u[L],[u]),x=m.useCallback((L,O)=>{const D=e.current.getRowNode(L);if(!D)throw new Error(`MUI: No row with id #${L} found`);if(D.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const H=P({},D,{childrenExpanded:O});e.current.setState(B=>P({},B,{rows:P({},B.rows,{tree:P({},B.rows.tree,{[L]:H})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",H)},[e]),w=m.useCallback(L=>{var O;return(O=wa(e)[L])!=null?O:null},[e]),S=m.useCallback(({skipAutoGeneratedRows:L=!0,groupId:O,applySorting:D,applyFiltering:H})=>{const B=wa(e);let j;if(D){const W=B[O];if(!W)return[];const U=$T(e);j=[];const Z=U.findIndex(Y=>Y===O)+1;for(let Y=Z;YW.depth;Y+=1){const se=U[Y];(!L||!Fg(B[se]))&&j.push(se)}}else j=MT(B,O,L);if(H){const W=lV(e);j=j.filter(U=>W[U]!==!1)}return j},[e]),$=m.useCallback((L,O)=>{const D=e.current.getRowNode(L);if(!D)throw new Error(`MUI: No row with id #${L} found`);if(D.parent!==xo)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(D.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(H=>{const B=wa(H,e.current.instanceId)[xo],j=B.children,W=j.findIndex(Z=>Z===L);if(W===-1||W===O)return H;n.debug(`Moving row ${L} to index ${O}`);const U=[...j];return U.splice(O,0,U.splice(W,1)[0]),P({},H,{rows:P({},H.rows,{tree:P({},H.rows.tree,{[xo]:P({},B,{children:U})})})})}),e.current.publishEvent("rowsSet")},[e,n]),T=m.useCallback((L,O)=>{if(t.signature===cs.DataGrid&&O.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));if(O.length===0)return;if(i2(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const H=P({},wa(e)),B=P({},Gl(e)),j=P({},ib(e)),W=H[xo],U=[...W.children];for(let Y=0;YH[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=B,e.current.caches.rows.dataRowIdToIdLookup=j,e.current.setState(Y=>P({},Y,{rows:P({},Y.rows,{dataRowIdToModelLookup:B,dataRowIdToIdLookup:j,dataRowIds:Z,tree:H})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:a,getRowId:l,getRowModels:y,getRowsCount:v,getAllRowIds:b,setRows:f,updateRows:p,getRowNode:w,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:T},M={setRowIndex:$,setRowChildrenExpansion:x,getRowGroupChildren:S},I=m.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?L=P({},e.current.caches.rows,{updates:{type:"full",rows:t1(e)}}):L=j1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:L,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),N=m.useCallback(L=>{L==="rowTreeCreation"&&I()},[I]),E=m.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==AAe(e)&&I()},[e,I]);vt(e,"activeStrategyProcessorChange",N),vt(e,"strategyAvailabilityChange",E);const A=m.useCallback(()=>{e.current.setState(L=>{const O=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:wa(L,e.current.instanceId),treeDepths:g8(L,e.current.instanceId),dataRowIds:t1(L,e.current.instanceId),dataRowIdToModelLookup:Gl(L,e.current.instanceId),dataRowIdToIdLookup:ib(L,e.current.instanceId)});return P({},L,{rows:P({},L.rows,O,{totalTopLevelRowCount:hV({tree:O.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);NT(e,"hydrateRows",A),Yt(e,k,"public"),Yt(e,M,t.signature===cs.DataGrid?"private":"public");const z=m.useRef(!0);m.useEffect(()=>{if(z.current){z.current=!1;return}const L=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,D=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(L){O||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),D||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{totalRowCount:Math.max(t.rowCount||0,H.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,H.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:j1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},k7e=e=>{const t={[xo]:P({},XAe(),{children:e})};for(let n=0;n{const n=P({},e),r={};for(let a=0;a!r[a])),n[xo]=P({},o,{children:i}),{groupingName:Jc,tree:n,treeDepths:{0:i.length},dataRowIds:i}},M7e=e=>e.updates.type==="full"?k7e(e.updates.rows):P7e({previousTree:e.previousTree,actions:e.updates.actions}),T7e=e=>{mb(e,Jc,"rowTreeCreation",M7e)},oU=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],E7e=(e,t)=>{var n;return P({},e,{rowSelection:t.rowSelection?(n=oU(t.rowSelectionModel))!=null?n:[]:[]})},I7e=(e,t)=>{const n=ho(e,"useGridSelection"),r=O=>(...D)=>{t.rowSelection&&O(...D)},o=m.useMemo(()=>oU(t.rowSelectionModel,ji(e.current.state)),[e,t.rowSelectionModel]),i=m.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ji,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:l,isRowSelectable:u}=t,c=!s||a,f=vd(e,t),p=m.useCallback(O=>{var D;let H=O;const B=(D=i.current)!=null?D:O,j=e.current.isRowSelected(O);if(j){const W=Rm(e),U=W.findIndex(Y=>Y===B),Z=W.findIndex(Y=>Y===H);if(U===Z)return;U>Z?H=W[Z+1]:H=W[Z-1]}i.current=O,e.current.selectRowRange({startId:B,endId:H},!j)},[e]),y=m.useCallback(O=>{if(t.signature===cs.DataGrid&&!t.checkboxSelection&&Array.isArray(O)&&O.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` +`));ji(e.current.state)!==O&&(n.debug("Setting selection model"),e.current.setState(H=>P({},H,{rowSelection:t.rowSelection?O:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),v=m.useCallback(O=>ji(e.current.state).includes(O),[e]),b=m.useCallback(O=>{if(u&&!u(e.current.getRowParams(O)))return!1;const D=e.current.getRowNode(O);return!((D==null?void 0:D.type)==="footer"||(D==null?void 0:D.type)==="pinnedRow")},[e,u]),C=m.useCallback(()=>i8e(e),[e]),x=m.useCallback((O,D=!0,H=!1)=>{if(e.current.isRowSelectable(O))if(i.current=O,H)n.debug(`Setting selection for row ${O}`),e.current.setRowSelectionModel(D?[O]:[]);else{n.debug(`Toggling selection for row ${O}`);const j=ji(e.current.state).filter(U=>U!==O);D&&j.push(O),(j.length<2||c)&&e.current.setRowSelectionModel(j)}},[e,n,c]),w=m.useCallback((O,D=!0,H=!1)=>{n.debug("Setting selection for several rows");const B=O.filter(U=>e.current.isRowSelectable(U));let j;if(H)j=D?B:[];else{const U=P({},fb(e));B.forEach(Z=>{D?U[Z]=Z:delete U[Z]}),j=Object.values(U)}(j.length<2||c)&&e.current.setRowSelectionModel(j)},[e,n,c]),S=m.useCallback(({startId:O,endId:D},H=!0,B=!1)=>{if(!e.current.getRow(O)||!e.current.getRow(D))return;n.debug(`Expanding selection from row ${O} to row ${D}`);const j=Rm(e),W=j.indexOf(O),U=j.indexOf(D),[Z,Y]=W>U?[U,W]:[W,U],se=j.slice(Z,Y+1);e.current.selectRows(se,H,B)},[e,n]),$={selectRow:x,setRowSelectionModel:y,getSelectedRows:C,isRowSelected:v,isRowSelectable:b},T={selectRows:w,selectRowRange:S};Yt(e,$,"public"),Yt(e,T,t.signature===cs.DataGrid?"private":"public");const k=m.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const O=ji(e.current.state),D=Gl(e),H=P({},fb(e));let B=!1;O.forEach(j=>{D[j]||(delete H[j],B=!0)}),B&&e.current.setRowSelectionModel(Object.values(H))},[e,t.keepNonExistentRowsSelected]),M=m.useCallback((O,D)=>{const H=D.metaKey||D.ctrlKey,B=!a&&!H&&!z6e(D),j=!c||B,W=e.current.isRowSelected(O);j?e.current.selectRow(O,B?!0:!W,!0):e.current.selectRow(O,!W,!1)},[e,c,a]),I=m.useCallback((O,D)=>{var H;if(l)return;const B=(H=D.target.closest(`.${le.cell}`))==null?void 0:H.getAttribute("data-field");if(B===nh.field||B===DT)return;if(B){const W=e.current.getColumn(B);if((W==null?void 0:W.type)===f2)return}e.current.getRowNode(O.id).type!=="pinnedRow"&&(D.shiftKey&&(c||a)?p(O.id):M(O.id,D))},[l,c,a,e,p,M]),N=m.useCallback((O,D)=>{if(c&&D.shiftKey){var H;(H=window.getSelection())==null||H.removeAllRanges()}},[c]),E=m.useCallback((O,D)=>{D.nativeEvent.shiftKey?p(O.id):e.current.selectRow(O.id,O.value)},[e,p]),A=m.useCallback(O=>{const H=t.checkboxSelectionVisibleOnly&&t.pagination?RV(e):Rm(e);e.current.selectRows(H,O.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),z=m.useCallback((O,D)=>{if(e.current.getCellMode(O.id,O.field)!==Pn.Edit&&D.currentTarget.contains(D.target)){if(db(D.key)&&D.shiftKey){const H=si(e);if(H&&H.id!==O.id){D.preventDefault();const B=e.current.isRowSelected(H.id);if(!c){e.current.selectRow(H.id,!B,!0);return}const j=e.current.getRowIndexRelativeToVisibleRows(H.id),W=e.current.getRowIndexRelativeToVisibleRows(O.id);let U,Z;j>W?B?(U=W,Z=j-1):(U=W,Z=j):B?(U=j+1,Z=W):(U=j,Z=W);const Y=f.rows.slice(U,Z+1).map(se=>se.id);e.current.selectRows(Y,!B);return}}if(D.key===" "&&D.shiftKey){D.preventDefault(),M(O.id,D);return}D.key==="a"&&(D.ctrlKey||D.metaKey)&&(D.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,M,w,f.rows,c]);vt(e,"sortedRowsSet",r(k)),vt(e,"rowClick",r(I)),vt(e,"rowSelectionCheckboxChange",r(E)),vt(e,"headerSelectionCheckboxChange",A),vt(e,"cellMouseDown",r(N)),vt(e,"cellKeyDown",r(z)),m.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),m.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const L=o!=null;m.useEffect(()=>{if(L||!t.rowSelection)return;const O=ji(e.current.state);if(b){const D=O.filter(H=>b(H));D.length{if(!t.rowSelection||L)return;const O=ji(e.current.state);!c&&O.length>1&&e.current.setRowSelectionModel([])},[e,c,a,L,t.rowSelection])},R7e={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},O7e=e=>{const{classes:t}=e;return m.useMemo(()=>qe({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Jt,t),[t])},A7e=(e,t)=>{const n={classes:t.classes},r=O7e(n),o=m.useCallback(i=>{const a=P({},nh,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[Il]!=null;return s&&!l?(i.lookup[Il]=a,i.orderedFields=[Il,...i.orderedFields]):!s&&l?(delete i.lookup[Il],i.orderedFields=i.orderedFields.filter(u=>u!==Il)):s&&l&&(i.lookup[Il]=P({},a,i.lookup[Il])),i},[e,r,t.checkboxSelection]);Ir(e,"hydrateColumns",o)},F7e=(e,t)=>{var n,r,o;const i=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return P({},e,{sorting:{sortModel:OV(i,t.disableMultipleColumnsSorting),sortedRows:[]}})},L7e=(e,t)=>{var n;const r=ho(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Di,changeEvent:"sortModelChange"});const o=m.useCallback((k,M)=>{const I=Di(e),N=I.findIndex(A=>A.field===k);let E=[...I];return N>-1?M?E.splice(N,1,M):E.splice(N,1):E=[...I,M],E},[e]),i=m.useCallback((k,M)=>{var I;const E=Di(e).find(z=>z.field===k.field);if(E){var A;const z=M===void 0?w8((A=k.sortingOrder)!=null?A:t.sortingOrder,E.sort):M;return z==null?void 0:P({},E,{sort:z})}return{field:k.field,sort:M===void 0?w8((I=k.sortingOrder)!=null?I:t.sortingOrder):M}},[e,t.sortingOrder]),a=m.useCallback((k,M)=>M==null||M.sortable===!1?k:(M.sortingOrder||t.sortingOrder).some(N=>!!N)?[...k,"columnMenuSortItem"]:k,[t.sortingOrder]),s=m.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),P({},k,{sorting:P({},k.sorting,{sortedRows:MT(wa(e),xo,!1)})});const M=Di(k,e.current.instanceId),I=c8e(M,e),N=e.current.applyStrategyProcessor("sorting",{sortRowList:I});return P({},k,{sorting:P({},k.sorting,{sortedRows:N})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),l=m.useCallback(k=>{Di(e)!==k&&(r.debug("Setting sort model"),e.current.setState(x8(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=m.useCallback((k,M,I)=>{if(!k.sortable)return;const N=i(k,M);let E;!I||t.disableMultipleColumnsSorting?E=N?[N]:[]:E=o(k.field,N),e.current.setSortModel(E)},[e,o,i,t.disableMultipleColumnsSorting]),c=m.useCallback(()=>Di(e),[e]),f=m.useCallback(()=>_T(e).map(M=>M.model),[e]),p=m.useCallback(()=>$T(e),[e]),y=m.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Yt(e,{getSortModel:c,getSortedRows:f,getSortedRowIds:p,getRowIdFromRowIndex:y,setSortModel:l,sortColumn:u,applySorting:s},"public");const b=m.useCallback((k,M)=>{var I;const N=Di(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((I=t.initialState)==null||(I=I.sorting)==null?void 0:I.sortModel)!=null||N.length>0?P({},k,{sorting:{sortModel:N}}):k},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=m.useCallback((k,M)=>{var I;const N=(I=M.stateToRestore.sorting)==null?void 0:I.sortModel;return N==null?k:(e.current.setState(x8(N,t.disableMultipleColumnsSorting)),P({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),x=m.useCallback(k=>{const M=wa(e),I=M[xo],N=k.sortRowList?k.sortRowList(I.children.map(E=>M[E])):[...I.children];return I.footerId!=null&&N.push(I.footerId),N},[e]);Ir(e,"exportState",b),Ir(e,"restoreState",C),mb(e,Jc,"sorting",x);const w=m.useCallback(({colDef:k},M)=>{const I=M.shiftKey||M.metaKey||M.ctrlKey;u(k,void 0,I)},[u]),S=m.useCallback(({colDef:k},M)=>{L6e(M.key)&&!M.ctrlKey&&!M.metaKey&&u(k,void 0,M.shiftKey)},[u]),$=m.useCallback(()=>{const k=Di(e),M=gd(e);if(k.length>0){const I=k.filter(N=>M[N.field]);I.length{k==="sorting"&&e.current.applySorting()},[e]);Ir(e,"columnMenu",a),vt(e,"columnHeaderClick",w),vt(e,"columnHeaderKeyDown",S),vt(e,"rowsSet",e.current.applySorting),vt(e,"columnsChange",$),vt(e,"activeStrategyProcessorChange",T),S0(()=>{e.current.applySorting()}),pn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function G8(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=Xt(),r=ho(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,a=it(e,Tu),s=m.useCallback(f=>{const p=o2(e),y=Xr(e);if(!(f.rowIndex==null)&&p===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${f.rowIndex}, col: ${f.colIndex} `);let b={};if(f.colIndex!=null){const S=Pp(e);let $;if(typeof f.rowIndex<"u"){var C;const T=(C=a[f.rowIndex])==null?void 0:C.id,k=e.current.unstable_getCellColSpanInfo(T,f.colIndex);k&&!k.spannedByColSpan&&($=k.cellProps.width)}typeof $>"u"&&($=y[f.colIndex].computedWidth),b.left=G8({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:$,offsetTop:S[f.colIndex]})}if(f.rowIndex!=null){var x,w;const S=Dg(e.current.state),$=t8e(e),T=n8e(e),k=t.pagination?f.rowIndex-$*T:f.rowIndex,M=S.positions[k+1]?S.positions[k+1]-S.positions[k]:S.currentPageTotalHeight-S.positions[k],I=((x=i.current.querySelector(`.${le["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,N=((w=i.current.querySelector(`.${le["pinnedRows--bottom"]}`))==null?void 0:w.clientHeight)||0;b.top=G8({clientHeight:i.current.clientHeight-I-N,scrollTop:i.current.scrollTop,offsetHeight:M,offsetTop:S.positions[k]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,f),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[r,e,i,t.pagination,a]),l=m.useCallback(f=>{if(i.current&&f.left!=null&&o.current){const p=n.direction==="rtl"?-1:1;o.current.scrollLeft=f.left,i.current.scrollLeft=p*f.left,r.debug(`Scrolling left: ${f.left}`)}i.current&&f.top!=null&&(i.current.scrollTop=f.top,r.debug(`Scrolling top: ${f.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),u=m.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Yt(e,{scroll:l,scrollToIndexes:s,getScrollPosition:u},"public")};function j7e(e,t){Yn(e,"columnHeaderClick",t.onColumnHeaderClick),Yn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Yn(e,"columnHeaderOver",t.onColumnHeaderOver),Yn(e,"columnHeaderOut",t.onColumnHeaderOut),Yn(e,"columnHeaderEnter",t.onColumnHeaderEnter),Yn(e,"columnHeaderLeave",t.onColumnHeaderLeave),Yn(e,"cellClick",t.onCellClick),Yn(e,"cellDoubleClick",t.onCellDoubleClick),Yn(e,"cellKeyDown",t.onCellKeyDown),Yn(e,"preferencePanelClose",t.onPreferencePanelClose),Yn(e,"preferencePanelOpen",t.onPreferencePanelOpen),Yn(e,"menuOpen",t.onMenuOpen),Yn(e,"menuClose",t.onMenuClose),Yn(e,"rowDoubleClick",t.onRowDoubleClick),Yn(e,"rowClick",t.onRowClick),Yn(e,"stateChange",t.onStateChange)}const N7e=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,a=!1;return(r||o)&&(i=r,a=e.height+(i?n:0)>t.height,a&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:a}};function z7e(e,t){const n=ho(e,"useResizeContainer"),r=m.useRef(!1),o=m.useRef(null),i=m.useRef(null),a=it(e,Dg),s=it(e,th),l=Math.floor(t.rowHeight*s),u=zT(e,t.columnHeaderHeight),c=m.useCallback(()=>{var M;const I=(M=e.current.rootElementRef)==null?void 0:M.current,N=ST(e),E=gV(e);if(!o.current)return;let A;if(t.scrollbarSize!=null)A=t.scrollbarSize;else if(!N||!I)A=0;else{const W=Gn(I).createElement("div");W.style.width="99px",W.style.height="99px",W.style.position="absolute",W.style.overflow="scroll",W.className="scrollDiv",I.appendChild(W),A=W.offsetWidth-W.clientWidth,I.removeChild(W)}let z,L,O;if(t.autoHeight)O=!1,L=Math.round(N)>Math.round(o.current.width),z={width:o.current.width,height:a.currentPageTotalHeight+(L?A:0)};else{z={width:o.current.width,height:Math.max(o.current.height-u,0)};const j=N7e({content:{width:Math.round(N),height:a.currentPageTotalHeight},container:{width:Math.round(z.width),height:z.height-E.top-E.bottom},scrollBarSize:A});O=j.hasScrollY,L=j.hasScrollX}const D={width:z.width-(O?A:0),height:z.height-(L?A:0)},H={viewportOuterSize:z,viewportInnerSize:D,hasScrollX:L,hasScrollY:O,scrollBarSize:A},B=i.current;i.current=H,(H.viewportInnerSize.width!==(B==null?void 0:B.viewportInnerSize.width)||H.viewportInnerSize.height!==(B==null?void 0:B.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",H.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u]),[f,p]=m.useState(),y=m.useMemo(()=>wu(p,60),[]),v=m.useRef();pn(()=>{f&&(c(),e.current.publishEvent("debouncedResize",o.current))},[e,f,c]);const b=m.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=m.useCallback(()=>i.current,[]),x=m.useCallback(()=>{const M=e.current.getRootDimensions();if(!M)return 0;const I=pb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const E=e.current.getRenderContext(),A=E.lastRowIndex-E.firstRowIndex;return Math.min(A-1,I.rows.length)}const N=Math.floor(M.viewportInnerSize.height/l);return Math.min(N,I.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,l]),w=m.useCallback(()=>{var M,I,N;const E=(M=e.current.mainElementRef)==null?void 0:M.current;if(!E)return;const z=ea(E).getComputedStyle(E),L=parseFloat(z.height)||0,O=parseFloat(z.width)||0,D=L!==((I=v.current)==null?void 0:I.height),H=O!==((N=v.current)==null?void 0:N.width);if(!v.current||D||H){const B={width:O,height:L};e.current.publishEvent("resize",B),v.current=B}},[e]),S={resize:b,getRootDimensions:C},$={getViewportPageSize:x,updateGridDimensionsRef:c,computeSizeAndPublishResizeEvent:w};Yt(e,S,"public"),Yt(e,$,"private");const T=m.useRef(!0),k=m.useCallback(M=>{o.current=M;const I=/jsdom/.test(window.navigator.userAgent);if(M.height===0&&!r.current&&!t.autoHeight&&!I&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` `)),r.current=!0),M.width===0&&!r.current&&!I&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),r.current=!0),T.current){p(M),T.current=!1;return}y(M)},[t.autoHeight,y,n]);pn(()=>c(),[c]),Yn(e,"sortedRowsSet",c),Yn(e,"paginationModelChange",c),Yn(e,"columnsChange",c),vt(e,"resize",k),Yn(e,"debouncedResize",t.onResize)}const N7e=["style"],z7e=["style"];function Qf(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?Qf(e,t,n,o):Qf(e,t,o+1,r)}function B7e(e,t,n){let r=1;for(;n[Tp(e-n,r,o),Tp(t+n,r,o)],aU=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,H7e={maxSize:3},W7e=e=>{var t,n;const r=Tu(),o=dt(),i=it(r,Xr),a=it(r,m8e),s=it(r,NV),{ref:l,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:f=i.length,getRowProps:p}=e,y=Xt(),v=it(r,Mp),b=it(r,$T),C=it(r,si),x=it(r,lb),w=it(r,jg),S=it(r,pb),$=yd(r,o),T=m.useRef(null),k=m.useRef(null),M=on(l,k),[I,N]=m.useState(null),E=m.useRef(I),A=m.useRef({top:0,left:0}),[z,L]=m.useState({width:null,height:null}),O=m.useRef(b),[D,H]=m.useState(null),B=m.useRef(Object.create(null)),j=m.useRef(),W=m.useRef(),U=m.useRef(n2((ue,ce,Te,Le,Re,Oe)=>{let K;const ee=ue.slice(ce,Te);return Oe>-1&&(ce>Oe&&Oe>=Le||TeC!==null?i.findIndex(ue=>ue.field===C.field):-1,[C,i]),Y=m.useCallback(ue=>{var ce,Te;const Le=r.current.getLastMeasuredRowIndex();let Re=Le===1/0;(ce=$.range)!=null&&ce.lastRowIndex&&!Re&&(Re=Le>=$.range.lastRowIndex);const Oe=Tp(Le-(((Te=$.range)==null?void 0:Te.firstRowIndex)||0),0,w.positions.length);return Re||w.positions[Oe]>=ue?Qf(ue,w.positions):B7e(ue,w.positions,Oe)},[r,(t=$.range)==null?void 0:t.firstRowIndex,(n=$.range)==null?void 0:n.lastRowIndex,w.positions]),se=m.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:$.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ue,left:ce}=A.current,Te=Math.min(Y(ue),w.positions.length-1),Le=o.autoHeight?Te+$.rows.length:Y(ue+z.height);let Re=0,Oe=v.length;if(s){let K=!1;const[ee,pe]=Dl({firstIndex:Te,lastIndex:Le,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});for(let ye=ee;ye{a?(k.current.scrollLeft=0,k.current.scrollTop=0):T.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),pn(()=>{L({width:k.current.clientWidth,height:k.current.clientHeight})},[w.currentPageTotalHeight]);const Q=m.useCallback(()=>{k.current&&L({width:k.current.clientWidth,height:k.current.clientHeight})},[]);vt(r,"debouncedResize",Q);const ne=m.useCallback(ue=>{const[ce,Te]=Dl({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer}),[Le]=Dl({firstIndex:ue.firstColumnIndex,lastIndex:ue.lastColumnIndex,minFirstIndex:c,maxLastIndex:f,buffer:o.columnBuffer}),Re=Ak({firstColumnToRender:Le,apiRef:r,firstRowToRender:ce,lastRowToRender:Te,visibleRows:$.rows}),Oe=y.direction==="ltr"?1:-1,K=jg(r.current.state).positions[ce],ee=Oe*Mp(r)[Re];T.current.style.transform=`translate3d(${ee}px, ${K}px, 0px)`,typeof u=="function"&&u({top:K,left:ee})},[r,$.rows,u,c,f,o.columnBuffer,o.rowBuffer,y.direction]),re=m.useCallback(()=>E.current,[]),ge=m.useCallback(ue=>{if(E.current&&aU(ue,E.current)){ne(ue);return}N(ue),ne(ue);const[ce,Te]=Dl({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ce,lastRowToRender:Te}),E.current=ue},[r,N,E,$.rows.length,o.rowBuffer,ne]);pn(()=>{if(z.width==null)return;const ue=se();ge(ue);const{top:ce,left:Te}=A.current,Le={top:ce,left:Te,renderContext:ue};r.current.publishEvent("scrollPositionChange",Le)},[r,se,z.width,ge]);const xe=Dn(ue=>{const{scrollTop:ce,scrollLeft:Te}=ue.currentTarget;if(A.current.top=ce,A.current.left=Te,!E.current||ce<0||y.direction==="ltr"&&Te<0||y.direction==="rtl"&&Te>0)return;const Le=a?se():E.current,Re=Math.abs(Le.firstRowIndex-E.current.firstRowIndex),Oe=Math.abs(Le.lastRowIndex-E.current.lastRowIndex),K=Math.abs(Le.firstColumnIndex-E.current.firstColumnIndex),ee=Math.abs(Le.lastColumnIndex-E.current.lastColumnIndex),pe=Re>=o.rowThreshold||Oe>=o.rowThreshold||K>=o.columnThreshold||ee>=o.columnThreshold||O.current!==b;r.current.publishEvent("scrollPositionChange",{top:ce,left:Te,renderContext:pe?Le:E.current},ue),pe&&(xu.flushSync(()=>{ge(Le)}),O.current=b)}),fe=Dn(ue=>{r.current.publishEvent("virtualScrollerWheel",{},ue)}),Se=Dn(ue=>{r.current.publishEvent("virtualScrollerTouchMove",{},ue)}),de=m.useMemo(()=>C!==null?$.rows.findIndex(ue=>ue.id===C.id):-1,[C,$.rows]);vt(r,"rowMouseOver",(ue,ce)=>{var Te;ce.currentTarget.contains(ce.relatedTarget)||H((Te=ue.id)!=null?Te:null)}),vt(r,"rowMouseOut",(ue,ce)=>{ce.currentTarget.contains(ce.relatedTarget)||H(null)});const ie=(ue={renderContext:I})=>{var ce;const{onRowRender:Te,renderContext:Le,minFirstColumn:Re=c,maxLastColumn:Oe=f,availableSpace:K=z.width,rowIndexOffset:ee=0,position:pe="center"}=ue;if(!Le||K==null)return null;const ye=a?o.rowBuffer:0,De=a?o.columnBuffer:0,[Ae,Ee]=Dl({firstIndex:Le.firstRowIndex,lastIndex:Le.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:ye}),Ce=[];if(ue.rows)ue.rows.forEach(ht=>{Ce.push(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i})});else{if(!$.range)return null;for(let ht=Ae;ht-1){const ht=$.rows[de];(Ae>de||EeAe?Ce.push(ht):Ce.unshift(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i}))}const[Ct,et]=Dl({firstIndex:Le.firstColumnIndex,lastIndex:Le.lastColumnIndex,minFirstIndex:Re,maxLastIndex:Oe,buffer:De}),Be=Ak({firstColumnToRender:Ct,apiRef:r,firstRowToRender:Ae,lastRowToRender:Ee,visibleRows:$.rows});let te=!1;(Be>Z||et=z.width,$e=m.useMemo(()=>{const ue=Math.max(w.currentPageTotalHeight,1);let ce=!1;k!=null&&k.current&&ue<=(k==null?void 0:k.current.clientHeight)&&(ce=!0);const Te={width:Pe?b:"auto",height:ue,minHeight:ce?"100%":"auto"};return o.autoHeight&&$.rows.length===0&&(Te.height=yV(r,o.rowHeight)),Te},[r,k,b,w.currentPageTotalHeight,Pe,o.autoHeight,o.rowHeight,$.rows.length]);m.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,$e]);const me=m.useMemo(()=>{const ue={};return Pe||(ue.overflowX="hidden"),o.autoHeight&&(ue.overflowY="hidden"),ue},[Pe,o.autoHeight]);return r.current.register("private",{getRenderContext:re}),{renderContext:I,updateRenderZonePosition:ne,getRows:ie,getRootProps:(ue={})=>P({ref:M,onScroll:xe,onWheel:fe,onTouchMove:Se},ue,{style:ue.style?P({},ue.style,me):me,role:"presentation"}),getContentProps:({style:ue}={})=>({style:ue?P({},ue,$e):$e,role:"presentation"}),getRenderZoneProps:()=>({ref:T,role:"rowgroup"})}},V7e=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return Ge({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Jt,t)};function U7e(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:l,hasFocus:u,tabIndex:c,isLastColumn:f}=e,p=dt(),y=m.useRef(null),v=Wt(),b=it(v,aV),C=n?b[n]:{},{headerName:x=n??"",description:w="",headerAlign:S=void 0}=C;let $;const T=n&&((t=b[n])==null?void 0:t.renderHeaderGroup),k=m.useMemo(()=>({groupId:n,headerName:x,description:w,depth:o,maxDepth:i,fields:a,colIndex:l,isLastColumn:f}),[n,x,w,o,i,a,l,f]);n&&T&&($=T(k));const M=p.showColumnVerticalBorder,I=P({},e,{classes:p.classes,showColumnBorder:M,headerAlign:S,depth:o,isDragging:!1}),N=x??n,E=ln(),A=n===null?`empty-group-cell-${E}`:n,z=V7e(I);m.useLayoutEffect(()=>{if(u){const B=y.current.querySelector('[tabindex="0"]')||y.current;B==null||B.focus()}},[v,u]);const L=m.useCallback(H=>B=>{B.currentTarget.contains(B.target)&&v.current.publishEvent(H,k,B)},[v,k]),O=m.useMemo(()=>({onKeyDown:L("columnGroupHeaderKeyDown"),onFocus:L("columnGroupHeaderFocus"),onBlur:L("columnGroupHeaderBlur")}),[L]),D=typeof C.headerClassName=="function"?C.headerClassName(k):C.headerClassName;return g.jsx(kV,P({ref:y,classes:z,columnMenuOpen:!1,colIndex:l,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:$,headerClassName:D,description:w,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:N,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},O))}const K8=ke("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function G7e(e){return!!e.target}const q7e=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:f,headerGroupingMaxDepth:p,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:C}=e,x=Xt(),[w,S]=m.useState(""),[$,T]=m.useState(""),k=Tu(),M=it(k,NV),I=dt(),N=m.useRef(null),E=on(t,N),[A,z]=m.useState(null),L=m.useRef(A),O=m.useRef(0),D=yd(k,I),H=BT(k,I.columnHeaderHeight),B=Math.floor(I.columnHeaderHeight*f),j=m.useCallback(Se=>{A&&Se&&aU(A,Se)||z(Se)},[A]);m.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const W=m.useRef(n2(BDe,{equalityCheck:(Se,de)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ie=>Se[ie]===de[ie])})),U=m.useCallback(Se=>{const[de,ie]=Dl({firstIndex:Se.firstRowIndex,lastIndex:Se.lastRowIndex,minFirstIndex:0,maxLastIndex:D.rows.length,buffer:I.rowBuffer}),Pe=W.current({firstColumnIndex:Se.firstColumnIndex,minColumnIndex:n,columnBuffer:I.columnBuffer,firstRowToRender:de,lastRowToRender:ie,apiRef:k,visibleRows:D.rows}),$e=x.direction==="ltr"?1:-1,me=Pe>0?O.current-$e*a[Pe]:O.current;N.current.style.transform=`translate3d(${-me}px, 0px, 0px)`},[a,n,I.columnBuffer,k,D.rows,I.rowBuffer,x.direction]);m.useLayoutEffect(()=>{A&&U(A)},[A,U]);const Z=m.useCallback(({left:Se,renderContext:de=null},ie)=>{var Pe,$e;if(!N.current||O.current===Se&&((Pe=L.current)==null?void 0:Pe.firstColumnIndex)===(de==null?void 0:de.firstColumnIndex)&&(($e=L.current)==null?void 0:$e.lastColumnIndex)===(de==null?void 0:de.lastColumnIndex))return;O.current=Se;let me=!1;de!==L.current||!L.current?(G7e(ie)?(xu.flushSync(()=>{j(de)}),me=!0):j(de),L.current=de):me=!0,de&&me&&U(de)},[U,j]),Y=m.useCallback(Se=>T(Se.field),[]),se=m.useCallback(()=>T(""),[]),Q=m.useCallback(Se=>S(Se.field),[]),ne=m.useCallback(()=>S(""),[]);vt(k,"columnResizeStart",Y),vt(k,"columnResizeStop",se),vt(k,"columnHeaderDragStart",Q),vt(k,"columnHeaderDragEnd",ne),vt(k,"scrollPositionChange",Z);const re=Se=>{const{renderContext:de=A,minFirstColumn:ie=n,maxLastColumn:Pe=r.length}=Se||{};if(!de)return null;const[$e,me]=Dl({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:D.rows.length,buffer:I.rowBuffer}),ue=M?W.current({firstColumnIndex:de.firstColumnIndex,minColumnIndex:ie,columnBuffer:I.columnBuffer,apiRef:k,firstRowToRender:$e,lastRowToRender:me,visibleRows:D.rows}):0,ce=M?Math.min(de.lastColumnIndex+I.columnBuffer,Pe):Pe;return{renderedColumns:r.slice(ue,ce),firstColumnToRender:ue,lastColumnToRender:ce,minFirstColumn:ie,maxLastColumn:Pe}},ge=(Se,de={})=>{const ie=re(Se);if(ie==null)return null;const{renderedColumns:Pe,firstColumnToRender:$e}=ie,me=[];for(let ue=0;ue{if(p===0)return null;const de=re(Se);if(de==null||de.renderedColumns.length===0)return null;const{firstColumnToRender:ie,lastColumnToRender:Pe}=de,$e=[],me=[];for(let Te=0;Teet===Oe&&Be.includes(Re)),ee=r[Pe-1].field,pe=(ce=k.current.unstable_getColumnGroupPath(ee)[Te])!=null?ce:null,ye=Le.findIndex(({groupId:et,columnFields:Be})=>et===pe&&Be.includes(ee)),De=Le.slice(K,ye+1).map(et=>P({},et,{columnFields:et.columnFields.filter(Be=>v[Be]!==!1)})).filter(et=>et.columnFields.length>0),Ae=De[0].columnFields.indexOf(Re),Ce=De[0].columnFields.slice(0,Ae).reduce((et,Be)=>{var te;const X=k.current.getColumn(Be);return et+((te=X.computedWidth)!=null?te:0)},0);let Qe=ie;const Ct=De.map(({groupId:et,columnFields:Be})=>{const te=c!==null&&c.depth===Te&&Be.includes(c.field),X=l!==null&&l.depth===Te&&Be.includes(l.field)?0:-1,oe={groupId:et,width:Be.reduce((Ie,Ve)=>Ie+k.current.getColumn(Ve).computedWidth,0),fields:Be,colIndex:Qe,hasFocus:te,tabIndex:X};return Qe+=Be.length,oe});me.push({leftOverflow:Ce,elements:Ct})}return me.forEach((Te,Le)=>{$e.push(g.jsx(K8,{style:{height:`${B}px`,transform:`translateX(-${Te.leftOverflow}px)`},role:"row","aria-rowindex":Le+1,ownerState:I,children:Te.elements.map(({groupId:Re,width:Oe,fields:K,colIndex:ee,hasFocus:pe,tabIndex:ye},De)=>g.jsx(U7e,{groupId:Re,width:Oe,fields:K,colIndex:ee,depth:Le,isLastColumn:ee===r.length-K.length,maxDepth:me.length,height:B,hasFocus:pe,tabIndex:ye},De))},Le))}),$e},fe={minHeight:H,maxHeight:H,lineHeight:`${B}px`};return{renderContext:A,getColumnHeaders:ge,getColumnsToRender:re,getColumnGroupHeaders:xe,isDragging:!!w,getRootProps:(Se={})=>P({style:fe},Se),getInnerProps:()=>({ref:E,role:"rowgroup"}),headerHeight:B}},K7e=["className"],Y7e=e=>{const{classes:t}=e;return Ge({root:["columnHeaders","withBorderColor"]},Jt,t)},X7e=Ar("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Q7e=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,K7e),i=dt(),a=Y7e(i);return g.jsx(X7e,P({ref:n,className:ze(r,a.root),ownerState:i},o,{role:"presentation"}))}),Z7e=["isDragging","className"],J7e=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ge({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Jt,r)},eje=Ar("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${le.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${le.columnHeaderDropZone} .${le.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${le["columnHeadersInner--scrollable"]} .${le.columnHeader}:last-child`]:{borderRight:"none"}})),tje=m.forwardRef(function(t,n){var r,o;const{isDragging:i,className:a}=t,s=be(t,Z7e),l=Wt(),u=dt(),c=P({},u,{isDragging:i,hasScrollX:(r=(o=l.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),f=J7e(c);return g.jsx(eje,P({ref:n,className:ze(a,f.root),ownerState:c},s))}),nje=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],rje=m.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x}=t,w=be(t,nje),{isDragging:S,getRootProps:$,getInnerProps:T,getColumnHeaders:k,getColumnGroupHeaders:M}=q7e({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x});return g.jsx(Q7e,P({ref:n},$(w),{children:g.jsxs(tje,P({isDragging:S},T(),{children:[M(),k()]}))}))}),oje=c2(rje),ije=m.forwardRef(function(t,n){const o=Wt().current.getLocaleText("noResultsOverlayLabel");return g.jsx(RT,P({ref:n},t,{children:o}))}),aje=["sortingOrder"],sje=m.memo(function(t){const{sortingOrder:n}=t,r=be(t,aje),o=dt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?g.jsx(a,P({},r)):null}),lje=["native"];function uje(e){let{native:t}=e,n=be(e,lje);return t?g.jsx("option",P({},n)):g.jsx(Co,P({},n))}const cje={BooleanCellTrueIcon:L8e,BooleanCellFalseIcon:t$,ColumnMenuIcon:R8e,OpenFilterButtonIcon:_8e,FilterPanelDeleteIcon:t$,ColumnFilteredIcon:P8,ColumnSelectorIcon:P8e,ColumnUnsortedIcon:sje,ColumnSortedAscendingIcon:S8,ColumnSortedDescendingIcon:$8,ColumnResizeIcon:M8e,DensityCompactIcon:T8e,DensityStandardIcon:E8e,DensityComfortableIcon:I8e,ExportIcon:F8e,MoreActionsIcon:D8e,TreeDataCollapseIcon:k8,TreeDataExpandIcon:_8,GroupingCriteriaCollapseIcon:k8,GroupingCriteriaExpandIcon:_8,DetailPanelExpandIcon:M8,DetailPanelCollapseIcon:O8e,RowReorderIcon:T8,QuickFilterIcon:k8e,QuickFilterClearIcon:t$,ColumnMenuHideIcon:j8e,ColumnMenuSortAscendingIcon:S8,ColumnMenuSortDescendingIcon:$8,ColumnMenuFilterIcon:P8,ColumnMenuManageColumnsIcon:N8e,ColumnMenuClearIcon:z8e,LoadIcon:A8e,FilterPanelAddIcon:M8,FilterPanelRemoveAllIcon:B8e,ColumnReorderIcon:T8},dje=P({},cje,{BaseCheckbox:R_,BaseTextField:ou,BaseFormControl:dN,BaseSelect:DM,BaseSwitch:kN,BaseButton:fs,BaseIconButton:wo,BaseInputAdornment:cme,BaseTooltip:o0e,BasePopper:sd,BaseInputLabel:vN,BaseSelectOption:uje,BaseChip:eN}),fje=dje,pje=P({},fje,{Cell:kk,SkeletonCell:eFe,ColumnHeaderFilterIconButton:v8e,ColumnMenu:n9e,ColumnHeaders:oje,Footer:PLe,FooterRowCount:LLe,Toolbar:null,PreferencesPanel:E9e,LoadingOverlay:TLe,NoResultsOverlay:ije,NoRowsOverlay:ELe,Pagination:RLe,FilterPanel:Q9e,ColumnsPanel:$9e,Panel:T9e,Row:nDe}),sU=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>P({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function hje({defaultSlots:e,slots:t,components:n}){const r=t??(n?sU(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 mje=["components","componentsProps"];function gje(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i{const{components:t,componentsProps:n}=e,r=be(e,mje);return[t,n,gje(r)]},[e])}const yje={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},h2={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:gs.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},bje=sU(pje),xje=e=>{const[t,n,r]=vje($t({props:e,name:"MuiDataGrid"})),o=m.useMemo(()=>P({},E7e,r.localeText),[r.localeText]),i=m.useMemo(()=>hje({defaultSlots:bje,slots:r.slots,components:t}),[t,r.slots]);return m.useMemo(()=>{var a;return P({},h2,r,{localeText:o,slots:i,slotProps:(a=r.slotProps)!=null?a:n},yje)},[r,o,i,n])},wje=e=>P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Y8=(e,t,n)=>typeof e=="number"&&e>0?e:t,Cje=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=m.useRef(Object.create(null)),a=m.useRef(-1),s=m.useRef(!1),l=it(e,nh),u=it(e,qr),c=it(e,RV),f=it(e,Di),p=yd(e,t),y=it(e,th),v=Y8(t.rowHeight,h2.rowHeight),b=Math.floor(v*l),C=m.useCallback(()=>{var z,L;s.current=!1;const O=B=>{i.current[B.id]||(i.current[B.id]={sizes:{baseCenter:b},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:j,needsFirstMeasurement:W,sizes:U}=i.current[B.id];let Z=typeof b=="number"&&b>0?b:52;const Y=U.baseCenter;if(j)Z=Y;else if(n){const ge=n(P({},B,{densityFactor:l}));if(ge==="auto"){if(W){const xe=o?o(P({},B,{densityFactor:l})):b;Z=xe??b}else Z=Y;s.current=!0,i.current[B.id].autoHeight=!0}else Z=Y8(ge,b),i.current[B.id].needsFirstMeasurement=!1,i.current[B.id].autoHeight=!1}else i.current[B.id].needsFirstMeasurement=!1;const se={};for(const ge in U)/^base[A-Z]/.test(ge)&&(se[ge]=U[ge]);if(se.baseCenter=Z,r){var Q,ne;const ge=e.current.getRowIndexRelativeToVisibleRows(B.id),xe=r(P({},B,{isFirstVisible:ge===0,isLastVisible:ge===p.rows.length-1,indexRelativeToCurrentPage:ge}));se.spacingTop=(Q=xe.top)!=null?Q:0,se.spacingBottom=(ne=xe.bottom)!=null?ne:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",se,B);return i.current[B.id].sizes=re,re},D=[],H=p.rows.reduce((B,j)=>{D.push(B);let W=0,U=0;const Z=O(j);for(const Y in Z){const se=Z[Y];/^base[A-Z]/.test(Y)?W=se>W?se:W:U+=se}return B+W+U},0);y==null||(z=y.top)==null||z.forEach(B=>{O(B)}),y==null||(L=y.bottom)==null||L.forEach(B=>{O(B)}),e.current.setState(B=>P({},B,{rowsMeta:{currentPageTotalHeight:H,positions:D}})),s.current||(a.current=1/0),e.current.forceUpdate()},[e,p.rows,b,n,r,o,y,l]),x=m.useCallback(z=>{const L=i.current[z];return L?L.sizes.baseCenter:b},[b]),w=z=>{var L;return(L=i.current[z])==null?void 0:L.sizes},S=m.useCallback((z,L)=>{i.current[z].sizes.baseCenter=L,i.current[z].isResized=!0,i.current[z].needsFirstMeasurement=!1,C()},[C]),$=m.useMemo(()=>Cu(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),T=m.useCallback((z,L,O)=>{if(!i.current[z]||!i.current[z].autoHeight)return;const D=i.current[z].sizes[`base${je(O)}`]!==L;i.current[z].needsFirstMeasurement=!1,i.current[z].sizes[`base${je(O)}`]=L,D&&$()},[$]),k=m.useCallback(z=>{var L;return((L=i.current[z])==null?void 0:L.autoHeight)||!1},[]),M=m.useCallback(()=>a.current,[]),I=m.useCallback(z=>{s.current&&z>a.current&&(a.current=z)},[]),N=m.useCallback(()=>{i.current={},C()},[C]);m.useEffect(()=>{C()},[b,u,c,f,C]),zT(e,"rowHeight",C);const E={unstable_setLastMeasuredRowIndex:I,unstable_getRowHeight:x,unstable_getRowInternalSizes:w,unstable_setRowHeight:S,unstable_storeRowHeightMeasurement:T,resetRowHeights:N},A={getLastMeasuredRowIndex:M,rowHasAutoHeight:k};Yt(e,E,"public"),Yt(e,A,"private")},Sje=e=>{const t=m.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=m.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);Yt(e,{exportState:t,restoreState:n},"public")},$je=e=>{const t=m.useRef({}),n=m.useCallback((u,c,f)=>{const p=t.current;p[u]||(p[u]={}),p[u][c]=f},[]),r=m.useCallback((u,c)=>{var f;return(f=t.current[u])==null?void 0:f[c]},[]),o=m.useCallback(u=>{const{columnIndex:c,rowId:f,minFirstColumnIndex:p,maxLastColumnIndex:y,columns:v}=u,b=v.length,C=v[c],x=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(f,C.field)):C.colSpan;if(!x||x===1)return n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let w=C.computedWidth;for(let S=1;S=p&&${for(let y=c;y1&&(y+=v.colSpan-1)}},[o]),a={unstable_getCellColSpanInfo:r},s={calculateColSpan:i};Yt(e,a,"public"),Yt(e,s,"private");const l=m.useCallback(()=>{t.current={}},[]);vt(e,"columnOrderChange",l)},lU=(e,t,n)=>{if(bV(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=>{lU(i,[...t,r],n)})},Fk=e=>{if(!e)return{};const t={};return e.forEach(n=>{lU(n,[],t)}),t},Lk=(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)=>rl(r(l).slice(0,c+1),r(u).slice(0,c+1)),s=(l,u)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(u));for(let l=0;l{var p;const y=(p=r(f)[l])!=null?p:null;if(c.length===0)return[{columnFields:[f],groupId:y}];const v=c[c.length-1],b=v.columnFields[v.columnFields.length-1];return v.groupId!==y||!a(b,f,l)||s(b,f)?[...c,{columnFields:[f],groupId:y}]:[...c.slice(0,c.length-1),{columnFields:[...v.columnFields,f],groupId:y}]},[]);o.push(u)}return o},_je=["groupId","children"],HT=e=>{let t={};return e.forEach(n=>{if(bV(n))return;const{groupId:r,children:o}=n,i=be(n,_je);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=HT(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)},kje=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=nl(n),l=r2(n),u=HT((o=t.columnGroupingModel)!=null?o:[]),c=Fk((i=t.columnGroupingModel)!=null?i:[]),f=Lk(s,c,(a=n.current.state.pinnedColumns)!=null?a:{}),p=l.length===0?0:Math.max(...l.map(y=>{var v,b;return(v=(b=c[y])==null?void 0:b.length)!=null?v:0}));return P({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:f,maxDepth:p}})},Pje=(e,t)=>{var n;const r=m.useCallback(l=>{var u;return(u=MAe(e)[l])!=null?u:[]},[e]),o=m.useCallback(()=>aV(e),[e]);Yt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=m.useCallback(()=>{var l;const u=Fk((l=t.columnGroupingModel)!=null?l:[]);e.current.setState(c=>{var f,p,y;const v=(f=(p=c.columns)==null?void 0:p.orderedFields)!=null?f:[],b=(y=c.pinnedColumns)!=null?y:{},C=Lk(v,u,b);return P({},c,{columnGrouping:P({},c.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),s=m.useCallback(l=>{var u,c,f,p;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const y=(c=(f=(p=e.current).getPinnedColumns)==null?void 0:f.call(p))!=null?c:{},v=nl(e),b=r2(e),C=HT(l??[]),x=Fk(l??[]),w=Lk(v,x,y),S=b.length===0?0:Math.max(...b.map($=>{var T,k;return(T=(k=x[$])==null?void 0:k.length)!=null?T:0}));e.current.setState($=>P({},$,{columnGrouping:{lookup:C,unwrappedGroupingModel:x,headerStructure:w,maxDepth:S}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);vt(e,"columnIndexChange",a),vt(e,"columnsChange",()=>{s(t.columnGroupingModel)}),vt(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),m.useEffect(()=>{s(t.columnGroupingModel)},[s,t.columnGroupingModel])},Mje=(e,t)=>{const n=vDe(e,t);return R7e(n,t),P7e(n),Ao(M7e,n,t),Ao(HDe,n,t),Ao(C7e,n,t),Ao(x7e,n,t),Ao(a7e,n,t),Ao(O7e,n,t),Ao(c7e,n,t),Ao(n7e,n,t),Ao(GDe,n,t),Ao(QDe,n,t),Ao(wje,n,t),Ao(DDe,n,t),Ao(kje,n,t),Ao(p8e,n,t),u7e(n,t),T7e(n,t),WDe(n,t),S7e(n,t),l6e(n,t),$je(n),Pje(n,t),w7e(n,t),s7e(n,t),d7e(n,t),i7e(n,t),A7e(n,t),qDe(n,t),ZDe(n,t),Cje(n,t),F7e(n,t),jDe(n),XDe(n,t),t7e(n,t),LDe(n,t),j7e(n,t),L7e(n,t),Sje(n),h8e(n,t),n},Tje=e=>{const{classes:t}=e;return Ge({root:["virtualScroller"]},Jt,t)},Eje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Ije=m.forwardRef(function(t,n){const r=dt(),o=Tje(r);return g.jsx(Eje,P({ref:n},t,{className:ze(o.root,t.className),ownerState:r}))}),Rje=(e,t)=>{const{classes:n}=e;return Ge({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Jt,n)},Oje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Aje=m.forwardRef(function(t,n){var r;const o=dt(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=Rje(o,i);return g.jsx(Oje,P({ref:n},t,{ownerState:o,className:ze(a.root,t.className)}))}),Fje=["className"],Lje=e=>{const{classes:t}=e;return Ge({root:["virtualScrollerRenderZone"]},Jt,t)},Dje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),jje=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,Fje),i=dt(),a=Lje(i);return g.jsx(Dje,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),Nje=["className"],zje=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,Nje),{getRootProps:i,getContentProps:a,getRenderZoneProps:s,getRows:l}=W7e({ref:n});return g.jsxs(Ije,P({className:r},i(o),{children:[g.jsx(t6e,{}),g.jsx(Aje,P({},a(),{children:g.jsx(jje,P({},s(),{children:l()}))}))]}))}),uU=m.forwardRef(function(t,n){const r=xje(t),o=Mje(r.apiRef,r);return g.jsx(rDe,{privateApiRef:o,props:r,children:g.jsxs(iFe,P({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[g.jsx(MLe,{}),g.jsx(GAe,{VirtualScrollerComponent:zje}),g.jsx(qAe,{})]}))})}),_s=m.memo(uU);h2.filterDebounceMs;h2.filterDebounceMs;uU.propTypes={apiRef:R.shape({current:R.object.isRequired}),"aria-label":R.string,"aria-labelledby":R.string,autoHeight:R.bool,autoPageSize:R.bool,cellModesModel:R.object,checkboxSelection:R.bool,classes:R.object,clipboardCopyCellDelimiter:R.string,columnBuffer:R.number,columnGroupingModel:R.arrayOf(R.object),columnHeaderHeight:R.number,columns:koe(R.array.isRequired),columnThreshold:R.number,columnVisibilityModel:R.object,components:R.object,componentsProps:R.object,density:R.oneOf(["comfortable","compact","standard"]),disableColumnFilter:R.bool,disableColumnMenu:R.bool,disableColumnSelector:R.bool,disableDensitySelector:R.bool,disableEval:R.bool,disableRowSelectionOnClick:R.bool,disableVirtualization:R.bool,editMode:R.oneOf(["cell","row"]),experimentalFeatures:R.shape({ariaV7:R.bool,columnGrouping:R.bool,warnIfFocusStateIsNotSynced:R.bool}),filterDebounceMs:R.number,filterMode:R.oneOf(["client","server"]),filterModel:R.shape({items:R.arrayOf(R.shape({field:R.string.isRequired,id:R.oneOfType([R.number,R.string]),operator:R.string.isRequired,value:R.any})).isRequired,logicOperator:R.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:R.bool,quickFilterLogicOperator:R.oneOf(["and","or"]),quickFilterValues:R.array}),forwardedProps:R.object,getCellClassName:R.func,getDetailPanelContent:R.func,getEstimatedRowHeight:R.func,getRowClassName:R.func,getRowHeight:R.func,getRowId:R.func,getRowSpacing:R.func,hideFooter:R.bool,hideFooterPagination:R.bool,hideFooterSelectedRowCount:R.bool,ignoreDiacritics:R.bool,initialState:R.object,isCellEditable:R.func,isRowSelectable:R.func,keepNonExistentRowsSelected:R.bool,loading:R.bool,localeText:R.object,logger:R.shape({debug:R.func.isRequired,error:R.func.isRequired,info:R.func.isRequired,warn:R.func.isRequired}),logLevel:R.oneOf(["debug","error","info","warn",!1]),nonce:R.string,onCellClick:R.func,onCellDoubleClick:R.func,onCellEditStart:R.func,onCellEditStop:R.func,onCellKeyDown:R.func,onCellModesModelChange:R.func,onClipboardCopy:R.func,onColumnHeaderClick:R.func,onColumnHeaderDoubleClick:R.func,onColumnHeaderEnter:R.func,onColumnHeaderLeave:R.func,onColumnHeaderOut:R.func,onColumnHeaderOver:R.func,onColumnOrderChange:R.func,onColumnVisibilityModelChange:R.func,onFilterModelChange:R.func,onMenuClose:R.func,onMenuOpen:R.func,onPaginationModelChange:R.func,onPreferencePanelClose:R.func,onPreferencePanelOpen:R.func,onProcessRowUpdateError:R.func,onResize:R.func,onRowClick:R.func,onRowDoubleClick:R.func,onRowEditCommit:R.func,onRowEditStart:R.func,onRowEditStop:R.func,onRowModesModelChange:R.func,onRowSelectionModelChange:R.func,onSortModelChange:R.func,onStateChange:R.func,pageSizeOptions:R.arrayOf(R.oneOfType([R.number,R.shape({label:R.string.isRequired,value:R.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(` -`)):null,paginationMode:R.oneOf(["client","server"]),paginationModel:R.shape({page:R.number.isRequired,pageSize:R.number.isRequired}),processRowUpdate:R.func,rowBuffer:R.number,rowCount:R.number,rowHeight:R.number,rowModesModel:R.object,rowPositionsDebounceMs:R.number,rows:R.arrayOf(R.object).isRequired,rowSelection:R.bool,rowSelectionModel:R.oneOfType([R.arrayOf(R.oneOfType([R.number,R.string]).isRequired),R.number,R.string]),rowSpacingType:R.oneOf(["border","margin"]),rowThreshold:R.number,scrollbarSize:R.number,showCellVerticalBorder:R.bool,showColumnVerticalBorder:R.bool,slotProps:R.object,slots:R.object,sortingMode:R.oneOf(["client","server"]),sortingOrder:R.arrayOf(R.oneOf(["asc","desc"])),sortModel:R.arrayOf(R.shape({field:R.string.isRequired,sort:R.oneOf(["asc","desc"])})),sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object]),unstable_ignoreValueFormatterDuringExport:R.oneOfType([R.shape({clipboardExport:R.bool,csvExport:R.bool}),R.bool])};const Bje=ke(e=>g.jsx(xN,{elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e}))(({theme:e})=>({"& .MuiPaper-root":{borderRadius:6,marginTop:e.spacing(1),minWidth:180,color:e.palette.mode==="light"?"rgb(55, 65, 81)":e.palette.grey[300],boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"& .MuiSvgIcon-root":{fontSize:18,color:e.palette.text.secondary,marginRight:e.spacing(1.5)},"&:active":{backgroundColor:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}}));function ks(){const[e,t]=m.useState(null),n=!!e,r=i=>{t(i.currentTarget)},o=()=>{t(null)};return g.jsxs(g.Fragment,{children:[g.jsx(wo,{id:"demo-customized-button","aria-controls":n?"demo-customized-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,onClick:r,children:g.jsx(ube,{})}),g.jsxs(Bje,{id:"demo-customized-menu",MenuListProps:{"aria-labelledby":"demo-customized-button"},anchorEl:e,open:n,onClose:o,children:[g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(c0,{}),"Edit"]}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(sbe,{}),"Duplicate"]}),g.jsx(lN,{sx:{my:.5}}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(ebe,{}),"Archive"]}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(lbe,{}),"More"]})]})]})}function Ps(){const e=Xt(),t=jn(e.palette.mode);return g.jsxs(gFe,{sx:{marginBottom:"1rem"},children:[g.jsx(rLe,{style:{color:t.primary[100]}}),g.jsx(uLe,{style:{color:t.primary[100]}}),g.jsx(iLe,{style:{color:t.primary[100]}}),g.jsx(vLe,{style:{color:t.primary[100]}}),g.jsx(CLe,{style:{color:t.primary[100]}})]})}const Hje=[{field:"id",headerName:"ID",type:"number",flex:1,minWidth:80,maxWidth:80,align:"left",headerAlign:"left"},{field:"sourceName",headerName:"Source name",type:"string",flex:1,minWidth:160,maxWidth:160,align:"left",headerAlign:"left",editable:!0},{field:"amount",headerName:"Amount ($)",type:"number",flex:1,minWidth:110,maxWidth:110,align:"left",headerAlign:"left",editable:!0},{field:"paymentMethod",headerName:"Payment Method",type:"string",sortable:!0,flex:.3,minWidth:160,maxWidth:150,align:"left",headerAlign:"left",editable:!0},{field:"frequency",headerName:"Frequency",type:"string",flex:1,minWidth:120,maxWidth:90,align:"left",headerAlign:"left"},{field:"status",headerName:"Status",type:"boolean",flex:1,minWidth:100,maxWidth:100,align:"left",headerAlign:"left"},{field:"received",headerName:"Received",type:"string",flex:1,minWidth:120,maxWidth:100,align:"left",headerAlign:"left"},{field:"category",headerName:"Category",type:"string",flex:1,minWidth:140,maxWidth:140,align:"left",headerAlign:"left"},{field:"description",headerName:"Description",type:"string",flex:1,minWidth:140,maxWidth:140,align:"left",headerAlign:"left"},{field:"nextPayment",headerName:"Next Payment",type:"string",flex:1,minWidth:120,maxWidth:120,align:"left",headerAlign:"left"},{field:"taxRate",headerName:"Tax Rate (%)",type:"number",flex:1,minWidth:120,maxWidth:100,align:"left",headerAlign:"left"},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function Wje(){return g.jsx(qe,{sx:{height:400,width:"100%"},children:g.jsx(_s,{rows:cAe,columns:Hje,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const Vje=()=>g.jsx(mr,{title:"Income Sources",content:g.jsx(Wje,{}),height:500});var WT={},Uje=ku;Object.defineProperty(WT,"__esModule",{value:!0});var cU=WT.default=void 0,Gje=Uje(Pu()),qje=g,Kje=(0,Gje.default)((0,qje.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddOutlined");cU=WT.default=Kje;var VT={},Yje=ku;Object.defineProperty(VT,"__esModule",{value:!0});var dU=VT.default=void 0,Xje=Yje(Pu()),Qje=g,Zje=(0,Xje.default)((0,Qje.jsx)("path",{d:"M18 4H6C3.79 4 2 5.79 2 8v8c0 2.21 1.79 4 4 4h12c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm-1.86 9.77c-.24.2-.57.28-.88.2L4.15 11.25C4.45 10.52 5.16 10 6 10h12c.67 0 1.26.34 1.63.84l-3.49 2.93zM6 6h12c1.1 0 2 .9 2 2v.55c-.59-.34-1.27-.55-2-.55H6c-.73 0-1.41.21-2 .55V8c0-1.1.9-2 2-2z"}),"WalletOutlined");dU=VT.default=Zje;var Jje=function(t){return eNe(t)&&!tNe(t)};function eNe(e){return!!e&&typeof e=="object"}function tNe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||oNe(e)}var nNe=typeof Symbol=="function"&&Symbol.for,rNe=nNe?Symbol.for("react.element"):60103;function oNe(e){return e.$$typeof===rNe}function iNe(e){return Array.isArray(e)?[]:{}}function vb(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Bg(iNe(e),e,t):e}function aNe(e,t,n){return e.concat(t).map(function(r){return vb(r,n)})}function sNe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=vb(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=vb(t[o],n):r[o]=Bg(e[o],t[o],n)}),r}function Bg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||aNe,n.isMergeableObject=n.isMergeableObject||Jje;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):sNe(e,t,n):vb(t,n)}Bg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Bg(r,o,n)},{})};var Dk=Bg,lNe=typeof global=="object"&&global&&global.Object===Object&&global;const fU=lNe;var uNe=typeof self=="object"&&self&&self.Object===Object&&self,cNe=fU||uNe||Function("return this")();const Ms=cNe;var dNe=Ms.Symbol;const gu=dNe;var pU=Object.prototype,fNe=pU.hasOwnProperty,pNe=pU.toString,Zh=gu?gu.toStringTag:void 0;function hNe(e){var t=fNe.call(e,Zh),n=e[Zh];try{e[Zh]=void 0;var r=!0}catch{}var o=pNe.call(e);return r&&(t?e[Zh]=n:delete e[Zh]),o}var mNe=Object.prototype,gNe=mNe.toString;function vNe(e){return gNe.call(e)}var yNe="[object Null]",bNe="[object Undefined]",X8=gu?gu.toStringTag:void 0;function bd(e){return e==null?e===void 0?bNe:yNe:X8&&X8 in Object(e)?hNe(e):vNe(e)}function hU(e,t){return function(n){return e(t(n))}}var xNe=hU(Object.getPrototypeOf,Object);const UT=xNe;function xd(e){return e!=null&&typeof e=="object"}var wNe="[object Object]",CNe=Function.prototype,SNe=Object.prototype,mU=CNe.toString,$Ne=SNe.hasOwnProperty,_Ne=mU.call(Object);function Q8(e){if(!xd(e)||bd(e)!=wNe)return!1;var t=UT(e);if(t===null)return!0;var n=$Ne.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mU.call(n)==_Ne}var Z8=Array.isArray,J8=Object.keys,kNe=Object.prototype.hasOwnProperty,PNe=typeof Element<"u";function jk(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Z8(e),r=Z8(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!jk(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!=c)return!1;if(u&&c)return e.toString()==t.toString();var f=J8(e);if(i=f.length,i!==J8(t).length)return!1;for(o=i;o--!==0;)if(!kNe.call(t,f[o]))return!1;if(PNe&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(a=f[o],!(a==="_owner"&&e.$$typeof)&&!jk(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var MNe=function(t,n){try{return jk(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Zu=Or(MNe);var TNe=!0;function ENe(e,t){if(!TNe){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function INe(){this.__data__=[],this.size=0}function gU(e,t){return e===t||e!==e&&t!==t}function m2(e,t){for(var n=e.length;n--;)if(gU(e[n][0],t))return n;return-1}var RNe=Array.prototype,ONe=RNe.splice;function ANe(e){var t=this.__data__,n=m2(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ONe.call(t,n,1),--this.size,!0}function FNe(e){var t=this.__data__,n=m2(t,e);return n<0?void 0:t[n][1]}function LNe(e){return m2(this.__data__,e)>-1}function DNe(e,t){var n=this.__data__,r=m2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function hl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Vze}var Uze="[object Arguments]",Gze="[object Array]",qze="[object Boolean]",Kze="[object Date]",Yze="[object Error]",Xze="[object Function]",Qze="[object Map]",Zze="[object Number]",Jze="[object Object]",eBe="[object RegExp]",tBe="[object Set]",nBe="[object String]",rBe="[object WeakMap]",oBe="[object ArrayBuffer]",iBe="[object DataView]",aBe="[object Float32Array]",sBe="[object Float64Array]",lBe="[object Int8Array]",uBe="[object Int16Array]",cBe="[object Int32Array]",dBe="[object Uint8Array]",fBe="[object Uint8ClampedArray]",pBe="[object Uint16Array]",hBe="[object Uint32Array]",Qn={};Qn[aBe]=Qn[sBe]=Qn[lBe]=Qn[uBe]=Qn[cBe]=Qn[dBe]=Qn[fBe]=Qn[pBe]=Qn[hBe]=!0;Qn[Uze]=Qn[Gze]=Qn[oBe]=Qn[qze]=Qn[iBe]=Qn[Kze]=Qn[Yze]=Qn[Xze]=Qn[Qze]=Qn[Zze]=Qn[Jze]=Qn[eBe]=Qn[tBe]=Qn[nBe]=Qn[rBe]=!1;function mBe(e){return xd(e)&&SU(e.length)&&!!Qn[bd(e)]}function GT(e){return function(t){return e(t)}}var $U=typeof pi=="object"&&pi&&!pi.nodeType&&pi,Am=$U&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,gBe=Am&&Am.exports===$U,i$=gBe&&fU.process,vBe=function(){try{var e=Am&&Am.require&&Am.require("util").types;return e||i$&&i$.binding&&i$.binding("util")}catch{}}();const Ep=vBe;var i9=Ep&&Ep.isTypedArray,yBe=i9?GT(i9):mBe;const bBe=yBe;var xBe=Object.prototype,wBe=xBe.hasOwnProperty;function _U(e,t){var n=M0(e),r=!n&&Fze(e),o=!n&&!r&&CU(e),i=!n&&!r&&!o&&bBe(e),a=n||r||o||i,s=a?Eze(e.length,String):[],l=s.length;for(var u in e)(t||wBe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Wze(u,l)))&&s.push(u);return s}var CBe=Object.prototype;function qT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CBe;return e===n}var SBe=hU(Object.keys,Object);const $Be=SBe;var _Be=Object.prototype,kBe=_Be.hasOwnProperty;function PBe(e){if(!qT(e))return $Be(e);var t=[];for(var n in Object(e))kBe.call(e,n)&&n!="constructor"&&t.push(n);return t}function kU(e){return e!=null&&SU(e.length)&&!vU(e)}function KT(e){return kU(e)?_U(e):PBe(e)}function MBe(e,t){return e&&v2(t,KT(t),e)}function TBe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var EBe=Object.prototype,IBe=EBe.hasOwnProperty;function RBe(e){if(!P0(e))return TBe(e);var t=qT(e),n=[];for(var r in e)r=="constructor"&&(t||!IBe.call(e,r))||n.push(r);return n}function YT(e){return kU(e)?_U(e,!0):RBe(e)}function OBe(e,t){return e&&v2(t,YT(t),e)}var PU=typeof pi=="object"&&pi&&!pi.nodeType&&pi,a9=PU&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,ABe=a9&&a9.exports===PU,s9=ABe?Ms.Buffer:void 0,l9=s9?s9.allocUnsafe:void 0;function FBe(e,t){if(t)return e.slice();var n=e.length,r=l9?l9(n):new e.constructor(n);return e.copy(r),r}function MU(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}var y2=m.createContext(void 0);y2.displayName="FormikContext";var PWe=y2.Provider;y2.Consumer;function MWe(){var e=m.useContext(y2);return e||ENe(!1),e}var Fi=function(t){return typeof t=="function"},b2=function(t){return t!==null&&typeof t=="object"},TWe=function(t){return String(Math.floor(Number(t)))===t},a$=function(t){return Object.prototype.toString.call(t)==="[object String]"},EWe=function(t){return m.Children.count(t)===0},s$=function(t){return b2(t)&&Fi(t.then)};function ii(e,t,n,r){r===void 0&&(r=0);for(var o=jU(t);e&&r=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function zU(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?ee.map(function(ye){return E(ye,ii(K,ye))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(pe).then(function(ye){return ye.reduce(function(De,Ae,Ee){return Ae==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ae&&(De=Tc(De,ee[Ee],Ae)),De},{})})},[E]),z=m.useCallback(function(K){return Promise.all([A(K),p.validationSchema?N(K):{},p.validate?I(K):{}]).then(function(ee){var pe=ee[0],ye=ee[1],De=ee[2],Ae=Dk.all([pe,ye,De],{arrayMerge:LWe});return Ae})},[p.validate,p.validationSchema,A,I,N]),L=Ai(function(K){return K===void 0&&(K=k.values),M({type:"SET_ISVALIDATING",payload:!0}),z(K).then(function(ee){return x.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:ee})),ee})});m.useEffect(function(){a&&x.current===!0&&Zu(y.current,p.initialValues)&&L(y.current)},[a,L]);var O=m.useCallback(function(K){var ee=K&&K.values?K.values:y.current,pe=K&&K.errors?K.errors:v.current?v.current:p.initialErrors||{},ye=K&&K.touched?K.touched:b.current?b.current:p.initialTouched||{},De=K&&K.status?K.status:C.current?C.current:p.initialStatus;y.current=ee,v.current=pe,b.current=ye,C.current=De;var Ae=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!K&&!!K.isSubmitting,errors:pe,touched:ye,status:De,values:ee,isValidating:!!K&&!!K.isValidating,submitCount:K&&K.submitCount&&typeof K.submitCount=="number"?K.submitCount:0}})};if(p.onReset){var Ee=p.onReset(k.values,Pe);s$(Ee)?Ee.then(Ae):Ae()}else Ae()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);m.useEffect(function(){x.current===!0&&!Zu(y.current,p.initialValues)&&u&&(y.current=p.initialValues,O(),a&&L(y.current))},[u,p.initialValues,O,a,L]),m.useEffect(function(){u&&x.current===!0&&!Zu(v.current,p.initialErrors)&&(v.current=p.initialErrors||Uu,M({type:"SET_ERRORS",payload:p.initialErrors||Uu}))},[u,p.initialErrors]),m.useEffect(function(){u&&x.current===!0&&!Zu(b.current,p.initialTouched)&&(b.current=p.initialTouched||r1,M({type:"SET_TOUCHED",payload:p.initialTouched||r1}))},[u,p.initialTouched]),m.useEffect(function(){u&&x.current===!0&&!Zu(C.current,p.initialStatus)&&(C.current=p.initialStatus,M({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var D=Ai(function(K){if(w.current[K]&&Fi(w.current[K].validate)){var ee=ii(k.values,K),pe=w.current[K].validate(ee);return s$(pe)?(M({type:"SET_ISVALIDATING",payload:!0}),pe.then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ye}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:K,value:pe}}),Promise.resolve(pe))}else if(p.validationSchema)return M({type:"SET_ISVALIDATING",payload:!0}),N(k.values,K).then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ii(ye,K)}}),M({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),H=m.useCallback(function(K,ee){var pe=ee.validate;w.current[K]={validate:pe}},[]),B=m.useCallback(function(K){delete w.current[K]},[]),j=Ai(function(K,ee){M({type:"SET_TOUCHED",payload:K});var pe=ee===void 0?o:ee;return pe?L(k.values):Promise.resolve()}),W=m.useCallback(function(K){M({type:"SET_ERRORS",payload:K})},[]),U=Ai(function(K,ee){var pe=Fi(K)?K(k.values):K;M({type:"SET_VALUES",payload:pe});var ye=ee===void 0?n:ee;return ye?L(pe):Promise.resolve()}),Z=m.useCallback(function(K,ee){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ee}})},[]),Y=Ai(function(K,ee,pe){M({type:"SET_FIELD_VALUE",payload:{field:K,value:ee}});var ye=pe===void 0?n:pe;return ye?L(Tc(k.values,K,ee)):Promise.resolve()}),se=m.useCallback(function(K,ee){var pe=ee,ye=K,De;if(!a$(K)){K.persist&&K.persist();var Ae=K.target?K.target:K.currentTarget,Ee=Ae.type,Ce=Ae.name,Qe=Ae.id,Ct=Ae.value,et=Ae.checked,Be=Ae.outerHTML,te=Ae.options,X=Ae.multiple;pe=ee||Ce||Qe,ye=/number|range/.test(Ee)?(De=parseFloat(Ct),isNaN(De)?"":De):/checkbox/.test(Ee)?jWe(ii(k.values,pe),et,Ct):te&&X?DWe(te):Ct}pe&&Y(pe,ye)},[Y,k.values]),Q=Ai(function(K){if(a$(K))return function(ee){return se(ee,K)};se(K)}),ne=Ai(function(K,ee,pe){ee===void 0&&(ee=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:K,value:ee}});var ye=pe===void 0?o:pe;return ye?L(k.values):Promise.resolve()}),re=m.useCallback(function(K,ee){K.persist&&K.persist();var pe=K.target,ye=pe.name,De=pe.id,Ae=pe.outerHTML,Ee=ee||ye||De;ne(Ee,!0)},[ne]),ge=Ai(function(K){if(a$(K))return function(ee){return re(ee,K)};re(K)}),xe=m.useCallback(function(K){Fi(K)?M({type:"SET_FORMIK_STATE",payload:K}):M({type:"SET_FORMIK_STATE",payload:function(){return K}})},[]),fe=m.useCallback(function(K){M({type:"SET_STATUS",payload:K})},[]),Se=m.useCallback(function(K){M({type:"SET_ISSUBMITTING",payload:K})},[]),de=Ai(function(){return M({type:"SUBMIT_ATTEMPT"}),L().then(function(K){var ee=K instanceof Error,pe=!ee&&Object.keys(K).length===0;if(pe){var ye;try{if(ye=$e(),ye===void 0)return}catch(De){throw De}return Promise.resolve(ye).then(function(De){return x.current&&M({type:"SUBMIT_SUCCESS"}),De}).catch(function(De){if(x.current)throw M({type:"SUBMIT_FAILURE"}),De})}else if(x.current&&(M({type:"SUBMIT_FAILURE"}),ee))throw K})}),ie=Ai(function(K){K&&K.preventDefault&&Fi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Fi(K.stopPropagation)&&K.stopPropagation(),de().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Pe={resetForm:O,validateForm:L,validateField:D,setErrors:W,setFieldError:Z,setFieldTouched:ne,setFieldValue:Y,setStatus:fe,setSubmitting:Se,setTouched:j,setValues:U,setFormikState:xe,submitForm:de},$e=Ai(function(){return c(k.values,Pe)}),me=Ai(function(K){K&&K.preventDefault&&Fi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Fi(K.stopPropagation)&&K.stopPropagation(),O()}),ue=m.useCallback(function(K){return{value:ii(k.values,K),error:ii(k.errors,K),touched:!!ii(k.touched,K),initialValue:ii(y.current,K),initialTouched:!!ii(b.current,K),initialError:ii(v.current,K)}},[k.errors,k.touched,k.values]),ce=m.useCallback(function(K){return{setValue:function(pe,ye){return Y(K,pe,ye)},setTouched:function(pe,ye){return ne(K,pe,ye)},setError:function(pe){return Z(K,pe)}}},[Y,ne,Z]),Te=m.useCallback(function(K){var ee=b2(K),pe=ee?K.name:K,ye=ii(k.values,pe),De={name:pe,value:ye,onChange:Q,onBlur:ge};if(ee){var Ae=K.type,Ee=K.value,Ce=K.as,Qe=K.multiple;Ae==="checkbox"?Ee===void 0?De.checked=!!ye:(De.checked=!!(Array.isArray(ye)&&~ye.indexOf(Ee)),De.value=Ee):Ae==="radio"?(De.checked=ye===Ee,De.value=Ee):Ce==="select"&&Qe&&(De.value=De.value||[],De.multiple=!0)}return De},[ge,Q,k.values]),Le=m.useMemo(function(){return!Zu(y.current,k.values)},[y.current,k.values]),Re=m.useMemo(function(){return typeof s<"u"?Le?k.errors&&Object.keys(k.errors).length===0:s!==!1&&Fi(s)?s(p):s:k.errors&&Object.keys(k.errors).length===0},[s,Le,k.errors,p]),Oe=Dr({},k,{initialValues:y.current,initialErrors:v.current,initialTouched:b.current,initialStatus:C.current,handleBlur:ge,handleChange:Q,handleReset:me,handleSubmit:ie,resetForm:O,setErrors:W,setFormikState:xe,setFieldTouched:ne,setFieldValue:Y,setFieldError:Z,setStatus:fe,setSubmitting:Se,setTouched:j,setValues:U,submitForm:de,validateForm:L,validateField:D,isValid:Re,dirty:Le,unregisterField:B,registerField:H,getFieldProps:Te,getFieldMeta:ue,getFieldHelpers:ce,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return Oe}function OWe(e){var t=RWe(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return m.useImperativeHandle(i,function(){return t}),m.createElement(PWe,{value:t},n?m.createElement(n,t):o?o(t):r?Fi(r)?r(t):EWe(r)?null:m.Children.only(r):null)}function AWe(e){var t={};if(e.inner){if(e.inner.length===0)return Tc(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;ii(t,a.path)||(t=Tc(t,a.path,a.message))}}return t}function FWe(e,t,n,r){n===void 0&&(n=!1);var o=Wk(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}function Wk(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||Q8(o)?Wk(o):o!==""?o:void 0}):Q8(e[r])?t[r]=Wk(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function LWe(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?Dk(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=Dk(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function DWe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function jWe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var NWe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Ai(e){var t=m.useRef(e);return NWe(function(){t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var BWe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,BU=/^\d+$/,HWe=/^\d/,WWe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,VWe=/^\s*(['"]?)(.*?)(\1)\s*$/,t3=512,$9=new Sd(t3),_9=new Sd(t3),k9=new Sd(t3),Ec={Cache:Sd,split:Vk,normalizePath:l$,setter:function(e){var t=l$(e);return _9.get(e)||_9.set(e,function(r,o){for(var i=0,a=t.length,s=r;ie.match(YWe)||[],w2=e=>e[0].toUpperCase()+e.slice(1),r3=(e,t)=>x2(e).join(t).toLowerCase(),HU=e=>x2(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),XWe=e=>w2(HU(e)),QWe=e=>r3(e,"_"),ZWe=e=>r3(e,"-"),JWe=e=>w2(r3(e," ")),eVe=e=>x2(e).map(w2).join(" ");var u$={words:x2,upperFirst:w2,camelCase:HU,pascalCase:XWe,snakeCase:QWe,kebabCase:ZWe,sentenceCase:JWe,titleCase:eVe},o3={exports:{}};o3.exports=function(e){return WU(tVe(e),e)};o3.exports.array=WU;function WU(e,t){var n=e.length,r=new Array(n),o={},i=n,a=nVe(t),s=rVe(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(u,c,f){if(f.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[c]){o[c]=!0;var y=a.get(u)||new Set;if(y=Array.from(y),c=y.length){f.add(u);do{var v=y[--c];l(v,s.get(v),f)}while(c);f.delete(u)}r[--n]=u}}}function tVe(e){for(var t=new Set,n=0,r=e.length;n"",cVe=/^Symbol\((.*)\)(.*)$/;function dVe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function P9(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return dVe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return uVe.call(e).replace(cVe,"Symbol($1)");const r=aVe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+sVe.call(e)+"]":r==="RegExp"?lVe.call(e):null}function su(e,t){let n=P9(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=P9(this[r],t);return i!==null?i:o},2)}function VU(e){return e==null?[]:[].concat(e)}let UU,fVe=/\$\{\s*(\w+)\s*\}/g;UU=Symbol.toStringTag;class No extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(fVe,(o,i)=>su(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[UU]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],VU(t).forEach(a=>{if(No.isError(a)){this.errors.push(...a.errors);const s=a.inner.length?a.inner:[a];this.inner.push(...s)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,No)}}let Wa={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${su(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${su(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${su(n,!0)}\``+o}},ma={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ol={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Uk={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},pVe={isValue:"${path} field must be ${value}"},Gk={noUnknown:"${path} field has unspecified keys: ${unknown}"},hVe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},mVe={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${su(n,!0)}\``}return No.formatError(Wa.notType,e)}};Object.assign(Object.create(null),{mixed:Wa,string:ma,number:Ol,date:Uk,object:Gk,array:hVe,boolean:pVe,tuple:mVe});const i3=e=>e&&e.__isYupSchema__;class yb{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new yb(t,(s,l)=>{var u;let c=a(...s)?o:i;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!i3(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const o1={context:"$",value:"."};class $d{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===o1.context,this.isValue=this.key[0]===o1.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?o1.context:this.isValue?o1.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ec.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}$d.prototype.__isYupRef=!0;const Qs=e=>e==null;function of(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:u,test:c,params:f,message:p,skipAbsent:y}=e;let{parent:v,context:b,abortEarly:C=a.spec.abortEarly,disableStackTrace:x=a.spec.disableStackTrace}=o;function w(A){return $d.isRef(A)?A.getValue(n,v,b):A}function S(A={}){var z;const L=Object.assign({value:n,originalValue:i,label:a.spec.label,path:A.path||r,spec:a.spec},f,A.params);for(const D of Object.keys(L))L[D]=w(L[D]);const O=new No(No.formatError(A.message||p,L),n,L.path,A.type||u,(z=A.disableStackTrace)!=null?z:x);return O.params=L,O}const $=C?s:l;let T={path:r,parent:v,type:u,from:o.from,createError:S,resolve:w,options:o,originalValue:i,schema:a};const k=A=>{No.isError(A)?$(A):A?l(null):$(S())},M=A=>{No.isError(A)?$(A):s(A)};if(y&&Qs(n))return k(!0);let N;try{var E;if(N=c.call(T,n,T),typeof((E=N)==null?void 0:E.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(k,M)}}catch(A){M(A);return}k(N)}return t.OPTIONS=e,t}function gVe(e,t,n,r=n){let o,i,a;return t?(Ec.forEach(t,(s,l,u)=>{let c=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=f?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class bb extends Set{describe(){const t=[];for(const n of this.values())t.push($d.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new bb(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function If(e,t=new Map){if(i3(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(Wa.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=If(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Qs(i))return i;let a=su(t),s=su(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". +`)),r.current=!0),T.current){p(M),T.current=!1;return}y(M)},[t.autoHeight,y,n]);pn(()=>c(),[c]),Yn(e,"sortedRowsSet",c),Yn(e,"paginationModelChange",c),Yn(e,"columnsChange",c),vt(e,"resize",k),Yn(e,"debouncedResize",t.onResize)}const B7e=["style"],H7e=["style"];function Xf(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Xf(e,t,n,o):Xf(e,t,o+1,r)}function W7e(e,t,n){let r=1;for(;n[Mp(e-n,r,o),Mp(t+n,r,o)],iU=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,V7e={maxSize:3},U7e=e=>{var t,n;const r=Mu(),o=dt(),i=it(r,Xr),a=it(r,v8e),s=it(r,jV),{ref:l,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:f=i.length,getRowProps:p}=e,y=Xt(),v=it(r,Pp),b=it(r,ST),C=it(r,si),x=it(r,sb),w=it(r,Dg),S=it(r,fb),$=vd(r,o),T=m.useRef(null),k=m.useRef(null),M=on(l,k),[I,N]=m.useState(null),E=m.useRef(I),A=m.useRef({top:0,left:0}),[z,L]=m.useState({width:null,height:null}),O=m.useRef(b),[D,H]=m.useState(null),B=m.useRef(Object.create(null)),j=m.useRef(),W=m.useRef(),U=m.useRef(t2((ue,ce,Te,Le,Re,Oe)=>{let K;const ee=ue.slice(ce,Te);return Oe>-1&&(ce>Oe&&Oe>=Le||TeC!==null?i.findIndex(ue=>ue.field===C.field):-1,[C,i]),Y=m.useCallback(ue=>{var ce,Te;const Le=r.current.getLastMeasuredRowIndex();let Re=Le===1/0;(ce=$.range)!=null&&ce.lastRowIndex&&!Re&&(Re=Le>=$.range.lastRowIndex);const Oe=Mp(Le-(((Te=$.range)==null?void 0:Te.firstRowIndex)||0),0,w.positions.length);return Re||w.positions[Oe]>=ue?Xf(ue,w.positions):W7e(ue,w.positions,Oe)},[r,(t=$.range)==null?void 0:t.firstRowIndex,(n=$.range)==null?void 0:n.lastRowIndex,w.positions]),se=m.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:$.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ue,left:ce}=A.current,Te=Math.min(Y(ue),w.positions.length-1),Le=o.autoHeight?Te+$.rows.length:Y(ue+z.height);let Re=0,Oe=v.length;if(s){let K=!1;const[ee,pe]=Ll({firstIndex:Te,lastIndex:Le,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});for(let ye=ee;ye{a?(k.current.scrollLeft=0,k.current.scrollTop=0):T.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),pn(()=>{L({width:k.current.clientWidth,height:k.current.clientHeight})},[w.currentPageTotalHeight]);const Q=m.useCallback(()=>{k.current&&L({width:k.current.clientWidth,height:k.current.clientHeight})},[]);vt(r,"debouncedResize",Q);const ne=m.useCallback(ue=>{const[ce,Te]=Ll({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer}),[Le]=Ll({firstIndex:ue.firstColumnIndex,lastIndex:ue.lastColumnIndex,minFirstIndex:c,maxLastIndex:f,buffer:o.columnBuffer}),Re=Ok({firstColumnToRender:Le,apiRef:r,firstRowToRender:ce,lastRowToRender:Te,visibleRows:$.rows}),Oe=y.direction==="ltr"?1:-1,K=Dg(r.current.state).positions[ce],ee=Oe*Pp(r)[Re];T.current.style.transform=`translate3d(${ee}px, ${K}px, 0px)`,typeof u=="function"&&u({top:K,left:ee})},[r,$.rows,u,c,f,o.columnBuffer,o.rowBuffer,y.direction]),re=m.useCallback(()=>E.current,[]),ge=m.useCallback(ue=>{if(E.current&&iU(ue,E.current)){ne(ue);return}N(ue),ne(ue);const[ce,Te]=Ll({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ce,lastRowToRender:Te}),E.current=ue},[r,N,E,$.rows.length,o.rowBuffer,ne]);pn(()=>{if(z.width==null)return;const ue=se();ge(ue);const{top:ce,left:Te}=A.current,Le={top:ce,left:Te,renderContext:ue};r.current.publishEvent("scrollPositionChange",Le)},[r,se,z.width,ge]);const xe=Dn(ue=>{const{scrollTop:ce,scrollLeft:Te}=ue.currentTarget;if(A.current.top=ce,A.current.left=Te,!E.current||ce<0||y.direction==="ltr"&&Te<0||y.direction==="rtl"&&Te>0)return;const Le=a?se():E.current,Re=Math.abs(Le.firstRowIndex-E.current.firstRowIndex),Oe=Math.abs(Le.lastRowIndex-E.current.lastRowIndex),K=Math.abs(Le.firstColumnIndex-E.current.firstColumnIndex),ee=Math.abs(Le.lastColumnIndex-E.current.lastColumnIndex),pe=Re>=o.rowThreshold||Oe>=o.rowThreshold||K>=o.columnThreshold||ee>=o.columnThreshold||O.current!==b;r.current.publishEvent("scrollPositionChange",{top:ce,left:Te,renderContext:pe?Le:E.current},ue),pe&&(bu.flushSync(()=>{ge(Le)}),O.current=b)}),fe=Dn(ue=>{r.current.publishEvent("virtualScrollerWheel",{},ue)}),Se=Dn(ue=>{r.current.publishEvent("virtualScrollerTouchMove",{},ue)}),de=m.useMemo(()=>C!==null?$.rows.findIndex(ue=>ue.id===C.id):-1,[C,$.rows]);vt(r,"rowMouseOver",(ue,ce)=>{var Te;ce.currentTarget.contains(ce.relatedTarget)||H((Te=ue.id)!=null?Te:null)}),vt(r,"rowMouseOut",(ue,ce)=>{ce.currentTarget.contains(ce.relatedTarget)||H(null)});const ie=(ue={renderContext:I})=>{var ce;const{onRowRender:Te,renderContext:Le,minFirstColumn:Re=c,maxLastColumn:Oe=f,availableSpace:K=z.width,rowIndexOffset:ee=0,position:pe="center"}=ue;if(!Le||K==null)return null;const ye=a?o.rowBuffer:0,De=a?o.columnBuffer:0,[Ae,Ee]=Ll({firstIndex:Le.firstRowIndex,lastIndex:Le.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:ye}),Ce=[];if(ue.rows)ue.rows.forEach(ht=>{Ce.push(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i})});else{if(!$.range)return null;for(let ht=Ae;ht-1){const ht=$.rows[de];(Ae>de||EeAe?Ce.push(ht):Ce.unshift(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i}))}const[Ct,et]=Ll({firstIndex:Le.firstColumnIndex,lastIndex:Le.lastColumnIndex,minFirstIndex:Re,maxLastIndex:Oe,buffer:De}),Be=Ok({firstColumnToRender:Ct,apiRef:r,firstRowToRender:Ae,lastRowToRender:Ee,visibleRows:$.rows});let te=!1;(Be>Z||et=z.width,$e=m.useMemo(()=>{const ue=Math.max(w.currentPageTotalHeight,1);let ce=!1;k!=null&&k.current&&ue<=(k==null?void 0:k.current.clientHeight)&&(ce=!0);const Te={width:Pe?b:"auto",height:ue,minHeight:ce?"100%":"auto"};return o.autoHeight&&$.rows.length===0&&(Te.height=vV(r,o.rowHeight)),Te},[r,k,b,w.currentPageTotalHeight,Pe,o.autoHeight,o.rowHeight,$.rows.length]);m.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,$e]);const me=m.useMemo(()=>{const ue={};return Pe||(ue.overflowX="hidden"),o.autoHeight&&(ue.overflowY="hidden"),ue},[Pe,o.autoHeight]);return r.current.register("private",{getRenderContext:re}),{renderContext:I,updateRenderZonePosition:ne,getRows:ie,getRootProps:(ue={})=>P({ref:M,onScroll:xe,onWheel:fe,onTouchMove:Se},ue,{style:ue.style?P({},ue.style,me):me,role:"presentation"}),getContentProps:({style:ue}={})=>({style:ue?P({},ue,$e):$e,role:"presentation"}),getRenderZoneProps:()=>({ref:T,role:"rowgroup"})}},G7e=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return qe({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Jt,t)};function q7e(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:l,hasFocus:u,tabIndex:c,isLastColumn:f}=e,p=dt(),y=m.useRef(null),v=Wt(),b=it(v,iV),C=n?b[n]:{},{headerName:x=n??"",description:w="",headerAlign:S=void 0}=C;let $;const T=n&&((t=b[n])==null?void 0:t.renderHeaderGroup),k=m.useMemo(()=>({groupId:n,headerName:x,description:w,depth:o,maxDepth:i,fields:a,colIndex:l,isLastColumn:f}),[n,x,w,o,i,a,l,f]);n&&T&&($=T(k));const M=p.showColumnVerticalBorder,I=P({},e,{classes:p.classes,showColumnBorder:M,headerAlign:S,depth:o,isDragging:!1}),N=x??n,E=ln(),A=n===null?`empty-group-cell-${E}`:n,z=G7e(I);m.useLayoutEffect(()=>{if(u){const B=y.current.querySelector('[tabindex="0"]')||y.current;B==null||B.focus()}},[v,u]);const L=m.useCallback(H=>B=>{B.currentTarget.contains(B.target)&&v.current.publishEvent(H,k,B)},[v,k]),O=m.useMemo(()=>({onKeyDown:L("columnGroupHeaderKeyDown"),onFocus:L("columnGroupHeaderFocus"),onBlur:L("columnGroupHeaderBlur")}),[L]),D=typeof C.headerClassName=="function"?C.headerClassName(k):C.headerClassName;return g.jsx(_V,P({ref:y,classes:z,columnMenuOpen:!1,colIndex:l,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:$,headerClassName:D,description:w,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:N,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},O))}const q8=ke("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function K7e(e){return!!e.target}const Y7e=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:f,headerGroupingMaxDepth:p,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:C}=e,x=Xt(),[w,S]=m.useState(""),[$,T]=m.useState(""),k=Mu(),M=it(k,jV),I=dt(),N=m.useRef(null),E=on(t,N),[A,z]=m.useState(null),L=m.useRef(A),O=m.useRef(0),D=vd(k,I),H=zT(k,I.columnHeaderHeight),B=Math.floor(I.columnHeaderHeight*f),j=m.useCallback(Se=>{A&&Se&&iU(A,Se)||z(Se)},[A]);m.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const W=m.useRef(t2(WDe,{equalityCheck:(Se,de)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ie=>Se[ie]===de[ie])})),U=m.useCallback(Se=>{const[de,ie]=Ll({firstIndex:Se.firstRowIndex,lastIndex:Se.lastRowIndex,minFirstIndex:0,maxLastIndex:D.rows.length,buffer:I.rowBuffer}),Pe=W.current({firstColumnIndex:Se.firstColumnIndex,minColumnIndex:n,columnBuffer:I.columnBuffer,firstRowToRender:de,lastRowToRender:ie,apiRef:k,visibleRows:D.rows}),$e=x.direction==="ltr"?1:-1,me=Pe>0?O.current-$e*a[Pe]:O.current;N.current.style.transform=`translate3d(${-me}px, 0px, 0px)`},[a,n,I.columnBuffer,k,D.rows,I.rowBuffer,x.direction]);m.useLayoutEffect(()=>{A&&U(A)},[A,U]);const Z=m.useCallback(({left:Se,renderContext:de=null},ie)=>{var Pe,$e;if(!N.current||O.current===Se&&((Pe=L.current)==null?void 0:Pe.firstColumnIndex)===(de==null?void 0:de.firstColumnIndex)&&(($e=L.current)==null?void 0:$e.lastColumnIndex)===(de==null?void 0:de.lastColumnIndex))return;O.current=Se;let me=!1;de!==L.current||!L.current?(K7e(ie)?(bu.flushSync(()=>{j(de)}),me=!0):j(de),L.current=de):me=!0,de&&me&&U(de)},[U,j]),Y=m.useCallback(Se=>T(Se.field),[]),se=m.useCallback(()=>T(""),[]),Q=m.useCallback(Se=>S(Se.field),[]),ne=m.useCallback(()=>S(""),[]);vt(k,"columnResizeStart",Y),vt(k,"columnResizeStop",se),vt(k,"columnHeaderDragStart",Q),vt(k,"columnHeaderDragEnd",ne),vt(k,"scrollPositionChange",Z);const re=Se=>{const{renderContext:de=A,minFirstColumn:ie=n,maxLastColumn:Pe=r.length}=Se||{};if(!de)return null;const[$e,me]=Ll({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:D.rows.length,buffer:I.rowBuffer}),ue=M?W.current({firstColumnIndex:de.firstColumnIndex,minColumnIndex:ie,columnBuffer:I.columnBuffer,apiRef:k,firstRowToRender:$e,lastRowToRender:me,visibleRows:D.rows}):0,ce=M?Math.min(de.lastColumnIndex+I.columnBuffer,Pe):Pe;return{renderedColumns:r.slice(ue,ce),firstColumnToRender:ue,lastColumnToRender:ce,minFirstColumn:ie,maxLastColumn:Pe}},ge=(Se,de={})=>{const ie=re(Se);if(ie==null)return null;const{renderedColumns:Pe,firstColumnToRender:$e}=ie,me=[];for(let ue=0;ue{if(p===0)return null;const de=re(Se);if(de==null||de.renderedColumns.length===0)return null;const{firstColumnToRender:ie,lastColumnToRender:Pe}=de,$e=[],me=[];for(let Te=0;Teet===Oe&&Be.includes(Re)),ee=r[Pe-1].field,pe=(ce=k.current.unstable_getColumnGroupPath(ee)[Te])!=null?ce:null,ye=Le.findIndex(({groupId:et,columnFields:Be})=>et===pe&&Be.includes(ee)),De=Le.slice(K,ye+1).map(et=>P({},et,{columnFields:et.columnFields.filter(Be=>v[Be]!==!1)})).filter(et=>et.columnFields.length>0),Ae=De[0].columnFields.indexOf(Re),Ce=De[0].columnFields.slice(0,Ae).reduce((et,Be)=>{var te;const X=k.current.getColumn(Be);return et+((te=X.computedWidth)!=null?te:0)},0);let Qe=ie;const Ct=De.map(({groupId:et,columnFields:Be})=>{const te=c!==null&&c.depth===Te&&Be.includes(c.field),X=l!==null&&l.depth===Te&&Be.includes(l.field)?0:-1,oe={groupId:et,width:Be.reduce((Ie,Ve)=>Ie+k.current.getColumn(Ve).computedWidth,0),fields:Be,colIndex:Qe,hasFocus:te,tabIndex:X};return Qe+=Be.length,oe});me.push({leftOverflow:Ce,elements:Ct})}return me.forEach((Te,Le)=>{$e.push(g.jsx(q8,{style:{height:`${B}px`,transform:`translateX(-${Te.leftOverflow}px)`},role:"row","aria-rowindex":Le+1,ownerState:I,children:Te.elements.map(({groupId:Re,width:Oe,fields:K,colIndex:ee,hasFocus:pe,tabIndex:ye},De)=>g.jsx(q7e,{groupId:Re,width:Oe,fields:K,colIndex:ee,depth:Le,isLastColumn:ee===r.length-K.length,maxDepth:me.length,height:B,hasFocus:pe,tabIndex:ye},De))},Le))}),$e},fe={minHeight:H,maxHeight:H,lineHeight:`${B}px`};return{renderContext:A,getColumnHeaders:ge,getColumnsToRender:re,getColumnGroupHeaders:xe,isDragging:!!w,getRootProps:(Se={})=>P({style:fe},Se),getInnerProps:()=>({ref:E,role:"rowgroup"}),headerHeight:B}},X7e=["className"],Q7e=e=>{const{classes:t}=e;return qe({root:["columnHeaders","withBorderColor"]},Jt,t)},Z7e=Ar("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),J7e=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,X7e),i=dt(),a=Q7e(i);return g.jsx(Z7e,P({ref:n,className:ze(r,a.root),ownerState:i},o,{role:"presentation"}))}),eje=["isDragging","className"],tje=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return qe({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Jt,r)},nje=Ar("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${le.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${le.columnHeaderDropZone} .${le.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${le["columnHeadersInner--scrollable"]} .${le.columnHeader}:last-child`]:{borderRight:"none"}})),rje=m.forwardRef(function(t,n){var r,o;const{isDragging:i,className:a}=t,s=be(t,eje),l=Wt(),u=dt(),c=P({},u,{isDragging:i,hasScrollX:(r=(o=l.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),f=tje(c);return g.jsx(nje,P({ref:n,className:ze(a,f.root),ownerState:c},s))}),oje=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],ije=m.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x}=t,w=be(t,oje),{isDragging:S,getRootProps:$,getInnerProps:T,getColumnHeaders:k,getColumnGroupHeaders:M}=Y7e({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x});return g.jsx(J7e,P({ref:n},$(w),{children:g.jsxs(rje,P({isDragging:S},T(),{children:[M(),k()]}))}))}),aje=u2(ije),sje=m.forwardRef(function(t,n){const o=Wt().current.getLocaleText("noResultsOverlayLabel");return g.jsx(IT,P({ref:n},t,{children:o}))}),lje=["sortingOrder"],uje=m.memo(function(t){const{sortingOrder:n}=t,r=be(t,lje),o=dt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?g.jsx(a,P({},r)):null}),cje=["native"];function dje(e){let{native:t}=e,n=be(e,cje);return t?g.jsx("option",P({},n)):g.jsx(Co,P({},n))}const fje={BooleanCellTrueIcon:j8e,BooleanCellFalseIcon:e$,ColumnMenuIcon:A8e,OpenFilterButtonIcon:P8e,FilterPanelDeleteIcon:e$,ColumnFilteredIcon:k8,ColumnSelectorIcon:T8e,ColumnUnsortedIcon:uje,ColumnSortedAscendingIcon:C8,ColumnSortedDescendingIcon:S8,ColumnResizeIcon:E8e,DensityCompactIcon:I8e,DensityStandardIcon:R8e,DensityComfortableIcon:O8e,ExportIcon:D8e,MoreActionsIcon:N8e,TreeDataCollapseIcon:_8,TreeDataExpandIcon:$8,GroupingCriteriaCollapseIcon:_8,GroupingCriteriaExpandIcon:$8,DetailPanelExpandIcon:P8,DetailPanelCollapseIcon:F8e,RowReorderIcon:M8,QuickFilterIcon:M8e,QuickFilterClearIcon:e$,ColumnMenuHideIcon:z8e,ColumnMenuSortAscendingIcon:C8,ColumnMenuSortDescendingIcon:S8,ColumnMenuFilterIcon:k8,ColumnMenuManageColumnsIcon:B8e,ColumnMenuClearIcon:H8e,LoadIcon:L8e,FilterPanelAddIcon:P8,FilterPanelRemoveAllIcon:W8e,ColumnReorderIcon:M8},pje=P({},fje,{BaseCheckbox:I_,BaseTextField:ru,BaseFormControl:uN,BaseSelect:LM,BaseSwitch:$N,BaseButton:fs,BaseIconButton:wo,BaseInputAdornment:cme,BaseTooltip:o0e,BasePopper:ad,BaseInputLabel:mN,BaseSelectOption:dje,BaseChip:Zj}),hje=pje,mje=P({},hje,{Cell:_k,SkeletonCell:nFe,ColumnHeaderFilterIconButton:b8e,ColumnMenu:o9e,ColumnHeaders:aje,Footer:TLe,FooterRowCount:jLe,Toolbar:null,PreferencesPanel:R9e,LoadingOverlay:ILe,NoResultsOverlay:sje,NoRowsOverlay:RLe,Pagination:ALe,FilterPanel:J9e,ColumnsPanel:k9e,Panel:I9e,Row:oDe}),aU=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>P({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function gje({defaultSlots:e,slots:t,components:n}){const r=t??(n?aU(n):null);if(!r||Object.keys(r).length===0)return e;const o=P({},e);return Object.keys(r).forEach(i=>{const a=i;r[a]!==void 0&&(o[a]=r[a])}),o}const vje=["components","componentsProps"];function yje(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i{const{components:t,componentsProps:n}=e,r=be(e,vje);return[t,n,yje(r)]},[e])}const xje={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},p2={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:gs.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},wje=aU(mje),Cje=e=>{const[t,n,r]=bje($t({props:e,name:"MuiDataGrid"})),o=m.useMemo(()=>P({},R7e,r.localeText),[r.localeText]),i=m.useMemo(()=>gje({defaultSlots:wje,slots:r.slots,components:t}),[t,r.slots]);return m.useMemo(()=>{var a;return P({},p2,r,{localeText:o,slots:i,slotProps:(a=r.slotProps)!=null?a:n},xje)},[r,o,i,n])},Sje=e=>P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),K8=(e,t,n)=>typeof e=="number"&&e>0?e:t,$je=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=m.useRef(Object.create(null)),a=m.useRef(-1),s=m.useRef(!1),l=it(e,th),u=it(e,qr),c=it(e,IV),f=it(e,Di),p=vd(e,t),y=it(e,eh),v=K8(t.rowHeight,p2.rowHeight),b=Math.floor(v*l),C=m.useCallback(()=>{var z,L;s.current=!1;const O=B=>{i.current[B.id]||(i.current[B.id]={sizes:{baseCenter:b},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:j,needsFirstMeasurement:W,sizes:U}=i.current[B.id];let Z=typeof b=="number"&&b>0?b:52;const Y=U.baseCenter;if(j)Z=Y;else if(n){const ge=n(P({},B,{densityFactor:l}));if(ge==="auto"){if(W){const xe=o?o(P({},B,{densityFactor:l})):b;Z=xe??b}else Z=Y;s.current=!0,i.current[B.id].autoHeight=!0}else Z=K8(ge,b),i.current[B.id].needsFirstMeasurement=!1,i.current[B.id].autoHeight=!1}else i.current[B.id].needsFirstMeasurement=!1;const se={};for(const ge in U)/^base[A-Z]/.test(ge)&&(se[ge]=U[ge]);if(se.baseCenter=Z,r){var Q,ne;const ge=e.current.getRowIndexRelativeToVisibleRows(B.id),xe=r(P({},B,{isFirstVisible:ge===0,isLastVisible:ge===p.rows.length-1,indexRelativeToCurrentPage:ge}));se.spacingTop=(Q=xe.top)!=null?Q:0,se.spacingBottom=(ne=xe.bottom)!=null?ne:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",se,B);return i.current[B.id].sizes=re,re},D=[],H=p.rows.reduce((B,j)=>{D.push(B);let W=0,U=0;const Z=O(j);for(const Y in Z){const se=Z[Y];/^base[A-Z]/.test(Y)?W=se>W?se:W:U+=se}return B+W+U},0);y==null||(z=y.top)==null||z.forEach(B=>{O(B)}),y==null||(L=y.bottom)==null||L.forEach(B=>{O(B)}),e.current.setState(B=>P({},B,{rowsMeta:{currentPageTotalHeight:H,positions:D}})),s.current||(a.current=1/0),e.current.forceUpdate()},[e,p.rows,b,n,r,o,y,l]),x=m.useCallback(z=>{const L=i.current[z];return L?L.sizes.baseCenter:b},[b]),w=z=>{var L;return(L=i.current[z])==null?void 0:L.sizes},S=m.useCallback((z,L)=>{i.current[z].sizes.baseCenter=L,i.current[z].isResized=!0,i.current[z].needsFirstMeasurement=!1,C()},[C]),$=m.useMemo(()=>wu(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),T=m.useCallback((z,L,O)=>{if(!i.current[z]||!i.current[z].autoHeight)return;const D=i.current[z].sizes[`base${je(O)}`]!==L;i.current[z].needsFirstMeasurement=!1,i.current[z].sizes[`base${je(O)}`]=L,D&&$()},[$]),k=m.useCallback(z=>{var L;return((L=i.current[z])==null?void 0:L.autoHeight)||!1},[]),M=m.useCallback(()=>a.current,[]),I=m.useCallback(z=>{s.current&&z>a.current&&(a.current=z)},[]),N=m.useCallback(()=>{i.current={},C()},[C]);m.useEffect(()=>{C()},[b,u,c,f,C]),NT(e,"rowHeight",C);const E={unstable_setLastMeasuredRowIndex:I,unstable_getRowHeight:x,unstable_getRowInternalSizes:w,unstable_setRowHeight:S,unstable_storeRowHeightMeasurement:T,resetRowHeights:N},A={getLastMeasuredRowIndex:M,rowHasAutoHeight:k};Yt(e,E,"public"),Yt(e,A,"private")},_je=e=>{const t=m.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=m.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);Yt(e,{exportState:t,restoreState:n},"public")},kje=e=>{const t=m.useRef({}),n=m.useCallback((u,c,f)=>{const p=t.current;p[u]||(p[u]={}),p[u][c]=f},[]),r=m.useCallback((u,c)=>{var f;return(f=t.current[u])==null?void 0:f[c]},[]),o=m.useCallback(u=>{const{columnIndex:c,rowId:f,minFirstColumnIndex:p,maxLastColumnIndex:y,columns:v}=u,b=v.length,C=v[c],x=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(f,C.field)):C.colSpan;if(!x||x===1)return n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let w=C.computedWidth;for(let S=1;S=p&&${for(let y=c;y1&&(y+=v.colSpan-1)}},[o]),a={unstable_getCellColSpanInfo:r},s={calculateColSpan:i};Yt(e,a,"public"),Yt(e,s,"private");const l=m.useCallback(()=>{t.current={}},[]);vt(e,"columnOrderChange",l)},sU=(e,t,n)=>{if(yV(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` +`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{sU(i,[...t,r],n)})},Ak=e=>{if(!e)return{};const t={};return e.forEach(n=>{sU(n,[],t)}),t},Fk=(e,t,n)=>{const r=l=>{var u;return(u=t[l])!=null?u:[]},o=[],i=Math.max(...e.map(l=>r(l).length)),a=(l,u,c)=>nl(r(l).slice(0,c+1),r(u).slice(0,c+1)),s=(l,u)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(u));for(let l=0;l{var p;const y=(p=r(f)[l])!=null?p:null;if(c.length===0)return[{columnFields:[f],groupId:y}];const v=c[c.length-1],b=v.columnFields[v.columnFields.length-1];return v.groupId!==y||!a(b,f,l)||s(b,f)?[...c,{columnFields:[f],groupId:y}]:[...c.slice(0,c.length-1),{columnFields:[...v.columnFields,f],groupId:y}]},[]);o.push(u)}return o},Pje=["groupId","children"],BT=e=>{let t={};return e.forEach(n=>{if(yV(n))return;const{groupId:r,children:o}=n,i=be(n,Pje);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=P({},i,{groupId:r}),s=BT(o);if(s[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=P({},t,s,{[r]:a})}),P({},t)},Mje=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=tl(n),l=n2(n),u=BT((o=t.columnGroupingModel)!=null?o:[]),c=Ak((i=t.columnGroupingModel)!=null?i:[]),f=Fk(s,c,(a=n.current.state.pinnedColumns)!=null?a:{}),p=l.length===0?0:Math.max(...l.map(y=>{var v,b;return(v=(b=c[y])==null?void 0:b.length)!=null?v:0}));return P({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:f,maxDepth:p}})},Tje=(e,t)=>{var n;const r=m.useCallback(l=>{var u;return(u=EAe(e)[l])!=null?u:[]},[e]),o=m.useCallback(()=>iV(e),[e]);Yt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=m.useCallback(()=>{var l;const u=Ak((l=t.columnGroupingModel)!=null?l:[]);e.current.setState(c=>{var f,p,y;const v=(f=(p=c.columns)==null?void 0:p.orderedFields)!=null?f:[],b=(y=c.pinnedColumns)!=null?y:{},C=Fk(v,u,b);return P({},c,{columnGrouping:P({},c.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),s=m.useCallback(l=>{var u,c,f,p;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const y=(c=(f=(p=e.current).getPinnedColumns)==null?void 0:f.call(p))!=null?c:{},v=tl(e),b=n2(e),C=BT(l??[]),x=Ak(l??[]),w=Fk(v,x,y),S=b.length===0?0:Math.max(...b.map($=>{var T,k;return(T=(k=x[$])==null?void 0:k.length)!=null?T:0}));e.current.setState($=>P({},$,{columnGrouping:{lookup:C,unwrappedGroupingModel:x,headerStructure:w,maxDepth:S}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);vt(e,"columnIndexChange",a),vt(e,"columnsChange",()=>{s(t.columnGroupingModel)}),vt(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),m.useEffect(()=>{s(t.columnGroupingModel)},[s,t.columnGroupingModel])},Eje=(e,t)=>{const n=bDe(e,t);return A7e(n,t),T7e(n),Ao(E7e,n,t),Ao(VDe,n,t),Ao($7e,n,t),Ao(C7e,n,t),Ao(l7e,n,t),Ao(F7e,n,t),Ao(f7e,n,t),Ao(o7e,n,t),Ao(KDe,n,t),Ao(JDe,n,t),Ao(Sje,n,t),Ao(NDe,n,t),Ao(Mje,n,t),Ao(m8e,n,t),d7e(n,t),I7e(n,t),UDe(n,t),_7e(n,t),c6e(n,t),kje(n),Tje(n,t),S7e(n,t),u7e(n,t),p7e(n,t),s7e(n,t),L7e(n,t),YDe(n,t),e7e(n,t),$je(n,t),D7e(n,t),zDe(n),ZDe(n,t),r7e(n,t),jDe(n,t),z7e(n,t),j7e(n,t),_je(n),g8e(n,t),n},Ije=e=>{const{classes:t}=e;return qe({root:["virtualScroller"]},Jt,t)},Rje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Oje=m.forwardRef(function(t,n){const r=dt(),o=Ije(r);return g.jsx(Rje,P({ref:n},t,{className:ze(o.root,t.className),ownerState:r}))}),Aje=(e,t)=>{const{classes:n}=e;return qe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Jt,n)},Fje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Lje=m.forwardRef(function(t,n){var r;const o=dt(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=Aje(o,i);return g.jsx(Fje,P({ref:n},t,{ownerState:o,className:ze(a.root,t.className)}))}),Dje=["className"],jje=e=>{const{classes:t}=e;return qe({root:["virtualScrollerRenderZone"]},Jt,t)},Nje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),zje=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,Dje),i=dt(),a=jje(i);return g.jsx(Nje,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),Bje=["className"],Hje=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,Bje),{getRootProps:i,getContentProps:a,getRenderZoneProps:s,getRows:l}=U7e({ref:n});return g.jsxs(Oje,P({className:r},i(o),{children:[g.jsx(r6e,{}),g.jsx(Lje,P({},a(),{children:g.jsx(zje,P({},s(),{children:l()}))}))]}))}),lU=m.forwardRef(function(t,n){const r=Cje(t),o=Eje(r.apiRef,r);return g.jsx(iDe,{privateApiRef:o,props:r,children:g.jsxs(sFe,P({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[g.jsx(ELe,{}),g.jsx(KAe,{VirtualScrollerComponent:Hje}),g.jsx(YAe,{})]}))})}),_s=m.memo(lU);p2.filterDebounceMs;p2.filterDebounceMs;lU.propTypes={apiRef:R.shape({current:R.object.isRequired}),"aria-label":R.string,"aria-labelledby":R.string,autoHeight:R.bool,autoPageSize:R.bool,cellModesModel:R.object,checkboxSelection:R.bool,classes:R.object,clipboardCopyCellDelimiter:R.string,columnBuffer:R.number,columnGroupingModel:R.arrayOf(R.object),columnHeaderHeight:R.number,columns:koe(R.array.isRequired),columnThreshold:R.number,columnVisibilityModel:R.object,components:R.object,componentsProps:R.object,density:R.oneOf(["comfortable","compact","standard"]),disableColumnFilter:R.bool,disableColumnMenu:R.bool,disableColumnSelector:R.bool,disableDensitySelector:R.bool,disableEval:R.bool,disableRowSelectionOnClick:R.bool,disableVirtualization:R.bool,editMode:R.oneOf(["cell","row"]),experimentalFeatures:R.shape({ariaV7:R.bool,columnGrouping:R.bool,warnIfFocusStateIsNotSynced:R.bool}),filterDebounceMs:R.number,filterMode:R.oneOf(["client","server"]),filterModel:R.shape({items:R.arrayOf(R.shape({field:R.string.isRequired,id:R.oneOfType([R.number,R.string]),operator:R.string.isRequired,value:R.any})).isRequired,logicOperator:R.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:R.bool,quickFilterLogicOperator:R.oneOf(["and","or"]),quickFilterValues:R.array}),forwardedProps:R.object,getCellClassName:R.func,getDetailPanelContent:R.func,getEstimatedRowHeight:R.func,getRowClassName:R.func,getRowHeight:R.func,getRowId:R.func,getRowSpacing:R.func,hideFooter:R.bool,hideFooterPagination:R.bool,hideFooterSelectedRowCount:R.bool,ignoreDiacritics:R.bool,initialState:R.object,isCellEditable:R.func,isRowSelectable:R.func,keepNonExistentRowsSelected:R.bool,loading:R.bool,localeText:R.object,logger:R.shape({debug:R.func.isRequired,error:R.func.isRequired,info:R.func.isRequired,warn:R.func.isRequired}),logLevel:R.oneOf(["debug","error","info","warn",!1]),nonce:R.string,onCellClick:R.func,onCellDoubleClick:R.func,onCellEditStart:R.func,onCellEditStop:R.func,onCellKeyDown:R.func,onCellModesModelChange:R.func,onClipboardCopy:R.func,onColumnHeaderClick:R.func,onColumnHeaderDoubleClick:R.func,onColumnHeaderEnter:R.func,onColumnHeaderLeave:R.func,onColumnHeaderOut:R.func,onColumnHeaderOver:R.func,onColumnOrderChange:R.func,onColumnVisibilityModelChange:R.func,onFilterModelChange:R.func,onMenuClose:R.func,onMenuOpen:R.func,onPaginationModelChange:R.func,onPreferencePanelClose:R.func,onPreferencePanelOpen:R.func,onProcessRowUpdateError:R.func,onResize:R.func,onRowClick:R.func,onRowDoubleClick:R.func,onRowEditCommit:R.func,onRowEditStart:R.func,onRowEditStop:R.func,onRowModesModelChange:R.func,onRowSelectionModelChange:R.func,onSortModelChange:R.func,onStateChange:R.func,pageSizeOptions:R.arrayOf(R.oneOfType([R.number,R.shape({label:R.string.isRequired,value:R.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(` +`)):null,paginationMode:R.oneOf(["client","server"]),paginationModel:R.shape({page:R.number.isRequired,pageSize:R.number.isRequired}),processRowUpdate:R.func,rowBuffer:R.number,rowCount:R.number,rowHeight:R.number,rowModesModel:R.object,rowPositionsDebounceMs:R.number,rows:R.arrayOf(R.object).isRequired,rowSelection:R.bool,rowSelectionModel:R.oneOfType([R.arrayOf(R.oneOfType([R.number,R.string]).isRequired),R.number,R.string]),rowSpacingType:R.oneOf(["border","margin"]),rowThreshold:R.number,scrollbarSize:R.number,showCellVerticalBorder:R.bool,showColumnVerticalBorder:R.bool,slotProps:R.object,slots:R.object,sortingMode:R.oneOf(["client","server"]),sortingOrder:R.arrayOf(R.oneOf(["asc","desc"])),sortModel:R.arrayOf(R.shape({field:R.string.isRequired,sort:R.oneOf(["asc","desc"])})),sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object]),unstable_ignoreValueFormatterDuringExport:R.oneOfType([R.shape({clipboardExport:R.bool,csvExport:R.bool}),R.bool])};const Wje=ke(e=>g.jsx(yN,{elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e}))(({theme:e})=>({"& .MuiPaper-root":{borderRadius:6,marginTop:e.spacing(1),minWidth:180,color:e.palette.mode==="light"?"rgb(55, 65, 81)":e.palette.grey[300],boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"& .MuiSvgIcon-root":{fontSize:18,color:e.palette.text.secondary,marginRight:e.spacing(1.5)},"&:active":{backgroundColor:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}}));function ks(){const[e,t]=m.useState(null),n=!!e,r=i=>{t(i.currentTarget)},o=()=>{t(null)};return g.jsxs(g.Fragment,{children:[g.jsx(wo,{id:"demo-customized-button","aria-controls":n?"demo-customized-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,onClick:r,children:g.jsx(ube,{})}),g.jsxs(Wje,{id:"demo-customized-menu",MenuListProps:{"aria-labelledby":"demo-customized-button"},anchorEl:e,open:n,onClose:o,children:[g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(u0,{}),"Edit"]}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(sbe,{}),"Duplicate"]}),g.jsx(aN,{sx:{my:.5}}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(ebe,{}),"Archive"]}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(lbe,{}),"More"]})]})]})}function Ps(){const e=Xt(),t=jn(e.palette.mode);return g.jsxs(yFe,{sx:{marginBottom:"1rem"},children:[g.jsx(iLe,{style:{color:t.primary[100]}}),g.jsx(dLe,{style:{color:t.primary[100]}}),g.jsx(sLe,{style:{color:t.primary[100]}}),g.jsx(bLe,{style:{color:t.primary[100]}}),g.jsx($Le,{style:{color:t.primary[100]}})]})}const Vje=[...cAe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function Uje(){return g.jsx(Ue,{sx:{height:400,width:"100%"},children:g.jsx(_s,{rows:dAe,columns:Vje,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const Gje=()=>g.jsx(mr,{title:"Income Sources",content:g.jsx(Uje,{}),height:500});var HT={},qje=_u;Object.defineProperty(HT,"__esModule",{value:!0});var uU=HT.default=void 0,Kje=qje(ku()),Yje=g,Xje=(0,Kje.default)((0,Yje.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddOutlined");uU=HT.default=Xje;var WT={},Qje=_u;Object.defineProperty(WT,"__esModule",{value:!0});var cU=WT.default=void 0,Zje=Qje(ku()),Jje=g,eNe=(0,Zje.default)((0,Jje.jsx)("path",{d:"M18 4H6C3.79 4 2 5.79 2 8v8c0 2.21 1.79 4 4 4h12c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm-1.86 9.77c-.24.2-.57.28-.88.2L4.15 11.25C4.45 10.52 5.16 10 6 10h12c.67 0 1.26.34 1.63.84l-3.49 2.93zM6 6h12c1.1 0 2 .9 2 2v.55c-.59-.34-1.27-.55-2-.55H6c-.73 0-1.41.21-2 .55V8c0-1.1.9-2 2-2z"}),"WalletOutlined");cU=WT.default=eNe;var tNe=function(t){return nNe(t)&&!rNe(t)};function nNe(e){return!!e&&typeof e=="object"}function rNe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aNe(e)}var oNe=typeof Symbol=="function"&&Symbol.for,iNe=oNe?Symbol.for("react.element"):60103;function aNe(e){return e.$$typeof===iNe}function sNe(e){return Array.isArray(e)?[]:{}}function gb(e,t){return t.clone!==!1&&t.isMergeableObject(e)?zg(sNe(e),e,t):e}function lNe(e,t,n){return e.concat(t).map(function(r){return gb(r,n)})}function uNe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=gb(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=gb(t[o],n):r[o]=zg(e[o],t[o],n)}),r}function zg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||lNe,n.isMergeableObject=n.isMergeableObject||tNe;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):uNe(e,t,n):gb(t,n)}zg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return zg(r,o,n)},{})};var Lk=zg,cNe=typeof global=="object"&&global&&global.Object===Object&&global;const dU=cNe;var dNe=typeof self=="object"&&self&&self.Object===Object&&self,fNe=dU||dNe||Function("return this")();const Ms=fNe;var pNe=Ms.Symbol;const mu=pNe;var fU=Object.prototype,hNe=fU.hasOwnProperty,mNe=fU.toString,Qh=mu?mu.toStringTag:void 0;function gNe(e){var t=hNe.call(e,Qh),n=e[Qh];try{e[Qh]=void 0;var r=!0}catch{}var o=mNe.call(e);return r&&(t?e[Qh]=n:delete e[Qh]),o}var vNe=Object.prototype,yNe=vNe.toString;function bNe(e){return yNe.call(e)}var xNe="[object Null]",wNe="[object Undefined]",Y8=mu?mu.toStringTag:void 0;function yd(e){return e==null?e===void 0?wNe:xNe:Y8&&Y8 in Object(e)?gNe(e):bNe(e)}function pU(e,t){return function(n){return e(t(n))}}var CNe=pU(Object.getPrototypeOf,Object);const VT=CNe;function bd(e){return e!=null&&typeof e=="object"}var SNe="[object Object]",$Ne=Function.prototype,_Ne=Object.prototype,hU=$Ne.toString,kNe=_Ne.hasOwnProperty,PNe=hU.call(Object);function X8(e){if(!bd(e)||yd(e)!=SNe)return!1;var t=VT(e);if(t===null)return!0;var n=kNe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hU.call(n)==PNe}var Q8=Array.isArray,Z8=Object.keys,MNe=Object.prototype.hasOwnProperty,TNe=typeof Element<"u";function Dk(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Q8(e),r=Q8(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!Dk(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!=c)return!1;if(u&&c)return e.toString()==t.toString();var f=Z8(e);if(i=f.length,i!==Z8(t).length)return!1;for(o=i;o--!==0;)if(!MNe.call(t,f[o]))return!1;if(TNe&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(a=f[o],!(a==="_owner"&&e.$$typeof)&&!Dk(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var ENe=function(t,n){try{return Dk(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Qu=Or(ENe);var INe=!0;function RNe(e,t){if(!INe){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function ONe(){this.__data__=[],this.size=0}function mU(e,t){return e===t||e!==e&&t!==t}function h2(e,t){for(var n=e.length;n--;)if(mU(e[n][0],t))return n;return-1}var ANe=Array.prototype,FNe=ANe.splice;function LNe(e){var t=this.__data__,n=h2(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():FNe.call(t,n,1),--this.size,!0}function DNe(e){var t=this.__data__,n=h2(t,e);return n<0?void 0:t[n][1]}function jNe(e){return h2(this.__data__,e)>-1}function NNe(e,t){var n=this.__data__,r=h2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Gze}var qze="[object Arguments]",Kze="[object Array]",Yze="[object Boolean]",Xze="[object Date]",Qze="[object Error]",Zze="[object Function]",Jze="[object Map]",eBe="[object Number]",tBe="[object Object]",nBe="[object RegExp]",rBe="[object Set]",oBe="[object String]",iBe="[object WeakMap]",aBe="[object ArrayBuffer]",sBe="[object DataView]",lBe="[object Float32Array]",uBe="[object Float64Array]",cBe="[object Int8Array]",dBe="[object Int16Array]",fBe="[object Int32Array]",pBe="[object Uint8Array]",hBe="[object Uint8ClampedArray]",mBe="[object Uint16Array]",gBe="[object Uint32Array]",Qn={};Qn[lBe]=Qn[uBe]=Qn[cBe]=Qn[dBe]=Qn[fBe]=Qn[pBe]=Qn[hBe]=Qn[mBe]=Qn[gBe]=!0;Qn[qze]=Qn[Kze]=Qn[aBe]=Qn[Yze]=Qn[sBe]=Qn[Xze]=Qn[Qze]=Qn[Zze]=Qn[Jze]=Qn[eBe]=Qn[tBe]=Qn[nBe]=Qn[rBe]=Qn[oBe]=Qn[iBe]=!1;function vBe(e){return bd(e)&&CU(e.length)&&!!Qn[yd(e)]}function UT(e){return function(t){return e(t)}}var SU=typeof pi=="object"&&pi&&!pi.nodeType&&pi,Om=SU&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,yBe=Om&&Om.exports===SU,o$=yBe&&dU.process,bBe=function(){try{var e=Om&&Om.require&&Om.require("util").types;return e||o$&&o$.binding&&o$.binding("util")}catch{}}();const Tp=bBe;var o9=Tp&&Tp.isTypedArray,xBe=o9?UT(o9):vBe;const wBe=xBe;var CBe=Object.prototype,SBe=CBe.hasOwnProperty;function $U(e,t){var n=P0(e),r=!n&&Dze(e),o=!n&&!r&&wU(e),i=!n&&!r&&!o&&wBe(e),a=n||r||o||i,s=a?Rze(e.length,String):[],l=s.length;for(var u in e)(t||SBe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Uze(u,l)))&&s.push(u);return s}var $Be=Object.prototype;function GT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$Be;return e===n}var _Be=pU(Object.keys,Object);const kBe=_Be;var PBe=Object.prototype,MBe=PBe.hasOwnProperty;function TBe(e){if(!GT(e))return kBe(e);var t=[];for(var n in Object(e))MBe.call(e,n)&&n!="constructor"&&t.push(n);return t}function _U(e){return e!=null&&CU(e.length)&&!gU(e)}function qT(e){return _U(e)?$U(e):TBe(e)}function EBe(e,t){return e&&g2(t,qT(t),e)}function IBe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var RBe=Object.prototype,OBe=RBe.hasOwnProperty;function ABe(e){if(!k0(e))return IBe(e);var t=GT(e),n=[];for(var r in e)r=="constructor"&&(t||!OBe.call(e,r))||n.push(r);return n}function KT(e){return _U(e)?$U(e,!0):ABe(e)}function FBe(e,t){return e&&g2(t,KT(t),e)}var kU=typeof pi=="object"&&pi&&!pi.nodeType&&pi,i9=kU&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,LBe=i9&&i9.exports===kU,a9=LBe?Ms.Buffer:void 0,s9=a9?a9.allocUnsafe:void 0;function DBe(e,t){if(t)return e.slice();var n=e.length,r=s9?s9(n):new e.constructor(n);return e.copy(r),r}function PU(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}var v2=m.createContext(void 0);v2.displayName="FormikContext";var TWe=v2.Provider;v2.Consumer;function EWe(){var e=m.useContext(v2);return e||RNe(!1),e}var Fi=function(t){return typeof t=="function"},y2=function(t){return t!==null&&typeof t=="object"},IWe=function(t){return String(Math.floor(Number(t)))===t},i$=function(t){return Object.prototype.toString.call(t)==="[object String]"},RWe=function(t){return m.Children.count(t)===0},a$=function(t){return y2(t)&&Fi(t.then)};function ii(e,t,n,r){r===void 0&&(r=0);for(var o=DU(t);e&&r=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function NU(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?ee.map(function(ye){return E(ye,ii(K,ye))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(pe).then(function(ye){return ye.reduce(function(De,Ae,Ee){return Ae==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ae&&(De=Mc(De,ee[Ee],Ae)),De},{})})},[E]),z=m.useCallback(function(K){return Promise.all([A(K),p.validationSchema?N(K):{},p.validate?I(K):{}]).then(function(ee){var pe=ee[0],ye=ee[1],De=ee[2],Ae=Lk.all([pe,ye,De],{arrayMerge:jWe});return Ae})},[p.validate,p.validationSchema,A,I,N]),L=Ai(function(K){return K===void 0&&(K=k.values),M({type:"SET_ISVALIDATING",payload:!0}),z(K).then(function(ee){return x.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:ee})),ee})});m.useEffect(function(){a&&x.current===!0&&Qu(y.current,p.initialValues)&&L(y.current)},[a,L]);var O=m.useCallback(function(K){var ee=K&&K.values?K.values:y.current,pe=K&&K.errors?K.errors:v.current?v.current:p.initialErrors||{},ye=K&&K.touched?K.touched:b.current?b.current:p.initialTouched||{},De=K&&K.status?K.status:C.current?C.current:p.initialStatus;y.current=ee,v.current=pe,b.current=ye,C.current=De;var Ae=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!K&&!!K.isSubmitting,errors:pe,touched:ye,status:De,values:ee,isValidating:!!K&&!!K.isValidating,submitCount:K&&K.submitCount&&typeof K.submitCount=="number"?K.submitCount:0}})};if(p.onReset){var Ee=p.onReset(k.values,Pe);a$(Ee)?Ee.then(Ae):Ae()}else Ae()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);m.useEffect(function(){x.current===!0&&!Qu(y.current,p.initialValues)&&u&&(y.current=p.initialValues,O(),a&&L(y.current))},[u,p.initialValues,O,a,L]),m.useEffect(function(){u&&x.current===!0&&!Qu(v.current,p.initialErrors)&&(v.current=p.initialErrors||Vu,M({type:"SET_ERRORS",payload:p.initialErrors||Vu}))},[u,p.initialErrors]),m.useEffect(function(){u&&x.current===!0&&!Qu(b.current,p.initialTouched)&&(b.current=p.initialTouched||n1,M({type:"SET_TOUCHED",payload:p.initialTouched||n1}))},[u,p.initialTouched]),m.useEffect(function(){u&&x.current===!0&&!Qu(C.current,p.initialStatus)&&(C.current=p.initialStatus,M({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var D=Ai(function(K){if(w.current[K]&&Fi(w.current[K].validate)){var ee=ii(k.values,K),pe=w.current[K].validate(ee);return a$(pe)?(M({type:"SET_ISVALIDATING",payload:!0}),pe.then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ye}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:K,value:pe}}),Promise.resolve(pe))}else if(p.validationSchema)return M({type:"SET_ISVALIDATING",payload:!0}),N(k.values,K).then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ii(ye,K)}}),M({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),H=m.useCallback(function(K,ee){var pe=ee.validate;w.current[K]={validate:pe}},[]),B=m.useCallback(function(K){delete w.current[K]},[]),j=Ai(function(K,ee){M({type:"SET_TOUCHED",payload:K});var pe=ee===void 0?o:ee;return pe?L(k.values):Promise.resolve()}),W=m.useCallback(function(K){M({type:"SET_ERRORS",payload:K})},[]),U=Ai(function(K,ee){var pe=Fi(K)?K(k.values):K;M({type:"SET_VALUES",payload:pe});var ye=ee===void 0?n:ee;return ye?L(pe):Promise.resolve()}),Z=m.useCallback(function(K,ee){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ee}})},[]),Y=Ai(function(K,ee,pe){M({type:"SET_FIELD_VALUE",payload:{field:K,value:ee}});var ye=pe===void 0?n:pe;return ye?L(Mc(k.values,K,ee)):Promise.resolve()}),se=m.useCallback(function(K,ee){var pe=ee,ye=K,De;if(!i$(K)){K.persist&&K.persist();var Ae=K.target?K.target:K.currentTarget,Ee=Ae.type,Ce=Ae.name,Qe=Ae.id,Ct=Ae.value,et=Ae.checked,Be=Ae.outerHTML,te=Ae.options,X=Ae.multiple;pe=ee||Ce||Qe,ye=/number|range/.test(Ee)?(De=parseFloat(Ct),isNaN(De)?"":De):/checkbox/.test(Ee)?zWe(ii(k.values,pe),et,Ct):te&&X?NWe(te):Ct}pe&&Y(pe,ye)},[Y,k.values]),Q=Ai(function(K){if(i$(K))return function(ee){return se(ee,K)};se(K)}),ne=Ai(function(K,ee,pe){ee===void 0&&(ee=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:K,value:ee}});var ye=pe===void 0?o:pe;return ye?L(k.values):Promise.resolve()}),re=m.useCallback(function(K,ee){K.persist&&K.persist();var pe=K.target,ye=pe.name,De=pe.id,Ae=pe.outerHTML,Ee=ee||ye||De;ne(Ee,!0)},[ne]),ge=Ai(function(K){if(i$(K))return function(ee){return re(ee,K)};re(K)}),xe=m.useCallback(function(K){Fi(K)?M({type:"SET_FORMIK_STATE",payload:K}):M({type:"SET_FORMIK_STATE",payload:function(){return K}})},[]),fe=m.useCallback(function(K){M({type:"SET_STATUS",payload:K})},[]),Se=m.useCallback(function(K){M({type:"SET_ISSUBMITTING",payload:K})},[]),de=Ai(function(){return M({type:"SUBMIT_ATTEMPT"}),L().then(function(K){var ee=K instanceof Error,pe=!ee&&Object.keys(K).length===0;if(pe){var ye;try{if(ye=$e(),ye===void 0)return}catch(De){throw De}return Promise.resolve(ye).then(function(De){return x.current&&M({type:"SUBMIT_SUCCESS"}),De}).catch(function(De){if(x.current)throw M({type:"SUBMIT_FAILURE"}),De})}else if(x.current&&(M({type:"SUBMIT_FAILURE"}),ee))throw K})}),ie=Ai(function(K){K&&K.preventDefault&&Fi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Fi(K.stopPropagation)&&K.stopPropagation(),de().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Pe={resetForm:O,validateForm:L,validateField:D,setErrors:W,setFieldError:Z,setFieldTouched:ne,setFieldValue:Y,setStatus:fe,setSubmitting:Se,setTouched:j,setValues:U,setFormikState:xe,submitForm:de},$e=Ai(function(){return c(k.values,Pe)}),me=Ai(function(K){K&&K.preventDefault&&Fi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Fi(K.stopPropagation)&&K.stopPropagation(),O()}),ue=m.useCallback(function(K){return{value:ii(k.values,K),error:ii(k.errors,K),touched:!!ii(k.touched,K),initialValue:ii(y.current,K),initialTouched:!!ii(b.current,K),initialError:ii(v.current,K)}},[k.errors,k.touched,k.values]),ce=m.useCallback(function(K){return{setValue:function(pe,ye){return Y(K,pe,ye)},setTouched:function(pe,ye){return ne(K,pe,ye)},setError:function(pe){return Z(K,pe)}}},[Y,ne,Z]),Te=m.useCallback(function(K){var ee=y2(K),pe=ee?K.name:K,ye=ii(k.values,pe),De={name:pe,value:ye,onChange:Q,onBlur:ge};if(ee){var Ae=K.type,Ee=K.value,Ce=K.as,Qe=K.multiple;Ae==="checkbox"?Ee===void 0?De.checked=!!ye:(De.checked=!!(Array.isArray(ye)&&~ye.indexOf(Ee)),De.value=Ee):Ae==="radio"?(De.checked=ye===Ee,De.value=Ee):Ce==="select"&&Qe&&(De.value=De.value||[],De.multiple=!0)}return De},[ge,Q,k.values]),Le=m.useMemo(function(){return!Qu(y.current,k.values)},[y.current,k.values]),Re=m.useMemo(function(){return typeof s<"u"?Le?k.errors&&Object.keys(k.errors).length===0:s!==!1&&Fi(s)?s(p):s:k.errors&&Object.keys(k.errors).length===0},[s,Le,k.errors,p]),Oe=Dr({},k,{initialValues:y.current,initialErrors:v.current,initialTouched:b.current,initialStatus:C.current,handleBlur:ge,handleChange:Q,handleReset:me,handleSubmit:ie,resetForm:O,setErrors:W,setFormikState:xe,setFieldTouched:ne,setFieldValue:Y,setFieldError:Z,setStatus:fe,setSubmitting:Se,setTouched:j,setValues:U,submitForm:de,validateForm:L,validateField:D,isValid:Re,dirty:Le,unregisterField:B,registerField:H,getFieldProps:Te,getFieldMeta:ue,getFieldHelpers:ce,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return Oe}function FWe(e){var t=AWe(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return m.useImperativeHandle(i,function(){return t}),m.createElement(TWe,{value:t},n?m.createElement(n,t):o?o(t):r?Fi(r)?r(t):RWe(r)?null:m.Children.only(r):null)}function LWe(e){var t={};if(e.inner){if(e.inner.length===0)return Mc(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;ii(t,a.path)||(t=Mc(t,a.path,a.message))}}return t}function DWe(e,t,n,r){n===void 0&&(n=!1);var o=Hk(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}function Hk(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||X8(o)?Hk(o):o!==""?o:void 0}):X8(e[r])?t[r]=Hk(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function jWe(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?Lk(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=Lk(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function NWe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function zWe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var BWe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Ai(e){var t=m.useRef(e);return BWe(function(){t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var WWe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,zU=/^\d+$/,VWe=/^\d/,UWe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,GWe=/^\s*(['"]?)(.*?)(\1)\s*$/,e3=512,S9=new Cd(e3),$9=new Cd(e3),_9=new Cd(e3),Tc={Cache:Cd,split:Wk,normalizePath:s$,setter:function(e){var t=s$(e);return $9.get(e)||$9.set(e,function(r,o){for(var i=0,a=t.length,s=r;ie.match(QWe)||[],x2=e=>e[0].toUpperCase()+e.slice(1),n3=(e,t)=>b2(e).join(t).toLowerCase(),BU=e=>b2(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),ZWe=e=>x2(BU(e)),JWe=e=>n3(e,"_"),eVe=e=>n3(e,"-"),tVe=e=>x2(n3(e," ")),nVe=e=>b2(e).map(x2).join(" ");var l$={words:b2,upperFirst:x2,camelCase:BU,pascalCase:ZWe,snakeCase:JWe,kebabCase:eVe,sentenceCase:tVe,titleCase:nVe},r3={exports:{}};r3.exports=function(e){return HU(rVe(e),e)};r3.exports.array=HU;function HU(e,t){var n=e.length,r=new Array(n),o={},i=n,a=oVe(t),s=iVe(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(u,c,f){if(f.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[c]){o[c]=!0;var y=a.get(u)||new Set;if(y=Array.from(y),c=y.length){f.add(u);do{var v=y[--c];l(v,s.get(v),f)}while(c);f.delete(u)}r[--n]=u}}}function rVe(e){for(var t=new Set,n=0,r=e.length;n"",fVe=/^Symbol\((.*)\)(.*)$/;function pVe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function k9(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return pVe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return dVe.call(e).replace(fVe,"Symbol($1)");const r=lVe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+uVe.call(e)+"]":r==="RegExp"?cVe.call(e):null}function au(e,t){let n=k9(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=k9(this[r],t);return i!==null?i:o},2)}function WU(e){return e==null?[]:[].concat(e)}let VU,hVe=/\$\{\s*(\w+)\s*\}/g;VU=Symbol.toStringTag;class No extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(hVe,(o,i)=>au(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[VU]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],WU(t).forEach(a=>{if(No.isError(a)){this.errors.push(...a.errors);const s=a.inner.length?a.inner:[a];this.inner.push(...s)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,No)}}let Wa={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${au(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${au(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${au(n,!0)}\``+o}},ha={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Rl={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Vk={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},mVe={isValue:"${path} field must be ${value}"},Uk={noUnknown:"${path} field has unspecified keys: ${unknown}"},gVe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},vVe={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${au(n,!0)}\``}return No.formatError(Wa.notType,e)}};Object.assign(Object.create(null),{mixed:Wa,string:ha,number:Rl,date:Vk,object:Uk,array:gVe,boolean:mVe,tuple:vVe});const o3=e=>e&&e.__isYupSchema__;class vb{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new vb(t,(s,l)=>{var u;let c=a(...s)?o:i;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!o3(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const r1={context:"$",value:"."};class Sd{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===r1.context,this.isValue=this.key[0]===r1.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?r1.context:this.isValue?r1.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Tc.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Sd.prototype.__isYupRef=!0;const Xs=e=>e==null;function rf(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:u,test:c,params:f,message:p,skipAbsent:y}=e;let{parent:v,context:b,abortEarly:C=a.spec.abortEarly,disableStackTrace:x=a.spec.disableStackTrace}=o;function w(A){return Sd.isRef(A)?A.getValue(n,v,b):A}function S(A={}){var z;const L=Object.assign({value:n,originalValue:i,label:a.spec.label,path:A.path||r,spec:a.spec},f,A.params);for(const D of Object.keys(L))L[D]=w(L[D]);const O=new No(No.formatError(A.message||p,L),n,L.path,A.type||u,(z=A.disableStackTrace)!=null?z:x);return O.params=L,O}const $=C?s:l;let T={path:r,parent:v,type:u,from:o.from,createError:S,resolve:w,options:o,originalValue:i,schema:a};const k=A=>{No.isError(A)?$(A):A?l(null):$(S())},M=A=>{No.isError(A)?$(A):s(A)};if(y&&Xs(n))return k(!0);let N;try{var E;if(N=c.call(T,n,T),typeof((E=N)==null?void 0:E.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(k,M)}}catch(A){M(A);return}k(N)}return t.OPTIONS=e,t}function yVe(e,t,n,r=n){let o,i,a;return t?(Tc.forEach(t,(s,l,u)=>{let c=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=f?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class yb extends Set{describe(){const t=[];for(const n of this.values())t.push(Sd.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new yb(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Ef(e,t=new Map){if(o3(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(Wa.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ef(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Xs(i))return i;let a=au(t),s=au(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". attempted value: ${a} -`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:l,originalValue:a,options:n,tests:u},r,c=>{if(c.length)return o(c,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:u}=t,c=b=>{o||(o=!0,n(b,a))},f=b=>{o||(o=!0,r(b,a))},p=i.length,y=[];if(!p)return f([]);let v={value:a,originalValue:s,path:l,options:u,schema:this};for(let b=0;bthis.resolve(c)._validate(u,c,p,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,u)=>{No.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new No(l,u,void 0,void 0,i)):a(u)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw No.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new No(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(No.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(No.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):If(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=of({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=of({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Wa.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Wa.notNull){return this.nullability(!1,t)}required(t=Wa.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Wa.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=of(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=VU(t).map(i=>new $d(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new yb(o,n):yb.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=of({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Wa.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=of({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Wa.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=of({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,c)=>c.findIndex(f=>f.name===l.name)===u)}}}Ia.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Ia.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=gVe(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Ia.prototype[e]=Ia.prototype.oneOf;for(const e of["not","nope"])Ia.prototype[e]=Ia.prototype.notOneOf;let vVe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yVe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,bVe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xVe=e=>Qs(e)||e===e.trim(),wVe={}.toString();function GU(){return new qU}class qU extends Ia{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===wVe?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Wa.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ma.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ma.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ma.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ma.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ma.email){return this.matches(vVe,{name:"email",message:t,excludeEmptyString:!0})}url(t=ma.url){return this.matches(yVe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ma.uuid){return this.matches(bVe,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ma.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:xVe})}lowercase(t=ma.lowercase){return this.transform(n=>Qs(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Qs(n)||n===n.toLowerCase()})}uppercase(t=ma.uppercase){return this.transform(n=>Qs(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Qs(n)||n===n.toUpperCase()})}}GU.prototype=qU.prototype;let CVe=e=>e!=+e;function qk(){return new KU}class KU extends Ia{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!CVe(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Ol.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Ol.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Ol.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=Ol.positive){return this.moreThan(0,t)}negative(t=Ol.negative){return this.lessThan(0,t)}integer(t=Ol.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Qs(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Qs(o)?o:Math[t](o))}}qk.prototype=KU.prototype;const SVe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ns(e,t=0){return Number(e)||t}function $Ve(e){const t=SVe.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:Ns(t[1]),month:Ns(t[2],1)-1,day:Ns(t[3],1),hour:Ns(t[4]),minute:Ns(t[5]),second:Ns(t[6]),millisecond:t[7]?Ns(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Ns(t[10]),minuteOffset:Ns(t[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(r=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}let _Ve=new Date(""),kVe=e=>Object.prototype.toString.call(e)==="[object Date]";class C2 extends Ia{constructor(){super({type:"date",check(t){return kVe(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=$Ve(t),isNaN(t)?C2.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if($d.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Uk.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Uk.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}C2.INVALID_DATE=_Ve;C2.prototype;function PVe(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=Ec.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),$d.isRef(s)&&s.isSibling?i(s.path,a):i3(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return iVe.array(Array.from(r),n).reverse()}function M9(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function YU(e){return(t,n)=>M9(e,t)-M9(e,n)}const MVe=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function W1(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=W1(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=W1(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(W1)}):"optional"in e?e.optional():e}const TVe=(e,t)=>{const n=[...Ec.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ec.getter(Ec.join(n),!0)(e);return!!(o&&r in o)};let T9=e=>Object.prototype.toString.call(e)==="[object Object]";function EVe(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const IVe=YU([]);function XU(e){return new QU(e)}class QU extends Ia{constructor(t){super({type:"object",check(n){return T9(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=IVe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const f of s){let p=i[f],y=f in o;if(p){let v,b=o[f];u.path=(n.path?`${n.path}.`:"")+f,p=p.resolve({value:b,context:n.context,parent:l});let C=p instanceof Ia?p.spec:void 0,x=C==null?void 0:C.strict;if(C!=null&&C.strip){c=c||f in o;continue}v=!n.__validating||!x?p.cast(o[f],u):o[f],v!==void 0&&(l[f]=v)}else y&&!a&&(l[f]=o[f]);(y!==f in l||l[f]!==o[f])&&(c=!0)}return c?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!T9(u)){o(l,u);return}a=a||u;let c=[];for(let f of this._nodes){let p=this.fields[f];!p||$d.isRef(p)||c.push(p.asNestedTest({options:n,key:f,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:c,value:u,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=PVe(t,n),r._sortErrors=YU(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return W1(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ec.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return TVe(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(MVe)}noUnknown(t=!0,n=Gk.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=EVe(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Gk.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(u$.camelCase)}snakeCase(){return this.transformKeys(u$.snakeCase)}constantCase(){return this.transformKeys(t=>u$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}XU.prototype=QU.prototype;const RVe={title:"",currentAmount:0,limit:0},OVe=XU().shape({title:GU().required("required"),currentAmount:qk().required("required"),limit:qk().required("required")}),AVe=()=>{const e=t=>{console.log(t)};return g.jsxs(qe,{children:[g.jsx(Ze,{variant:"h4",sx:{textAlign:"center"},children:"Set a new limit"}),g.jsx(OWe,{onSubmit:e,initialValues:RVe,validationSchema:OVe,children:({values:t,errors:n,touched:r,handleBlur:o,handleChange:i,handleSubmit:a})=>g.jsx("form",{onSubmit:a,children:g.jsxs(qe,{sx:{display:"flex",gap:3,flexDirection:"column",mt:2},children:[g.jsx(ou,{fullWidth:!0,variant:"filled",color:"info",type:"text",label:"Title",onBlur:o,onChange:i,value:t.title,name:"title",error:!!r.title&&!!n.title,helperText:r.title&&n.title}),g.jsxs(qe,{sx:{display:"flex",gap:2},children:[g.jsx(ou,{variant:"filled",color:"info",type:"number",label:"Current Amount",onBlur:o,onChange:i,value:t.currentAmount,name:"currentAmount",error:!!r.currentAmount&&!!n.currentAmount,helperText:r.currentAmount&&n.currentAmount}),g.jsx(ou,{variant:"filled",color:"info",type:"number",label:"Limit",onBlur:o,onChange:i,value:t.limit,name:"limit",error:!!r.limit&&!!n.limit,helperText:r.limit&&n.limit})]}),g.jsx(fs,{type:"submit",color:"info",variant:"contained",size:"large",children:"Submit"})]})})})]})},FVe={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4};function LVe({content:e}){const[t,n]=m.useState(!1),r=()=>n(!0),o=()=>n(!1),i=Xt(),a=jn(i.palette.mode);return g.jsxs(g.Fragment,{children:[g.jsx(fs,{sx:{backgroundColor:a.primary[500],borderRadius:"1rem",color:a.primary[100],display:"flex",gap:"1rem",justifyContent:"start",padding:"1rem",width:"100%","& .MuiBox-root":{alignItems:"center",display:"flex",gap:"1rem"},"&:hover":{backgroundColor:`${a.primary[700]} !important`}},onClick:r,children:e}),g.jsx(aN,{open:t,onClose:o,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:g.jsx(qe,{sx:FVe,children:g.jsx(AVe,{})})})]})}const DVe=()=>{const e=Xt(),t=jn(e.palette.mode),n={alignItems:"center",backgroundColor:t.primary[500],borderRadius:"1rem",cursor:"pointer",display:"flex",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(clamp(250px, 16vw, 860px), 1fr))",padding:"1rem",transition:".2s",width:"100%"},r=fAe.map((o,i)=>g.jsxs(qe,{sx:n,children:[g.jsx(_y,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:g.jsx(dU,{})}),g.jsxs(qe,{children:[g.jsx(qe,{children:g.jsx(Ze,{variant:"h5",sx:{fontWeight:600},children:o.title})}),g.jsxs(qe,{sx:{display:"flex"},children:[g.jsxs(Ze,{variant:"h6",sx:{color:t.grey[300]},children:[o.currentValue," /"]}),g.jsxs(Ze,{variant:"h6",sx:{fontWeight:600},children:[" ",o.limit]})]})]})]},i));return g.jsxs(g.Fragment,{children:[g.jsx(LVe,{content:g.jsxs(qe,{children:[g.jsx(_y,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:g.jsx(cU,{})}),g.jsx(qe,{children:g.jsx(Ze,{variant:"h5",sx:{fontWeight:600},children:"Set New Limit"})})]})}),r]})},jVe=()=>g.jsx(mr,{title:"Expense Limits",content:g.jsx(fN,{sx:{display:"grid",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",height:"100%",overflowY:"scroll",overflowX:"hidden",paddingRight:"1rem"},children:g.jsx(DVe,{})}),height:500}),NVe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"title",headerName:"Title",flex:1,minWidth:160,maxWidth:190},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:130},{field:"description",headerName:"Description",flex:1,minWidth:160,maxWidth:190},{field:"goal",headerName:"Goal",flex:1,minWidth:110,maxWidth:130},{field:"targetDate",headerName:"Target Date",flex:1,minWidth:130,maxWidth:160},{field:"progress",headerName:"Progress"},{field:"category",headerName:"Category",flex:1,minWidth:120,maxWidth:100},{field:"status",headerName:"Status",description:"This column has a value getter and is not sortable.",flex:1,minWidth:130,maxWidth:160},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function zVe(){return g.jsx(qe,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:pAe,columns:NVe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const BVe=()=>g.jsx(mr,{title:"Savings",content:g.jsx(zVe,{}),height:500});function HVe(){return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Budget"}),g.jsx(Ze,{variant:"h6",children:"Track and control your spending"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:8,children:g.jsx(Vje,{})}),g.jsx(Ft,{item:!0,xs:12,md:4,children:g.jsx(JW,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(jVe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(BVe,{})})]})]})})}const WVe={inputProps:{"aria-label":"Color switch demo"}};function E9(){return g.jsx(g.Fragment,{children:g.jsx(kN,{...WVe,defaultChecked:!0,color:"secondary"})})}const VVe=[{id:1,billName:"Electricity",vendor:"ABC Electric",status:"Paid",paymentDate:"2021-01-12",dueDate:"2021-02-01",amount:100,frequency:"Monthly",paymentMethod:"Credit Card",category:"Utilities",notes:"Usage charge for January"},{id:2,billName:"Phone",vendor:"XYZ Telecom",status:"Unpaid",paymentDate:null,dueDate:"2021-02-15",amount:50,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"Includes data and calling plan"},{id:3,billName:"Rent",vendor:"XYZ Apartments",status:"Unpaid",paymentDate:null,dueDate:"2021-03-01",amount:1e3,frequency:"Monthly",paymentMethod:"Bank Transfer",category:"Housing",notes:"Due at the beginning of each month"},{id:4,billName:"Internet",vendor:"XYZ Telecom",status:"Paid",paymentDate:"2021-01-18",dueDate:"2021-02-05",amount:60,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"High-speed unlimited plan"},{id:5,billName:"Gym Membership",vendor:"Fitness Club",status:"Paid",paymentDate:"2021-01-25",dueDate:"2021-02-10",amount:80,frequency:"Monthly",paymentMethod:"Credit Card",category:"Health & Fitness",notes:"Access to gym and fitness classes"},{id:6,billName:"Insurance",vendor:"ABC Insurance",status:"Unpaid",paymentDate:null,dueDate:"2021-03-20",amount:200,frequency:"Quarterly",paymentMethod:"Cheque",category:"Insurance",notes:"Car insurance premium"},{id:7,billName:"Credit Card",vendor:"Bank XYZ",status:"Unpaid",paymentDate:null,dueDate:"2021-02-28",amount:150,frequency:"Monthly",paymentMethod:"Online Payment",category:"Credit Card",notes:"Last month's expenses"},{id:8,billName:"Subscription",vendor:"XYZ Streaming",status:"Paid",paymentDate:"2021-01-15",dueDate:"2021-02-01",amount:15,frequency:"Monthly",paymentMethod:"Online Payment",category:"Entertainment",notes:"Access to movies and shows"}],UVe=[{id:"Rent",color:"hsl(261, 70%, 50%)",data:[{x:"Jan",y:400},{x:"Feb",y:400},{x:"Mar",y:400},{x:"Apr",y:400},{x:"May",y:400},{x:"Jun",y:500},{x:"Jul",y:500},{x:"Aug",y:500},{x:"Sep",y:500},{x:"Oct",y:500},{x:"Nov",y:500},{x:"Dec",y:500}]},{id:"Utilities",color:"hsl(111, 70%, 50%)",data:[{x:"Jan",y:525},{x:"Feb",y:600},{x:"Mar",y:350},{x:"Apr",y:385},{x:"May",y:410},{x:"Jun",y:470},{x:"Jul",y:510},{x:"Aug",y:430},{x:"Sep",y:590},{x:"Oct",y:550},{x:"Nov",y:450},{x:"Dec",y:590}]},{id:"Internet",color:"hsl(20, 70%, 50%)",data:[{x:"Jan",y:489},{x:"Feb",y:437},{x:"Mar",y:471},{x:"Apr",y:578},{x:"May",y:550},{x:"Jun",y:536},{x:"Jul",y:675},{x:"Aug",y:613},{x:"Sep",y:400},{x:"Oct",y:675},{x:"Nov",y:684},{x:"Dec",y:450}]},{id:"Phone",color:"hsl(258, 70%, 50%)",data:[{x:"Jan",y:220},{x:"Feb",y:284},{x:"Mar",y:217},{x:"Apr",y:312},{x:"May",y:344},{x:"Jun",y:339},{x:"Jul",y:319},{x:"Aug",y:597},{x:"Sep",y:553},{x:"Oct",y:551},{x:"Nov",y:593},{x:"Dec",y:656}]},{id:"Other",color:"hsl(101, 70%, 50%)",data:[{x:"Jan",y:622},{x:"Feb",y:610},{x:"Mar",y:635},{x:"Apr",y:653},{x:"May",y:657},{x:"Jun",y:700},{x:"Jul",y:696},{x:"Aug",y:688},{x:"Sep",y:670},{x:"Oct",y:652},{x:"Nov",y:535},{x:"Dec",y:666}]}],GVe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"billName",headerName:"Bill Name",flex:1,minWidth:160,maxWidth:160},{field:"vendor",headerName:"Vendor",flex:1,minWidth:140,maxWidth:140},{field:"status",headerName:"Status",flex:1,minWidth:110,maxWidth:110},{field:"paymentDate",headerName:"Payment Date",type:"string",sortable:!0,flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",description:"The date by which the bill payment is due.",type:"string",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"frequency",headerName:"Frequency",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:160},{field:"notification",headerName:"Notification",type:"boolean",sortable:!0,flex:1,minWidth:130,maxWidth:130,renderCell:()=>g.jsx(qe,{children:g.jsx(E9,{})})},{field:"category",headerName:"Category",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"notes",headerName:"Notes",sortable:!1,flex:1,minWidth:160,maxWidth:190},{field:"recordPayment",headerName:"Record Payment",sortable:!1,flex:1,minWidth:220,maxWidth:220,renderCell:e=>g.jsx(qe,{children:g.jsx(fs,{variant:"contained",size:"small",color:"secondary",tabIndex:e.hasFocus?0:-1,children:"Make a payment record"})})},{field:"autoPay",headerName:"Auto Pay",sortable:!1,description:"Indicate whether the bill is set up for automatic payment or requires manual payment.",flex:1,minWidth:130,maxWidth:130,renderCell:()=>g.jsx(qe,{children:g.jsx(E9,{})})},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function qVe(){return g.jsx(qe,{sx:{height:400,width:"100%"},children:g.jsx(_s,{rows:VVe,columns:GVe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const KVe=()=>g.jsx(mr,{title:"Bills Summary",content:g.jsx(qVe,{}),height:500});function YVe(){}var XVe=YVe,c$=xW,QVe=XVe,ZVe=cT,JVe=1/0,eUe=c$&&1/ZVe(new c$([,-0]))[1]==JVe?function(e){return new c$(e)}:QVe,tUe=eUe,nUe=tT,rUe=qH,oUe=KH,iUe=nT,aUe=tUe,sUe=cT,lUe=200;function uUe(e,t,n){var r=-1,o=rUe,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=oUe;else if(i>=lUe){var u=t?null:aUe(e);if(u)return sUe(u);a=!1,o=iUe,l=new nUe}else l=t?[]:s;e:for(;++rt||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var IGe=EGe,d$=fw,RGe=v0,OGe=tG,AGe=$Ge,FGe=kGe,LGe=qp,DGe=IGe,jGe=cw,NGe=la;function zGe(e,t,n){t.length?t=d$(t,function(i){return NGe(i)?function(a){return RGe(a,i.length===1?i[0]:i)}:i}):t=[jGe];var r=-1;t=d$(t,LGe(OGe));var o=AGe(e,function(i,a,s){var l=d$(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return FGe(o,function(i,a){return DGe(i,a,n)})}var BGe=zGe,HGe=hW,WGe=BGe,VGe=T5,O9=mB,UGe=VGe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&O9(e,t[0],t[1])?t=[]:n>2&&O9(t[0],t[1],t[2])&&(t=[t[0]]),WGe(e,HGe(t,1),[])}),GGe=UGe;const qGe=Or(GGe);var KGe=cd,YGe=Ss,XGe="[object Date]";function QGe(e){return YGe(e)&&KGe(e)==XGe}var ZGe=QGe,JGe=ZGe,eqe=qp,A9=lw,F9=A9&&A9.isDate,tqe=F9?eqe(F9):JGe,nqe=tqe;const rqe=Or(nqe);function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(x=p.align[C?"left":"right"],w=p.baseline.center):(o==="after"&&l>0||o==="before"&&l<0)&&(x=p.align[C?"right":"left"],w=p.baseline.center)):(t=function(S){var $;return{x:0,y:($=y(S))!=null?$:0}},v.lineX=a*(o==="after"?1:-1),b.textX=(a+s)*(o==="after"?1:-1),x=o==="after"?p.align.left:p.align.right),{ticks:f.map(function(S){return Ra({key:S instanceof Date?""+S.valueOf():""+S,value:S},t(S),v,b)}),textAlign:x,textBaseline:w}},lG=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=y0(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Mu(e)},Kk=function(e){var t,n=e.width,r=e.height,o=e.scale,i=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||aG(o,a)),l="bandwidth"in o?oG(o):o,u=i==="x"?s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:(f=l(c))!=null?f:0,x2:(p=l(c))!=null?p:0,y1:0,y2:r}}):s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:0,x2:n,y1:(f=l(c))!=null?f:0,y2:(p=l(c))!=null?p:0}});return u},Sqe=m.memo(function(e){var t,n=e.value,r=e.format,o=e.lineX,i=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,u=e.animatedProps,c=On(),f=(t=r==null?void 0:r(n))!=null?t:n,p=m.useMemo(function(){var y={opacity:u.opacity};return a?{style:Ra({},y,{cursor:"pointer"}),onClick:function(v){return a(v,f)}}:{style:y}},[u.opacity,a,f]);return g.jsxs(In.g,Ra({transform:u.transform},p,{children:[g.jsx("line",{x1:0,x2:o,y1:0,y2:i,style:c.axis.ticks.line}),g.jsx(In.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.axis.ticks.text,children:""+f})]}))}),$qe=m.memo(function(e){var t=e.axis,n=e.scale,r=e.x,o=r===void 0?0:r,i=e.y,a=i===void 0?0:i,s=e.length,l=e.ticksPosition,u=e.tickValues,c=e.tickSize,f=c===void 0?5:c,p=e.tickPadding,y=p===void 0?5:p,v=e.tickRotation,b=v===void 0?0:v,C=e.format,x=e.renderTick,w=x===void 0?Sqe:x,S=e.legend,$=e.legendPosition,T=$===void 0?"end":$,k=e.legendOffset,M=k===void 0?0:k,I=e.onClick,N=e.ariaHidden,E=On(),A=m.useMemo(function(){return lG(C,n)},[C,n]),z=sG({axis:t,scale:n,ticksPosition:l,tickValues:u,tickSize:f,tickPadding:y,tickRotation:b}),L=z.ticks,O=z.textAlign,D=z.textBaseline,H=null;if(S!==void 0){var B,j=0,W=0,U=0;t==="y"?(U=-90,j=M,T==="start"?(B="start",W=s):T==="middle"?(B="middle",W=s/2):T==="end"&&(B="end")):(W=M,T==="start"?B="start":T==="middle"?(B="middle",j=s/2):T==="end"&&(B="end",j=s)),H=g.jsx("text",{transform:"translate("+j+", "+W+") rotate("+U+")",textAnchor:B,style:Ra({dominantBaseline:"central"},E.axis.legend.text),children:S})}var Z=To(),Y=Z.animate,se=Z.config,Q=xs({transform:"translate("+o+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:se,immediate:!Y}),ne=ud(L,{keys:function(re){return re.key},initial:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},from:function(re){return{opacity:0,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},enter:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},update:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},leave:{opacity:0},config:se,immediate:!Y});return g.jsxs(In.g,{transform:Q.transform,"aria-hidden":N,children:[ne(function(re,ge,xe,fe){return m.createElement(w,Ra({tickIndex:fe,format:A,rotate:b,textBaseline:D,textAnchor:O,animatedProps:re},ge,I?{onClick:I}:{}))}),g.jsx(In.line,{style:E.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),H]})}),_qe={ticksPosition:R.oneOf(["before","after"]),tickValues:R.oneOfType([R.number,R.arrayOf(R.oneOfType([R.number,R.string,R.instanceOf(Date)])),R.string]),tickSize:R.number,tickPadding:R.number,tickRotation:R.number,format:R.oneOfType([R.func,R.string]),renderTick:R.func,legend:R.node,legendPosition:R.oneOf(["start","middle","end"]),legendOffset:R.number,ariaHidden:R.bool},i1=R.shape(_qe),uG=["top","right","bottom","left"],cG=m.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,o=e.height,i={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return g.jsx(g.Fragment,{children:uG.map(function(a){var s=i[a];if(!s)return null;var l=a==="top"||a==="bottom";return g.jsx($qe,Ra({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?o:0,scale:l?t:n,length:l?r:o,ticksPosition:a==="top"||a==="left"?"before":"after"}),a)})})}),kqe=m.memo(function(e){var t=e.animatedProps,n=On();return g.jsx(In.line,Ra({},t,n.grid.line))}),j9=m.memo(function(e){var t=e.lines,n=To(),r=n.animate,o=n.config,i=ud(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:o,immediate:!r});return g.jsx("g",{children:i(function(a,s){return m.createElement(kqe,Ra({},s,{key:s.key,animatedProps:a}))})})}),dG=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,o=e.yScale,i=e.xValues,a=e.yValues,s=m.useMemo(function(){return!!r&&Kk({width:t,height:n,scale:r,axis:"x",values:i})},[r,i,t,n]),l=m.useMemo(function(){return!!o&&Kk({width:t,height:n,scale:o,axis:"y",values:a})},[n,t,o,a]);return g.jsxs(g.Fragment,{children:[s&&g.jsx(j9,{lines:s}),l&&g.jsx(j9,{lines:l})]})}),Pqe=function(e,t){var n,r=t.axis,o=t.scale,i=t.x,a=i===void 0?0:i,s=t.y,l=s===void 0?0:s,u=t.length,c=t.ticksPosition,f=t.tickValues,p=t.tickSize,y=p===void 0?5:p,v=t.tickPadding,b=v===void 0?5:v,C=t.tickRotation,x=C===void 0?0:C,w=t.format,S=t.legend,$=t.legendPosition,T=$===void 0?"end":$,k=t.legendOffset,M=k===void 0?0:k,I=t.theme,N=sG({axis:r,scale:o,ticksPosition:c,tickValues:f,tickSize:y,tickPadding:b,tickRotation:x,engine:"canvas"}),E=N.ticks,A=N.textAlign,z=N.textBaseline;e.save(),e.translate(a,l),e.textAlign=A,e.textBaseline=z,e.font=(I.axis.ticks.text.fontWeight?I.axis.ticks.text.fontWeight+" ":"")+I.axis.ticks.text.fontSize+"px "+I.axis.ticks.text.fontFamily,((n=I.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(I.axis.domain.line.strokeWidth),e.lineCap="square",I.axis.domain.line.stroke&&(e.strokeStyle=I.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?u:0,r==="x"?0:u),e.stroke());var L=typeof w=="function"?w:function(j){return""+j};if(E.forEach(function(j){var W;((W=I.axis.ticks.line.strokeWidth)!=null?W:0)>0&&(e.lineWidth=Number(I.axis.ticks.line.strokeWidth),e.lineCap="square",I.axis.ticks.line.stroke&&(e.strokeStyle=I.axis.ticks.line.stroke),e.beginPath(),e.moveTo(j.x,j.y),e.lineTo(j.x+j.lineX,j.y+j.lineY),e.stroke());var U=L(j.value);e.save(),e.translate(j.x+j.textX,j.y+j.textY),e.rotate(Qi(x)),I.axis.ticks.text.fill&&(e.fillStyle=I.axis.ticks.text.fill),e.fillText(String(U),0,0),e.restore()}),S!==void 0){var O=0,D=0,H=0,B="center";r==="y"?(H=-90,O=M,T==="start"?(B="start",D=u):T==="middle"?(B="center",D=u/2):T==="end"&&(B="end")):(D=M,T==="start"?B="start":T==="middle"?(B="center",O=u/2):T==="end"&&(B="end",O=u)),e.translate(O,D),e.rotate(Qi(H)),e.font=(I.axis.legend.text.fontWeight?I.axis.legend.text.fontWeight+" ":"")+I.axis.legend.text.fontSize+"px "+I.axis.legend.text.fontFamily,I.axis.legend.text.fill&&(e.fillStyle=I.axis.legend.text.fill),e.textAlign=B,e.textBaseline="middle",e.fillText(S,0,0)}e.restore()},fG=function(e,t){var n=t.xScale,r=t.yScale,o=t.width,i=t.height,a=t.top,s=t.right,l=t.bottom,u=t.left,c=t.theme,f={top:a,right:s,bottom:l,left:u};uG.forEach(function(p){var y=f[p];if(!y)return null;var v=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",C=v?n:r,x=lG(y.format,C);Pqe(e,Ra({},y,{axis:v?"x":"y",x:p==="right"?o:0,y:p==="bottom"?i:0,scale:C,format:x,length:v?o:i,ticksPosition:b,theme:c}))})},xb=function(e,t){var n=t.width,r=t.height,o=t.scale,i=t.axis,a=t.values;Kk({width:n,height:r,scale:o,axis:i,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})};const N9=Math.pow(2,-52),a1=new Uint32Array(512);class wb{static from(t,n=Rqe,r=Oqe){const o=t.length,i=new Float64Array(o*2);for(let a=0;a>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:o,_hullHash:i}=this,a=t.length>>1;let s=1/0,l=1/0,u=-1/0,c=-1/0;for(let E=0;Eu&&(u=A),z>c&&(c=z),this._ids[E]=E}const f=(s+u)/2,p=(l+c)/2;let y=1/0,v,b,C;for(let E=0;E0&&(b=E,y=A)}let S=t[2*b],$=t[2*b+1],T=1/0;for(let E=0;EL&&(E[A++]=O,L=this._dists[O])}this.hull=E.subarray(0,A),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s1(x,w,S,$,k,M)){const E=b,A=S,z=$;b=C,S=k,$=M,C=E,k=A,M=z}const I=Iqe(x,w,S,$,k,M);this._cx=I.x,this._cy=I.y;for(let E=0;E0&&Math.abs(O-A)<=N9&&Math.abs(D-z)<=N9||(A=O,z=D,L===v||L===b||L===C))continue;let H=0;for(let Z=0,Y=this._hashKey(O,D);Z0?3-n:1+n)/4}function f$(e,t,n,r){const o=e-n,i=t-r;return o*o+i*i}function p$(e,t,n,r,o,i){const a=(r-t)*(o-e),s=(n-e)*(i-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function s1(e,t,n,r,o,i){return(p$(o,i,e,t,n,r)||p$(e,t,n,r,o,i)||p$(n,r,o,i,e,t))<0}function Tqe(e,t,n,r,o,i,a,s){const l=e-a,u=t-s,c=n-a,f=r-s,p=o-a,y=i-s,v=l*l+u*u,b=c*c+f*f,C=p*p+y*y;return l*(f*C-b*y)-u*(c*C-b*p)+v*(c*y-f*p)<0}function Eqe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=(u*c-s*f)*p,v=(a*f-l*c)*p;return y*y+v*v}function Iqe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=e+(u*c-s*f)*p,v=t+(a*f-l*c)*p;return{x:y,y:v}}function Rf(e,t,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){const i=e[o],a=t[i];let s=o-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=i}else{const o=n+r>>1;let i=n+1,a=r;Jh(e,o,i),t[e[n]]>t[e[r]]&&Jh(e,n,r),t[e[i]]>t[e[r]]&&Jh(e,i,r),t[e[n]]>t[e[i]]&&Jh(e,n,i);const s=e[i],l=t[s];for(;;){do i++;while(t[e[i]]l);if(a=a-n?(Rf(e,t,i,r),Rf(e,t,n,a-1)):(Rf(e,t,n,a-1),Rf(e,t,i,r))}}function Jh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Rqe(e){return e[0]}function Oqe(e){return e[1]}const z9=1e-6;let dc=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const o=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${i}`:(Math.abs(this._x1-o)>z9||Math.abs(this._y1-i)>z9)&&(this._+="L"+o+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=o},${this._y1=i}`)}rect(t,n,r,o){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+o}h${-r}Z`}value(){return this._||null}};class Yk{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Aqe{constructor(t,[n,r,o,i]=[0,0,960,500]){if(!((o=+o)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=o,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:o}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let y=0,v=0,b=r.length,C,x;y1;)i-=2;for(let a=2;a4)for(let a=0;a0){if(n>=this.ymax)return null;(a=(this.ymax-n)/o)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}}const Fqe=2*Math.PI,sf=Math.pow;function Lqe(e){return e[0]}function Dqe(e){return e[1]}function jqe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function Nqe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class a3{static from(t,n=Lqe,r=Dqe,o){return new a3("length"in t?zqe(t,n,r,o):Float64Array.from(Bqe(t,n,r,o)))}constructor(t){this._delaunator=new wb(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&jqe(t)){this.collinear=Int32Array.from({length:n.length/2},(p,y)=>y).sort((p,y)=>n[2*p]-n[2*y]||n[2*p+1]-n[2*y+1]);const l=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*l],n[2*l+1],n[2*u],n[2*u+1]],f=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let p=0,y=n.length/2;p0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],this.triangles[1]=o[1],this.triangles[2]=o[1],a[o[0]]=1,o.length===2&&(a[o[1]]=0))}voronoi(t){return new Aqe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:o,halfedges:i,triangles:a,collinear:s}=this;if(s){const f=s.indexOf(t);f>0&&(yield s[f-1]),f=0&&i!==r&&i!==o;)r=i;return i}_step(t,n,r){const{inedges:o,hull:i,_hullIndex:a,halfedges:s,triangles:l,points:u}=this;if(o[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,f=sf(n-u[t*2],2)+sf(r-u[t*2+1],2);const p=o[t];let y=p;do{let v=l[y];const b=sf(n-u[v*2],2)+sf(r-u[v*2+1],2);if(b-1?re.filter(function(ge){return ge!==ne}):[].concat(re,[ne])})},[]),se=function(ne){var re=ne.series,ge=ne.getPointColor,xe=ne.getPointBorderColor,fe=ne.formatX,Se=ne.formatY;return m.useMemo(function(){return re.reduce(function(de,ie){return[].concat(de,ie.data.filter(function(Pe){return Pe.position.x!==null&&Pe.position.y!==null}).map(function(Pe,$e){var me={id:ie.id+"."+$e,index:de.length+$e,serieId:ie.id,serieColor:ie.color,x:Pe.position.x,y:Pe.position.y};return me.color=ge(ie),me.borderColor=xe(me),me.data=Zr({},Pe.data,{xFormatted:fe(Pe.data.x),yFormatted:Se(Pe.data.y)}),me}))},[])},[re,ge,xe,fe,Se])}({series:Z,getPointColor:E,getPointBorderColor:A,formatX:k,formatY:M}),Q=eKe({enableSlices:T,points:se,width:l,height:u});return{legendData:U,toggleSerie:Y,lineGenerator:Zqe({curve:y}),areaGenerator:Jqe({curve:y,yScale:B,areaBaselineValue:b}),getColor:I,series:Z,xScale:H,yScale:B,slices:Q,points:se}},bG=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,o=e.fill,i=e.path,a=To(),s=a.animate,l=a.config,u=mT(i),c=xs({color:r,config:l,immediate:!s});return g.jsx(In.path,{d:u,fill:o||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};bG.propTypes={areaBlendMode:gT.isRequired,areaOpacity:R.number.isRequired,color:R.string,fill:R.string,path:R.string.isRequired};var xG=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,o=e.lines.slice(0).reverse();return g.jsx("g",{children:o.map(function(i){return g.jsx(bG,Zr({path:t(i.data.map(function(a){return a.position}))},Zr({areaOpacity:n,areaBlendMode:r},i)),i.id)})})};xG.propTypes={areaGenerator:R.func.isRequired,areaOpacity:R.number.isRequired,areaBlendMode:gT.isRequired,lines:R.arrayOf(R.object).isRequired};var tKe=m.memo(xG),wG=function(e){var t=e.lineGenerator,n=e.points,r=e.color,o=e.thickness,i=m.useMemo(function(){return t(n)},[t,n]),a=mT(i);return g.jsx(In.path,{d:a,fill:"none",strokeWidth:o,stroke:r})};wG.propTypes={points:R.arrayOf(R.shape({x:R.oneOfType([R.string,R.number]),y:R.oneOfType([R.string,R.number])})),lineGenerator:R.func.isRequired,color:R.string.isRequired,thickness:R.number.isRequired};var nKe=m.memo(wG),CG=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(o){var i=o.id,a=o.data,s=o.color;return g.jsx(nKe,{id:i,points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},i)})};CG.propTypes={lines:R.arrayOf(R.shape({id:R.oneOfType([R.string,R.number]).isRequired,color:R.string.isRequired,data:R.arrayOf(R.shape({data:R.shape({x:R.oneOfType([R.string,R.number,R.instanceOf(Date)]),y:R.oneOfType([R.string,R.number,R.instanceOf(Date)])}).isRequired,position:R.shape({x:R.number,y:R.number}).isRequired})).isRequired})).isRequired,lineWidth:R.number.isRequired,lineGenerator:R.func.isRequired};var rKe=m.memo(CG),SG=function(e){var t=e.slice,n=e.axis,r=e.debug,o=e.tooltip,i=e.isCurrent,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.onClick,f=zp(),p=f.showTooltipFromEvent,y=f.hideTooltip,v=m.useCallback(function(w){p(m.createElement(o,{slice:t,axis:n}),w,"right"),a(t),s&&s(t,w)},[p,o,t,s]),b=m.useCallback(function(w){p(m.createElement(o,{slice:t,axis:n}),w,"right"),l&&l(t,w)},[p,o,t,l]),C=m.useCallback(function(w){y(),a(null),u&&u(t,w)},[y,t,u]),x=m.useCallback(function(w){c&&c(t,w)},[t,c]);return g.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:r?1:0,strokeOpacity:.75,fill:"red",fillOpacity:i&&r?.35:0,onMouseEnter:v,onMouseMove:b,onMouseLeave:C,onClick:x,"data-testid":"slice-"+t.id})};SG.propTypes={slice:R.object.isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]),isCurrent:R.bool.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var oKe=m.memo(SG),$G=function(e){var t=e.slices,n=e.axis,r=e.debug,o=e.height,i=e.tooltip,a=e.current,s=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.onClick;return t.map(function(p){return g.jsx(oKe,{slice:p,axis:n,debug:r,height:o,tooltip:i,setCurrent:s,isCurrent:a!==null&&a.id===p.id,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f},p.id)})};$G.propTypes={slices:R.arrayOf(R.shape({id:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,x:R.number.isRequired,y:R.number.isRequired,points:R.arrayOf(R.object).isRequired})).isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]).isRequired,current:R.object,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var iKe=m.memo($G),_G=function(e){var t=e.points,n=e.symbol,r=e.size,o=e.borderWidth,i=e.enableLabel,a=e.label,s=e.labelYOffset,l=On(),u=VOe(a),c=t.slice(0).reverse().map(function(f){return{id:f.id,x:f.x,y:f.y,datum:f.data,fill:f.color,stroke:f.borderColor,label:i?u(f.data):null}});return g.jsx("g",{children:c.map(function(f){return g.jsx(BOe,{x:f.x,y:f.y,datum:f.datum,symbol:n,size:r,color:f.fill,borderWidth:o,borderColor:f.stroke,label:f.label,labelYOffset:s,theme:l},f.id)})})};_G.propTypes={points:R.arrayOf(R.object),symbol:R.func,size:R.number.isRequired,color:R.func.isRequired,borderWidth:R.number.isRequired,borderColor:R.func.isRequired,enableLabel:R.bool.isRequired,label:R.oneOfType([R.string,R.func]).isRequired,labelYOffset:R.number};var aKe=m.memo(_G),kG=function(e){var t=e.points,n=e.width,r=e.height,o=e.margin,i=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,u=e.onClick,c=e.tooltip,f=e.debug,p=zp(),y=p.showTooltipAt,v=p.hideTooltip,b=m.useCallback(function(S,$){y(m.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),a&&a(S,$)},[i,y,c,a,o]),C=m.useCallback(function(S,$){y(m.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),s&&s(S,$)},[i,y,c,s]),x=m.useCallback(function(S,$){v(),i(null),l&&l(S,$)},[v,i,l]),w=m.useCallback(function(S,$){u&&u(S,$)},[u]);return g.jsx(Vqe,{nodes:t,width:n,height:r,onMouseEnter:b,onMouseMove:C,onMouseLeave:x,onClick:w,debug:f})};kG.propTypes={points:R.arrayOf(R.object).isRequired,width:R.number.isRequired,height:R.number.isRequired,margin:R.object.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func,tooltip:R.oneOfType([R.func,R.object]).isRequired,debug:R.bool.isRequired};var sKe=m.memo(kG),Xk=function(e){var t=e.data,n=e.xScale,r=e.xFormat,o=e.yScale,i=e.yFormat,a=e.layers,s=e.curve,l=e.areaBaselineValue,u=e.colors,c=e.margin,f=e.width,p=e.height,y=e.axisTop,v=e.axisRight,b=e.axisBottom,C=e.axisLeft,x=e.enableGridX,w=e.enableGridY,S=e.gridXValues,$=e.gridYValues,T=e.lineWidth,k=e.enableArea,M=e.areaOpacity,I=e.areaBlendMode,N=e.enablePoints,E=e.pointSymbol,A=e.pointSize,z=e.pointColor,L=e.pointBorderWidth,O=e.pointBorderColor,D=e.enablePointLabel,H=e.pointLabel,B=e.pointLabelYOffset,j=e.defs,W=e.fill,U=e.markers,Z=e.legends,Y=e.isInteractive,se=e.useMesh,Q=e.debugMesh,ne=e.onMouseEnter,re=e.onMouseMove,ge=e.onMouseLeave,xe=e.onClick,fe=e.tooltip,Se=e.enableSlices,de=e.debugSlices,ie=e.sliceTooltip,Pe=e.enableCrosshair,$e=e.crosshairType,me=e.role,ue=x0(f,p,c),ce=ue.margin,Te=ue.innerWidth,Le=ue.innerHeight,Re=ue.outerWidth,Oe=ue.outerHeight,K=yG({data:t,xScale:n,xFormat:r,yScale:o,yFormat:i,width:Te,height:Le,colors:u,curve:s,areaBaselineValue:l,pointColor:z,pointBorderColor:O,enableSlices:Se}),ee=K.legendData,pe=K.toggleSerie,ye=K.lineGenerator,De=K.areaGenerator,Ae=K.series,Ee=K.xScale,Ce=K.yScale,Qe=K.slices,Ct=K.points,et=On(),Be=ms(z,et),te=ms(O,et),X=m.useState(null),oe=X[0],Ie=X[1],Ve=m.useState(null),Ke=Ve[0],at=Ve[1],Je={grid:g.jsx(dG,{theme:et,width:Te,height:Le,xScale:x?Ee:null,yScale:w?Ce:null,xValues:S,yValues:$},"grid"),markers:g.jsx(LW,{markers:U,width:Te,height:Le,xScale:Ee,yScale:Ce,theme:et},"markers"),axes:g.jsx(cG,{xScale:Ee,yScale:Ce,width:Te,height:Le,theme:et,top:y,right:v,bottom:b,left:C},"axes"),areas:null,lines:g.jsx(rKe,{lines:Ae,lineGenerator:ye,lineWidth:T},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:Z.map(function(_t,ht){return g.jsx(wT,Zr({},_t,{containerWidth:Te,containerHeight:Le,data:_t.data||ee,theme:et,toggleSerie:_t.toggleSerie?pe:void 0}),"legend."+ht)})},nt=vT(j,Ae,W);return k&&(Je.areas=g.jsx(tKe,{areaGenerator:De,areaOpacity:M,areaBlendMode:I,lines:Ae},"areas")),Y&&Se!==!1&&(Je.slices=g.jsx(iKe,{slices:Qe,axis:Se,debug:de,height:Le,tooltip:ie,current:Ke,setCurrent:at,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe},"slices")),N&&(Je.points=g.jsx(aKe,{points:Ct,symbol:E,size:A,color:Be,borderWidth:L,borderColor:te,enableLabel:D,label:H,labelYOffset:B},"points")),Y&&Pe&&(oe!==null&&(Je.crosshair=g.jsx(ok,{width:Te,height:Le,x:oe.x,y:oe.y,type:$e},"crosshair")),Ke!==null&&(Je.crosshair=g.jsx(ok,{width:Te,height:Le,x:Ke.x,y:Ke.y,type:Se},"crosshair"))),Y&&se&&Se===!1&&(Je.mesh=g.jsx(sKe,{points:Ct,width:Te,height:Le,margin:ce,current:oe,setCurrent:Ie,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe,tooltip:fe,debug:Q},"mesh")),g.jsx(t2,{defs:nt,width:Re,height:Oe,margin:ce,role:me,children:a.map(function(_t,ht){return typeof _t=="function"?g.jsx(m.Fragment,{children:_t(Zr({},e,{innerWidth:Te,innerHeight:Le,series:Ae,slices:Qe,points:Ct,xScale:Ee,yScale:Ce,lineGenerator:ye,areaGenerator:De,currentPoint:oe,setCurrentPoint:Ie,currentSlice:Ke,setCurrentSlice:at}))},ht):Je[_t]})})};Xk.propTypes=Yqe,Xk.defaultProps=Bs;var lKe=DW(Xk),T0=function(e){return g.jsx(eh,{children:function(t){var n=t.width,r=t.height;return g.jsx(lKe,Zr({width:n,height:r},e))}})},Qk=function(e){var t=e.width,n=e.height,r=e.margin,o=e.pixelRatio,i=e.data,a=e.xScale,s=e.xFormat,l=e.yScale,u=e.yFormat,c=e.curve,f=e.layers,p=e.colors,y=e.lineWidth,v=e.enableArea,b=e.areaBaselineValue,C=e.areaOpacity,x=e.enablePoints,w=e.pointSize,S=e.pointColor,$=e.pointBorderWidth,T=e.pointBorderColor,k=e.enableGridX,M=e.gridXValues,I=e.enableGridY,N=e.gridYValues,E=e.axisTop,A=e.axisRight,z=e.axisBottom,L=e.axisLeft,O=e.legends,D=e.isInteractive,H=e.debugMesh,B=e.onMouseLeave,j=e.onClick,W=e.tooltip,U=e.canvasRef,Z=m.useRef(null),Y=x0(t,n,r),se=Y.margin,Q=Y.innerWidth,ne=Y.innerHeight,re=Y.outerWidth,ge=Y.outerHeight,xe=On(),fe=m.useState(null),Se=fe[0],de=fe[1],ie=yG({data:i,xScale:a,xFormat:s,yScale:l,yFormat:u,width:Q,height:ne,colors:p,curve:c,areaBaselineValue:b,pointColor:S,pointBorderColor:T}),Pe=ie.lineGenerator,$e=ie.areaGenerator,me=ie.series,ue=ie.xScale,ce=ie.yScale,Te=ie.points,Le=pG({points:Te,width:Q,height:ne,debug:H}),Re=Le.delaunay,Oe=Le.voronoi;m.useEffect(function(){U&&(U.current=Z.current),Z.current.width=re*o,Z.current.height=ge*o;var Ce=Z.current.getContext("2d");Ce.scale(o,o),Ce.fillStyle=xe.background,Ce.fillRect(0,0,re,ge),Ce.translate(se.left,se.top),f.forEach(function(Qe){if(typeof Qe=="function"&&Qe({ctx:Ce,innerWidth:Q,innerHeight:ne,series:me,points:Te,xScale:ue,yScale:ce,lineWidth:y,lineGenerator:Pe,areaGenerator:$e,currentPoint:Se,setCurrentPoint:de}),Qe==="grid"&&xe.grid.line.strokeWidth>0&&(Ce.lineWidth=xe.grid.line.strokeWidth,Ce.strokeStyle=xe.grid.line.stroke,k&&xb(Ce,{width:Q,height:ne,scale:ue,axis:"x",values:M}),I&&xb(Ce,{width:Q,height:ne,scale:ce,axis:"y",values:N})),Qe==="axes"&&fG(Ce,{xScale:ue,yScale:ce,width:Q,height:ne,top:E,right:A,bottom:z,left:L,theme:xe}),Qe==="areas"&&v===!0&&(Ce.save(),Ce.globalAlpha=C,$e.context(Ce),me.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),$e(et.data.map(function(Be){return Be.position})),Ce.fill()}),Ce.restore()),Qe==="lines"&&(Pe.context(Ce),me.forEach(function(et){Ce.strokeStyle=et.color,Ce.lineWidth=y,Ce.beginPath(),Pe(et.data.map(function(Be){return Be.position})),Ce.stroke()})),Qe==="points"&&x===!0&&w>0&&Te.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),Ce.arc(et.x,et.y,w/2,0,2*Math.PI),Ce.fill(),$>0&&(Ce.strokeStyle=et.borderColor,Ce.lineWidth=$,Ce.stroke())}),Qe==="mesh"&&H===!0&&(Uqe(Ce,Oe),Se&&Gqe(Ce,Oe,Se.index)),Qe==="legends"){var Ct=me.map(function(et){return{id:et.id,label:et.id,color:et.color}}).reverse();O.forEach(function(et){QW(Ce,Zr({},et,{data:et.data||Ct,containerWidth:Q,containerHeight:ne,theme:xe}))})}})},[Z,re,ge,f,xe,Pe,me,ue,ce,k,M,I,N,E,A,z,L,O,Te,x,w,Se]);var K=m.useCallback(function(Ce){var Qe=Rm(Z.current,Ce),Ct=Qe[0],et=Qe[1];if(!NW(se.left,se.top,Q,ne,Ct,et))return null;var Be=Re.find(Ct-se.left,et-se.top);return Te[Be]},[Z,se,Q,ne,Re]),ee=zp(),pe=ee.showTooltipFromEvent,ye=ee.hideTooltip,De=m.useCallback(function(Ce){var Qe=K(Ce);de(Qe),Qe?pe(m.createElement(W,{point:Qe}),Ce):ye()},[K,de,pe,ye,W]),Ae=m.useCallback(function(Ce){ye(),de(null),Se&&B&&B(Se,Ce)},[ye,de,B]),Ee=m.useCallback(function(Ce){if(j){var Qe=K(Ce);Qe&&j(Qe,Ce)}},[K,j]);return g.jsx("canvas",{ref:Z,width:re*o,height:ge*o,style:{width:re,height:ge,cursor:D?"auto":"normal"},onMouseEnter:D?De:void 0,onMouseMove:D?De:void 0,onMouseLeave:D?Ae:void 0,onClick:D?Ee:void 0})};Qk.propTypes=Xqe,Qk.defaultProps=Qqe;var uKe=DW(Qk),cKe=m.forwardRef(function(e,t){return g.jsx(uKe,Zr({},e,{canvasRef:t}))});m.forwardRef(function(e,t){return g.jsx(eh,{children:function(n){var r=n.width,o=n.height;return g.jsx(cKe,Zr({width:r,height:o},e,{ref:t}))}})});const dKe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(T0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:900,stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"linear",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},enableGridX:!0,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},fKe=()=>g.jsx(mr,{title:"Bill Payment Trends",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(dKe,{data:UVe})}),height:500});function pKe(){return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Bills"}),g.jsx(Ze,{variant:"h6",children:"Stay on Top of Your Financial Obligations"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:12,children:g.jsx(KVe,{})}),g.jsx(Ft,{item:!0,xs:12,md:12,children:g.jsx(fKe,{})})]})]})})}const hKe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(T0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},enableGridX:!1,enableGridY:!1,theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},mKe=[{id:"Rent",color:"hsl(152, 70%, 50%)",data:[{x:"JAN",y:350},{x:"FEB",y:400},{x:"MAR",y:550},{x:"APR",y:500},{x:"MAY",y:410},{x:"JUN",y:430},{x:"JUL",y:510},{x:"AUG",y:460},{x:"SEP",y:640},{x:"OCT",y:690},{x:"NOV",y:450},{x:"DEC",y:480}]},{id:"Utilities",color:"hsl(30, 70%, 50%)",data:[{x:"JAN",y:600},{x:"FEB",y:550},{x:"MAR",y:400},{x:"APR",y:625},{x:"MAY",y:480},{x:"JUN",y:570},{x:"JUL",y:700},{x:"AUG",y:750},{x:"SEP",y:450},{x:"OCT",y:560},{x:"NOV",y:490},{x:"DEC",y:600}]},{id:"Internet",color:"hsl(201, 70%, 50%)",data:[{x:"JAN",y:630},{x:"FEB",y:690},{x:"MAR",y:700},{x:"APR",y:750},{x:"MAY",y:730},{x:"JUN",y:690},{x:"JUL",y:600},{x:"AUG",y:800},{x:"SEP",y:780},{x:"OCT",y:760},{x:"NOV",y:800},{x:"DEC",y:700}]},{id:"Phone",color:"hsl(203, 70%, 50%)",data:[{x:"JAN",y:776},{x:"FEB",y:615},{x:"MAR",y:790},{x:"APR",y:785},{x:"MAY",y:683},{x:"JUN",y:788},{x:"JUL",y:784},{x:"AUG",y:678},{x:"SEP",y:694},{x:"OCT",y:879},{x:"NOV",y:887},{x:"DEC",y:790}]},{id:"Other",color:"hsl(253, 70%, 50%)",data:[{x:"JAN",y:700},{x:"FEB",y:580},{x:"MAR",y:436},{x:"APR",y:440},{x:"MAY",y:510},{x:"JUN",y:490},{x:"JUL",y:460},{x:"AUG",y:500},{x:"SEP",y:480},{x:"OCT",y:510},{x:"NOV",y:530},{x:"DEC",y:650}]}],gKe=[{id:"Expenses",data:[{x:"JAN",y:1300},{x:"FEB",y:700},{x:"MAR",y:900},{x:"APR",y:1100},{x:"MAY",y:1e3},{x:"JUN",y:1900},{x:"JUL",y:1300},{x:"AUG",y:2100},{x:"SEP",y:1400},{x:"OCT",y:1200},{x:"NOV",y:2300},{x:"DEC",y:1800}]},{id:"Income",data:[{x:"JAN",y:5500},{x:"FEB",y:5300},{x:"MAR",y:5400},{x:"APR",y:5600},{x:"MAY",y:5700},{x:"JUN",y:4900},{x:"JUL",y:5100},{x:"AUG",y:5300},{x:"SEP",y:6e3},{x:"OCT",y:6500},{x:"NOV",y:6300},{x:"DEC",y:6100}]}],vKe=[{day:"Mon",rent:20,utilities:120,internet:15,phone:10,other:150},{day:"Tue",rent:40,utilities:90,internet:30,phone:40,other:120},{day:"Wed",rent:30,utilities:75,internet:35,phone:45,other:70},{day:"Thu",rent:60,utilities:50,internet:55,phone:25,other:60},{day:"Fri",rent:70,utilities:40,internet:20,phone:10,other:100},{day:"Sat",rent:60,utilities:50,internet:45,phone:65,other:80},{day:"Sun",rent:50,utilities:70,internet:50,phone:60,other:100}],yKe=[{category:"Groceries",budget:500,actual:400},{category:"Rent",budget:1e3,actual:950},{category:"Transportation",budget:200,actual:180},{category:"Entertainment",budget:300,actual:350},{category:"Healthcare",budget:150,actual:120},{category:"Utilities",budget:250,actual:200},{category:"Other Expenses",budget:400,actual:420}],bKe=()=>g.jsx(mr,{title:"Trend Analysis",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(hKe,{data:mKe})}),height:500});function xKe(e,t){for(var n=-1,r=e==null?0:e.length;++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r1),i}),cQe(e,pQe(e),n),r&&(n=sQe(n,hQe|mQe|gQe,dQe));for(var o=t.length;o--;)lQe(n,t[o]);return n}),yQe=vQe;const bQe=Or(yQe);function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t180?(C-=l,x-=l):x+=l,{points:[[f,p],[t,n],[x,n]],text:[C,n-c],angle:y+90}},OG=function(e){var t=e.data,n=e.annotations,r=e.getPosition,o=e.getDimensions;return m.useMemo(function(){return CQe({data:t,annotations:n,getPosition:r,getDimensions:o})},[t,n,r,o])},$Qe=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return vs({},n,{computed:RG(vs({},n))})})},[t])},_Qe=function(e){return m.useMemo(function(){return RG(e)},[e])},kQe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=On(),a=To(),s=a.animate,l=a.config,u=xs({x:n,y:r,config:l,immediate:!s});return typeof o=="function"?m.createElement(o,{x:n,y:r,datum:t}):g.jsxs(g.Fragment,{children:[i.annotations.text.outlineWidth>0&&g.jsx(In.text,{x:u.x,y:u.y,style:vs({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:2*i.annotations.text.outlineWidth,stroke:i.annotations.text.outlineColor}),children:o}),g.jsx(In.text,{x:u.x,y:u.y,style:bQe(i.annotations.text,["outlineWidth","outlineColor"]),children:o})]})},Y9=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,o=On(),i=m.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(u,c){return u+" L"+c[0]+","+c[1]},"M"+l[0]+","+l[1])},[t]),a=mT(i);if(r&&o.annotations.link.outlineWidth<=0)return null;var s=vs({},o.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=o.annotations.link.strokeWidth+2*o.annotations.link.outlineWidth,s.stroke=o.annotations.link.outlineColor,s.opacity=o.annotations.link.outlineOpacity),g.jsx(In.path,{fill:"none",d:a,style:s})},PQe=function(e){var t=e.x,n=e.y,r=e.size,o=On(),i=To(),a=i.animate,s=i.config,l=xs({x:t,y:n,radius:r/2,config:s,immediate:!a});return g.jsxs(g.Fragment,{children:[o.annotations.outline.outlineWidth>0&&g.jsx(In.circle,{cx:l.x,cy:l.y,r:l.radius,style:vs({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),g.jsx(In.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.outline})]})},MQe=function(e){var t=e.x,n=e.y,r=e.size,o=r===void 0?Zk.dotSize:r,i=On(),a=To(),s=a.animate,l=a.config,u=xs({x:t,y:n,radius:o/2,config:l,immediate:!s});return g.jsxs(g.Fragment,{children:[i.annotations.outline.outlineWidth>0&&g.jsx(In.circle,{cx:u.x,cy:u.y,r:u.radius,style:vs({},i.annotations.outline,{fill:"none",strokeWidth:2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),g.jsx(In.circle,{cx:u.x,cy:u.y,r:u.radius,style:i.annotations.symbol})]})},TQe=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.borderRadius,a=i===void 0?6:i,s=On(),l=To(),u=l.animate,c=l.config,f=xs({x:t-r/2,y:n-o/2,width:r,height:o,config:c,immediate:!u});return g.jsxs(g.Fragment,{children:[s.annotations.outline.outlineWidth>0&&g.jsx(In.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:vs({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),g.jsx(In.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:s.annotations.outline})]})},EQe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=_Qe(e);if(!xQe(o))throw new Error("note should be a valid react element");return g.jsxs(g.Fragment,{children:[g.jsx(Y9,{points:i.points,isOutline:!0}),Ug(e)&&g.jsx(PQe,{x:n,y:r,size:e.size}),Jk(e)&&g.jsx(MQe,{x:n,y:r,size:e.size}),Gg(e)&&g.jsx(TQe,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),g.jsx(Y9,{points:i.points}),g.jsx(kQe,{datum:t,x:i.text[0],y:i.text[1],note:o})]})},X9=function(e,t){t.forEach(function(n,r){var o=n[0],i=n[1];r===0?e.moveTo(o,i):e.lineTo(o,i)})},IQe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(o){if(!wQe(o.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),X9(e,o.computed.points),e.stroke(),e.lineCap="butt"),Ug(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Jk(o)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Gg(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),X9(e,o.computed.points),e.stroke(),Ug(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Jk(o)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.fill()),Gg(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),typeof o.note=="function"?o.note(e,{datum:o.datum,x:o.computed.text[0],y:o.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(o.note,o.computed.text[0],o.computed.text[1]),e.lineJoin="miter"),e.fillText(o.note,o.computed.text[0],o.computed.text[1]))}),e.restore())};function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var Q9,RQe=function(e){var t=e.bars,n=e.annotations,r=OG({data:t,annotations:n,getPosition:function(o){return{x:o.x+o.width/2,y:o.y+o.height/2}},getDimensions:function(o){var i=o.height,a=o.width;return{width:a,height:i,size:Math.max(a,i)}}});return g.jsx(g.Fragment,{children:r.map(function(o,i){return g.jsx(EQe,An({},o),i)})})},OQe=function(e){var t=e.width,n=e.height,r=e.legends,o=e.toggleSerie;return g.jsx(g.Fragment,{children:r.map(function(i,a){var s,l=i[0],u=i[1];return g.jsx(wT,An({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:u,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?o:void 0}),a)})})},AQe=["data"],FQe=function(e){var t,n=e.bar,r=n.data,o=ih(n,AQe),i=e.style,a=i.borderColor,s=i.color,l=i.height,u=i.labelColor,c=i.labelOpacity,f=i.labelX,p=i.labelY,y=i.transform,v=i.width,b=e.borderRadius,C=e.borderWidth,x=e.label,w=e.shouldRenderLabel,S=e.isInteractive,$=e.onClick,T=e.onMouseEnter,k=e.onMouseLeave,M=e.tooltip,I=e.isFocusable,N=e.ariaLabel,E=e.ariaLabelledBy,A=e.ariaDescribedBy,z=On(),L=zp(),O=L.showTooltipFromEvent,D=L.showTooltipAt,H=L.hideTooltip,B=m.useMemo(function(){return function(){return m.createElement(M,An({},o,r))}},[M,o,r]),j=m.useCallback(function(Q){$==null||$(An({color:o.color},r),Q)},[o,r,$]),W=m.useCallback(function(Q){return O(B(),Q)},[O,B]),U=m.useCallback(function(Q){T==null||T(r,Q),O(B(),Q)},[r,T,O,B]),Z=m.useCallback(function(Q){k==null||k(r,Q),H()},[r,H,k]),Y=m.useCallback(function(){D(B(),[o.absX+o.width/2,o.absY])},[D,B,o]),se=m.useCallback(function(){H()},[H]);return g.jsxs(In.g,{transform:y,children:[g.jsx(In.rect,{width:fu(v,function(Q){return Math.max(Q,0)}),height:fu(l,function(Q){return Math.max(Q,0)}),rx:b,ry:b,fill:(t=r.fill)!=null?t:s,strokeWidth:C,stroke:a,focusable:I,tabIndex:I?0:void 0,"aria-label":N?N(r):void 0,"aria-labelledby":E?E(r):void 0,"aria-describedby":A?A(r):void 0,onMouseEnter:S?U:void 0,onMouseMove:S?W:void 0,onMouseLeave:S?Z:void 0,onClick:S?j:void 0,onFocus:S&&I?Y:void 0,onBlur:S&&I?se:void 0}),w&&g.jsx(In.text,{x:f,y:p,textAnchor:"middle",dominantBaseline:"central",fillOpacity:c,style:An({},z.labels.text,{pointerEvents:"none",fill:u}),children:x})]})},LQe=["color","label"],DQe=function(e){var t=e.color,n=e.label,r=ih(e,LQe);return g.jsx(y5,{id:n,value:r.formattedValue,enableChip:!0,color:t})},nr={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:DQe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]},pr=An({},nr,{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:FQe,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Fo=An({},nr,{layers:["grid","axes","bars","legends","annotations"],pixelRatio:typeof window<"u"&&(Q9=window.devicePixelRatio)!=null?Q9:1}),AG=function(e,t,n,r,o,i){return Vg(r,{all:e.map(t),min:0,max:0},o,i).padding(n)},FG=function(e,t){return e.map(function(n){return An({},t.reduce(function(r,o){return r[o]=null,r},{}),n)})},S2=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},$2=function(e){return[e,Number(e)]},jQe=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],s3=function(e,t){return e>t},LG=function(e,t){return e0?r==="vertical"?zQe.apply(void 0,W):BQe.apply(void 0,W):[]}},WQe=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],VQe=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},UQe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return u.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=u(i(w.data)))!=null?C:0,$=((x=function(E){return c(E[n?0:1])}(w))!=null?x:0)+.5*s,T=function(E,A){var z;return((z=c(E[n?1:0]))!=null?z:0)-A}(w,$)-s,k=$2(w.data[y.key]),M=k[0],I=k[1],N={id:y.key,value:M===null?M:I,formattedValue:r(I),hidden:!1,index:b,indexValue:v,data:S2(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:S,y:$,absX:f.left+S,absY:f.top+$,width:t,height:T,color:o(N),label:a(N)})})}),p},GQe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return c.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=c(i(w.data)))!=null?C:0,$=((x=function(E){return u(E[n?1:0])}(w))!=null?x:0)+.5*s,T=function(E,A){var z;return((z=u(E[n?0:1]))!=null?z:0)-A}(w,$)-s,k=$2(w.data[y.key]),M=k[0],I=k[1],N={id:y.key,value:M===null?M:I,formattedValue:r(I),hidden:!1,index:b,indexValue:v,data:S2(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:$,y:S,absX:f.left+$,absY:f.top+S,width:T,height:t,color:o(N),label:a(N)})})}),p},qQe=function(e){var t,n=e.data,r=e.layout,o=e.minValue,i=e.maxValue,a=e.reverse,s=e.width,l=e.height,u=e.padding,c=u===void 0?0:u,f=e.valueScale,p=e.indexScale,y=e.hiddenIds,v=y===void 0?[]:y,b=ih(e,WQe),C=b.keys.filter(function(j){return!v.includes(j)}),x=CEe().keys(C).offset(uW)(FG(n,C)),w=r==="vertical"?["y","x",s]:["x","y",l],S=w[0],$=w[1],T=w[2],k=AG(n,b.getIndex,c,p,T,$),M=An({max:i,min:o,reverse:a},f),I=(t=VQe(x),f.type==="log"?t.filter(function(j){return j!==0}):t),N=Math.min.apply(Math,I),E=Math.max.apply(Math,I),A=Vg(M,{all:I,min:N,max:E},S==="x"?s:l,S),z=r==="vertical"?[k,A]:[A,k],L=z[0],O=z[1],D=b.innerPadding>0?b.innerPadding:0,H=k.bandwidth(),B=[An({},b,{innerPadding:D,stackedData:x,xScale:L,yScale:O}),H,M.reverse];return{xScale:L,yScale:O,bars:H>0?r==="vertical"?UQe.apply(void 0,B):GQe.apply(void 0,B):[]}},KQe=function(e){var t=e.bars,n=e.direction,r=e.from,o=e.groupMode,i=e.layout,a=e.legendLabel,s=e.reverse,l=jW(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(u,c,f){var p=yi.uniqBy(u.map(function(y){var v,b;return{id:(v=y.data.indexValue)!=null?v:"",label:f(y.data),hidden:y.data.hidden,color:(b=y.color)!=null?b:"#000"}}),function(y){return y.id});return c==="horizontal"&&p.reverse(),p}(t,i,l):function(u,c,f,p,y,v){var b=yi.uniqBy(u.map(function(C){var x;return{id:C.data.id,label:v(C.data),hidden:C.data.hidden,color:(x=C.color)!=null?x:"#000"}}),function(C){return C.id});return(c==="vertical"&&p==="stacked"&&f==="column"&&y!==!0||c==="horizontal"&&p==="stacked"&&y===!0)&&b.reverse(),b}(t,i,n,o,s,l)},jG=function(e){var t=e.indexBy,n=t===void 0?nr.indexBy:t,r=e.keys,o=r===void 0?nr.keys:r,i=e.label,a=i===void 0?nr.label:i,s=e.tooltipLabel,l=s===void 0?nr.tooltipLabel:s,u=e.valueFormat,c=e.colors,f=c===void 0?nr.colors:c,p=e.colorBy,y=p===void 0?nr.colorBy:p,v=e.borderColor,b=v===void 0?nr.borderColor:v,C=e.labelTextColor,x=C===void 0?nr.labelTextColor:C,w=e.groupMode,S=w===void 0?nr.groupMode:w,$=e.layout,T=$===void 0?nr.layout:$,k=e.reverse,M=k===void 0?nr.reverse:k,I=e.data,N=e.minValue,E=N===void 0?nr.minValue:N,A=e.maxValue,z=A===void 0?nr.maxValue:A,L=e.margin,O=e.width,D=e.height,H=e.padding,B=H===void 0?nr.padding:H,j=e.innerPadding,W=j===void 0?nr.innerPadding:j,U=e.valueScale,Z=U===void 0?nr.valueScale:U,Y=e.indexScale,se=Y===void 0?nr.indexScale:Y,Q=e.initialHiddenIds,ne=Q===void 0?nr.initialHiddenIds:Q,re=e.enableLabel,ge=re===void 0?nr.enableLabel:re,xe=e.labelSkipWidth,fe=xe===void 0?nr.labelSkipWidth:xe,Se=e.labelSkipHeight,de=Se===void 0?nr.labelSkipHeight:Se,ie=e.legends,Pe=ie===void 0?nr.legends:ie,$e=e.legendLabel,me=m.useState(ne??[]),ue=me[0],ce=me[1],Te=m.useCallback(function(X){ce(function(oe){return oe.indexOf(X)>-1?oe.filter(function(Ie){return Ie!==X}):[].concat(oe,[X])})},[]),Le=_c(n),Re=_c(a),Oe=_c(l),K=Og(u),ee=On(),pe=bT(f,y),ye=ms(b,ee),De=ms(x,ee),Ae=(S==="grouped"?HQe:qQe)({layout:T,reverse:M,data:I,getIndex:Le,keys:o,minValue:E,maxValue:z,width:O,height:D,getColor:pe,padding:B,innerPadding:W,valueScale:Z,indexScale:se,hiddenIds:ue,formatValue:K,getTooltipLabel:Oe,margin:L}),Ee=Ae.bars,Ce=Ae.xScale,Qe=Ae.yScale,Ct=m.useMemo(function(){return Ee.filter(function(X){return X.data.value!==null}).map(function(X,oe){return An({},X,{index:oe})})},[Ee]),et=m.useCallback(function(X){var oe=X.width,Ie=X.height;return!!ge&&!(fe>0&&oe0&&Ie0&&(ut.strokeStyle=Fe,ut.lineWidth=Tt),ut.beginPath(),rt>0){var gt=Math.min(rt,tt);ut.moveTo(_e+gt,we),ut.lineTo(_e+Ut-gt,we),ut.quadraticCurveTo(_e+Ut,we,_e+Ut,we+gt),ut.lineTo(_e+Ut,we+tt-gt),ut.quadraticCurveTo(_e+Ut,we+tt,_e+Ut-gt,we+tt),ut.lineTo(_e+gt,we+tt),ut.quadraticCurveTo(_e,we+tt,_e,we+tt-gt),ut.lineTo(_e,we+gt),ut.quadraticCurveTo(_e,we,_e+gt,we),ut.closePath()}else ut.rect(_e,we,Ut,tt);ut.fill(),Tt>0&&ut.stroke(),ct&&(ut.textBaseline="middle",ut.textAlign="center",ut.fillStyle=_n,ut.fillText(en,_e+Ut/2,we+tt/2))}:O,H=e.enableLabel,B=H===void 0?Fo.enableLabel:H,j=e.label,W=e.labelSkipWidth,U=W===void 0?Fo.labelSkipWidth:W,Z=e.labelSkipHeight,Y=Z===void 0?Fo.labelSkipHeight:Z,se=e.labelTextColor,Q=e.colorBy,ne=e.colors,re=e.borderRadius,ge=re===void 0?Fo.borderRadius:re,xe=e.borderWidth,fe=xe===void 0?Fo.borderWidth:xe,Se=e.borderColor,de=e.annotations,ie=de===void 0?Fo.annotations:de,Pe=e.legendLabel,$e=e.tooltipLabel,me=e.valueFormat,ue=e.isInteractive,ce=ue===void 0?Fo.isInteractive:ue,Te=e.tooltip,Le=Te===void 0?Fo.tooltip:Te,Re=e.onClick,Oe=e.onMouseEnter,K=e.onMouseLeave,ee=e.legends,pe=e.pixelRatio,ye=pe===void 0?Fo.pixelRatio:pe,De=e.canvasRef,Ae=m.useRef(null),Ee=On(),Ce=x0(i,a,o),Qe=Ce.margin,Ct=Ce.innerWidth,et=Ce.innerHeight,Be=Ce.outerWidth,te=Ce.outerHeight,X=jG({indexBy:n,label:j,tooltipLabel:$e,valueFormat:me,colors:ne,colorBy:Q,borderColor:Se,labelTextColor:se,groupMode:s,layout:l,reverse:u,data:t,keys:r,minValue:c,maxValue:f,margin:Qe,width:Ct,height:et,padding:v,innerPadding:b,valueScale:p,indexScale:y,enableLabel:B,labelSkipWidth:U,labelSkipHeight:Y,legends:ee,legendLabel:Pe}),oe=X.bars,Ie=X.barsWithValue,Ve=X.xScale,Ke=X.yScale,at=X.getLabel,Je=X.getTooltipLabel,nt=X.getBorderColor,_t=X.getLabelColor,ht=X.shouldRenderBarLabel,lt=X.legendsWithData,Rt=zp(),jt=Rt.showTooltipFromEvent,dn=Rt.hideTooltip,hn=$Qe({annotations:OG({data:oe,annotations:ie,getPosition:function(ut){return{x:ut.x,y:ut.y}},getDimensions:function(ut){var mt=ut.width,Ot=ut.height;return{width:mt,height:Ot,size:Math.max(mt,Ot)}}})}),Pt=m.useMemo(function(){return{borderRadius:ge,borderWidth:fe,isInteractive:ce,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:Y,margin:Qe,width:i,height:a,innerWidth:Ct,innerHeight:et,bars:oe,legendData:lt,enableLabel:B,xScale:Ve,yScale:Ke,tooltip:Le,getTooltipLabel:Je,onClick:Re,onMouseEnter:Oe,onMouseLeave:K}},[ge,fe,ce,U,Y,Qe,i,a,Ct,et,oe,lt,B,Ve,Ke,Le,Je,Re,Oe,K]);m.useEffect(function(){var ut,mt=(ut=Ae.current)==null?void 0:ut.getContext("2d");Ae.current&&mt&&(Ae.current.width=Be*ye,Ae.current.height=te*ye,mt.scale(ye,ye),mt.fillStyle=Ee.background,mt.fillRect(0,0,Be,te),mt.translate(Qe.left,Qe.top),L.forEach(function(Ot){Ot==="grid"?typeof Ee.grid.line.strokeWidth=="number"&&Ee.grid.line.strokeWidth>0&&(mt.lineWidth=Ee.grid.line.strokeWidth,mt.strokeStyle=Ee.grid.line.stroke,M&&xb(mt,{width:i,height:a,scale:Ve,axis:"x",values:E}),N&&xb(mt,{width:i,height:a,scale:Ke,axis:"y",values:A})):Ot==="axes"?fG(mt,{xScale:Ve,yScale:Ke,width:Ct,height:et,top:C,right:x,bottom:S,left:T,theme:Ee}):Ot==="bars"?Ie.forEach(function(At){D(mt,{bar:At,borderColor:nt(At),borderRadius:ge,borderWidth:fe,label:at(At.data),labelColor:_t(At),shouldRenderLabel:ht(At)})}):Ot==="legends"?lt.forEach(function(At){var tt=At[0],Ut=At[1];QW(mt,An({},tt,{data:Ut,containerWidth:Ct,containerHeight:et,theme:Ee}))}):Ot==="annotations"?IQe(mt,{annotations:hn,theme:Ee}):typeof Ot=="function"&&Ot(mt,Pt)}),mt.save())},[S,T,x,C,Ie,ge,fe,hn,M,N,nt,at,_t,E,A,s,a,et,Ct,Pt,L,l,lt,Qe.left,Qe.top,te,Be,ye,D,Ve,Ke,u,ht,Ee,i]);var zt=m.useCallback(function(ut){if(oe&&Ae.current){var mt=Rm(Ae.current,ut),Ot=mt[0],At=mt[1],tt=h$(oe,Qe,Ot,At);tt!==void 0?(jt(m.createElement(Le,An({},tt.data,{color:tt.color,label:tt.label,value:Number(tt.data.value)})),ut),ut.type==="mouseenter"&&(Oe==null||Oe(tt.data,ut))):dn()}},[dn,Qe,Oe,oe,jt,Le]),un=m.useCallback(function(ut){if(oe&&Ae.current){dn();var mt=Rm(Ae.current,ut),Ot=mt[0],At=mt[1],tt=h$(oe,Qe,Ot,At);tt&&(K==null||K(tt.data,ut))}},[dn,Qe,K,oe]),cn=m.useCallback(function(ut){if(oe&&Ae.current){var mt=Rm(Ae.current,ut),Ot=mt[0],At=mt[1],tt=h$(oe,Qe,Ot,At);tt!==void 0&&(Re==null||Re(An({},tt.data,{color:tt.color}),ut))}},[Qe,Re,oe]);return g.jsx("canvas",{ref:function(ut){Ae.current=ut,De&&"current"in De&&(De.current=ut)},width:Be*ye,height:te*ye,style:{width:Be,height:te,cursor:ce?"auto":"normal"},onMouseEnter:ce?zt:void 0,onMouseMove:ce?zt:void 0,onMouseLeave:ce?un:void 0,onClick:ce?cn:void 0})},eZe=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,o=e.theme,i=ih(e,ZQe);return g.jsx(w0,{isInteractive:n,renderWrapper:r,theme:o,animate:!1,children:g.jsx(JQe,An({},i,{canvasRef:t}))})}),ah=function(e){return g.jsx(eh,{children:function(t){var n=t.width,r=t.height;return g.jsx(QQe,An({width:n,height:r},e))}})};m.forwardRef(function(e,t){return g.jsx(eh,{children:function(n){var r=n.width,o=n.height;return g.jsx(eZe,An({width:r,height:o},e,{ref:t}))}})});const tZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ah,{data:e,keys:["rent","utilities","internet","phone","other"],indexBy:"day",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"stacked",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Weeks",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},NG=()=>g.jsx(mr,{title:"Spending Breakdown",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(tZe,{data:vKe})}),height:500}),nZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ah,{data:e,keys:["budget","actual"],indexBy:"category",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"grouped",layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},rZe=()=>g.jsx(mr,{title:"Budget Comparison",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(nZe,{data:yKe})}),height:500}),oZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(T0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"monotoneX",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{dots:{text:{fill:`${n.primary[100]}`}},axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},enableGridX:!1,enableGridY:!1,enableArea:!0,colors:[`${n.redAccent[600]}`,`${n.greenAccent[600]}`],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function zG(){return g.jsx(mr,{title:"Financial Overview",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(oZe,{data:gKe})}),height:500})}const Z9=()=>g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Reports & Analysis"}),g.jsx(Ze,{variant:"h6",children:"Gain insights into your financial health"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(bKe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(zG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(NG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(rZe,{})})]})]})}),iZe=[{id:1,creditor:"ABC Bank",debtType:"Credit Card",balance:"1000",interestRate:"18.5",minimumPayment:"50",dueDate:"2023.09.30",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"45%"},{id:2,creditor:"XYZ Loan",debtType:"Personal Loan",balance:"5000",interestRate:"12.5",minimumPayment:"200",dueDate:"2024.05.15",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"Check Payment",paymentProgress:"20%"},{id:3,creditor:"DEF Bank",debtType:"Mortgage",balance:"150000",interestRate:"4.2",minimumPayment:"1000",dueDate:"2030.12.01",status:"Active",remainingTerm:"10 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"10%"},{id:4,creditor:"GHI Bank",debtType:"Student Loan",balance:"25000",interestRate:"6.8",minimumPayment:"150",dueDate:"2032.02.13",status:"Active",remainingTerm:"12 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"30%"},{id:5,creditor:"JKL Group",debtType:"Medical Bill",balance:"800",interestRate:"0",minimumPayment:"50",dueDate:"2022.10.05",status:"Active",remainingTerm:"2 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"80%"},{id:6,creditor:"MNO Credit Union",debtType:"Car Loan",balance:"12000",interestRate:"8.9",minimumPayment:"350",dueDate:"2025.07.21",status:"Active",remainingTerm:"5 years",frequency:"Monthly",paymentMethod:"Credit payment",paymentProgress:"60%"},{id:7,creditor:"PQR Bank",debtType:"Credit Card",balance:"3000",interestRate:"21.9",minimumPayment:"100",dueDate:"2023.11.12",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"15%"},{id:8,creditor:"STU Loan Services",debtType:"Personal Loan",balance:"6000",interestRate:"15.2",minimumPayment:"250",dueDate:"2024.09.09",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"50%"}],aZe=[{id:1,date:"2022.01.05",description:"Rent Payment",type:"Expense",category:"Housing",amount:"$1000",paymentMethod:"Online Transfer",status:"Paid",reference:"ACB123456789"},{id:2,date:"2022.01.08",description:"Grocery Shopping",type:"Expense",category:"Groceries",amount:"$150",paymentMethod:"Credit Card",status:"Paid",reference:"XYZ987654321"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:4,date:"2022.01.15",description:"Salary Deposit",type:"Income",category:"Employment",amount:"$3000",paymentMethod:"Direct Deposit",status:"Paid",reference:"PQR234567890"},{id:5,date:"2022.02.02",description:"Restaurant Dining",type:"Expense",category:"Dining Out",amount:"$50",paymentMethod:"Credit Card",status:"Paid",reference:"ZYX765432109"},{id:6,date:"2022.02.05",description:"Electricity Bill",type:"Bill Payment",category:"Utilities",amount:"$80",paymentMethod:"Online Transfer",status:"Paid",reference:"CAB987654321"},{id:7,date:"2022.02.12",description:"Health Insurance",type:"Bill Payment",category:"Insurance",amount:"$200",paymentMethod:"Online Transfer",status:"Paid",reference:"FED567890123"},{id:8,date:"2022.02.18",description:"Petrol Purchase",type:"Expense",category:"Transportation",amount:"$40",paymentMethod:"Cash",status:"Paid",reference:"WXY876543210"}],sZe=[{year:2018,income:74,debt:97},{year:2019,income:194,debt:4},{year:2020,income:33,debt:140},{year:2021,income:46,debt:98},{year:2022,income:182,debt:89},{year:2023,income:196,debt:12}],lZe=[{category:"Housing",value:30},{category:"Credit Card",value:20},{category:"Student Loan",value:10},{category:"Car Loan",value:15}],uZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"creditor",headerName:"Creditor",flex:1,minWidth:160,maxWidth:160},{field:"debtType",headerName:"Debt Type",flex:1,minWidth:120,maxWidth:120},{field:"balance",headerName:"Balance",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest",flex:1,minWidth:110,maxWidth:110},{field:"minimumPayment",headerName:"Min. Payment",flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"remainingTerm",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160},{field:"frequency",headerName:"Frequency",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"paymentProgress",headerName:"Progress",flex:1,minWidth:120,maxWidth:120},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function cZe(){return g.jsx(qe,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:iZe,columns:uZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function BG(){return g.jsx(mr,{title:"Debt Overview",content:g.jsx(cZe,{}),height:500})}const dZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"date",headerName:"Date",flex:1,minWidth:120,maxWidth:120},{field:"description",headerName:"Description",flex:1,minWidth:150,maxWidth:150},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"category",headerName:"Category",flex:1,minWidth:130,maxWidth:160},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"reference",headerName:"Reference Number",flex:1,minWidth:170,maxWidth:170},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function fZe(){return g.jsx(qe,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:aZe,columns:dZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{status:!1,category:!1,paymentMethod:!1,reference:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function pZe(){return g.jsx(mr,{title:"Debt Payment History",content:g.jsx(fZe,{}),height:500})}const hZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ah,{data:e,keys:["income","debt"],indexBy:"year",margin:{top:50,right:130,bottom:100,left:60},padding:.3,groupMode:"grouped",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Year",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[{dataFrom:"keys",anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,itemOpacity:.85,symbolSize:20,effects:[{on:"hover",style:{itemOpacity:1}}]}],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function mZe(){return g.jsx(mr,{title:"Debt-to-Income Ratio",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(hZe,{data:sZe})}),height:500})}const gZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ah,{data:e,keys:["value"],indexBy:"category",margin:{top:40,right:10,bottom:40,left:80},padding:.3,groupMode:"stacked",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"},basic:{maxWidth:"15rem"},table:{maxWidth:"15rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function vZe(){return g.jsx(mr,{title:"Debt Burden Ratio",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(gZe,{data:lZe})}),height:500})}function yZe(){return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Debt Management"}),g.jsx(Ze,{variant:"h6",children:"Efficiently manage and conquer your debts over time"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:8,children:g.jsx(BG,{})}),g.jsx(Ft,{item:!0,xs:12,md:4,children:g.jsx(pZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(mZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(vZe,{})})]})]})})}const bZe="/fintrack/assets/user-19e22072.png",xZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{alignItems:"center",display:"flex",gap:"clamp(0.5em, 5%, 3em)",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(qe,{children:g.jsx(_y,{alt:"User Picture",src:bZe,sx:{height:90,width:90}})}),g.jsxs(qe,{sx:{display:"flex",flexDirection:"column",gap:.5,justifyContent:"center"},children:[g.jsx(Ze,{variant:"h3",children:"John Smith"}),g.jsx(Ze,{variant:"h5",color:t.grey[100],children:"Lawyer"}),g.jsx(Ze,{variant:"h6",color:t.grey[100],children:"New York, USA"})]}),g.jsx(qe,{sx:{ml:"auto"},children:g.jsx(fs,{color:"success",endIcon:g.jsx(c0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})})},wZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{display:"flex",gap:"clamp(0.5em, 5%, 3em)",flexDirection:"column",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(qe,{children:g.jsx(Ze,{variant:"h5",children:"Address"})}),g.jsxs(qe,{sx:{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"1fr 1fr"},children:[g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Country"}),g.jsx(Ze,{variant:"h5",children:"USA"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Postal Code"}),g.jsx(Ze,{variant:"h5",children:"ERT 2345"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"City/State"}),g.jsx(Ze,{variant:"h5",children:"New York"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Tax ID"}),g.jsx(Ze,{variant:"h5",children:"S651A6S6DADS"})]}),g.jsx(qe,{sx:{justifySelf:"left",marginLeft:"auto"},children:g.jsx(fs,{color:"success",endIcon:g.jsx(c0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},CZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{display:"flex",gap:"clamp(0.5em, 5%, 3em)",flexDirection:"column",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(qe,{children:g.jsx(Ze,{variant:"h5",children:"Personal Information"})}),g.jsxs(qe,{sx:{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"repeat(3, 1fr)"},children:[g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"First Name"}),g.jsx(Ze,{variant:"h5",children:"John"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Email Address"}),g.jsx(Ze,{variant:"h5",children:"johnsmith@gmail.com"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Bio"}),g.jsx(Ze,{variant:"h5",children:"Lawyer"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Last Name"}),g.jsx(Ze,{variant:"h5",children:"Smith"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Birthday"}),g.jsx(Ze,{variant:"h5",children:"03.04.1985"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Phone Number"}),g.jsx(Ze,{variant:"h5",children:"+808 54 99 65 25"})]}),g.jsx(qe,{sx:{justifySelf:"left",marginLeft:"auto"},children:g.jsx(fs,{color:"success",endIcon:g.jsx(c0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},SZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{display:"flex",gap:"clamp(0.5em, 5%, 3em)",flexDirection:"column",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(qe,{children:g.jsx(Ze,{variant:"h5",children:"Account Preferences"})}),g.jsxs(qe,{sx:{display:"grid",gridAutoColumns:"column",gridTemplateColumns:"repeat(3, 1fr)"},children:[g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Language"}),g.jsx(Ze,{variant:"h5",children:"English"})]}),g.jsxs(qe,{sx:{justifySelf:"left",marginBlock:.5},children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Currency"}),g.jsx(Ze,{variant:"h5",children:"USD"})]}),g.jsx(qe,{sx:{justifySelf:"left",marginLeft:"auto"},children:g.jsx(fs,{color:"success",endIcon:g.jsx(c0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},$Ze=()=>g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{display:"flex",gap:"clamp(0.5em, 5%, 3em)",flexDirection:"column",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(qe,{children:g.jsx(Ze,{variant:"h5",children:"Two-factor Authentication"})}),g.jsxs(xhe,{children:[g.jsx(O_,{control:g.jsx(R_,{color:"success"}),labelPlacement:"end",label:g.jsx(Ze,{variant:"h5",children:"SMS Authentication: This option allows you to receive a verification code via SMS to your registered phone number. You can enter this code to complete the authentication process."}),sx:{m:0,marginBlock:1}}),g.jsx(O_,{control:g.jsx(R_,{color:"success"}),labelPlacement:"end",label:g.jsx(Ze,{variant:"h5",children:"Email Authentication: You can receive a verification code via email. They will need to enter this code to authenticate themselves successfully."}),sx:{m:0,marginBlock:1}})]})]})}),_Ze=()=>g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{display:"flex",gap:"clamp(0.5em, 5%, 3em)",flexDirection:"column",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(qe,{children:g.jsx(Ze,{variant:"h5",children:"Change Password"})}),g.jsxs(qe,{sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:2,justifyContent:"space-between",mt:2},children:[g.jsx(ou,{label:"Old Password",variant:"outlined"}),g.jsx(ou,{label:"New Password",variant:"outlined"}),g.jsx(ou,{label:"Confirm New Password",variant:"outlined"})]})]})});function kZe(){const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Settings"}),g.jsx(Ze,{variant:"h6",children:"Manage your app's settings"})]}),g.jsxs(qe,{sx:{backgroundColor:t.primary[400],padding:4},children:[g.jsxs(qe,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h3",children:"My Profile"}),g.jsx(Ze,{variant:"h6",children:"Update your profile here."})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(xZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(SZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(CZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(wZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx($Ze,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(_Ze,{})})]}),g.jsxs(qe,{sx:{display:"flex",gap:2,mt:5},children:[g.jsx(fs,{variant:"contained",color:"success",children:g.jsx(Ze,{variant:"h5",children:"Save"})}),g.jsx(fs,{variant:"outlined",color:"info",children:g.jsx(Ze,{variant:"h5",children:"Cancel"})})]})]})]})})}const HG=[{id:1,assetName:"Apple",assetType:"Stocks",currentPrice:"$145.64",quantity:"10",costBasis:"$1,400.00",currentValue:145640,gainOrLoss:"+$56.40",annualReturn:"12%",allocation:"10%",investment:"Stocks"},{id:2,assetName:"Amazon",assetType:"Stocks",currentPrice:"$3,654.12",quantity:"2",costBasis:"$7,500.00",currentValue:730824,gainOrLoss:"-$191.76",annualReturn:"-2.56%",allocation:"15%",investment:"Bonds"},{id:3,assetName:"Vanguard Total Bond Market Index",assetType:"Mutual Funds",currentPrice:"$110.35",quantity:"50",costBasis:"$5,700.00",currentValue:551750,gainOrLoss:"-$182.50",annualReturn:"-3.20%",allocation:"15%",investment:"Real Estate"},{id:4,assetName:"Tesla",assetType:"Stocks",currentPrice:"$652.23",quantity:"5",costBasis:"$3,000.00",currentValue:326115,gainOrLoss:"+$261.15",annualReturn:"21%",allocation:"10%",investment:"Cryptocurrency"},{id:5,assetName:"Bitcoin",assetType:"Cryptocurrency",currentPrice:"$32,800.20",quantity:"0.25",costBasis:"$8,200.10",currentValue:820005,gainOrLoss:"-$0.05",annualReturn:"0.01%",allocation:"10%",investment:"Mutual Funds"},{id:6,assetName:"Microsoft",assetType:"Stocks",currentPrice:"$290.67",quantity:"12",costBasis:"$3,000.00",currentValue:348804,gainOrLoss:"+$488.04",annualReturn:"15%",allocation:"15%",investment:"Index Funds"},{id:7,assetName:"JPMorgan Chase & Co",assetType:"Stocks",currentPrice:"$159.28",quantity:"8",costBasis:"$1,250.00",currentValue:127424,gainOrLoss:"+$24.24",annualReturn:"4%",allocation:"5%",investment:"Commodities"},{id:8,assetName:"Ethereum",assetType:"Cryptocurrency",currentPrice:"$2,621.76",quantity:"0.5",costBasis:"$1,257.97",currentValue:131088,gainOrLoss:"+$52.91",annualReturn:"19%",allocation:"10%",investment:"Savings Account"}],PZe=[{id:1,investmentName:"Apple Inc.",investmentType:"Stocks",investmentSymbol:"AAPL",purchaseDate:"2020.01.01",sharesOrAmount:"10",purchasePrice:"$150.00",currentValue:"$180.00",gainOrLoss:"+20%"},{id:2,investmentName:"Vanguard Total Stock Market Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VTSMX",purchaseDate:"2019.06.15",sharesOrAmount:"$5000",purchasePrice:"$100.00",currentValue:"$5500.00",gainOrLoss:"+10%"},{id:3,investmentName:"Microsoft Corporation",investmentType:"Stocks",investmentSymbol:"MSFT",purchaseDate:"2020.03.01",sharesOrAmount:"5",purchasePrice:"$170.00",currentValue:"$200.00",gainOrLoss:"+17.65%"},{id:4,investmentName:"iShares Core U.S. Aggregate Bond ETF",investmentType:"ETFs",investmentSymbol:"AGG",purchaseDate:"2018.09.01",sharesOrAmount:"$2000",purchasePrice:"$108.50",currentValue:"$2200.00",gainOrLoss:"+10%"},{id:5,investmentName:"Tesla Inc.",investmentType:"Stocks",investmentSymbol:"TSLA",purchaseDate:"2019.12.01",sharesOrAmount:"2",purchasePrice:"$400.00",currentValue:"$800.00",gainOrLoss:"+100%"},{id:6,investmentName:"Vanguard Total International Stock Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VGTSX",purchaseDate:"2020.06.15",sharesOrAmount:"$3000",purchasePrice:"$50.00",currentValue:"$3300.00",gainOrLoss:"+10%"},{id:7,investmentName:"Amazon.com Inc.",investmentType:"Stocks",investmentSymbol:"AMZN",purchaseDate:"2017.04.01",sharesOrAmount:"1",purchasePrice:"$900.00",currentValue:"$3000.00",gainOrLoss:"+233.33%"},{id:8,investmentName:"SPDR Gold Shares",investmentType:"ETFs",investmentSymbol:"GLD",purchaseDate:"2019.01.01",sharesOrAmount:"$500",purchasePrice:"$110.00",currentValue:"$600.00",gainOrLoss:"+20%"}],MZe=[{id:"Investment",data:[{x:"2023-01-01",y:1e3},{x:"2023-02-01",y:1200},{x:"2023-03-01",y:900},{x:"2023-04-01",y:1500},{x:"2023-05-01",y:1300}]},{id:"Benchmark",data:[{x:"2023-01-01",y:1100},{x:"2023-02-01",y:1300},{x:"2023-03-01",y:950},{x:"2023-04-01",y:1400},{x:"2023-05-01",y:1600}]},{id:"Savings",data:[{x:"2023-01-01",y:500},{x:"2023-02-01",y:600},{x:"2023-03-01",y:550},{x:"2023-04-01",y:800},{x:"2023-05-01",y:750}]},{id:"401(k)",data:[{x:"2023-01-01",y:2e3},{x:"2023-02-01",y:2200},{x:"2023-03-01",y:1900},{x:"2023-04-01",y:2300},{x:"2023-05-01",y:2100}]},{id:"IRA",data:[{x:"2023-01-01",y:1500},{x:"2023-02-01",y:1700},{x:"2023-03-01",y:1400},{x:"2023-04-01",y:1800},{x:"2023-05-01",y:1600}]}],TZe=[{id:1,transactionDate:"2021.07.01",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"10",pricePerShare:"$150.00",totalCost:"$1500.00",status:"Completed"},{id:2,transactionDate:"2021.06.25",transactionType:"Buy",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"5",pricePerShare:"$250.00",totalCost:"$1250.00",status:"Completed"},{id:3,transactionDate:"2021.07.10",transactionType:"Sell",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"5",pricePerShare:"$160.00",totalCost:"$800.00",status:"Completed"},{id:4,transactionDate:"2021.07.15",transactionType:"Buy",stockSymbol:"GOOG",stockName:"Alphabet Inc.",quantity:"2",pricePerShare:"$2600.00",totalCost:"$5200.00",status:"Completed"},{id:5,transactionDate:"2021.07.20",transactionType:"Dividend",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"-",pricePerShare:"-",totalCost:"$100.00",status:"Completed"},{id:6,transactionDate:"2021.07.22",transactionType:"Sell",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"3",pricePerShare:"$260.00",totalCost:"$780.00",status:"Completed"},{id:7,transactionDate:"2021.07.30",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"7",pricePerShare:"$155.00",totalCost:"$1085.00",status:"Completed"},{id:8,transactionDate:"2021.08.01",transactionType:"Buy",stockSymbol:"TSLA",stockName:"Tesla, Inc.",quantity:"3",pricePerShare:"$700.00",totalCost:"$2100.00",status:"Pending"}],EZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Asset Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Asset Type",flex:1,minWidth:130,maxWidth:130},{field:"currentPrice",headerName:"Current Price",flex:1,minWidth:140,maxWidth:140},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110},{field:"costBasis",headerName:"Cost Basis",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"gainOrLoss",headerName:"Unrealized Gain/Loss",flex:1,minWidth:180,maxWidth:180},{field:"annualReturn",headerName:"Annual Return",flex:1,minWidth:140,maxWidth:140},{field:"allocation",headerName:"Allocation",flex:1,minWidth:120,maxWidth:120},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function IZe(){return g.jsx(qe,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:HG,columns:EZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function RZe(){return g.jsx(IZe,{})}const OZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ah,{data:e,keys:["currentValue"],indexBy:"investment",margin:{top:0,right:0,bottom:40,left:60},padding:.3,valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount",legendPosition:"middle",legendOffset:-50},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function AZe(){return g.jsx(qe,{style:{height:"400px"},children:g.jsx(OZe,{data:HG})})}function J9(e){const{children:t,value:n,index:r,...o}=e;return g.jsx(qe,{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&g.jsx(qe,{sx:{mt:3},children:g.jsx(Ze,{children:t})})})}function eL(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function FZe(){const[e,t]=m.useState(0),n=Xt(),r=jn(n.palette.mode),o=(i,a)=>{t(a)};return g.jsx(mr,{title:"Portfolio Overview",content:g.jsxs(_i,{style:{height:"500px",padding:0},className:"Mui-Chart",children:[g.jsxs(Sve,{value:e,onChange:o,"aria-label":"basic tabs example",textColor:"secondary",indicatorColor:"secondary",sx:{"& button.Mui-selected":{color:r.blueAccent[400]},"& span.MuiTabs-indicator":{backgroundColor:r.blueAccent[400]}},children:[g.jsx(X4,{icon:g.jsx(hbe,{}),...eL(1),label:"Chart","aria-label":"chart"}),g.jsx(X4,{icon:g.jsx(gbe,{}),...eL(0),label:"Table","aria-label":"table"})]}),g.jsx(J9,{value:e,index:0,children:g.jsx(AZe,{})}),g.jsx(J9,{value:e,index:1,children:g.jsx(RZe,{})})]}),height:600})}const LZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"investmentName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"investmentType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"investmentSymbol",headerName:"Symbol",flex:1,minWidth:110,maxWidth:110},{field:"purchaseDate",headerName:"Purchase Date",flex:1,minWidth:120,maxWidth:120},{field:"sharesOrAmount",headerName:"Shares/Amount",flex:1,minWidth:110,maxWidth:110},{field:"purchasePrice",headerName:"Purchase Price",flex:1,minWidth:140,maxWidth:140},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:100,maxWidth:100},{field:"gainOrLoss",headerName:"Gain/Loss",flex:1,minWidth:160,maxWidth:160},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function DZe(){return g.jsx(qe,{style:{height:500,width:"100%"},children:g.jsx(_s,{rows:PZe,columns:LZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function jZe(){return g.jsx(mr,{title:"Investment Details",content:g.jsx(DZe,{}),height:600})}const NZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(T0,{data:e,margin:{top:40,right:30,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"transportation",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"count",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"}}},enableGridX:!1,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:80,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function zZe(){return g.jsx(mr,{title:"Investment Performance",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(NZe,{data:MZe})}),height:500})}const BZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"transactionDate",headerName:"Transaction Date",type:"Date",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"transactionType",headerName:"Transaction Type",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"stockSymbol",headerName:"Stock Symbol",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"stockName",headerName:"Stock Name",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"pricePerShare",headerName:"Price per Share",flex:1,minWidth:140,maxWidth:140,editable:!0},{field:"totalCost",headerName:"Total Cost",flex:1,minWidth:100,maxWidth:100,editable:!0},{field:"status",headerName:"Status",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function HZe(){return g.jsx(qe,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:TZe,columns:BZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function WG(){return g.jsx(mr,{title:"Transaction History",content:g.jsx(HZe,{}),height:500})}function WZe(){return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Investments"}),g.jsx(Ze,{variant:"h6",children:"Maximize your investment potential with personalized advice"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(FZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(jZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(zZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(WG,{})})]})]})})}const VZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(T0,{data:e,margin:{top:40,right:10,bottom:40,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:1e4,stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},colors:n.primary[100],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:70,areaOpacity:.15,useMesh:!0,legends:[]})},UZe=[{id:"January 2020",data:[{x:"Jan",y:5e3},{x:"Feb",y:5500},{x:"Mar",y:5550},{x:"Apr",y:5800},{x:"May",y:6e3},{x:"Jun",y:6100},{x:"Jul",y:6250},{x:"Aug",y:6400},{x:"Sep",y:6500},{x:"Oct",y:6750},{x:"Nov",y:6800},{x:"Dec",y:7500}]}],GZe=[{id:1,assetName:"House",assetType:"Property",currentValue:5e5,currency:"USD",acquisitionDate:"2020-01-01",apprOrDepr:"+20000",description:"Primary residence"},{id:2,assetName:"Car",assetType:"Vehicle",currentValue:25e3,currency:"USD",acquisitionDate:"2018-06-15",apprOrDepr:"-5000",description:"Sedan car"},{id:3,assetName:"Investment Portfolio",assetType:"Investment",currentValue:1e5,currency:"USD",acquisitionDate:"2019-03-01",apprOrDepr:"+15000",description:"Stocks, bonds, and ETFs"},{id:4,assetName:"Savings Account",assetType:"Bank Account",currentValue:5e3,currency:"USD",acquisitionDate:"2015-12-01",apprOrDepr:"+1000",description:"Emergency fund"},{id:5,assetName:"Antique Watch",assetType:"Collectible",currentValue:2e3,currency:"USD",acquisitionDate:"2021-06-20",apprOrDepr:"+500",description:"Limited edition"},{id:6,assetName:"Gold Jewelry",assetType:"Jewelry",currentValue:1500,currency:"USD",acquisitionDate:"2017-09-30",apprOrDepr:null,description:"Necklace and earrings"},{id:7,assetName:"Business",assetType:"Business Ownership",currentValue:1e5,currency:"USD",acquisitionDate:"2020-07-10",apprOrDepr:"+25000",description:"Restaurant"},{id:8,assetName:"Bitcoin",assetType:"Cryptocurrency",currentValue:5e3,currency:"USD",acquisitionDate:"2018-02-12",apprOrDepr:"-2000",description:"Digital currency"}],qZe=[{id:1,name:"Student Loan",type:"Education",amount:3e4,interestRate:6,minimumPayment:200,dueDate:"15th of every month",loanTerm:"10 years",status:"Active"},{id:2,name:"Credit Card 1",type:"Credit Card",amount:5e3,interestRate:18,minimumPayment:100,dueDate:"25th of every month",loanTerm:"N/A",status:"Active"},{id:3,name:"Car Loan",type:"Auto Loan",amount:25e3,interestRate:4.5,minimumPayment:400,dueDate:"5th of every month",loanTerm:"5 years",status:"Active"},{id:4,name:"Mortgage",type:"Home Loan",amount:2e5,interestRate:3.5,minimumPayment:1e3,dueDate:"1st of every month",loanTerm:"30 years",status:"Active"},{id:5,name:"Personal Loan",type:"Loan",amount:1e4,interestRate:8,minimumPayment:150,dueDate:"10th of every month",loanTerm:"3 years",status:"Active"},{id:6,name:"Credit Card 2",type:"Credit Card",amount:2e3,interestRate:15,minimumPayment:50,dueDate:"20th of every month",loanTerm:"N/A",status:"Active"},{id:7,name:"Medical Loan",type:"Loan",amount:5e3,interestRate:7,minimumPayment:150,dueDate:"8th of every month",loanTerm:"2 years",status:"Active"},{id:8,name:"Business Loan",type:"Loan",amount:5e4,interestRate:10,minimumPayment:500,dueDate:"18th of every month",loanTerm:"5 years",status:"Active"}],KZe=[{date:"2022-01-01",cash:5e3,investments:1e4,loans:-2e3,creditCardDebt:-500,property:25e3,other:500},{date:"2022-02-01",cash:5500,investments:10500,loans:-1800,creditCardDebt:-400,property:26e3,other:600},{date:"2022-03-01",cash:6e3,investments:11200,loans:-1600,creditCardDebt:-300,property:27e3,other:700},{date:"2022-04-01",cash:6500,investments:12e3,loans:-1400,creditCardDebt:-200,property:28e3,other:800},{date:"2022-05-01",cash:7e3,investments:12500,loans:-1200,creditCardDebt:-100,property:29e3,other:900},{date:"2022-06-01",cash:7500,investments:13e3,loans:-1e3,creditCardDebt:0,property:3e4,other:1e3}];function YZe(){return g.jsx(mr,{title:"Net Worth History",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(VZe,{data:UZe})}),height:500})}const XZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"currency",headerName:"Currency",flex:1,minWidth:120,maxWidth:120},{field:"acquisitionDate",headerName:"Acquisition Date",flex:1,minWidth:160,maxWidth:160},{field:"apprOrDepr",headerName:"Appreciation/Depreciation",flex:1,minWidth:210,maxWidth:100},{field:"description",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function QZe(){return g.jsx(qe,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:GZe,columns:XZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function ZZe(){return g.jsx(mr,{title:"Assets",content:g.jsx(QZe,{}),height:500})}const JZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"name",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest Rate",flex:1,minWidth:140,maxWidth:140},{field:"minimumPayment",headerName:"Minimum Payment",flex:1,minWidth:170,maxWidth:170},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:150,maxWidth:150},{field:"loanTerm",headerName:"Loan Term",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:160},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(qe,{children:g.jsx(ks,{})})}];function eJe(){return g.jsx(qe,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:qZe,columns:JZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function tJe(){return g.jsx(mr,{title:"Liabilities",content:g.jsx(eJe,{}),height:500})}const nJe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ah,{data:e,keys:["cash","investments","loans","creditCardDebt","property","other"],indexBy:"date",margin:{top:40,right:10,bottom:40,left:50},padding:.3,layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function rJe(){return g.jsx(mr,{title:"Assets vs Liabilities",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(nJe,{data:KZe})}),height:500})}function oJe(){return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Net Worth"}),g.jsx(Ze,{variant:"h6",children:"Measure your financial success and set new targets"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(YZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(ZZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(tJe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(rJe,{})})]})]})})}const eP="DEFAULT_X_AXIS_KEY",tL="DEFAULT_Y_AXIS_KEY",iJe={top:50,bottom:50,left:50,right:50};function _d(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const nL=Symbol("implicit");function VG(){var e=new X6,t=[],n=[],r=nL;function o(i){let a=e.get(i);if(a===void 0){if(r!==nL)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new X6;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return VG(t,n).unknown(r)},_d.apply(o,arguments),o}function Cb(){var e=VG().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var p=t().length,y=ot&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function uJe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?cJe:uJe,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),Pg)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,sJe),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=_B,c()},f.clamp=function(p){return arguments.length?(a=p?!0:Ja,c()):a!==Ja},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function GG(){return l3()(Ja,Ja)}function dJe(e,t,n,r){var o=xp(e,t,n),i;switch(r=Cp(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=FB(o,a))&&(r.precision=i),z5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=LB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=AB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Mu(r)}function qG(e){var t=e.domain;return e.ticks=function(n){var r=t();return bp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return dJe(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=L5(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 KG(){var e=GG();return e.copy=function(){return _2(e,KG())},_d.apply(e,arguments),qG(e)}function YG(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 gJe(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 sL(e){return(t,n)=>-e(-t,n)}function vJe(e){const t=e(iL,aL),n=t.domain;let r=10,o,i;function a(){return o=gJe(r),i=mJe(r),n()[0]<0?(o=sL(o),i=sL(i),e(fJe,pJe)):e(iL,aL),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const f=c0){for(;p<=y;++p)for(v=1;vc)break;x.push(b)}}else for(;p<=y;++p)for(v=r-1;v>=1;--v)if(b=p>0?v/i(-p):v*i(p),!(bc)break;x.push(b)}x.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Cp(l)).precision==null&&(l.trim=!0),l=Mu(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let f=c/i(Math.round(o(c)));return f*rn(YG(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function XG(){const e=vJe(l3()).domain([1,10]);return e.copy=()=>_2(e,XG()).base(e.base()),_d.apply(e,arguments),e}function lL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function yJe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function bJe(e){return e<0?-e*e:e*e}function xJe(e){var t=e(Ja,Ja),n=1;function r(){return n===1?e(Ja,Ja):n===.5?e(yJe,bJe):e(lL(n),lL(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},qG(t)}function u3(){var e=xJe(l3());return e.copy=function(){return _2(e,u3()).exponent(e.exponent())},_d.apply(e,arguments),e}function wJe(){return u3.apply(null,arguments).exponent(.5)}const m$=new Date,g$=new Date;function Fr(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(uFr(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(m$.setTime(+i),g$.setTime(+a),e(m$),e(g$),Math.floor(n(m$,g$))),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 Sb=Fr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Sb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Sb);Sb.range;const Zs=1e3,qi=Zs*60,Js=qi*60,dl=Js*24,c3=dl*7,uL=dl*30,v$=dl*365,fc=Fr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Zs)},(e,t)=>(t-e)/Zs,e=>e.getUTCSeconds());fc.range;const d3=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zs)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getMinutes());d3.range;const f3=Fr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getUTCMinutes());f3.range;const p3=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zs-e.getMinutes()*qi)},(e,t)=>{e.setTime(+e+t*Js)},(e,t)=>(t-e)/Js,e=>e.getHours());p3.range;const h3=Fr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Js)},(e,t)=>(t-e)/Js,e=>e.getUTCHours());h3.range;const m3=Fr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qi)/dl,e=>e.getDate()-1);m3.range;const QG=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dl,e=>e.getUTCDate()-1);QG.range;const ZG=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dl,e=>Math.floor(e/dl));ZG.range;function kd(e){return Fr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qi)/c3)}const g3=kd(0),CJe=kd(1),SJe=kd(2),$Je=kd(3),_Je=kd(4),kJe=kd(5),PJe=kd(6);g3.range;CJe.range;SJe.range;$Je.range;_Je.range;kJe.range;PJe.range;function Pd(e){return Fr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/c3)}const v3=Pd(0),MJe=Pd(1),TJe=Pd(2),EJe=Pd(3),IJe=Pd(4),RJe=Pd(5),OJe=Pd(6);v3.range;MJe.range;TJe.range;EJe.range;IJe.range;RJe.range;OJe.range;const y3=Fr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());y3.range;const b3=Fr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());b3.range;const k2=Fr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());k2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});k2.range;const P2=Fr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());P2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});P2.range;function JG(e,t,n,r,o,i){const a=[[fc,1,Zs],[fc,5,5*Zs],[fc,15,15*Zs],[fc,30,30*Zs],[i,1,qi],[i,5,5*qi],[i,15,15*qi],[i,30,30*qi],[o,1,Js],[o,3,3*Js],[o,6,6*Js],[o,12,12*Js],[r,1,dl],[r,2,2*dl],[n,1,c3],[t,1,uL],[t,3,3*uL],[e,1,v$]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(xp(u/v$,c/v$,f));if(y===0)return Sb.every(Math.max(xp(u,c,f),1));const[v,b]=a[p/a[y-1][2]{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},tq=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,i)=>{const[a,s]=t[i].stackedData.reduce((l,u)=>[Math.min(...u,...l[0]===null?[]:[l[0]]),Math.max(...u,...l[1]===null?[]:[l[1]])],t[i].stackedData[0]);return[o[0]===null?a:Math.min(a,o[0]),o[1]===null?s:Math.max(s,o[1])]},[null,null])},HJe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?tq(e):eq(e),WJe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?eq(e):tq(e),$b=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],VJe=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,i)=>{const a=t[i].data.reduce((s,{x:l})=>$b(s,[l,l]),[null,null]);return $b(o,a)},[null,null])},UJe=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,i)=>{const a=t[i].data.reduce((s,{y:l})=>$b(s,[l,l]),[null,null]);return $b(o,a)},[null,null])},GJe=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},qJe=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,i)=>{const s=t[i].area!==void 0?c=>c:c=>[c[1],c[1]],[l,u]=t[i].stackedData.reduce((c,f)=>{const[p,y]=s(f);return[Math.min(p,y,c[0]),Math.max(p,y,c[1])]},s(t[i].stackedData[0]));return o[0]===null||o[1]===null?[l,u]:[Math.min(l,o[0]),Math.max(u,o[1])]},[null,null])};function _b(e){return e.scaleType==="band"}function cL(e){return e.scaleType==="point"}function dL(e,t,n){switch(e){case"log":return XG(t,n);case"pow":return u3(t,n);case"sqrt":return wJe(t,n);case"time":return zJe(t,n);case"utc":return BJe(t,n);default:return KG(t,n)}}const KJe=(e,t,n)=>{const r=P({},iJe,n);return m.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},YJe=KJe,w3=m.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400}),C3=m.createContext({current:null});function XJe({width:e,height:t,margin:n,svgRef:r,children:o}){const i=YJe(e,t,n);return g.jsx(C3.Provider,{value:r,children:g.jsx(w3.Provider,{value:i,children:o})})}function Tn(e){return function(){return e}}const fL=1e-12,QJe=Math.PI,y$=2*QJe,nP=Math.PI,rP=2*nP,ec=1e-6,ZJe=rP-ec;function nq(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nq;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oec)if(!(Math.abs(f*l-u*c)>ec)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-a,v=o-s,b=l*l+u*u,C=y*y+v*v,x=Math.sqrt(b),w=Math.sqrt(p),S=i*Math.tan((nP-Math.acos((b+p-C)/(2*x*w)))/2),$=S/w,T=S/x;Math.abs($-1)>ec&&this._append`L${t+$*c},${n+$*f}`,this._append`A${i},${i},0,0,${+(f*y>c*v)},${this._x1=t+T*l},${this._y1=n+T*u}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,c=n+l,f=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>ec||Math.abs(this._y1-c)>ec)&&this._append`L${u},${c}`,r&&(p<0&&(p=p%rP+rP),p>ZJe?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:p>ec&&this._append`A${r},${r},0,${+(p>=nP)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function rq(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 eet(t)}function M2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oq(e){this._context=e}oq.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 S3(e){return new oq(e)}function iq(e){return e[0]}function aq(e){return e[1]}function sq(e,t){var n=Tn(!0),r=null,o=S3,i=null,a=rq(s);e=typeof e=="function"?e:e===void 0?iq:Tn(e),t=typeof t=="function"?t:t===void 0?aq:Tn(t);function s(l){var u,c=(l=M2(l)).length,f,p=!1,y;for(r==null&&(i=o(y=a())),u=0;u<=c;++u)!(u=y;--v)s.point(S[v],$[v]);s.lineEnd(),s.areaEnd()}x&&(S[p]=+e(C,p,f),$[p]=+t(C,p,f),s.point(r?+r(C,p,f):S[p],n?+n(C,p,f):$[p]))}if(w)return s=null,w+""||null}function c(){return sq().defined(o).curve(a).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Tn(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Tn(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Tn(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Tn(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Tn(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Tn(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(o=typeof f=="function"?f:Tn(!!f),u):o},u.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),u):a},u.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),u):i},u}function net(e,t){return te?1:t>=e?0:NaN}function ret(e){return e}function oet(){var e=ret,t=net,n=null,r=Tn(0),o=Tn(y$),i=Tn(0);function a(s){var l,u=(s=M2(s)).length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(y$,Math.max(-y$,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:Tn(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Tn(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:Tn(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Tn(+s),a):i},a}function pL(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function $3(e,t){this._context=e,this._k=(1-t)/6}$3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pL(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:pL(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new $3(r,t)}return n.tension=function(r){return e(+r)},n})(0);function iet(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>fL){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>fL){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function lq(e,t){this._context=e,this._alpha=t}lq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:iet(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const aet=function e(t){function n(r){return t?new lq(r,t):new $3(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function hL(e){return e<0?-1:1}function mL(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(hL(i)+hL(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function gL(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function b$(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 kb(e){this._context=e}kb.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:b$(this,this._t0,gL(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,b$(this,gL(this,n=mL(this,e,t)),n);break;default:b$(this,this._t0,n=mL(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function uq(e){this._context=new cq(e)}(uq.prototype=Object.create(kb.prototype)).point=function(e,t){kb.prototype.point.call(this,t,e)};function cq(e){this._context=e}cq.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 vL(e){return new kb(e)}function set(e){return new uq(e)}function dq(e){this._context=e}dq.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=yL(e),o=yL(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 cet(e){return new T2(e,.5)}function det(e){return new T2(e,0)}function fet(e){return new T2(e,1)}function Ip(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 pet(e,t){return e[t]}function het(e){const t=[];return t.key=e,t}function fq(){var e=Tn([]),t=Rp,n=Ip,r=pet;function o(i){var a=Array.from(e.apply(this,arguments),het),s,l=a.length,u=-1,c;for(const f of i)for(s=0,++u;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function vet(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;ri&&(i=o,n=t);return n}function hq(e){var t=e.map(mq);return Rp(e).sort(function(n,r){return t[n]-t[r]})}function mq(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(i=>{const{stack:a,stackOrder:s,stackOffset:l}=t[i];a===void 0?r.push({ids:[i],stackingOrder:x$.none,stackingOffset:w$.none}):o[a]===void 0?(o[a]=r.length,r.push({ids:[i],stackingOrder:x$[s??"none"],stackingOffset:w$[l??"diverging"]})):(r[o[a]].ids.push(i),s!==void 0&&(r[o[a]].stackingOrder=x$[s]),l!==void 0&&(r[o[a]].stackingOffset=w$[l]))}),r};function _3(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=P({valueFormatter:t},e[r])}),n}const $et=(e,t)=>{const{seriesOrder:n,series:r}=e,o=gq(e),i=t??[];n.forEach(s=>{const l=r[s].data;if(l!==void 0)l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u});else if(t===void 0)throw new Error([`MUI: bar series with id='${s}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` -`))});const a={};return o.forEach(s=>{const{ids:l,stackingOffset:u,stackingOrder:c}=s,f=fq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).order(c).offset(u)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({layout:"vertical"},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:_3(a,s=>s==null?void 0:s.toLocaleString())}},_et=$et,ket=({series:e,seriesOrder:t})=>({series:_3(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),Pet=ket,Met=(e,t)=>{const{seriesOrder:n,series:r}=e,o=gq(e),i=t??[];n.forEach(s=>{const l=r[s].data;l!==void 0&&l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u})});const a={};return o.forEach(s=>{const{ids:l,stackingOrder:u,stackingOffset:c}=s,f=fq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).value((p,y)=>{var v;return(v=p[y])!=null?v:0}).order(u).offset(c)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:_3(a,s=>s==null?void 0:s.toLocaleString())}},Tet=Met,Eet=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},Iet=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var i,a,s,l;const u=oet().startAngle(2*Math.PI*((i=n[o].startAngle)!=null?i:0)/360).endAngle(2*Math.PI*((a=n[o].endAngle)!=null?a:360)/360).padAngle(2*Math.PI*((s=n[o].paddingAngle)!=null?s:0)/360).sortValues(Eet((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(c=>c.value));r[o]=P({valueFormatter:c=>c.value.toLocaleString()},n[o],{data:n[o].data.map((c,f)=>{var p;return P({},c,{id:(p=c.id)!=null?p:`auto-generated-pie-id-${o}-${f}`},u[f])}).map(c=>{var f,p,y;return P({},c,{formattedValue:(f=(p=(y=n[o]).valueFormatter)==null?void 0:p.call(y,c))!=null?f:c.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Ret=Iet,Oet=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function Aet(e,t,n=Oet){return e.type==="pie"?P({},e,{data:e.data.map((r,o)=>P({color:n[o%n.length]},r))}):P({color:n[t%n.length]},e)}const Fet=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Let=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],Det=e=>e==="dark"?Let:Fet,Ru=m.createContext({}),C$={bar:_et,scatter:Pet,line:Tet,pie:Ret},jet=(e,t,n)=>{const r={};e.forEach((i,a)=>{var s;const{id:l=`auto-generated-id-${a}`,type:u}=i;if(r[u]===void 0&&(r[u]={series:{},seriesOrder:[]}),((s=r[u])==null?void 0:s.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[u].series[l]=P({id:l},Aet(i,a,t)),r[u].seriesOrder.push(l)});const o={};return Object.keys(C$).forEach(i=>{if(r[i]!==void 0){var a,s;o[i]=(a=(s=C$[i])==null?void 0:s.call(C$,r[i],n))!=null?a:r[i]}}),o};function Net({series:e,dataset:t,colors:n=Det,children:r}){const o=Xt(),i=m.useMemo(()=>jet(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return g.jsx(Ru.Provider,{value:i,children:r})}function Pb(e){return e.bandwidth!==void 0}function bL(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,a=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),s=t===void 0?2:Math.ceil(Math.abs(i[1]-i[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(a,Math.max(s,l))}const xL=.2,zet=.1,Bet={bar:HJe,scatter:VJe,line:GJe},Het={bar:WJe,scatter:UJe,line:qJe},Ou=m.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function Wet({xAxis:e,yAxis:t,dataset:n,children:r}){const o=m.useContext(Ru),i=m.useContext(w3),a=m.useMemo(()=>e==null?void 0:e.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[e,n]),s=m.useMemo(()=>t==null?void 0:t.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[t,n]),l=m.useMemo(()=>{var u,c;const f=(x,w,S,$,T)=>{var k,M;const I=$[w],N=(k=(M=o[w])==null?void 0:M.series)!=null?k:{},[E,A]=I({series:N,axis:S,isDefaultAxis:T}),[z,L]=x;return z===null||L===null?[E,A]:E===null||A===null?[z,L]:[Math.min(E,z),Math.max(A,L)]},p=(x,w,S)=>Object.keys(w).reduce((T,k)=>f(T,k,x,w,S),[null,null]),y=[...(u=a==null?void 0:a.map((x,w)=>P({id:`deaultized-x-axis-${w}`},x)))!=null?u:[],...a===void 0||a.findIndex(({id:x})=>x===eP)===-1?[{id:eP,scaleType:"linear"}]:[]],v={};y.forEach((x,w)=>{var S,$,T,k,M;const I=w===0,[N,E]=p(x,Bet,I),A=[i.left,i.left+i.width];if(_b(x)){var z,L;const U=(z=x.categoryGapRatio)!=null?z:xL,Z=(L=x.barGapRatio)!=null?L:zet;v[x.id]=P({categoryGapRatio:U,barGapRatio:Z},x,{scale:Cb(x.data,A).paddingInner(U).paddingOuter(U/2),tickNumber:x.data.length})}if(cL(x)&&(v[x.id]=P({},x,{scale:rL(x.data,A),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const O=(S=x.scaleType)!=null?S:"linear",D=[($=x.min)!=null?$:N,(T=x.max)!=null?T:E],H=bL(P({},x,{range:A,domain:D})),B=dL(O,D,A).nice(H),j=B.domain(),W=[(k=x.min)!=null?k:j[0],(M=x.max)!=null?M:j[1]];v[x.id]=P({},x,{scaleType:O,scale:B.domain(W),tickNumber:H})});const b=[...(c=s==null?void 0:s.map((x,w)=>P({id:`deaultized-y-axis-${w}`},x)))!=null?c:[],...s===void 0||s.findIndex(({id:x})=>x===tL)===-1?[{id:tL,scaleType:"linear"}]:[]],C={};return b.forEach((x,w)=>{var S,$,T,k,M;const I=w===0,[N,E]=p(x,Het,I),A=[i.top+i.height,i.top];if(_b(x)){var z;const W=(z=x.categoryGapRatio)!=null?z:xL;C[x.id]=P({categoryGapRatio:W,barGapRatio:0},x,{scale:Cb(x.data,[A[1],A[0]]).paddingInner(W).paddingOuter(W/2),tickNumber:x.data.length})}if(cL(x)&&(C[x.id]=P({},x,{scale:rL(x.data,[A[1],A[0]]),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const L=(S=x.scaleType)!=null?S:"linear",O=[($=x.min)!=null?$:N,(T=x.max)!=null?T:E],D=bL(P({},x,{range:A,domain:O})),H=dL(L,O,A).nice(D),B=H.domain(),j=[(k=x.min)!=null?k:B[0],(M=x.max)!=null?M:B[1]];C[x.id]=P({},x,{scaleType:L,scale:H.domain(j),tickNumber:D})}),{xAxis:v,yAxis:C,xAxisIds:y.map(({id:x})=>x),yAxisIds:b.map(({id:x})=>x)}},[i.height,i.left,i.top,i.width,o,a,s]);return g.jsx(Ou.Provider,{value:l,children:r})}function qg(e){return Pb(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function Vet(e){return typeof e=="string"}function Uet(e,t,n){return e===void 0||Vet(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const Get={disableDefaultClasses:!1},qet=m.createContext(Get);function Ket(e){const{disableDefaultClasses:t}=m.useContext(qet);return n=>t?"":e(n)}function Yet(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 Xet(e,t,n){return typeof e=="function"?e(t,n):e}function wL(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 Qet(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ze(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=Yet(P({},o,r)),s=wL(r),l=wL(o),u=t(a),c=ze(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const Zet=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Md(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,Zet),s=i?{}:Xet(r,o),{props:l,internalRef:u}=Qet(P({},a,{externalSlotProps:s})),c=on(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Uet(n,P({},l,{ref:c}),o)}function Jet(e){return typeof e=="function"?e():e}const ett=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=m.useState(null),l=on(m.isValidElement(r)?r.ref:null,n);if(pn(()=>{i||s(Jet(o)||document.body)},[o,i]),pn(()=>{if(a&&!i)return jc(n,a),()=>{jc(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:l};return m.cloneElement(r,u)}return g.jsx(m.Fragment,{children:r})}return g.jsx(m.Fragment,{children:a&&xu.createPortal(r,a)})});function ttt(e){return yt("MuiPopper",e)}bt("MuiPopper",["root"]);const ntt=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],rtt=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ott(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 oP(e){return typeof e=="function"?e():e}function itt(e){return e.nodeType!==void 0}const att=()=>Ge({root:["root"]},Ket(ttt)),stt={},ltt=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,ntt),x=m.useRef(null),w=on(x,n),S=m.useRef(null),$=on(S,p),T=m.useRef($);pn(()=>{T.current=$},[$]),m.useImperativeHandle(p,()=>S.current,[]);const k=ott(c,a),[M,I]=m.useState(k),[N,E]=m.useState(oP(o));m.useEffect(()=>{S.current&&S.current.forceUpdate()}),m.useEffect(()=>{o&&E(oP(o))},[o]),pn(()=>{if(!N||!u)return;const D=j=>{I(j.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{D(j)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=Xj(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=att(),L=(r=v.root)!=null?r:"div",O=Md({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return g.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),utt=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=stt,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,rtt),[S,$]=m.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const E=oP(r);M=E&&itt(E)?Gn(E).body:Gn(null).body}const I=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return g.jsx(ett,{disablePortal:s,container:M,children:g.jsx(ltt,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:I},v),TransitionProps:N,children:o}))})});function ctt(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=m.useState(!1);return pn(()=>{n||i(!0)},[n]),m.useEffect(()=>{n&&i(!0)},[n]),g.jsx(m.Fragment,{children:o?t:r})}const ml=m.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),dtt=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:P({},e,{item:null});case"updateAxis":return P({},e,{axis:t.data});default:return e}};function ftt({children:e}){const[t,n]=m.useReducer(dtt,{item:null,axis:{x:null,y:null}}),r=m.useMemo(()=>P({},t,{dispatch:n}),[t]);return g.jsx(ml.Provider,{value:r,children:e})}function ptt(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function htt(){const e=m.useContext(C3),[t,n]=m.useState(null);return m.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=a=>{n({x:a.clientX,y:a.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",i),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",i)}},[e]),t}function mtt(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function gtt(e){return yt("MuiChartsTooltip",e)}const CL=bt("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),vq=ke("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),yq=ke("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),iP=ke("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),pc=ke("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${CL.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${CL.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),bq=ke(nse,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function vtt(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:i,color:a}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},s=t.valueFormatter(t.data[n.dataIndex]);return g.jsx(vq,{sx:r,className:o.root,children:g.jsx(yq,{children:g.jsx("tbody",{children:g.jsxs(iP,{children:[g.jsx(pc,{className:o.markCell,children:g.jsx(bq,{ownerState:{color:a}})}),g.jsx(pc,{className:o.labelCell,children:i}),g.jsx(pc,{className:o.valueCell,children:s})]})})})})}function ytt(e){const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,a=m.useContext(Ru)[n.type].series[n.seriesId],s=t??vtt,l=Md({elementType:s,externalSlotProps:i,additionalProps:{itemData:n,series:a,sx:r,classes:o},ownerState:{}});return g.jsx(s,P({},l))}function btt(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:i,sx:a,classes:s}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:u=>u.toLocaleString();return g.jsx(vq,{sx:a,className:s.root,children:g.jsxs(yq,{children:[i!=null&&!r.hideTooltip&&g.jsx("thead",{children:g.jsx(iP,{children:g.jsx(pc,{colSpan:3,children:g.jsx(Ze,{children:l(i)})})})}),g.jsx("tbody",{children:n.map(({color:u,id:c,label:f,valueFormatter:p,data:y})=>{const v=p(y[o]);return v==null?null:g.jsxs(iP,{children:[g.jsx(pc,{className:s.markCell,children:g.jsx(bq,{ownerState:{color:u},boxShadow:1})}),g.jsx(pc,{className:s.labelCell,children:f?g.jsx(Ze,{children:f}):null}),g.jsx(pc,{className:s.valueCell,children:g.jsx(Ze,{children:v})})]},c)})})]})})}function xtt(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,a=(r.x&&r.x.index)!==void 0,s=a?r.x&&r.x.index:r.y&&r.y.index,l=a?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:f,yAxis:p}=m.useContext(Ou),y=m.useContext(Ru),v=a?u[0]:f[0],b=m.useMemo(()=>{const S=[];return Object.keys(y).filter($=>["bar","line","scatter"].includes($)).forEach($=>{y[$].seriesOrder.forEach(T=>{const k=y[$].series[T],M=a?k.xAxisKey:k.yAxisKey;(M===void 0||M===v)&&S.push(y[$].series[T])})}),S},[v,a,y]),C=m.useMemo(()=>a?c[v]:p[v],[v,a,c,p]),x=t??btt,w=Md({elementType:x,externalSlotProps:n,additionalProps:{axisData:r,series:b,axis:C,dataIndex:s,axisValue:l,sx:o,classes:i},ownerState:{}});return g.jsx(x,P({},w))}const wtt=e=>{const{classes:t}=e;return Ge({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},gtt,t)},Ctt=ke(utt,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Stt(e){var t,n,r;const{trigger:o="axis",itemContent:i,axisContent:a,slots:s,slotProps:l}=e,u=htt(),{item:c,axis:f}=m.useContext(ml),p=o==="item"?c:f,y=mtt(o,p),v=u!==null&&y,b=wtt({classes:e.classes}),C=(t=s==null?void 0:s.popper)!=null?t:Ctt,x=Md({elementType:C,externalSlotProps:l==null?void 0:l.popper,additionalProps:{open:v,placement:"right-start",anchorEl:ptt(u)},ownerState:{}});return o==="none"?null:g.jsx(ctt,{children:v&&g.jsx(C,P({},x,{children:o==="item"?g.jsx(ytt,{itemData:p,content:(n=s==null?void 0:s.itemContent)!=null?n:i,contentProps:l==null?void 0:l.itemContent,sx:{mx:2},classes:b}):g.jsx(xtt,{axisData:p,content:(r=s==null?void 0:s.axisContent)!=null?r:a,contentProps:l==null?void 0:l.axisContent,sx:{mx:2},classes:b})}))})}function $tt(e){return yt("MuiChartsAxisHighlight",e)}bt("MuiChartsAxisHighlight",["root"]);const _tt=()=>Ge({root:["root"]},$tt),l1=ke("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>P({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function ktt(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:a}=m.useContext(Ou),s=_tt(),l=r[0],u=i[0],c=o[l].scale,f=a[u].scale,{axis:p}=m.useContext(ml),y=qg(c),v=qg(f);return g.jsxs(m.Fragment,{children:[t==="band"&&p.x!==null&&Pb(c)&&g.jsx(l1,{d:`M ${c(p.x.value)-(c.step()-c.bandwidth())/2} ${f.range()[0]} l ${c.step()} 0 l 0 ${f.range()[1]-f.range()[0]} l ${-c.step()} 0 Z`,className:s.root,ownerState:{axisHighlight:"band"}}),n==="band"&&p.y!==null&&Pb(f)&&g.jsx(l1,{d:`M ${c.range()[0]} ${f(p.y.value)-(f.step()-f.bandwidth())/2} l 0 ${f.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-f.step()} Z`,className:s.root,ownerState:{axisHighlight:"band"}}),t==="line"&&p.x!==null&&g.jsx(l1,{d:`M ${y(p.x.value)} ${f.range()[0]} L ${y(p.x.value)} ${f.range()[1]}`,className:s.root,ownerState:{axisHighlight:"line"}}),n==="line"&&p.y!==null&&g.jsx(l1,{d:`M ${c.range()[0]} ${v(p.y.value)} L ${c.range()[1]} ${v(p.y.value)}`,className:s.root,ownerState:{axisHighlight:"line"}})]})}const k3={highlighted:"none",faded:"none"},xq=m.createContext({item:null,scope:k3,dispatch:()=>null}),Ptt=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.item,scope:P({},k3,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:P({},e,{item:null});default:return e}};function Mtt({children:e}){const[t,n]=m.useReducer(Ptt,{item:null,scope:k3}),r=m.useMemo(()=>P({},t,{dispatch:n}),[t]);return g.jsx(xq.Provider,{value:r,children:e})}const P3=e=>{const{dispatch:t}=m.useContext(ml),{dispatch:n}=m.useContext(xq);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},M3=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},T3=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},Ttt=["id","dataIndex","classes","color","highlightScope","slots","slotProps","style"];function Ett(e){return yt("MuiBarElement",e)}bt("MuiBarElement",["root"]);const Itt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return Ge(r,Ett,t)},Rtt=ke(In.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?Zc(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function Ott(e){var t;const{id:n,dataIndex:r,classes:o,color:i,highlightScope:a,slots:s,slotProps:l,style:u}=e,c=be(e,Ttt),f=P3(a),{item:p}=m.useContext(ml),y=M3(p,{type:"bar",seriesId:n,dataIndex:r},a),v=!y&&T3(p,{type:"bar",seriesId:n,dataIndex:r},a),b={id:n,dataIndex:r,classes:o,color:i,isFaded:v,isHighlighted:y},C=Itt(b),x=(t=s==null?void 0:s.bar)!=null?t:Rtt,w=Md({elementType:x,externalSlotProps:l==null?void 0:l.bar,additionalProps:P({},c,f({type:"bar",seriesId:n,dataIndex:r}),{style:u,className:C.root}),ownerState:b});return g.jsx(x,P({},w))}const Att=["skipAnimation"];function Ftt({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}const Ltt=()=>{var e;const t=(e=m.useContext(Ru).bar)!=null?e:{series:{},stackingGroups:[],seriesOrder:[]},n=m.useContext(Ou),{series:r,stackingGroups:o}=t,{xAxis:i,yAxis:a,xAxisIds:s,yAxisIds:l}=n,u=s[0],c=l[0];return o.flatMap(({ids:p},y)=>p.flatMap(v=>{var b,C;const x=(b=r[v].xAxisKey)!=null?b:u,w=(C=r[v].yAxisKey)!=null?C:c,S=i[x],$=a[w],T=r[v].layout==="vertical";let k;if(T){if(!_b(S))throw new Error(`Axis with id "${x}" shoud be of type "band" to display the bar series of id "${v}"`);if(i[x].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=S}else{if(!_b($))throw new Error(`Axis with id "${w}" shoud be of type "band" to display the bar series of id "${v}"`);if(a[w].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=$}const M=S.scale,I=$.scale,N=k.scale.bandwidth(),{barWidth:E,offset:A}=Ftt({bandWidth:N,numberOfGroups:o.length,gapRatio:k.barGapRatio}),z=y*(E+A),{stackedData:L,color:O}=r[v];return L.map((D,H)=>{var B,j;const W=Math.min(...D),U=Math.max(...D);return{bottom:W,top:U,seriesId:v,dataIndex:H,layout:r[v].layout,x:T?M((B=i[x].data)==null?void 0:B[H])+z:M(W),y:T?I(U):I((j=a[w].data)==null?void 0:j[H])+z,xOrigin:M(0),yOrigin:I(0),height:T?Math.abs(I(W)-I(U)):E,width:T?E:Math.abs(M(W)-M(U)),color:O,highlightScope:r[v].highlightScope}})}))},SL=({layout:e,yOrigin:t,x:n,width:r,y:o,xOrigin:i,height:a})=>P({},e==="vertical"?{y:t,x:n,height:0,width:r}:{y:o,x:i,height:a,width:0}),$L=({x:e,width:t,y:n,height:r})=>({y:n,x:e,height:r,width:t});function Dtt(e){const t=Ltt(),{skipAnimation:n}=e,r=be(e,Att),o=ud(t,{keys:i=>`${i.seriesId}-${i.dataIndex}`,from:SL,leave:SL,enter:$L,update:$L,immediate:n});return g.jsx(m.Fragment,{children:o((i,{seriesId:a,dataIndex:s,color:l,highlightScope:u})=>g.jsx(Ott,P({id:a,dataIndex:s,highlightScope:u,color:l},r,{style:i})))})}const jtt=()=>{Gl(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{ia.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])},Ntt=e=>{const t=m.useContext(C3),{width:n,height:r,top:o,left:i}=m.useContext(w3),{xAxis:a,yAxis:s,xAxisIds:l,yAxisIds:u}=m.useContext(Ou),{dispatch:c}=m.useContext(ml),f=l[0],p=u[0],y=m.useRef({x:-1,y:-1});m.useEffect(()=>{const v=t.current;if(v===null||e)return()=>{};const b=(w,S)=>{if(f===null)return null;const{scale:$,data:T}=w;if(!Pb($)){const M=$.invert(S);if(T===void 0)return{value:M};const I=T==null?void 0:T.findIndex((N,E)=>N>M&&(E===0||Math.abs(M-N)<=Math.abs(M-T[E-1]))||N<=M&&(E===T.length-1||Math.abs(M-N)=0?T[I]:M,index:I}}const k=$.bandwidth()===0?Math.floor((S-Math.min(...$.range())+$.step()/2)/$.step()):Math.floor((S-Math.min(...$.range()))/$.step());return k<0||k>=T.length?null:{index:k,value:T[k]}},C=()=>{y.current={x:-1,y:-1},c({type:"updateAxis",data:{x:null,y:null}})},x=w=>{const S=t.current.createSVGPoint();S.x=w.clientX,S.y=w.clientY;const $=S.matrixTransform(t.current.getScreenCTM().inverse());y.current={x:$.x,y:$.y};const T=$.xi+n,k=$.yo+r;if(T||k){c({type:"updateAxis",data:{x:null,y:null}});return}const M=b(a[f],$.x),I=b(s[p],$.y);c({type:"updateAxis",data:{x:M,y:I}})};return v.addEventListener("mouseout",C),v.addEventListener("mousemove",x),()=>{v.removeEventListener("mouseout",C),v.removeEventListener("mousemove",x)}},[t,c,i,n,o,r,p,s,f,a,e])},ztt=["children","width","height","viewBox","disableAxisListener","className"],Btt=ke("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),Htt=m.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:a,disableAxisListener:s=!1}=t,l=be(t,ztt),u=P({width:o,height:i,x:0,y:0},a);return Ntt(s),g.jsxs(Btt,P({width:o,height:i,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n},l,{children:[g.jsx("title",{children:t.title}),g.jsx("desc",{children:t.desc}),r]}))}),Wtt=m.forwardRef(function(t,n){const{width:r,height:o,series:i,margin:a,xAxis:s,yAxis:l,colors:u,dataset:c,sx:f,title:p,desc:y,disableAxisListener:v,children:b}=t,C=m.useRef(null),x=on(n,C);return jtt(),g.jsx(XJe,{width:r,height:o,margin:a,svgRef:C,children:g.jsx(Net,{series:i,colors:u,dataset:c,children:g.jsx(Wet,{xAxis:s,yAxis:l,dataset:c,children:g.jsx(ftt,{children:g.jsx(Mtt,{children:g.jsx(Htt,{width:r,height:o,ref:x,sx:f,title:p,desc:y,disableAxisListener:v,children:b})})})})})})}),Vtt=["width","height"],Utt=(e,t)=>{const n=m.useRef(null),r=m.useRef(!1),[o,i]=m.useState(0),[a,s]=m.useState(0),l=m.useCallback(()=>{const u=n==null?void 0:n.current;if(!u)return;const f=ea(u).getComputedStyle(u),p=Math.floor(parseFloat(f.height))||0,y=Math.floor(parseFloat(f.width))||0;i(y),s(p)},[]);return m.useEffect(()=>{r.current=!0},[]),pn(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=n.current;if(typeof ResizeObserver>"u")return()=>{};let c;const f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&f.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&f.unobserve(u)}},[l,t,e]),[n,e??o,t??a]},Gtt=ke("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),qtt=m.forwardRef(function(t,n){const{width:r,height:o}=t,i=be(t,Vtt),[a,s,l]=Utt(r,o);return g.jsx(Gtt,{ref:a,ownerState:{width:r,height:o},children:s&&l?g.jsx(Wtt,P({},i,{width:s,height:l,ref:n})):null})}),Ktt=["id","classes","color","highlightScope","slots","slotProps"];function Ytt(e){return yt("MuiLineElement",e)}bt("MuiLineElement",["root","highlighted","faded"]);const Xtt=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Ge(i,Ytt,t)},wq=ke("path",{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?Zc(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));wq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function Qtt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,Ktt),u=P3(i),{item:c}=m.useContext(ml),f=M3(c,{type:"line",seriesId:n},i),p=!f&&T3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=Xtt(y),b=(t=a==null?void 0:a.line)!=null?t:wq,C=Md({elementType:b,externalSlotProps:s==null?void 0:s.line,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return g.jsx(b,P({},C))}function Cq(e){switch(e){case"catmullRom":return aet.alpha(.5);case"linear":return S3;case"monotoneX":return vL;case"monotoneY":return set;case"natural":return uet;case"step":return cet;case"stepBefore":return det;case"stepAfter":return fet;default:return vL}}const Ztt=["slots","slotProps"];function Jtt(e){const{slots:t,slotProps:n}=e,r=be(e,Ztt),o=m.useContext(Ru).line,i=m.useContext(Ou);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return g.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=qg(l[x].scale),M=u[w].scale,I=l[x].data,N=sq().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y(L=>M(L.y[1])),E=Cq(a[b].curve),A=(C=I==null?void 0:I.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return g.jsx(Qtt,{id:b,d:N.curve(E)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const ent=["id","classes","color","highlightScope","slots","slotProps"];function tnt(e){return yt("MuiAreaElement",e)}bt("MuiAreaElement",["root","highlighted","faded"]);const nnt=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Ge(i,tnt,t)},Sq=ke("path",{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Zc(e.color).brighter(1).formatHex():Zc(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));Sq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function rnt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,ent),u=P3(i),{item:c}=m.useContext(ml),f=M3(c,{type:"line",seriesId:n},i),p=!f&&T3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=nnt(y),b=(t=a==null?void 0:a.area)!=null?t:Sq,C=Md({elementType:b,externalSlotProps:s==null?void 0:s.area,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return g.jsx(b,P({},C))}const ont=["slots","slotProps"];function int(e){const{slots:t,slotProps:n}=e,r=be(e,ont),o=m.useContext(Ru).line,i=m.useContext(Ou);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return g.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=qg(l[x].scale),M=u[w].scale,I=l[x].data,N=tet().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y0(L=>L.y&&M(L.y[0])).y1(L=>L.y&&M(L.y[1])),E=Cq(a[b].curve),A=(C=I==null?void 0:I.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return!!a[b].area&&g.jsx(rnt,{id:b,d:N.curve(E)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const ant=["x","y","id","classes","color"];function snt(e){return yt("MuiHighlightElement",e)}bt("MuiHighlightElement",["root"]);const lnt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return Ge(r,snt,t)},unt=ke("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function cnt(e){const{x:t,y:n,id:r,classes:o,color:i}=e,a=be(e,ant),s={id:r,classes:o,color:i,x:t,y:n},l=lnt(s);return g.jsx(unt,P({},a,{ownerState:s,className:l.root,cx:0,cy:0,r:a.r===void 0?5:a.r}))}const dnt=["slots","slotProps"];function fnt(e){var t,n;const{slots:r,slotProps:o}=e,i=be(e,dnt),a=m.useContext(Ru).line,s=m.useContext(Ou),{axis:l}=m.useContext(ml),u=(t=l.x)==null?void 0:t.index;if(u===void 0||a===void 0)return null;const{series:c,stackingGroups:f}=a,{xAxis:p,yAxis:y,xAxisIds:v,yAxisIds:b}=s,C=v[0],x=b[0],w=(n=r==null?void 0:r.lineHighlight)!=null?n:cnt;return g.jsx("g",P({},i,{children:f.flatMap(({ids:S})=>S.flatMap($=>{const{xAxisKey:T=C,yAxisKey:k=x,stackedData:M,data:I,disableHighlight:N}=c[$];if(N||I[u]==null)return null;const E=qg(p[T].scale),A=y[k].scale,z=p[T].data;if(z===void 0)throw new Error(`Axis of id "${T}" should have data property to be able to display a line plot.`);const L=E(z[u]),O=A(M[u][1]);return g.jsx(w,P({id:$,color:c[$].color,x:L,y:O},o==null?void 0:o.lineHighlight),`${$}`)}))}))}const pnt={top:5,bottom:5,left:5,right:5},hnt=m.forwardRef(function(t,n){const{xAxis:r,width:o,height:i,margin:a=pnt,colors:s,sx:l,showTooltip:u,tooltip:c,showHighlight:f,axisHighlight:p,children:y,slots:v,slotProps:b,data:C,plotType:x="line",valueFormatter:w=M=>M.toString(),area:S,curve:$="linear"}=t,k=P({},f&&x==="bar"?{x:"band"}:{x:"none"},p);return g.jsxs(qtt,{ref:n,series:[P({type:x,data:C,valueFormatter:w},x==="bar"?{}:{area:S,curve:$,disableHighlight:!f})],width:o,height:i,margin:a,xAxis:[P({id:eP,scaleType:x==="bar"?"band":"point",data:Array.from({length:C.length},(M,I)=>I),hideTooltip:r===void 0},r)],colors:s,sx:l,disableAxisListener:(!u||(c==null?void 0:c.trigger)!=="axis")&&(k==null?void 0:k.x)==="none"&&(k==null?void 0:k.y)==="none",children:[x==="bar"&&g.jsx(Dtt,{slots:v,slotProps:b,sx:{shapeRendering:"auto"}}),x==="line"&&g.jsxs(m.Fragment,{children:[g.jsx(int,{slots:v,slotProps:b}),g.jsx(Jtt,{slots:v,slotProps:b}),g.jsx(fnt,{slots:v,slotProps:b})]}),g.jsx(ktt,P({},k)),u&&g.jsx(Stt,P({},c,{slotProps:b,slots:v})),y]})});function em({title:e,value:t,icon:n,chartType:r}){const o=Xt(),i=jn(o.palette.mode);return g.jsxs(qe,{sx:{alignItems:"center",backgroundColor:i.primary[400],borderRadius:"1rem",display:"flex",gap:"2rem",flexWrap:"wrap",justifyContent:"space-between",padding:"1rem"},children:[g.jsxs(qe,{sx:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[n,g.jsx(Ze,{variant:"h3",children:e}),g.jsxs(Ze,{variant:"h5",children:["$",t]})]}),g.jsx(qe,{children:g.jsx(hnt,{height:50,width:100,data:[...r],showTooltip:!0,showHighlight:!0,plotType:"bar"})})]})}function mnt(){const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(qe,{sx:{padding:2},children:[g.jsxs(qe,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Overview"}),g.jsx(Ze,{variant:"h6",children:"A snapshot of your financial health"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(em,{title:"Income",value:220350,icon:g.jsx(vbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(em,{title:"Expenses",value:90550,icon:g.jsx(pbe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,5,7,-2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(em,{title:"Balance",value:470560,icon:g.jsx(obe,{sx:{color:t.greenAccent[600]}}),chartType:[1,3,4,5,5,6,6,8]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(em,{title:"Savings",value:86723,icon:g.jsx(dbe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,3,4,-2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(em,{title:"Investments",value:115550,icon:g.jsx(nbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:8,children:g.jsx(zG,{})}),g.jsx(Ft,{item:!0,xs:12,md:4,children:g.jsx(BG,{})}),g.jsx(Ft,{item:!0,xs:12,md:4,children:g.jsx(WG,{})}),g.jsx(Ft,{item:!0,xs:12,md:4,children:g.jsx(NG,{})}),g.jsx(Ft,{item:!0,xs:12,md:4,children:g.jsx(JW,{})})]})]})})}const gnt=boe(x_(g.jsxs(ha,{path:"/",element:g.jsx(qbe,{}),children:[g.jsx(ha,{path:"/",element:g.jsx(mnt,{})}),g.jsx(ha,{path:"/budget",element:g.jsx(HVe,{})}),g.jsx(ha,{path:"/bills",element:g.jsx(pKe,{})}),g.jsx(ha,{path:"/reports",element:g.jsx(Z9,{})}),g.jsx(ha,{path:"/debt",element:g.jsx(yZe,{})}),g.jsx(ha,{path:"/investments",element:g.jsx(WZe,{})}),g.jsx(ha,{path:"/networth",element:g.jsx(oJe,{})}),g.jsx(ha,{path:"/resources",element:g.jsx(Z9,{})}),g.jsx(ha,{path:"/settings",element:g.jsx(kZe,{})})]})));S$.createRoot(document.getElementById("root")).render(g.jsx(ot.StrictMode,{children:g.jsx(coe,{router:gnt})}))});export default vnt(); +`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:l,originalValue:a,options:n,tests:u},r,c=>{if(c.length)return o(c,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:u}=t,c=b=>{o||(o=!0,n(b,a))},f=b=>{o||(o=!0,r(b,a))},p=i.length,y=[];if(!p)return f([]);let v={value:a,originalValue:s,path:l,options:u,schema:this};for(let b=0;bthis.resolve(c)._validate(u,c,p,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,u)=>{No.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new No(l,u,void 0,void 0,i)):a(u)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw No.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new No(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(No.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(No.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ef(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=rf({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=rf({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Wa.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Wa.notNull){return this.nullability(!1,t)}required(t=Wa.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Wa.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=rf(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=WU(t).map(i=>new Sd(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new vb(o,n):vb.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=rf({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Wa.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=rf({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Wa.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=rf({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,c)=>c.findIndex(f=>f.name===l.name)===u)}}}Ea.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Ea.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=yVe(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Ea.prototype[e]=Ea.prototype.oneOf;for(const e of["not","nope"])Ea.prototype[e]=Ea.prototype.notOneOf;let bVe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xVe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,wVe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,CVe=e=>Xs(e)||e===e.trim(),SVe={}.toString();function UU(){return new GU}class GU extends Ea{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===SVe?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Wa.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ha.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ha.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ha.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ha.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ha.email){return this.matches(bVe,{name:"email",message:t,excludeEmptyString:!0})}url(t=ha.url){return this.matches(xVe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ha.uuid){return this.matches(wVe,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ha.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:CVe})}lowercase(t=ha.lowercase){return this.transform(n=>Xs(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Xs(n)||n===n.toLowerCase()})}uppercase(t=ha.uppercase){return this.transform(n=>Xs(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Xs(n)||n===n.toUpperCase()})}}UU.prototype=GU.prototype;let $Ve=e=>e!=+e;function Gk(){return new qU}class qU extends Ea{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!$Ve(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Rl.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Rl.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Rl.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=Rl.positive){return this.moreThan(0,t)}negative(t=Rl.negative){return this.lessThan(0,t)}integer(t=Rl.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Xs(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Xs(o)?o:Math[t](o))}}Gk.prototype=qU.prototype;const _Ve=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function js(e,t=0){return Number(e)||t}function kVe(e){const t=_Ve.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:js(t[1]),month:js(t[2],1)-1,day:js(t[3],1),hour:js(t[4]),minute:js(t[5]),second:js(t[6]),millisecond:t[7]?js(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:js(t[10]),minuteOffset:js(t[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(r=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}let PVe=new Date(""),MVe=e=>Object.prototype.toString.call(e)==="[object Date]";class w2 extends Ea{constructor(){super({type:"date",check(t){return MVe(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=kVe(t),isNaN(t)?w2.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Sd.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Vk.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Vk.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}w2.INVALID_DATE=PVe;w2.prototype;function TVe(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=Tc.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Sd.isRef(s)&&s.isSibling?i(s.path,a):o3(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return sVe.array(Array.from(r),n).reverse()}function P9(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function KU(e){return(t,n)=>P9(e,t)-P9(e,n)}const EVe=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function H1(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=H1(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=H1(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(H1)}):"optional"in e?e.optional():e}const IVe=(e,t)=>{const n=[...Tc.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Tc.getter(Tc.join(n),!0)(e);return!!(o&&r in o)};let M9=e=>Object.prototype.toString.call(e)==="[object Object]";function RVe(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const OVe=KU([]);function YU(e){return new XU(e)}class XU extends Ea{constructor(t){super({type:"object",check(n){return M9(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=OVe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const f of s){let p=i[f],y=f in o;if(p){let v,b=o[f];u.path=(n.path?`${n.path}.`:"")+f,p=p.resolve({value:b,context:n.context,parent:l});let C=p instanceof Ea?p.spec:void 0,x=C==null?void 0:C.strict;if(C!=null&&C.strip){c=c||f in o;continue}v=!n.__validating||!x?p.cast(o[f],u):o[f],v!==void 0&&(l[f]=v)}else y&&!a&&(l[f]=o[f]);(y!==f in l||l[f]!==o[f])&&(c=!0)}return c?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!M9(u)){o(l,u);return}a=a||u;let c=[];for(let f of this._nodes){let p=this.fields[f];!p||Sd.isRef(p)||c.push(p.asNestedTest({options:n,key:f,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:c,value:u,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=TVe(t,n),r._sortErrors=KU(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return H1(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Tc.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return IVe(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(EVe)}noUnknown(t=!0,n=Uk.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=RVe(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Uk.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(l$.camelCase)}snakeCase(){return this.transformKeys(l$.snakeCase)}constantCase(){return this.transformKeys(t=>l$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}YU.prototype=XU.prototype;const AVe={title:"",currentAmount:0,limit:0},FVe=YU().shape({title:UU().required("required"),currentAmount:Gk().required("required"),limit:Gk().required("required")}),LVe=()=>{const e=t=>{console.log(t)};return g.jsxs(Ue,{children:[g.jsx(Ze,{variant:"h4",sx:{textAlign:"center"},children:"Set a new limit"}),g.jsx(FWe,{onSubmit:e,initialValues:AVe,validationSchema:FVe,children:({values:t,errors:n,touched:r,handleBlur:o,handleChange:i,handleSubmit:a})=>g.jsx("form",{onSubmit:a,children:g.jsxs(Ue,{sx:{display:"flex",gap:3,flexDirection:"column",mt:2},children:[g.jsx(ru,{fullWidth:!0,variant:"filled",color:"info",type:"text",label:"Title",onBlur:o,onChange:i,value:t.title,name:"title",error:!!r.title&&!!n.title,helperText:r.title&&n.title}),g.jsxs(Ue,{sx:{display:"flex",gap:2},children:[g.jsx(ru,{variant:"filled",color:"info",type:"number",label:"Current Amount",onBlur:o,onChange:i,value:t.currentAmount,name:"currentAmount",error:!!r.currentAmount&&!!n.currentAmount,helperText:r.currentAmount&&n.currentAmount}),g.jsx(ru,{variant:"filled",color:"info",type:"number",label:"Limit",onBlur:o,onChange:i,value:t.limit,name:"limit",error:!!r.limit&&!!n.limit,helperText:r.limit&&n.limit})]}),g.jsx(fs,{type:"submit",color:"info",variant:"contained",size:"large",children:"Submit"})]})})})]})},DVe={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4};function jVe({content:e}){const[t,n]=m.useState(!1),r=()=>n(!0),o=()=>n(!1),i=Xt(),a=jn(i.palette.mode);return g.jsxs(g.Fragment,{children:[g.jsx(fs,{sx:{backgroundColor:a.primary[500],borderRadius:"1rem",color:a.primary[100],display:"flex",gap:"1rem",justifyContent:"start",padding:"1rem",width:"100%","& .MuiBox-root":{alignItems:"center",display:"flex",gap:"1rem"},"&:hover":{backgroundColor:`${a.primary[700]} !important`}},onClick:r,children:e}),g.jsx(oN,{open:t,onClose:o,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:g.jsx(Ue,{sx:DVe,children:g.jsx(LVe,{})})})]})}const NVe=()=>{const e=Xt(),t=jn(e.palette.mode),n={alignItems:"center",backgroundColor:t.primary[500],borderRadius:"1rem",cursor:"pointer",display:"flex",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(clamp(250px, 16vw, 860px), 1fr))",padding:"1rem",transition:".2s",width:"100%"},r=pAe.map((o,i)=>g.jsxs(Ue,{sx:n,children:[g.jsx($y,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:g.jsx(cU,{})}),g.jsxs(Ue,{children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",sx:{fontWeight:600},children:o.title})}),g.jsxs(Ue,{sx:{display:"flex"},children:[g.jsxs(Ze,{variant:"h6",sx:{color:t.grey[300]},children:[o.currentValue," /"]}),g.jsxs(Ze,{variant:"h6",sx:{fontWeight:600},children:[" ",o.limit]})]})]})]},i));return g.jsxs(g.Fragment,{children:[g.jsx(jVe,{content:g.jsxs(Ue,{children:[g.jsx($y,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:g.jsx(uU,{})}),g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",sx:{fontWeight:600},children:"Set New Limit"})})]})}),r]})},zVe=()=>g.jsx(mr,{title:"Expense Limits",content:g.jsx(cN,{sx:{display:"grid",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",height:"100%",overflowY:"scroll",overflowX:"hidden",paddingRight:"1rem"},children:g.jsx(NVe,{})}),height:500}),BVe=[...hAe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function HVe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:mAe,columns:BVe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const WVe=()=>g.jsx(mr,{title:"Savings",content:g.jsx(HVe,{}),height:500});function VVe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Budget"}),g.jsx(Ze,{variant:"h6",children:"Track and control your spending"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:6,lg:8,children:g.jsx(Gje,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:4,children:g.jsx(ZW,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(zVe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(WVe,{})})]})]})})}const UVe={inputProps:{"aria-label":"Color switch demo"}};function T9(){return g.jsx(g.Fragment,{children:g.jsx($N,{...UVe,defaultChecked:!0,color:"secondary"})})}const GVe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"billName",headerName:"Bill Name",type:"string",flex:1,minWidth:160,maxWidth:160},{field:"vendor",headerName:"Vendor",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"status",headerName:"Status",type:"string",flex:1,minWidth:110,maxWidth:110},{field:"paymentDate",headerName:"Payment Date",type:"string",sortable:!0,flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",description:"The date by which the bill payment is due.",type:"string",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",type:"number",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"frequency",headerName:"Frequency",type:"string",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"paymentMethod",headerName:"Payment Method",type:"string",sortable:!0,flex:1,minWidth:160,maxWidth:160},{field:"category",headerName:"Category",type:"string",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"notes",headerName:"Notes",type:"string",sortable:!1,flex:1,minWidth:160,maxWidth:190}],qVe=[{id:1,billName:"Electricity",vendor:"ABC Electric",status:"Paid",paymentDate:"2021-01-12",dueDate:"2021-02-01",amount:100,frequency:"Monthly",paymentMethod:"Credit Card",category:"Utilities",notes:"Usage charge for January"},{id:2,billName:"Phone",vendor:"XYZ Telecom",status:"Unpaid",paymentDate:null,dueDate:"2021-02-15",amount:50,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"Includes data and calling plan"},{id:3,billName:"Rent",vendor:"XYZ Apartments",status:"Unpaid",paymentDate:null,dueDate:"2021-03-01",amount:1e3,frequency:"Monthly",paymentMethod:"Bank Transfer",category:"Housing",notes:"Due at the beginning of each month"},{id:4,billName:"Internet",vendor:"XYZ Telecom",status:"Paid",paymentDate:"2021-01-18",dueDate:"2021-02-05",amount:60,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"High-speed unlimited plan"},{id:5,billName:"Gym Membership",vendor:"Fitness Club",status:"Paid",paymentDate:"2021-01-25",dueDate:"2021-02-10",amount:80,frequency:"Monthly",paymentMethod:"Credit Card",category:"Health & Fitness",notes:"Access to gym and fitness classes"},{id:6,billName:"Insurance",vendor:"ABC Insurance",status:"Unpaid",paymentDate:null,dueDate:"2021-03-20",amount:200,frequency:"Quarterly",paymentMethod:"Cheque",category:"Insurance",notes:"Car insurance premium"},{id:7,billName:"Credit Card",vendor:"Bank XYZ",status:"Unpaid",paymentDate:null,dueDate:"2021-02-28",amount:150,frequency:"Monthly",paymentMethod:"Online Payment",category:"Credit Card",notes:"Last month's expenses"},{id:8,billName:"Subscription",vendor:"XYZ Streaming",status:"Paid",paymentDate:"2021-01-15",dueDate:"2021-02-01",amount:15,frequency:"Monthly",paymentMethod:"Online Payment",category:"Entertainment",notes:"Access to movies and shows"}],KVe=[{id:"Rent",color:"hsl(261, 70%, 50%)",data:[{x:"Jan",y:400},{x:"Feb",y:400},{x:"Mar",y:400},{x:"Apr",y:400},{x:"May",y:400},{x:"Jun",y:500},{x:"Jul",y:500},{x:"Aug",y:500},{x:"Sep",y:500},{x:"Oct",y:500},{x:"Nov",y:500},{x:"Dec",y:500}]},{id:"Utilities",color:"hsl(111, 70%, 50%)",data:[{x:"Jan",y:525},{x:"Feb",y:600},{x:"Mar",y:350},{x:"Apr",y:385},{x:"May",y:410},{x:"Jun",y:470},{x:"Jul",y:510},{x:"Aug",y:430},{x:"Sep",y:590},{x:"Oct",y:550},{x:"Nov",y:450},{x:"Dec",y:590}]},{id:"Internet",color:"hsl(20, 70%, 50%)",data:[{x:"Jan",y:489},{x:"Feb",y:437},{x:"Mar",y:471},{x:"Apr",y:578},{x:"May",y:550},{x:"Jun",y:536},{x:"Jul",y:675},{x:"Aug",y:613},{x:"Sep",y:400},{x:"Oct",y:675},{x:"Nov",y:684},{x:"Dec",y:450}]},{id:"Phone",color:"hsl(258, 70%, 50%)",data:[{x:"Jan",y:220},{x:"Feb",y:284},{x:"Mar",y:217},{x:"Apr",y:312},{x:"May",y:344},{x:"Jun",y:339},{x:"Jul",y:319},{x:"Aug",y:597},{x:"Sep",y:553},{x:"Oct",y:551},{x:"Nov",y:593},{x:"Dec",y:656}]},{id:"Other",color:"hsl(101, 70%, 50%)",data:[{x:"Jan",y:622},{x:"Feb",y:610},{x:"Mar",y:635},{x:"Apr",y:653},{x:"May",y:657},{x:"Jun",y:700},{x:"Jul",y:696},{x:"Aug",y:688},{x:"Sep",y:670},{x:"Oct",y:652},{x:"Nov",y:535},{x:"Dec",y:666}]}],YVe=[...GVe,{field:"notification",headerName:"Notification",type:"boolean",sortable:!0,flex:1,minWidth:130,maxWidth:130,renderCell:()=>g.jsx(Ue,{children:g.jsx(T9,{})})},{field:"recordPayment",headerName:"Record Payment",sortable:!1,flex:1,minWidth:220,maxWidth:220,renderCell:e=>g.jsx(Ue,{children:g.jsx(fs,{variant:"contained",size:"small",color:"secondary",tabIndex:e.hasFocus?0:-1,children:"Make a payment record"})})},{field:"autoPay",headerName:"Auto Pay",sortable:!1,description:"Indicate whether the bill is set up for automatic payment or requires manual payment.",flex:1,minWidth:130,maxWidth:130,renderCell:()=>g.jsx(Ue,{children:g.jsx(T9,{})})},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function XVe(){return g.jsx(Ue,{sx:{height:400,width:"100%"},children:g.jsx(_s,{rows:qVe,columns:YVe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const QVe=()=>g.jsx(mr,{title:"Bills Summary",content:g.jsx(XVe,{}),height:500});function ZVe(){}var JVe=ZVe,u$=bW,eUe=JVe,tUe=uT,nUe=1/0,rUe=u$&&1/tUe(new u$([,-0]))[1]==nUe?function(e){return new u$(e)}:eUe,oUe=rUe,iUe=eT,aUe=GH,sUe=qH,lUe=tT,uUe=oUe,cUe=uT,dUe=200;function fUe(e,t,n){var r=-1,o=aUe,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=sUe;else if(i>=dUe){var u=t?null:uUe(e);if(u)return cUe(u);a=!1,o=lUe,l=new iUe}else l=t?[]:s;e:for(;++rt||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var AGe=OGe,c$=dw,FGe=g0,LGe=eG,DGe=PGe,jGe=TGe,NGe=Gp,zGe=AGe,BGe=uw,HGe=la;function WGe(e,t,n){t.length?t=c$(t,function(i){return HGe(i)?function(a){return FGe(a,i.length===1?i[0]:i)}:i}):t=[BGe];var r=-1;t=c$(t,NGe(LGe));var o=DGe(e,function(i,a,s){var l=c$(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return jGe(o,function(i,a){return zGe(i,a,n)})}var VGe=WGe,UGe=pW,GGe=VGe,qGe=M5,R9=hB,KGe=qGe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&R9(e,t[0],t[1])?t=[]:n>2&&R9(t[0],t[1],t[2])&&(t=[t[0]]),GGe(e,UGe(t,1),[])}),YGe=KGe;const XGe=Or(YGe);var QGe=ud,ZGe=Ss,JGe="[object Date]";function eqe(e){return ZGe(e)&&QGe(e)==JGe}var tqe=eqe,nqe=tqe,rqe=Gp,O9=sw,A9=O9&&O9.isDate,oqe=A9?rqe(A9):nqe,iqe=oqe;const aqe=Or(iqe);function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(x=p.align[C?"left":"right"],w=p.baseline.center):(o==="after"&&l>0||o==="before"&&l<0)&&(x=p.align[C?"right":"left"],w=p.baseline.center)):(t=function(S){var $;return{x:0,y:($=y(S))!=null?$:0}},v.lineX=a*(o==="after"?1:-1),b.textX=(a+s)*(o==="after"?1:-1),x=o==="after"?p.align.left:p.align.right),{ticks:f.map(function(S){return Ia({key:S instanceof Date?""+S.valueOf():""+S,value:S},t(S),v,b)}),textAlign:x,textBaseline:w}},sG=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=v0(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Pu(e)},qk=function(e){var t,n=e.width,r=e.height,o=e.scale,i=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||iG(o,a)),l="bandwidth"in o?rG(o):o,u=i==="x"?s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:(f=l(c))!=null?f:0,x2:(p=l(c))!=null?p:0,y1:0,y2:r}}):s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:0,x2:n,y1:(f=l(c))!=null?f:0,y2:(p=l(c))!=null?p:0}});return u},kqe=m.memo(function(e){var t,n=e.value,r=e.format,o=e.lineX,i=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,u=e.animatedProps,c=On(),f=(t=r==null?void 0:r(n))!=null?t:n,p=m.useMemo(function(){var y={opacity:u.opacity};return a?{style:Ia({},y,{cursor:"pointer"}),onClick:function(v){return a(v,f)}}:{style:y}},[u.opacity,a,f]);return g.jsxs(In.g,Ia({transform:u.transform},p,{children:[g.jsx("line",{x1:0,x2:o,y1:0,y2:i,style:c.axis.ticks.line}),g.jsx(In.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.axis.ticks.text,children:""+f})]}))}),Pqe=m.memo(function(e){var t=e.axis,n=e.scale,r=e.x,o=r===void 0?0:r,i=e.y,a=i===void 0?0:i,s=e.length,l=e.ticksPosition,u=e.tickValues,c=e.tickSize,f=c===void 0?5:c,p=e.tickPadding,y=p===void 0?5:p,v=e.tickRotation,b=v===void 0?0:v,C=e.format,x=e.renderTick,w=x===void 0?kqe:x,S=e.legend,$=e.legendPosition,T=$===void 0?"end":$,k=e.legendOffset,M=k===void 0?0:k,I=e.onClick,N=e.ariaHidden,E=On(),A=m.useMemo(function(){return sG(C,n)},[C,n]),z=aG({axis:t,scale:n,ticksPosition:l,tickValues:u,tickSize:f,tickPadding:y,tickRotation:b}),L=z.ticks,O=z.textAlign,D=z.textBaseline,H=null;if(S!==void 0){var B,j=0,W=0,U=0;t==="y"?(U=-90,j=M,T==="start"?(B="start",W=s):T==="middle"?(B="middle",W=s/2):T==="end"&&(B="end")):(W=M,T==="start"?B="start":T==="middle"?(B="middle",j=s/2):T==="end"&&(B="end",j=s)),H=g.jsx("text",{transform:"translate("+j+", "+W+") rotate("+U+")",textAnchor:B,style:Ia({dominantBaseline:"central"},E.axis.legend.text),children:S})}var Z=To(),Y=Z.animate,se=Z.config,Q=xs({transform:"translate("+o+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:se,immediate:!Y}),ne=ld(L,{keys:function(re){return re.key},initial:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},from:function(re){return{opacity:0,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},enter:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},update:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},leave:{opacity:0},config:se,immediate:!Y});return g.jsxs(In.g,{transform:Q.transform,"aria-hidden":N,children:[ne(function(re,ge,xe,fe){return m.createElement(w,Ia({tickIndex:fe,format:A,rotate:b,textBaseline:D,textAnchor:O,animatedProps:re},ge,I?{onClick:I}:{}))}),g.jsx(In.line,{style:E.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),H]})}),Mqe={ticksPosition:R.oneOf(["before","after"]),tickValues:R.oneOfType([R.number,R.arrayOf(R.oneOfType([R.number,R.string,R.instanceOf(Date)])),R.string]),tickSize:R.number,tickPadding:R.number,tickRotation:R.number,format:R.oneOfType([R.func,R.string]),renderTick:R.func,legend:R.node,legendPosition:R.oneOf(["start","middle","end"]),legendOffset:R.number,ariaHidden:R.bool},o1=R.shape(Mqe),lG=["top","right","bottom","left"],uG=m.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,o=e.height,i={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return g.jsx(g.Fragment,{children:lG.map(function(a){var s=i[a];if(!s)return null;var l=a==="top"||a==="bottom";return g.jsx(Pqe,Ia({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?o:0,scale:l?t:n,length:l?r:o,ticksPosition:a==="top"||a==="left"?"before":"after"}),a)})})}),Tqe=m.memo(function(e){var t=e.animatedProps,n=On();return g.jsx(In.line,Ia({},t,n.grid.line))}),D9=m.memo(function(e){var t=e.lines,n=To(),r=n.animate,o=n.config,i=ld(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:o,immediate:!r});return g.jsx("g",{children:i(function(a,s){return m.createElement(Tqe,Ia({},s,{key:s.key,animatedProps:a}))})})}),cG=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,o=e.yScale,i=e.xValues,a=e.yValues,s=m.useMemo(function(){return!!r&&qk({width:t,height:n,scale:r,axis:"x",values:i})},[r,i,t,n]),l=m.useMemo(function(){return!!o&&qk({width:t,height:n,scale:o,axis:"y",values:a})},[n,t,o,a]);return g.jsxs(g.Fragment,{children:[s&&g.jsx(D9,{lines:s}),l&&g.jsx(D9,{lines:l})]})}),Eqe=function(e,t){var n,r=t.axis,o=t.scale,i=t.x,a=i===void 0?0:i,s=t.y,l=s===void 0?0:s,u=t.length,c=t.ticksPosition,f=t.tickValues,p=t.tickSize,y=p===void 0?5:p,v=t.tickPadding,b=v===void 0?5:v,C=t.tickRotation,x=C===void 0?0:C,w=t.format,S=t.legend,$=t.legendPosition,T=$===void 0?"end":$,k=t.legendOffset,M=k===void 0?0:k,I=t.theme,N=aG({axis:r,scale:o,ticksPosition:c,tickValues:f,tickSize:y,tickPadding:b,tickRotation:x,engine:"canvas"}),E=N.ticks,A=N.textAlign,z=N.textBaseline;e.save(),e.translate(a,l),e.textAlign=A,e.textBaseline=z,e.font=(I.axis.ticks.text.fontWeight?I.axis.ticks.text.fontWeight+" ":"")+I.axis.ticks.text.fontSize+"px "+I.axis.ticks.text.fontFamily,((n=I.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(I.axis.domain.line.strokeWidth),e.lineCap="square",I.axis.domain.line.stroke&&(e.strokeStyle=I.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?u:0,r==="x"?0:u),e.stroke());var L=typeof w=="function"?w:function(j){return""+j};if(E.forEach(function(j){var W;((W=I.axis.ticks.line.strokeWidth)!=null?W:0)>0&&(e.lineWidth=Number(I.axis.ticks.line.strokeWidth),e.lineCap="square",I.axis.ticks.line.stroke&&(e.strokeStyle=I.axis.ticks.line.stroke),e.beginPath(),e.moveTo(j.x,j.y),e.lineTo(j.x+j.lineX,j.y+j.lineY),e.stroke());var U=L(j.value);e.save(),e.translate(j.x+j.textX,j.y+j.textY),e.rotate(Qi(x)),I.axis.ticks.text.fill&&(e.fillStyle=I.axis.ticks.text.fill),e.fillText(String(U),0,0),e.restore()}),S!==void 0){var O=0,D=0,H=0,B="center";r==="y"?(H=-90,O=M,T==="start"?(B="start",D=u):T==="middle"?(B="center",D=u/2):T==="end"&&(B="end")):(D=M,T==="start"?B="start":T==="middle"?(B="center",O=u/2):T==="end"&&(B="end",O=u)),e.translate(O,D),e.rotate(Qi(H)),e.font=(I.axis.legend.text.fontWeight?I.axis.legend.text.fontWeight+" ":"")+I.axis.legend.text.fontSize+"px "+I.axis.legend.text.fontFamily,I.axis.legend.text.fill&&(e.fillStyle=I.axis.legend.text.fill),e.textAlign=B,e.textBaseline="middle",e.fillText(S,0,0)}e.restore()},dG=function(e,t){var n=t.xScale,r=t.yScale,o=t.width,i=t.height,a=t.top,s=t.right,l=t.bottom,u=t.left,c=t.theme,f={top:a,right:s,bottom:l,left:u};lG.forEach(function(p){var y=f[p];if(!y)return null;var v=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",C=v?n:r,x=sG(y.format,C);Eqe(e,Ia({},y,{axis:v?"x":"y",x:p==="right"?o:0,y:p==="bottom"?i:0,scale:C,format:x,length:v?o:i,ticksPosition:b,theme:c}))})},bb=function(e,t){var n=t.width,r=t.height,o=t.scale,i=t.axis,a=t.values;qk({width:n,height:r,scale:o,axis:i,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})};const j9=Math.pow(2,-52),i1=new Uint32Array(512);class xb{static from(t,n=Fqe,r=Lqe){const o=t.length,i=new Float64Array(o*2);for(let a=0;a>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:o,_hullHash:i}=this,a=t.length>>1;let s=1/0,l=1/0,u=-1/0,c=-1/0;for(let E=0;Eu&&(u=A),z>c&&(c=z),this._ids[E]=E}const f=(s+u)/2,p=(l+c)/2;let y=1/0,v,b,C;for(let E=0;E0&&(b=E,y=A)}let S=t[2*b],$=t[2*b+1],T=1/0;for(let E=0;EL&&(E[A++]=O,L=this._dists[O])}this.hull=E.subarray(0,A),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(a1(x,w,S,$,k,M)){const E=b,A=S,z=$;b=C,S=k,$=M,C=E,k=A,M=z}const I=Aqe(x,w,S,$,k,M);this._cx=I.x,this._cy=I.y;for(let E=0;E0&&Math.abs(O-A)<=j9&&Math.abs(D-z)<=j9||(A=O,z=D,L===v||L===b||L===C))continue;let H=0;for(let Z=0,Y=this._hashKey(O,D);Z0?3-n:1+n)/4}function d$(e,t,n,r){const o=e-n,i=t-r;return o*o+i*i}function f$(e,t,n,r,o,i){const a=(r-t)*(o-e),s=(n-e)*(i-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function a1(e,t,n,r,o,i){return(f$(o,i,e,t,n,r)||f$(e,t,n,r,o,i)||f$(n,r,o,i,e,t))<0}function Rqe(e,t,n,r,o,i,a,s){const l=e-a,u=t-s,c=n-a,f=r-s,p=o-a,y=i-s,v=l*l+u*u,b=c*c+f*f,C=p*p+y*y;return l*(f*C-b*y)-u*(c*C-b*p)+v*(c*y-f*p)<0}function Oqe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=(u*c-s*f)*p,v=(a*f-l*c)*p;return y*y+v*v}function Aqe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=e+(u*c-s*f)*p,v=t+(a*f-l*c)*p;return{x:y,y:v}}function If(e,t,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){const i=e[o],a=t[i];let s=o-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=i}else{const o=n+r>>1;let i=n+1,a=r;Zh(e,o,i),t[e[n]]>t[e[r]]&&Zh(e,n,r),t[e[i]]>t[e[r]]&&Zh(e,i,r),t[e[n]]>t[e[i]]&&Zh(e,n,i);const s=e[i],l=t[s];for(;;){do i++;while(t[e[i]]l);if(a=a-n?(If(e,t,i,r),If(e,t,n,a-1)):(If(e,t,n,a-1),If(e,t,i,r))}}function Zh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Fqe(e){return e[0]}function Lqe(e){return e[1]}const N9=1e-6;let cc=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const o=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${i}`:(Math.abs(this._x1-o)>N9||Math.abs(this._y1-i)>N9)&&(this._+="L"+o+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=o},${this._y1=i}`)}rect(t,n,r,o){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+o}h${-r}Z`}value(){return this._||null}};class Kk{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Dqe{constructor(t,[n,r,o,i]=[0,0,960,500]){if(!((o=+o)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=o,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:o}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let y=0,v=0,b=r.length,C,x;y1;)i-=2;for(let a=2;a4)for(let a=0;a0){if(n>=this.ymax)return null;(a=(this.ymax-n)/o)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}}const jqe=2*Math.PI,af=Math.pow;function Nqe(e){return e[0]}function zqe(e){return e[1]}function Bqe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function Hqe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class i3{static from(t,n=Nqe,r=zqe,o){return new i3("length"in t?Wqe(t,n,r,o):Float64Array.from(Vqe(t,n,r,o)))}constructor(t){this._delaunator=new xb(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Bqe(t)){this.collinear=Int32Array.from({length:n.length/2},(p,y)=>y).sort((p,y)=>n[2*p]-n[2*y]||n[2*p+1]-n[2*y+1]);const l=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*l],n[2*l+1],n[2*u],n[2*u+1]],f=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let p=0,y=n.length/2;p0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],this.triangles[1]=o[1],this.triangles[2]=o[1],a[o[0]]=1,o.length===2&&(a[o[1]]=0))}voronoi(t){return new Dqe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:o,halfedges:i,triangles:a,collinear:s}=this;if(s){const f=s.indexOf(t);f>0&&(yield s[f-1]),f=0&&i!==r&&i!==o;)r=i;return i}_step(t,n,r){const{inedges:o,hull:i,_hullIndex:a,halfedges:s,triangles:l,points:u}=this;if(o[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,f=af(n-u[t*2],2)+af(r-u[t*2+1],2);const p=o[t];let y=p;do{let v=l[y];const b=af(n-u[v*2],2)+af(r-u[v*2+1],2);if(b-1?re.filter(function(ge){return ge!==ne}):[].concat(re,[ne])})},[]),se=function(ne){var re=ne.series,ge=ne.getPointColor,xe=ne.getPointBorderColor,fe=ne.formatX,Se=ne.formatY;return m.useMemo(function(){return re.reduce(function(de,ie){return[].concat(de,ie.data.filter(function(Pe){return Pe.position.x!==null&&Pe.position.y!==null}).map(function(Pe,$e){var me={id:ie.id+"."+$e,index:de.length+$e,serieId:ie.id,serieColor:ie.color,x:Pe.position.x,y:Pe.position.y};return me.color=ge(ie),me.borderColor=xe(me),me.data=Zr({},Pe.data,{xFormatted:fe(Pe.data.x),yFormatted:Se(Pe.data.y)}),me}))},[])},[re,ge,xe,fe,Se])}({series:Z,getPointColor:E,getPointBorderColor:A,formatX:k,formatY:M}),Q=rKe({enableSlices:T,points:se,width:l,height:u});return{legendData:U,toggleSerie:Y,lineGenerator:tKe({curve:y}),areaGenerator:nKe({curve:y,yScale:B,areaBaselineValue:b}),getColor:I,series:Z,xScale:H,yScale:B,slices:Q,points:se}},yG=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,o=e.fill,i=e.path,a=To(),s=a.animate,l=a.config,u=hT(i),c=xs({color:r,config:l,immediate:!s});return g.jsx(In.path,{d:u,fill:o||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};yG.propTypes={areaBlendMode:mT.isRequired,areaOpacity:R.number.isRequired,color:R.string,fill:R.string,path:R.string.isRequired};var bG=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,o=e.lines.slice(0).reverse();return g.jsx("g",{children:o.map(function(i){return g.jsx(yG,Zr({path:t(i.data.map(function(a){return a.position}))},Zr({areaOpacity:n,areaBlendMode:r},i)),i.id)})})};bG.propTypes={areaGenerator:R.func.isRequired,areaOpacity:R.number.isRequired,areaBlendMode:mT.isRequired,lines:R.arrayOf(R.object).isRequired};var oKe=m.memo(bG),xG=function(e){var t=e.lineGenerator,n=e.points,r=e.color,o=e.thickness,i=m.useMemo(function(){return t(n)},[t,n]),a=hT(i);return g.jsx(In.path,{d:a,fill:"none",strokeWidth:o,stroke:r})};xG.propTypes={points:R.arrayOf(R.shape({x:R.oneOfType([R.string,R.number]),y:R.oneOfType([R.string,R.number])})),lineGenerator:R.func.isRequired,color:R.string.isRequired,thickness:R.number.isRequired};var iKe=m.memo(xG),wG=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(o){var i=o.id,a=o.data,s=o.color;return g.jsx(iKe,{id:i,points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},i)})};wG.propTypes={lines:R.arrayOf(R.shape({id:R.oneOfType([R.string,R.number]).isRequired,color:R.string.isRequired,data:R.arrayOf(R.shape({data:R.shape({x:R.oneOfType([R.string,R.number,R.instanceOf(Date)]),y:R.oneOfType([R.string,R.number,R.instanceOf(Date)])}).isRequired,position:R.shape({x:R.number,y:R.number}).isRequired})).isRequired})).isRequired,lineWidth:R.number.isRequired,lineGenerator:R.func.isRequired};var aKe=m.memo(wG),CG=function(e){var t=e.slice,n=e.axis,r=e.debug,o=e.tooltip,i=e.isCurrent,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.onClick,f=Np(),p=f.showTooltipFromEvent,y=f.hideTooltip,v=m.useCallback(function(w){p(m.createElement(o,{slice:t,axis:n}),w,"right"),a(t),s&&s(t,w)},[p,o,t,s]),b=m.useCallback(function(w){p(m.createElement(o,{slice:t,axis:n}),w,"right"),l&&l(t,w)},[p,o,t,l]),C=m.useCallback(function(w){y(),a(null),u&&u(t,w)},[y,t,u]),x=m.useCallback(function(w){c&&c(t,w)},[t,c]);return g.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:r?1:0,strokeOpacity:.75,fill:"red",fillOpacity:i&&r?.35:0,onMouseEnter:v,onMouseMove:b,onMouseLeave:C,onClick:x,"data-testid":"slice-"+t.id})};CG.propTypes={slice:R.object.isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]),isCurrent:R.bool.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var sKe=m.memo(CG),SG=function(e){var t=e.slices,n=e.axis,r=e.debug,o=e.height,i=e.tooltip,a=e.current,s=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.onClick;return t.map(function(p){return g.jsx(sKe,{slice:p,axis:n,debug:r,height:o,tooltip:i,setCurrent:s,isCurrent:a!==null&&a.id===p.id,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f},p.id)})};SG.propTypes={slices:R.arrayOf(R.shape({id:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,x:R.number.isRequired,y:R.number.isRequired,points:R.arrayOf(R.object).isRequired})).isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]).isRequired,current:R.object,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var lKe=m.memo(SG),$G=function(e){var t=e.points,n=e.symbol,r=e.size,o=e.borderWidth,i=e.enableLabel,a=e.label,s=e.labelYOffset,l=On(),u=VOe(a),c=t.slice(0).reverse().map(function(f){return{id:f.id,x:f.x,y:f.y,datum:f.data,fill:f.color,stroke:f.borderColor,label:i?u(f.data):null}});return g.jsx("g",{children:c.map(function(f){return g.jsx(BOe,{x:f.x,y:f.y,datum:f.datum,symbol:n,size:r,color:f.fill,borderWidth:o,borderColor:f.stroke,label:f.label,labelYOffset:s,theme:l},f.id)})})};$G.propTypes={points:R.arrayOf(R.object),symbol:R.func,size:R.number.isRequired,color:R.func.isRequired,borderWidth:R.number.isRequired,borderColor:R.func.isRequired,enableLabel:R.bool.isRequired,label:R.oneOfType([R.string,R.func]).isRequired,labelYOffset:R.number};var uKe=m.memo($G),_G=function(e){var t=e.points,n=e.width,r=e.height,o=e.margin,i=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,u=e.onClick,c=e.tooltip,f=e.debug,p=Np(),y=p.showTooltipAt,v=p.hideTooltip,b=m.useCallback(function(S,$){y(m.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),a&&a(S,$)},[i,y,c,a,o]),C=m.useCallback(function(S,$){y(m.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),s&&s(S,$)},[i,y,c,s]),x=m.useCallback(function(S,$){v(),i(null),l&&l(S,$)},[v,i,l]),w=m.useCallback(function(S,$){u&&u(S,$)},[u]);return g.jsx(qqe,{nodes:t,width:n,height:r,onMouseEnter:b,onMouseMove:C,onMouseLeave:x,onClick:w,debug:f})};_G.propTypes={points:R.arrayOf(R.object).isRequired,width:R.number.isRequired,height:R.number.isRequired,margin:R.object.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func,tooltip:R.oneOfType([R.func,R.object]).isRequired,debug:R.bool.isRequired};var cKe=m.memo(_G),Yk=function(e){var t=e.data,n=e.xScale,r=e.xFormat,o=e.yScale,i=e.yFormat,a=e.layers,s=e.curve,l=e.areaBaselineValue,u=e.colors,c=e.margin,f=e.width,p=e.height,y=e.axisTop,v=e.axisRight,b=e.axisBottom,C=e.axisLeft,x=e.enableGridX,w=e.enableGridY,S=e.gridXValues,$=e.gridYValues,T=e.lineWidth,k=e.enableArea,M=e.areaOpacity,I=e.areaBlendMode,N=e.enablePoints,E=e.pointSymbol,A=e.pointSize,z=e.pointColor,L=e.pointBorderWidth,O=e.pointBorderColor,D=e.enablePointLabel,H=e.pointLabel,B=e.pointLabelYOffset,j=e.defs,W=e.fill,U=e.markers,Z=e.legends,Y=e.isInteractive,se=e.useMesh,Q=e.debugMesh,ne=e.onMouseEnter,re=e.onMouseMove,ge=e.onMouseLeave,xe=e.onClick,fe=e.tooltip,Se=e.enableSlices,de=e.debugSlices,ie=e.sliceTooltip,Pe=e.enableCrosshair,$e=e.crosshairType,me=e.role,ue=b0(f,p,c),ce=ue.margin,Te=ue.innerWidth,Le=ue.innerHeight,Re=ue.outerWidth,Oe=ue.outerHeight,K=vG({data:t,xScale:n,xFormat:r,yScale:o,yFormat:i,width:Te,height:Le,colors:u,curve:s,areaBaselineValue:l,pointColor:z,pointBorderColor:O,enableSlices:Se}),ee=K.legendData,pe=K.toggleSerie,ye=K.lineGenerator,De=K.areaGenerator,Ae=K.series,Ee=K.xScale,Ce=K.yScale,Qe=K.slices,Ct=K.points,et=On(),Be=ms(z,et),te=ms(O,et),X=m.useState(null),oe=X[0],Ie=X[1],Ve=m.useState(null),Ke=Ve[0],at=Ve[1],Je={grid:g.jsx(cG,{theme:et,width:Te,height:Le,xScale:x?Ee:null,yScale:w?Ce:null,xValues:S,yValues:$},"grid"),markers:g.jsx(FW,{markers:U,width:Te,height:Le,xScale:Ee,yScale:Ce,theme:et},"markers"),axes:g.jsx(uG,{xScale:Ee,yScale:Ce,width:Te,height:Le,theme:et,top:y,right:v,bottom:b,left:C},"axes"),areas:null,lines:g.jsx(aKe,{lines:Ae,lineGenerator:ye,lineWidth:T},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:Z.map(function(_t,ht){return g.jsx(xT,Zr({},_t,{containerWidth:Te,containerHeight:Le,data:_t.data||ee,theme:et,toggleSerie:_t.toggleSerie?pe:void 0}),"legend."+ht)})},nt=gT(j,Ae,W);return k&&(Je.areas=g.jsx(oKe,{areaGenerator:De,areaOpacity:M,areaBlendMode:I,lines:Ae},"areas")),Y&&Se!==!1&&(Je.slices=g.jsx(lKe,{slices:Qe,axis:Se,debug:de,height:Le,tooltip:ie,current:Ke,setCurrent:at,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe},"slices")),N&&(Je.points=g.jsx(uKe,{points:Ct,symbol:E,size:A,color:Be,borderWidth:L,borderColor:te,enableLabel:D,label:H,labelYOffset:B},"points")),Y&&Pe&&(oe!==null&&(Je.crosshair=g.jsx(rk,{width:Te,height:Le,x:oe.x,y:oe.y,type:$e},"crosshair")),Ke!==null&&(Je.crosshair=g.jsx(rk,{width:Te,height:Le,x:Ke.x,y:Ke.y,type:Se},"crosshair"))),Y&&se&&Se===!1&&(Je.mesh=g.jsx(cKe,{points:Ct,width:Te,height:Le,margin:ce,current:oe,setCurrent:Ie,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe,tooltip:fe,debug:Q},"mesh")),g.jsx(e2,{defs:nt,width:Re,height:Oe,margin:ce,role:me,children:a.map(function(_t,ht){return typeof _t=="function"?g.jsx(m.Fragment,{children:_t(Zr({},e,{innerWidth:Te,innerHeight:Le,series:Ae,slices:Qe,points:Ct,xScale:Ee,yScale:Ce,lineGenerator:ye,areaGenerator:De,currentPoint:oe,setCurrentPoint:Ie,currentSlice:Ke,setCurrentSlice:at}))},ht):Je[_t]})})};Yk.propTypes=Zqe,Yk.defaultProps=zs;var dKe=LW(Yk),M0=function(e){return g.jsx(Jp,{children:function(t){var n=t.width,r=t.height;return g.jsx(dKe,Zr({width:n,height:r},e))}})},Xk=function(e){var t=e.width,n=e.height,r=e.margin,o=e.pixelRatio,i=e.data,a=e.xScale,s=e.xFormat,l=e.yScale,u=e.yFormat,c=e.curve,f=e.layers,p=e.colors,y=e.lineWidth,v=e.enableArea,b=e.areaBaselineValue,C=e.areaOpacity,x=e.enablePoints,w=e.pointSize,S=e.pointColor,$=e.pointBorderWidth,T=e.pointBorderColor,k=e.enableGridX,M=e.gridXValues,I=e.enableGridY,N=e.gridYValues,E=e.axisTop,A=e.axisRight,z=e.axisBottom,L=e.axisLeft,O=e.legends,D=e.isInteractive,H=e.debugMesh,B=e.onMouseLeave,j=e.onClick,W=e.tooltip,U=e.canvasRef,Z=m.useRef(null),Y=b0(t,n,r),se=Y.margin,Q=Y.innerWidth,ne=Y.innerHeight,re=Y.outerWidth,ge=Y.outerHeight,xe=On(),fe=m.useState(null),Se=fe[0],de=fe[1],ie=vG({data:i,xScale:a,xFormat:s,yScale:l,yFormat:u,width:Q,height:ne,colors:p,curve:c,areaBaselineValue:b,pointColor:S,pointBorderColor:T}),Pe=ie.lineGenerator,$e=ie.areaGenerator,me=ie.series,ue=ie.xScale,ce=ie.yScale,Te=ie.points,Le=fG({points:Te,width:Q,height:ne,debug:H}),Re=Le.delaunay,Oe=Le.voronoi;m.useEffect(function(){U&&(U.current=Z.current),Z.current.width=re*o,Z.current.height=ge*o;var Ce=Z.current.getContext("2d");Ce.scale(o,o),Ce.fillStyle=xe.background,Ce.fillRect(0,0,re,ge),Ce.translate(se.left,se.top),f.forEach(function(Qe){if(typeof Qe=="function"&&Qe({ctx:Ce,innerWidth:Q,innerHeight:ne,series:me,points:Te,xScale:ue,yScale:ce,lineWidth:y,lineGenerator:Pe,areaGenerator:$e,currentPoint:Se,setCurrentPoint:de}),Qe==="grid"&&xe.grid.line.strokeWidth>0&&(Ce.lineWidth=xe.grid.line.strokeWidth,Ce.strokeStyle=xe.grid.line.stroke,k&&bb(Ce,{width:Q,height:ne,scale:ue,axis:"x",values:M}),I&&bb(Ce,{width:Q,height:ne,scale:ce,axis:"y",values:N})),Qe==="axes"&&dG(Ce,{xScale:ue,yScale:ce,width:Q,height:ne,top:E,right:A,bottom:z,left:L,theme:xe}),Qe==="areas"&&v===!0&&(Ce.save(),Ce.globalAlpha=C,$e.context(Ce),me.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),$e(et.data.map(function(Be){return Be.position})),Ce.fill()}),Ce.restore()),Qe==="lines"&&(Pe.context(Ce),me.forEach(function(et){Ce.strokeStyle=et.color,Ce.lineWidth=y,Ce.beginPath(),Pe(et.data.map(function(Be){return Be.position})),Ce.stroke()})),Qe==="points"&&x===!0&&w>0&&Te.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),Ce.arc(et.x,et.y,w/2,0,2*Math.PI),Ce.fill(),$>0&&(Ce.strokeStyle=et.borderColor,Ce.lineWidth=$,Ce.stroke())}),Qe==="mesh"&&H===!0&&(Kqe(Ce,Oe),Se&&Yqe(Ce,Oe,Se.index)),Qe==="legends"){var Ct=me.map(function(et){return{id:et.id,label:et.id,color:et.color}}).reverse();O.forEach(function(et){XW(Ce,Zr({},et,{data:et.data||Ct,containerWidth:Q,containerHeight:ne,theme:xe}))})}})},[Z,re,ge,f,xe,Pe,me,ue,ce,k,M,I,N,E,A,z,L,O,Te,x,w,Se]);var K=m.useCallback(function(Ce){var Qe=Im(Z.current,Ce),Ct=Qe[0],et=Qe[1];if(!jW(se.left,se.top,Q,ne,Ct,et))return null;var Be=Re.find(Ct-se.left,et-se.top);return Te[Be]},[Z,se,Q,ne,Re]),ee=Np(),pe=ee.showTooltipFromEvent,ye=ee.hideTooltip,De=m.useCallback(function(Ce){var Qe=K(Ce);de(Qe),Qe?pe(m.createElement(W,{point:Qe}),Ce):ye()},[K,de,pe,ye,W]),Ae=m.useCallback(function(Ce){ye(),de(null),Se&&B&&B(Se,Ce)},[ye,de,B]),Ee=m.useCallback(function(Ce){if(j){var Qe=K(Ce);Qe&&j(Qe,Ce)}},[K,j]);return g.jsx("canvas",{ref:Z,width:re*o,height:ge*o,style:{width:re,height:ge,cursor:D?"auto":"normal"},onMouseEnter:D?De:void 0,onMouseMove:D?De:void 0,onMouseLeave:D?Ae:void 0,onClick:D?Ee:void 0})};Xk.propTypes=Jqe,Xk.defaultProps=eKe;var fKe=LW(Xk),pKe=m.forwardRef(function(e,t){return g.jsx(fKe,Zr({},e,{canvasRef:t}))});m.forwardRef(function(e,t){return g.jsx(Jp,{children:function(n){var r=n.width,o=n.height;return g.jsx(pKe,Zr({width:r,height:o},e,{ref:t}))}})});const hKe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:900,stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"linear",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},enableGridX:!0,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},mKe=()=>g.jsx(mr,{title:"Bill Payment Trends",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(hKe,{data:KVe})}),height:500});function gKe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Bills"}),g.jsx(Ze,{variant:"h6",children:"Stay on Top of Your Financial Obligations"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:12,children:g.jsx(QVe,{})}),g.jsx(Ft,{item:!0,xs:12,md:12,children:g.jsx(mKe,{})})]})]})})}const vKe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},enableGridX:!1,enableGridY:!1,theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},yKe=[{id:"Rent",color:"hsl(152, 70%, 50%)",data:[{x:"JAN",y:350},{x:"FEB",y:400},{x:"MAR",y:550},{x:"APR",y:500},{x:"MAY",y:410},{x:"JUN",y:430},{x:"JUL",y:510},{x:"AUG",y:460},{x:"SEP",y:640},{x:"OCT",y:690},{x:"NOV",y:450},{x:"DEC",y:480}]},{id:"Utilities",color:"hsl(30, 70%, 50%)",data:[{x:"JAN",y:600},{x:"FEB",y:550},{x:"MAR",y:400},{x:"APR",y:625},{x:"MAY",y:480},{x:"JUN",y:570},{x:"JUL",y:700},{x:"AUG",y:750},{x:"SEP",y:450},{x:"OCT",y:560},{x:"NOV",y:490},{x:"DEC",y:600}]},{id:"Internet",color:"hsl(201, 70%, 50%)",data:[{x:"JAN",y:630},{x:"FEB",y:690},{x:"MAR",y:700},{x:"APR",y:750},{x:"MAY",y:730},{x:"JUN",y:690},{x:"JUL",y:600},{x:"AUG",y:800},{x:"SEP",y:780},{x:"OCT",y:760},{x:"NOV",y:800},{x:"DEC",y:700}]},{id:"Phone",color:"hsl(203, 70%, 50%)",data:[{x:"JAN",y:776},{x:"FEB",y:615},{x:"MAR",y:790},{x:"APR",y:785},{x:"MAY",y:683},{x:"JUN",y:788},{x:"JUL",y:784},{x:"AUG",y:678},{x:"SEP",y:694},{x:"OCT",y:879},{x:"NOV",y:887},{x:"DEC",y:790}]},{id:"Other",color:"hsl(253, 70%, 50%)",data:[{x:"JAN",y:700},{x:"FEB",y:580},{x:"MAR",y:436},{x:"APR",y:440},{x:"MAY",y:510},{x:"JUN",y:490},{x:"JUL",y:460},{x:"AUG",y:500},{x:"SEP",y:480},{x:"OCT",y:510},{x:"NOV",y:530},{x:"DEC",y:650}]}],bKe=[{id:"Expenses",data:[{x:"JAN",y:1300},{x:"FEB",y:700},{x:"MAR",y:900},{x:"APR",y:1100},{x:"MAY",y:1e3},{x:"JUN",y:1900},{x:"JUL",y:1300},{x:"AUG",y:2100},{x:"SEP",y:1400},{x:"OCT",y:1200},{x:"NOV",y:2300},{x:"DEC",y:1800}]},{id:"Income",data:[{x:"JAN",y:5500},{x:"FEB",y:5300},{x:"MAR",y:5400},{x:"APR",y:5600},{x:"MAY",y:5700},{x:"JUN",y:4900},{x:"JUL",y:5100},{x:"AUG",y:5300},{x:"SEP",y:6e3},{x:"OCT",y:6500},{x:"NOV",y:6300},{x:"DEC",y:6100}]}],xKe=[{day:"Mon",rent:20,utilities:120,internet:15,phone:10,other:150},{day:"Tue",rent:40,utilities:90,internet:30,phone:40,other:120},{day:"Wed",rent:30,utilities:75,internet:35,phone:45,other:70},{day:"Thu",rent:60,utilities:50,internet:55,phone:25,other:60},{day:"Fri",rent:70,utilities:40,internet:20,phone:10,other:100},{day:"Sat",rent:60,utilities:50,internet:45,phone:65,other:80},{day:"Sun",rent:50,utilities:70,internet:50,phone:60,other:100}],wKe=[{category:"Groceries",budget:500,actual:400},{category:"Rent",budget:1e3,actual:950},{category:"Transportation",budget:200,actual:180},{category:"Entertainment",budget:300,actual:350},{category:"Healthcare",budget:150,actual:120},{category:"Utilities",budget:250,actual:200},{category:"Other Expenses",budget:400,actual:420}],CKe=()=>g.jsx(mr,{title:"Trend Analysis",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(vKe,{data:yKe})}),height:500});function SKe(e,t){for(var n=-1,r=e==null?0:e.length;++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r1),i}),pQe(e,gQe(e),n),r&&(n=cQe(n,vQe|yQe|bQe,hQe));for(var o=t.length;o--;)dQe(n,t[o]);return n}),wQe=xQe;const CQe=Or(wQe);function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t180?(C-=l,x-=l):x+=l,{points:[[f,p],[t,n],[x,n]],text:[C,n-c],angle:y+90}},RG=function(e){var t=e.data,n=e.annotations,r=e.getPosition,o=e.getDimensions;return m.useMemo(function(){return _Qe({data:t,annotations:n,getPosition:r,getDimensions:o})},[t,n,r,o])},PQe=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return vs({},n,{computed:IG(vs({},n))})})},[t])},MQe=function(e){return m.useMemo(function(){return IG(e)},[e])},TQe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=On(),a=To(),s=a.animate,l=a.config,u=xs({x:n,y:r,config:l,immediate:!s});return typeof o=="function"?m.createElement(o,{x:n,y:r,datum:t}):g.jsxs(g.Fragment,{children:[i.annotations.text.outlineWidth>0&&g.jsx(In.text,{x:u.x,y:u.y,style:vs({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:2*i.annotations.text.outlineWidth,stroke:i.annotations.text.outlineColor}),children:o}),g.jsx(In.text,{x:u.x,y:u.y,style:CQe(i.annotations.text,["outlineWidth","outlineColor"]),children:o})]})},K9=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,o=On(),i=m.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(u,c){return u+" L"+c[0]+","+c[1]},"M"+l[0]+","+l[1])},[t]),a=hT(i);if(r&&o.annotations.link.outlineWidth<=0)return null;var s=vs({},o.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=o.annotations.link.strokeWidth+2*o.annotations.link.outlineWidth,s.stroke=o.annotations.link.outlineColor,s.opacity=o.annotations.link.outlineOpacity),g.jsx(In.path,{fill:"none",d:a,style:s})},EQe=function(e){var t=e.x,n=e.y,r=e.size,o=On(),i=To(),a=i.animate,s=i.config,l=xs({x:t,y:n,radius:r/2,config:s,immediate:!a});return g.jsxs(g.Fragment,{children:[o.annotations.outline.outlineWidth>0&&g.jsx(In.circle,{cx:l.x,cy:l.y,r:l.radius,style:vs({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),g.jsx(In.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.outline})]})},IQe=function(e){var t=e.x,n=e.y,r=e.size,o=r===void 0?Qk.dotSize:r,i=On(),a=To(),s=a.animate,l=a.config,u=xs({x:t,y:n,radius:o/2,config:l,immediate:!s});return g.jsxs(g.Fragment,{children:[i.annotations.outline.outlineWidth>0&&g.jsx(In.circle,{cx:u.x,cy:u.y,r:u.radius,style:vs({},i.annotations.outline,{fill:"none",strokeWidth:2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),g.jsx(In.circle,{cx:u.x,cy:u.y,r:u.radius,style:i.annotations.symbol})]})},RQe=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.borderRadius,a=i===void 0?6:i,s=On(),l=To(),u=l.animate,c=l.config,f=xs({x:t-r/2,y:n-o/2,width:r,height:o,config:c,immediate:!u});return g.jsxs(g.Fragment,{children:[s.annotations.outline.outlineWidth>0&&g.jsx(In.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:vs({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),g.jsx(In.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:s.annotations.outline})]})},OQe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=MQe(e);if(!SQe(o))throw new Error("note should be a valid react element");return g.jsxs(g.Fragment,{children:[g.jsx(K9,{points:i.points,isOutline:!0}),Vg(e)&&g.jsx(EQe,{x:n,y:r,size:e.size}),Zk(e)&&g.jsx(IQe,{x:n,y:r,size:e.size}),Ug(e)&&g.jsx(RQe,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),g.jsx(K9,{points:i.points}),g.jsx(TQe,{datum:t,x:i.text[0],y:i.text[1],note:o})]})},Y9=function(e,t){t.forEach(function(n,r){var o=n[0],i=n[1];r===0?e.moveTo(o,i):e.lineTo(o,i)})},AQe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(o){if(!$Qe(o.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),Y9(e,o.computed.points),e.stroke(),e.lineCap="butt"),Vg(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Zk(o)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Ug(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Y9(e,o.computed.points),e.stroke(),Vg(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Zk(o)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.fill()),Ug(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),typeof o.note=="function"?o.note(e,{datum:o.datum,x:o.computed.text[0],y:o.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(o.note,o.computed.text[0],o.computed.text[1]),e.lineJoin="miter"),e.fillText(o.note,o.computed.text[0],o.computed.text[1]))}),e.restore())};function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var X9,FQe=function(e){var t=e.bars,n=e.annotations,r=RG({data:t,annotations:n,getPosition:function(o){return{x:o.x+o.width/2,y:o.y+o.height/2}},getDimensions:function(o){var i=o.height,a=o.width;return{width:a,height:i,size:Math.max(a,i)}}});return g.jsx(g.Fragment,{children:r.map(function(o,i){return g.jsx(OQe,An({},o),i)})})},LQe=function(e){var t=e.width,n=e.height,r=e.legends,o=e.toggleSerie;return g.jsx(g.Fragment,{children:r.map(function(i,a){var s,l=i[0],u=i[1];return g.jsx(xT,An({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:u,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?o:void 0}),a)})})},DQe=["data"],jQe=function(e){var t,n=e.bar,r=n.data,o=oh(n,DQe),i=e.style,a=i.borderColor,s=i.color,l=i.height,u=i.labelColor,c=i.labelOpacity,f=i.labelX,p=i.labelY,y=i.transform,v=i.width,b=e.borderRadius,C=e.borderWidth,x=e.label,w=e.shouldRenderLabel,S=e.isInteractive,$=e.onClick,T=e.onMouseEnter,k=e.onMouseLeave,M=e.tooltip,I=e.isFocusable,N=e.ariaLabel,E=e.ariaLabelledBy,A=e.ariaDescribedBy,z=On(),L=Np(),O=L.showTooltipFromEvent,D=L.showTooltipAt,H=L.hideTooltip,B=m.useMemo(function(){return function(){return m.createElement(M,An({},o,r))}},[M,o,r]),j=m.useCallback(function(Q){$==null||$(An({color:o.color},r),Q)},[o,r,$]),W=m.useCallback(function(Q){return O(B(),Q)},[O,B]),U=m.useCallback(function(Q){T==null||T(r,Q),O(B(),Q)},[r,T,O,B]),Z=m.useCallback(function(Q){k==null||k(r,Q),H()},[r,H,k]),Y=m.useCallback(function(){D(B(),[o.absX+o.width/2,o.absY])},[D,B,o]),se=m.useCallback(function(){H()},[H]);return g.jsxs(In.g,{transform:y,children:[g.jsx(In.rect,{width:du(v,function(Q){return Math.max(Q,0)}),height:du(l,function(Q){return Math.max(Q,0)}),rx:b,ry:b,fill:(t=r.fill)!=null?t:s,strokeWidth:C,stroke:a,focusable:I,tabIndex:I?0:void 0,"aria-label":N?N(r):void 0,"aria-labelledby":E?E(r):void 0,"aria-describedby":A?A(r):void 0,onMouseEnter:S?U:void 0,onMouseMove:S?W:void 0,onMouseLeave:S?Z:void 0,onClick:S?j:void 0,onFocus:S&&I?Y:void 0,onBlur:S&&I?se:void 0}),w&&g.jsx(In.text,{x:f,y:p,textAnchor:"middle",dominantBaseline:"central",fillOpacity:c,style:An({},z.labels.text,{pointerEvents:"none",fill:u}),children:x})]})},NQe=["color","label"],zQe=function(e){var t=e.color,n=e.label,r=oh(e,NQe);return g.jsx(v5,{id:n,value:r.formattedValue,enableChip:!0,color:t})},nr={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:zQe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]},pr=An({},nr,{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:jQe,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Fo=An({},nr,{layers:["grid","axes","bars","legends","annotations"],pixelRatio:typeof window<"u"&&(X9=window.devicePixelRatio)!=null?X9:1}),OG=function(e,t,n,r,o,i){return Wg(r,{all:e.map(t),min:0,max:0},o,i).padding(n)},AG=function(e,t){return e.map(function(n){return An({},t.reduce(function(r,o){return r[o]=null,r},{}),n)})},C2=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},S2=function(e){return[e,Number(e)]},BQe=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],a3=function(e,t){return e>t},FG=function(e,t){return e0?r==="vertical"?WQe.apply(void 0,W):VQe.apply(void 0,W):[]}},GQe=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],qQe=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},KQe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return u.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=u(i(w.data)))!=null?C:0,$=((x=function(E){return c(E[n?0:1])}(w))!=null?x:0)+.5*s,T=function(E,A){var z;return((z=c(E[n?1:0]))!=null?z:0)-A}(w,$)-s,k=S2(w.data[y.key]),M=k[0],I=k[1],N={id:y.key,value:M===null?M:I,formattedValue:r(I),hidden:!1,index:b,indexValue:v,data:C2(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:S,y:$,absX:f.left+S,absY:f.top+$,width:t,height:T,color:o(N),label:a(N)})})}),p},YQe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return c.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=c(i(w.data)))!=null?C:0,$=((x=function(E){return u(E[n?1:0])}(w))!=null?x:0)+.5*s,T=function(E,A){var z;return((z=u(E[n?0:1]))!=null?z:0)-A}(w,$)-s,k=S2(w.data[y.key]),M=k[0],I=k[1],N={id:y.key,value:M===null?M:I,formattedValue:r(I),hidden:!1,index:b,indexValue:v,data:C2(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:$,y:S,absX:f.left+$,absY:f.top+S,width:T,height:t,color:o(N),label:a(N)})})}),p},XQe=function(e){var t,n=e.data,r=e.layout,o=e.minValue,i=e.maxValue,a=e.reverse,s=e.width,l=e.height,u=e.padding,c=u===void 0?0:u,f=e.valueScale,p=e.indexScale,y=e.hiddenIds,v=y===void 0?[]:y,b=oh(e,GQe),C=b.keys.filter(function(j){return!v.includes(j)}),x=CEe().keys(C).offset(lW)(AG(n,C)),w=r==="vertical"?["y","x",s]:["x","y",l],S=w[0],$=w[1],T=w[2],k=OG(n,b.getIndex,c,p,T,$),M=An({max:i,min:o,reverse:a},f),I=(t=qQe(x),f.type==="log"?t.filter(function(j){return j!==0}):t),N=Math.min.apply(Math,I),E=Math.max.apply(Math,I),A=Wg(M,{all:I,min:N,max:E},S==="x"?s:l,S),z=r==="vertical"?[k,A]:[A,k],L=z[0],O=z[1],D=b.innerPadding>0?b.innerPadding:0,H=k.bandwidth(),B=[An({},b,{innerPadding:D,stackedData:x,xScale:L,yScale:O}),H,M.reverse];return{xScale:L,yScale:O,bars:H>0?r==="vertical"?KQe.apply(void 0,B):YQe.apply(void 0,B):[]}},QQe=function(e){var t=e.bars,n=e.direction,r=e.from,o=e.groupMode,i=e.layout,a=e.legendLabel,s=e.reverse,l=DW(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(u,c,f){var p=yi.uniqBy(u.map(function(y){var v,b;return{id:(v=y.data.indexValue)!=null?v:"",label:f(y.data),hidden:y.data.hidden,color:(b=y.color)!=null?b:"#000"}}),function(y){return y.id});return c==="horizontal"&&p.reverse(),p}(t,i,l):function(u,c,f,p,y,v){var b=yi.uniqBy(u.map(function(C){var x;return{id:C.data.id,label:v(C.data),hidden:C.data.hidden,color:(x=C.color)!=null?x:"#000"}}),function(C){return C.id});return(c==="vertical"&&p==="stacked"&&f==="column"&&y!==!0||c==="horizontal"&&p==="stacked"&&y===!0)&&b.reverse(),b}(t,i,n,o,s,l)},DG=function(e){var t=e.indexBy,n=t===void 0?nr.indexBy:t,r=e.keys,o=r===void 0?nr.keys:r,i=e.label,a=i===void 0?nr.label:i,s=e.tooltipLabel,l=s===void 0?nr.tooltipLabel:s,u=e.valueFormat,c=e.colors,f=c===void 0?nr.colors:c,p=e.colorBy,y=p===void 0?nr.colorBy:p,v=e.borderColor,b=v===void 0?nr.borderColor:v,C=e.labelTextColor,x=C===void 0?nr.labelTextColor:C,w=e.groupMode,S=w===void 0?nr.groupMode:w,$=e.layout,T=$===void 0?nr.layout:$,k=e.reverse,M=k===void 0?nr.reverse:k,I=e.data,N=e.minValue,E=N===void 0?nr.minValue:N,A=e.maxValue,z=A===void 0?nr.maxValue:A,L=e.margin,O=e.width,D=e.height,H=e.padding,B=H===void 0?nr.padding:H,j=e.innerPadding,W=j===void 0?nr.innerPadding:j,U=e.valueScale,Z=U===void 0?nr.valueScale:U,Y=e.indexScale,se=Y===void 0?nr.indexScale:Y,Q=e.initialHiddenIds,ne=Q===void 0?nr.initialHiddenIds:Q,re=e.enableLabel,ge=re===void 0?nr.enableLabel:re,xe=e.labelSkipWidth,fe=xe===void 0?nr.labelSkipWidth:xe,Se=e.labelSkipHeight,de=Se===void 0?nr.labelSkipHeight:Se,ie=e.legends,Pe=ie===void 0?nr.legends:ie,$e=e.legendLabel,me=m.useState(ne??[]),ue=me[0],ce=me[1],Te=m.useCallback(function(X){ce(function(oe){return oe.indexOf(X)>-1?oe.filter(function(Ie){return Ie!==X}):[].concat(oe,[X])})},[]),Le=$c(n),Re=$c(a),Oe=$c(l),K=Rg(u),ee=On(),pe=yT(f,y),ye=ms(b,ee),De=ms(x,ee),Ae=(S==="grouped"?UQe:XQe)({layout:T,reverse:M,data:I,getIndex:Le,keys:o,minValue:E,maxValue:z,width:O,height:D,getColor:pe,padding:B,innerPadding:W,valueScale:Z,indexScale:se,hiddenIds:ue,formatValue:K,getTooltipLabel:Oe,margin:L}),Ee=Ae.bars,Ce=Ae.xScale,Qe=Ae.yScale,Ct=m.useMemo(function(){return Ee.filter(function(X){return X.data.value!==null}).map(function(X,oe){return An({},X,{index:oe})})},[Ee]),et=m.useCallback(function(X){var oe=X.width,Ie=X.height;return!!ge&&!(fe>0&&oe0&&Ie0&&(ut.strokeStyle=Fe,ut.lineWidth=Tt),ut.beginPath(),rt>0){var gt=Math.min(rt,tt);ut.moveTo(_e+gt,we),ut.lineTo(_e+Ut-gt,we),ut.quadraticCurveTo(_e+Ut,we,_e+Ut,we+gt),ut.lineTo(_e+Ut,we+tt-gt),ut.quadraticCurveTo(_e+Ut,we+tt,_e+Ut-gt,we+tt),ut.lineTo(_e+gt,we+tt),ut.quadraticCurveTo(_e,we+tt,_e,we+tt-gt),ut.lineTo(_e,we+gt),ut.quadraticCurveTo(_e,we,_e+gt,we),ut.closePath()}else ut.rect(_e,we,Ut,tt);ut.fill(),Tt>0&&ut.stroke(),ct&&(ut.textBaseline="middle",ut.textAlign="center",ut.fillStyle=_n,ut.fillText(en,_e+Ut/2,we+tt/2))}:O,H=e.enableLabel,B=H===void 0?Fo.enableLabel:H,j=e.label,W=e.labelSkipWidth,U=W===void 0?Fo.labelSkipWidth:W,Z=e.labelSkipHeight,Y=Z===void 0?Fo.labelSkipHeight:Z,se=e.labelTextColor,Q=e.colorBy,ne=e.colors,re=e.borderRadius,ge=re===void 0?Fo.borderRadius:re,xe=e.borderWidth,fe=xe===void 0?Fo.borderWidth:xe,Se=e.borderColor,de=e.annotations,ie=de===void 0?Fo.annotations:de,Pe=e.legendLabel,$e=e.tooltipLabel,me=e.valueFormat,ue=e.isInteractive,ce=ue===void 0?Fo.isInteractive:ue,Te=e.tooltip,Le=Te===void 0?Fo.tooltip:Te,Re=e.onClick,Oe=e.onMouseEnter,K=e.onMouseLeave,ee=e.legends,pe=e.pixelRatio,ye=pe===void 0?Fo.pixelRatio:pe,De=e.canvasRef,Ae=m.useRef(null),Ee=On(),Ce=b0(i,a,o),Qe=Ce.margin,Ct=Ce.innerWidth,et=Ce.innerHeight,Be=Ce.outerWidth,te=Ce.outerHeight,X=DG({indexBy:n,label:j,tooltipLabel:$e,valueFormat:me,colors:ne,colorBy:Q,borderColor:Se,labelTextColor:se,groupMode:s,layout:l,reverse:u,data:t,keys:r,minValue:c,maxValue:f,margin:Qe,width:Ct,height:et,padding:v,innerPadding:b,valueScale:p,indexScale:y,enableLabel:B,labelSkipWidth:U,labelSkipHeight:Y,legends:ee,legendLabel:Pe}),oe=X.bars,Ie=X.barsWithValue,Ve=X.xScale,Ke=X.yScale,at=X.getLabel,Je=X.getTooltipLabel,nt=X.getBorderColor,_t=X.getLabelColor,ht=X.shouldRenderBarLabel,lt=X.legendsWithData,Rt=Np(),jt=Rt.showTooltipFromEvent,dn=Rt.hideTooltip,hn=PQe({annotations:RG({data:oe,annotations:ie,getPosition:function(ut){return{x:ut.x,y:ut.y}},getDimensions:function(ut){var mt=ut.width,Ot=ut.height;return{width:mt,height:Ot,size:Math.max(mt,Ot)}}})}),Pt=m.useMemo(function(){return{borderRadius:ge,borderWidth:fe,isInteractive:ce,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:Y,margin:Qe,width:i,height:a,innerWidth:Ct,innerHeight:et,bars:oe,legendData:lt,enableLabel:B,xScale:Ve,yScale:Ke,tooltip:Le,getTooltipLabel:Je,onClick:Re,onMouseEnter:Oe,onMouseLeave:K}},[ge,fe,ce,U,Y,Qe,i,a,Ct,et,oe,lt,B,Ve,Ke,Le,Je,Re,Oe,K]);m.useEffect(function(){var ut,mt=(ut=Ae.current)==null?void 0:ut.getContext("2d");Ae.current&&mt&&(Ae.current.width=Be*ye,Ae.current.height=te*ye,mt.scale(ye,ye),mt.fillStyle=Ee.background,mt.fillRect(0,0,Be,te),mt.translate(Qe.left,Qe.top),L.forEach(function(Ot){Ot==="grid"?typeof Ee.grid.line.strokeWidth=="number"&&Ee.grid.line.strokeWidth>0&&(mt.lineWidth=Ee.grid.line.strokeWidth,mt.strokeStyle=Ee.grid.line.stroke,M&&bb(mt,{width:i,height:a,scale:Ve,axis:"x",values:E}),N&&bb(mt,{width:i,height:a,scale:Ke,axis:"y",values:A})):Ot==="axes"?dG(mt,{xScale:Ve,yScale:Ke,width:Ct,height:et,top:C,right:x,bottom:S,left:T,theme:Ee}):Ot==="bars"?Ie.forEach(function(At){D(mt,{bar:At,borderColor:nt(At),borderRadius:ge,borderWidth:fe,label:at(At.data),labelColor:_t(At),shouldRenderLabel:ht(At)})}):Ot==="legends"?lt.forEach(function(At){var tt=At[0],Ut=At[1];XW(mt,An({},tt,{data:Ut,containerWidth:Ct,containerHeight:et,theme:Ee}))}):Ot==="annotations"?AQe(mt,{annotations:hn,theme:Ee}):typeof Ot=="function"&&Ot(mt,Pt)}),mt.save())},[S,T,x,C,Ie,ge,fe,hn,M,N,nt,at,_t,E,A,s,a,et,Ct,Pt,L,l,lt,Qe.left,Qe.top,te,Be,ye,D,Ve,Ke,u,ht,Ee,i]);var zt=m.useCallback(function(ut){if(oe&&Ae.current){var mt=Im(Ae.current,ut),Ot=mt[0],At=mt[1],tt=p$(oe,Qe,Ot,At);tt!==void 0?(jt(m.createElement(Le,An({},tt.data,{color:tt.color,label:tt.label,value:Number(tt.data.value)})),ut),ut.type==="mouseenter"&&(Oe==null||Oe(tt.data,ut))):dn()}},[dn,Qe,Oe,oe,jt,Le]),un=m.useCallback(function(ut){if(oe&&Ae.current){dn();var mt=Im(Ae.current,ut),Ot=mt[0],At=mt[1],tt=p$(oe,Qe,Ot,At);tt&&(K==null||K(tt.data,ut))}},[dn,Qe,K,oe]),cn=m.useCallback(function(ut){if(oe&&Ae.current){var mt=Im(Ae.current,ut),Ot=mt[0],At=mt[1],tt=p$(oe,Qe,Ot,At);tt!==void 0&&(Re==null||Re(An({},tt.data,{color:tt.color}),ut))}},[Qe,Re,oe]);return g.jsx("canvas",{ref:function(ut){Ae.current=ut,De&&"current"in De&&(De.current=ut)},width:Be*ye,height:te*ye,style:{width:Be,height:te,cursor:ce?"auto":"normal"},onMouseEnter:ce?zt:void 0,onMouseMove:ce?zt:void 0,onMouseLeave:ce?un:void 0,onClick:ce?cn:void 0})},rZe=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,o=e.theme,i=oh(e,tZe);return g.jsx(x0,{isInteractive:n,renderWrapper:r,theme:o,animate:!1,children:g.jsx(nZe,An({},i,{canvasRef:t}))})}),ih=function(e){return g.jsx(Jp,{children:function(t){var n=t.width,r=t.height;return g.jsx(eZe,An({width:n,height:r},e))}})};m.forwardRef(function(e,t){return g.jsx(Jp,{children:function(n){var r=n.width,o=n.height;return g.jsx(rZe,An({width:r,height:o},e,{ref:t}))}})});const oZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["rent","utilities","internet","phone","other"],indexBy:"day",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"stacked",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Weeks",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},jG=()=>g.jsx(mr,{title:"Spending Breakdown",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(oZe,{data:xKe})}),height:500}),iZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["budget","actual"],indexBy:"category",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"grouped",layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},aZe=()=>g.jsx(mr,{title:"Budget Comparison",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(iZe,{data:wKe})}),height:500}),sZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"monotoneX",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{dots:{text:{fill:`${n.primary[100]}`}},axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},enableGridX:!1,enableGridY:!1,enableArea:!0,colors:[`${n.redAccent[600]}`,`${n.greenAccent[600]}`],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function NG(){return g.jsx(mr,{title:"Financial Overview",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(sZe,{data:bKe})}),height:500})}const lZe=()=>g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Reports & Analysis"}),g.jsx(Ze,{variant:"h6",children:"Gain insights into your financial health"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(CKe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(NG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(jG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(aZe,{})})]})]})}),uZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"creditor",headerName:"Creditor",flex:1,minWidth:160,maxWidth:160},{field:"debtType",headerName:"Debt Type",flex:1,minWidth:120,maxWidth:120},{field:"balance",headerName:"Balance",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest",flex:1,minWidth:110,maxWidth:110},{field:"minimumPayment",headerName:"Min. Payment",flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"remainingTerm",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160},{field:"frequency",headerName:"Frequency",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"paymentProgress",headerName:"Progress",flex:1,minWidth:120,maxWidth:120}],cZe=[{id:1,creditor:"ABC Bank",debtType:"Credit Card",balance:"1000",interestRate:"18.5",minimumPayment:"50",dueDate:"2023.09.30",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"45%"},{id:2,creditor:"XYZ Loan",debtType:"Personal Loan",balance:"5000",interestRate:"12.5",minimumPayment:"200",dueDate:"2024.05.15",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"Check Payment",paymentProgress:"20%"},{id:3,creditor:"DEF Bank",debtType:"Mortgage",balance:"150000",interestRate:"4.2",minimumPayment:"1000",dueDate:"2030.12.01",status:"Active",remainingTerm:"10 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"10%"},{id:4,creditor:"GHI Bank",debtType:"Student Loan",balance:"25000",interestRate:"6.8",minimumPayment:"150",dueDate:"2032.02.13",status:"Active",remainingTerm:"12 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"30%"},{id:5,creditor:"JKL Group",debtType:"Medical Bill",balance:"800",interestRate:"0",minimumPayment:"50",dueDate:"2022.10.05",status:"Active",remainingTerm:"2 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"80%"},{id:6,creditor:"MNO Credit Union",debtType:"Car Loan",balance:"12000",interestRate:"8.9",minimumPayment:"350",dueDate:"2025.07.21",status:"Active",remainingTerm:"5 years",frequency:"Monthly",paymentMethod:"Credit payment",paymentProgress:"60%"},{id:7,creditor:"PQR Bank",debtType:"Credit Card",balance:"3000",interestRate:"21.9",minimumPayment:"100",dueDate:"2023.11.12",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"15%"},{id:8,creditor:"STU Loan Services",debtType:"Personal Loan",balance:"6000",interestRate:"15.2",minimumPayment:"250",dueDate:"2024.09.09",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"50%"}],dZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"date",headerName:"Date",flex:1,minWidth:120,maxWidth:120},{field:"description",headerName:"Description",flex:1,minWidth:150,maxWidth:150},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"category",headerName:"Category",flex:1,minWidth:130,maxWidth:160},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"reference",headerName:"Reference Number",flex:1,minWidth:170,maxWidth:170}],fZe=[{id:1,date:"2022.01.05",description:"Rent Payment",type:"Expense",category:"Housing",amount:"$1000",paymentMethod:"Online Transfer",status:"Paid",reference:"ACB123456789"},{id:2,date:"2022.01.08",description:"Grocery Shopping",type:"Expense",category:"Groceries",amount:"$150",paymentMethod:"Credit Card",status:"Paid",reference:"XYZ987654321"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:4,date:"2022.01.15",description:"Salary Deposit",type:"Income",category:"Employment",amount:"$3000",paymentMethod:"Direct Deposit",status:"Paid",reference:"PQR234567890"},{id:5,date:"2022.02.02",description:"Restaurant Dining",type:"Expense",category:"Dining Out",amount:"$50",paymentMethod:"Credit Card",status:"Paid",reference:"ZYX765432109"},{id:6,date:"2022.02.05",description:"Electricity Bill",type:"Bill Payment",category:"Utilities",amount:"$80",paymentMethod:"Online Transfer",status:"Paid",reference:"CAB987654321"},{id:7,date:"2022.02.12",description:"Health Insurance",type:"Bill Payment",category:"Insurance",amount:"$200",paymentMethod:"Online Transfer",status:"Paid",reference:"FED567890123"},{id:8,date:"2022.02.18",description:"Petrol Purchase",type:"Expense",category:"Transportation",amount:"$40",paymentMethod:"Cash",status:"Paid",reference:"WXY876543210"}],pZe=[{year:2018,income:74,debt:97},{year:2019,income:194,debt:4},{year:2020,income:33,debt:140},{year:2021,income:46,debt:98},{year:2022,income:182,debt:89},{year:2023,income:196,debt:12}],hZe=[{category:"Housing",value:30},{category:"Credit Card",value:20},{category:"Student Loan",value:10},{category:"Car Loan",value:15}],mZe=[...uZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function gZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:cZe,columns:mZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function zG(){return g.jsx(mr,{title:"Debt Overview",content:g.jsx(gZe,{}),height:500})}const vZe=[...dZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function yZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:fZe,columns:vZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{status:!1,category:!1,paymentMethod:!1,reference:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function bZe(){return g.jsx(mr,{title:"Debt Payment History",content:g.jsx(yZe,{}),height:500})}const xZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["income","debt"],indexBy:"year",margin:{top:50,right:130,bottom:100,left:60},padding:.3,groupMode:"grouped",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Year",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[{dataFrom:"keys",anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,itemOpacity:.85,symbolSize:20,effects:[{on:"hover",style:{itemOpacity:1}}]}],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function wZe(){return g.jsx(mr,{title:"Debt-to-Income Ratio",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(xZe,{data:pZe})}),height:500})}const CZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["value"],indexBy:"category",margin:{top:40,right:10,bottom:40,left:80},padding:.3,groupMode:"stacked",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"},basic:{maxWidth:"15rem"},table:{maxWidth:"15rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function SZe(){return g.jsx(mr,{title:"Debt Burden Ratio",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(CZe,{data:hZe})}),height:500})}function $Ze(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Debt Management"}),g.jsx(Ze,{variant:"h6",children:"Efficiently manage and conquer your debts over time"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,lg:8,children:g.jsx(zG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:4,children:g.jsx(bZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(wZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(SZe,{})})]})]})})}const _Ze="/fintrack/assets/user-19e22072.png",kZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{alignItems:"center",display:"flex",gap:"clamp(0.5em, 5%, 3em)",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(Ue,{children:g.jsx($y,{alt:"User Picture",src:_Ze,sx:{height:90,width:90}})}),g.jsxs(Ue,{sx:{display:"flex",flexDirection:"column",gap:.5,justifyContent:"center"},children:[g.jsx(Ze,{variant:"h3",children:"John Smith"}),g.jsx(Ze,{variant:"h5",color:t.grey[100],children:"Lawyer"}),g.jsx(Ze,{variant:"h6",color:t.grey[100],children:"New York, USA"})]}),g.jsx(Ue,{sx:{ml:"auto"},children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})})},PZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Address"})}),g.jsxs(Ue,{className:"settingLayout",children:[g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Country"}),g.jsx(Ze,{variant:"h5",children:"USA"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Postal Code"}),g.jsx(Ze,{variant:"h5",children:"ERT 2345"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"City/State"}),g.jsx(Ze,{variant:"h5",children:"New York"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Tax ID"}),g.jsx(Ze,{variant:"h5",children:"S651A6S6DADS"})]}),g.jsx(Ue,{className:"settingItem btn",children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},MZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Personal Information"})}),g.jsxs(Ue,{className:"settingLayout threeRows",children:[g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"First Name"}),g.jsx(Ze,{variant:"h5",children:"John"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Email Address"}),g.jsx(Ze,{variant:"h5",children:"johnsmith@gmail.com"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Bio"}),g.jsx(Ze,{variant:"h5",children:"Lawyer"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Last Name"}),g.jsx(Ze,{variant:"h5",children:"Smith"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Birthday"}),g.jsx(Ze,{variant:"h5",children:"03.04.1985"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Phone Number"}),g.jsx(Ze,{variant:"h5",children:"+808 54 99 65 25"})]}),g.jsx(Ue,{className:"settingItem btn",children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},TZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Account Preferences"})}),g.jsxs(Ue,{className:"settingLayout",children:[g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Language"}),g.jsx(Ze,{variant:"h5",children:"English"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Currency"}),g.jsx(Ze,{variant:"h5",children:"USD"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Date and Time Format"}),g.jsx(Ze,{variant:"h5",children:"D/M/Y"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Timezone"}),g.jsx(Ze,{variant:"h5",children:"UTC+0"})]}),g.jsx(Ue,{className:"settingItem btn",children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},EZe=()=>g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Two-factor Authentication"})}),g.jsxs(xhe,{children:[g.jsx(R_,{control:g.jsx(I_,{color:"success"}),labelPlacement:"end",label:g.jsx(Ze,{variant:"h5",children:"SMS Authentication: This option allows you to receive a verification code via SMS to your registered phone number. You can enter this code to complete the authentication process."}),sx:{m:0,marginBlock:1}}),g.jsx(R_,{control:g.jsx(I_,{color:"success"}),labelPlacement:"end",label:g.jsx(Ze,{variant:"h5",children:"Email Authentication: You can receive a verification code via email. They will need to enter this code to authenticate themselves successfully."}),sx:{m:0,marginBlock:1}})]})]})}),IZe=()=>g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Change Password"})}),g.jsxs(Ue,{sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:2,justifyContent:"space-between",mt:2,width:"100%"},children:[g.jsx(ru,{label:"Old Password",variant:"outlined",className:"textfield"}),g.jsx(ru,{label:"New Password",variant:"outlined",className:"textfield"}),g.jsx(ru,{label:"Confirm New Password",variant:"outlined",className:"textfield"})]})]})});function RZe(){const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Settings"}),g.jsx(Ze,{variant:"h6",children:"Manage your app's settings"})]}),g.jsxs(Ue,{sx:{backgroundColor:t.primary[400],padding:4},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h3",children:"My Profile"}),g.jsx(Ze,{variant:"h6",children:"Update your profile here."})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(kZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(TZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(MZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(PZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(EZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(IZe,{})})]}),g.jsxs(Ue,{sx:{display:"flex",gap:2,mt:5},children:[g.jsx(fs,{variant:"contained",color:"success",children:g.jsx(Ze,{variant:"h5",children:"Save"})}),g.jsx(fs,{variant:"outlined",color:"info",children:g.jsx(Ze,{variant:"h5",children:"Cancel"})})]})]})]})})}const BG=[{id:1,assetName:"Apple",assetType:"Stocks",currentPrice:"$145.64",quantity:"10",costBasis:"$1,400.00",currentValue:145640,gainOrLoss:"+$56.40",annualReturn:"12%",allocation:"10%",investment:"Stocks"},{id:2,assetName:"Amazon",assetType:"Stocks",currentPrice:"$3,654.12",quantity:"2",costBasis:"$7,500.00",currentValue:730824,gainOrLoss:"-$191.76",annualReturn:"-2.56%",allocation:"15%",investment:"Bonds"},{id:3,assetName:"Vanguard Total Bond Market Index",assetType:"Mutual Funds",currentPrice:"$110.35",quantity:"50",costBasis:"$5,700.00",currentValue:551750,gainOrLoss:"-$182.50",annualReturn:"-3.20%",allocation:"15%",investment:"Real Estate"},{id:4,assetName:"Tesla",assetType:"Stocks",currentPrice:"$652.23",quantity:"5",costBasis:"$3,000.00",currentValue:326115,gainOrLoss:"+$261.15",annualReturn:"21%",allocation:"10%",investment:"Cryptocurrency"},{id:5,assetName:"Bitcoin",assetType:"Cryptocurrency",currentPrice:"$32,800.20",quantity:"0.25",costBasis:"$8,200.10",currentValue:820005,gainOrLoss:"-$0.05",annualReturn:"0.01%",allocation:"10%",investment:"Mutual Funds"},{id:6,assetName:"Microsoft",assetType:"Stocks",currentPrice:"$290.67",quantity:"12",costBasis:"$3,000.00",currentValue:348804,gainOrLoss:"+$488.04",annualReturn:"15%",allocation:"15%",investment:"Index Funds"},{id:7,assetName:"JPMorgan Chase & Co",assetType:"Stocks",currentPrice:"$159.28",quantity:"8",costBasis:"$1,250.00",currentValue:127424,gainOrLoss:"+$24.24",annualReturn:"4%",allocation:"5%",investment:"Commodities"},{id:8,assetName:"Ethereum",assetType:"Cryptocurrency",currentPrice:"$2,621.76",quantity:"0.5",costBasis:"$1,257.97",currentValue:131088,gainOrLoss:"+$52.91",annualReturn:"19%",allocation:"10%",investment:"Savings Account"}],OZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"investmentName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"investmentType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"investmentSymbol",headerName:"Symbol",flex:1,minWidth:110,maxWidth:110},{field:"purchaseDate",headerName:"Purchase Date",flex:1,minWidth:120,maxWidth:120},{field:"sharesOrAmount",headerName:"Shares/Amount",flex:1,minWidth:110,maxWidth:110},{field:"purchasePrice",headerName:"Purchase Price",flex:1,minWidth:140,maxWidth:140},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:100,maxWidth:100},{field:"gainOrLoss",headerName:"Gain/Loss",flex:1,minWidth:160,maxWidth:160}],AZe=[{id:1,investmentName:"Apple Inc.",investmentType:"Stocks",investmentSymbol:"AAPL",purchaseDate:"2020.01.01",sharesOrAmount:"10",purchasePrice:"$150.00",currentValue:"$180.00",gainOrLoss:"+20%"},{id:2,investmentName:"Vanguard Total Stock Market Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VTSMX",purchaseDate:"2019.06.15",sharesOrAmount:"$5000",purchasePrice:"$100.00",currentValue:"$5500.00",gainOrLoss:"+10%"},{id:3,investmentName:"Microsoft Corporation",investmentType:"Stocks",investmentSymbol:"MSFT",purchaseDate:"2020.03.01",sharesOrAmount:"5",purchasePrice:"$170.00",currentValue:"$200.00",gainOrLoss:"+17.65%"},{id:4,investmentName:"iShares Core U.S. Aggregate Bond ETF",investmentType:"ETFs",investmentSymbol:"AGG",purchaseDate:"2018.09.01",sharesOrAmount:"$2000",purchasePrice:"$108.50",currentValue:"$2200.00",gainOrLoss:"+10%"},{id:5,investmentName:"Tesla Inc.",investmentType:"Stocks",investmentSymbol:"TSLA",purchaseDate:"2019.12.01",sharesOrAmount:"2",purchasePrice:"$400.00",currentValue:"$800.00",gainOrLoss:"+100%"},{id:6,investmentName:"Vanguard Total International Stock Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VGTSX",purchaseDate:"2020.06.15",sharesOrAmount:"$3000",purchasePrice:"$50.00",currentValue:"$3300.00",gainOrLoss:"+10%"},{id:7,investmentName:"Amazon.com Inc.",investmentType:"Stocks",investmentSymbol:"AMZN",purchaseDate:"2017.04.01",sharesOrAmount:"1",purchasePrice:"$900.00",currentValue:"$3000.00",gainOrLoss:"+233.33%"},{id:8,investmentName:"SPDR Gold Shares",investmentType:"ETFs",investmentSymbol:"GLD",purchaseDate:"2019.01.01",sharesOrAmount:"$500",purchasePrice:"$110.00",currentValue:"$600.00",gainOrLoss:"+20%"}],FZe=[{id:"Investment",data:[{x:"2023-01-01",y:1e3},{x:"2023-02-01",y:1200},{x:"2023-03-01",y:900},{x:"2023-04-01",y:1500},{x:"2023-05-01",y:1300}]},{id:"Benchmark",data:[{x:"2023-01-01",y:1100},{x:"2023-02-01",y:1300},{x:"2023-03-01",y:950},{x:"2023-04-01",y:1400},{x:"2023-05-01",y:1600}]},{id:"Savings",data:[{x:"2023-01-01",y:500},{x:"2023-02-01",y:600},{x:"2023-03-01",y:550},{x:"2023-04-01",y:800},{x:"2023-05-01",y:750}]},{id:"401(k)",data:[{x:"2023-01-01",y:2e3},{x:"2023-02-01",y:2200},{x:"2023-03-01",y:1900},{x:"2023-04-01",y:2300},{x:"2023-05-01",y:2100}]},{id:"IRA",data:[{x:"2023-01-01",y:1500},{x:"2023-02-01",y:1700},{x:"2023-03-01",y:1400},{x:"2023-04-01",y:1800},{x:"2023-05-01",y:1600}]}],LZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"transactionDate",headerName:"Transaction Date",type:"Date",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"transactionType",headerName:"Transaction Type",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"stockSymbol",headerName:"Stock Symbol",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"stockName",headerName:"Stock Name",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"pricePerShare",headerName:"Price per Share",flex:1,minWidth:140,maxWidth:140,editable:!0},{field:"totalCost",headerName:"Total Cost",flex:1,minWidth:100,maxWidth:100,editable:!0},{field:"status",headerName:"Status",flex:1,minWidth:160,maxWidth:160,editable:!0}],DZe=[{id:1,transactionDate:"2021.07.01",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"10",pricePerShare:"$150.00",totalCost:"$1500.00",status:"Completed"},{id:2,transactionDate:"2021.06.25",transactionType:"Buy",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"5",pricePerShare:"$250.00",totalCost:"$1250.00",status:"Completed"},{id:3,transactionDate:"2021.07.10",transactionType:"Sell",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"5",pricePerShare:"$160.00",totalCost:"$800.00",status:"Completed"},{id:4,transactionDate:"2021.07.15",transactionType:"Buy",stockSymbol:"GOOG",stockName:"Alphabet Inc.",quantity:"2",pricePerShare:"$2600.00",totalCost:"$5200.00",status:"Completed"},{id:5,transactionDate:"2021.07.20",transactionType:"Dividend",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"-",pricePerShare:"-",totalCost:"$100.00",status:"Completed"},{id:6,transactionDate:"2021.07.22",transactionType:"Sell",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"3",pricePerShare:"$260.00",totalCost:"$780.00",status:"Completed"},{id:7,transactionDate:"2021.07.30",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"7",pricePerShare:"$155.00",totalCost:"$1085.00",status:"Completed"},{id:8,transactionDate:"2021.08.01",transactionType:"Buy",stockSymbol:"TSLA",stockName:"Tesla, Inc.",quantity:"3",pricePerShare:"$700.00",totalCost:"$2100.00",status:"Pending"}],jZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Asset Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Asset Type",flex:1,minWidth:130,maxWidth:130},{field:"currentPrice",headerName:"Current Price",flex:1,minWidth:140,maxWidth:140},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110},{field:"costBasis",headerName:"Cost Basis",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"gainOrLoss",headerName:"Unrealized Gain/Loss",flex:1,minWidth:180,maxWidth:180},{field:"annualReturn",headerName:"Annual Return",flex:1,minWidth:140,maxWidth:140},{field:"allocation",headerName:"Allocation",flex:1,minWidth:120,maxWidth:120},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function NZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:BG,columns:jZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function zZe(){return g.jsx(NZe,{})}const BZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["currentValue"],indexBy:"investment",margin:{top:0,right:0,bottom:40,left:60},padding:.3,valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount",legendPosition:"middle",legendOffset:-50},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function HZe(){return g.jsx(Ue,{style:{height:"400px"},children:g.jsx(BZe,{data:BG})})}function Q9(e){const{children:t,value:n,index:r,...o}=e;return g.jsx(Ue,{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&g.jsx(Ue,{sx:{mt:3},children:g.jsx(Ze,{children:t})})})}function Z9(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function WZe(){const[e,t]=m.useState(0),n=Xt(),r=jn(n.palette.mode),o=(i,a)=>{t(a)};return g.jsx(mr,{title:"Portfolio Overview",content:g.jsxs(_i,{style:{height:"500px",padding:0},className:"Mui-Chart",children:[g.jsxs(Sve,{value:e,onChange:o,"aria-label":"basic tabs example",textColor:"secondary",indicatorColor:"secondary",sx:{"& button.Mui-selected":{color:r.blueAccent[400]},"& span.MuiTabs-indicator":{backgroundColor:r.blueAccent[400]}},children:[g.jsx(Y4,{icon:g.jsx(hbe,{}),...Z9(1),label:"Chart","aria-label":"chart"}),g.jsx(Y4,{icon:g.jsx(gbe,{}),...Z9(0),label:"Table","aria-label":"table"})]}),g.jsx(Q9,{value:e,index:0,children:g.jsx(HZe,{})}),g.jsx(Q9,{value:e,index:1,children:g.jsx(zZe,{})})]}),height:600})}const VZe=[...OZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function UZe(){return g.jsx(Ue,{style:{height:500,width:"100%"},children:g.jsx(_s,{rows:AZe,columns:VZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function GZe(){return g.jsx(mr,{title:"Investment Details",content:g.jsx(UZe,{}),height:600})}const qZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:30,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"transportation",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"count",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"}}},enableGridX:!1,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:80,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function KZe(){return g.jsx(mr,{title:"Investment Performance",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(qZe,{data:FZe})}),height:500})}const YZe=[...LZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function XZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:DZe,columns:YZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function HG(){return g.jsx(mr,{title:"Transaction History",content:g.jsx(XZe,{}),height:500})}function QZe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Investments"}),g.jsx(Ze,{variant:"h6",children:"Maximize your investment potential with personalized advice"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(WZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(GZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(KZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(HG,{})})]})]})})}const ZZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:40,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:1e4,stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},colors:n.primary[100],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:70,areaOpacity:.15,useMesh:!0,legends:[]})},JZe=[{id:"January 2020",data:[{x:"Jan",y:5e3},{x:"Feb",y:5500},{x:"Mar",y:5550},{x:"Apr",y:5800},{x:"May",y:6e3},{x:"Jun",y:6100},{x:"Jul",y:6250},{x:"Aug",y:6400},{x:"Sep",y:6500},{x:"Oct",y:6750},{x:"Nov",y:6800},{x:"Dec",y:7500}]}],eJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"currency",headerName:"Currency",flex:1,minWidth:120,maxWidth:120},{field:"acquisitionDate",headerName:"Acquisition Date",flex:1,minWidth:160,maxWidth:160},{field:"apprOrDepr",headerName:"Appreciation/Depreciation",flex:1,minWidth:210,maxWidth:100},{field:"description",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160}],tJe=[{id:1,assetName:"House",assetType:"Property",currentValue:5e5,currency:"USD",acquisitionDate:"2020-01-01",apprOrDepr:"+20000",description:"Primary residence"},{id:2,assetName:"Car",assetType:"Vehicle",currentValue:25e3,currency:"USD",acquisitionDate:"2018-06-15",apprOrDepr:"-5000",description:"Sedan car"},{id:3,assetName:"Investment Portfolio",assetType:"Investment",currentValue:1e5,currency:"USD",acquisitionDate:"2019-03-01",apprOrDepr:"+15000",description:"Stocks, bonds, and ETFs"},{id:4,assetName:"Savings Account",assetType:"Bank Account",currentValue:5e3,currency:"USD",acquisitionDate:"2015-12-01",apprOrDepr:"+1000",description:"Emergency fund"},{id:5,assetName:"Antique Watch",assetType:"Collectible",currentValue:2e3,currency:"USD",acquisitionDate:"2021-06-20",apprOrDepr:"+500",description:"Limited edition"},{id:6,assetName:"Gold Jewelry",assetType:"Jewelry",currentValue:1500,currency:"USD",acquisitionDate:"2017-09-30",apprOrDepr:null,description:"Necklace and earrings"},{id:7,assetName:"Business",assetType:"Business Ownership",currentValue:1e5,currency:"USD",acquisitionDate:"2020-07-10",apprOrDepr:"+25000",description:"Restaurant"},{id:8,assetName:"Bitcoin",assetType:"Cryptocurrency",currentValue:5e3,currency:"USD",acquisitionDate:"2018-02-12",apprOrDepr:"-2000",description:"Digital currency"}],nJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"name",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest Rate",flex:1,minWidth:140,maxWidth:140},{field:"minimumPayment",headerName:"Minimum Payment",flex:1,minWidth:170,maxWidth:170},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:150,maxWidth:150},{field:"loanTerm",headerName:"Loan Term",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:160}],rJe=[{id:1,name:"Student Loan",type:"Education",amount:3e4,interestRate:6,minimumPayment:200,dueDate:"15th of every month",loanTerm:"10 years",status:"Active"},{id:2,name:"Credit Card 1",type:"Credit Card",amount:5e3,interestRate:18,minimumPayment:100,dueDate:"25th of every month",loanTerm:"N/A",status:"Active"},{id:3,name:"Car Loan",type:"Auto Loan",amount:25e3,interestRate:4.5,minimumPayment:400,dueDate:"5th of every month",loanTerm:"5 years",status:"Active"},{id:4,name:"Mortgage",type:"Home Loan",amount:2e5,interestRate:3.5,minimumPayment:1e3,dueDate:"1st of every month",loanTerm:"30 years",status:"Active"},{id:5,name:"Personal Loan",type:"Loan",amount:1e4,interestRate:8,minimumPayment:150,dueDate:"10th of every month",loanTerm:"3 years",status:"Active"},{id:6,name:"Credit Card 2",type:"Credit Card",amount:2e3,interestRate:15,minimumPayment:50,dueDate:"20th of every month",loanTerm:"N/A",status:"Active"},{id:7,name:"Medical Loan",type:"Loan",amount:5e3,interestRate:7,minimumPayment:150,dueDate:"8th of every month",loanTerm:"2 years",status:"Active"},{id:8,name:"Business Loan",type:"Loan",amount:5e4,interestRate:10,minimumPayment:500,dueDate:"18th of every month",loanTerm:"5 years",status:"Active"}],oJe=[{date:"2022-01-01",cash:5e3,investments:1e4,loans:-2e3,creditCardDebt:-500,property:25e3,other:500},{date:"2022-02-01",cash:5500,investments:10500,loans:-1800,creditCardDebt:-400,property:26e3,other:600},{date:"2022-03-01",cash:6e3,investments:11200,loans:-1600,creditCardDebt:-300,property:27e3,other:700},{date:"2022-04-01",cash:6500,investments:12e3,loans:-1400,creditCardDebt:-200,property:28e3,other:800},{date:"2022-05-01",cash:7e3,investments:12500,loans:-1200,creditCardDebt:-100,property:29e3,other:900},{date:"2022-06-01",cash:7500,investments:13e3,loans:-1e3,creditCardDebt:0,property:3e4,other:1e3}];function iJe(){return g.jsx(mr,{title:"Net Worth History",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(ZZe,{data:JZe})}),height:500})}const aJe=[...eJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function sJe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:tJe,columns:aJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function lJe(){return g.jsx(mr,{title:"Assets",content:g.jsx(sJe,{}),height:500})}const uJe=[...nJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function cJe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:rJe,columns:uJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function dJe(){return g.jsx(mr,{title:"Liabilities",content:g.jsx(cJe,{}),height:500})}const fJe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["cash","investments","loans","creditCardDebt","property","other"],indexBy:"date",margin:{top:40,right:10,bottom:40,left:50},padding:.3,layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function pJe(){return g.jsx(mr,{title:"Assets vs Liabilities",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(fJe,{data:oJe})}),height:500})}function hJe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Net Worth"}),g.jsx(Ze,{variant:"h6",children:"Measure your financial success and set new targets"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(iJe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(lJe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(dJe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(pJe,{})})]})]})})}const Jk="DEFAULT_X_AXIS_KEY",J9="DEFAULT_Y_AXIS_KEY",mJe={top:50,bottom:50,left:50,right:50};function $d(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const eL=Symbol("implicit");function WG(){var e=new Y6,t=[],n=[],r=eL;function o(i){let a=e.get(i);if(a===void 0){if(r!==eL)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Y6;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return WG(t,n).unknown(r)},$d.apply(o,arguments),o}function wb(){var e=WG().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var p=t().length,y=ot&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bJe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?xJe:bJe,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),kg)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,vJe),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=$B,c()},f.clamp=function(p){return arguments.length?(a=p?!0:Ja,c()):a!==Ja},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function UG(){return s3()(Ja,Ja)}function wJe(e,t,n,r){var o=bp(e,t,n),i;switch(r=wp(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=AB(o,a))&&(r.precision=i),N5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=FB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=OB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Pu(r)}function GG(e){var t=e.domain;return e.ticks=function(n){var r=t();return yp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return wJe(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=F5(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function qG(){var e=UG();return e.copy=function(){return $2(e,qG())},$d.apply(e,arguments),GG(e)}function KG(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return iMath.pow(e,t)}function kJe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function iL(e){return(t,n)=>-e(-t,n)}function PJe(e){const t=e(rL,oL),n=t.domain;let r=10,o,i;function a(){return o=kJe(r),i=_Je(r),n()[0]<0?(o=iL(o),i=iL(i),e(CJe,SJe)):e(rL,oL),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const f=c0){for(;p<=y;++p)for(v=1;vc)break;x.push(b)}}else for(;p<=y;++p)for(v=r-1;v>=1;--v)if(b=p>0?v/i(-p):v*i(p),!(bc)break;x.push(b)}x.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=wp(l)).precision==null&&(l.trim=!0),l=Pu(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let f=c/i(Math.round(o(c)));return f*rn(KG(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function YG(){const e=PJe(s3()).domain([1,10]);return e.copy=()=>$2(e,YG()).base(e.base()),$d.apply(e,arguments),e}function aL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function MJe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function TJe(e){return e<0?-e*e:e*e}function EJe(e){var t=e(Ja,Ja),n=1;function r(){return n===1?e(Ja,Ja):n===.5?e(MJe,TJe):e(aL(n),aL(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},GG(t)}function l3(){var e=EJe(s3());return e.copy=function(){return $2(e,l3()).exponent(e.exponent())},$d.apply(e,arguments),e}function IJe(){return l3.apply(null,arguments).exponent(.5)}const h$=new Date,m$=new Date;function Fr(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(uFr(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(h$.setTime(+i),m$.setTime(+a),e(h$),e(m$),Math.floor(n(h$,m$))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Cb=Fr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Cb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Cb);Cb.range;const Qs=1e3,qi=Qs*60,Zs=qi*60,cl=Zs*24,u3=cl*7,sL=cl*30,g$=cl*365,dc=Fr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Qs)},(e,t)=>(t-e)/Qs,e=>e.getUTCSeconds());dc.range;const c3=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qs)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getMinutes());c3.range;const d3=Fr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getUTCMinutes());d3.range;const f3=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qs-e.getMinutes()*qi)},(e,t)=>{e.setTime(+e+t*Zs)},(e,t)=>(t-e)/Zs,e=>e.getHours());f3.range;const p3=Fr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zs)},(e,t)=>(t-e)/Zs,e=>e.getUTCHours());p3.range;const h3=Fr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qi)/cl,e=>e.getDate()-1);h3.range;const XG=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cl,e=>e.getUTCDate()-1);XG.range;const QG=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cl,e=>Math.floor(e/cl));QG.range;function _d(e){return Fr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qi)/u3)}const m3=_d(0),RJe=_d(1),OJe=_d(2),AJe=_d(3),FJe=_d(4),LJe=_d(5),DJe=_d(6);m3.range;RJe.range;OJe.range;AJe.range;FJe.range;LJe.range;DJe.range;function kd(e){return Fr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/u3)}const g3=kd(0),jJe=kd(1),NJe=kd(2),zJe=kd(3),BJe=kd(4),HJe=kd(5),WJe=kd(6);g3.range;jJe.range;NJe.range;zJe.range;BJe.range;HJe.range;WJe.range;const v3=Fr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());v3.range;const y3=Fr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());y3.range;const _2=Fr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());_2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});_2.range;const k2=Fr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());k2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});k2.range;function ZG(e,t,n,r,o,i){const a=[[dc,1,Qs],[dc,5,5*Qs],[dc,15,15*Qs],[dc,30,30*Qs],[i,1,qi],[i,5,5*qi],[i,15,15*qi],[i,30,30*qi],[o,1,Zs],[o,3,3*Zs],[o,6,6*Zs],[o,12,12*Zs],[r,1,cl],[r,2,2*cl],[n,1,u3],[t,1,sL],[t,3,3*sL],[e,1,g$]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(bp(u/g$,c/g$,f));if(y===0)return Cb.every(Math.max(bp(u,c,f),1));const[v,b]=a[p/a[y-1][2]{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},eq=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,i)=>{const[a,s]=t[i].stackedData.reduce((l,u)=>[Math.min(...u,...l[0]===null?[]:[l[0]]),Math.max(...u,...l[1]===null?[]:[l[1]])],t[i].stackedData[0]);return[o[0]===null?a:Math.min(a,o[0]),o[1]===null?s:Math.max(s,o[1])]},[null,null])},ZJe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?eq(e):JG(e),JJe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?JG(e):eq(e),Sb=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],eet=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,i)=>{const a=t[i].data.reduce((s,{x:l})=>Sb(s,[l,l]),[null,null]);return Sb(o,a)},[null,null])},tet=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,i)=>{const a=t[i].data.reduce((s,{y:l})=>Sb(s,[l,l]),[null,null]);return Sb(o,a)},[null,null])},net=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},ret=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,i)=>{const s=t[i].area!==void 0?c=>c:c=>[c[1],c[1]],[l,u]=t[i].stackedData.reduce((c,f)=>{const[p,y]=s(f);return[Math.min(p,y,c[0]),Math.max(p,y,c[1])]},s(t[i].stackedData[0]));return o[0]===null||o[1]===null?[l,u]:[Math.min(l,o[0]),Math.max(u,o[1])]},[null,null])};function $b(e){return e.scaleType==="band"}function lL(e){return e.scaleType==="point"}function uL(e,t,n){switch(e){case"log":return YG(t,n);case"pow":return l3(t,n);case"sqrt":return IJe(t,n);case"time":return XJe(t,n);case"utc":return QJe(t,n);default:return qG(t,n)}}const oet=(e,t,n)=>{const r=P({},mJe,n);return m.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},iet=oet,x3=m.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400}),w3=m.createContext({current:null});function aet({width:e,height:t,margin:n,svgRef:r,children:o}){const i=iet(e,t,n);return g.jsx(w3.Provider,{value:r,children:g.jsx(x3.Provider,{value:i,children:o})})}function Tn(e){return function(){return e}}const cL=1e-12,set=Math.PI,v$=2*set,tP=Math.PI,nP=2*tP,Ju=1e-6,uet=nP-Ju;function tq(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tq;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oJu)if(!(Math.abs(f*l-u*c)>Ju)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-a,v=o-s,b=l*l+u*u,C=y*y+v*v,x=Math.sqrt(b),w=Math.sqrt(p),S=i*Math.tan((tP-Math.acos((b+p-C)/(2*x*w)))/2),$=S/w,T=S/x;Math.abs($-1)>Ju&&this._append`L${t+$*c},${n+$*f}`,this._append`A${i},${i},0,0,${+(f*y>c*v)},${this._x1=t+T*l},${this._y1=n+T*u}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,c=n+l,f=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ju||Math.abs(this._y1-c)>Ju)&&this._append`L${u},${c}`,r&&(p<0&&(p=p%nP+nP),p>uet?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:p>Ju&&this._append`A${r},${r},0,${+(p>=tP)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function nq(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new det(t)}function P2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rq(e){this._context=e}rq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function C3(e){return new rq(e)}function oq(e){return e[0]}function iq(e){return e[1]}function aq(e,t){var n=Tn(!0),r=null,o=C3,i=null,a=nq(s);e=typeof e=="function"?e:e===void 0?oq:Tn(e),t=typeof t=="function"?t:t===void 0?iq:Tn(t);function s(l){var u,c=(l=P2(l)).length,f,p=!1,y;for(r==null&&(i=o(y=a())),u=0;u<=c;++u)!(u=y;--v)s.point(S[v],$[v]);s.lineEnd(),s.areaEnd()}x&&(S[p]=+e(C,p,f),$[p]=+t(C,p,f),s.point(r?+r(C,p,f):S[p],n?+n(C,p,f):$[p]))}if(w)return s=null,w+""||null}function c(){return aq().defined(o).curve(a).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Tn(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Tn(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Tn(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Tn(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Tn(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Tn(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(o=typeof f=="function"?f:Tn(!!f),u):o},u.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),u):a},u.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),u):i},u}function pet(e,t){return te?1:t>=e?0:NaN}function het(e){return e}function met(){var e=het,t=pet,n=null,r=Tn(0),o=Tn(v$),i=Tn(0);function a(s){var l,u=(s=P2(s)).length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(v$,Math.max(-v$,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:Tn(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Tn(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:Tn(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Tn(+s),a):i},a}function dL(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function S3(e,t){this._context=e,this._k=(1-t)/6}S3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:dL(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:dL(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new S3(r,t)}return n.tension=function(r){return e(+r)},n})(0);function get(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>cL){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>cL){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function sq(e,t){this._context=e,this._alpha=t}sq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:get(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vet=function e(t){function n(r){return t?new sq(r,t):new S3(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fL(e){return e<0?-1:1}function pL(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(fL(i)+fL(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function hL(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function y$(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function _b(e){this._context=e}_b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:y$(this,this._t0,hL(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,y$(this,hL(this,n=pL(this,e,t)),n);break;default:y$(this,this._t0,n=pL(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function lq(e){this._context=new uq(e)}(lq.prototype=Object.create(_b.prototype)).point=function(e,t){_b.prototype.point.call(this,t,e)};function uq(e){this._context=e}uq.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function mL(e){return new _b(e)}function yet(e){return new lq(e)}function cq(e){this._context=e}cq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=gL(e),o=gL(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function xet(e){return new M2(e,.5)}function wet(e){return new M2(e,0)}function Cet(e){return new M2(e,1)}function Ep(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function $et(e,t){return e[t]}function _et(e){const t=[];return t.key=e,t}function dq(){var e=Tn([]),t=Ip,n=Ep,r=$et;function o(i){var a=Array.from(e.apply(this,arguments),_et),s,l=a.length,u=-1,c;for(const f of i)for(s=0,++u;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function Met(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;ri&&(i=o,n=t);return n}function pq(e){var t=e.map(hq);return Ip(e).sort(function(n,r){return t[n]-t[r]})}function hq(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(i=>{const{stack:a,stackOrder:s,stackOffset:l}=t[i];a===void 0?r.push({ids:[i],stackingOrder:b$.none,stackingOffset:x$.none}):o[a]===void 0?(o[a]=r.length,r.push({ids:[i],stackingOrder:b$[s??"none"],stackingOffset:x$[l??"diverging"]})):(r[o[a]].ids.push(i),s!==void 0&&(r[o[a]].stackingOrder=b$[s]),l!==void 0&&(r[o[a]].stackingOffset=x$[l]))}),r};function $3(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=P({valueFormatter:t},e[r])}),n}const Aet=(e,t)=>{const{seriesOrder:n,series:r}=e,o=mq(e),i=t??[];n.forEach(s=>{const l=r[s].data;if(l!==void 0)l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u});else if(t===void 0)throw new Error([`MUI: bar series with id='${s}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const a={};return o.forEach(s=>{const{ids:l,stackingOffset:u,stackingOrder:c}=s,f=dq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).order(c).offset(u)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({layout:"vertical"},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:$3(a,s=>s==null?void 0:s.toLocaleString())}},Fet=Aet,Let=({series:e,seriesOrder:t})=>({series:$3(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),Det=Let,jet=(e,t)=>{const{seriesOrder:n,series:r}=e,o=mq(e),i=t??[];n.forEach(s=>{const l=r[s].data;l!==void 0&&l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u})});const a={};return o.forEach(s=>{const{ids:l,stackingOrder:u,stackingOffset:c}=s,f=dq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).value((p,y)=>{var v;return(v=p[y])!=null?v:0}).order(u).offset(c)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:$3(a,s=>s==null?void 0:s.toLocaleString())}},Net=jet,zet=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},Bet=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var i,a,s,l;const u=met().startAngle(2*Math.PI*((i=n[o].startAngle)!=null?i:0)/360).endAngle(2*Math.PI*((a=n[o].endAngle)!=null?a:360)/360).padAngle(2*Math.PI*((s=n[o].paddingAngle)!=null?s:0)/360).sortValues(zet((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(c=>c.value));r[o]=P({valueFormatter:c=>c.value.toLocaleString()},n[o],{data:n[o].data.map((c,f)=>{var p;return P({},c,{id:(p=c.id)!=null?p:`auto-generated-pie-id-${o}-${f}`},u[f])}).map(c=>{var f,p,y;return P({},c,{formattedValue:(f=(p=(y=n[o]).valueFormatter)==null?void 0:p.call(y,c))!=null?f:c.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Het=Bet,Wet=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function Vet(e,t,n=Wet){return e.type==="pie"?P({},e,{data:e.data.map((r,o)=>P({color:n[o%n.length]},r))}):P({color:n[t%n.length]},e)}const Uet=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Get=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],qet=e=>e==="dark"?Get:Uet,Iu=m.createContext({}),w$={bar:Fet,scatter:Det,line:Net,pie:Het},Ket=(e,t,n)=>{const r={};e.forEach((i,a)=>{var s;const{id:l=`auto-generated-id-${a}`,type:u}=i;if(r[u]===void 0&&(r[u]={series:{},seriesOrder:[]}),((s=r[u])==null?void 0:s.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[u].series[l]=P({id:l},Vet(i,a,t)),r[u].seriesOrder.push(l)});const o={};return Object.keys(w$).forEach(i=>{if(r[i]!==void 0){var a,s;o[i]=(a=(s=w$[i])==null?void 0:s.call(w$,r[i],n))!=null?a:r[i]}}),o};function Yet({series:e,dataset:t,colors:n=qet,children:r}){const o=Xt(),i=m.useMemo(()=>Ket(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return g.jsx(Iu.Provider,{value:i,children:r})}function kb(e){return e.bandwidth!==void 0}function vL(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,a=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),s=t===void 0?2:Math.ceil(Math.abs(i[1]-i[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(a,Math.max(s,l))}const yL=.2,Xet=.1,Qet={bar:ZJe,scatter:eet,line:net},Zet={bar:JJe,scatter:tet,line:ret},Ru=m.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function Jet({xAxis:e,yAxis:t,dataset:n,children:r}){const o=m.useContext(Iu),i=m.useContext(x3),a=m.useMemo(()=>e==null?void 0:e.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[e,n]),s=m.useMemo(()=>t==null?void 0:t.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[t,n]),l=m.useMemo(()=>{var u,c;const f=(x,w,S,$,T)=>{var k,M;const I=$[w],N=(k=(M=o[w])==null?void 0:M.series)!=null?k:{},[E,A]=I({series:N,axis:S,isDefaultAxis:T}),[z,L]=x;return z===null||L===null?[E,A]:E===null||A===null?[z,L]:[Math.min(E,z),Math.max(A,L)]},p=(x,w,S)=>Object.keys(w).reduce((T,k)=>f(T,k,x,w,S),[null,null]),y=[...(u=a==null?void 0:a.map((x,w)=>P({id:`deaultized-x-axis-${w}`},x)))!=null?u:[],...a===void 0||a.findIndex(({id:x})=>x===Jk)===-1?[{id:Jk,scaleType:"linear"}]:[]],v={};y.forEach((x,w)=>{var S,$,T,k,M;const I=w===0,[N,E]=p(x,Qet,I),A=[i.left,i.left+i.width];if($b(x)){var z,L;const U=(z=x.categoryGapRatio)!=null?z:yL,Z=(L=x.barGapRatio)!=null?L:Xet;v[x.id]=P({categoryGapRatio:U,barGapRatio:Z},x,{scale:wb(x.data,A).paddingInner(U).paddingOuter(U/2),tickNumber:x.data.length})}if(lL(x)&&(v[x.id]=P({},x,{scale:tL(x.data,A),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const O=(S=x.scaleType)!=null?S:"linear",D=[($=x.min)!=null?$:N,(T=x.max)!=null?T:E],H=vL(P({},x,{range:A,domain:D})),B=uL(O,D,A).nice(H),j=B.domain(),W=[(k=x.min)!=null?k:j[0],(M=x.max)!=null?M:j[1]];v[x.id]=P({},x,{scaleType:O,scale:B.domain(W),tickNumber:H})});const b=[...(c=s==null?void 0:s.map((x,w)=>P({id:`deaultized-y-axis-${w}`},x)))!=null?c:[],...s===void 0||s.findIndex(({id:x})=>x===J9)===-1?[{id:J9,scaleType:"linear"}]:[]],C={};return b.forEach((x,w)=>{var S,$,T,k,M;const I=w===0,[N,E]=p(x,Zet,I),A=[i.top+i.height,i.top];if($b(x)){var z;const W=(z=x.categoryGapRatio)!=null?z:yL;C[x.id]=P({categoryGapRatio:W,barGapRatio:0},x,{scale:wb(x.data,[A[1],A[0]]).paddingInner(W).paddingOuter(W/2),tickNumber:x.data.length})}if(lL(x)&&(C[x.id]=P({},x,{scale:tL(x.data,[A[1],A[0]]),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const L=(S=x.scaleType)!=null?S:"linear",O=[($=x.min)!=null?$:N,(T=x.max)!=null?T:E],D=vL(P({},x,{range:A,domain:O})),H=uL(L,O,A).nice(D),B=H.domain(),j=[(k=x.min)!=null?k:B[0],(M=x.max)!=null?M:B[1]];C[x.id]=P({},x,{scaleType:L,scale:H.domain(j),tickNumber:D})}),{xAxis:v,yAxis:C,xAxisIds:y.map(({id:x})=>x),yAxisIds:b.map(({id:x})=>x)}},[i.height,i.left,i.top,i.width,o,a,s]);return g.jsx(Ru.Provider,{value:l,children:r})}function Gg(e){return kb(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function ett(e){return typeof e=="string"}function ttt(e,t,n){return e===void 0||ett(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const ntt={disableDefaultClasses:!1},rtt=m.createContext(ntt);function ott(e){const{disableDefaultClasses:t}=m.useContext(rtt);return n=>t?"":e(n)}function itt(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function att(e,t,n){return typeof e=="function"?e(t,n):e}function bL(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function stt(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ze(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=itt(P({},o,r)),s=bL(r),l=bL(o),u=t(a),c=ze(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const ltt=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,ltt),s=i?{}:att(r,o),{props:l,internalRef:u}=stt(P({},a,{externalSlotProps:s})),c=on(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ttt(n,P({},l,{ref:c}),o)}function utt(e){return typeof e=="function"?e():e}const ctt=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=m.useState(null),l=on(m.isValidElement(r)?r.ref:null,n);if(pn(()=>{i||s(utt(o)||document.body)},[o,i]),pn(()=>{if(a&&!i)return Dc(n,a),()=>{Dc(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:l};return m.cloneElement(r,u)}return g.jsx(m.Fragment,{children:r})}return g.jsx(m.Fragment,{children:a&&bu.createPortal(r,a)})});function dtt(e){return yt("MuiPopper",e)}bt("MuiPopper",["root"]);const ftt=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ptt=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function htt(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function rP(e){return typeof e=="function"?e():e}function mtt(e){return e.nodeType!==void 0}const gtt=()=>qe({root:["root"]},ott(dtt)),vtt={},ytt=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,ftt),x=m.useRef(null),w=on(x,n),S=m.useRef(null),$=on(S,p),T=m.useRef($);pn(()=>{T.current=$},[$]),m.useImperativeHandle(p,()=>S.current,[]);const k=htt(c,a),[M,I]=m.useState(k),[N,E]=m.useState(rP(o));m.useEffect(()=>{S.current&&S.current.forceUpdate()}),m.useEffect(()=>{o&&E(rP(o))},[o]),pn(()=>{if(!N||!u)return;const D=j=>{I(j.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{D(j)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=Kj(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=gtt(),L=(r=v.root)!=null?r:"div",O=Pd({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return g.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),btt=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=vtt,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,ptt),[S,$]=m.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const E=rP(r);M=E&&mtt(E)?Gn(E).body:Gn(null).body}const I=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return g.jsx(ctt,{disablePortal:s,container:M,children:g.jsx(ytt,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:I},v),TransitionProps:N,children:o}))})});function xtt(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=m.useState(!1);return pn(()=>{n||i(!0)},[n]),m.useEffect(()=>{n&&i(!0)},[n]),g.jsx(m.Fragment,{children:o?t:r})}const hl=m.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),wtt=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:P({},e,{item:null});case"updateAxis":return P({},e,{axis:t.data});default:return e}};function Ctt({children:e}){const[t,n]=m.useReducer(wtt,{item:null,axis:{x:null,y:null}}),r=m.useMemo(()=>P({},t,{dispatch:n}),[t]);return g.jsx(hl.Provider,{value:r,children:e})}function Stt(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function $tt(){const e=m.useContext(w3),[t,n]=m.useState(null);return m.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=a=>{n({x:a.clientX,y:a.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",i),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",i)}},[e]),t}function _tt(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function ktt(e){return yt("MuiChartsTooltip",e)}const xL=bt("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),gq=ke("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),vq=ke("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),oP=ke("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),fc=ke("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${xL.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${xL.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),yq=ke(nse,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function Ptt(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:i,color:a}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},s=t.valueFormatter(t.data[n.dataIndex]);return g.jsx(gq,{sx:r,className:o.root,children:g.jsx(vq,{children:g.jsx("tbody",{children:g.jsxs(oP,{children:[g.jsx(fc,{className:o.markCell,children:g.jsx(yq,{ownerState:{color:a}})}),g.jsx(fc,{className:o.labelCell,children:i}),g.jsx(fc,{className:o.valueCell,children:s})]})})})})}function Mtt(e){const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,a=m.useContext(Iu)[n.type].series[n.seriesId],s=t??Ptt,l=Pd({elementType:s,externalSlotProps:i,additionalProps:{itemData:n,series:a,sx:r,classes:o},ownerState:{}});return g.jsx(s,P({},l))}function Ttt(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:i,sx:a,classes:s}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:u=>u.toLocaleString();return g.jsx(gq,{sx:a,className:s.root,children:g.jsxs(vq,{children:[i!=null&&!r.hideTooltip&&g.jsx("thead",{children:g.jsx(oP,{children:g.jsx(fc,{colSpan:3,children:g.jsx(Ze,{children:l(i)})})})}),g.jsx("tbody",{children:n.map(({color:u,id:c,label:f,valueFormatter:p,data:y})=>{const v=p(y[o]);return v==null?null:g.jsxs(oP,{children:[g.jsx(fc,{className:s.markCell,children:g.jsx(yq,{ownerState:{color:u},boxShadow:1})}),g.jsx(fc,{className:s.labelCell,children:f?g.jsx(Ze,{children:f}):null}),g.jsx(fc,{className:s.valueCell,children:g.jsx(Ze,{children:v})})]},c)})})]})})}function Ett(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,a=(r.x&&r.x.index)!==void 0,s=a?r.x&&r.x.index:r.y&&r.y.index,l=a?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:f,yAxis:p}=m.useContext(Ru),y=m.useContext(Iu),v=a?u[0]:f[0],b=m.useMemo(()=>{const S=[];return Object.keys(y).filter($=>["bar","line","scatter"].includes($)).forEach($=>{y[$].seriesOrder.forEach(T=>{const k=y[$].series[T],M=a?k.xAxisKey:k.yAxisKey;(M===void 0||M===v)&&S.push(y[$].series[T])})}),S},[v,a,y]),C=m.useMemo(()=>a?c[v]:p[v],[v,a,c,p]),x=t??Ttt,w=Pd({elementType:x,externalSlotProps:n,additionalProps:{axisData:r,series:b,axis:C,dataIndex:s,axisValue:l,sx:o,classes:i},ownerState:{}});return g.jsx(x,P({},w))}const Itt=e=>{const{classes:t}=e;return qe({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},ktt,t)},Rtt=ke(btt,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Ott(e){var t,n,r;const{trigger:o="axis",itemContent:i,axisContent:a,slots:s,slotProps:l}=e,u=$tt(),{item:c,axis:f}=m.useContext(hl),p=o==="item"?c:f,y=_tt(o,p),v=u!==null&&y,b=Itt({classes:e.classes}),C=(t=s==null?void 0:s.popper)!=null?t:Rtt,x=Pd({elementType:C,externalSlotProps:l==null?void 0:l.popper,additionalProps:{open:v,placement:"right-start",anchorEl:Stt(u)},ownerState:{}});return o==="none"?null:g.jsx(xtt,{children:v&&g.jsx(C,P({},x,{children:o==="item"?g.jsx(Mtt,{itemData:p,content:(n=s==null?void 0:s.itemContent)!=null?n:i,contentProps:l==null?void 0:l.itemContent,sx:{mx:2},classes:b}):g.jsx(Ett,{axisData:p,content:(r=s==null?void 0:s.axisContent)!=null?r:a,contentProps:l==null?void 0:l.axisContent,sx:{mx:2},classes:b})}))})}function Att(e){return yt("MuiChartsAxisHighlight",e)}bt("MuiChartsAxisHighlight",["root"]);const Ftt=()=>qe({root:["root"]},Att),s1=ke("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>P({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function Ltt(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:a}=m.useContext(Ru),s=Ftt(),l=r[0],u=i[0],c=o[l].scale,f=a[u].scale,{axis:p}=m.useContext(hl),y=Gg(c),v=Gg(f);return g.jsxs(m.Fragment,{children:[t==="band"&&p.x!==null&&kb(c)&&g.jsx(s1,{d:`M ${c(p.x.value)-(c.step()-c.bandwidth())/2} ${f.range()[0]} l ${c.step()} 0 l 0 ${f.range()[1]-f.range()[0]} l ${-c.step()} 0 Z`,className:s.root,ownerState:{axisHighlight:"band"}}),n==="band"&&p.y!==null&&kb(f)&&g.jsx(s1,{d:`M ${c.range()[0]} ${f(p.y.value)-(f.step()-f.bandwidth())/2} l 0 ${f.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-f.step()} Z`,className:s.root,ownerState:{axisHighlight:"band"}}),t==="line"&&p.x!==null&&g.jsx(s1,{d:`M ${y(p.x.value)} ${f.range()[0]} L ${y(p.x.value)} ${f.range()[1]}`,className:s.root,ownerState:{axisHighlight:"line"}}),n==="line"&&p.y!==null&&g.jsx(s1,{d:`M ${c.range()[0]} ${v(p.y.value)} L ${c.range()[1]} ${v(p.y.value)}`,className:s.root,ownerState:{axisHighlight:"line"}})]})}const _3={highlighted:"none",faded:"none"},bq=m.createContext({item:null,scope:_3,dispatch:()=>null}),Dtt=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.item,scope:P({},_3,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:P({},e,{item:null});default:return e}};function jtt({children:e}){const[t,n]=m.useReducer(Dtt,{item:null,scope:_3}),r=m.useMemo(()=>P({},t,{dispatch:n}),[t]);return g.jsx(bq.Provider,{value:r,children:e})}const k3=e=>{const{dispatch:t}=m.useContext(hl),{dispatch:n}=m.useContext(bq);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},P3=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},M3=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},Ntt=["id","dataIndex","classes","color","highlightScope","slots","slotProps","style"];function ztt(e){return yt("MuiBarElement",e)}bt("MuiBarElement",["root"]);const Btt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return qe(r,ztt,t)},Htt=ke(In.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?Qc(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function Wtt(e){var t;const{id:n,dataIndex:r,classes:o,color:i,highlightScope:a,slots:s,slotProps:l,style:u}=e,c=be(e,Ntt),f=k3(a),{item:p}=m.useContext(hl),y=P3(p,{type:"bar",seriesId:n,dataIndex:r},a),v=!y&&M3(p,{type:"bar",seriesId:n,dataIndex:r},a),b={id:n,dataIndex:r,classes:o,color:i,isFaded:v,isHighlighted:y},C=Btt(b),x=(t=s==null?void 0:s.bar)!=null?t:Htt,w=Pd({elementType:x,externalSlotProps:l==null?void 0:l.bar,additionalProps:P({},c,f({type:"bar",seriesId:n,dataIndex:r}),{style:u,className:C.root}),ownerState:b});return g.jsx(x,P({},w))}const Vtt=["skipAnimation"];function Utt({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}const Gtt=()=>{var e;const t=(e=m.useContext(Iu).bar)!=null?e:{series:{},stackingGroups:[],seriesOrder:[]},n=m.useContext(Ru),{series:r,stackingGroups:o}=t,{xAxis:i,yAxis:a,xAxisIds:s,yAxisIds:l}=n,u=s[0],c=l[0];return o.flatMap(({ids:p},y)=>p.flatMap(v=>{var b,C;const x=(b=r[v].xAxisKey)!=null?b:u,w=(C=r[v].yAxisKey)!=null?C:c,S=i[x],$=a[w],T=r[v].layout==="vertical";let k;if(T){if(!$b(S))throw new Error(`Axis with id "${x}" shoud be of type "band" to display the bar series of id "${v}"`);if(i[x].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=S}else{if(!$b($))throw new Error(`Axis with id "${w}" shoud be of type "band" to display the bar series of id "${v}"`);if(a[w].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=$}const M=S.scale,I=$.scale,N=k.scale.bandwidth(),{barWidth:E,offset:A}=Utt({bandWidth:N,numberOfGroups:o.length,gapRatio:k.barGapRatio}),z=y*(E+A),{stackedData:L,color:O}=r[v];return L.map((D,H)=>{var B,j;const W=Math.min(...D),U=Math.max(...D);return{bottom:W,top:U,seriesId:v,dataIndex:H,layout:r[v].layout,x:T?M((B=i[x].data)==null?void 0:B[H])+z:M(W),y:T?I(U):I((j=a[w].data)==null?void 0:j[H])+z,xOrigin:M(0),yOrigin:I(0),height:T?Math.abs(I(W)-I(U)):E,width:T?E:Math.abs(M(W)-M(U)),color:O,highlightScope:r[v].highlightScope}})}))},wL=({layout:e,yOrigin:t,x:n,width:r,y:o,xOrigin:i,height:a})=>P({},e==="vertical"?{y:t,x:n,height:0,width:r}:{y:o,x:i,height:a,width:0}),CL=({x:e,width:t,y:n,height:r})=>({y:n,x:e,height:r,width:t});function qtt(e){const t=Gtt(),{skipAnimation:n}=e,r=be(e,Vtt),o=ld(t,{keys:i=>`${i.seriesId}-${i.dataIndex}`,from:wL,leave:wL,enter:CL,update:CL,immediate:n});return g.jsx(m.Fragment,{children:o((i,{seriesId:a,dataIndex:s,color:l,highlightScope:u})=>g.jsx(Wtt,P({id:a,dataIndex:s,highlightScope:u,color:l},r,{style:i})))})}const Ktt=()=>{Ul(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{ia.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])},Ytt=e=>{const t=m.useContext(w3),{width:n,height:r,top:o,left:i}=m.useContext(x3),{xAxis:a,yAxis:s,xAxisIds:l,yAxisIds:u}=m.useContext(Ru),{dispatch:c}=m.useContext(hl),f=l[0],p=u[0],y=m.useRef({x:-1,y:-1});m.useEffect(()=>{const v=t.current;if(v===null||e)return()=>{};const b=(w,S)=>{if(f===null)return null;const{scale:$,data:T}=w;if(!kb($)){const M=$.invert(S);if(T===void 0)return{value:M};const I=T==null?void 0:T.findIndex((N,E)=>N>M&&(E===0||Math.abs(M-N)<=Math.abs(M-T[E-1]))||N<=M&&(E===T.length-1||Math.abs(M-N)=0?T[I]:M,index:I}}const k=$.bandwidth()===0?Math.floor((S-Math.min(...$.range())+$.step()/2)/$.step()):Math.floor((S-Math.min(...$.range()))/$.step());return k<0||k>=T.length?null:{index:k,value:T[k]}},C=()=>{y.current={x:-1,y:-1},c({type:"updateAxis",data:{x:null,y:null}})},x=w=>{const S=t.current.createSVGPoint();S.x=w.clientX,S.y=w.clientY;const $=S.matrixTransform(t.current.getScreenCTM().inverse());y.current={x:$.x,y:$.y};const T=$.xi+n,k=$.yo+r;if(T||k){c({type:"updateAxis",data:{x:null,y:null}});return}const M=b(a[f],$.x),I=b(s[p],$.y);c({type:"updateAxis",data:{x:M,y:I}})};return v.addEventListener("mouseout",C),v.addEventListener("mousemove",x),()=>{v.removeEventListener("mouseout",C),v.removeEventListener("mousemove",x)}},[t,c,i,n,o,r,p,s,f,a,e])},Xtt=["children","width","height","viewBox","disableAxisListener","className"],Qtt=ke("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),Ztt=m.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:a,disableAxisListener:s=!1}=t,l=be(t,Xtt),u=P({width:o,height:i,x:0,y:0},a);return Ytt(s),g.jsxs(Qtt,P({width:o,height:i,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n},l,{children:[g.jsx("title",{children:t.title}),g.jsx("desc",{children:t.desc}),r]}))}),Jtt=m.forwardRef(function(t,n){const{width:r,height:o,series:i,margin:a,xAxis:s,yAxis:l,colors:u,dataset:c,sx:f,title:p,desc:y,disableAxisListener:v,children:b}=t,C=m.useRef(null),x=on(n,C);return Ktt(),g.jsx(aet,{width:r,height:o,margin:a,svgRef:C,children:g.jsx(Yet,{series:i,colors:u,dataset:c,children:g.jsx(Jet,{xAxis:s,yAxis:l,dataset:c,children:g.jsx(Ctt,{children:g.jsx(jtt,{children:g.jsx(Ztt,{width:r,height:o,ref:x,sx:f,title:p,desc:y,disableAxisListener:v,children:b})})})})})})}),ent=["width","height"],tnt=(e,t)=>{const n=m.useRef(null),r=m.useRef(!1),[o,i]=m.useState(0),[a,s]=m.useState(0),l=m.useCallback(()=>{const u=n==null?void 0:n.current;if(!u)return;const f=ea(u).getComputedStyle(u),p=Math.floor(parseFloat(f.height))||0,y=Math.floor(parseFloat(f.width))||0;i(y),s(p)},[]);return m.useEffect(()=>{r.current=!0},[]),pn(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=n.current;if(typeof ResizeObserver>"u")return()=>{};let c;const f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&f.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&f.unobserve(u)}},[l,t,e]),[n,e??o,t??a]},nnt=ke("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),rnt=m.forwardRef(function(t,n){const{width:r,height:o}=t,i=be(t,ent),[a,s,l]=tnt(r,o);return g.jsx(nnt,{ref:a,ownerState:{width:r,height:o},children:s&&l?g.jsx(Jtt,P({},i,{width:s,height:l,ref:n})):null})}),ont=["id","classes","color","highlightScope","slots","slotProps"];function int(e){return yt("MuiLineElement",e)}bt("MuiLineElement",["root","highlighted","faded"]);const ant=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return qe(i,int,t)},xq=ke("path",{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?Qc(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));xq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function snt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,ont),u=k3(i),{item:c}=m.useContext(hl),f=P3(c,{type:"line",seriesId:n},i),p=!f&&M3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=ant(y),b=(t=a==null?void 0:a.line)!=null?t:xq,C=Pd({elementType:b,externalSlotProps:s==null?void 0:s.line,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return g.jsx(b,P({},C))}function wq(e){switch(e){case"catmullRom":return vet.alpha(.5);case"linear":return C3;case"monotoneX":return mL;case"monotoneY":return yet;case"natural":return bet;case"step":return xet;case"stepBefore":return wet;case"stepAfter":return Cet;default:return mL}}const lnt=["slots","slotProps"];function unt(e){const{slots:t,slotProps:n}=e,r=be(e,lnt),o=m.useContext(Iu).line,i=m.useContext(Ru);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return g.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=Gg(l[x].scale),M=u[w].scale,I=l[x].data,N=aq().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y(L=>M(L.y[1])),E=wq(a[b].curve),A=(C=I==null?void 0:I.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return g.jsx(snt,{id:b,d:N.curve(E)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const cnt=["id","classes","color","highlightScope","slots","slotProps"];function dnt(e){return yt("MuiAreaElement",e)}bt("MuiAreaElement",["root","highlighted","faded"]);const fnt=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return qe(i,dnt,t)},Cq=ke("path",{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Qc(e.color).brighter(1).formatHex():Qc(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));Cq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function pnt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,cnt),u=k3(i),{item:c}=m.useContext(hl),f=P3(c,{type:"line",seriesId:n},i),p=!f&&M3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=fnt(y),b=(t=a==null?void 0:a.area)!=null?t:Cq,C=Pd({elementType:b,externalSlotProps:s==null?void 0:s.area,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return g.jsx(b,P({},C))}const hnt=["slots","slotProps"];function mnt(e){const{slots:t,slotProps:n}=e,r=be(e,hnt),o=m.useContext(Iu).line,i=m.useContext(Ru);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return g.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=Gg(l[x].scale),M=u[w].scale,I=l[x].data,N=fet().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y0(L=>L.y&&M(L.y[0])).y1(L=>L.y&&M(L.y[1])),E=wq(a[b].curve),A=(C=I==null?void 0:I.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return!!a[b].area&&g.jsx(pnt,{id:b,d:N.curve(E)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const gnt=["x","y","id","classes","color"];function vnt(e){return yt("MuiHighlightElement",e)}bt("MuiHighlightElement",["root"]);const ynt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return qe(r,vnt,t)},bnt=ke("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function xnt(e){const{x:t,y:n,id:r,classes:o,color:i}=e,a=be(e,gnt),s={id:r,classes:o,color:i,x:t,y:n},l=ynt(s);return g.jsx(bnt,P({},a,{ownerState:s,className:l.root,cx:0,cy:0,r:a.r===void 0?5:a.r}))}const wnt=["slots","slotProps"];function Cnt(e){var t,n;const{slots:r,slotProps:o}=e,i=be(e,wnt),a=m.useContext(Iu).line,s=m.useContext(Ru),{axis:l}=m.useContext(hl),u=(t=l.x)==null?void 0:t.index;if(u===void 0||a===void 0)return null;const{series:c,stackingGroups:f}=a,{xAxis:p,yAxis:y,xAxisIds:v,yAxisIds:b}=s,C=v[0],x=b[0],w=(n=r==null?void 0:r.lineHighlight)!=null?n:xnt;return g.jsx("g",P({},i,{children:f.flatMap(({ids:S})=>S.flatMap($=>{const{xAxisKey:T=C,yAxisKey:k=x,stackedData:M,data:I,disableHighlight:N}=c[$];if(N||I[u]==null)return null;const E=Gg(p[T].scale),A=y[k].scale,z=p[T].data;if(z===void 0)throw new Error(`Axis of id "${T}" should have data property to be able to display a line plot.`);const L=E(z[u]),O=A(M[u][1]);return g.jsx(w,P({id:$,color:c[$].color,x:L,y:O},o==null?void 0:o.lineHighlight),`${$}`)}))}))}const Snt={top:5,bottom:5,left:5,right:5},$nt=m.forwardRef(function(t,n){const{xAxis:r,width:o,height:i,margin:a=Snt,colors:s,sx:l,showTooltip:u,tooltip:c,showHighlight:f,axisHighlight:p,children:y,slots:v,slotProps:b,data:C,plotType:x="line",valueFormatter:w=M=>M.toString(),area:S,curve:$="linear"}=t,k=P({},f&&x==="bar"?{x:"band"}:{x:"none"},p);return g.jsxs(rnt,{ref:n,series:[P({type:x,data:C,valueFormatter:w},x==="bar"?{}:{area:S,curve:$,disableHighlight:!f})],width:o,height:i,margin:a,xAxis:[P({id:Jk,scaleType:x==="bar"?"band":"point",data:Array.from({length:C.length},(M,I)=>I),hideTooltip:r===void 0},r)],colors:s,sx:l,disableAxisListener:(!u||(c==null?void 0:c.trigger)!=="axis")&&(k==null?void 0:k.x)==="none"&&(k==null?void 0:k.y)==="none",children:[x==="bar"&&g.jsx(qtt,{slots:v,slotProps:b,sx:{shapeRendering:"auto"}}),x==="line"&&g.jsxs(m.Fragment,{children:[g.jsx(mnt,{slots:v,slotProps:b}),g.jsx(unt,{slots:v,slotProps:b}),g.jsx(Cnt,{slots:v,slotProps:b})]}),g.jsx(Ltt,P({},k)),u&&g.jsx(Ott,P({},c,{slotProps:b,slots:v})),y]})});function Jh({title:e,value:t,icon:n,chartType:r}){const o=Xt(),i=jn(o.palette.mode);return g.jsxs(Ue,{sx:{alignItems:"center",backgroundColor:i.primary[400],borderRadius:"1rem",display:"flex",gap:"2rem",flexWrap:"wrap",justifyContent:"space-between",padding:"1rem"},children:[g.jsxs(Ue,{sx:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[n,g.jsx(Ze,{variant:"h3",children:e}),g.jsxs(Ze,{variant:"h5",children:["$",t]})]}),g.jsx(Ue,{children:g.jsx($nt,{height:50,width:100,data:[...r],showTooltip:!0,showHighlight:!0,plotType:"bar"})})]})}function _nt(){const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Overview"}),g.jsx(Ze,{variant:"h6",children:"A snapshot of your financial health"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Income",value:220350,icon:g.jsx(vbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Expenses",value:90550,icon:g.jsx(pbe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,5,7,-2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Balance",value:470560,icon:g.jsx(obe,{sx:{color:t.greenAccent[600]}}),chartType:[1,3,4,5,5,6,6,8]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Savings",value:86723,icon:g.jsx(dbe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,3,4,-2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Investments",value:115550,icon:g.jsx(nbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:8,children:g.jsx(NG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(zG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(HG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(jG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(ZW,{})})]})]})})}function knt(){return g.jsxs(Ue,{className:"error-page",sx:{padding:"1rem"},children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h1",fontWeight:600,textAlign:"center",children:"404"})}),g.jsx(Ze,{variant:"h4",mt:4,textAlign:"center",children:"Sorry, but that's not a valid link!"}),g.jsx(Ze,{variant:"h6",fontWeight:400,textAlign:"center",children:"It may have been removed, had its name changed, or the address may be incorrect."})]})}const Pnt=yoe(b_(g.jsxs(Na,{path:"/",element:g.jsx(qbe,{}),errorElement:g.jsx(knt,{}),children:[g.jsx(Na,{path:"/",element:g.jsx(_nt,{})}),g.jsx(Na,{path:"/budget",element:g.jsx(VVe,{})}),g.jsx(Na,{path:"/bills",element:g.jsx(gKe,{})}),g.jsx(Na,{path:"/reports",element:g.jsx(lZe,{})}),g.jsx(Na,{path:"/debt",element:g.jsx($Ze,{})}),g.jsx(Na,{path:"/investments",element:g.jsx(QZe,{})}),g.jsx(Na,{path:"/networth",element:g.jsx(hJe,{})}),g.jsx(Na,{path:"/settings",element:g.jsx(RZe,{})})]})));C$.createRoot(document.getElementById("root")).render(g.jsx(ot.StrictMode,{children:g.jsx(uoe,{router:Pnt})}))});export default Mnt(); diff --git a/assets/index-c0212d9b.css b/assets/index-c0212d9b.css deleted file mode 100644 index ae0aa38..0000000 --- a/assets/index-c0212d9b.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap";html,body,#root,.app,.content,main{height:max-content;overflow:auto;width:100%}.app{display:flex;flex-direction:row;overflow:auto;position:relative}::-webkit-scrollbar{height:5px;width:5px}::-webkit-scrollbar-track{background:#e0e0e0;border-radius:20px}::-webkit-scrollbar-thumb{border-radius:20px;background:#888}::-webkit-scrollbar-thumb:hover{background:#555}a{text-decoration:none}aside{height:100%}.MuiGrid-root{width:unset!important}@media (max-width: 899px){.app{display:grid;grid-template-columns:1fr;height:100vh;position:relative}.MuiBox-root:has(aside){position:absolute;height:100%;z-index:1}main{position:absolute}.MuiCardContent-root.Mui-Chart{overflow-y:hidden;overflow-x:scroll;width:100%}.MuiCardContent-root.Mui-Chart div{width:1000px!important}}@media (min-width: 1200px){.MuiGrid-root{min-width:20%}} diff --git a/assets/index-c7657b32.css b/assets/index-c7657b32.css new file mode 100644 index 0000000..35e930f --- /dev/null +++ b/assets/index-c7657b32.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap";*{margin:0;padding:0}html,body,#root,.app,.content,main{height:max-content;overflow:auto;width:100%}.app{display:flex;flex-direction:row;overflow:auto;position:relative}::-webkit-scrollbar{height:5px;width:5px}::-webkit-scrollbar-track{background:#e0e0e0;border-radius:20px}::-webkit-scrollbar-thumb{border-radius:20px;background:#888}::-webkit-scrollbar-thumb:hover{background:#555}a{text-decoration:none}aside{height:100%}.MuiGrid-root{width:unset!important}.error-page{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;padding:2rem}@media (max-width: 932px){.app{display:grid;grid-template-columns:1fr;height:100vh;position:relative}.MuiBox-root:has(aside){position:absolute;height:100%;z-index:1}main{position:absolute}.MuiCardContent-root.Mui-Chart{overflow-y:hidden;overflow-x:scroll;width:100%}.MuiCardContent-root.Mui-Chart div{width:1000px!important}}@media (min-width: 1200px){.MuiGrid-root{min-width:20%}}.settingWrapper{display:flex;gap:clamp(.5em,5%,3em);flex-direction:column;padding-block:clamp(.5em,5%,2em)}.settingLayout{display:grid;grid-auto-flow:column;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;row-gap:.5rem}.threeRows{grid-template-rows:repeat(3,1fr)}.settingItem{display:flex;flex-direction:column;justify-self:left;margin-block:.5}.settingItem.btn{grid-column-start:3;margin-left:auto}.textfield{flex:1}@media (max-width: 600px){.settingLayout{display:flex;flex-direction:column}}@media (max-width: 932px){.textfield{flex:auto}} diff --git a/index.html b/index.html index a6e5f32..956901c 100644 --- a/index.html +++ b/index.html @@ -4,9 +4,9 @@ - Vite + React + TS - - + FinTrack - Personal Finance Manager + +