@codeplex-sac/charts 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +154 -39
- package/index.js +23018 -14293
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),nt=require("@mui/material"),ae=require("react"),Xu=require("react-dom");function Ku(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const M=Ku(ae),fh=Ku(Xu);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},S.apply(null,arguments)}function dh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ii={exports:{}},oi={exports:{}},fe={};var Rc;function ph(){if(Rc)return fe;Rc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var k=w.$$typeof;switch(k){case t:switch(w=w.type,w){case u:case l:case i:case s:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case c:case f:case g:case m:case a:return w;default:return k}}case n:return k}}}function O(w){return T(w)===l}return fe.AsyncMode=u,fe.ConcurrentMode=l,fe.ContextConsumer=c,fe.ContextProvider=a,fe.Element=t,fe.ForwardRef=f,fe.Fragment=i,fe.Lazy=g,fe.Memo=m,fe.Portal=n,fe.Profiler=s,fe.StrictMode=o,fe.Suspense=d,fe.isAsyncMode=function(w){return O(w)||T(w)===u},fe.isConcurrentMode=O,fe.isContextConsumer=function(w){return T(w)===c},fe.isContextProvider=function(w){return T(w)===a},fe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},fe.isForwardRef=function(w){return T(w)===f},fe.isFragment=function(w){return T(w)===i},fe.isLazy=function(w){return T(w)===g},fe.isMemo=function(w){return T(w)===m},fe.isPortal=function(w){return T(w)===n},fe.isProfiler=function(w){return T(w)===s},fe.isStrictMode=function(w){return T(w)===o},fe.isSuspense=function(w){return T(w)===d},fe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===i||w===l||w===s||w===o||w===d||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===c||w.$$typeof===f||w.$$typeof===y||w.$$typeof===b||w.$$typeof===v||w.$$typeof===h)},fe.typeOf=T,fe}var de={};var _c;function hh(){return _c||(_c=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function T(_){return typeof _=="string"||typeof _=="function"||_===i||_===l||_===s||_===o||_===d||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===c||_.$$typeof===f||_.$$typeof===y||_.$$typeof===b||_.$$typeof===v||_.$$typeof===h)}function O(_){if(typeof _=="object"&&_!==null){var oe=_.$$typeof;switch(oe){case t:var se=_.type;switch(se){case u:case l:case i:case s:case o:case d:return se;default:var xe=se&&se.$$typeof;switch(xe){case c:case f:case g:case m:case a:return xe;default:return oe}}case n:return oe}}}var w=u,k=l,R=c,N=a,$=t,D=f,E=i,x=g,P=m,C=n,I=s,F=o,z=d,B=!1;function ee(_){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(_)||O(_)===u}function j(_){return O(_)===l}function U(_){return O(_)===c}function W(_){return O(_)===a}function X(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function G(_){return O(_)===f}function Y(_){return O(_)===i}function Z(_){return O(_)===g}function Q(_){return O(_)===m}function J(_){return O(_)===n}function q(_){return O(_)===s}function H(_){return O(_)===o}function K(_){return O(_)===d}de.AsyncMode=w,de.ConcurrentMode=k,de.ContextConsumer=R,de.ContextProvider=N,de.Element=$,de.ForwardRef=D,de.Fragment=E,de.Lazy=x,de.Memo=P,de.Portal=C,de.Profiler=I,de.StrictMode=F,de.Suspense=z,de.isAsyncMode=ee,de.isConcurrentMode=j,de.isContextConsumer=U,de.isContextProvider=W,de.isElement=X,de.isForwardRef=G,de.isFragment=Y,de.isLazy=Z,de.isMemo=Q,de.isPortal=J,de.isProfiler=q,de.isStrictMode=H,de.isSuspense=K,de.isValidElementType=T,de.typeOf=O})()),de}var Ec;function Qu(){return Ec||(Ec=1,process.env.NODE_ENV==="production"?oi.exports=ph():oi.exports=hh()),oi.exports}var Xo,Mc;function mh(){if(Mc)return Xo;Mc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xo=o()?Object.assign:function(s,a){for(var c,u=i(s),l,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var d in c)t.call(c,d)&&(u[d]=c[d]);if(e){l=e(c);for(var p=0;p<l.length;p++)n.call(c,l[p])&&(u[l[p]]=c[l[p]])}}return u},Xo}var Ko,Ic;function ca(){if(Ic)return Ko;Ic=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ko=e,Ko}var Qo,$c;function Zu(){return $c||($c=1,Qo=Function.call.bind(Object.prototype.hasOwnProperty)),Qo}var Zo,jc;function gh(){if(jc)return Zo;jc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ca(),n={},i=Zu();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,c,u,l){if(process.env.NODE_ENV!=="production"){for(var f in s)if(i(s,f)){var d;try{if(typeof s[f]!="function"){var p=Error((u||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=s[f](a,f,u,c,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var m=l?l():"";e("Failed "+c+" type: "+d.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Zo=o,Zo}var Jo,Nc;function yh(){if(Nc)return Jo;Nc=1;var e=Qu(),t=mh(),n=ca(),i=Zu(),o=gh(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Jo=function(c,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(j){var U=j&&(l&&j[l]||j[f]);if(typeof U=="function")return U}var p="<<anonymous>>",m={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:T,element:O(),elementType:w(),instanceOf:k,node:D(),objectOf:N,oneOf:R,oneOfType:$,shape:x,exact:P};function g(j,U){return j===U?j!==0||1/j===1/U:j!==j&&U!==U}function h(j,U){this.message=j,this.data=U&&typeof U=="object"?U:{},this.stack=""}h.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var U={},W=0;function X(Y,Z,Q,J,q,H,K){if(J=J||p,H=H||Q,K!==n){if(u){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var oe=J+":"+Q;!U[oe]&&W<3&&(s("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[oe]=!0,W++)}}return Z[Q]==null?Y?Z[Q]===null?new h("The "+q+" `"+H+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new h("The "+q+" `"+H+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:j(Z,Q,J,q,H)}var G=X.bind(null,!1);return G.isRequired=X.bind(null,!0),G}function b(j){function U(W,X,G,Y,Z,Q){var J=W[X],q=F(J);if(q!==j){var H=z(J);return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+H+"` supplied to `"+G+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(U)}function v(){return y(a)}function T(j){function U(W,X,G,Y,Z){if(typeof j!="function")return new h("Property `"+Z+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Q=W[X];if(!Array.isArray(Q)){var J=F(Q);return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an array."))}for(var q=0;q<Q.length;q++){var H=j(Q,q,G,Y,Z+"["+q+"]",n);if(H instanceof Error)return H}return null}return y(U)}function O(){function j(U,W,X,G,Y){var Z=U[W];if(!c(Z)){var Q=F(Z);return new h("Invalid "+G+" `"+Y+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return y(j)}function w(){function j(U,W,X,G,Y){var Z=U[W];if(!e.isValidElementType(Z)){var Q=F(Z);return new h("Invalid "+G+" `"+Y+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return y(j)}function k(j){function U(W,X,G,Y,Z){if(!(W[X]instanceof j)){var Q=j.name||p,J=ee(W[X]);return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(U)}function R(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function U(W,X,G,Y,Z){for(var Q=W[X],J=0;J<j.length;J++)if(g(Q,j[J]))return null;var q=JSON.stringify(j,function(K,_){var oe=z(_);return oe==="symbol"?String(_):_});return new h("Invalid "+Y+" `"+Z+"` of value `"+String(Q)+"` "+("supplied to `"+G+"`, expected one of "+q+"."))}return y(U)}function N(j){function U(W,X,G,Y,Z){if(typeof j!="function")return new h("Property `"+Z+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Q=W[X],J=F(Q);if(J!=="object")return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an object."));for(var q in Q)if(i(Q,q)){var H=j(Q,q,G,Y,Z+"."+q,n);if(H instanceof Error)return H}return null}return y(U)}function $(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var U=0;U<j.length;U++){var W=j[U];if(typeof W!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(W)+" at index "+U+"."),a}function X(G,Y,Z,Q,J){for(var q=[],H=0;H<j.length;H++){var K=j[H],_=K(G,Y,Z,Q,J,n);if(_==null)return null;_.data&&i(_.data,"expectedType")&&q.push(_.data.expectedType)}var oe=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new h("Invalid "+Q+" `"+J+"` supplied to "+("`"+Z+"`"+oe+"."))}return y(X)}function D(){function j(U,W,X,G,Y){return C(U[W])?null:new h("Invalid "+G+" `"+Y+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return y(j)}function E(j,U,W,X,G){return new h((j||"React class")+": "+U+" type `"+W+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function x(j){function U(W,X,G,Y,Z){var Q=W[X],J=F(Q);if(J!=="object")return new h("Invalid "+Y+" `"+Z+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));for(var q in j){var H=j[q];if(typeof H!="function")return E(G,Y,Z,q,z(H));var K=H(Q,q,G,Y,Z+"."+q,n);if(K)return K}return null}return y(U)}function P(j){function U(W,X,G,Y,Z){var Q=W[X],J=F(Q);if(J!=="object")return new h("Invalid "+Y+" `"+Z+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));var q=t({},W[X],j);for(var H in q){var K=j[H];if(i(j,H)&&typeof K!="function")return E(G,Y,Z,H,z(K));if(!K)return new h("Invalid "+Y+" `"+Z+"` key `"+H+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(W[X],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var _=K(Q,H,G,Y,Z+"."+H,n);if(_)return _}return null}return y(U)}function C(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(C);if(j===null||c(j))return!0;var U=d(j);if(U){var W=U.call(j),X;if(U!==j.entries){for(;!(X=W.next()).done;)if(!C(X.value))return!1}else for(;!(X=W.next()).done;){var G=X.value;if(G&&!C(G[1]))return!1}}else return!1;return!0;default:return!1}}function I(j,U){return j==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function F(j){var U=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":I(U,j)?"symbol":U}function z(j){if(typeof j>"u"||j===null)return""+j;var U=F(j);if(U==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return U}function B(j){var U=z(j);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function ee(j){return!j.constructor||!j.constructor.name?p:j.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Jo}var es,Dc;function bh(){if(Dc)return es;Dc=1;var e=ca();function t(){}function n(){}return n.resetWarningCache=t,es=function(){function i(a,c,u,l,f,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}i.isRequired=i;function o(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},es}var Lc;function xh(){if(Lc)return ii.exports;if(Lc=1,process.env.NODE_ENV!=="production"){var e=Qu(),t=!0;ii.exports=yh()(e.isElement,t)}else ii.exports=bh()();return ii.exports}var vh=xh();const r=dh(vh);function Kt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}const la="$$material";function Oh(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function wh(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Th=(function(){function e(n){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wh(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Oh(o);try{s.insertRule(i,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e})(),Ee="-ms-",Ii="-moz-",le="-webkit-",Ju="comm",ua="rule",fa="decl",kh="@import",ef="@keyframes",Ch="@layer",Ah=Math.abs,no=String.fromCharCode,Sh=Object.assign;function Ph(e,t){return Se(e,0)^45?(((t<<2^Se(e,0))<<2^Se(e,1))<<2^Se(e,2))<<2^Se(e,3):0}function tf(e){return e.trim()}function Rh(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,n){return e.replace(t,n)}function Ss(e,t){return e.indexOf(t)}function Se(e,t){return e.charCodeAt(t)|0}function wr(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function da(e){return e.length}function si(e,t){return t.push(e),e}function _h(e,t){return e.map(t).join("")}var ro=1,$n=1,nf=0,Be=0,ke=0,Kn="";function io(e,t,n,i,o,s,a){return{value:e,root:t,parent:n,type:i,props:o,children:s,line:ro,column:$n,length:a,return:""}}function rr(e,t){return Sh(io("",null,null,"",null,null,0),e,{length:-e.length},t)}function Eh(){return ke}function Mh(){return ke=Be>0?Se(Kn,--Be):0,$n--,ke===10&&($n=1,ro--),ke}function Ge(){return ke=Be<nf?Se(Kn,Be++):0,$n++,ke===10&&($n=1,ro++),ke}function Ot(){return Se(Kn,Be)}function wi(){return Be}function Hr(e,t){return wr(Kn,e,t)}function Tr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rf(e){return ro=$n=1,nf=bt(Kn=e),Be=0,[]}function of(e){return Kn="",e}function Ti(e){return tf(Hr(Be-1,Ps(e===91?e+2:e===40?e+1:e)))}function Ih(e){for(;(ke=Ot())&&ke<33;)Ge();return Tr(e)>2||Tr(ke)>3?"":" "}function $h(e,t){for(;--t&&Ge()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return Hr(e,wi()+(t<6&&Ot()==32&&Ge()==32))}function Ps(e){for(;Ge();)switch(ke){case e:return Be;case 34:case 39:e!==34&&e!==39&&Ps(ke);break;case 40:e===41&&Ps(e);break;case 92:Ge();break}return Be}function jh(e,t){for(;Ge()&&e+ke!==57;)if(e+ke===84&&Ot()===47)break;return"/*"+Hr(t,Be-1)+"*"+no(e===47?e:Ge())}function Nh(e){for(;!Tr(Ot());)Ge();return Hr(e,Be)}function Dh(e){return of(ki("",null,null,null,[""],e=rf(e),0,[0],e))}function ki(e,t,n,i,o,s,a,c,u){for(var l=0,f=0,d=a,p=0,m=0,g=0,h=1,y=1,b=1,v=0,T="",O=o,w=s,k=i,R=T;y;)switch(g=v,v=Ge()){case 40:if(g!=108&&Se(R,d-1)==58){Ss(R+=ue(Ti(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:R+=Ti(v);break;case 9:case 10:case 13:case 32:R+=Ih(g);break;case 92:R+=$h(wi()-1,7);continue;case 47:switch(Ot()){case 42:case 47:si(Lh(jh(Ge(),wi()),t,n),u);break;default:R+="/"}break;case 123*h:c[l++]=bt(R)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+f:b==-1&&(R=ue(R,/\f/g,"")),m>0&&bt(R)-d&&si(m>32?qc(R+";",i,n,d-1):qc(ue(R," ","")+";",i,n,d-2),u);break;case 59:R+=";";default:if(si(k=Fc(R,t,n,l,f,o,c,T,O=[],w=[],d),s),v===123)if(f===0)ki(R,t,k,k,O,s,d,c,w);else switch(p===99&&Se(R,3)===110?100:p){case 100:case 108:case 109:case 115:ki(e,k,k,i&&si(Fc(e,k,k,0,0,o,c,T,o,O=[],d),w),o,w,d,c,i?O:w);break;default:ki(R,k,k,k,[""],w,0,c,w)}}l=f=m=0,h=b=1,T=R="",d=a;break;case 58:d=1+bt(R),m=g;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Mh()==125)continue}switch(R+=no(v),v*h){case 38:b=f>0?1:(R+="\f",-1);break;case 44:c[l++]=(bt(R)-1)*b,b=1;break;case 64:Ot()===45&&(R+=Ti(Ge())),p=Ot(),f=d=bt(T=R+=Nh(wi())),v++;break;case 45:g===45&&bt(R)==2&&(h=0)}}return s}function Fc(e,t,n,i,o,s,a,c,u,l,f){for(var d=o-1,p=o===0?s:[""],m=da(p),g=0,h=0,y=0;g<i;++g)for(var b=0,v=wr(e,d+1,d=Ah(h=a[g])),T=e;b<m;++b)(T=tf(h>0?p[b]+" "+v:ue(v,/&\f/g,p[b])))&&(u[y++]=T);return io(e,t,n,o===0?ua:c,u,l,f)}function Lh(e,t,n){return io(e,t,n,Ju,no(Eh()),wr(e,2,-2),0)}function qc(e,t,n,i){return io(e,t,n,fa,wr(e,0,i),wr(e,i+1,-1),i)}function Rn(e,t){for(var n="",i=da(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function Fh(e,t,n,i){switch(e.type){case Ch:if(e.children.length)break;case kh:case fa:return e.return=e.return||e.value;case Ju:return"";case ef:return e.return=e.value+"{"+Rn(e.children,i)+"}";case ua:e.value=e.props.join(",")}return bt(n=Rn(e.children,i))?e.return=e.value+"{"+n+"}":""}function qh(e){var t=da(e);return function(n,i,o,s){for(var a="",c=0;c<t;c++)a+=e[c](n,i,o,s)||"";return a}}function Uh(e){return function(t){t.root||(t=t.return)&&e(t)}}function sf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zh=function(t,n,i){for(var o=0,s=0;o=s,s=Ot(),o===38&&s===12&&(n[i]=1),!Tr(s);)Ge();return Hr(t,Be)},Vh=function(t,n){var i=-1,o=44;do switch(Tr(o)){case 0:o===38&&Ot()===12&&(n[i]=1),t[i]+=zh(Be-1,n,i);break;case 2:t[i]+=Ti(o);break;case 4:if(o===44){t[++i]=Ot()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=no(o)}while(o=Ge());return t},Hh=function(t,n){return of(Vh(rf(t),n))},Uc=new WeakMap,Bh=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Uc.get(i))&&!o){Uc.set(t,!0);for(var s=[],a=Hh(n,s),c=i.props,u=0,l=0;u<a.length;u++)for(var f=0;f<c.length;f++,l++)t.props[l]=s[u]?a[u].replace(/&\f/g,c[f]):c[f]+" "+a[u]}}},Wh=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function af(e,t){switch(Ph(e,t)){case 5103:return le+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return le+e+Ii+e+Ee+e+e;case 6828:case 4268:return le+e+Ee+e+e;case 6165:return le+e+Ee+"flex-"+e+e;case 5187:return le+e+ue(e,/(\w+).+(:[^]+)/,le+"box-$1$2"+Ee+"flex-$1$2")+e;case 5443:return le+e+Ee+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return le+e+Ee+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return le+e+Ee+ue(e,"shrink","negative")+e;case 5292:return le+e+Ee+ue(e,"basis","preferred-size")+e;case 6060:return le+"box-"+ue(e,"-grow","")+le+e+Ee+ue(e,"grow","positive")+e;case 4554:return le+ue(e,/([^-])(transform)/g,"$1"+le+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,le+"$1"),/(image-set)/,le+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,le+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,le+"box-pack:$3"+Ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+le+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,le+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(bt(e)-1-t>6)switch(Se(e,t+1)){case 109:if(Se(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+Ii+(Se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ss(e,"stretch")?af(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Se(e,t+1)!==115)break;case 6444:switch(Se(e,bt(e)-3-(~Ss(e,"!important")&&10))){case 107:return ue(e,":",":"+le)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(Se(e,14)===45?"inline-":"")+"box$3$1"+le+"$2$3$1"+Ee+"$2box$3")+e}break;case 5936:switch(Se(e,t+11)){case 114:return le+e+Ee+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+Ee+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+Ee+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+Ee+e+e}return e}var Yh=function(t,n,i,o){if(t.length>-1&&!t.return)switch(t.type){case fa:t.return=af(t.value,t.length);break;case ef:return Rn([rr(t,{value:ue(t.value,"@","@"+le)})],o);case ua:if(t.length)return _h(t.props,function(s){switch(Rh(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rn([rr(t,{props:[ue(s,/:(read-\w+)/,":"+Ii+"$1")]})],o);case"::placeholder":return Rn([rr(t,{props:[ue(s,/:(plac\w+)/,":"+le+"input-$1")]}),rr(t,{props:[ue(s,/:(plac\w+)/,":"+Ii+"$1")]}),rr(t,{props:[ue(s,/:(plac\w+)/,Ee+"input-$1")]})],o)}return""})}},Gh=[Yh],Xh=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||Gh,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(h)});var u,l=[Bh,Wh];{var f,d=[Fh,Uh(function(h){f.insert(h)})],p=qh(l.concat(o,d)),m=function(y){return Rn(Dh(y),p)};u=function(y,b,v,T){f=v,m(y?y+"{"+b.styles+"}":b.styles),T&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new Th({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return g.sheet.hydrate(c),g},Kh=!0;function Qh(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var cf=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||Kh===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Zh=function(t,n,i){cf(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Jh(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&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(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 em={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tm=/[A-Z]|^ms/g,nm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lf=function(t){return t.charCodeAt(1)===45},zc=function(t){return t!=null&&typeof t!="boolean"},ts=sf(function(e){return lf(e)?e:e.replace(tm,"-$&").toLowerCase()}),Vc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nm,function(i,o,s){return xt={name:o,styles:s,next:xt},o})}return em[t]!==1&&!lf(t)&&typeof n=="number"&&n!==0?n+"px":n};function kr(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return xt={name:o.name,styles:o.styles,next:xt},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)xt={name:a.name,styles:a.styles,next:xt},a=a.next;var c=s.styles+";";return c}return rm(e,t,n)}case"function":{if(e!==void 0){var u=xt,l=n(e);return xt=u,kr(e,t,l)}break}}var f=n;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function rm(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=kr(e,t,n[o])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":zc(c)&&(i+=ts(s)+":"+Vc(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)zc(a[u])&&(i+=ts(s)+":"+Vc(s,a[u])+";");else{var l=kr(e,t,a);switch(s){case"animation":case"animationName":{i+=ts(s)+":"+l+";";break}default:i+=s+"{"+l+"}"}}}return i}var Hc=/label:\s*([^\s;{]+)\s*(;|$)/g,xt;function uf(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";xt=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=kr(n,t,s);else{var a=s;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=kr(n,t,e[c]),i){var u=s;o+=u[c]}Hc.lastIndex=0;for(var l="",f;(f=Hc.exec(o))!==null;)l+="-"+f[1];var d=Jh(o)+l;return{name:d,styles:o,next:xt}}var im=function(t){return t()},om=M.useInsertionEffect?M.useInsertionEffect:!1,sm=om||im,ff=M.createContext(typeof HTMLElement<"u"?Xh({key:"css"}):null);ff.Provider;var am=function(t){return ae.forwardRef(function(n,i){var o=ae.useContext(ff);return t(n,o,i)})},df=M.createContext({}),cm=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,lm=sf(function(e){return cm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),um=lm,fm=function(t){return t!=="theme"},Bc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?um:fm},Wc=function(t,n,i){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},dm=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return cf(n,i,o),sm(function(){return Zh(n,i,o)}),null},pm=function e(t,n){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var c=Wc(t,n,i),u=c||Bc(o),l=!u("as");return function(){var f=arguments,d=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{var p=f[0];d.push(p[0]);for(var m=f.length,g=1;g<m;g++)d.push(f[g],p[g])}var h=am(function(y,b,v){var T=l&&y.as||o,O="",w=[],k=y;if(y.theme==null){k={};for(var R in y)k[R]=y[R];k.theme=M.useContext(df)}typeof y.className=="string"?O=Qh(b.registered,w,y.className):y.className!=null&&(O=y.className+" ");var N=uf(d.concat(w),b.registered,k);O+=b.key+"-"+N.name,a!==void 0&&(O+=" "+a);var $=l&&c===void 0?Bc(T):u,D={};for(var E in y)l&&E==="as"||$(E)&&(D[E]=y[E]);return D.className=O,v&&(D.ref=v),M.createElement(M.Fragment,null,M.createElement(dm,{cache:b,serialized:N,isStringTag:typeof T=="string"}),M.createElement(T,D))});return h.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=d,h.__emotion_forwardProp=c,Object.defineProperty(h,"toString",{value:function(){return"."+a}}),h.withComponent=function(y,b){var v=e(y,S({},n,b,{shouldForwardProp:Wc(h,b,!0)}));return v.apply(void 0,d)},h}},hm=["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","marquee","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"],Rs=pm.bind(null);hm.forEach(function(e){Rs[e]=Rs(e)});function mm(e,t){const n=Rs(e,t);return process.env.NODE_ENV!=="production"?(...i)=>{const o=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
3
|
-
`)):i.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),
|
|
4
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),vt=require("@mui/material"),Re=require("react"),By=require("react-dom");function up(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const P=up(Re),Hy=up(By);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},E.apply(null,arguments)}function dp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wi={exports:{}},Xi={exports:{}},fe={};var ku;function Vy(){if(ku)return fe;ku=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(T){if(typeof T=="object"&&T!==null){var k=T.$$typeof;switch(k){case t:switch(T=T.type,T){case u:case l:case i:case s:case o:case f:return T;default:switch(T=T&&T.$$typeof,T){case c:case d:case g:case h:case a:return T;default:return k}}case r:return k}}}function v(T){return S(T)===l}return fe.AsyncMode=u,fe.ConcurrentMode=l,fe.ContextConsumer=c,fe.ContextProvider=a,fe.Element=t,fe.ForwardRef=d,fe.Fragment=i,fe.Lazy=g,fe.Memo=h,fe.Portal=r,fe.Profiler=s,fe.StrictMode=o,fe.Suspense=f,fe.isAsyncMode=function(T){return v(T)||S(T)===u},fe.isConcurrentMode=v,fe.isContextConsumer=function(T){return S(T)===c},fe.isContextProvider=function(T){return S(T)===a},fe.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},fe.isForwardRef=function(T){return S(T)===d},fe.isFragment=function(T){return S(T)===i},fe.isLazy=function(T){return S(T)===g},fe.isMemo=function(T){return S(T)===h},fe.isPortal=function(T){return S(T)===r},fe.isProfiler=function(T){return S(T)===s},fe.isStrictMode=function(T){return S(T)===o},fe.isSuspense=function(T){return S(T)===f},fe.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===l||T===s||T===o||T===f||T===p||typeof T=="object"&&T!==null&&(T.$$typeof===g||T.$$typeof===h||T.$$typeof===a||T.$$typeof===c||T.$$typeof===d||T.$$typeof===y||T.$$typeof===b||T.$$typeof===O||T.$$typeof===m)},fe.typeOf=S,fe}var pe={};var Su;function Gy(){return Su||(Su=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(D){return typeof D=="string"||typeof D=="function"||D===i||D===l||D===s||D===o||D===f||D===p||typeof D=="object"&&D!==null&&(D.$$typeof===g||D.$$typeof===h||D.$$typeof===a||D.$$typeof===c||D.$$typeof===d||D.$$typeof===y||D.$$typeof===b||D.$$typeof===O||D.$$typeof===m)}function v(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case t:var oe=D.type;switch(oe){case u:case l:case i:case s:case o:case f:return oe;default:var $e=oe&&oe.$$typeof;switch($e){case c:case d:case g:case h:case a:return $e;default:return se}}case r:return se}}}var T=u,k=l,w=c,M=a,I=t,_=d,$=i,x=g,A=h,R=r,N=s,q=o,F=f,G=!1;function V(D){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(D)||v(D)===u}function L(D){return v(D)===l}function B(D){return v(D)===c}function Y(D){return v(D)===a}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function W(D){return v(D)===d}function K(D){return v(D)===i}function Z(D){return v(D)===g}function J(D){return v(D)===h}function ee(D){return v(D)===r}function z(D){return v(D)===s}function H(D){return v(D)===o}function X(D){return v(D)===f}pe.AsyncMode=T,pe.ConcurrentMode=k,pe.ContextConsumer=w,pe.ContextProvider=M,pe.Element=I,pe.ForwardRef=_,pe.Fragment=$,pe.Lazy=x,pe.Memo=A,pe.Portal=R,pe.Profiler=N,pe.StrictMode=q,pe.Suspense=F,pe.isAsyncMode=V,pe.isConcurrentMode=L,pe.isContextConsumer=B,pe.isContextProvider=Y,pe.isElement=Q,pe.isForwardRef=W,pe.isFragment=K,pe.isLazy=Z,pe.isMemo=J,pe.isPortal=ee,pe.isProfiler=z,pe.isStrictMode=H,pe.isSuspense=X,pe.isValidElementType=S,pe.typeOf=v})()),pe}var Cu;function Ic(){return Cu||(Cu=1,process.env.NODE_ENV==="production"?Xi.exports=Vy():Xi.exports=Gy()),Xi.exports}var xa,wu;function Uy(){if(wu)return xa;wu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xa=o()?Object.assign:function(s,a){for(var c,u=i(s),l,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var f in c)t.call(c,f)&&(u[f]=c[f]);if(e){l=e(c);for(var p=0;p<l.length;p++)r.call(c,l[p])&&(u[l[p]]=c[l[p]])}}return u},xa}var va,Eu;function Mc(){if(Eu)return va;Eu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return va=e,va}var Oa,Au;function fp(){return Au||(Au=1,Oa=Function.call.bind(Object.prototype.hasOwnProperty)),Oa}var Ta,Pu;function Yy(){if(Pu)return Ta;Pu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Mc(),r={},i=fp();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,c,u,l){if(process.env.NODE_ENV!=="production"){for(var d in s)if(i(s,d)){var f;try{if(typeof s[d]!="function"){var p=Error((u||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=s[d](a,d,u,c,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=l?l():"";e("Failed "+c+" type: "+f.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ta=o,Ta}var ka,Ru;function Wy(){if(Ru)return ka;Ru=1;var e=Ic(),t=Uy(),r=Mc(),i=fp(),o=Yy(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return ka=function(c,u){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(L){var B=L&&(l&&L[l]||L[d]);if(typeof B=="function")return B}var p="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:O(),arrayOf:S,element:v(),elementType:T(),instanceOf:k,node:_(),objectOf:M,oneOf:w,oneOfType:I,shape:x,exact:A};function g(L,B){return L===B?L!==0||1/L===1/B:L!==L&&B!==B}function m(L,B){this.message=L,this.data=B&&typeof B=="object"?B:{},this.stack=""}m.prototype=Error.prototype;function y(L){if(process.env.NODE_ENV!=="production")var B={},Y=0;function Q(K,Z,J,ee,z,H,X){if(ee=ee||p,H=H||J,X!==r){if(u){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=ee+":"+J;!B[se]&&Y<3&&(s("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[se]=!0,Y++)}}return Z[J]==null?K?Z[J]===null?new m("The "+z+" `"+H+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new m("The "+z+" `"+H+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:L(Z,J,ee,z,H)}var W=Q.bind(null,!1);return W.isRequired=Q.bind(null,!0),W}function b(L){function B(Y,Q,W,K,Z,J){var ee=Y[Q],z=q(ee);if(z!==L){var H=F(ee);return new m("Invalid "+K+" `"+Z+"` of type "+("`"+H+"` supplied to `"+W+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return y(B)}function O(){return y(a)}function S(L){function B(Y,Q,W,K,Z){if(typeof L!="function")return new m("Property `"+Z+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var J=Y[Q];if(!Array.isArray(J)){var ee=q(J);return new m("Invalid "+K+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected an array."))}for(var z=0;z<J.length;z++){var H=L(J,z,W,K,Z+"["+z+"]",r);if(H instanceof Error)return H}return null}return y(B)}function v(){function L(B,Y,Q,W,K){var Z=B[Y];if(!c(Z)){var J=q(Z);return new m("Invalid "+W+" `"+K+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return y(L)}function T(){function L(B,Y,Q,W,K){var Z=B[Y];if(!e.isValidElementType(Z)){var J=q(Z);return new m("Invalid "+W+" `"+K+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return y(L)}function k(L){function B(Y,Q,W,K,Z){if(!(Y[Q]instanceof L)){var J=L.name||p,ee=V(Y[Q]);return new m("Invalid "+K+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected ")+("instance of `"+J+"`."))}return null}return y(B)}function w(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function B(Y,Q,W,K,Z){for(var J=Y[Q],ee=0;ee<L.length;ee++)if(g(J,L[ee]))return null;var z=JSON.stringify(L,function(X,D){var se=F(D);return se==="symbol"?String(D):D});return new m("Invalid "+K+" `"+Z+"` of value `"+String(J)+"` "+("supplied to `"+W+"`, expected one of "+z+"."))}return y(B)}function M(L){function B(Y,Q,W,K,Z){if(typeof L!="function")return new m("Property `"+Z+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var J=Y[Q],ee=q(J);if(ee!=="object")return new m("Invalid "+K+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected an object."));for(var z in J)if(i(J,z)){var H=L(J,z,W,K,Z+"."+z,r);if(H instanceof Error)return H}return null}return y(B)}function I(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var B=0;B<L.length;B++){var Y=L[B];if(typeof Y!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(Y)+" at index "+B+"."),a}function Q(W,K,Z,J,ee){for(var z=[],H=0;H<L.length;H++){var X=L[H],D=X(W,K,Z,J,ee,r);if(D==null)return null;D.data&&i(D.data,"expectedType")&&z.push(D.data.expectedType)}var se=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new m("Invalid "+J+" `"+ee+"` supplied to "+("`"+Z+"`"+se+"."))}return y(Q)}function _(){function L(B,Y,Q,W,K){return R(B[Y])?null:new m("Invalid "+W+" `"+K+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return y(L)}function $(L,B,Y,Q,W){return new m((L||"React class")+": "+B+" type `"+Y+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function x(L){function B(Y,Q,W,K,Z){var J=Y[Q],ee=q(J);if(ee!=="object")return new m("Invalid "+K+" `"+Z+"` of type `"+ee+"` "+("supplied to `"+W+"`, expected `object`."));for(var z in L){var H=L[z];if(typeof H!="function")return $(W,K,Z,z,F(H));var X=H(J,z,W,K,Z+"."+z,r);if(X)return X}return null}return y(B)}function A(L){function B(Y,Q,W,K,Z){var J=Y[Q],ee=q(J);if(ee!=="object")return new m("Invalid "+K+" `"+Z+"` of type `"+ee+"` "+("supplied to `"+W+"`, expected `object`."));var z=t({},Y[Q],L);for(var H in z){var X=L[H];if(i(L,H)&&typeof X!="function")return $(W,K,Z,H,F(X));if(!X)return new m("Invalid "+K+" `"+Z+"` key `"+H+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(Y[Q],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var D=X(J,H,W,K,Z+"."+H,r);if(D)return D}return null}return y(B)}function R(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(R);if(L===null||c(L))return!0;var B=f(L);if(B){var Y=B.call(L),Q;if(B!==L.entries){for(;!(Q=Y.next()).done;)if(!R(Q.value))return!1}else for(;!(Q=Y.next()).done;){var W=Q.value;if(W&&!R(W[1]))return!1}}else return!1;return!0;default:return!1}}function N(L,B){return L==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function q(L){var B=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":N(B,L)?"symbol":B}function F(L){if(typeof L>"u"||L===null)return""+L;var B=q(L);if(B==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return B}function G(L){var B=F(L);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function V(L){return!L.constructor||!L.constructor.name?p:L.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},ka}var Sa,Iu;function Xy(){if(Iu)return Sa;Iu=1;var e=Mc();function t(){}function r(){}return r.resetWarningCache=t,Sa=function(){function i(a,c,u,l,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}i.isRequired=i;function o(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Sa}var Mu;function Ky(){if(Mu)return Wi.exports;if(Mu=1,process.env.NODE_ENV!=="production"){var e=Ic(),t=!0;Wi.exports=Wy()(e.isElement,t)}else Wi.exports=Xy()();return Wi.exports}var Zy=Ky();const n=dp(Zy);function pn(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}const es="$$material";function Qy(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Jy(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var eb=(function(){function e(r){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Jy(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Qy(o);try{s.insertRule(i,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e})(),Ue="-ms-",So="-moz-",le="-webkit-",pp="comm",$c="rule",_c="decl",tb="@import",hp="@keyframes",nb="@layer",rb=Math.abs,ts=String.fromCharCode,ib=Object.assign;function ob(e,t){return He(e,0)^45?(((t<<2^He(e,0))<<2^He(e,1))<<2^He(e,2))<<2^He(e,3):0}function mp(e){return e.trim()}function sb(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,r){return e.replace(t,r)}function Za(e,t){return e.indexOf(t)}function He(e,t){return e.charCodeAt(t)|0}function oi(e,t,r){return e.slice(t,r)}function jt(e){return e.length}function Dc(e){return e.length}function Ki(e,t){return t.push(e),e}function ab(e,t){return e.map(t).join("")}var ns=1,xr=1,gp=0,it=0,_e=0,_r="";function rs(e,t,r,i,o,s,a){return{value:e,root:t,parent:r,type:i,props:o,children:s,line:ns,column:xr,length:a,return:""}}function zr(e,t){return ib(rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function cb(){return _e}function lb(){return _e=it>0?He(_r,--it):0,xr--,_e===10&&(xr=1,ns--),_e}function ut(){return _e=it<gp?He(_r,it++):0,xr++,_e===10&&(xr=1,ns++),_e}function zt(){return He(_r,it)}function bo(){return it}function Oi(e,t){return oi(_r,e,t)}function si(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yp(e){return ns=xr=1,gp=jt(_r=e),it=0,[]}function bp(e){return _r="",e}function xo(e){return mp(Oi(it-1,Qa(e===91?e+2:e===40?e+1:e)))}function ub(e){for(;(_e=zt())&&_e<33;)ut();return si(e)>2||si(_e)>3?"":" "}function db(e,t){for(;--t&&ut()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Oi(e,bo()+(t<6&&zt()==32&&ut()==32))}function Qa(e){for(;ut();)switch(_e){case e:return it;case 34:case 39:e!==34&&e!==39&&Qa(_e);break;case 40:e===41&&Qa(e);break;case 92:ut();break}return it}function fb(e,t){for(;ut()&&e+_e!==57;)if(e+_e===84&&zt()===47)break;return"/*"+Oi(t,it-1)+"*"+ts(e===47?e:ut())}function pb(e){for(;!si(zt());)ut();return Oi(e,it)}function hb(e){return bp(vo("",null,null,null,[""],e=yp(e),0,[0],e))}function vo(e,t,r,i,o,s,a,c,u){for(var l=0,d=0,f=a,p=0,h=0,g=0,m=1,y=1,b=1,O=0,S="",v=o,T=s,k=i,w=S;y;)switch(g=O,O=ut()){case 40:if(g!=108&&He(w,f-1)==58){Za(w+=ue(xo(O),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=xo(O);break;case 9:case 10:case 13:case 32:w+=ub(g);break;case 92:w+=db(bo()-1,7);continue;case 47:switch(zt()){case 42:case 47:Ki(mb(fb(ut(),bo()),t,r),u);break;default:w+="/"}break;case 123*m:c[l++]=jt(w)*b;case 125*m:case 59:case 0:switch(O){case 0:case 125:y=0;case 59+d:b==-1&&(w=ue(w,/\f/g,"")),h>0&&jt(w)-f&&Ki(h>32?_u(w+";",i,r,f-1):_u(ue(w," ","")+";",i,r,f-2),u);break;case 59:w+=";";default:if(Ki(k=$u(w,t,r,l,d,o,c,S,v=[],T=[],f),s),O===123)if(d===0)vo(w,t,k,k,v,s,f,c,T);else switch(p===99&&He(w,3)===110?100:p){case 100:case 108:case 109:case 115:vo(e,k,k,i&&Ki($u(e,k,k,0,0,o,c,S,o,v=[],f),T),o,T,f,c,i?v:T);break;default:vo(w,k,k,k,[""],T,0,c,T)}}l=d=h=0,m=b=1,S=w="",f=a;break;case 58:f=1+jt(w),h=g;default:if(m<1){if(O==123)--m;else if(O==125&&m++==0&&lb()==125)continue}switch(w+=ts(O),O*m){case 38:b=d>0?1:(w+="\f",-1);break;case 44:c[l++]=(jt(w)-1)*b,b=1;break;case 64:zt()===45&&(w+=xo(ut())),p=zt(),d=f=jt(S=w+=pb(bo())),O++;break;case 45:g===45&&jt(w)==2&&(m=0)}}return s}function $u(e,t,r,i,o,s,a,c,u,l,d){for(var f=o-1,p=o===0?s:[""],h=Dc(p),g=0,m=0,y=0;g<i;++g)for(var b=0,O=oi(e,f+1,f=rb(m=a[g])),S=e;b<h;++b)(S=mp(m>0?p[b]+" "+O:ue(O,/&\f/g,p[b])))&&(u[y++]=S);return rs(e,t,r,o===0?$c:c,u,l,d)}function mb(e,t,r){return rs(e,t,r,pp,ts(cb()),oi(e,2,-2),0)}function _u(e,t,r,i){return rs(e,t,r,_c,oi(e,0,i),oi(e,i+1,-1),i)}function pr(e,t){for(var r="",i=Dc(e),o=0;o<i;o++)r+=t(e[o],o,e,t)||"";return r}function gb(e,t,r,i){switch(e.type){case nb:if(e.children.length)break;case tb:case _c:return e.return=e.return||e.value;case pp:return"";case hp:return e.return=e.value+"{"+pr(e.children,i)+"}";case $c:e.value=e.props.join(",")}return jt(r=pr(e.children,i))?e.return=e.value+"{"+r+"}":""}function yb(e){var t=Dc(e);return function(r,i,o,s){for(var a="",c=0;c<t;c++)a+=e[c](r,i,o,s)||"";return a}}function bb(e){return function(t){t.root||(t=t.return)&&e(t)}}function xp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var xb=function(t,r,i){for(var o=0,s=0;o=s,s=zt(),o===38&&s===12&&(r[i]=1),!si(s);)ut();return Oi(t,it)},vb=function(t,r){var i=-1,o=44;do switch(si(o)){case 0:o===38&&zt()===12&&(r[i]=1),t[i]+=xb(it-1,r,i);break;case 2:t[i]+=xo(o);break;case 4:if(o===44){t[++i]=zt()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=ts(o)}while(o=ut());return t},Ob=function(t,r){return bp(vb(yp(t),r))},Du=new WeakMap,Tb=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Du.get(i))&&!o){Du.set(t,!0);for(var s=[],a=Ob(r,s),c=i.props,u=0,l=0;u<a.length;u++)for(var d=0;d<c.length;d++,l++)t.props[l]=s[u]?a[u].replace(/&\f/g,c[d]):c[d]+" "+a[u]}}},kb=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function vp(e,t){switch(ob(e,t)){case 5103:return le+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return le+e+So+e+Ue+e+e;case 6828:case 4268:return le+e+Ue+e+e;case 6165:return le+e+Ue+"flex-"+e+e;case 5187:return le+e+ue(e,/(\w+).+(:[^]+)/,le+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return le+e+Ue+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return le+e+Ue+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return le+e+Ue+ue(e,"shrink","negative")+e;case 5292:return le+e+Ue+ue(e,"basis","preferred-size")+e;case 6060:return le+"box-"+ue(e,"-grow","")+le+e+Ue+ue(e,"grow","positive")+e;case 4554:return le+ue(e,/([^-])(transform)/g,"$1"+le+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,le+"$1"),/(image-set)/,le+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,le+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,le+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+le+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,le+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jt(e)-1-t>6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+So+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Za(e,"stretch")?vp(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,jt(e)-3-(~Za(e,"!important")&&10))){case 107:return ue(e,":",":"+le)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(He(e,14)===45?"inline-":"")+"box$3$1"+le+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return le+e+Ue+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+Ue+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+Ue+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+Ue+e+e}return e}var Sb=function(t,r,i,o){if(t.length>-1&&!t.return)switch(t.type){case _c:t.return=vp(t.value,t.length);break;case hp:return pr([zr(t,{value:ue(t.value,"@","@"+le)})],o);case $c:if(t.length)return ab(t.props,function(s){switch(sb(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([zr(t,{props:[ue(s,/:(read-\w+)/,":"+So+"$1")]})],o);case"::placeholder":return pr([zr(t,{props:[ue(s,/:(plac\w+)/,":"+le+"input-$1")]}),zr(t,{props:[ue(s,/:(plac\w+)/,":"+So+"$1")]}),zr(t,{props:[ue(s,/:(plac\w+)/,Ue+"input-$1")]})],o)}return""})}},Cb=[Sb],wb=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Cb,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(m)});var u,l=[Tb,kb];{var d,f=[gb,bb(function(m){d.insert(m)})],p=yb(l.concat(o,f)),h=function(y){return pr(hb(y),p)};u=function(y,b,O,S){d=O,h(y?y+"{"+b.styles+"}":b.styles),S&&(g.inserted[b.name]=!0)}}var g={key:r,sheet:new eb({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return g.sheet.hydrate(c),g},Ca,Lu;function Eb(){if(Lu)return Ca;Lu=1;var e=Ic(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function a(g){return e.isMemo(g)?o:s[g.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;function h(g,m,y){if(typeof m!="string"){if(p){var b=f(m);b&&b!==p&&h(g,b,y)}var O=u(m);l&&(O=O.concat(l(m)));for(var S=a(g),v=a(m),T=0;T<O.length;++T){var k=O[T];if(!r[k]&&!(y&&y[k])&&!(v&&v[k])&&!(S&&S[k])){var w=d(m,k);try{c(g,k,w)}catch{}}}}return g}return Ca=h,Ca}Eb();var Ab=!0;function Op(e,t,r){var i="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var Lc=function(t,r,i){var o=t.key+"-"+r.name;(i===!1||Ab===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Tp=function(t,r,i){Lc(t,r,i);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Pb(e){for(var t=0,r,i=0,o=e.length;o>=4;++i,o-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 Rb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ib=/[A-Z]|^ms/g,Mb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kp=function(t){return t.charCodeAt(1)===45},Nu=function(t){return t!=null&&typeof t!="boolean"},wa=xp(function(e){return kp(e)?e:e.replace(Ib,"-$&").toLowerCase()}),ju=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Mb,function(i,o,s){return qt={name:o,styles:s,next:qt},o})}return Rb[t]!==1&&!kp(t)&&typeof r=="number"&&r!==0?r+"px":r};function ai(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return qt={name:o.name,styles:o.styles,next:qt},o.name;var s=r;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)qt={name:a.name,styles:a.styles,next:qt},a=a.next;var c=s.styles+";";return c}return $b(e,t,r)}case"function":{if(e!==void 0){var u=qt,l=r(e);return qt=u,ai(e,t,l)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function $b(e,t,r){var i="";if(Array.isArray(r))for(var o=0;o<r.length;o++)i+=ai(e,t,r[o])+";";else for(var s in r){var a=r[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":Nu(c)&&(i+=wa(s)+":"+ju(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)Nu(a[u])&&(i+=wa(s)+":"+ju(s,a[u])+";");else{var l=ai(e,t,a);switch(s){case"animation":case"animationName":{i+=wa(s)+":"+l+";";break}default:i+=s+"{"+l+"}"}}}return i}var qu=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function is(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";qt=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=ai(r,t,s);else{var a=s;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=ai(r,t,e[c]),i){var u=s;o+=u[c]}qu.lastIndex=0;for(var l="",d;(d=qu.exec(o))!==null;)l+="-"+d[1];var f=Pb(o)+l;return{name:f,styles:o,next:qt}}var _b=function(t){return t()},Db=P.useInsertionEffect?P.useInsertionEffect:!1,Sp=Db||_b,Cp=P.createContext(typeof HTMLElement<"u"?wb({key:"css"}):null);Cp.Provider;var wp=function(t){return Re.forwardRef(function(r,i){var o=Re.useContext(Cp);return t(r,o,i)})},Nc=P.createContext({}),jc={}.hasOwnProperty,Ja="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Lb=function(t,r){var i={};for(var o in r)jc.call(r,o)&&(i[o]=r[o]);return i[Ja]=t,i},Nb=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Lc(r,i,o),Sp(function(){return Tp(r,i,o)}),null},jb=wp(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Ja],s=[i],a="";typeof e.className=="string"?a=Op(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var c=is(s,void 0,P.useContext(Nc));a+=t.key+"-"+c.name;var u={};for(var l in e)jc.call(e,l)&&l!=="css"&&l!==Ja&&(u[l]=e[l]);return u.className=a,r&&(u.ref=r),P.createElement(P.Fragment,null,P.createElement(Nb,{cache:t,serialized:c,isStringTag:typeof o=="string"}),P.createElement(o,u))}),qb=jb,Fu=function(t,r){var i=arguments;if(r==null||!jc.call(r,"css"))return P.createElement.apply(void 0,i);var o=i.length,s=new Array(o);s[0]=qb,s[1]=Lb(t,r);for(var a=2;a<o;a++)s[a]=i[a];return P.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Fu||(Fu={}));function qc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return is(t)}function Ti(){var e=qc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Fb=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,zb=xp(function(e){return Fb.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Bb=zb,Hb=function(t){return t!=="theme"},zu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Bb:Hb},Bu=function(t,r,i){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},Vb=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Lc(r,i,o),Sp(function(){return Tp(r,i,o)}),null},Gb=function e(t,r){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,a;r!==void 0&&(s=r.label,a=r.target);var c=Bu(t,r,i),u=c||zu(o),l=!u("as");return function(){var d=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,g=1;g<h;g++)f.push(d[g],p[g])}var m=wp(function(y,b,O){var S=l&&y.as||o,v="",T=[],k=y;if(y.theme==null){k={};for(var w in y)k[w]=y[w];k.theme=P.useContext(Nc)}typeof y.className=="string"?v=Op(b.registered,T,y.className):y.className!=null&&(v=y.className+" ");var M=is(f.concat(T),b.registered,k);v+=b.key+"-"+M.name,a!==void 0&&(v+=" "+a);var I=l&&c===void 0?zu(S):u,_={};for(var $ in y)l&&$==="as"||I($)&&(_[$]=y[$]);return _.className=v,O&&(_.ref=O),P.createElement(P.Fragment,null,P.createElement(Vb,{cache:b,serialized:M,isStringTag:typeof S=="string"}),P.createElement(S,_))});return m.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=f,m.__emotion_forwardProp=c,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(y,b){var O=e(y,E({},r,b,{shouldForwardProp:Bu(m,b,!0)}));return O.apply(void 0,f)},m}},Ub=["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","marquee","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"],ec=Gb.bind(null);Ub.forEach(function(e){ec[e]=ec(e)});function Yb(e,t){const r=ec(e,t);return process.env.NODE_ENV!=="production"?(...i)=>{const o=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
3
|
+
`)):i.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...i)}:r}function Wb(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Hu=[];function Mn(e){return Hu[0]=e,is(Hu)}var Zi={exports:{}},be={};var Vu;function Xb(){if(Vu)return be;Vu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function g(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case r:case o:case i:case u:case l:case p:return m;default:switch(m=m&&m.$$typeof,m){case a:case c:case f:case d:return m;case s:return m;default:return y}}case t:return y}}}return be.ContextConsumer=s,be.ContextProvider=a,be.Element=e,be.ForwardRef=c,be.Fragment=r,be.Lazy=f,be.Memo=d,be.Portal=t,be.Profiler=o,be.StrictMode=i,be.Suspense=u,be.SuspenseList=l,be.isContextConsumer=function(m){return g(m)===s},be.isContextProvider=function(m){return g(m)===a},be.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},be.isForwardRef=function(m){return g(m)===c},be.isFragment=function(m){return g(m)===r},be.isLazy=function(m){return g(m)===f},be.isMemo=function(m){return g(m)===d},be.isPortal=function(m){return g(m)===t},be.isProfiler=function(m){return g(m)===o},be.isStrictMode=function(m){return g(m)===i},be.isSuspense=function(m){return g(m)===u},be.isSuspenseList=function(m){return g(m)===l},be.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===i||m===u||m===l||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===a||m.$$typeof===s||m.$$typeof===c||m.$$typeof===h||m.getModuleId!==void 0)},be.typeOf=g,be}var xe={};var Gu;function Kb(){return Gu||(Gu=1,process.env.NODE_ENV!=="production"&&(function(){function e(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case t:switch(m=m.type,m){case i:case s:case o:case l:case d:case h:return m;default:switch(m=m&&m.$$typeof,m){case c:case u:case p:case f:return m;case a:return m;default:return y}}case r:return y}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");xe.ContextConsumer=a,xe.ContextProvider=c,xe.Element=t,xe.ForwardRef=u,xe.Fragment=i,xe.Lazy=p,xe.Memo=f,xe.Portal=r,xe.Profiler=s,xe.StrictMode=o,xe.Suspense=l,xe.SuspenseList=d,xe.isContextConsumer=function(m){return e(m)===a},xe.isContextProvider=function(m){return e(m)===c},xe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},xe.isForwardRef=function(m){return e(m)===u},xe.isFragment=function(m){return e(m)===i},xe.isLazy=function(m){return e(m)===p},xe.isMemo=function(m){return e(m)===f},xe.isPortal=function(m){return e(m)===r},xe.isProfiler=function(m){return e(m)===s},xe.isStrictMode=function(m){return e(m)===o},xe.isSuspense=function(m){return e(m)===l},xe.isSuspenseList=function(m){return e(m)===d},xe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===i||m===s||m===o||m===l||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===c||m.$$typeof===a||m.$$typeof===u||m.$$typeof===g||m.getModuleId!==void 0)},xe.typeOf=e})()),xe}var Uu;function Zb(){return Uu||(Uu=1,process.env.NODE_ENV==="production"?Zi.exports=Xb():Zi.exports=Kb()),Zi.exports}var vr=Zb();function Ft(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ep(e){if(P.isValidElement(e)||vr.isValidElementType(e)||!Ft(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ep(e[r])}),t}function dt(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Ft(e)&&Ft(t)&&Object.keys(t).forEach(o=>{P.isValidElement(t[o])||vr.isValidElementType(t[o])?i[o]=t[o]:Ft(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ft(e[o])?i[o]=dt(e[o],t[o],r):r.clone?i[o]=Ft(t[o])?Ep(t[o]):t[o]:i[o]=t[o]}),i}const Qb=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function Jb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...o}=e,s=Qb(t),a=Object.keys(s);function c(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-i/100}${r})`}function l(p,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-i/100}${r})`}function d(p){return a.indexOf(p)+1<a.length?l(p,a[a.indexOf(p)+1]):c(p)}function f(p){const h=a.indexOf(p);return h===0?c(a[1]):h===a.length-1?u(a[h]):l(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:c,down:u,between:l,only:d,not:f,unit:r,...o}}function Yu(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return r.length?r.reduce((i,o)=>{const s=t[o];return delete i[o],i[o]=s,i},{...t}):t}function ex(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function tx(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
4
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:pn(18,`(${t})`));return null}const[,i,o]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(s)}function nx(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function r(s,a){s.up=(...c)=>t(e.breakpoints.up(...c),a),s.down=(...c)=>t(e.breakpoints.down(...c),a),s.between=(...c)=>t(e.breakpoints.between(...c),a),s.only=(...c)=>t(e.breakpoints.only(...c),a),s.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const i={},o=s=>(r(i,s),i);return r(o),{...e,containerQueries:o}}const rx={borderRadius:4},yn=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.string,n.object,n.array]):{};function ei(e,t){return t?dt(e,t,{clone:!1}):e}const os={xs:0,sm:600,md:900,lg:1200,xl:1536},Wu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${os[e]}px)`},ix={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:os[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function en(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Wu;return t.reduce((a,c,u)=>(a[s.up(s.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const s=i.breakpoints||Wu;return Object.keys(t).reduce((a,c)=>{if(ex(s.keys,c)){const u=tx(i.containerQueries?i:ix,c);u&&(a[u]=r(t[c],c))}else if(Object.keys(s.values||os).includes(c)){const u=s.up(c);a[u]=r(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return r(t)}function ox(e={}){return e.keys?.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{})||{}}function Xu(e,t){return e.reduce((r,i)=>{const o=r[i];return(!o||Object.keys(o).length===0)&&delete r[i],r},t)}function ve(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ss(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function Co(e,t,r,i=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||i:o=ss(e,r)||i,t&&(o=t(o,i,e)),o}function Ie(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:o}=e,s=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,l=ss(u,i)||{};return en(a,c,f=>{let p=Co(l,o,f);return f===p&&typeof f=="string"&&(p=Co(l,o,`${t}${f==="default"?"":ve(f)}`,f)),r===!1?p:{[r]:p}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:yn}:{},s.filterProps=[t],s}function sx(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ax={m:"margin",p:"padding"},cx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ku={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lx=sx(e=>{if(e.length>2)if(Ku[e])e=Ku[e];else return[e];const[t,r]=e.split(""),i=ax[t],o=cx[r]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),as=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ux=[...as,...cs];function ki(e,t,r,i){const o=ss(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
5
5
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
6
6
|
`)));const c=o[a];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
7
|
-
`)),()=>{})}function pa(e){return Br(e,"spacing",8,"spacing")}function Wr(e,t){return typeof t=="string"||t==null?t:e(t)}function Im(e,t){return n=>e.reduce((i,o)=>(i[o]=Wr(t,n),i),{})}function $m(e,t,n,i){if(!t.includes(n))return null;const o=Em(n),s=Im(o,i),a=e[n];return jt(e,a,s)}function hf(e,t){const n=pa(e.theme);return Object.keys(e).map(i=>$m(e,t,i,n)).reduce(mr,{})}function ve(e){return hf(e,ao)}ve.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=tn,e),{}):{};ve.filterProps=ao;function Oe(e){return hf(e,co)}Oe.propTypes=process.env.NODE_ENV!=="production"?co.reduce((e,t)=>(e[t]=tn,e),{}):{};Oe.filterProps=co;process.env.NODE_ENV!=="production"&&Mm.reduce((e,t)=>(e[t]=tn,e),{});function mf(e=8,t=pa({spacing:e})){if(e.mui)return e;const n=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function lo(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),n=i=>Object.keys(i).reduce((o,s)=>t[s]?mr(o,t[s](i)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,o)=>Object.assign(i,o.propTypes),{}):{},n.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),n}function Je(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const jm=lt("border",Je),Nm=lt("borderTop",Je),Dm=lt("borderRight",Je),Lm=lt("borderBottom",Je),Fm=lt("borderLeft",Je),qm=lt("borderColor"),Um=lt("borderTopColor"),zm=lt("borderRightColor"),Vm=lt("borderBottomColor"),Hm=lt("borderLeftColor"),Bm=lt("outline",Je),Wm=lt("outlineColor"),uo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Br(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:Wr(t,i)});return jt(e,e.borderRadius,n)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:tn}:{};uo.filterProps=["borderRadius"];lo(jm,Nm,Dm,Lm,Fm,qm,Um,zm,Vm,Hm,uo,Bm,Wm);const fo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Br(e.theme,"spacing",8,"gap"),n=i=>({gap:Wr(t,i)});return jt(e,e.gap,n)}return null};fo.propTypes=process.env.NODE_ENV!=="production"?{gap:tn}:{};fo.filterProps=["gap"];const po=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Br(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:Wr(t,i)});return jt(e,e.columnGap,n)}return null};po.propTypes=process.env.NODE_ENV!=="production"?{columnGap:tn}:{};po.filterProps=["columnGap"];const ho=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Br(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:Wr(t,i)});return jt(e,e.rowGap,n)}return null};ho.propTypes=process.env.NODE_ENV!=="production"?{rowGap:tn}:{};ho.filterProps=["rowGap"];const Ym=Te({prop:"gridColumn"}),Gm=Te({prop:"gridRow"}),Xm=Te({prop:"gridAutoFlow"}),Km=Te({prop:"gridAutoColumns"}),Qm=Te({prop:"gridAutoRows"}),Zm=Te({prop:"gridTemplateColumns"}),Jm=Te({prop:"gridTemplateRows"}),eg=Te({prop:"gridTemplateAreas"}),tg=Te({prop:"gridArea"});lo(fo,po,ho,Ym,Gm,Xm,Km,Qm,Zm,Jm,eg,tg);function _n(e,t){return t==="grey"?t:e}const ng=Te({prop:"color",themeKey:"palette",transform:_n}),rg=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_n}),ig=Te({prop:"backgroundColor",themeKey:"palette",transform:_n});lo(ng,rg,ig);function Ye(e){return e<=1&&e!==0?`${e*100}%`:e}const og=Te({prop:"width",transform:Ye}),ha=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const i=e.theme?.breakpoints?.values?.[n]||oo[n];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ye(n)}};return jt(e,e.maxWidth,t)}return null};ha.filterProps=["maxWidth"];const sg=Te({prop:"minWidth",transform:Ye}),ag=Te({prop:"height",transform:Ye}),cg=Te({prop:"maxHeight",transform:Ye}),lg=Te({prop:"minHeight",transform:Ye});Te({prop:"size",cssProperty:"width",transform:Ye});Te({prop:"size",cssProperty:"height",transform:Ye});const ug=Te({prop:"boxSizing"});lo(og,ha,sg,ag,cg,lg,ug);const Yr={border:{themeKey:"borders",transform:Je},borderTop:{themeKey:"borders",transform:Je},borderRight:{themeKey:"borders",transform:Je},borderBottom:{themeKey:"borders",transform:Je},borderLeft:{themeKey:"borders",transform:Je},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Je},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uo},color:{themeKey:"palette",transform:_n},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_n},backgroundColor:{themeKey:"palette",transform:_n},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:ve},mt:{style:ve},mr:{style:ve},mb:{style:ve},ml:{style:ve},mx:{style:ve},my:{style:ve},margin:{style:ve},marginTop:{style:ve},marginRight:{style:ve},marginBottom:{style:ve},marginLeft:{style:ve},marginX:{style:ve},marginY:{style:ve},marginInline:{style:ve},marginInlineStart:{style:ve},marginInlineEnd:{style:ve},marginBlock:{style:ve},marginBlockStart:{style:ve},marginBlockEnd:{style:ve},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:fo},rowGap:{style:ho},columnGap:{style:po},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ye},maxWidth:{style:ha},minWidth:{transform:Ye},height:{transform:Ye},maxHeight:{transform:Ye},minHeight:{transform:Ye},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fg(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function dg(e,t){return typeof e=="function"?e(t):e}function pg(){function e(n,i,o,s){const a={[n]:i,theme:o},c=s[n];if(!c)return{[n]:i};const{cssProperty:u=n,themeKey:l,transform:f,style:d}=c;if(i==null)return null;if(l==="typography"&&i==="inherit")return{[n]:i};const p=so(o,l)||{};return d?d(a):jt(a,i,g=>{let h=ji(p,f,g);return g===h&&typeof g=="string"&&(h=ji(p,f,`${n}${g==="default"?"":jn(g)}`,g)),u===!1?h:{[u]:h}})}function t(n){const{sx:i,theme:o={},nested:s}=n||{};if(!i)return null;const a=o.unstable_sxConfig??Yr;function c(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const f=Sm(o.breakpoints),d=Object.keys(f);let p=f;return Object.keys(l).forEach(m=>{const g=dg(l[m],o);if(g!=null)if(typeof g=="object")if(a[m])p=mr(p,e(m,g,o,a));else{const h=jt({theme:o},g,y=>({[m]:y}));fg(h,g)?p[m]=t({sx:g,theme:o,nested:!0}):p=mr(p,h)}else p=mr(p,e(m,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":Qc(o,Jc(d,p))}:Qc(o,Jc(d,p))}return Array.isArray(i)?i.map(c):c(i)}return t}const Nn=pg();Nn.filterProps=["sx"];function hg(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function ma(e={},...t){const{breakpoints:n={},palette:i={},spacing:o,shape:s={},...a}=e,c=Om(n),u=mf(o);let l=Xe({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...Cm,...s}},a);return l=km(l),l.applyStyles=hg,l=t.reduce((f,d)=>Xe(f,d),l),l.unstable_sxConfig={...Yr,...a?.unstable_sxConfig},l.unstable_sx=function(d){return Nn({sx:d,theme:this})},l}function mg(e){return Object.keys(e).length===0}function gg(e=null){const t=M.useContext(df);return!t||mg(t)?e:t}const yg=ma();function gf(e=yg){return gg(e)}const bg=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Yr;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function xg(e){const{sx:t,...n}=e,{systemProps:i,otherProps:o}=bg(n);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return vt(c)?{...i,...c}:i}:s={...i,...t},{...o,sx:s}}const tl=e=>e,vg=()=>{let e=tl;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tl}}},Og=vg();function yf(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=yf(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function pt(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yf(e))&&(i&&(i+=" "),i+=t);return i}const wg={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 Re(e,t,n="Mui"){const i=wg[t];return i?`${n}-${i}`:`${Og.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const i={};return t.forEach(o=>{i[o]=Re(e,o,n)}),i}function bf(e,t=""){return e.displayName||e.name||t}function nl(e,t,n){const i=bf(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function Tg(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $i.ForwardRef:return nl(e,e.render,"ForwardRef");case $i.Memo:return nl(e,e.type,"memo");default:return}}}function xf(e){const{variants:t,...n}=e,i={variants:t,style:pn(n),isProcessed:!0};return i.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=pn(o.style))}),i}const kg=ma();function Ci(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ln(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Cg(e){return e?(t,n)=>n[e]:null}function Ag(e,t,n){e.theme=_g(e.theme)?n:e.theme[t]||e.theme}function Ai(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(o=>Ai(e,o,n));if(Array.isArray(i?.variants)){let o;if(i.isProcessed)o=n?ln(i.style,n):i.style;else{const{variants:s,...a}=i;o=n?ln(pn(a),n):a}return vf(e,i.variants,[o],n)}return i?.isProcessed?n?ln(pn(i.style),n):i.style:n?ln(pn(i),n):i}function vf(e,t,n=[],i=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&e.ownerState?.[c]!==a.props[c])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i?ln(pn(a.style(o)),i):a.style(o))):n.push(i?ln(pn(a.style),i):a.style)}return n}function Sg(e={}){const{themeId:t,defaultTheme:n=kg,rootShouldForwardProp:i=Ci,slotShouldForwardProp:o=Ci}=e;function s(c){Ag(c,t,n)}return(c,u={})=>{gm(c,k=>k.filter(R=>R!==Nn));const{name:l,slot:f,skipVariantsResolver:d,skipSx:p,overridesResolver:m=Cg(Of(f)),...g}=u,h=l&&l.startsWith("Mui")||f?"components":"custom",y=d!==void 0?d:f&&f!=="Root"&&f!=="root"||!1,b=p||!1;let v=Ci;f==="Root"||f==="root"?v=i:f?v=o:Eg(c)&&(v=void 0);const T=mm(c,{shouldForwardProp:v,label:Rg(l,f),...g}),O=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(N){return Ai(N,k,N.theme.modularCssLayers?h:void 0)};if(vt(k)){const R=xf(k);return function($){return R.variants?Ai($,R,$.theme.modularCssLayers?h:void 0):$.theme.modularCssLayers?ln(R.style,h):R.style}}return k},w=(...k)=>{const R=[],N=k.map(O),$=[];if(R.push(s),l&&m&&$.push(function(P){const I=P.theme.components?.[l]?.styleOverrides;if(!I)return null;const F={};for(const z in I)F[z]=Ai(P,I[z],P.theme.modularCssLayers?"theme":void 0);return m(P,F)}),l&&!y&&$.push(function(P){const I=P.theme?.components?.[l]?.variants;return I?vf(P,I,[],P.theme.modularCssLayers?"theme":void 0):null}),b||$.push(Nn),Array.isArray(N[0])){const x=N.shift(),P=new Array(R.length).fill(""),C=new Array($.length).fill("");let I;I=[...P,...x,...C],I.raw=[...P,...x.raw,...C],R.unshift(I)}const D=[...R,...N,...$],E=T(...D);return c.muiName&&(E.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(E.displayName=Pg(l,f,c)),E};return T.withConfig&&(w.withConfig=T.withConfig),w}}function Pg(e,t,n){return e?`${e}${jn(t||"")}`:`Styled(${Tg(n)})`}function Rg(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Of(t||"Root")}`),n}function _g(e){for(const t in e)return!1;return!0}function Eg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Of(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ni(e,t,n=!1){const i={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],c=t[s];if(!c)i[s]=a||{};else if(!a)i[s]=c;else{i[s]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const l=u;i[s][l]=Ni(a[l],c[l],n)}}}else s==="className"&&n&&t.className?i.className=pt(e?.className,t?.className):s==="style"&&n&&t.style?i.style={...e?.style,...t?.style}:i[s]===void 0&&(i[s]=e[s])}return i}function Mg(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Ni(t.components[n].defaultProps,i)}function Ig({props:e,name:t,defaultTheme:n,themeId:i}){let o=gf(n);return o=o[i]||o,Mg({theme:o,name:t,props:e})}const Qt=typeof window<"u"?M.useLayoutEffect:M.useEffect;function $g(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ga(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),$g(e,t,n)}function jg(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(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Zt(e){if(e.type)return e;if(e.charAt(0)==="#")return Zt(jg(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
8
|
-
|
|
9
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Kt(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:n,values:i,colorSpace:o}}const Ng=e=>{const t=Zt(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},dr=(e,t)=>{try{return Ng(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function mo(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function wf(e){e=Zt(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),a=(l,f=(l+n/30)%12)=>o-s*Math.max(Math.min(f-3,9-f,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),mo({type:c,values:u})}function _s(e){e=Zt(e);let t=e.type==="hsl"||e.type==="hsla"?Zt(wf(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 rl(e,t){const n=_s(e),i=_s(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Tf(e,t){return e=Zt(e),t=ga(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mo(e)}function on(e,t,n){try{return Tf(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function go(e,t){if(e=Zt(e),t=ga(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mo(e)}function pe(e,t,n){try{return go(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function yo(e,t){if(e=Zt(e),t=ga(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mo(e)}function he(e,t,n){try{return yo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Dg(e,t=.15){return _s(e)>.5?go(e,t):yo(e,t)}function ci(e,t,n){try{return Dg(e,t)}catch{return e}}const Lg="exact-prop: ";function kf(e){return process.env.NODE_ENV==="production"?e:{...e,[Lg]:t=>{const n=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return n.length>0?new Error(`The following props are not supported: ${n.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}const Fg=M.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const bo=()=>M.useContext(Fg)??!1,qg=M.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function Ug(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const o=t.components[n];return o.defaultProps?Ni(o.defaultProps,i,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ni(o,i,t.components.mergeClassNameAndStyle):i}function zg({props:e,name:t}){const n=M.useContext(qg);return Ug({props:e,name:t,theme:{components:n}})}let il=0;function Vg(e){const[t,n]=M.useState(e),i=t;return M.useEffect(()=>{t==null&&(il+=1,n(`mui-${il}`))},[t]),i}const Hg={...M},ol=Hg.useId;function ya(e){return ol!==void 0?ol():Vg(e)}const sl={theme:void 0};function Bg(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(sl.theme=o.theme,s=xf(e(sl)),t=s,n=o.theme),s}}function Wg(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const al=(e,t,n,i=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=i.includes(s)?[]:{}),o=o[s])})},Yg=(e,t,n)=>{function i(o,s=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...s,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?i(u,[...s,c],Array.isArray(u)?[...a,c]:a):t([...s,c],u,a))})}i(e)},Gg=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ns(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},o={},s={},a={};return Yg(e,(c,u,l)=>{if((typeof u=="string"||typeof u=="number")&&(!i||!i(c,u))){const f=`--${n?`${n}-`:""}${c.join("-")}`,d=Gg(c,u);Object.assign(o,{[f]:d}),al(s,c,`var(${f})`,l),al(a,c,`var(${f}, ${d})`,l)}},c=>c[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function Xg(e,t={}){const{getSelector:n=b,disableCssColorScheme:i,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...l}=e,{vars:f,css:d,varsWithDefaults:p}=ns(l,t);let m=p;const g={},{[u]:h,...y}=a;if(Object.entries(y||{}).forEach(([O,w])=>{const{vars:k,css:R,varsWithDefaults:N}=ns(w,t);m=Xe(m,N),g[O]={css:R,vars:k}}),h){const{css:O,vars:w,varsWithDefaults:k}=ns(h,t);m=Xe(m,k),g[u]={css:O,vars:w}}function b(O,w){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),O){if(k==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${a[O]?.palette?.mode||O})`]:{":root":w}};if(k)return e.defaultColorScheme===O?`:root, ${k.replace("%s",String(O))}`:k.replace("%s",String(O))}return":root"}return{vars:m,generateThemeVars:()=>{let O={...f};return Object.entries(g).forEach(([,{vars:w}])=>{O=Xe(O,w)}),O},generateStyleSheets:()=>{const O=[],w=e.defaultColorScheme||"light";function k($,D){Object.keys(D).length&&O.push(typeof $=="string"?{[$]:{...D}}:$)}k(n(void 0,{...d}),d);const{[w]:R,...N}=g;if(R){const{css:$}=R,D=a[w]?.palette?.mode,E=!i&&D?{colorScheme:D,...$}:{...$};k(n(w,{...E}),E)}return Object.entries(N).forEach(([$,{css:D}])=>{const E=a[$]?.palette?.mode,x=!i&&E?{colorScheme:E,...D}:{...D};k(n($,{...x}),x)}),s&&O.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),O}}}function Kg(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ie(e,t,n=void 0){const i={};for(const o in e){const s=e[o];let a="",c=!0;for(let u=0;u<s.length;u+=1){const l=s[u];l&&(a+=(c===!0?"":" ")+t(l),c=!1,n&&n[l]&&(a+=" "+n[l]))}i[o]=a}return i}const Cr={black:"#000",white:"#fff"},Qg={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"},On={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},wn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ir={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Tn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},kn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Cf(){return{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:Cr.white,default:Cr.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}}}const Af=Cf();function Sf(){return{text:{primary:Cr.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:Cr.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}}}const Es=Sf();function cl(e,t,n,i){const o=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=yo(e.main,o):t==="dark"&&(e.dark=go(e.main,s)))}function ll(e,t,n,i,o){const s=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Zg(e="light"){return e==="dark"?{main:Tn[200],light:Tn[50],dark:Tn[400]}:{main:Tn[700],light:Tn[400],dark:Tn[800]}}function Jg(e="light"){return e==="dark"?{main:On[200],light:On[50],dark:On[400]}:{main:On[500],light:On[300],dark:On[700]}}function ey(e="light"){return e==="dark"?{main:wn[500],light:wn[300],dark:wn[700]}:{main:wn[700],light:wn[400],dark:wn[800]}}function ty(e="light"){return e==="dark"?{main:kn[400],light:kn[300],dark:kn[700]}:{main:kn[700],light:kn[500],dark:kn[900]}}function ny(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function ry(e="light"){return e==="dark"?{main:ir[400],light:ir[300],dark:ir[700]}:{main:"#ed6c02",light:ir[500],dark:ir[900]}}function iy(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ba(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:o,...s}=e,a=e.primary||Zg(t),c=e.secondary||Jg(t),u=e.error||ey(t),l=e.info||ty(t),f=e.success||ny(t),d=e.warning||ry(t);function p(y){if(o)return iy(y);const b=rl(y,Es.text.primary)>=n?Es.text.primary:Af.text.primary;if(process.env.NODE_ENV!=="production"){const v=rl(y,b);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${b} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
10
|
-
|
|
11
|
-
The color object needs to have a \`main\` property or a \`${v}\` property.`:Kt(11,b?` (${b})`:"",v));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
7
|
+
`)),()=>{})}function Fc(e){return ki(e,"spacing",8,"spacing")}function Si(e,t){return typeof t=="string"||t==null?t:e(t)}function dx(e,t){return r=>e.reduce((i,o)=>(i[o]=Si(t,r),i),{})}function fx(e,t,r,i){if(!t.includes(r))return null;const o=lx(r),s=dx(o,i),a=e[r];return en(e,a,s)}function Ap(e,t){const r=Fc(e.theme);return Object.keys(e).map(i=>fx(e,t,i,r)).reduce(ei,{})}function we(e){return Ap(e,as)}we.propTypes=process.env.NODE_ENV!=="production"?as.reduce((e,t)=>(e[t]=yn,e),{}):{};we.filterProps=as;function Ee(e){return Ap(e,cs)}Ee.propTypes=process.env.NODE_ENV!=="production"?cs.reduce((e,t)=>(e[t]=yn,e),{}):{};Ee.filterProps=cs;process.env.NODE_ENV!=="production"&&ux.reduce((e,t)=>(e[t]=yn,e),{});function Pp(e=8,t=Fc({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function ls(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),r=i=>Object.keys(i).reduce((o,s)=>t[s]?ei(o,t[s](i)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,o)=>Object.assign(i,o.propTypes),{}):{},r.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),r}function bt(e){return typeof e!="number"?e:`${e}px solid`}function At(e,t){return Ie({prop:e,themeKey:"borders",transform:t})}const px=At("border",bt),hx=At("borderTop",bt),mx=At("borderRight",bt),gx=At("borderBottom",bt),yx=At("borderLeft",bt),bx=At("borderColor"),xx=At("borderTopColor"),vx=At("borderRightColor"),Ox=At("borderBottomColor"),Tx=At("borderLeftColor"),kx=At("outline",bt),Sx=At("outlineColor"),us=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ki(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Si(t,i)});return en(e,e.borderRadius,r)}return null};us.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:yn}:{};us.filterProps=["borderRadius"];ls(px,hx,mx,gx,yx,bx,xx,vx,Ox,Tx,us,kx,Sx);const ds=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ki(e.theme,"spacing",8,"gap"),r=i=>({gap:Si(t,i)});return en(e,e.gap,r)}return null};ds.propTypes=process.env.NODE_ENV!=="production"?{gap:yn}:{};ds.filterProps=["gap"];const fs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ki(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Si(t,i)});return en(e,e.columnGap,r)}return null};fs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:yn}:{};fs.filterProps=["columnGap"];const ps=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ki(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Si(t,i)});return en(e,e.rowGap,r)}return null};ps.propTypes=process.env.NODE_ENV!=="production"?{rowGap:yn}:{};ps.filterProps=["rowGap"];const Cx=Ie({prop:"gridColumn"}),wx=Ie({prop:"gridRow"}),Ex=Ie({prop:"gridAutoFlow"}),Ax=Ie({prop:"gridAutoColumns"}),Px=Ie({prop:"gridAutoRows"}),Rx=Ie({prop:"gridTemplateColumns"}),Ix=Ie({prop:"gridTemplateRows"}),Mx=Ie({prop:"gridTemplateAreas"}),$x=Ie({prop:"gridArea"});ls(ds,fs,ps,Cx,wx,Ex,Ax,Px,Rx,Ix,Mx,$x);function hr(e,t){return t==="grey"?t:e}const _x=Ie({prop:"color",themeKey:"palette",transform:hr}),Dx=Ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hr}),Lx=Ie({prop:"backgroundColor",themeKey:"palette",transform:hr});ls(_x,Dx,Lx);function ct(e){return e<=1&&e!==0?`${e*100}%`:e}const Nx=Ie({prop:"width",transform:ct}),zc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||os[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:ct(r)}};return en(e,e.maxWidth,t)}return null};zc.filterProps=["maxWidth"];const jx=Ie({prop:"minWidth",transform:ct}),qx=Ie({prop:"height",transform:ct}),Fx=Ie({prop:"maxHeight",transform:ct}),zx=Ie({prop:"minHeight",transform:ct});Ie({prop:"size",cssProperty:"width",transform:ct});Ie({prop:"size",cssProperty:"height",transform:ct});const Bx=Ie({prop:"boxSizing"});ls(Nx,zc,jx,qx,Fx,zx,Bx);const Ci={border:{themeKey:"borders",transform:bt},borderTop:{themeKey:"borders",transform:bt},borderRight:{themeKey:"borders",transform:bt},borderBottom:{themeKey:"borders",transform:bt},borderLeft:{themeKey:"borders",transform:bt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:us},color:{themeKey:"palette",transform:hr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hr},backgroundColor:{themeKey:"palette",transform:hr},p:{style:Ee},pt:{style:Ee},pr:{style:Ee},pb:{style:Ee},pl:{style:Ee},px:{style:Ee},py:{style:Ee},padding:{style:Ee},paddingTop:{style:Ee},paddingRight:{style:Ee},paddingBottom:{style:Ee},paddingLeft:{style:Ee},paddingX:{style:Ee},paddingY:{style:Ee},paddingInline:{style:Ee},paddingInlineStart:{style:Ee},paddingInlineEnd:{style:Ee},paddingBlock:{style:Ee},paddingBlockStart:{style:Ee},paddingBlockEnd:{style:Ee},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},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:ds},rowGap:{style:ps},columnGap:{style:fs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ct},maxWidth:{style:zc},minWidth:{transform:ct},height:{transform:ct},maxHeight:{transform:ct},minHeight:{transform:ct},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Hx(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function Vx(e,t){return typeof e=="function"?e(t):e}function Gx(){function e(r,i,o,s){const a={[r]:i,theme:o},c=s[r];if(!c)return{[r]:i};const{cssProperty:u=r,themeKey:l,transform:d,style:f}=c;if(i==null)return null;if(l==="typography"&&i==="inherit")return{[r]:i};const p=ss(o,l)||{};return f?f(a):en(a,i,g=>{let m=Co(p,d,g);return g===m&&typeof g=="string"&&(m=Co(p,d,`${r}${g==="default"?"":ve(g)}`,g)),u===!1?m:{[u]:m}})}function t(r){const{sx:i,theme:o={},nested:s}=r||{};if(!i)return null;const a=o.unstable_sxConfig??Ci;function c(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const d=ox(o.breakpoints),f=Object.keys(d);let p=d;return Object.keys(l).forEach(h=>{const g=Vx(l[h],o);if(g!=null)if(typeof g=="object")if(a[h])p=ei(p,e(h,g,o,a));else{const m=en({theme:o},g,y=>({[h]:y}));Hx(m,g)?p[h]=t({sx:g,theme:o,nested:!0}):p=ei(p,m)}else p=ei(p,e(h,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":Yu(o,Xu(f,p))}:Yu(o,Xu(f,p))}return Array.isArray(i)?i.map(c):c(i)}return t}const Or=Gx();Or.filterProps=["sx"];function Ux(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function Bc(e={},...t){const{breakpoints:r={},palette:i={},spacing:o,shape:s={},...a}=e,c=Jb(r),u=Pp(o);let l=dt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...rx,...s}},a);return l=nx(l),l.applyStyles=Ux,l=t.reduce((d,f)=>dt(d,f),l),l.unstable_sxConfig={...Ci,...a?.unstable_sxConfig},l.unstable_sx=function(f){return Or({sx:f,theme:this})},l}function Yx(e){return Object.keys(e).length===0}function Rp(e=null){const t=P.useContext(Nc);return!t||Yx(t)?e:t}const Wx=Bc();function Ip(e=Wx){return Rp(e)}const Xx=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Ci;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Kx(e){const{sx:t,...r}=e,{systemProps:i,otherProps:o}=Xx(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return Ft(c)?{...i,...c}:i}:s={...i,...t},{...o,sx:s}}const Zu=e=>e,Zx=()=>{let e=Zu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zu}}},Qx=Zx();function Mp(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Mp(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function ge(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Mp(e))&&(i&&(i+=" "),i+=t);return i}const Jx={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 Te(e,t,r="Mui"){const i=Jx[t];return i?`${r}-${i}`:`${Qx.generate(e)}-${t}`}function Oe(e,t,r="Mui"){const i={};return t.forEach(o=>{i[o]=Te(e,o,r)}),i}function $p(e,t=""){return e.displayName||e.name||t}function Qu(e,t,r){const i=$p(t);return e.displayName||(i!==""?`${r}(${i})`:r)}function e0(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $p(e,"Component");if(typeof e=="object")switch(e.$$typeof){case vr.ForwardRef:return Qu(e,e.render,"ForwardRef");case vr.Memo:return Qu(e,e.type,"memo");default:return}}}function _p(e){const{variants:t,...r}=e,i={variants:t,style:Mn(r),isProcessed:!0};return i.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Mn(o.style))}),i}const t0=Bc();function Ea(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function An(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function n0(e){return e?(t,r)=>r[e]:null}function r0(e,t,r){e.theme=a0(e.theme)?r:e.theme[t]||e.theme}function Oo(e,t,r){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(o=>Oo(e,o,r));if(Array.isArray(i?.variants)){let o;if(i.isProcessed)o=r?An(i.style,r):i.style;else{const{variants:s,...a}=i;o=r?An(Mn(a),r):a}return Dp(e,i.variants,[o],r)}return i?.isProcessed?r?An(Mn(i.style),r):i.style:r?An(Mn(i),r):i}function Dp(e,t,r=[],i=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&e.ownerState?.[c]!==a.props[c])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i?An(Mn(a.style(o)),i):a.style(o))):r.push(i?An(Mn(a.style),i):a.style)}return r}function i0(e={}){const{themeId:t,defaultTheme:r=t0,rootShouldForwardProp:i=Ea,slotShouldForwardProp:o=Ea}=e;function s(c){r0(c,t,r)}return(c,u={})=>{Wb(c,k=>k.filter(w=>w!==Or));const{name:l,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=n0(Lp(d)),...g}=u,m=l&&l.startsWith("Mui")||d?"components":"custom",y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,b=p||!1;let O=Ea;d==="Root"||d==="root"?O=i:d?O=o:c0(c)&&(O=void 0);const S=Yb(c,{shouldForwardProp:O,label:s0(l,d),...g}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(M){return Oo(M,k,M.theme.modularCssLayers?m:void 0)};if(Ft(k)){const w=_p(k);return function(I){return w.variants?Oo(I,w,I.theme.modularCssLayers?m:void 0):I.theme.modularCssLayers?An(w.style,m):w.style}}return k},T=(...k)=>{const w=[],M=k.map(v),I=[];if(w.push(s),l&&h&&I.push(function(A){const N=A.theme.components?.[l]?.styleOverrides;if(!N)return null;const q={};for(const F in N)q[F]=Oo(A,N[F],A.theme.modularCssLayers?"theme":void 0);return h(A,q)}),l&&!y&&I.push(function(A){const N=A.theme?.components?.[l]?.variants;return N?Dp(A,N,[],A.theme.modularCssLayers?"theme":void 0):null}),b||I.push(Or),Array.isArray(M[0])){const x=M.shift(),A=new Array(w.length).fill(""),R=new Array(I.length).fill("");let N;N=[...A,...x,...R],N.raw=[...A,...x.raw,...R],w.unshift(N)}const _=[...w,...M,...I],$=S(..._);return c.muiName&&($.muiName=c.muiName),process.env.NODE_ENV!=="production"&&($.displayName=o0(l,d,c)),$};return S.withConfig&&(T.withConfig=S.withConfig),T}}function o0(e,t,r){return e?`${e}${ve(t||"")}`:`Styled(${e0(r)})`}function s0(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Lp(t||"Root")}`),r}function a0(e){for(const t in e)return!1;return!0}function c0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ln(e,t,r=!1){const i={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],c=t[s];if(!c)i[s]=a||{};else if(!a)i[s]=c;else{i[s]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const l=u;i[s][l]=Ln(a[l],c[l],r)}}}else s==="className"&&r&&t.className?i.className=ge(e?.className,t?.className):s==="style"&&r&&t.style?i.style={...e?.style,...t?.style}:i[s]===void 0&&(i[s]=e[s])}return i}function Np(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:Ln(t.components[r].defaultProps,i)}function l0({props:e,name:t,defaultTheme:r,themeId:i}){let o=Ip(r);return o=o[i]||o,Np({theme:o,name:t,props:e})}const Le=typeof window<"u"?P.useLayoutEffect:P.useEffect;function u0(e,t,r,i,o){const[s,a]=P.useState(()=>o&&r?r(e).matches:i?i(e).matches:t);return Le(()=>{if(!r)return;const c=r(e),u=()=>{a(c.matches)};return u(),c.addEventListener("change",u),()=>{c.removeEventListener("change",u)}},[e,r]),s}const d0={...P},jp=d0.useSyncExternalStore;function f0(e,t,r,i,o){const s=P.useCallback(()=>t,[t]),a=P.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(i!==null){const{matches:d}=i(e);return()=>d}return s},[s,e,i,o,r]),[c,u]=P.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[s,r,e]);return jp(u,c,a)}function qp(e={}){const{themeId:t}=e;return function(i,o={}){let s=Rp();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:u=a?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:d=!1}=Np({name:"MuiUseMediaQuery",props:o,theme:s});process.env.NODE_ENV!=="production"&&typeof i=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
8
|
+
`));let f=typeof i=="function"?i(s):i;f=f.replace(/^@media( ?)/m,""),f.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
9
|
+
`));const h=(jp!==void 0?f0:u0)(f,c,u,l,d);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}qp();function p0(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Hc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),p0(e,t,r)}function h0(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function hn(e){if(e.type)return e;if(e.charAt(0)==="#")return hn(h0(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
10
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:pn(9,e));let i=e.substring(t+1,e.length-1),o;if(r==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
11
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:pn(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:o}}const m0=e=>{const t=hn(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Kr=(e,t)=>{try{return m0(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function hs(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Fp(e){e=hn(e);const{values:t}=e,r=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),a=(l,d=(l+r/30)%12)=>o-s*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),hs({type:c,values:u})}function tc(e){e=hn(e);let t=e.type==="hsl"||e.type==="hsla"?hn(Fp(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ju(e,t){const r=tc(e),i=tc(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function zp(e,t){return e=hn(e),t=Hc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hs(e)}function Cn(e,t,r){try{return zp(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ms(e,t){if(e=hn(e),t=Hc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return hs(e)}function he(e,t,r){try{return ms(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function gs(e,t){if(e=hn(e),t=Hc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return hs(e)}function me(e,t,r){try{return gs(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function g0(e,t=.15){return tc(e)>.5?ms(e,t):gs(e,t)}function Qi(e,t,r){try{return g0(e,t)}catch{return e}}const y0="exact-prop: ";function Bp(e){return process.env.NODE_ENV==="production"?e:{...e,[y0]:t=>{const r=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return r.length>0?new Error(`The following props are not supported: ${r.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}const b0=P.createContext();process.env.NODE_ENV!=="production"&&(n.node,n.bool);const x0=()=>P.useContext(b0)??!1,v0=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.node,n.object);function O0(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const o=t.components[r];return o.defaultProps?Ln(o.defaultProps,i,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ln(o,i,t.components.mergeClassNameAndStyle):i}function T0({props:e,name:t}){const r=P.useContext(v0);return O0({props:e,name:t,theme:{components:r}})}let ed=0;function k0(e){const[t,r]=P.useState(e),i=e||t;return P.useEffect(()=>{t==null&&(ed+=1,r(`mui-${ed}`))},[t]),i}const S0={...P},td=S0.useId;function wi(e){if(td!==void 0){const t=td();return e??t}return k0(e)}const nd={theme:void 0};function C0(e){let t,r;return function(o){let s=t;return(s===void 0||o.theme!==r)&&(nd.theme=o.theme,s=_p(e(nd)),t=s,r=o.theme),s}}function w0(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const rd=(e,t,r,i=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=i.includes(s)?[]:{}),o=o[s])})},E0=(e,t,r)=>{function i(o,s=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!r||r&&!r([...s,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?i(u,[...s,c],Array.isArray(u)?[...a,c]:a):t([...s,c],u,a))})}i(e)},A0=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Aa(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},o={},s={},a={};return E0(e,(c,u,l)=>{if((typeof u=="string"||typeof u=="number")&&(!i||!i(c,u))){const d=`--${r?`${r}-`:""}${c.join("-")}`,f=A0(c,u);Object.assign(o,{[d]:f}),rd(s,c,`var(${d})`,l),rd(a,c,`var(${d}, ${f})`,l)}},c=>c[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function P0(e,t={}){const{getSelector:r=b,disableCssColorScheme:i,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...l}=e,{vars:d,css:f,varsWithDefaults:p}=Aa(l,t);let h=p;const g={},{[u]:m,...y}=a;if(Object.entries(y||{}).forEach(([v,T])=>{const{vars:k,css:w,varsWithDefaults:M}=Aa(T,t);h=dt(h,M),g[v]={css:w,vars:k}}),m){const{css:v,vars:T,varsWithDefaults:k}=Aa(m,t);h=dt(h,k),g[u]={css:v,vars:T}}function b(v,T){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),v){if(k==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${a[v]?.palette?.mode||v})`]:{":root":T}};if(k)return e.defaultColorScheme===v?`:root, ${k.replace("%s",String(v))}`:k.replace("%s",String(v))}return":root"}return{vars:h,generateThemeVars:()=>{let v={...d};return Object.entries(g).forEach(([,{vars:T}])=>{v=dt(v,T)}),v},generateStyleSheets:()=>{const v=[],T=e.defaultColorScheme||"light";function k(I,_){Object.keys(_).length&&v.push(typeof I=="string"?{[I]:{..._}}:I)}k(r(void 0,{...f}),f);const{[T]:w,...M}=g;if(w){const{css:I}=w,_=a[T]?.palette?.mode,$=!i&&_?{colorScheme:_,...I}:{...I};k(r(T,{...$}),$)}return Object.entries(M).forEach(([I,{css:_}])=>{const $=a[I]?.palette?.mode,x=!i&&$?{colorScheme:$,..._}:{..._};k(r(I,{...x}),x)}),s&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function R0(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function ke(e,t,r=void 0){const i={};for(const o in e){const s=e[o];let a="",c=!0;for(let u=0;u<s.length;u+=1){const l=s[u];l&&(a+=(c===!0?"":" ")+t(l),c=!1,r&&r[l]&&(a+=" "+r[l]))}i[o]=a}return i}const ci={black:"#000",white:"#fff"},I0={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"},Jn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},er={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Br={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},tr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},nr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},rr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Hp(){return{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:ci.white,default:ci.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}}}const Vp=Hp();function Gp(){return{text:{primary:ci.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:ci.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}}}const nc=Gp();function id(e,t,r,i){const o=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=gs(e.main,o):t==="dark"&&(e.dark=ms(e.main,s)))}function od(e,t,r,i,o){const s=o.light||o,a=o.dark||o*1.5;t[r]||(t.hasOwnProperty(i)?t[r]=t[i]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function M0(e="light"){return e==="dark"?{main:tr[200],light:tr[50],dark:tr[400]}:{main:tr[700],light:tr[400],dark:tr[800]}}function $0(e="light"){return e==="dark"?{main:Jn[200],light:Jn[50],dark:Jn[400]}:{main:Jn[500],light:Jn[300],dark:Jn[700]}}function _0(e="light"){return e==="dark"?{main:er[500],light:er[300],dark:er[700]}:{main:er[700],light:er[400],dark:er[800]}}function D0(e="light"){return e==="dark"?{main:nr[400],light:nr[300],dark:nr[700]}:{main:nr[700],light:nr[500],dark:nr[900]}}function L0(e="light"){return e==="dark"?{main:rr[400],light:rr[300],dark:rr[700]}:{main:rr[800],light:rr[500],dark:rr[900]}}function N0(e="light"){return e==="dark"?{main:Br[400],light:Br[300],dark:Br[700]}:{main:"#ed6c02",light:Br[500],dark:Br[900]}}function j0(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Vc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,colorSpace:o,...s}=e,a=e.primary||M0(t),c=e.secondary||$0(t),u=e.error||_0(t),l=e.info||D0(t),d=e.success||L0(t),f=e.warning||N0(t);function p(y){if(o)return j0(y);const b=Ju(y,nc.text.primary)>=r?nc.text.primary:Vp.text.primary;if(process.env.NODE_ENV!=="production"){const O=Ju(y,b);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${b} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
12
|
+
`))}return b}const h=({color:y,name:b,mainShade:O=500,lightShade:S=300,darkShade:v=700})=>{if(y={...y},!y.main&&y[O]&&(y.main=y[O]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
13
|
+
The color object needs to have a \`main\` property or a \`${O}\` property.`:pn(11,b?` (${b})`:"",O));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
12
14
|
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
13
15
|
|
|
14
16
|
Did you intend to use one of the following approaches?
|
|
@@ -21,39 +23,152 @@ const theme1 = createTheme({ palette: {
|
|
|
21
23
|
|
|
22
24
|
const theme2 = createTheme({ palette: {
|
|
23
25
|
primary: { main: green[500] },
|
|
24
|
-
} });`:
|
|
25
|
-
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(
|
|
26
|
+
} });`:pn(12,b?` (${b})`:"",JSON.stringify(y.main)));return o?(od(o,y,"light",S,i),od(o,y,"dark",v,i)):(id(y,"light",S,i),id(y,"dark",v,i)),y.contrastText||(y.contrastText=p(y.main)),y};let g;return t==="light"?g=Hp():t==="dark"&&(g=Gp()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),dt({common:{...ci},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:d,name:"success"}),grey:I0,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:i,...g},s)}function q0(e){const t={};return Object.entries(e).forEach(i=>{const[o,s]=i;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function F0(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function z0(e){return Math.round(e*1e5)/1e5}const sd={textTransform:"uppercase"},ad='"Roboto", "Helvetica", "Arial", sans-serif';function B0(e,t){const{fontFamily:r=ad,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:l,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=i/14,h=d||(y=>`${y/u*p}rem`),g=(y,b,O,S,v)=>({fontFamily:r,fontWeight:y,fontSize:h(b),lineHeight:O,...r===ad?{letterSpacing:`${z0(S/b)}em`}:{},...v,...l}),m={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,sd),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,sd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return dt({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c,...m},f,{clone:!1})}const H0=.2,V0=.14,G0=.12;function Ce(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${H0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${V0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${G0})`].join(",")}const U0=["none",Ce(0,2,1,-1,0,1,1,0,0,1,3,0),Ce(0,3,1,-2,0,2,2,0,0,1,5,0),Ce(0,3,3,-2,0,3,4,0,0,1,8,0),Ce(0,2,4,-1,0,4,5,0,0,1,10,0),Ce(0,3,5,-1,0,5,8,0,0,1,14,0),Ce(0,3,5,-1,0,6,10,0,0,1,18,0),Ce(0,4,5,-2,0,7,10,1,0,2,16,1),Ce(0,5,5,-3,0,8,10,1,0,3,14,2),Ce(0,5,6,-3,0,9,12,1,0,3,16,2),Ce(0,6,6,-3,0,10,14,1,0,4,18,3),Ce(0,6,7,-4,0,11,15,1,0,4,20,3),Ce(0,7,8,-4,0,12,17,2,0,5,22,4),Ce(0,7,8,-4,0,13,19,2,0,5,24,4),Ce(0,7,9,-4,0,14,21,2,0,5,26,4),Ce(0,8,9,-5,0,15,22,2,0,6,28,5),Ce(0,8,10,-5,0,16,24,2,0,6,30,5),Ce(0,8,11,-5,0,17,26,2,0,6,32,5),Ce(0,9,11,-5,0,18,28,2,0,7,34,6),Ce(0,9,12,-6,0,19,29,2,0,7,36,6),Ce(0,10,13,-6,0,20,31,3,0,8,38,7),Ce(0,10,13,-6,0,21,33,3,0,8,40,7),Ce(0,10,14,-6,0,22,35,3,0,8,42,7),Ce(0,11,14,-7,0,23,36,3,0,9,44,8),Ce(0,11,15,-7,0,24,38,3,0,9,46,8)],Y0={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)"},W0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cd(e){return`${Math.round(e)}ms`}function X0(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function K0(e){const t={...Y0,...e.easing},r={...W0,...e.duration};return{getAutoHeightDuration:X0,create:(o=["all"],s={})=>{const{duration:a=r.standard,easing:c=t.easeInOut,delay:u=0,...l}=s;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(c)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!d(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
27
|
+
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:cd(a)} ${c} ${typeof u=="string"?u:cd(u)}`).join(",")},...e,easing:t,duration:r}}const Z0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Q0(e){return Ft(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Up(e={}){const t={...e};function r(i){const o=Object.entries(i);for(let s=0;s<o.length;s++){const[a,c]=o[s];!Q0(c)||a.startsWith("unstable_")?delete i[a]:Ft(c)&&(i[a]={...c},r(i[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
26
28
|
|
|
27
29
|
const theme = ${JSON.stringify(t,null,2)};
|
|
28
30
|
|
|
29
31
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
30
32
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
31
33
|
|
|
32
|
-
export default theme;`}function
|
|
33
|
-
`))}y[
|
|
34
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Py(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gt=e=>{try{return e()}catch{}},Ry=(e="mui")=>Wg(e);function rs(e,t,n,i,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!i){t[o]=Ty({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...c}=Ms({...i,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...Rf(s),...n?.opacity},overlays:n?.overlays||_f(s)},c}function _y(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=ky,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...f}=e,d=Object.keys(n)[0],p=i||(n.light&&d!=="light"?"light":d),m=Ry(s),{[p]:g,light:h,dark:y,...b}=n,v={...b};let T=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Kt(21,p));let O;a&&(O="oklch");const w=rs(O,v,T,f,p);h&&!v.light&&rs(O,v,h,void 0,"light"),y&&!v.dark&&rs(O,v,y,void 0,"dark");let k={defaultColorScheme:p,...w,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:l,getCssVar:m,colorSchemes:v,font:{...oy(w.typography),...w.font},spacing:Py(f.spacing)};Object.keys(k.colorSchemes).forEach(E=>{const x=k.colorSchemes[E].palette,P=I=>{const F=I.split("-"),z=F[1],B=F[2];return m(I,x[z][B])};x.mode==="light"&&(L(x.common,"background","#fff"),L(x.common,"onBackground","#000")),x.mode==="dark"&&(L(x.common,"background","#000"),L(x.common,"onBackground","#fff"));function C(I,F,z){if(O){let B;return I===on&&(B=`transparent ${((1-z)*100).toFixed(0)}%`),I===pe&&(B=`#000 ${(z*100).toFixed(0)}%`),I===he&&(B=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${O}, ${F}, ${B})`}return I(F,z)}if(Sy(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){L(x.Alert,"errorColor",C(pe,x.error.light,.6)),L(x.Alert,"infoColor",C(pe,x.info.light,.6)),L(x.Alert,"successColor",C(pe,x.success.light,.6)),L(x.Alert,"warningColor",C(pe,x.warning.light,.6)),L(x.Alert,"errorFilledBg",P("palette-error-main")),L(x.Alert,"infoFilledBg",P("palette-info-main")),L(x.Alert,"successFilledBg",P("palette-success-main")),L(x.Alert,"warningFilledBg",P("palette-warning-main")),L(x.Alert,"errorFilledColor",gt(()=>x.getContrastText(x.error.main))),L(x.Alert,"infoFilledColor",gt(()=>x.getContrastText(x.info.main))),L(x.Alert,"successFilledColor",gt(()=>x.getContrastText(x.success.main))),L(x.Alert,"warningFilledColor",gt(()=>x.getContrastText(x.warning.main))),L(x.Alert,"errorStandardBg",C(he,x.error.light,.9)),L(x.Alert,"infoStandardBg",C(he,x.info.light,.9)),L(x.Alert,"successStandardBg",C(he,x.success.light,.9)),L(x.Alert,"warningStandardBg",C(he,x.warning.light,.9)),L(x.Alert,"errorIconColor",P("palette-error-main")),L(x.Alert,"infoIconColor",P("palette-info-main")),L(x.Alert,"successIconColor",P("palette-success-main")),L(x.Alert,"warningIconColor",P("palette-warning-main")),L(x.AppBar,"defaultBg",P("palette-grey-100")),L(x.Avatar,"defaultBg",P("palette-grey-400")),L(x.Button,"inheritContainedBg",P("palette-grey-300")),L(x.Button,"inheritContainedHoverBg",P("palette-grey-A100")),L(x.Chip,"defaultBorder",P("palette-grey-400")),L(x.Chip,"defaultAvatarColor",P("palette-grey-700")),L(x.Chip,"defaultIconColor",P("palette-grey-700")),L(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),L(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),L(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),L(x.LinearProgress,"primaryBg",C(he,x.primary.main,.62)),L(x.LinearProgress,"secondaryBg",C(he,x.secondary.main,.62)),L(x.LinearProgress,"errorBg",C(he,x.error.main,.62)),L(x.LinearProgress,"infoBg",C(he,x.info.main,.62)),L(x.LinearProgress,"successBg",C(he,x.success.main,.62)),L(x.LinearProgress,"warningBg",C(he,x.warning.main,.62)),L(x.Skeleton,"bg",O?C(on,x.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),L(x.Slider,"primaryTrack",C(he,x.primary.main,.62)),L(x.Slider,"secondaryTrack",C(he,x.secondary.main,.62)),L(x.Slider,"errorTrack",C(he,x.error.main,.62)),L(x.Slider,"infoTrack",C(he,x.info.main,.62)),L(x.Slider,"successTrack",C(he,x.success.main,.62)),L(x.Slider,"warningTrack",C(he,x.warning.main,.62));const I=O?C(pe,x.background.default,.6825):ci(x.background.default,.8);L(x.SnackbarContent,"bg",I),L(x.SnackbarContent,"color",gt(()=>O?Es.text.primary:x.getContrastText(I))),L(x.SpeedDialAction,"fabHoverBg",ci(x.background.paper,.15)),L(x.StepConnector,"border",P("palette-grey-400")),L(x.StepContent,"border",P("palette-grey-400")),L(x.Switch,"defaultColor",P("palette-common-white")),L(x.Switch,"defaultDisabledColor",P("palette-grey-100")),L(x.Switch,"primaryDisabledColor",C(he,x.primary.main,.62)),L(x.Switch,"secondaryDisabledColor",C(he,x.secondary.main,.62)),L(x.Switch,"errorDisabledColor",C(he,x.error.main,.62)),L(x.Switch,"infoDisabledColor",C(he,x.info.main,.62)),L(x.Switch,"successDisabledColor",C(he,x.success.main,.62)),L(x.Switch,"warningDisabledColor",C(he,x.warning.main,.62)),L(x.TableCell,"border",C(he,C(on,x.divider,1),.88)),L(x.Tooltip,"bg",C(on,x.grey[700],.92))}if(x.mode==="dark"){L(x.Alert,"errorColor",C(he,x.error.light,.6)),L(x.Alert,"infoColor",C(he,x.info.light,.6)),L(x.Alert,"successColor",C(he,x.success.light,.6)),L(x.Alert,"warningColor",C(he,x.warning.light,.6)),L(x.Alert,"errorFilledBg",P("palette-error-dark")),L(x.Alert,"infoFilledBg",P("palette-info-dark")),L(x.Alert,"successFilledBg",P("palette-success-dark")),L(x.Alert,"warningFilledBg",P("palette-warning-dark")),L(x.Alert,"errorFilledColor",gt(()=>x.getContrastText(x.error.dark))),L(x.Alert,"infoFilledColor",gt(()=>x.getContrastText(x.info.dark))),L(x.Alert,"successFilledColor",gt(()=>x.getContrastText(x.success.dark))),L(x.Alert,"warningFilledColor",gt(()=>x.getContrastText(x.warning.dark))),L(x.Alert,"errorStandardBg",C(pe,x.error.light,.9)),L(x.Alert,"infoStandardBg",C(pe,x.info.light,.9)),L(x.Alert,"successStandardBg",C(pe,x.success.light,.9)),L(x.Alert,"warningStandardBg",C(pe,x.warning.light,.9)),L(x.Alert,"errorIconColor",P("palette-error-main")),L(x.Alert,"infoIconColor",P("palette-info-main")),L(x.Alert,"successIconColor",P("palette-success-main")),L(x.Alert,"warningIconColor",P("palette-warning-main")),L(x.AppBar,"defaultBg",P("palette-grey-900")),L(x.AppBar,"darkBg",P("palette-background-paper")),L(x.AppBar,"darkColor",P("palette-text-primary")),L(x.Avatar,"defaultBg",P("palette-grey-600")),L(x.Button,"inheritContainedBg",P("palette-grey-800")),L(x.Button,"inheritContainedHoverBg",P("palette-grey-700")),L(x.Chip,"defaultBorder",P("palette-grey-700")),L(x.Chip,"defaultAvatarColor",P("palette-grey-300")),L(x.Chip,"defaultIconColor",P("palette-grey-300")),L(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),L(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),L(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),L(x.LinearProgress,"primaryBg",C(pe,x.primary.main,.5)),L(x.LinearProgress,"secondaryBg",C(pe,x.secondary.main,.5)),L(x.LinearProgress,"errorBg",C(pe,x.error.main,.5)),L(x.LinearProgress,"infoBg",C(pe,x.info.main,.5)),L(x.LinearProgress,"successBg",C(pe,x.success.main,.5)),L(x.LinearProgress,"warningBg",C(pe,x.warning.main,.5)),L(x.Skeleton,"bg",O?C(on,x.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),L(x.Slider,"primaryTrack",C(pe,x.primary.main,.5)),L(x.Slider,"secondaryTrack",C(pe,x.secondary.main,.5)),L(x.Slider,"errorTrack",C(pe,x.error.main,.5)),L(x.Slider,"infoTrack",C(pe,x.info.main,.5)),L(x.Slider,"successTrack",C(pe,x.success.main,.5)),L(x.Slider,"warningTrack",C(pe,x.warning.main,.5));const I=O?C(he,x.background.default,.985):ci(x.background.default,.98);L(x.SnackbarContent,"bg",I),L(x.SnackbarContent,"color",gt(()=>O?Af.text.primary:x.getContrastText(I))),L(x.SpeedDialAction,"fabHoverBg",ci(x.background.paper,.15)),L(x.StepConnector,"border",P("palette-grey-600")),L(x.StepContent,"border",P("palette-grey-600")),L(x.Switch,"defaultColor",P("palette-grey-300")),L(x.Switch,"defaultDisabledColor",P("palette-grey-600")),L(x.Switch,"primaryDisabledColor",C(pe,x.primary.main,.55)),L(x.Switch,"secondaryDisabledColor",C(pe,x.secondary.main,.55)),L(x.Switch,"errorDisabledColor",C(pe,x.error.main,.55)),L(x.Switch,"infoDisabledColor",C(pe,x.info.main,.55)),L(x.Switch,"successDisabledColor",C(pe,x.success.main,.55)),L(x.Switch,"warningDisabledColor",C(pe,x.warning.main,.55)),L(x.TableCell,"border",C(pe,C(on,x.divider,1),.68)),L(x.Tooltip,"bg",C(on,x.grey[700],.92))}_t(x.background,"default"),_t(x.background,"paper"),_t(x.common,"background"),_t(x.common,"onBackground"),_t(x,"divider"),Object.keys(x).forEach(I=>{const F=x[I];I!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&L(x[I],"mainChannel",dr(pr(F.main))),F.light&&L(x[I],"lightChannel",dr(pr(F.light))),F.dark&&L(x[I],"darkChannel",dr(pr(F.dark))),F.contrastText&&L(x[I],"contrastTextChannel",dr(pr(F.contrastText))),I==="text"&&(_t(x[I],"primary"),_t(x[I],"secondary")),I==="action"&&(F.active&&_t(x[I],"active"),F.selected&&_t(x[I],"selected")))})}),k=t.reduce((E,x)=>Xe(E,x),k);const R={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Ay(k),enableContrastVars:a},{vars:N,generateThemeVars:$,generateStyleSheets:D}=Xg(k,R);return k.vars=N,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([E,x])=>{k[E]=x}),k.generateThemeVars=$,k.generateStyleSheets=D,k.generateSpacing=function(){return mf(f.spacing,pa(this))},k.getColorSchemeSelector=Kg(u),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...Yr,...f?.unstable_sxConfig},k.unstable_sx=function(x){return Nn({sx:x,theme:this})},k.toRuntimeSource=Pf,k}function hl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ba({...n===!0?{}:n.palette,mode:t})})}function Ey(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,c=s||"light",u=o?.[c],l={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Ms(e,...t);let f=n;"palette"in e||l[c]&&(l[c]!==!0?f=l[c].palette:c==="dark"&&(f={mode:"dark"}));const d=Ms({...e,palette:f},...t);return d.defaultColorScheme=c,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},hl(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},hl(d,"light",l.light)),d}return!n&&!("light"in l)&&c==="light"&&(l.light=!0),_y({...a,colorSchemes:l,defaultColorScheme:c,...typeof i!="boolean"&&i},...t)}const xa=Ey();function Ut(){const e=gf(xa);return process.env.NODE_ENV!=="production"&&M.useDebugValue(e),e[la]||e}function At({props:e,name:t}){return Ig({props:e,name:t,defaultTheme:xa,themeId:la})}function My(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iy=e=>My(e)&&e!=="classes",ye=Sg({themeId:la,defaultTheme:xa,rootShouldForwardProp:Iy});function ie(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function re(e){return function(){return e}}const ml=Math.abs,_e=Math.atan2,Et=Math.cos,$y=Math.max,is=Math.min,Le=Math.sin,Pe=Math.sqrt,Me=1e-12,Jt=Math.PI,Di=Jt/2,Gt=2*Jt;function jy(e){return e>1?0:e<-1?Jt:Math.acos(e)}function gl(e){return e>=1?Di:e<=-1?-Di:Math.asin(e)}const Is=Math.PI,$s=2*Is,an=1e-6,Ny=$s-an;function Ef(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Dy(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ef;const n=10**t;return function(i){this._+=i[0];for(let o=1,s=i.length;o<s;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}class Ly{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ef:Dy(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,o){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,n,i,o,s,a){this._append`C${+t},${+n},${+i},${+o},${this._x1=+s},${this._y1=+a}`}arcTo(t,n,i,o,s){if(t=+t,n=+n,i=+i,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,c=this._y1,u=i-t,l=o-n,f=a-t,d=c-n,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>an)if(!(Math.abs(d*u-l*f)>an)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let m=i-a,g=o-c,h=u*u+l*l,y=m*m+g*g,b=Math.sqrt(h),v=Math.sqrt(p),T=s*Math.tan((Is-Math.acos((h+p-y)/(2*b*v)))/2),O=T/v,w=T/b;Math.abs(O-1)>an&&this._append`L${t+O*f},${n+O*d}`,this._append`A${s},${s},0,0,${+(d*m>f*g)},${this._x1=t+w*u},${this._y1=n+w*l}`}}arc(t,n,i,o,s,a){if(t=+t,n=+n,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(o),u=i*Math.sin(o),l=t+c,f=n+u,d=1^a,p=a?o-s:s-o;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>an||Math.abs(this._y1-f)>an)&&this._append`L${l},${f}`,i&&(p<0&&(p=p%$s+$s),p>Ny?this._append`A${i},${i},0,1,${d},${t-c},${n-u}A${i},${i},0,1,${d},${this._x1=l},${this._y1=f}`:p>an&&this._append`A${i},${i},0,${+(p>=Is)},${d},${this._x1=t+i*Math.cos(s)},${this._y1=n+i*Math.sin(s)}`)}rect(t,n,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function xo(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new Ly(t)}function Fy(e){return e.innerRadius}function qy(e){return e.outerRadius}function Uy(e){return e.startAngle}function zy(e){return e.endAngle}function Vy(e){return e&&e.padAngle}function Hy(e,t,n,i,o,s,a,c){var u=n-e,l=i-t,f=a-o,d=c-s,p=d*u-f*l;if(!(p*p<Me))return p=(f*(t-s)-d*(e-o))/p,[e+p*u,t+p*l]}function li(e,t,n,i,o,s,a){var c=e-n,u=t-i,l=(a?s:-s)/Pe(c*c+u*u),f=l*u,d=-l*c,p=e+f,m=t+d,g=n+f,h=i+d,y=(p+g)/2,b=(m+h)/2,v=g-p,T=h-m,O=v*v+T*T,w=o-s,k=p*h-g*m,R=(T<0?-1:1)*Pe($y(0,w*w*O-k*k)),N=(k*T-v*R)/O,$=(-k*v-T*R)/O,D=(k*T+v*R)/O,E=(-k*v+T*R)/O,x=N-y,P=$-b,C=D-y,I=E-b;return x*x+P*P>C*C+I*I&&(N=D,$=E),{cx:N,cy:$,x01:-f,y01:-d,x11:N*(o/w-1),y11:$*(o/w-1)}}function Mf(){var e=Fy,t=qy,n=re(0),i=null,o=Uy,s=zy,a=Vy,c=null,u=xo(l);function l(){var f,d,p=+e.apply(this,arguments),m=+t.apply(this,arguments),g=o.apply(this,arguments)-Di,h=s.apply(this,arguments)-Di,y=ml(h-g),b=h>g;if(c||(c=f=u()),m<p&&(d=m,m=p,p=d),!(m>Me))c.moveTo(0,0);else if(y>Gt-Me)c.moveTo(m*Et(g),m*Le(g)),c.arc(0,0,m,g,h,!b),p>Me&&(c.moveTo(p*Et(h),p*Le(h)),c.arc(0,0,p,h,g,b));else{var v=g,T=h,O=g,w=h,k=y,R=y,N=a.apply(this,arguments)/2,$=N>Me&&(i?+i.apply(this,arguments):Pe(p*p+m*m)),D=is(ml(m-p)/2,+n.apply(this,arguments)),E=D,x=D,P,C;if($>Me){var I=gl($/p*Le(N)),F=gl($/m*Le(N));(k-=I*2)>Me?(I*=b?1:-1,O+=I,w-=I):(k=0,O=w=(g+h)/2),(R-=F*2)>Me?(F*=b?1:-1,v+=F,T-=F):(R=0,v=T=(g+h)/2)}var z=m*Et(v),B=m*Le(v),ee=p*Et(w),j=p*Le(w);if(D>Me){var U=m*Et(T),W=m*Le(T),X=p*Et(O),G=p*Le(O),Y;if(y<Jt)if(Y=Hy(z,B,X,G,U,W,ee,j)){var Z=z-Y[0],Q=B-Y[1],J=U-Y[0],q=W-Y[1],H=1/Le(jy((Z*J+Q*q)/(Pe(Z*Z+Q*Q)*Pe(J*J+q*q)))/2),K=Pe(Y[0]*Y[0]+Y[1]*Y[1]);E=is(D,(p-K)/(H-1)),x=is(D,(m-K)/(H+1))}else E=x=0}R>Me?x>Me?(P=li(X,G,z,B,m,x,b),C=li(U,W,ee,j,m,x,b),c.moveTo(P.cx+P.x01,P.cy+P.y01),x<D?c.arc(P.cx,P.cy,x,_e(P.y01,P.x01),_e(C.y01,C.x01),!b):(c.arc(P.cx,P.cy,x,_e(P.y01,P.x01),_e(P.y11,P.x11),!b),c.arc(0,0,m,_e(P.cy+P.y11,P.cx+P.x11),_e(C.cy+C.y11,C.cx+C.x11),!b),c.arc(C.cx,C.cy,x,_e(C.y11,C.x11),_e(C.y01,C.x01),!b))):(c.moveTo(z,B),c.arc(0,0,m,v,T,!b)):c.moveTo(z,B),!(p>Me)||!(k>Me)?c.lineTo(ee,j):E>Me?(P=li(ee,j,U,W,p,-E,b),C=li(z,B,X,G,p,-E,b),c.lineTo(P.cx+P.x01,P.cy+P.y01),E<D?c.arc(P.cx,P.cy,E,_e(P.y01,P.x01),_e(C.y01,C.x01),!b):(c.arc(P.cx,P.cy,E,_e(P.y01,P.x01),_e(P.y11,P.x11),!b),c.arc(0,0,p,_e(P.cy+P.y11,P.cx+P.x11),_e(C.cy+C.y11,C.cx+C.x11),b),c.arc(C.cx,C.cy,E,_e(C.y11,C.x11),_e(C.y01,C.x01),!b))):c.arc(0,0,p,w,O,b)}if(c.closePath(),f)return c=null,f+""||null}return l.centroid=function(){var f=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-Jt/2;return[Et(d)*f,Le(d)*f]},l.innerRadius=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),l):e},l.outerRadius=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),l):t},l.cornerRadius=function(f){return arguments.length?(n=typeof f=="function"?f:re(+f),l):n},l.padRadius=function(f){return arguments.length?(i=f==null?null:typeof f=="function"?f:re(+f),l):i},l.startAngle=function(f){return arguments.length?(o=typeof f=="function"?f:re(+f),l):o},l.endAngle=function(f){return arguments.length?(s=typeof f=="function"?f:re(+f),l):s},l.padAngle=function(f){return arguments.length?(a=typeof f=="function"?f:re(+f),l):a},l.context=function(f){return arguments.length?(c=f??null,l):c},l}function vo(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function If(e){this._context=e}If.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 va(e){return new If(e)}function $f(e){return e[0]}function jf(e){return e[1]}function Nf(e,t){var n=re(!0),i=null,o=va,s=null,a=xo(c);e=typeof e=="function"?e:e===void 0?$f:re(e),t=typeof t=="function"?t:t===void 0?jf:re(t);function c(u){var l,f=(u=vo(u)).length,d,p=!1,m;for(i==null&&(s=o(m=a())),l=0;l<=f;++l)!(l<f&&n(d=u[l],l,u))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+e(d,l,u),+t(d,l,u));if(m)return s=null,m+""||null}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:re(+u),c):e},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:re(+u),c):t},c.defined=function(u){return arguments.length?(n=typeof u=="function"?u:re(!!u),c):n},c.curve=function(u){return arguments.length?(o=u,i!=null&&(s=o(i)),c):o},c.context=function(u){return arguments.length?(u==null?i=s=null:s=o(i=u),c):i},c}function By(e,t,n){var i=null,o=re(!0),s=null,a=va,c=null,u=xo(l);e=typeof e=="function"?e:e===void 0?$f:re(+e),t=typeof t=="function"?t:re(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?jf:re(+n);function l(d){var p,m,g,h=(d=vo(d)).length,y,b=!1,v,T=new Array(h),O=new Array(h);for(s==null&&(c=a(v=u())),p=0;p<=h;++p){if(!(p<h&&o(y=d[p],p,d))===b)if(b=!b)m=p,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),g=p-1;g>=m;--g)c.point(T[g],O[g]);c.lineEnd(),c.areaEnd()}b&&(T[p]=+e(y,p,d),O[p]=+t(y,p,d),c.point(i?+i(y,p,d):T[p],n?+n(y,p,d):O[p]))}if(v)return c=null,v+""||null}function f(){return Nf().defined(o).curve(a).context(s)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:re(+d),i=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:re(+d),l):e},l.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:re(+d),l):i},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:re(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:re(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:re(+d),l):n},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(n)},l.lineX1=function(){return f().x(i).y(t)},l.defined=function(d){return arguments.length?(o=typeof d=="function"?d:re(!!d),l):o},l.curve=function(d){return arguments.length?(a=d,s!=null&&(c=a(s)),l):a},l.context=function(d){return arguments.length?(d==null?s=c=null:c=a(s=d),l):s},l}function Wy(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Yy(e){return e}function Gy(){var e=Yy,t=Wy,n=null,i=re(0),o=re(Gt),s=re(0);function a(c){var u,l=(c=vo(c)).length,f,d,p=0,m=new Array(l),g=new Array(l),h=+i.apply(this,arguments),y=Math.min(Gt,Math.max(-Gt,o.apply(this,arguments)-h)),b,v=Math.min(Math.abs(y)/l,s.apply(this,arguments)),T=v*(y<0?-1:1),O;for(u=0;u<l;++u)(O=g[m[u]=u]=+e(c[u],u,c))>0&&(p+=O);for(t!=null?m.sort(function(w,k){return t(g[w],g[k])}):n!=null&&m.sort(function(w,k){return n(c[w],c[k])}),u=0,d=p?(y-l*T)/p:0;u<l;++u,h=b)f=m[u],O=g[f],b=h+(O>0?O*d:0)+T,g[f]={data:c[f],index:u,value:O,startAngle:h,endAngle:b,padAngle:v};return g}return a.value=function(c){return arguments.length?(e=typeof c=="function"?c:re(+c),a):e},a.sortValues=function(c){return arguments.length?(t=c,n=null,a):t},a.sort=function(c){return arguments.length?(n=c,t=null,a):n},a.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:re(+c),a):i},a.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:re(+c),a):o},a.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:re(+c),a):s},a}const Df={draw(e,t){const n=Pe(t/Jt);e.moveTo(n,0),e.arc(0,0,n,0,Gt)}},Xy={draw(e,t){const n=Pe(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Lf=Pe(1/3),Ky=Lf*2,Qy={draw(e,t){const n=Pe(t/Ky),i=n*Lf;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},Zy={draw(e,t){const n=Pe(t),i=-n/2;e.rect(i,i,n,n)}},Jy=.8908130915292852,Ff=Le(Jt/10)/Le(7*Jt/10),eb=Le(Gt/10)*Ff,tb=-Et(Gt/10)*Ff,nb={draw(e,t){const n=Pe(t*Jy),i=eb*n,o=tb*n;e.moveTo(0,-n),e.lineTo(i,o);for(let s=1;s<5;++s){const a=Gt*s/5,c=Et(a),u=Le(a);e.lineTo(u*n,-c*n),e.lineTo(c*i-u*o,u*i+c*o)}e.closePath()}},os=Pe(3),rb={draw(e,t){const n=-Pe(t/(os*3));e.moveTo(0,n*2),e.lineTo(-os*n,-n),e.lineTo(os*n,-n),e.closePath()}},Qe=-.5,Ze=Pe(3)/2,js=1/Pe(12),ib=(js/2+1)*3,ob={draw(e,t){const n=Pe(t/ib),i=n/2,o=n*js,s=i,a=n*js+n,c=-s,u=a;e.moveTo(i,o),e.lineTo(s,a),e.lineTo(c,u),e.lineTo(Qe*i-Ze*o,Ze*i+Qe*o),e.lineTo(Qe*s-Ze*a,Ze*s+Qe*a),e.lineTo(Qe*c-Ze*u,Ze*c+Qe*u),e.lineTo(Qe*i+Ze*o,Qe*o-Ze*i),e.lineTo(Qe*s+Ze*a,Qe*a-Ze*s),e.lineTo(Qe*c+Ze*u,Qe*u-Ze*c),e.closePath()}},sb=[Df,Xy,Qy,Zy,nb,rb,ob];function ab(e,t){let n=null,i=xo(o);e=typeof e=="function"?e:re(e||Df),t=typeof t=="function"?t:re(t===void 0?64:+t);function o(){let s;if(n||(n=s=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return o.type=function(s){return arguments.length?(e=typeof s=="function"?s:re(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:re(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function yl(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 Oa(e,t){this._context=e,this._k=(1-t)/6}Oa.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:yl(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:yl(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(i){return new Oa(i,t)}return n.tension=function(i){return e(+i)},n})(0);function cb(e,t,n){var i=e._x1,o=e._y1,s=e._x2,a=e._y2;if(e._l01_a>Me){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Me){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*l+e._x1*e._l23_2a-t*e._l12_2a)/f,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(i,o,s,a,e._x2,e._y2)}function qf(e,t){this._context=e,this._alpha=t}qf.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,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,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:cb(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 lb=(function e(t){function n(i){return t?new qf(i,t):new Oa(i,0)}return n.alpha=function(i){return e(+i)},n})(.5);function bl(e){return e<0?-1:1}function xl(e,t,n){var i=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(i||o<0&&-0),a=(n-e._y1)/(o||i<0&&-0),c=(s*o+a*i)/(i+o);return(bl(s)+bl(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(c))||0}function vl(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ss(e,t,n){var i=e._x0,o=e._y0,s=e._x1,a=e._y1,c=(s-i)/3;e._context.bezierCurveTo(i+c,o+c*t,s-c,a-c*n,s,a)}function Li(e){this._context=e}Li.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:ss(this,this._t0,vl(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,ss(this,vl(this,n=xl(this,e,t)),n);break;default:ss(this,this._t0,n=xl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Uf(e){this._context=new zf(e)}(Uf.prototype=Object.create(Li.prototype)).point=function(e,t){Li.prototype.point.call(this,t,e)};function zf(e){this._context=e}zf.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,i,o,s){this._context.bezierCurveTo(t,e,i,n,s,o)}};function Ol(e){return new Li(e)}function ub(e){return new Uf(e)}function Vf(e){this._context=e}Vf.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 i=wl(e),o=wl(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(i[0][s],o[0][s],i[1][s],o[1][s],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function wl(e){var t,n=e.length-1,i,o=new Array(n),s=new Array(n),a=new Array(n);for(o[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=o[t]/s[t-1],s[t]-=i,a[t]-=i*a[t-1];for(o[n-1]=a[n-1]/s[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/s[t];for(s[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-o[t+1];return[o,s]}function fb(e){return new Vf(e)}function Oo(e,t){this._context=e,this._t=t}Oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=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 db(e){return new Oo(e,.5)}function pb(e){return new Oo(e,0)}function hb(e){return new Oo(e,1)}function Dn(e,t){if((a=e.length)>1)for(var n=1,i,o,s=e[t[0]],a,c=s.length;n<a;++n)for(o=s,s=e[t[n]],i=0;i<c;++i)s[i][1]+=s[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function Ln(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function mb(e,t){return e[t]}function gb(e){const t=[];return t.key=e,t}function Hf(){var e=re([]),t=Ln,n=Dn,i=mb;function o(s){var a=Array.from(e.apply(this,arguments),gb),c,u=a.length,l=-1,f;for(const d of s)for(c=0,++l;c<u;++c)(a[c][l]=[0,+i(d,a[c].key,l,s)]).data=d;for(c=0,f=vo(t(a));c<u;++c)a[f[c]].index=c;return n(a,f),a}return o.keys=function(s){return arguments.length?(e=typeof s=="function"?s:re(Array.from(s)),o):e},o.value=function(s){return arguments.length?(i=typeof s=="function"?s:re(+s),o):i},o.order=function(s){return arguments.length?(t=s==null?Ln:typeof s=="function"?s:re(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(n=s??Dn,o):n},o}function yb(e,t){if((i=e.length)>0){for(var n,i,o=0,s=e[0].length,a;o<s;++o){for(a=n=0;n<i;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<i;++n)e[n][o][1]/=a}Dn(e,t)}}function bb(e,t){if((u=e.length)>0)for(var n,i=0,o,s,a,c,u,l=e[t[0]].length;i<l;++i)for(a=c=0,n=0;n<u;++n)(s=(o=e[t[n]][i])[1]-o[0])>0?(o[0]=a,o[1]=a+=s):s<0?(o[1]=c,o[0]=c+=s):(o[0]=0,o[1]=s)}function xb(e,t){if((o=e.length)>0){for(var n=0,i=e[t[0]],o,s=i.length;n<s;++n){for(var a=0,c=0;a<o;++a)c+=e[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}Dn(e,t)}}function vb(e,t){if(!(!((a=e.length)>0)||!((s=(o=e[t[0]]).length)>0))){for(var n=0,i=1,o,s,a;i<s;++i){for(var c=0,u=0,l=0;c<a;++c){for(var f=e[t[c]],d=f[i][1]||0,p=f[i-1][1]||0,m=(d-p)/2,g=0;g<c;++g){var h=e[t[g]],y=h[i][1]||0,b=h[i-1][1]||0;m+=y-b}u+=d,l+=m*d}o[i-1][1]+=o[i-1][0]=n,u&&(n-=l/u)}o[i-1][1]+=o[i-1][0]=n,Dn(e,t)}}function Bf(e){var t=e.map(Ob);return Ln(e).sort(function(n,i){return t[n]-t[i]})}function Ob(e){for(var t=-1,n=0,i=e.length,o,s=-1/0;++t<i;)(o=+e[t][1])>s&&(s=o,n=t);return n}function Wf(e){var t=e.map(Yf);return Ln(e).sort(function(n,i){return t[n]-t[i]})}function Yf(e){for(var t=0,n=-1,i=e.length,o;++n<i;)(o=+e[n][1])&&(t+=o);return t}function wb(e){return Wf(e).reverse()}function Tb(e){var t=e.length,n,i,o=e.map(Yf),s=Bf(e),a=0,c=0,u=[],l=[];for(n=0;n<t;++n)i=s[n],a<c?(a+=o[i],u.push(i)):(c+=o[i],l.push(i));return l.reverse().concat(u)}function kb(e){return Ln(e).reverse()}function Si(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Cb(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function wa(e){let t,n,i;e.length!==2?(t=Si,n=(c,u)=>Si(e(c),u),i=(c,u)=>e(c)-u):(t=e===Si||e===Cb?e:Ab,n=e,i=e);function o(c,u,l=0,f=c.length){if(l<f){if(t(u,u)!==0)return f;do{const d=l+f>>>1;n(c[d],u)<0?l=d+1:f=d}while(l<f)}return l}function s(c,u,l=0,f=c.length){if(l<f){if(t(u,u)!==0)return f;do{const d=l+f>>>1;n(c[d],u)<=0?l=d+1:f=d}while(l<f)}return l}function a(c,u,l=0,f=c.length){const d=o(c,u,l,f-1);return d>l&&i(c[d-1],u)>-i(c[d],u)?d-1:d}return{left:o,center:a,right:s}}function Ab(){return 0}function Sb(e){return e===null?NaN:+e}const Pb=wa(Si),Gf=Pb.right;wa(Sb).center;class Tl extends Map{constructor(t,n=Eb){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(kl(this,t))}has(t){return super.has(kl(this,t))}set(t,n){return super.set(Rb(this,t),n)}delete(t){return super.delete(_b(this,t))}}function kl({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):n}function Rb({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function _b({_intern:e,_key:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function Eb(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Mb=Math.sqrt(50),Ib=Math.sqrt(10),$b=Math.sqrt(2);function Fi(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),a=s>=Mb?10:s>=Ib?5:s>=$b?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(e*l),u=Math.round(t*l),c/l<e&&++c,u/l>t&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(e/l),u=Math.round(t/l),c*l<e&&++c,u*l>t&&--u),u<c&&.5<=n&&n<2?Fi(e,t,n*2):[c,u,l]}function Ns(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const i=t<e,[o,s,a]=i?Fi(t,e,n):Fi(e,t,n);if(!(s>=o))return[];const c=s-o+1,u=new Array(c);if(i)if(a<0)for(let l=0;l<c;++l)u[l]=(s-l)/-a;else for(let l=0;l<c;++l)u[l]=(s-l)*a;else if(a<0)for(let l=0;l<c;++l)u[l]=(o+l)/-a;else for(let l=0;l<c;++l)u[l]=(o+l)*a;return u}function Ds(e,t,n){return t=+t,e=+e,n=+n,Fi(e,t,n)[2]}function Ls(e,t,n){t=+t,e=+e,n=+n;const i=t<e,o=i?Ds(t,e,n):Ds(e,t,n);return(i?-1:1)*(o<0?1/-o:o)}function jb(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var i=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(o);++i<o;)s[i]=e+i*n;return s}function nn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Nb(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Cl=Symbol("implicit");function qi(){var e=new Tl,t=[],n=[],i=Cl;function o(s){let a=e.get(s);if(a===void 0){if(i!==Cl)return i;e.set(s,a=t.push(s)-1)}return n[a%n.length]}return o.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new Tl;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(s){return arguments.length?(n=Array.from(s),o):n.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return qi(t,n).unknown(i)},nn.apply(o,arguments),o}function Ta(){var e=qi().unknown(void 0),t=e.domain,n=e.range,i=0,o=1,s,a,c=!1,u=0,l=0,f=.5;delete e.unknown;function d(){var p=t().length,m=o<i,g=m?o:i,h=m?i:o;s=(h-g)/Math.max(1,p-u+l*2),c&&(s=Math.floor(s)),g+=(h-g-s*(p-u))*f,a=s*(1-u),c&&(g=Math.round(g),a=Math.round(a));var y=jb(p).map(function(b){return g+s*b});return n(m?y.reverse():y)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([i,o]=p,i=+i,o=+o,d()):[i,o]},e.rangeRound=function(p){return[i,o]=p,i=+i,o=+o,c=!0,d()},e.bandwidth=function(){return a},e.step=function(){return s},e.round=function(p){return arguments.length?(c=!!p,d()):c},e.padding=function(p){return arguments.length?(u=Math.min(1,l=+p),d()):u},e.paddingInner=function(p){return arguments.length?(u=Math.min(1,p),d()):u},e.paddingOuter=function(p){return arguments.length?(l=+p,d()):l},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return Ta(t(),[i,o]).round(c).paddingInner(u).paddingOuter(l).align(f)},nn.apply(d(),arguments)}function Xf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Xf(t())},e}function Db(){return Xf(Ta.apply(null,arguments).paddingInner(1))}function ka(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kf(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Gr(){}var Ar=.7,Ui=1/Ar,En="\\s*([+-]?\\d+)\\s*",Sr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lb=/^#([0-9a-f]{3,8})$/,Fb=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),qb=new RegExp(`^rgb\\(${wt},${wt},${wt}\\)$`),Ub=new RegExp(`^rgba\\(${En},${En},${En},${Sr}\\)$`),zb=new RegExp(`^rgba\\(${wt},${wt},${wt},${Sr}\\)$`),Vb=new RegExp(`^hsl\\(${Sr},${wt},${wt}\\)$`),Hb=new RegExp(`^hsla\\(${Sr},${wt},${wt},${Sr}\\)$`),Al={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};ka(Gr,Nt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sl,formatHex:Sl,formatHex8:Bb,formatHsl:Wb,formatRgb:Pl,toString:Pl});function Sl(){return this.rgb().formatHex()}function Bb(){return this.rgb().formatHex8()}function Wb(){return Qf(this).formatHsl()}function Pl(){return this.rgb().formatRgb()}function Nt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Lb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Rl(t):n===3?new Ue(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ui(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ui(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=Fb.exec(e))?new Ue(t[1],t[2],t[3],1):(t=qb.exec(e))?new Ue(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ub.exec(e))?ui(t[1],t[2],t[3],t[4]):(t=zb.exec(e))?ui(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Vb.exec(e))?Ml(t[1],t[2]/100,t[3]/100,1):(t=Hb.exec(e))?Ml(t[1],t[2]/100,t[3]/100,t[4]):Al.hasOwnProperty(e)?Rl(Al[e]):e==="transparent"?new Ue(NaN,NaN,NaN,0):null}function Rl(e){return new Ue(e>>16&255,e>>8&255,e&255,1)}function ui(e,t,n,i){return i<=0&&(e=t=n=NaN),new Ue(e,t,n,i)}function Yb(e){return e instanceof Gr||(e=Nt(e)),e?(e=e.rgb(),new Ue(e.r,e.g,e.b,e.opacity)):new Ue}function Fs(e,t,n,i){return arguments.length===1?Yb(e):new Ue(e,t,n,i??1)}function Ue(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}ka(Ue,Fs,Kf(Gr,{brighter(e){return e=e==null?Ui:Math.pow(Ui,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ar:Math.pow(Ar,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ue(hn(this.r),hn(this.g),hn(this.b),zi(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:_l,formatHex:_l,formatHex8:Gb,formatRgb:El,toString:El}));function _l(){return`#${un(this.r)}${un(this.g)}${un(this.b)}`}function Gb(){return`#${un(this.r)}${un(this.g)}${un(this.b)}${un((isNaN(this.opacity)?1:this.opacity)*255)}`}function El(){const e=zi(this.opacity);return`${e===1?"rgb(":"rgba("}${hn(this.r)}, ${hn(this.g)}, ${hn(this.b)}${e===1?")":`, ${e})`}`}function zi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function un(e){return e=hn(e),(e<16?"0":"")+e.toString(16)}function Ml(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ft(e,t,n,i)}function Qf(e){if(e instanceof ft)return new ft(e.h,e.s,e.l,e.opacity);if(e instanceof Gr||(e=Nt(e)),!e)return new ft;if(e instanceof ft)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),a=NaN,c=s-o,u=(s+o)/2;return c?(t===s?a=(n-i)/c+(n<i)*6:n===s?a=(i-t)/c+2:a=(t-n)/c+4,c/=u<.5?s+o:2-s-o,a*=60):c=u>0&&u<1?0:a,new ft(a,c,u,e.opacity)}function Xb(e,t,n,i){return arguments.length===1?Qf(e):new ft(e,t,n,i??1)}function ft(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}ka(ft,Xb,Kf(Gr,{brighter(e){return e=e==null?Ui:Math.pow(Ui,e),new ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ar:Math.pow(Ar,e),new ft(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,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Ue(as(e>=240?e-240:e+120,o,i),as(e,o,i),as(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new ft(Il(this.h),fi(this.s),fi(this.l),zi(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=zi(this.opacity);return`${e===1?"hsl(":"hsla("}${Il(this.h)}, ${fi(this.s)*100}%, ${fi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Il(e){return e=(e||0)%360,e<0?e+360:e}function fi(e){return Math.max(0,Math.min(1,e||0))}function as(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 Ca=e=>()=>e;function Kb(e,t){return function(n){return e+n*t}}function Qb(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function Zb(e){return(e=+e)==1?Zf:function(t,n){return n-t?Qb(t,n,e):Ca(isNaN(t)?n:t)}}function Zf(e,t){var n=t-e;return n?Kb(e,n):Ca(isNaN(e)?t:e)}const $l=(function e(t){var n=Zb(t);function i(o,s){var a=n((o=Fs(o)).r,(s=Fs(s)).r),c=n(o.g,s.g),u=n(o.b,s.b),l=Zf(o.opacity,s.opacity);return function(f){return o.r=a(f),o.g=c(f),o.b=u(f),o.opacity=l(f),o+""}}return i.gamma=e,i})(1);function Jb(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),o;return function(s){for(o=0;o<n;++o)i[o]=e[o]*(1-s)+t[o]*s;return i}}function e0(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function t0(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),s=new Array(n),a;for(a=0;a<i;++a)o[a]=wo(e[a],t[a]);for(;a<n;++a)s[a]=t[a];return function(c){for(a=0;a<i;++a)s[a]=o[a](c);return s}}function Jf(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Pr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function n0(e,t){var n={},i={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=wo(e[o],t[o]):i[o]=t[o];return function(s){for(o in n)i[o]=n[o](s);return i}}var qs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cs=new RegExp(qs.source,"g");function r0(e){return function(){return e}}function i0(e){return function(t){return e(t)+""}}function ed(e,t){var n=qs.lastIndex=cs.lastIndex=0,i,o,s,a=-1,c=[],u=[];for(e=e+"",t=t+"";(i=qs.exec(e))&&(o=cs.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),c[a]?c[a]+=s:c[++a]=s),(i=i[0])===(o=o[0])?c[a]?c[a]+=o:c[++a]=o:(c[++a]=null,u.push({i:a,x:Pr(i,o)})),n=cs.lastIndex;return n<t.length&&(s=t.slice(n),c[a]?c[a]+=s:c[++a]=s),c.length<2?u[0]?i0(u[0].x):r0(t):(t=u.length,function(l){for(var f=0,d;f<t;++f)c[(d=u[f]).i]=d.x(l);return c.join("")})}function wo(e,t){var n=typeof t,i;return t==null||n==="boolean"?Ca(t):(n==="number"?Pr:n==="string"?(i=Nt(t))?(t=i,$l):ed:t instanceof Nt?$l:t instanceof Date?Jf:e0(t)?Jb:Array.isArray(t)?t0:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?n0:Pr)(e,t)}function td(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function o0(e){return function(){return e}}function s0(e){return+e}var jl=[0,1];function rt(e){return e}function Us(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:o0(isNaN(t)?NaN:.5)}function a0(e,t){var n;return e>t&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function c0(e,t,n){var i=e[0],o=e[1],s=t[0],a=t[1];return o<i?(i=Us(o,i),s=n(a,s)):(i=Us(i,o),s=n(s,a)),function(c){return s(i(c))}}function l0(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),s=new Array(i),a=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<i;)o[a]=Us(e[a],e[a+1]),s[a]=n(t[a],t[a+1]);return function(c){var u=Gf(e,c,1,i)-1;return s[u](o[u](c))}}function To(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Aa(){var e=jl,t=jl,n=wo,i,o,s,a=rt,c,u,l;function f(){var p=Math.min(e.length,t.length);return a!==rt&&(a=a0(e[0],e[p-1])),c=p>2?l0:c0,u=l=null,d}function d(p){return p==null||isNaN(p=+p)?s:(u||(u=c(e.map(i),t,n)))(i(a(p)))}return d.invert=function(p){return a(o((l||(l=c(t,e.map(i),Pr)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,s0),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=td,f()},d.clamp=function(p){return arguments.length?(a=p?!0:rt,f()):a!==rt},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(s=p,d):s},function(p,m){return i=p,o=m,f()}}function nd(){return Aa()(rt,rt)}function u0(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function Fn(e){return e=Vi(Math.abs(e)),e?e[1]:NaN}function f0(e,t){return function(n,i){for(var o=n.length,s=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>i&&(c=Math.max(1,i-u)),s.push(n.substring(o-=c,o+c)),!((u+=c+1)>i));)c=e[a=(a+1)%e.length];return s.reverse().join(t)}}function d0(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var p0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rr(e){if(!(t=p0.exec(e)))throw new Error("invalid format: "+e);var t;return new Sa({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]})}Rr.prototype=Sa.prototype;function Sa(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+""}Sa.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 h0(e){e:for(var t=e.length,n=1,i=-1,o;n<t;++n)switch(e[n]){case".":i=o=n;break;case"0":i===0&&(i=n),o=n;break;default:if(!+e[n])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(o+1):e}var rd;function m0(e,t){var n=Vi(e,t);if(!n)return e+"";var i=n[0],o=n[1],s=o-(rd=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Vi(e,Math.max(0,t+s-1))[0]}function Nl(e,t){var n=Vi(e,t);if(!n)return e+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const Dl={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u0,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Nl(e*100,t),r:Nl,s:m0,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ll(e){return e}var Fl=Array.prototype.map,ql=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function g0(e){var t=e.grouping===void 0||e.thousands===void 0?Ll:f0(Fl.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?Ll:d0(Fl.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(d){d=Rr(d);var p=d.fill,m=d.align,g=d.sign,h=d.symbol,y=d.zero,b=d.width,v=d.comma,T=d.precision,O=d.trim,w=d.type;w==="n"?(v=!0,w="g"):Dl[w]||(T===void 0&&(T=12),O=!0,w="g"),(y||p==="0"&&m==="=")&&(y=!0,p="0",m="=");var k=h==="$"?n:h==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",R=h==="$"?i:/[%p]/.test(w)?a:"",N=Dl[w],$=/[defgprs%]/.test(w);T=T===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function D(E){var x=k,P=R,C,I,F;if(w==="c")P=N(E)+P,E="";else{E=+E;var z=E<0||1/E<0;if(E=isNaN(E)?u:N(Math.abs(E),T),O&&(E=h0(E)),z&&+E==0&&g!=="+"&&(z=!1),x=(z?g==="("?g:c:g==="-"||g==="("?"":g)+x,P=(w==="s"?ql[8+rd/3]:"")+P+(z&&g==="("?")":""),$){for(C=-1,I=E.length;++C<I;)if(F=E.charCodeAt(C),48>F||F>57){P=(F===46?o+E.slice(C+1):E.slice(C))+P,E=E.slice(0,C);break}}}v&&!y&&(E=t(E,1/0));var B=x.length+E.length+P.length,ee=B<b?new Array(b-B+1).join(p):"";switch(v&&y&&(E=t(ee+E,ee.length?b-P.length:1/0),ee=""),m){case"<":E=x+E+P+ee;break;case"=":E=x+ee+E+P;break;case"^":E=ee.slice(0,B=ee.length>>1)+x+E+P+ee.slice(B);break;default:E=ee+x+E+P;break}return s(E)}return D.toString=function(){return d+""},D}function f(d,p){var m=l((d=Rr(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Fn(p)/3)))*3,h=Math.pow(10,-g),y=ql[8+g/3];return function(b){return m(h*b)+y}}return{format:l,formatPrefix:f}}var di,Pa,id;y0({thousands:",",grouping:[3],currency:["$",""]});function y0(e){return di=g0(e),Pa=di.format,id=di.formatPrefix,di}function b0(e){return Math.max(0,-Fn(Math.abs(e)))}function x0(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fn(t)/3)))*3-Fn(Math.abs(e)))}function v0(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fn(t)-Fn(e))+1}function O0(e,t,n,i){var o=Ls(e,t,n),s;switch(i=Rr(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(s=x0(o,a))&&(i.precision=s),id(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=v0(o,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=b0(o))&&(i.precision=s-(i.type==="%")*2);break}}return Pa(i)}function Ra(e){var t=e.domain;return e.ticks=function(n){var i=t();return Ns(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var o=t();return O0(o[0],o[o.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),o=0,s=i.length-1,a=i[o],c=i[s],u,l,f=10;for(c<a&&(l=a,a=c,c=l,l=o,o=s,s=l);f-- >0;){if(l=Ds(a,c,n),l===u)return i[o]=a,i[s]=c,t(i);if(l>0)a=Math.floor(a/l)*l,c=Math.ceil(c/l)*l;else if(l<0)a=Math.ceil(a*l)/l,c=Math.floor(c*l)/l;else break;u=l}return e},e}function od(){var e=nd();return e.copy=function(){return To(e,od())},nn.apply(e,arguments),Ra(e)}function sd(e,t){e=e.slice();var n=0,i=e.length-1,o=e[n],s=e[i],a;return s<o&&(a=n,n=i,i=a,a=o,o=s,s=a),e[n]=t.floor(o),e[i]=t.ceil(s),e}function Ul(e){return Math.log(e)}function zl(e){return Math.exp(e)}function w0(e){return-Math.log(-e)}function T0(e){return-Math.exp(-e)}function k0(e){return isFinite(e)?+("1e"+e):e<0?0:e}function C0(e){return e===10?k0:e===Math.E?Math.exp:t=>Math.pow(e,t)}function A0(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 Vl(e){return(t,n)=>-e(-t,n)}function S0(e){const t=e(Ul,zl),n=t.domain;let i=10,o,s;function a(){return o=A0(i),s=C0(i),n()[0]<0?(o=Vl(o),s=Vl(s),e(w0,T0)):e(Ul,zl),t}return t.base=function(c){return arguments.length?(i=+c,a()):i},t.domain=function(c){return arguments.length?(n(c),a()):n()},t.ticks=c=>{const u=n();let l=u[0],f=u[u.length-1];const d=f<l;d&&([l,f]=[f,l]);let p=o(l),m=o(f),g,h;const y=c==null?10:+c;let b=[];if(!(i%1)&&m-p<y){if(p=Math.floor(p),m=Math.ceil(m),l>0){for(;p<=m;++p)for(g=1;g<i;++g)if(h=p<0?g/s(-p):g*s(p),!(h<l)){if(h>f)break;b.push(h)}}else for(;p<=m;++p)for(g=i-1;g>=1;--g)if(h=p>0?g/s(-p):g*s(p),!(h<l)){if(h>f)break;b.push(h)}b.length*2<y&&(b=Ns(l,f,y))}else b=Ns(p,m,Math.min(m-p,y)).map(s);return d?b.reverse():b},t.tickFormat=(c,u)=>{if(c==null&&(c=10),u==null&&(u=i===10?"s":","),typeof u!="function"&&(!(i%1)&&(u=Rr(u)).precision==null&&(u.trim=!0),u=Pa(u)),c===1/0)return u;const l=Math.max(1,i*c/t.ticks().length);return f=>{let d=f/s(Math.round(o(f)));return d*i<i-.5&&(d*=i),d<=l?u(f):""}},t.nice=()=>n(sd(n(),{floor:c=>s(Math.floor(o(c))),ceil:c=>s(Math.ceil(o(c)))})),t}function ad(){const e=S0(Aa()).domain([1,10]);return e.copy=()=>To(e,ad()).base(e.base()),nn.apply(e,arguments),e}function Hl(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function P0(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function R0(e){return e<0?-e*e:e*e}function _0(e){var t=e(rt,rt),n=1;function i(){return n===1?e(rt,rt):n===.5?e(P0,R0):e(Hl(n),Hl(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,i()):n},Ra(t)}function _a(){var e=_0(Aa());return e.copy=function(){return To(e,_a()).exponent(e.exponent())},nn.apply(e,arguments),e}function E0(){return _a.apply(null,arguments).exponent(.5)}function cd(){var e=[.5],t=[0,1],n,i=1;function o(s){return s!=null&&s<=s?t[Gf(e,s,0,i)]:n}return o.domain=function(s){return arguments.length?(e=Array.from(s),i=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(s){return arguments.length?(t=Array.from(s),i=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(s){var a=t.indexOf(s);return[e[a-1],e[a]]},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return cd().domain(e).range(t).unknown(n)},nn.apply(o,arguments)}const ls=new Date,us=new Date;function Ce(e,t,n,i){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const a=o(s),c=o.ceil(s);return s-a<c-s?a:c},o.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),o.range=(s,a,c)=>{const u=[];if(s=o.ceil(s),c=c==null?1:Math.floor(c),!(s<a)||!(c>0))return u;let l;do u.push(l=new Date(+s)),t(s,c),e(s);while(l<s&&s<a);return u},o.filter=s=>Ce(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,c)=>{if(a>=a)if(c<0)for(;++c<=0;)for(;t(a,-1),!s(a););else for(;--c>=0;)for(;t(a,1),!s(a););}),n&&(o.count=(s,a)=>(ls.setTime(+s),us.setTime(+a),e(ls),e(us),Math.floor(n(ls,us))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(i?a=>i(a)%s===0:a=>o.count(0,a)%s===0):o)),o}const Hi=Ce(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Hi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ce(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Hi);Hi.range;const It=1e3,it=It*60,$t=it*60,Dt=$t*24,Ea=Dt*7,Bl=Dt*30,fs=Dt*365,fn=Ce(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCSeconds());fn.range;const Ma=Ce(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*It)},(e,t)=>{e.setTime(+e+t*it)},(e,t)=>(t-e)/it,e=>e.getMinutes());Ma.range;const Ia=Ce(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*it)},(e,t)=>(t-e)/it,e=>e.getUTCMinutes());Ia.range;const $a=Ce(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*It-e.getMinutes()*it)},(e,t)=>{e.setTime(+e+t*$t)},(e,t)=>(t-e)/$t,e=>e.getHours());$a.range;const ja=Ce(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$t)},(e,t)=>(t-e)/$t,e=>e.getUTCHours());ja.range;const Xr=Ce(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*it)/Dt,e=>e.getDate()-1);Xr.range;const ko=Ce(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dt,e=>e.getUTCDate()-1);ko.range;const ld=Ce(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dt,e=>Math.floor(e/Dt));ld.range;function xn(e){return Ce(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())*it)/Ea)}const Co=xn(0),Bi=xn(1),M0=xn(2),I0=xn(3),qn=xn(4),$0=xn(5),j0=xn(6);Co.range;Bi.range;M0.range;I0.range;qn.range;$0.range;j0.range;function vn(e){return Ce(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)/Ea)}const Ao=vn(0),Wi=vn(1),N0=vn(2),D0=vn(3),Un=vn(4),L0=vn(5),F0=vn(6);Ao.range;Wi.range;N0.range;D0.range;Un.range;L0.range;F0.range;const Na=Ce(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());Na.range;const Da=Ce(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());Da.range;const Lt=Ce(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());Lt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ce(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)});Lt.range;const Ft=Ce(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());Ft.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ce(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)});Ft.range;function ud(e,t,n,i,o,s){const a=[[fn,1,It],[fn,5,5*It],[fn,15,15*It],[fn,30,30*It],[s,1,it],[s,5,5*it],[s,15,15*it],[s,30,30*it],[o,1,$t],[o,3,3*$t],[o,6,6*$t],[o,12,12*$t],[i,1,Dt],[i,2,2*Dt],[n,1,Ea],[t,1,Bl],[t,3,3*Bl],[e,1,fs]];function c(l,f,d){const p=f<l;p&&([l,f]=[f,l]);const m=d&&typeof d.range=="function"?d:u(l,f,d),g=m?m.range(l,+f+1):[];return p?g.reverse():g}function u(l,f,d){const p=Math.abs(f-l)/d,m=wa(([,,y])=>y).right(a,p);if(m===a.length)return e.every(Ls(l/fs,f/fs,d));if(m===0)return Hi.every(Math.max(Ls(l,f,d),1));const[g,h]=a[p/a[m-1][2]<a[m][2]/p?m-1:m];return g.every(h)}return[c,u]}const[q0,U0]=ud(Ft,Da,Ao,ld,ja,Ia),[z0,V0]=ud(Lt,Na,Co,Xr,$a,Ma);function ds(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 ps(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 or(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function H0(e){var t=e.dateTime,n=e.date,i=e.time,o=e.periods,s=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,l=sr(o),f=ar(o),d=sr(s),p=ar(s),m=sr(a),g=ar(a),h=sr(c),y=ar(c),b=sr(u),v=ar(u),T={a:z,A:B,b:ee,B:j,c:null,d:Ql,e:Ql,f:px,g:Tx,G:Cx,H:ux,I:fx,j:dx,L:fd,m:hx,M:mx,p:U,q:W,Q:eu,s:tu,S:gx,u:yx,U:bx,V:xx,w:vx,W:Ox,x:null,X:null,y:wx,Y:kx,Z:Ax,"%":Jl},O={a:X,A:G,b:Y,B:Z,c:null,d:Zl,e:Zl,f:_x,g:qx,G:zx,H:Sx,I:Px,j:Rx,L:pd,m:Ex,M:Mx,p:Q,q:J,Q:eu,s:tu,S:Ix,u:$x,U:jx,V:Nx,w:Dx,W:Lx,x:null,X:null,y:Fx,Y:Ux,Z:Vx,"%":Jl},w={a:D,A:E,b:x,B:P,c:C,d:Xl,e:Xl,f:sx,g:Gl,G:Yl,H:Kl,I:Kl,j:nx,L:ox,m:tx,M:rx,p:$,q:ex,Q:cx,s:lx,S:ix,u:X0,U:K0,V:Q0,w:G0,W:Z0,x:I,X:F,y:Gl,Y:Yl,Z:J0,"%":ax};T.x=k(n,T),T.X=k(i,T),T.c=k(t,T),O.x=k(n,O),O.X=k(i,O),O.c=k(t,O);function k(q,H){return function(K){var _=[],oe=-1,se=0,xe=q.length,we,$e,Vt;for(K instanceof Date||(K=new Date(+K));++oe<xe;)q.charCodeAt(oe)===37&&(_.push(q.slice(se,oe)),($e=Wl[we=q.charAt(++oe)])!=null?we=q.charAt(++oe):$e=we==="e"?" ":"0",(Vt=H[we])&&(we=Vt(K,$e)),_.push(we),se=oe+1);return _.push(q.slice(se,oe)),_.join("")}}function R(q,H){return function(K){var _=or(1900,void 0,1),oe=N(_,q,K+="",0),se,xe;if(oe!=K.length)return null;if("Q"in _)return new Date(_.Q);if("s"in _)return new Date(_.s*1e3+("L"in _?_.L:0));if(H&&!("Z"in _)&&(_.Z=0),"p"in _&&(_.H=_.H%12+_.p*12),_.m===void 0&&(_.m="q"in _?_.q:0),"V"in _){if(_.V<1||_.V>53)return null;"w"in _||(_.w=1),"Z"in _?(se=ps(or(_.y,0,1)),xe=se.getUTCDay(),se=xe>4||xe===0?Wi.ceil(se):Wi(se),se=ko.offset(se,(_.V-1)*7),_.y=se.getUTCFullYear(),_.m=se.getUTCMonth(),_.d=se.getUTCDate()+(_.w+6)%7):(se=ds(or(_.y,0,1)),xe=se.getDay(),se=xe>4||xe===0?Bi.ceil(se):Bi(se),se=Xr.offset(se,(_.V-1)*7),_.y=se.getFullYear(),_.m=se.getMonth(),_.d=se.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),xe="Z"in _?ps(or(_.y,0,1)).getUTCDay():ds(or(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(xe+5)%7:_.w+_.U*7-(xe+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,ps(_)):ds(_)}}function N(q,H,K,_){for(var oe=0,se=H.length,xe=K.length,we,$e;oe<se;){if(_>=xe)return-1;if(we=H.charCodeAt(oe++),we===37){if(we=H.charAt(oe++),$e=w[we in Wl?H.charAt(oe++):we],!$e||(_=$e(q,K,_))<0)return-1}else if(we!=K.charCodeAt(_++))return-1}return _}function $(q,H,K){var _=l.exec(H.slice(K));return _?(q.p=f.get(_[0].toLowerCase()),K+_[0].length):-1}function D(q,H,K){var _=m.exec(H.slice(K));return _?(q.w=g.get(_[0].toLowerCase()),K+_[0].length):-1}function E(q,H,K){var _=d.exec(H.slice(K));return _?(q.w=p.get(_[0].toLowerCase()),K+_[0].length):-1}function x(q,H,K){var _=b.exec(H.slice(K));return _?(q.m=v.get(_[0].toLowerCase()),K+_[0].length):-1}function P(q,H,K){var _=h.exec(H.slice(K));return _?(q.m=y.get(_[0].toLowerCase()),K+_[0].length):-1}function C(q,H,K){return N(q,t,H,K)}function I(q,H,K){return N(q,n,H,K)}function F(q,H,K){return N(q,i,H,K)}function z(q){return a[q.getDay()]}function B(q){return s[q.getDay()]}function ee(q){return u[q.getMonth()]}function j(q){return c[q.getMonth()]}function U(q){return o[+(q.getHours()>=12)]}function W(q){return 1+~~(q.getMonth()/3)}function X(q){return a[q.getUTCDay()]}function G(q){return s[q.getUTCDay()]}function Y(q){return u[q.getUTCMonth()]}function Z(q){return c[q.getUTCMonth()]}function Q(q){return o[+(q.getUTCHours()>=12)]}function J(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var H=k(q+="",T);return H.toString=function(){return q},H},parse:function(q){var H=R(q+="",!1);return H.toString=function(){return q},H},utcFormat:function(q){var H=k(q+="",O);return H.toString=function(){return q},H},utcParse:function(q){var H=R(q+="",!0);return H.toString=function(){return q},H}}}var Wl={"-":"",_:" ",0:"0"},Ae=/^\s*\d+/,B0=/^%/,W0=/[\\^$*+?|[\]().{}]/g;function ce(e,t,n){var i=e<0?"-":"",o=(i?-e:e)+"",s=o.length;return i+(s<n?new Array(n-s+1).join(t)+o:o)}function Y0(e){return e.replace(W0,"\\$&")}function sr(e){return new RegExp("^(?:"+e.map(Y0).join("|")+")","i")}function ar(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function G0(e,t,n){var i=Ae.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function X0(e,t,n){var i=Ae.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function K0(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Q0(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Z0(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function Yl(e,t,n){var i=Ae.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Gl(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function J0(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ex(e,t,n){var i=Ae.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function tx(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function Xl(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function nx(e,t,n){var i=Ae.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Kl(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function rx(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function ix(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function ox(e,t,n){var i=Ae.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function sx(e,t,n){var i=Ae.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ax(e,t,n){var i=B0.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function cx(e,t,n){var i=Ae.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function lx(e,t,n){var i=Ae.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Ql(e,t){return ce(e.getDate(),t,2)}function ux(e,t){return ce(e.getHours(),t,2)}function fx(e,t){return ce(e.getHours()%12||12,t,2)}function dx(e,t){return ce(1+Xr.count(Lt(e),e),t,3)}function fd(e,t){return ce(e.getMilliseconds(),t,3)}function px(e,t){return fd(e,t)+"000"}function hx(e,t){return ce(e.getMonth()+1,t,2)}function mx(e,t){return ce(e.getMinutes(),t,2)}function gx(e,t){return ce(e.getSeconds(),t,2)}function yx(e){var t=e.getDay();return t===0?7:t}function bx(e,t){return ce(Co.count(Lt(e)-1,e),t,2)}function dd(e){var t=e.getDay();return t>=4||t===0?qn(e):qn.ceil(e)}function xx(e,t){return e=dd(e),ce(qn.count(Lt(e),e)+(Lt(e).getDay()===4),t,2)}function vx(e){return e.getDay()}function Ox(e,t){return ce(Bi.count(Lt(e)-1,e),t,2)}function wx(e,t){return ce(e.getFullYear()%100,t,2)}function Tx(e,t){return e=dd(e),ce(e.getFullYear()%100,t,2)}function kx(e,t){return ce(e.getFullYear()%1e4,t,4)}function Cx(e,t){var n=e.getDay();return e=n>=4||n===0?qn(e):qn.ceil(e),ce(e.getFullYear()%1e4,t,4)}function Ax(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Zl(e,t){return ce(e.getUTCDate(),t,2)}function Sx(e,t){return ce(e.getUTCHours(),t,2)}function Px(e,t){return ce(e.getUTCHours()%12||12,t,2)}function Rx(e,t){return ce(1+ko.count(Ft(e),e),t,3)}function pd(e,t){return ce(e.getUTCMilliseconds(),t,3)}function _x(e,t){return pd(e,t)+"000"}function Ex(e,t){return ce(e.getUTCMonth()+1,t,2)}function Mx(e,t){return ce(e.getUTCMinutes(),t,2)}function Ix(e,t){return ce(e.getUTCSeconds(),t,2)}function $x(e){var t=e.getUTCDay();return t===0?7:t}function jx(e,t){return ce(Ao.count(Ft(e)-1,e),t,2)}function hd(e){var t=e.getUTCDay();return t>=4||t===0?Un(e):Un.ceil(e)}function Nx(e,t){return e=hd(e),ce(Un.count(Ft(e),e)+(Ft(e).getUTCDay()===4),t,2)}function Dx(e){return e.getUTCDay()}function Lx(e,t){return ce(Wi.count(Ft(e)-1,e),t,2)}function Fx(e,t){return ce(e.getUTCFullYear()%100,t,2)}function qx(e,t){return e=hd(e),ce(e.getUTCFullYear()%100,t,2)}function Ux(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function zx(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Un(e):Un.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function Vx(){return"+0000"}function Jl(){return"%"}function eu(e){return+e}function tu(e){return Math.floor(+e/1e3)}var An,md,gd;Hx({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 Hx(e){return An=H0(e),md=An.format,An.parse,gd=An.utcFormat,An.utcParse,An}function Bx(e){return new Date(e)}function Wx(e){return e instanceof Date?+e:+new Date(+e)}function La(e,t,n,i,o,s,a,c,u,l){var f=nd(),d=f.invert,p=f.domain,m=l(".%L"),g=l(":%S"),h=l("%I:%M"),y=l("%I %p"),b=l("%a %d"),v=l("%b %d"),T=l("%B"),O=l("%Y");function w(k){return(u(k)<k?m:c(k)<k?g:a(k)<k?h:s(k)<k?y:i(k)<k?o(k)<k?b:v:n(k)<k?T:O)(k)}return f.invert=function(k){return new Date(d(k))},f.domain=function(k){return arguments.length?p(Array.from(k,Wx)):p().map(Bx)},f.ticks=function(k){var R=p();return e(R[0],R[R.length-1],k??10)},f.tickFormat=function(k,R){return R==null?w:l(R)},f.nice=function(k){var R=p();return(!k||typeof k.range!="function")&&(k=t(R[0],R[R.length-1],k??10)),k?p(sd(R,k)):f},f.copy=function(){return To(f,La(e,t,n,i,o,s,a,c,u,l))},f}function yd(){return nn.apply(La(z0,V0,Lt,Na,Co,Xr,$a,Ma,fn,md).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Yx(){return nn.apply(La(q0,U0,Ft,Da,Ao,ko,ja,Ia,fn,gd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gx(){var e=0,t=1,n,i,o,s,a=rt,c=!1,u;function l(d){return d==null||isNaN(d=+d)?u:a(o===0?.5:(d=(s(d)-n)*o,c?Math.max(0,Math.min(1,d)):d))}l.domain=function(d){return arguments.length?([e,t]=d,n=s(e=+e),i=s(t=+t),o=n===i?0:1/(i-n),l):[e,t]},l.clamp=function(d){return arguments.length?(c=!!d,l):c},l.interpolator=function(d){return arguments.length?(a=d,l):a};function f(d){return function(p){var m,g;return arguments.length?([m,g]=p,a=d(m,g),l):[a(0),a(1)]}}return l.range=f(wo),l.rangeRound=f(td),l.unknown=function(d){return arguments.length?(u=d,l):u},function(d){return s=d,n=d(e),i=d(t),o=n===i?0:1/(i-n),l}}function Xx(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bd(){var e=Ra(Gx()(rt));return e.copy=function(){return Xx(e,bd())},Nb.apply(e,arguments)}function zs(e){return e.scaleType==="band"}function xd(e){return e.scaleType==="point"}function Kx(e){return e.type==="piecewise"?cd(e.thresholds,e.colors):bd([e.min??0,e.max??100],e.color)}function Yi(e){return e.values?qi(e.values,e.colors).unknown(e.unknownColor??null):qi(e.colors.map((t,n)=>n),e.colors).unknown(e.unknownColor??null)}function Pi(e){return e.type==="ordinal"?Yi(e):Kx(e)}function gn(e){return e.bandwidth!==void 0}function Fa(e){return typeof e=="number"&&!Number.isFinite(e)}function Qx(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:i,range:o,domain:s}=e,a=n===void 0?999:Math.floor(Math.abs(s[1]-s[0])/n),c=t===void 0?2:Math.ceil(Math.abs(s[1]-s[0])/t),u=i??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(a,Math.max(c,u))}const hs={start:0,extremities:0,end:1,middle:.5};function So(e){const{scale:t,tickNumber:n,valueFormatter:i,tickInterval:o,tickPlacement:s="extremities",tickLabelPlacement:a="middle"}=e;return M.useMemo(()=>{if(gn(t)){const l=t.domain();return t.bandwidth()>0?[...(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(p=>({value:p,formattedValue:i?.(p,{location:"tick"})??`${p}`,offset:t(p)-(t.step()-t.bandwidth())/2+hs[s]*t.step(),labelOffset:a==="tick"?0:t.step()*(hs[a]-hs[s])})),...s==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(d=>({value:d,formattedValue:i?.(d,{location:"tick"})??`${d}`,offset:t(d),labelOffset:0}))}return t.domain().some(Fa)?[]:(typeof o=="object"?o:t.ticks(n)).map(l=>({value:l,formattedValue:i?.(l,{location:"tick"})??t.tickFormat(n)(l),offset:t(l),labelOffset:0}))},[t,o,n,i,s,a])}function Zx(e,t,n){switch(e){case"log":return ad(t,n);case"pow":return _a(t,n);case"sqrt":return E0(t,n);case"time":return yd(t,n);case"utc":return Yx(t,n);default:return od(t,n)}}const ms=(e,t)=>{const n=e[1]-e[0],i=t[1]-t[0],o=e[0]-t[0]*n/i,s=e[1]+(100-t[1])*n/i;return[o,s]},Jx=(e,t,n,i,o,s,a)=>{const c=i[t],u=s[t]?.series??{},[l,f]=c?.({series:u,axis:n,axisIndex:o,isDefaultAxis:o===0,getFilters:a})??[1/0,-1/0],[d,p]=e;return[Math.min(l,d),Math.max(f,p)]},ev=(e,t,n,i,o)=>{const a=Object.keys(t).reduce((c,u)=>Jx(c,u,e,t,n,i,o),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a};function tv(e,t,n){if(t==="rotation"){const{startAngle:o=0,endAngle:s=o+360}=n;return n.reverse?[Math.PI*o/180,Math.PI*s/180]:[Math.PI*s/180,Math.PI*o/180]}if(t==="radius"){const{minRadius:o=0,maxRadius:s=Math.min(e.width,e.height)/2}=n;return[o,s]}const i=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[i[1],i[0]]:i}const nu=e=>e?.[0]instanceof Date;function ru(e,t){const n=yd(e.data,t);return(i,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(i):`${i.toLocaleString()}`}const nv=.2,rv=.1;function iu({drawingArea:e,formattedSeries:t,axis:n,extremumGetters:i,axisDirection:o,zoomData:s,zoomOptions:a,getFilters:c}){const u={};return n.forEach((l,f)=>{const d=l,p=a?.[d.id],m=s?.find(({axisId:C})=>C===d.id),g=m?[m.start,m.end]:[0,100],h=tv(e,o,d),[y,b]=ev(d,i,f,t,m===void 0&&!p?c:void 0),v=d.data??[];if(zs(d)){const C=d.categoryGapRatio??nv,I=d.barGapRatio??rv,F=o==="y"?[h[1],h[0]]:h,z=ms(F,g);if(u[d.id]=S({categoryGapRatio:C,barGapRatio:I},d,{data:v,scale:Ta(d.data,z).paddingInner(C).paddingOuter(C/2),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Yi(S({values:d.data},d.colorMap)):Pi(d.colorMap))}),nu(d.data)){const B=ru(d,F);u[d.id].valueFormatter=d.valueFormatter??B}}if(xd(d)){const C=o==="y"?[...h].reverse():h,I=ms(C,g);if(u[d.id]=S({},d,{data:v,scale:Db(d.data,I),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Yi(S({values:d.data},d.colorMap)):Pi(d.colorMap))}),nu(d.data)){const F=ru(d,C);u[d.id].valueFormatter=d.valueFormatter??F}}if(d.scaleType==="band"||d.scaleType==="point")return;const T=d.scaleType??"linear",O=d.domainLimit??"nice",w=[d.min??y,d.max??b];if(typeof O=="function"){const{min:C,max:I}=O(y,b);w[0]=C,w[1]=I}const k=Qx(S({},d,{range:h,domain:w})),R=k/((g[1]-g[0])/100),N=ms(h,g),$=Zx(T,w,N),D=O==="nice"?$.nice(k):$,[E,x]=D.domain(),P=[d.min??E,d.max??x];u[d.id]=S({},d,{data:v,scaleType:T,scale:D.domain(P),tickNumber:R,colorScale:d.colorMap&&Pi(d.colorMap)})}),{axis:u,axisIds:n.map(({id:l})=>l)}}const zt="DEFAULT_X_AXIS_KEY",qa="DEFAULT_Y_AXIS_KEY",iv={top:50,bottom:50,left:50,right:50},ov=(e,t,n)=>{const i=S({},iv,n);return M.useMemo(()=>({left:i.left,top:i.top,right:i.right,bottom:i.bottom,width:Math.max(0,e-i.left-i.right),height:Math.max(0,t-i.top-i.bottom)}),[e,t,i.top,i.bottom,i.left,i.right])},Qn=M.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1});process.env.NODE_ENV!=="production"&&(Qn.displayName="DrawingContext");const Ua=M.createContext({isInitialized:!1,data:{current:null}});process.env.NODE_ENV!=="production"&&(Ua.displayName="SvgContext");function sv(e){const{width:t,height:n,margin:i,svgRef:o,children:s}=e,a=ov(t,n,i),c=ya(),u=M.useCallback(({x:d,y:p},m)=>{if(m?.targetElement&&m?.targetElement.closest("[data-drawing-container]"))return!0;const g=d>=a.left-1&&d<=a.left+a.width,h=p>=a.top-1&&p<=a.top+a.height;return m?.direction==="x"?g:(m?.direction==="y"||g)&&h},[a]),l=M.useMemo(()=>S({chartId:c??""},a,{isPointInside:u}),[c,a,u]),f=M.useMemo(()=>({isInitialized:!0,data:o}),[o]);return A.jsx(Ua.Provider,{value:f,children:A.jsx(Qn.Provider,{value:l,children:s})})}function We(){const{left:e,top:t,width:n,height:i,bottom:o,right:s,isPointInside:a}=M.useContext(Qn);return M.useMemo(()=>({left:e,top:t,width:n,height:i,bottom:o,right:s,isPointInside:a}),[i,e,t,n,o,s,a])}const av=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function cv(e,t,n=av){return e.type==="pie"?S({},e,{data:e.data.map((i,o)=>S({color:n[o%n.length]},i))}):S({color:n[t%n.length]},e)}const lv=({series:e,colors:t,seriesFormatters:n,dataset:i})=>{const o={};e.forEach((a,c)=>{const{id:u=`auto-generated-id-${c}`,type:l}=a;if(o[l]===void 0&&(o[l]={series:{},seriesOrder:[]}),o[l]?.series[u]!==void 0)throw new Error(`MUI X: series' id "${u}" is not unique.`);o[l].series[u]=S({id:u},cv(a,c,t)),o[l].seriesOrder.push(u)});const s={};return Object.keys(n).forEach(a=>{const c=o[a];c!==void 0&&(s[a]=n[a]?.(c,i)??o[a])}),s},uv=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],fv=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],dv=e=>e==="dark"?fv:uv,za=M.createContext({isInitialized:!1,data:{}});process.env.NODE_ENV!=="production"&&(za.displayName="SeriesContext");const Zn=M.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}});process.env.NODE_ENV!=="production"&&(Zn.displayName="PluginContext");const ou=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},vd=e=>{const{axis:t,getFilters:n,isDefaultAxis:i}=e,o=n?.({currentAxisId:t.id,isDefaultAxis:i}),s=o?t.data?.filter((u,l)=>o({x:null,y:null},l)):t.data,a=Math.min(...s??[]),c=Math.max(...s??[]);return[a,c]},Od=e=>t=>{const{series:n,axis:i,getFilters:o,isDefaultAxis:s}=t;return Object.keys(n).filter(a=>{const c=n[a].yAxisId??n[a].yAxisKey;return c===i.id||s&&c===void 0}).reduce((a,c)=>{const{stackedData:u}=n[c],l=o?.({currentAxisId:i.id,isDefaultAxis:s,seriesXAxisId:n[c].xAxisId??n[c].xAxisKey,seriesYAxisId:n[c].yAxisId??n[c].yAxisKey}),[f,d]=u?.reduce((p,m,g)=>l&&(!l(ou(m[0],e),g)||!l(ou(m[1],e),g))?p:[Math.min(...m,p[0]),Math.max(...m,p[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(f,a[0]),Math.max(d,a[1])]},[1/0,-1/0])},pv=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?Od("x")(e):vd(e),hv=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?vd(e):Od("y")(e),su=new Set;function Po(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
`));return n.seriesFormatters}function jv(e){const{isInitialized:t,data:n}=M.useContext(Zn);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
|
|
41
|
-
`));return n.xExtremumGetters}function Nv(e){const{isInitialized:t,data:n}=M.useContext(Zn);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
|
|
42
|
-
`));return n.yExtremumGetters}function Dv(e){const{series:t,dataset:n,colors:i=dv,children:o}=e,s=$v(),a=Ut(),c=M.useMemo(()=>({isInitialized:!0,data:lv({series:t,colors:typeof i=="function"?i(a.palette.mode):i,seriesFormatters:s,dataset:n})}),[t,i,a.palette.mode,s,n]);return A.jsx(za.Provider,{value:c,children:o})}function St(){const{isInitialized:e,data:t}=M.useContext(za);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
|
|
43
|
-
`));return t}function Lv(){const e=St();return M.useMemo(()=>e.pie,[e.pie])}function Ro(){const e=St();return M.useMemo(()=>e.line,[e.line])}function Fv(){const e=St();return M.useMemo(()=>e.bar,[e.bar])}const Ha=M.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});process.env.NODE_ENV!=="production"&&(Ha.displayName="CartesianContext");function qv(e){const{xAxis:t,yAxis:n,children:i}=e,o=St(),s=We(),a=jv(),c=Nv(),u=M.useMemo(()=>iu({drawingArea:s,formattedSeries:o,axis:t,extremumGetters:a,axisDirection:"x"}),[s,o,t,a]),l=M.useMemo(()=>iu({drawingArea:s,formattedSeries:o,axis:n,extremumGetters:c,axisDirection:"y"}),[s,o,n,c]),f=M.useMemo(()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:l.axis,xAxisIds:u.axisIds,yAxisIds:l.axisIds}}),[u,l]);return A.jsx(Ha.Provider,{value:f,children:i})}const De=()=>{const{data:e}=M.useContext(Ha);return e};function _r(...e){const t=M.useRef(void 0),n=M.useCallback(i=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,c=a(i);return typeof c=="function"?c:()=>{a(null)}}return s.current=i,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return M.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}function Uv(e){return typeof e=="string"}function zv(e,t,n){return e===void 0||Uv(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Vv(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function au(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 Hv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const m=pt(n?.className,s,o?.className,i?.className),g={...n?.style,...o?.style,...i?.style},h={...n,...o,...i};return m.length>0&&(h.className=m),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const a=Vv({...o,...i}),c=au(i),u=au(o),l=t(a),f=pt(l?.className,n?.className,s,o?.className,i?.className),d={...l?.style,...n?.style,...o?.style,...i?.style},p={...l,...n,...u,...c};return f.length>0&&(p.className=f),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:l.ref}}function Bv(e,t,n){return typeof e=="function"?e(t,n):e}function ze(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:Bv(n,i),{props:c,internalRef:u}=Hv({...s,externalSlotProps:a}),l=_r(u,a?.ref,e.additionalProps?.ref);return zv(t,{...c,ref:l},i)}const Pt=M.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null});process.env.NODE_ENV!=="production"&&(Pt.displayName="InteractionContext");const Wv=(e,t)=>{switch(t.type){case"enterItem":return S({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:S({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return S({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:S({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:S({},e,{axis:t.data});default:return e}};function Yv(e){const{children:t}=e,[n,i]=M.useReducer(Wv,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=M.useMemo(()=>S({},n,{dispatch:i}),[n]);return A.jsx(Pt.Provider,{value:o,children:t})}function Gv(e){const{controlled:t,default:n,name:i,state:o="value"}=e,{current:s}=M.useRef(t!==void 0),[a,c]=M.useState(n),u=s?t:a;if(process.env.NODE_ENV!=="production"){M.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${i} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
44
|
-
`))
|
|
45
|
-
`))
|
|
46
|
-
`));return t}function Jn(e){const t=_o();if(!e)return{isHighlighted:!1,isFaded:!1};const n=t.isHighlighted(e),i=!n&&t.isFaded(e);return{isHighlighted:n,isFaded:i}}const Eo=M.createContext({zAxis:{},zAxisIds:[]});process.env.NODE_ENV!=="production"&&(Eo.displayName="ZAxisContext");function Sd(e){const{zAxis:t,dataset:n,children:i}=e,o=M.useMemo(()=>t?.map(a=>{const c=a.dataKey;if(c===void 0||a.data!==void 0)return a;if(n===void 0)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return S({},a,{data:n.map(u=>u[c])})}),[t,n]),s=M.useMemo(()=>{const a=o?.map((u,l)=>S({id:`defaultized-z-axis-${l}`},u))??[],c={};return a.forEach(u=>{c[u.id]=S({},u,{colorScale:u.colorMap&&(u.colorMap.type==="ordinal"&&u.data?Yi(S({values:u.data},u.colorMap)):Pi(u.colorMap.type==="continuous"?S({min:u.min,max:u.max},u.colorMap):u.colorMap))})}),{zAxis:c,zAxisIds:a.map(({id:u})=>u)}},[o]);return A.jsx(Eo.Provider,{value:s,children:i})}process.env.NODE_ENV!=="production"&&(Sd.propTypes={children:r.node,dataset:r.arrayOf(r.object),zAxis:r.arrayOf(r.shape({colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,id:r.string,max:r.number,min:r.number}))});const er=e=>{const{dispatch:t}=M.useContext(Pt),{setHighlighted:n,clearHighlighted:i}=_o();return s=>({onPointerEnter:()=>{t({type:"enterItem",data:s}),n({seriesId:s.seriesId,dataIndex:s.dataIndex})},onPointerLeave:l=>{l.currentTarget.hasPointerCapture(l.pointerId)&&l.currentTarget.releasePointerCapture(l.pointerId),t({type:"leaveItem",data:s}),i()},onPointerDown:l=>{l.currentTarget.hasPointerCapture(l.pointerId)&&l.currentTarget.releasePointerCapture(l.pointerId)}})};var Wa=Qr(),ne=e=>Kr(e,Wa),Ya=Qr();ne.write=e=>Kr(e,Ya);var Mo=Qr();ne.onStart=e=>Kr(e,Mo);var Ga=Qr();ne.onFrame=e=>Kr(e,Ga);var Xa=Qr();ne.onFinish=e=>Kr(e,Xa);var Mn=[];ne.setTimeout=(e,t)=>{const n=ne.now()+t,i=()=>{const s=Mn.findIndex(a=>a.cancel==i);~s&&Mn.splice(s,1),Wt-=~s?1:0},o={time:n,handler:e,cancel:i};return Mn.splice(Pd(n),0,o),Wt+=1,Rd(),o};var Pd=e=>~(~Mn.findIndex(t=>t.time>e)||~Mn.length);ne.cancel=e=>{Mo.delete(e),Ga.delete(e),Xa.delete(e),Wa.delete(e),Ya.delete(e)};ne.sync=e=>{Vs=!0,ne.batchedUpdates(e),Vs=!1};ne.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function i(...o){t=o,ne.onStart(n)}return i.handler=e,i.cancel=()=>{Mo.delete(n),t=null},i};var Ka=typeof window<"u"?window.requestAnimationFrame:(()=>{});ne.use=e=>Ka=e;ne.now=typeof performance<"u"?()=>performance.now():Date.now;ne.batchedUpdates=e=>e();ne.catch=console.error;ne.frameLoop="always";ne.advance=()=>{ne.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ed()};var Bt=-1,Wt=0,Vs=!1;function Kr(e,t){Vs?(t.delete(e),e(0)):(t.add(e),Rd())}function Rd(){Bt<0&&(Bt=0,ne.frameLoop!=="demand"&&Ka(_d))}function Jv(){Bt=-1}function _d(){~Bt&&(Ka(_d),ne.batchedUpdates(Ed))}function Ed(){const e=Bt;Bt=ne.now();const t=Pd(Bt);if(t&&(Md(Mn.splice(0,t),n=>n.handler()),Wt-=t),!Wt){Jv();return}Mo.flush(),Wa.flush(e?Math.min(64,Bt-e):16.667),Ga.flush(),Ya.flush(),Xa.flush()}function Qr(){let e=new Set,t=e;return{add(n){Wt+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Wt-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Wt-=t.size,Md(t,i=>i(n)&&e.add(i)),Wt+=e.size,t=e)}}}function Md(e,t){e.forEach(n=>{try{t(n)}catch(i){ne.catch(i)}})}var e1=Object.defineProperty,t1=(e,t)=>{for(var n in t)e1(e,n,{get:t[n],enumerable:!0})},st={};t1(st,{assign:()=>r1,colors:()=>Xt,createStringInterpolator:()=>Za,skipAnimation:()=>$d,to:()=>Id,willAdvance:()=>Ja});function Hs(){}var n1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),V={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 Mt(e,t){if(V.arr(e)){if(!V.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var te=(e,t)=>e.forEach(t);function kt(e,t,n){if(V.arr(e)){for(let i=0;i<e.length;i++)t.call(n,e[i],`${i}`);return}for(const i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i)}var je=e=>V.und(e)?[]:V.arr(e)?e:[e];function gr(e,t){if(e.size){const n=Array.from(e);e.clear(),te(n,t)}}var hr=(e,...t)=>gr(e,n=>n(...t)),Qa=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Za,Id,Xt=null,$d=!1,Ja=Hs,r1=e=>{e.to&&(Id=e.to),e.now&&(ne.now=e.now),e.colors!==void 0&&(Xt=e.colors),e.skipAnimation!=null&&($d=e.skipAnimation),e.createStringInterpolator&&(Za=e.createStringInterpolator),e.requestAnimationFrame&&ne.use(e.requestAnimationFrame),e.batchedUpdates&&(ne.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Ja=e.willAdvance),e.frameLoop&&(ne.frameLoop=e.frameLoop)},yr=new Set,tt=[],bs=[],Xi=0,Io={get idle(){return!yr.size&&!tt.length},start(e){Xi>e.priority?(yr.add(e),ne.onStart(i1)):(jd(e),ne(Bs))},advance:Bs,sort(e){if(Xi)ne.onFrame(()=>Io.sort(e));else{const t=tt.indexOf(e);~t&&(tt.splice(t,1),Nd(e))}},clear(){tt=[],yr.clear()}};function i1(){yr.forEach(jd),yr.clear(),ne(Bs)}function jd(e){tt.includes(e)||Nd(e)}function Nd(e){tt.splice(o1(tt,t=>t.priority>e.priority),0,e)}function Bs(e){const t=bs;for(let n=0;n<tt.length;n++){const i=tt[n];Xi=i.priority,i.idle||(Ja(i),i.advance(e),i.idle||t.push(i))}return Xi=0,bs=tt,bs.length=0,tt=t,tt.length>0}function o1(e,t){const n=e.findIndex(t);return n<0?e.length:n}var s1={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},dt="[-+]?\\d*\\.?\\d+",Ki=dt+"%";function $o(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var a1=new RegExp("rgb"+$o(dt,dt,dt)),c1=new RegExp("rgba"+$o(dt,dt,dt,dt)),l1=new RegExp("hsl"+$o(dt,Ki,Ki)),u1=new RegExp("hsla"+$o(dt,Ki,Ki,dt)),f1=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,d1=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,p1=/^#([0-9a-fA-F]{6})$/,h1=/^#([0-9a-fA-F]{8})$/;function m1(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=p1.exec(e))?parseInt(t[1]+"ff",16)>>>0:Xt&&Xt[e]!==void 0?Xt[e]:(t=a1.exec(e))?(Sn(t[1])<<24|Sn(t[2])<<16|Sn(t[3])<<8|255)>>>0:(t=c1.exec(e))?(Sn(t[1])<<24|Sn(t[2])<<16|Sn(t[3])<<8|uu(t[4]))>>>0:(t=f1.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=h1.exec(e))?parseInt(t[1],16)>>>0:(t=d1.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=l1.exec(e))?(cu(lu(t[1]),pi(t[2]),pi(t[3]))|255)>>>0:(t=u1.exec(e))?(cu(lu(t[1]),pi(t[2]),pi(t[3]))|uu(t[4]))>>>0:null}function xs(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 cu(e,t,n){const i=n<.5?n*(1+t):n+t-n*t,o=2*n-i,s=xs(o,i,e+1/3),a=xs(o,i,e),c=xs(o,i,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(c*255)<<8}function Sn(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function lu(e){return(parseFloat(e)%360+360)%360/360}function uu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function pi(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function fu(e){let t=m1(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,i=(t&16711680)>>>16,o=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${i}, ${o}, ${s})`}var Er=(e,t,n)=>{if(V.fun(e))return e;if(V.arr(e))return Er({range:e,output:t,extrapolate:n});if(V.str(e.output[0]))return Za(e);const i=e,o=i.output,s=i.range||[0,1],a=i.extrapolateLeft||i.extrapolate||"extend",c=i.extrapolateRight||i.extrapolate||"extend",u=i.easing||(l=>l);return l=>{const f=y1(l,s);return g1(l,s[f],s[f+1],o[f],o[f+1],u,a,c,i.map)}};function g1(e,t,n,i,o,s,a,c,u){let l=u?u(e):e;if(l<t){if(a==="identity")return l;a==="clamp"&&(l=t)}if(l>n){if(c==="identity")return l;c==="clamp"&&(l=n)}return i===o?i:t===n?e<=t?i:o:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=s(l),i===-1/0?l=-l:o===1/0?l=l+i:l=l*(o-i)+i,l)}function y1(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var b1={linear:e=>e},Mr=Symbol.for("FluidValue.get"),zn=Symbol.for("FluidValue.observers"),et=e=>!!(e&&e[Mr]),Fe=e=>e&&e[Mr]?e[Mr]():e,du=e=>e[zn]||null;function x1(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ir(e,t){const n=e[zn];n&&n.forEach(i=>{x1(i,t)})}var Dd=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");v1(this,e)}},v1=(e,t)=>Ld(e,Mr,t);function tr(e,t){if(e[Mr]){let n=e[zn];n||Ld(e,zn,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $r(e,t){const n=e[zn];if(n&&n.has(t)){const i=n.size-1;i?n.delete(t):e[zn]=null,e.observerRemoved&&e.observerRemoved(i,t)}}var Ld=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ri=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,O1=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,pu=new RegExp(`(${Ri.source})(%|[a-z]+)`,"i"),w1=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,jo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fd=e=>{const[t,n]=T1(e);if(!t||Qa())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(i)return i.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&jo.test(n))return Fd(n);if(n)return n}return e},T1=e=>{const t=jo.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]},vs,k1=(e,t,n,i,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)}, ${o})`,qd=e=>{vs||(vs=Xt?new RegExp(`(${Object.keys(Xt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Fe(s).replace(jo,Fd).replace(O1,fu).replace(vs,fu)),n=t.map(s=>s.match(Ri).map(Number)),o=n[0].map((s,a)=>n.map(c=>{if(!(a in c))throw Error('The arity of each "output" value must be equal');return c[a]})).map(s=>Er({...e,output:s}));return s=>{const a=!pu.test(t[0])&&t.find(u=>pu.test(u))?.replace(Ri,"");let c=0;return t[0].replace(Ri,()=>`${o[c++](s)}${a||""}`).replace(w1,k1)}},ec="react-spring: ",Ud=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${ec}once requires a function parameter`);return(...i)=>{n||(t(...i),n=!0)}},C1=Ud(console.warn);function A1(){C1(`${ec}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var S1=Ud(console.warn);function P1(){S1(`${ec}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 No(e){return V.str(e)&&(e[0]=="#"||/\d/.test(e)||!Qa()&&jo.test(e)||e in(Xt||{}))}var Yt=Qa()?ae.useEffect:ae.useLayoutEffect,R1=()=>{const e=ae.useRef(!1);return Yt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tc(){const e=ae.useState()[1],t=R1();return()=>{t.current&&e(Math.random())}}function _1(e,t){const[n]=ae.useState(()=>({inputs:t,result:e()})),i=ae.useRef(),o=i.current;let s=o;return s?t&&s.inputs&&E1(t,s.inputs)||(s={inputs:t,result:e()}):s=n,ae.useEffect(()=>{i.current=s,o==n&&(n.inputs=n.result=void 0)},[s]),s.result}function E1(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var nc=e=>ae.useEffect(e,M1),M1=[];function Ws(e){const t=ae.useRef();return ae.useEffect(()=>{t.current=e}),t.current}var jr=Symbol.for("Animated:node"),I1=e=>!!e&&e[jr]===e,yt=e=>e&&e[jr],rc=(e,t)=>n1(e,jr,t),Do=e=>e&&e[jr]&&e[jr].getPayload(),zd=class{constructor(){rc(this,this)}getPayload(){return this.payload||[]}},Zr=class extends zd{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,V.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Zr(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return V.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,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Nr=class extends Zr{constructor(e){super(0),this._string=null,this._toString=Er({output:[e,e]})}static create(e){return new Nr(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(V.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=Er({output:[this.getValue(),e]})),this._value=0,super.reset()}},Qi={dependencies:null},Lo=class extends zd{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return kt(this.source,(n,i)=>{I1(n)?t[i]=n.getValue(e):et(n)?t[i]=Fe(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&te(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return kt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Qi.dependencies&&et(e)&&Qi.dependencies.add(e);const t=Do(e);t&&te(t,n=>this.add(n))}},Vd=class extends Lo{constructor(e){super(e)}static create(e){return new Vd(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,i)=>n.setValue(e[i])).some(Boolean):(super.setValue(e.map($1)),!0)}};function $1(e){return(No(e)?Nr:Zr).create(e)}function Ys(e){const t=yt(e);return t?t.constructor:V.arr(e)?Vd:No(e)?Nr:Zr}var hu=(e,t)=>{const n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return ae.forwardRef((i,o)=>{const s=ae.useRef(null),a=n&&ae.useCallback(g=>{s.current=D1(o,g)},[o]),[c,u]=N1(i,t),l=tc(),f=()=>{const g=s.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,c.getValue(!0)):!1)===!1&&l()},d=new j1(f,u),p=ae.useRef();Yt(()=>(p.current=d,te(u,g=>tr(g,d)),()=>{p.current&&(te(p.current.deps,g=>$r(g,p.current)),ne.cancel(p.current.update))})),ae.useEffect(f,[]),nc(()=>()=>{const g=p.current;te(g.deps,h=>$r(h,g))});const m=t.getComponentProps(c.getValue());return M.createElement(e,{...m,ref:a})})},j1=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&ne.write(this.update)}};function N1(e,t){const n=new Set;return Qi.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Lo(e),Qi.dependencies=null,[e,n]}function D1(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}var mu=Symbol.for("AnimatedComponent"),L1=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Lo(o),getComponentProps:i=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},s=a=>{const c=gu(a)||"Anonymous";return V.str(a)?a=s[a]||(s[a]=hu(a,o)):a=a[mu]||(a[mu]=hu(a,o)),a.displayName=`Animated(${c})`,a};return kt(e,(a,c)=>{V.arr(e)&&(c=gu(a)),s[c]=s(a)}),{animated:s}},gu=e=>V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null;function qe(e,...t){return V.fun(e)?e(...t):e}var br=(e,t)=>e===!0||!!(t&&e&&(V.fun(e)?e(t):je(e).includes(t))),Hd=(e,t)=>V.obj(e)?t&&e[t]:e,Bd=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,F1=e=>e,Fo=(e,t=F1)=>{let n=q1;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const i={};for(const o of n){const s=t(e[o],o);V.und(s)||(i[o]=s)}return i},q1=["config","onProps","onStart","onChange","onPause","onResume","onRest"],U1={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 z1(e){const t={};let n=0;if(kt(e,(i,o)=>{U1[o]||(t[o]=i,n++)}),n)return t}function ic(e){const t=z1(e);if(t){const n={to:t};return kt(e,(i,o)=>o in t||(n[o]=i)),n}return{...e}}function Dr(e){return e=Fe(e),V.arr(e)?e.map(Dr):No(e)?st.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Wd(e){for(const t in e)return!0;return!1}function Gs(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function Xs(e,t){e.ref?.delete(e),t?.delete(e)}function Yd(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var V1={default:{tension:170,friction:26}},Ks={...V1.default,mass:1,damping:1,easing:b1.linear,clamp:!1},H1=class{constructor(){this.velocity=0,Object.assign(this,Ks)}};function B1(e,t,n){n&&(n={...n},yu(n,t),t={...n,...t}),yu(e,t),Object.assign(e,t);for(const a in Ks)e[a]==null&&(e[a]=Ks[a]);let{frequency:i,damping:o}=e;const{mass:s}=e;return V.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*s,e.friction=4*Math.PI*o*s/i),e}function yu(e,t){if(!V.und(t.decay))e.duration=void 0;else{const n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var bu=[],W1=class{constructor(){this.changed=!1,this.values=bu,this.toValues=null,this.fromValues=bu,this.config=new H1,this.immediate=!1}};function Gd(e,{key:t,props:n,defaultProps:i,state:o,actions:s}){return new Promise((a,c)=>{let u,l,f=br(n.cancel??i?.cancel,t);if(f)m();else{V.und(n.pause)||(o.paused=br(n.pause,t));let g=i?.pause;g!==!0&&(g=o.paused||br(g,t)),u=qe(n.delay||0,t),g?(o.resumeQueue.add(p),s.pause()):(s.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(l),l.cancel(),u=l.time-ne.now()}function p(){u>0&&!st.skipAnimation?(o.delayed=!0,l=ne.setTimeout(m,u),o.pauseQueue.add(d),o.timeouts.add(l)):m()}function m(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(l),e<=(o.cancelId||0)&&(f=!0);try{s.start({...n,callId:e,cancel:f},a)}catch(g){c(g)}}})}var oc=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?In(e.get()):t.every(n=>n.noop)?Xd(e.get()):ut(e.get(),t.every(n=>n.finished)),Xd=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ut=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),In=e=>({value:e,cancelled:!0,finished:!1});function Kd(e,t,n,i){const{callId:o,parentId:s,onRest:a}=t,{asyncTo:c,promise:u}=n;return!s&&e===c&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const l=Fo(t,(y,b)=>b==="onRest"?void 0:y);let f,d;const p=new Promise((y,b)=>(f=y,d=b)),m=y=>{const b=o<=(n.cancelId||0)&&In(i)||o!==n.asyncId&&ut(i,!1);if(b)throw y.result=b,d(y),y},g=(y,b)=>{const v=new xu,T=new vu;return(async()=>{if(st.skipAnimation)throw Lr(n),T.result=ut(i,!1),d(T),T;m(v);const O=V.obj(y)?{...y}:{...b,to:y};O.parentId=o,kt(l,(k,R)=>{V.und(O[R])&&(O[R]=k)});const w=await i.start(O);return m(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),w})()};let h;if(st.skipAnimation)return Lr(n),ut(i,!1);try{let y;V.arr(e)?y=(async b=>{for(const v of b)await g(v)})(e):y=Promise.resolve(e(g,i.stop.bind(i))),await Promise.all([y.then(f),p]),h=ut(i.get(),!0,!1)}catch(y){if(y instanceof xu)h=y.result;else if(y instanceof vu)h=y.result;else throw y}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?u:void 0)}return V.fun(a)&&ne.batchedUpdates(()=>{a(h,i,i.item)}),h})()}function Lr(e,t){gr(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xu=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.")}},vu=class extends Error{constructor(){super("SkipAnimationSignal")}},Qs=e=>e instanceof sc,Y1=1,sc=class extends Dd{constructor(){super(...arguments),this.id=Y1++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=yt(this);return e&&e.getValue()}to(...e){return st.to(this,e)}interpolate(...e){return A1(),st.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){Ir(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Io.sort(this),Ir(this,{type:"priority",parent:this,priority:e})}},yn=Symbol.for("SpringPhase"),Qd=1,Zs=2,Js=4,Os=e=>(e[yn]&Qd)>0,Ht=e=>(e[yn]&Zs)>0,cr=e=>(e[yn]&Js)>0,Ou=(e,t)=>t?e[yn]|=Zs|Qd:e[yn]&=~Zs,wu=(e,t)=>t?e[yn]|=Js:e[yn]&=~Js,G1=class extends sc{constructor(e,t){if(super(),this.animation=new W1,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,!V.und(e)||!V.und(t)){const n=V.obj(e)?{...e}:{...t,from:e};V.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ht(this)||this._state.asyncTo)||cr(this)}get goal(){return Fe(this.animation.to)}get velocity(){const e=yt(this);return e instanceof Zr?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Os(this)}get isAnimating(){return Ht(this)}get isPaused(){return cr(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const i=this.animation;let{toValues:o}=i;const{config:s}=i,a=Do(i.to);!a&&et(i.to)&&(o=je(Fe(i.to))),i.values.forEach((l,f)=>{if(l.done)return;const d=l.constructor==Nr?1:a?a[f].lastPosition:o[f];let p=i.immediate,m=d;if(!p){if(m=l.lastPosition,s.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const h=i.fromValues[f],y=l.v0!=null?l.v0:l.v0=V.arr(s.velocity)?s.velocity[f]:s.velocity;let b;const v=s.precision||(h==d?.005:Math.min(1,Math.abs(d-h)*.001));if(V.und(s.duration))if(s.decay){const T=s.decay===!0?.998:s.decay,O=Math.exp(-(1-T)*g);m=h+y/(1-T)*(1-O),p=Math.abs(l.lastPosition-m)<=v,b=y*O}else{b=l.lastVelocity==null?y:l.lastVelocity;const T=s.restVelocity||v/10,O=s.clamp?0:s.bounce,w=!V.und(O),k=h==d?l.v0>0:h<d;let R,N=!1;const $=1,D=Math.ceil(e/$);for(let E=0;E<D&&(R=Math.abs(b)>T,!(!R&&(p=Math.abs(d-m)<=v,p)));++E){w&&(N=m==d||m>d==k,N&&(b=-b*O,m=d));const x=-s.tension*1e-6*(m-d),P=-s.friction*.001*b,C=(x+P)/s.mass;b=b+C*$,m=m+b*$}}else{let T=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,l.durationProgress>0&&(l.elapsedTime=s.duration*l.durationProgress,g=l.elapsedTime+=e)),T=(s.progress||0)+g/this._memoizedDuration,T=T>1?1:T<0?0:T,l.durationProgress=T),m=h+s.easing(T)*(d-h),b=(m-l.lastPosition)/e,p=T==1}l.lastVelocity=b,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),p=!0)}a&&!a[f].done&&(p=!1),p?l.done=!0:t=!1,l.setValue(m,s.round)&&(n=!0)});const c=yt(this),u=c.getValue();if(t){const l=Fe(i.to);(u!==l||n)&&!s.decay?(c.setValue(l),this._onChange(l)):n&&s.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return ne.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ht(this)){const{to:e,config:t}=this.animation;ne.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 V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:{...t,to:e}],Promise.all(n.map(i=>this._update(i))).then(i=>oc(this,i))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Lr(this._state,e&&this._lastCallId),ne.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:i}=e;n=V.obj(n)?n[t]:n,(n==null||Gs(n))&&(n=void 0),i=V.obj(i)?i[t]:i,i==null&&(i=void 0);const o={to:n,from:i};return Os(this)||(e.reverse&&([n,i]=[i,n]),i=Fe(i),V.und(i)?yt(this)||this._set(n):this._set(i)),o}_update({...e},t){const{key:n,defaultProps:i}=this;e.default&&Object.assign(i,Fo(e,(a,c)=>/^on/.test(c)?Hd(a,n):a)),ku(this,e,"onProps"),ur(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 s=this._state;return Gd(++this._lastCallId,{key:n,props:e,defaultProps:i,state:s,actions:{pause:()=>{cr(this)||(wu(this,!0),hr(s.pauseQueue),ur(this,"onPause",ut(this,lr(this,this.animation.to)),this))},resume:()=>{cr(this)&&(wu(this,!1),Ht(this)&&this._resume(),hr(s.resumeQueue),ur(this,"onResume",ut(this,lr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const c=Zd(e);if(c)return this._update(c,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(In(this));const i=!V.und(e.to),o=!V.und(e.from);if(i||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(In(this));const{key:s,defaultProps:a,animation:c}=this,{to:u,from:l}=c;let{to:f=u,from:d=l}=e;o&&!i&&(!t.default||V.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);const p=!Mt(d,l);p&&(c.from=d),d=Fe(d);const m=!Mt(f,u);m&&this._focus(f);const g=Gs(t.to),{config:h}=c,{decay:y,velocity:b}=h;(i||o)&&(h.velocity=0),t.config&&!g&&B1(h,qe(t.config,s),t.config!==a.config?qe(a.config,s):void 0);let v=yt(this);if(!v||V.und(f))return n(ut(this,!0));const T=V.und(t.reset)?o&&!t.default:!V.und(d)&&br(t.reset,s),O=T?d:this.get(),w=Dr(f),k=V.num(w)||V.arr(w)||No(w),R=!g&&(!k||br(a.immediate||t.immediate,s));if(m){const E=Ys(f);if(E!==v.constructor)if(R)v=this._set(w);else throw Error(`Cannot animate between ${v.constructor.name} and ${E.name}, as the "to" prop suggests`)}const N=v.constructor;let $=et(f),D=!1;if(!$){const E=T||!Os(this)&&p;(m||E)&&(D=Mt(Dr(O),w),$=!D),(!Mt(c.immediate,R)&&!R||!Mt(h.decay,y)||!Mt(h.velocity,b))&&($=!0)}if(D&&Ht(this)&&(c.changed&&!T?$=!0:$||this._stop(u)),!g&&(($||et(u))&&(c.values=v.getPayload(),c.toValues=et(f)?null:N==Nr?[1]:je(w)),c.immediate!=R&&(c.immediate=R,!R&&!T&&this._set(u)),$)){const{onRest:E}=c;te(K1,P=>ku(this,t,P));const x=ut(this,lr(this,u));hr(this._pendingCalls,x),this._pendingCalls.add(n),c.changed&&ne.batchedUpdates(()=>{c.changed=!T,E?.(x,this),T?qe(a.onRest,x):c.onStart?.(x,this)})}T&&this._set(O),g?n(Kd(t.to,t,this._state,this)):$?this._start():Ht(this)&&!m?this._pendingCalls.add(n):n(Xd(O))}_focus(e){const t=this.animation;e!==t.to&&(du(this)&&this._detach(),t.to=e,du(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;et(t)&&(tr(t,this),Qs(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;et(e)&&$r(e,this)}_set(e,t=!0){const n=Fe(e);if(!V.und(n)){const i=yt(this);if(!i||!Mt(n,i.getValue())){const o=Ys(n);!i||i.constructor!=o?rc(this,o.create(n)):i.setValue(n),i&&ne.batchedUpdates(()=>{this._onChange(n,t)})}}return yt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ur(this,"onStart",ut(this,lr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),qe(this.animation.onChange,e,this)),qe(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;yt(this).reset(Fe(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ht(this)||(Ou(this,!0),cr(this)||this._resume())}_resume(){st.skipAnimation?this.finish():Io.start(this)}_stop(e,t){if(Ht(this)){Ou(this,!1);const n=this.animation;te(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ir(this,{type:"idle",parent:this});const i=t?In(this.get()):ut(this.get(),lr(this,e??n.to));hr(this._pendingCalls,i),n.changed&&(n.changed=!1,ur(this,"onRest",i,this))}}};function lr(e,t){const n=Dr(t),i=Dr(e.get());return Mt(i,n)}function Zd(e,t=e.loop,n=e.to){const i=qe(t);if(i){const o=i!==!0&&ic(i),s=(o||e).reverse,a=!o||o.reset;return Fr({...e,loop:t,default:!1,pause:void 0,to:!s||Gs(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Fr(e){const{to:t,from:n}=e=ic(e),i=new Set;return V.obj(t)&&Tu(t,i),V.obj(n)&&Tu(n,i),e.keys=i.size?Array.from(i):null,e}function X1(e){const t=Fr(e);return V.und(t.default)&&(t.default=Fo(t)),t}function Tu(e,t){kt(e,(n,i)=>n!=null&&t.add(i))}var K1=["onStart","onRest","onChange","onPause","onResume"];function ku(e,t,n){e.animation[n]=t[n]!==Bd(t,n)?Hd(t[n],e.key):void 0}function ur(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Q1=["onStart","onChange","onRest"],Z1=1,Jd=class{constructor(e,t){this.id=Z1++,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];V.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Fr(e)),this}start(e){let{queue:t}=this;return e?t=je(e).map(Fr):this.queue=[],this._flush?this._flush(this,t):(ip(this,t),ea(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;te(je(t),i=>n[i].stop(!!e))}else Lr(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(V.und(e))this.start({pause:!0});else{const t=this.springs;te(je(e),n=>t[n].pause())}return this}resume(e){if(V.und(e))this.start({pause:!1});else{const t=this.springs;te(je(e),n=>t[n].resume())}return this}each(e){kt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,gr(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const s=!i&&this._started,a=o||s&&n.size?this.get():null;o&&t.size&&gr(t,([c,u])=>{u.value=a,c(u,this,this._item)}),s&&(this._started=!1,gr(n,([c,u])=>{u.value=a,c(u,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;ne.onFrame(this._onFrame)}};function ea(e,t){return Promise.all(t.map(n=>ep(e,n))).then(n=>oc(e,n))}async function ep(e,t,n){const{keys:i,to:o,from:s,loop:a,onRest:c,onResolve:u}=t,l=V.obj(t.default)&&t.default;a&&(t.loop=!1),o===!1&&(t.to=null),s===!1&&(t.from=null);const f=V.arr(o)||V.fun(o)?o:void 0;f?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):te(Q1,h=>{const y=t[h];if(V.fun(y)){const b=e._events[h];t[h]=({finished:v,cancelled:T})=>{const O=b.get(y);O?(v||(O.finished=!1),T&&(O.cancelled=!0)):b.set(y,{value:null,finished:v||!1,cancelled:T||!1})},l&&(l[h]=t[h])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,hr(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(i||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),m=t.cancel===!0||Bd(t,"cancel")===!0;(f||m&&d.asyncId)&&p.push(Gd(++e._lastAsyncId,{props:t,state:d,actions:{pause:Hs,resume:Hs,start(h,y){m?(Lr(d,e._lastAsyncId),y(In(e))):(h.onRest=c,y(Kd(f,h,d,e)))}}})),d.paused&&await new Promise(h=>{d.resumeQueue.add(h)});const g=oc(e,await Promise.all(p));if(a&&g.finished&&!(n&&g.noop)){const h=Zd(t,a,o);if(h)return ip(e,[h]),ep(e,h,!0)}return u&&ne.batchedUpdates(()=>u(g,e,e.item)),g}function ta(e,t){const n={...e.springs};return t&&te(je(t),i=>{V.und(i.keys)&&(i=Fr(i)),V.obj(i.to)||(i={...i,to:void 0}),rp(n,i,o=>np(o))}),tp(e,n),n}function tp(e,t){kt(t,(n,i)=>{e.springs[i]||(e.springs[i]=n,tr(n,e))})}function np(e,t){const n=new G1;return n.key=e,t&&tr(n,t),n}function rp(e,t,n){t.keys&&te(t.keys,i=>{(e[i]||(e[i]=n(i)))._prepareNode(t)})}function ip(e,t){te(t,n=>{rp(e.springs,n,i=>np(i,e))})}var Jr=({children:e,...t})=>{const n=ae.useContext(Zi),i=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=_1(()=>({pause:i,immediate:o}),[i,o]);const{Provider:s}=Zi;return M.createElement(s,{value:t},e)},Zi=J1(Jr,{});Jr.Provider=Zi.Provider;Jr.Consumer=Zi.Consumer;function J1(e,t){return Object.assign(e,M.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var op=()=>{const e=[],t=function(i){P1();const o=[];return te(e,(s,a)=>{if(V.und(i))o.push(s.start());else{const c=n(i,s,a);c&&o.push(s.start(c))}}),o};t.current=e,t.add=function(i){e.includes(i)||e.push(i)},t.delete=function(i){const o=e.indexOf(i);~o&&e.splice(o,1)},t.pause=function(){return te(e,i=>i.pause(...arguments)),this},t.resume=function(){return te(e,i=>i.resume(...arguments)),this},t.set=function(i){te(e,(o,s)=>{const a=V.fun(i)?i(s,o):i;a&&o.set(a)})},t.start=function(i){const o=[];return te(e,(s,a)=>{if(V.und(i))o.push(s.start());else{const c=this._getProps(i,s,a);c&&o.push(s.start(c))}}),o},t.stop=function(){return te(e,i=>i.stop(...arguments)),this},t.update=function(i){return te(e,(o,s)=>o.update(this._getProps(i,o,s))),this};const n=function(i,o,s){return V.fun(i)?i(s,o):i};return t._getProps=n,t};function eO(e,t,n){const i=V.fun(t)&&t;i&&!n&&(n=[]);const o=ae.useMemo(()=>i||arguments.length==3?op():void 0,[]),s=ae.useRef(0),a=tc(),c=ae.useMemo(()=>({ctrls:[],queue:[],flush(b,v){const T=ta(b,v);return s.current>0&&!c.queue.length&&!Object.keys(T).some(w=>!b.springs[w])?ea(b,v):new Promise(w=>{tp(b,T),c.queue.push(()=>{w(ea(b,v))}),a()})}}),[]),u=ae.useRef([...c.ctrls]),l=[],f=Ws(e)||0;ae.useMemo(()=>{te(u.current.slice(e,f),b=>{Xs(b,o),b.stop(!0)}),u.current.length=e,d(f,e)},[e]),ae.useMemo(()=>{d(0,Math.min(f,e))},n);function d(b,v){for(let T=b;T<v;T++){const O=u.current[T]||(u.current[T]=new Jd(null,c.flush)),w=i?i(T,O):t[T];w&&(l[T]=X1(w))}}const p=u.current.map((b,v)=>ta(b,l[v])),m=ae.useContext(Jr),g=Ws(m),h=m!==g&&Wd(m);Yt(()=>{s.current++,c.ctrls=u.current;const{queue:b}=c;b.length&&(c.queue=[],te(b,v=>v())),te(u.current,(v,T)=>{o?.add(v),h&&v.start({default:m});const O=l[T];O&&(Yd(v,O.ref),v.ref?v.queue.push(O):v.start(O))})}),nc(()=>()=>{te(c.ctrls,b=>b.stop(!0))});const y=p.map(b=>({...b}));return o?[y,o]:y}function sp(e,t){const n=V.fun(e),[[i],o]=eO(1,n?e:[e],n?[]:t);return n||arguments.length==2?[i,o]:i}function en(e,t,n){const i=V.fun(t)&&t,{reset:o,sort:s,trail:a=0,expires:c=!0,exitBeforeEnter:u=!1,onDestroyed:l,ref:f,config:d}=i?i():t,p=ae.useMemo(()=>i||arguments.length==3?op():void 0,[]),m=je(e),g=[],h=ae.useRef(null),y=o?null:h.current;Yt(()=>{h.current=g}),nc(()=>(te(g,C=>{p?.add(C.ctrl),C.ctrl.ref=p}),()=>{te(h.current,C=>{C.expired&&clearTimeout(C.expirationId),Xs(C.ctrl,p),C.ctrl.stop(!0)})}));const b=nO(m,i?i():t,y),v=o&&h.current||[];Yt(()=>te(v,({ctrl:C,item:I,key:F})=>{Xs(C,p),qe(l,I,F)}));const T=[];if(y&&te(y,(C,I)=>{C.expired?(clearTimeout(C.expirationId),v.push(C)):(I=T[I]=b.indexOf(C.key),~I&&(g[I]=C))}),te(m,(C,I)=>{g[I]||(g[I]={key:b[I],item:C,phase:"mount",ctrl:new Jd},g[I].ctrl.item=C)}),T.length){let C=-1;const{leave:I}=i?i():t;te(T,(F,z)=>{const B=y[z];~F?(C=g.indexOf(B),g[C]={...B,item:m[F]}):I&&g.splice(++C,0,B)})}V.fun(s)&&g.sort((C,I)=>s(C.item,I.item));let O=-a;const w=tc(),k=Fo(t),R=new Map,N=ae.useRef(new Map),$=ae.useRef(!1);te(g,(C,I)=>{const F=C.key,z=C.phase,B=i?i():t;let ee,j;const U=qe(B.delay||0,F);if(z=="mount")ee=B.enter,j="enter";else{const Y=b.indexOf(F)<0;if(z!="leave")if(Y)ee=B.leave,j="leave";else if(ee=B.update)j="update";else return;else if(!Y)ee=B.enter,j="enter";else return}if(ee=qe(ee,C.item,I),ee=V.obj(ee)?ic(ee):{to:ee},!ee.config){const Y=d||k.config;ee.config=qe(Y,C.item,I,j)}O+=a;const W={...k,delay:U+O,ref:f,immediate:B.immediate,reset:!1,...ee};if(j=="enter"&&V.und(W.from)){const Y=i?i():t,Z=V.und(Y.initial)||y?Y.from:Y.initial;W.from=qe(Z,C.item,I)}const{onResolve:X}=W;W.onResolve=Y=>{qe(X,Y);const Z=h.current,Q=Z.find(J=>J.key===F);if(Q&&!(Y.cancelled&&Q.phase!="update")&&Q.ctrl.idle){const J=Z.every(q=>q.ctrl.idle);if(Q.phase=="leave"){const q=qe(c,Q.item);if(q!==!1){const H=q===!0?0:q;if(Q.expired=!0,!J&&H>0){H<=2147483647&&(Q.expirationId=setTimeout(w,H));return}}}J&&Z.some(q=>q.expired)&&(N.current.delete(Q),u&&($.current=!0),w())}};const G=ta(C.ctrl,W);j==="leave"&&u?N.current.set(C,{phase:j,springs:G,payload:W}):R.set(C,{phase:j,springs:G,payload:W})});const D=ae.useContext(Jr),E=Ws(D),x=D!==E&&Wd(D);Yt(()=>{x&&te(g,C=>{C.ctrl.start({default:D})})},[D]),te(R,(C,I)=>{if(N.current.size){const F=g.findIndex(z=>z.key===I.key);g.splice(F,1)}}),Yt(()=>{te(N.current.size?N.current:R,({phase:C,payload:I},F)=>{const{ctrl:z}=F;F.phase=C,p?.add(z),x&&C=="enter"&&z.start({default:D}),I&&(Yd(z,I.ref),(z.ref||p)&&!$.current?z.update(I):(z.start(I),$.current&&($.current=!1)))})},o?void 0:n);const P=C=>M.createElement(M.Fragment,null,g.map((I,F)=>{const{springs:z}=R.get(I)||I.ctrl,B=C({...z},I.item,I,F);return B&&B.type?M.createElement(B.type,{...B.props,key:V.str(I.key)||V.num(I.key)?I.key:I.ctrl.id,ref:B.ref}):B}));return p?[P,p]:P}var tO=1;function nO(e,{key:t,keys:n=t},i){if(n===null){const o=new Set;return e.map(s=>{const a=i&&i.find(c=>c.item===s&&c.phase!=="leave"&&!o.has(c));return a?(o.add(a),a.key):tO++})}return V.und(n)?e:V.fun(n)?e.map(n):je(n)}var ap=class extends sc{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Er(...t);const n=this._get(),i=Ys(n);rc(this,i.create(n))}advance(e){const t=this._get(),n=this.get();Mt(t,n)||(yt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Cu(this._active)&&ws(this)}_get(){const e=V.arr(this.source)?this.source.map(Fe):je(Fe(this.source));return this.calc(...e)}_start(){this.idle&&!Cu(this._active)&&(this.idle=!1,te(Do(this),e=>{e.done=!1}),st.skipAnimation?(ne.batchedUpdates(()=>this.advance()),ws(this)):Io.start(this))}_attach(){let e=1;te(je(this.source),t=>{et(t)&&tr(t,this),Qs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){te(je(this.source),e=>{et(e)&&$r(e,this)}),this._active.clear(),ws(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=je(this.source).reduce((t,n)=>Math.max(t,(Qs(n)?n.priority:0)+1),0))}};function rO(e){return e.idle!==!1}function Cu(e){return!e.size||Array.from(e).every(rO)}function ws(e){e.idle||(e.idle=!0,te(Do(e),t=>{t.done=!0}),Ir(e,{type:"idle",parent:e}))}var Vn=(e,...t)=>new ap(e,t);st.assign({createStringInterpolator:qd,to:(e,t)=>new ap(e,t)});var cp=/^--/;function iO(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!cp.test(e)&&!(xr.hasOwnProperty(e)&&xr[e])?t+"px":(""+t).trim()}var Au={};function oO(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:i,style:o,children:s,scrollTop:a,scrollLeft:c,viewBox:u,...l}=t,f=Object.values(l),d=Object.keys(l).map(p=>n||e.hasAttribute(p)?p:Au[p]||(Au[p]=p.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));s!==void 0&&(e.textContent=s);for(const p in o)if(o.hasOwnProperty(p)){const m=iO(p,o[p]);cp.test(p)?e.style.setProperty(p,m):e.style[p]=m}d.forEach((p,m)=>{e.setAttribute(p,f[m])}),i!==void 0&&(e.className=i),a!==void 0&&(e.scrollTop=a),c!==void 0&&(e.scrollLeft=c),u!==void 0&&e.setAttribute("viewBox",u)}var xr={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},sO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),aO=["Webkit","Ms","Moz","O"];xr=Object.keys(xr).reduce((e,t)=>(aO.forEach(n=>e[sO(n,t)]=e[t]),e),xr);var cO=/^(matrix|translate|scale|rotate|skew)/,lO=/^(translate)/,uO=/^(rotate|skew)/,Ts=(e,t)=>V.num(e)&&e!==0?e+t:e,_i=(e,t)=>V.arr(e)?e.every(n=>_i(n,t)):V.num(e)?e===t:parseFloat(e)===t,fO=class extends Lo{constructor({x:e,y:t,z:n,...i}){const o=[],s=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),s.push(a=>[`translate3d(${a.map(c=>Ts(c,"px")).join(",")})`,_i(a,0)])),kt(i,(a,c)=>{if(c==="transform")o.push([a||""]),s.push(u=>[u,u===""]);else if(cO.test(c)){if(delete i[c],V.und(a))return;const u=lO.test(c)?"px":uO.test(c)?"deg":"";o.push(je(a)),s.push(c==="rotate3d"?([l,f,d,p])=>[`rotate3d(${l},${f},${d},${Ts(p,u)})`,_i(p,0)]:l=>[`${c}(${l.map(f=>Ts(f,u)).join(",")})`,_i(l,c.startsWith("scale")?1:0)])}}),o.length&&(i.transform=new dO(o,s)),super(i)}},dO=class extends Dd{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 te(this.inputs,(n,i)=>{const o=Fe(n[0]),[s,a]=this.transforms[i](V.arr(o)?o:n.map(Fe));e+=" "+s,t=t&&a}),t?"none":e}observerAdded(e){e==1&&te(this.inputs,t=>te(t,n=>et(n)&&tr(n,this)))}observerRemoved(e){e==0&&te(this.inputs,t=>te(t,n=>et(n)&&$r(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ir(this,e)}},pO=["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"];st.assign({batchedUpdates:Xu.unstable_batchedUpdates,createStringInterpolator:qd,colors:s1});var hO=L1(pO,{applyAnimatedValues:oO,createAnimatedStyle:e=>new fO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Rt=hO.animated;function mO(e){const t=M.useRef({currentPath:e,previousPath:void 0});return t.current.currentPath!==e&&(t.current={currentPath:e,previousPath:t.current.currentPath}),t.current}const lp=e=>{const t=mO(e);return M.useMemo(()=>t.previousPath?ed(t.previousPath,t.currentPath):()=>t.currentPath,[t.currentPath,t.previousPath])};function up(e){return e.replace(" ","_")}function ac(){const{chartId:e}=M.useContext(Qn);return M.useMemo(()=>e,[e])}function Hn(e){return gn(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function cc(){const{isInitialized:e,data:t}=M.useContext(Ua);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
|
|
47
|
-
`));
|
|
48
|
-
`));return e||n.skipAnimation}const kO=["slots","slotProps","onItemClick","skipAnimation"],CO=()=>{const e=Ro(),t=De();return M.useMemo(()=>{if(e===void 0)return[];const{series:i,stackingGroups:o}=e,{xAxis:s,yAxis:a,xAxisIds:c,yAxisIds:u}=t,l=c[0],f=u[0];return o.flatMap(({ids:d})=>[...d].reverse().map(p=>{const{xAxisId:m,yAxisId:g,xAxisKey:h=l,yAxisKey:y=f,stackedData:b,data:v,connectNulls:T,baseline:O}=i[p],w=m??h,k=g??y,R=Hn(s[w].scale),N=a[k].scale,$=s[w].data,D=a[k].colorScale&&[k,"y"]||s[w].colorScale&&[w,"x"]||void 0;if(process.env.NODE_ENV!=="production"){if($===void 0)throw new Error(`MUI X: ${w===zt?"The first `xAxis`":`The x-axis with id "${w}"`} should have data property to be able to display a line plot.`);if($.length<b.length)throw new Error(`MUI X: The data length of the x axis (${$.length} items) is lower than the length of series (${b.length} items).`)}const E=By().x(F=>R(F.x)).defined((F,z)=>T||v[z]!=null).y0(F=>{if(typeof O=="number")return N(O);if(O==="max")return N.range()[1];if(O==="min")return N.range()[0];const z=F.y&&N(F.y[0]);return Number.isNaN(z)?N.range()[0]:z}).y1(F=>F.y&&N(F.y[1])),x=hp(i[p].curve),P=$?.map((F,z)=>({x:F,y:b[z]}))??[],C=T?P.filter((F,z)=>v[z]!=null):P,I=E.curve(x)(C)||"";return S({},i[p],{gradientUsed:D,d:I,seriesId:p})}))},[e,t])};function mp(e){const{slots:t,slotProps:n,onItemClick:i,skipAnimation:o}=e,s=ie(e,kO),a=ei(o),c=lc(),u=CO();return A.jsx("g",S({},s,{children:u.map(({d:l,seriesId:f,color:d,area:p,gradientUsed:m})=>!!p&&A.jsx(pp,{id:f,d:l,color:d,gradientId:m&&c(...m),slots:t,slotProps:n,onClick:i&&(g=>i(g,{type:"line",seriesId:f})),skipAnimation:a},f))}))}process.env.NODE_ENV!=="production"&&(mp.propTypes={onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const AO=["d","skipAnimation","ownerState"],SO=ye(Rt.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.gradientId&&`url(#${e.gradientId})`||e.isHighlighted&&Nt(e.color).brighter(.5).formatHex()||e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));function gp(e){const{d:t,skipAnimation:n,ownerState:i}=e,o=ie(e,AO),s=lp(t),a=en([s],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return A.jsx(fp,{skipAnimation:n,id:`${i.id}-line-clip`,children:a((c,u)=>A.jsx(SO,S({},o,{ownerState:i,d:c.value.to(u)})))})}process.env.NODE_ENV!=="production"&&(gp.propTypes={d:r.string.isRequired,ownerState:r.shape({classes:r.object,color:r.string.isRequired,gradientId:r.string,id:r.oneOfType([r.number,r.string]).isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired}).isRequired,skipAnimation:r.bool});const PO=["id","classes","color","gradientId","slots","slotProps","onClick"];function RO(e){return Re("MuiLineElement",e)}Ne("MuiLineElement",["root","highlighted","faded"]);const _O=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,RO,t)};function yp(e){const{id:t,classes:n,color:i,gradientId:o,slots:s,slotProps:a,onClick:c}=e,u=ie(e,PO),l=er(),{isFaded:f,isHighlighted:d}=Jn({seriesId:t}),p={id:t,classes:n,color:i,gradientId:o,isFaded:f,isHighlighted:d},m=_O(p),g=s?.line??gp,h=ze({elementType:g,externalSlotProps:a?.line,additionalProps:S({},l({type:"line",seriesId:t}),{onClick:c,cursor:c?"pointer":"unset"}),className:m.root,ownerState:p});return A.jsx(g,S({},u,h))}process.env.NODE_ENV!=="production"&&(yp.propTypes={classes:r.object,color:r.string.isRequired,d:r.string.isRequired,gradientId:r.string,id:r.oneOfType([r.number,r.string]).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const EO=["slots","slotProps","skipAnimation","onItemClick"],MO=()=>{const e=Ro(),t=De();return M.useMemo(()=>{if(e===void 0)return[];const{series:i,stackingGroups:o}=e,{xAxis:s,yAxis:a,xAxisIds:c,yAxisIds:u}=t,l=c[0],f=u[0];return o.flatMap(({ids:d})=>d.flatMap(p=>{const{xAxisId:m,yAxisId:g,xAxisKey:h=l,yAxisKey:y=f,stackedData:b,data:v,connectNulls:T}=i[p],O=m??h,w=g??y,k=Hn(s[O].scale),R=a[w].scale,N=s[O].data,$=a[w].colorScale&&[w,"y"]||s[O].colorScale&&[O,"x"]||void 0;if(process.env.NODE_ENV!=="production"){if(N===void 0)throw new Error(`MUI X: ${O===zt?"The first `xAxis`":`The x-axis with id "${O}"`} should have data property to be able to display a line plot.`);if(N.length<b.length)throw new Error(`MUI X: The data length of the x axis (${N.length} items) is lower than the length of series (${b.length} items).`)}const D=Nf().x(C=>k(C.x)).defined((C,I)=>T||v[I]!=null).y(C=>R(C.y[1])),E=N?.map((C,I)=>({x:C,y:b[I]}))??[],x=T?E.filter((C,I)=>v[I]!=null):E,P=D.curve(hp(i[p].curve))(x)||"";return S({},i[p],{gradientUsed:$,d:P,seriesId:p})}))},[e,t])};function bp(e){const{slots:t,slotProps:n,skipAnimation:i,onItemClick:o}=e,s=ie(e,EO),a=ei(i),c=lc(),u=MO();return A.jsx("g",S({},s,{children:u.map(({d:l,seriesId:f,color:d,gradientUsed:p})=>A.jsx(yp,{id:f,d:l,color:d,gradientId:p&&c(...p),skipAnimation:a,slots:t,slotProps:n,onClick:o&&(m=>o(m,{type:"line",seriesId:f}))},f))}))}process.env.NODE_ENV!=="production"&&(bp.propTypes={onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});function IO(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function Pn(e){return e instanceof Date?e.getTime():e}const $O=e=>{const t=cc(),n=We(),{xAxis:i,yAxis:o,xAxisIds:s,yAxisIds:a}=De(),{dispatch:c}=M.useContext(Pt),u=s[0],l=a[0],f=M.useRef({isInChart:!1,x:-1,y:-1});M.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function p(y,b){const{scale:v,data:T,reverse:O}=y;if(!gn(v)){const k=v.invert(b);if(T===void 0)return{value:k,index:-1};const R=Pn(k),N=T?.findIndex(($,D)=>{const E=Pn($);return E>R&&(D===0||Math.abs(R-E)<=Math.abs(R-Pn(T[D-1])))||E<=R&&(D===T.length-1||Math.abs(Pn(k)-E)<Math.abs(Pn(k)-Pn(T[D+1])))});return{value:N!==void 0&&N>=0?T[N]:k,index:N}}const w=v.bandwidth()===0?Math.floor((b-Math.min(...v.range())+v.step()/2)/v.step()):Math.floor((b-Math.min(...v.range()))/v.step());if(w<0||w>=T.length)return null;if(O){const k=T.length-1-w;return{index:k,value:T[k]}}return{index:w,value:T[w]}}const m=()=>{f.current={isInChart:!1,x:-1,y:-1},c({type:"exitChart"})},g=y=>{const b="targetTouches"in y?y.targetTouches[0]:y,v=IO(d,b);if(f.current.x=v.x,f.current.y=v.y,!n.isPointInside(v,{targetElement:y.target})){f.current.isInChart&&(c({type:"exitChart"}),f.current.isInChart=!1);return}f.current.isInChart=!0;const T=p(i[u],v.x),O=p(o[l],v.y);c({type:"updateAxis",data:{x:T,y:O}})},h=y=>{const b=y.currentTarget;b&&b.hasPointerCapture(y.pointerId)&&b.releasePointerCapture(y.pointerId)};return d.addEventListener("pointerdown",h),d.addEventListener("pointermove",g),d.addEventListener("pointerout",m),d.addEventListener("pointercancel",m),d.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerdown",h),d.removeEventListener("pointermove",g),d.removeEventListener("pointerout",m),d.removeEventListener("pointercancel",m),d.removeEventListener("pointerleave",m)}},[t,c,l,o,u,i,e,n])},jO=["children","width","height","viewBox","disableAxisListener","className","title","desc"],NO=ye("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),xp=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiChartsSurface"}),{children:o,width:s,height:a,viewBox:c,disableAxisListener:u=!1,className:l,title:f,desc:d}=i,p=ie(i,jO),m=S({width:s,height:a,x:0,y:0},c);return $O(u),A.jsxs(NO,S({width:s,height:a,viewBox:`${m.x} ${m.y} ${m.width} ${m.height}`,ref:n,className:l},p,{children:[A.jsx("title",{children:f}),A.jsx("desc",{children:d}),o]}))});process.env.NODE_ENV!=="production"&&(xp.propTypes={children:r.node,className:r.string,desc:r.string,disableAxisListener:r.bool,height:r.number.isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number.isRequired});const Ru=(e,t,n)=>{const i=n==="x"?zt:qa;return[...e?.map((o,s)=>S({id:`defaultized-${n}-axis-${s}`},o))??[],...e===void 0||e.findIndex(({id:o})=>o===i)===-1?[{id:i,scaleType:"linear"}]:[]].map(o=>{const s=o.dataKey;if(s===void 0||o.data!==void 0)return o;if(t===void 0)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return S({},o,{data:t.map(a=>a[s])})})},DO=(e,t,n)=>{const i=M.useMemo(()=>Ru(e,n,"x"),[e,n]),o=M.useMemo(()=>Ru(t,n,"y"),[t,n]);return[i,o]},LO=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"],FO=(e,t)=>{const{width:n,height:i,series:o,margin:s,xAxis:a,yAxis:c,zAxis:u,colors:l,dataset:f,sx:d,title:p,desc:m,disableAxisListener:g,highlightedItem:h,onHighlightChange:y,plugins:b,children:v,skipAnimation:T}=e,O=ie(e,LO),w=M.useRef(null),k=_r(t,w),[R,N]=DO(a,c,f),$={width:n,height:i,margin:s,svgRef:w},D={skipAnimation:T},E={plugins:b},x={series:o,colors:l,dataset:f},P={xAxis:R,yAxis:N,dataset:f},C={zAxis:u,dataset:f},I={highlightedItem:h,onHighlightChange:y},F=S({},O,{width:n,height:i,ref:k,sx:d,title:p,desc:m,disableAxisListener:g});return{children:v,drawingProviderProps:$,seriesProviderProps:x,cartesianProviderProps:P,zAxisContextProps:C,highlightedProviderProps:I,chartsSurfaceProps:F,pluginProviderProps:E,animationProviderProps:D,xAxis:R,yAxis:N}},vp=M.forwardRef(function(t,n){const{children:i,drawingProviderProps:o,seriesProviderProps:s,cartesianProviderProps:a,zAxisContextProps:c,highlightedProviderProps:u,chartsSurfaceProps:l,pluginProviderProps:f,animationProviderProps:d}=FO(t,n);return A.jsx(sv,S({},o,{children:A.jsx(Iv,S({},f,{children:A.jsx(Dv,S({},s,{children:A.jsx(qv,S({},a,{children:A.jsx(Sd,S({},c,{children:A.jsx(Yv,{children:A.jsx(Ad,S({},u,{children:A.jsxs(xp,S({},l,{children:[A.jsx(wO,{}),A.jsx(TO,S({},d,{children:i}))]}))}))})}))}))}))}))}))});process.env.NODE_ENV!=="production"&&(vp.propTypes={children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,height:r.number.isRequired,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onHighlightChange:r.func,plugins:r.arrayOf(r.object),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number.isRequired,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),zAxis:r.arrayOf(r.shape({colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,id:r.string,max:r.number,min:r.number}))});const qO=ye("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}));function na(e){return e&&e.ownerDocument||document}function UO(e){return na(e).defaultView||window}const zO=(e,t,n)=>{const i=M.useRef({displayError:!1,initialCompute:!0,computeRun:0}),o=M.useRef(null),[s,a]=M.useState(0),[c,u]=M.useState(0),l=M.useCallback(()=>{const f=o?.current;if(!f)return{};const p=UO(f).getComputedStyle(f),m=Math.floor(parseFloat(p.height))||0,g=Math.floor(parseFloat(p.width))||0;return a(g),u(m),{width:g,height:m}},[]);return M.useEffect(()=>{i.current.displayError=!0},[]),Qt(()=>{if(!n||!i.current.initialCompute||i.current.computeRun>20)return;const f=l();f.width!==s||f.height!==c?i.current.computeRun+=1:i.current.initialCompute&&(i.current.initialCompute=!1)},[s,c,l,n]),Qt(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const f=o.current;if(typeof ResizeObserver>"u")return()=>{};let d;const p=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{l()})});return f&&p.observe(f),()=>{d&&cancelAnimationFrame(d),f&&p.unobserve(f)}},[l,t,e]),process.env.NODE_ENV!=="production"&&(i.current.displayError&&e===void 0&&s===0&&(console.error("MUI X: ChartContainer does not have `width` prop, and its container has no `width` defined."),i.current.displayError=!1),i.current.displayError&&t===void 0&&c===0&&(console.error("MUI X: ChartContainer does not have `height` prop, and its container has no `height` defined."),i.current.displayError=!1)),{containerRef:o,width:e??s,height:t??c}},VO=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],HO=(e,t)=>{const{width:n,height:i,resolveSizeBeforeRender:o,margin:s,children:a,series:c,colors:u,dataset:l,desc:f,disableAxisListener:d,highlightedItem:p,onHighlightChange:m,plugins:g,sx:h,title:y,viewBox:b,xAxis:v,yAxis:T,zAxis:O,skipAnimation:w}=e,k=ie(e,VO),{containerRef:R,width:N,height:$}=zO(n,i,o),D=S({},k,{ownerState:{width:n,height:i},ref:R});return{hasIntrinsicSize:N&&$,chartContainerProps:{margin:s,children:a,series:c,colors:u,dataset:l,desc:f,disableAxisListener:d,highlightedItem:p,onHighlightChange:m,plugins:g,sx:h,title:y,viewBox:b,xAxis:v,yAxis:T,zAxis:O,skipAnimation:w,width:N,height:$,ref:t},resizableChartContainerProps:D}},qo=M.forwardRef(function(t,n){const{hasIntrinsicSize:i,chartContainerProps:o,resizableChartContainerProps:s}=HO(t,n);return A.jsx(qO,S({},s,{children:i?A.jsx(vp,S({},o)):null}))});process.env.NODE_ENV!=="production"&&(qo.propTypes={children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onHighlightChange:r.func,plugins:r.arrayOf(r.object),resolveSizeBeforeRender:r.bool,series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),zAxis:r.arrayOf(r.shape({colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,id:r.string,max:r.number,min:r.number}))});function BO(e){return Re("MuiMarkElement",e)}Ne("MuiMarkElement",["root","highlighted","faded"]);const Op=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,BO,t)},WO=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function wp(e){const{x:t,y:n,id:i,classes:o,color:s,dataIndex:a,onClick:c,skipAnimation:u,shape:l}=e,f=ie(e,WO);l!=="circle"&&Po([`MUI X: The mark element of your line chart have shape "${l}" which is not supported when using \`experimentalRendering=true\`.`,'Only "circle" are supported with `experimentalRendering`.'].join(`
|
|
49
|
-
`)
|
|
50
|
-
`).map(i=>
|
|
51
|
-
`)
|
|
52
|
-
`));
|
|
53
|
-
`));if(g!==null&&!l[g])throw new Error([`MUI X: id used for right axis "${g}" is not defined.`,`Available ids are: ${f.join(", ")}.`].join(`
|
|
54
|
-
`));if(p!==null&&!c[p])throw new Error([`MUI X: id used for bottom axis "${p}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(`
|
|
55
|
-
`));const h=gi(t,s,a),y=gi(o,s,a),b=gi(n,s,a),v=gi(i,s,a);return A.jsxs(M.Fragment,{children:[m&&A.jsx(ra,S({},h,{position:"top",axisId:m})),p&&A.jsx(ra,S({},y,{position:"bottom",axisId:p})),d&&A.jsx(ia,S({},b,{position:"left",axisId:d})),g&&A.jsx(ia,S({},v,{position:"right",axisId:g}))]})}process.env.NODE_ENV!=="production"&&(Uo.propTypes={bottomAxis:r.oneOfType([r.object,r.string]),leftAxis:r.oneOfType([r.object,r.string]),rightAxis:r.oneOfType([r.object,r.string]),slotProps:r.object,slots:r.object,topAxis:r.oneOfType([r.object,r.string])});var Ve="top",at="bottom",ct="right",He="left",dc="auto",ti=[Ve,at,ct,He],Wn="start",Ur="end",bw="clippingParents",_p="viewport",fr="popper",xw="reference",Iu=ti.reduce(function(e,t){return e.concat([t+"-"+Wn,t+"-"+Ur])},[]),Ep=[].concat(ti,[dc]).reduce(function(e,t){return e.concat([t,t+"-"+Wn,t+"-"+Ur])},[]),vw="beforeRead",Ow="read",ww="afterRead",Tw="beforeMain",kw="main",Cw="afterMain",Aw="beforeWrite",Sw="write",Pw="afterWrite",Rw=[vw,Ow,ww,Tw,kw,Cw,Aw,Sw,Pw];function Ct(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bn(e){var t=Ke(e).Element;return e instanceof t||e instanceof Element}function ot(e){var t=Ke(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pc(e){if(typeof ShadowRoot>"u")return!1;var t=Ke(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _w(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!ot(s)||!Ct(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(a){var c=o[a];c===!1?s.removeAttribute(a):s.setAttribute(a,c===!0?"":c)}))})}function Ew(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(i){var o=t.elements[i],s=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),c=a.reduce(function(u,l){return u[l]="",u},{});!ot(o)||!Ct(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const Mw={name:"applyStyles",enabled:!0,phase:"write",fn:_w,effect:Ew,requires:["computeStyles"]};function Tt(e){return e.split("-")[0]}var mn=Math.max,Ji=Math.min,Yn=Math.round;function oa(){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 Mp(){return!/^((?!chrome|android).)*safari/i.test(oa())}function Gn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&ot(e)&&(o=e.offsetWidth>0&&Yn(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Yn(i.height)/e.offsetHeight||1);var a=bn(e)?Ke(e):window,c=a.visualViewport,u=!Mp()&&n,l=(i.left+(u&&c?c.offsetLeft:0))/o,f=(i.top+(u&&c?c.offsetTop:0))/s,d=i.width/o,p=i.height/s;return{width:d,height:p,top:f,right:l+d,bottom:f+p,left:l,x:l,y:f}}function hc(e){var t=Gn(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ip(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pc(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function qt(e){return Ke(e).getComputedStyle(e)}function Iw(e){return["table","td","th"].indexOf(Ct(e))>=0}function rn(e){return((bn(e)?e.ownerDocument:e.document)||window.document).documentElement}function zo(e){return Ct(e)==="html"?e:e.assignedSlot||e.parentNode||(pc(e)?e.host:null)||rn(e)}function $u(e){return!ot(e)||qt(e).position==="fixed"?null:e.offsetParent}function $w(e){var t=/firefox/i.test(oa()),n=/Trident/i.test(oa());if(n&&ot(e)){var i=qt(e);if(i.position==="fixed")return null}var o=zo(e);for(pc(o)&&(o=o.host);ot(o)&&["html","body"].indexOf(Ct(o))<0;){var s=qt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ni(e){for(var t=Ke(e),n=$u(e);n&&Iw(n)&&qt(n).position==="static";)n=$u(n);return n&&(Ct(n)==="html"||Ct(n)==="body"&&qt(n).position==="static")?t:n||$w(e)||t}function mc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vr(e,t,n){return mn(e,Ji(t,n))}function jw(e,t,n){var i=vr(e,t,n);return i>n?n:i}function $p(){return{top:0,right:0,bottom:0,left:0}}function jp(e){return Object.assign({},$p(),e)}function Np(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Nw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jp(typeof t!="number"?t:Np(t,ti))};function Dw(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Tt(n.placement),u=mc(c),l=[He,ct].indexOf(c)>=0,f=l?"height":"width";if(!(!s||!a)){var d=Nw(o.padding,n),p=hc(s),m=u==="y"?Ve:He,g=u==="y"?at:ct,h=n.rects.reference[f]+n.rects.reference[u]-a[u]-n.rects.popper[f],y=a[u]-n.rects.reference[u],b=ni(s),v=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,T=h/2-y/2,O=d[m],w=v-p[f]-d[g],k=v/2-p[f]/2+T,R=vr(O,k,w),N=u;n.modifiersData[i]=(t={},t[N]=R,t.centerOffset=R-k,t)}}function Lw(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ip(t.elements.popper,o)&&(t.elements.arrow=o))}const Fw={name:"arrow",enabled:!0,phase:"main",fn:Dw,effect:Lw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xn(e){return e.split("-")[1]}var qw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Uw(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Yn(n*o)/o||0,y:Yn(i*o)/o||0}}function ju(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,m=p===void 0?0:p,g=a.y,h=g===void 0?0:g,y=typeof f=="function"?f({x:m,y:h}):{x:m,y:h};m=y.x,h=y.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),T=He,O=Ve,w=window;if(l){var k=ni(n),R="clientHeight",N="clientWidth";if(k===Ke(n)&&(k=rn(n),qt(k).position!=="static"&&c==="absolute"&&(R="scrollHeight",N="scrollWidth")),k=k,o===Ve||(o===He||o===ct)&&s===Ur){O=at;var $=d&&k===w&&w.visualViewport?w.visualViewport.height:k[R];h-=$-i.height,h*=u?1:-1}if(o===He||(o===Ve||o===at)&&s===Ur){T=ct;var D=d&&k===w&&w.visualViewport?w.visualViewport.width:k[N];m-=D-i.width,m*=u?1:-1}}var E=Object.assign({position:c},l&&qw),x=f===!0?Uw({x:m,y:h},Ke(n)):{x:m,y:h};if(m=x.x,h=x.y,u){var P;return Object.assign({},E,(P={},P[O]=v?"0":"",P[T]=b?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",P))}return Object.assign({},E,(t={},t[O]=v?h+"px":"",t[T]=b?m+"px":"",t.transform="",t))}function zw(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,a=s===void 0?!0:s,c=n.roundOffsets,u=c===void 0?!0:c,l={placement:Tt(t.placement),variation:Xn(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,ju(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ju(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zw,data:{}};var yi={passive:!0};function Hw(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,a=i.resize,c=a===void 0?!0:a,u=Ke(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach(function(f){f.addEventListener("scroll",n.update,yi)}),c&&u.addEventListener("resize",n.update,yi),function(){s&&l.forEach(function(f){f.removeEventListener("scroll",n.update,yi)}),c&&u.removeEventListener("resize",n.update,yi)}}const Bw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hw,data:{}};var Ww={left:"right",right:"left",bottom:"top",top:"bottom"};function Ei(e){return e.replace(/left|right|bottom|top/g,function(t){return Ww[t]})}var Yw={start:"end",end:"start"};function Nu(e){return e.replace(/start|end/g,function(t){return Yw[t]})}function gc(e){var t=Ke(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function yc(e){return Gn(rn(e)).left+gc(e).scrollLeft}function Gw(e,t){var n=Ke(e),i=rn(e),o=n.visualViewport,s=i.clientWidth,a=i.clientHeight,c=0,u=0;if(o){s=o.width,a=o.height;var l=Mp();(l||!l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:c+yc(e),y:u}}function Xw(e){var t,n=rn(e),i=gc(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=mn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-i.scrollLeft+yc(e),u=-i.scrollTop;return qt(o||n).direction==="rtl"&&(c+=mn(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:c,y:u}}function bc(e){var t=qt(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Dp(e){return["html","body","#document"].indexOf(Ct(e))>=0?e.ownerDocument.body:ot(e)&&bc(e)?e:Dp(zo(e))}function Or(e,t){var n;t===void 0&&(t=[]);var i=Dp(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Ke(i),a=o?[s].concat(s.visualViewport||[],bc(i)?i:[]):i,c=t.concat(a);return o?c:c.concat(Or(zo(a)))}function sa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kw(e,t){var n=Gn(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 Du(e,t,n){return t===_p?sa(Gw(e,n)):bn(t)?Kw(t,n):sa(Xw(rn(e)))}function Qw(e){var t=Or(zo(e)),n=["absolute","fixed"].indexOf(qt(e).position)>=0,i=n&&ot(e)?ni(e):e;return bn(i)?t.filter(function(o){return bn(o)&&Ip(o,i)&&Ct(o)!=="body"}):[]}function Zw(e,t,n,i){var o=t==="clippingParents"?Qw(e):[].concat(t),s=[].concat(o,[n]),a=s[0],c=s.reduce(function(u,l){var f=Du(e,l,i);return u.top=mn(f.top,u.top),u.right=Ji(f.right,u.right),u.bottom=Ji(f.bottom,u.bottom),u.left=mn(f.left,u.left),u},Du(e,a,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Lp(e){var t=e.reference,n=e.element,i=e.placement,o=i?Tt(i):null,s=i?Xn(i):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case Ve:u={x:a,y:t.y-n.height};break;case at:u={x:a,y:t.y+t.height};break;case ct:u={x:t.x+t.width,y:c};break;case He:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var l=o?mc(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(s){case Wn:u[l]=u[l]-(t[f]/2-n[f]/2);break;case Ur:u[l]=u[l]+(t[f]/2-n[f]/2);break}}return u}function zr(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,a=s===void 0?e.strategy:s,c=n.boundary,u=c===void 0?bw:c,l=n.rootBoundary,f=l===void 0?_p:l,d=n.elementContext,p=d===void 0?fr:d,m=n.altBoundary,g=m===void 0?!1:m,h=n.padding,y=h===void 0?0:h,b=jp(typeof y!="number"?y:Np(y,ti)),v=p===fr?xw:fr,T=e.rects.popper,O=e.elements[g?v:p],w=Zw(bn(O)?O:O.contextElement||rn(e.elements.popper),u,f,a),k=Gn(e.elements.reference),R=Lp({reference:k,element:T,placement:o}),N=sa(Object.assign({},T,R)),$=p===fr?N:k,D={top:w.top-$.top+b.top,bottom:$.bottom-w.bottom+b.bottom,left:w.left-$.left+b.left,right:$.right-w.right+b.right},E=e.modifiersData.offset;if(p===fr&&E){var x=E[o];Object.keys(D).forEach(function(P){var C=[ct,at].indexOf(P)>=0?1:-1,I=[Ve,at].indexOf(P)>=0?"y":"x";D[P]+=x[I]*C})}return D}function Jw(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?Ep:u,f=Xn(i),d=f?c?Iu:Iu.filter(function(g){return Xn(g)===f}):ti,p=d.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=d);var m=p.reduce(function(g,h){return g[h]=zr(e,{placement:h,boundary:o,rootBoundary:s,padding:a})[Tt(h)],g},{});return Object.keys(m).sort(function(g,h){return m[g]-m[h]})}function eT(e){if(Tt(e)===dc)return[];var t=Ei(e);return[Nu(e),t,Nu(t)]}function tT(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,l=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,h=n.allowedAutoPlacements,y=t.options.placement,b=Tt(y),v=b===y,T=u||(v||!g?[Ei(y)]:eT(y)),O=[y].concat(T).reduce(function(G,Y){return G.concat(Tt(Y)===dc?Jw(t,{placement:Y,boundary:f,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:h}):Y)},[]),w=t.rects.reference,k=t.rects.popper,R=new Map,N=!0,$=O[0],D=0;D<O.length;D++){var E=O[D],x=Tt(E),P=Xn(E)===Wn,C=[Ve,at].indexOf(x)>=0,I=C?"width":"height",F=zr(t,{placement:E,boundary:f,rootBoundary:d,altBoundary:p,padding:l}),z=C?P?ct:He:P?at:Ve;w[I]>k[I]&&(z=Ei(z));var B=Ei(z),ee=[];if(s&&ee.push(F[x]<=0),c&&ee.push(F[z]<=0,F[B]<=0),ee.every(function(G){return G})){$=E,N=!1;break}R.set(E,ee)}if(N)for(var j=g?3:1,U=function(Y){var Z=O.find(function(Q){var J=R.get(Q);if(J)return J.slice(0,Y).every(function(q){return q})});if(Z)return $=Z,"break"},W=j;W>0;W--){var X=U(W);if(X==="break")break}t.placement!==$&&(t.modifiersData[i]._skip=!0,t.placement=$,t.reset=!0)}}const nT={name:"flip",enabled:!0,phase:"main",fn:tT,requiresIfExists:["offset"],data:{_skip:!1}};function Lu(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 Fu(e){return[Ve,ct,at,He].some(function(t){return e[t]>=0})}function rT(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=zr(t,{elementContext:"reference"}),c=zr(t,{altBoundary:!0}),u=Lu(a,i),l=Lu(c,o,s),f=Fu(u),d=Fu(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const iT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rT};function oT(e,t,n){var i=Tt(e),o=[He,Ve].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],c=s[1];return a=a||0,c=(c||0)*o,[He,ct].indexOf(i)>=0?{x:c,y:a}:{x:a,y:c}}function sT(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=Ep.reduce(function(f,d){return f[d]=oT(d,t.rects,s),f},{}),c=a[t.placement],u=c.x,l=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}const aT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sT};function cT(e){var t=e.state,n=e.name;t.modifiersData[n]=Lp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const lT={name:"popperOffsets",enabled:!0,phase:"read",fn:cT,data:{}};function uT(e){return e==="x"?"y":"x"}function fT(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,l=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,h=g===void 0?0:g,y=zr(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:f}),b=Tt(t.placement),v=Xn(t.placement),T=!v,O=mc(b),w=uT(O),k=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,$=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(k){if(s){var P,C=O==="y"?Ve:He,I=O==="y"?at:ct,F=O==="y"?"height":"width",z=k[O],B=z+y[C],ee=z-y[I],j=m?-N[F]/2:0,U=v===Wn?R[F]:N[F],W=v===Wn?-N[F]:-R[F],X=t.elements.arrow,G=m&&X?hc(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$p(),Z=Y[C],Q=Y[I],J=vr(0,R[F],G[F]),q=T?R[F]/2-j-J-Z-D.mainAxis:U-J-Z-D.mainAxis,H=T?-R[F]/2+j+J+Q+D.mainAxis:W+J+Q+D.mainAxis,K=t.elements.arrow&&ni(t.elements.arrow),_=K?O==="y"?K.clientTop||0:K.clientLeft||0:0,oe=(P=E?.[O])!=null?P:0,se=z+q-oe-_,xe=z+H-oe,we=vr(m?Ji(B,se):B,z,m?mn(ee,xe):ee);k[O]=we,x[O]=we-z}if(c){var $e,Vt=O==="x"?Ve:He,nr=O==="x"?at:ct,mt=k[w],ri=w==="y"?"height":"width",Tc=mt+y[Vt],kc=mt-y[nr],Go=[Ve,He].indexOf(b)!==-1,Cc=($e=E?.[w])!=null?$e:0,Ac=Go?Tc:mt-R[ri]-N[ri]-Cc+D.altAxis,Sc=Go?mt+R[ri]+N[ri]-Cc-D.altAxis:kc,Pc=m&&Go?jw(Ac,mt,Sc):vr(m?Ac:Tc,mt,m?Sc:kc);k[w]=Pc,x[w]=Pc-mt}t.modifiersData[i]=x}}const dT={name:"preventOverflow",enabled:!0,phase:"main",fn:fT,requiresIfExists:["offset"]};function pT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hT(e){return e===Ke(e)||!ot(e)?gc(e):pT(e)}function mT(e){var t=e.getBoundingClientRect(),n=Yn(t.width)/e.offsetWidth||1,i=Yn(t.height)/e.offsetHeight||1;return n!==1||i!==1}function gT(e,t,n){n===void 0&&(n=!1);var i=ot(t),o=ot(t)&&mT(t),s=rn(t),a=Gn(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Ct(t)!=="body"||bc(s))&&(c=hT(t)),ot(t)?(u=Gn(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=yc(s))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function yT(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),i}function bT(e){var t=yT(e);return Rw.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function xT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vT(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var qu={placement:"bottom",modifiers:[],strategy:"absolute"};function Uu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function OT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?qu:o;return function(c,u,l){l===void 0&&(l=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},qu,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},d=[],p=!1,m={state:f,setOptions:function(b){var v=typeof b=="function"?b(f.options):b;h(),f.options=Object.assign({},s,f.options,v),f.scrollParents={reference:bn(c)?Or(c):c.contextElement?Or(c.contextElement):[],popper:Or(u)};var T=bT(vT([].concat(i,f.options.modifiers)));return f.orderedModifiers=T.filter(function(O){return O.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var b=f.elements,v=b.reference,T=b.popper;if(Uu(v,T)){f.rects={reference:gT(v,ni(T),f.options.strategy==="fixed"),popper:hc(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(D){return f.modifiersData[D.name]=Object.assign({},D.data)});for(var O=0;O<f.orderedModifiers.length;O++){if(f.reset===!0){f.reset=!1,O=-1;continue}var w=f.orderedModifiers[O],k=w.fn,R=w.options,N=R===void 0?{}:R,$=w.name;typeof k=="function"&&(f=k({state:f,options:N,name:$,instance:m})||f)}}}},update:xT(function(){return new Promise(function(y){m.forceUpdate(),y(f)})}),destroy:function(){h(),p=!0}};if(!Uu(c,u))return m;m.setOptions(l).then(function(y){!p&&l.onFirstUpdate&&l.onFirstUpdate(y)});function g(){f.orderedModifiers.forEach(function(y){var b=y.name,v=y.options,T=v===void 0?{}:v,O=y.effect;if(typeof O=="function"){var w=O({state:f,name:b,instance:m,options:T}),k=function(){};d.push(w||k)}})}function h(){d.forEach(function(y){return y()}),d=[]}return m}}var wT=[Bw,lT,Vw,Mw,aT,nT,dT,Fw,iT],TT=OT({defaultModifiers:wT});function kT(e){return typeof e=="function"?e():e}const eo=M.forwardRef(function(t,n){const{children:i,container:o,disablePortal:s=!1}=t,[a,c]=M.useState(null),u=_r(M.isValidElement(i)?ZO(i):null,n);if(Qt(()=>{s||c(kT(o)||document.body)},[o,s]),Qt(()=>{if(a&&!s)return _u(n,a),()=>{_u(n,null)}},[n,a,s]),s){if(M.isValidElement(i)){const l={ref:u};return M.cloneElement(i,l)}return i}return a&&fh.createPortal(i,a)});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:r.node,container:r.oneOfType([qr,r.func]),disablePortal:r.bool});process.env.NODE_ENV!=="production"&&(eo.propTypes=kf(eo.propTypes));function CT(e){return Re("MuiPopper",e)}Ne("MuiPopper",["root"]);function AT(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 to(e){return typeof e=="function"?e():e}function Vo(e){return e.nodeType!==void 0}function ST(e){return!Vo(e)}const PT=e=>{const{classes:t}=e;return Ie({root:["root"]},CT,t)},RT={},_T=M.forwardRef(function(t,n){const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:c,open:u,placement:l,popperOptions:f,popperRef:d,slotProps:p={},slots:m={},TransitionProps:g,ownerState:h,...y}=t,b=M.useRef(null),v=_r(b,n),T=M.useRef(null),O=_r(T,d),w=M.useRef(O);Qt(()=>{w.current=O},[O]),M.useImperativeHandle(d,()=>T.current,[]);const k=AT(l,s),[R,N]=M.useState(k),[$,D]=M.useState(to(i));M.useEffect(()=>{T.current&&T.current.forceUpdate()}),M.useEffect(()=>{i&&D(to(i))},[i]),Qt(()=>{if(!$||!u)return;const I=B=>{N(B.placement)};if(process.env.NODE_ENV!=="production"&&$&&Vo($)&&$.nodeType===1){const B=$.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
56
|
-
`)
|
|
57
|
-
`)
|
|
58
|
-
`))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([qr,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:Cp,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});function ET(){return xg}process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function qp(e){return zg(e)}const MT=ye(Fp,{name:"MuiPopper",slot:"Root"})({}),Up=M.forwardRef(function(t,n){const i=bo(),o=qp({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:u,container:l,disablePortal:f,keepMounted:d,modifiers:p,open:m,placement:g,popperOptions:h,popperRef:y,transition:b,slots:v,slotProps:T,...O}=o,w=v?.root??c?.Root,k={anchorEl:s,container:l,disablePortal:f,keepMounted:d,modifiers:p,open:m,placement:g,popperOptions:h,popperRef:y,transition:b,...O};return A.jsx(MT,{as:a,direction:i?"rtl":"ltr",slots:{root:w},slotProps:T??u,...k,ref:n})});process.env.NODE_ENV!=="production"&&(Up.propTypes={anchorEl:r.oneOfType([qr,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([qr,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:Cp,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});function Vr(e){const{children:t,defer:n=!1,fallback:i=null}=e,[o,s]=M.useState(!1);return Qt(()=>{n||s(!0)},[n]),M.useEffect(()=>{n&&s(!0)},[n]),o?t:i}process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:r.node,defer:r.bool,fallback:r.node});process.env.NODE_ENV!=="production"&&(Vr.propTypes=kf(Vr.propTypes));function IT(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,i={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>S({},i,{toJSON:()=>JSON.stringify(i)})}}function $T(){const e=cc(),[t,n]=M.useState(null);return M.useEffect(()=>{const i=e.current;if(i===null)return()=>{};const o=a=>{a.pointerType!=="mouse"&&n(null)},s=a=>{n({x:a.clientX,y:a.clientY,height:a.height,pointerType:a.pointerType})};return i.addEventListener("pointerdown",s),i.addEventListener("pointermove",s),i.addEventListener("pointerup",o),()=>{i.removeEventListener("pointerdown",s),i.removeEventListener("pointermove",s),i.removeEventListener("pointerup",o)}},[e]),t}function jT(e,t){if(e==="item")return t!==null;const n=t.x!==null,i=t.y!==null;return n||i}function NT(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function DT(e){return Re("MuiChartsTooltip",e)}const zu=Ne("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),zp=ye("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),Vp=ye("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(e,t)=>t.table})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),aa=ye("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(e,t)=>t.row})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),dn=ye("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${zu.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${zu.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)}})),Hp=ye("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(e,t)=>t.mark,shouldForwardProp:e=>Ci(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],background:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function Bp(e){const{series:t,itemData:n,sx:i,classes:o,getColor:s}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:a,color:c}=t.type==="pie"?{color:s(n.dataIndex),displayedLabel:ht(t.data[n.dataIndex].label,"tooltip")}:{color:s(n.dataIndex),displayedLabel:ht(t.label,"tooltip")},u=t.type==="pie"?S({},t.data[n.dataIndex],{label:ht(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],l=t.valueFormatter?.(u,{dataIndex:n.dataIndex});return A.jsx(zp,{sx:i,className:o.paper,children:A.jsx(Vp,{className:o.table,children:A.jsx("tbody",{children:A.jsxs(aa,{className:o.row,children:[A.jsx(dn,{className:pt(o.markCell,o.cell),children:A.jsx(Hp,{color:c,className:o.mark})}),A.jsx(dn,{className:pt(o.labelCell,o.cell),children:a}),A.jsx(dn,{className:pt(o.valueCell,o.cell),children:l})]})})})})}process.env.NODE_ENV!=="production"&&(Bp.propTypes={classes:r.object.isRequired,getColor:r.func.isRequired,itemData:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string]).isRequired,type:r.oneOf(["bar","line","pie","scatter"]).isRequired}).isRequired,series:r.object.isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function LT(e){const{content:t,itemData:n,sx:i,classes:o,contentProps:s}=e,a=St()[n.type].series[n.seriesId],{xAxis:c,yAxis:u,xAxisIds:l,yAxisIds:f}=De(),{zAxis:d,zAxisIds:p}=M.useContext(Eo),m=Cd(),g=a.xAxisId??a.xAxisKey??l[0],h=a.yAxisId??a.yAxisKey??f[0],y=a.zAxisId??a.zAxisKey??p[0],b=m[a.type]?.(a,g&&c[g],h&&u[h],y&&d[y])??(()=>""),v=t??Bp,T=ze({elementType:v,externalSlotProps:s,additionalProps:{itemData:n,series:a,sx:i,classes:o,getColor:b},ownerState:{}});return A.jsx(v,S({},T))}const FT=Bg;function qT(e){return typeof e.main=="string"}function UT(e,t=[]){if(!qT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zT(e=[]){return([,t])=>t&&UT(t,e)}function VT(e){return Re("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const HT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BT=ET(),WT=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${jn(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return Ie(c,VT,a)},YT=ye("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${jn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(FT(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(zT()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${jn(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Vu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mi=M.forwardRef(function(t,n){const{color:i,...o}=qp({props:t,name:"MuiTypography"}),s=!HT[i],a=BT({...o,...s&&{color:i}}),{align:c="inherit",className:u,component:l,gutterBottom:f=!1,noWrap:d=!1,paragraph:p=!1,variant:m="body1",variantMapping:g=Vu,...h}=a,y={...a,align:c,color:i,className:u,component:l,gutterBottom:f,noWrap:d,paragraph:p,variant:m,variantMapping:g},b=l||(p?"p":g[m]||Vu[m])||"span",v=WT(y);return A.jsx(YT,{as:b,ref:n,className:pt(v.root,u),...h,ownerState:y,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...h.style}})});process.env.NODE_ENV!=="production"&&(Mi.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});let Hu;class GT{constructor(){if(this.types=new Set,Hu)throw new Error("You can only create one instance!");Hu=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const Ho=new GT;Ho.addType("bar");Ho.addType("line");Ho.addType("scatter");function Wp(e){return Ho.getTypes().has(e)}function XT(e){return Wp(e.type)}function Yp(e){const{series:t,axis:n,dataIndex:i,axisValue:o,sx:s,classes:a}=e;if(i==null)return null;const c=n.valueFormatter??(u=>n.scaleType==="utc"?NT(u):u.toLocaleString());return A.jsx(zp,{sx:s,className:a.paper,children:A.jsxs(Vp,{className:a.table,children:[o!=null&&!n.hideTooltip&&A.jsx("thead",{children:A.jsx(aa,{children:A.jsx(dn,{colSpan:3,children:A.jsx(Mi,{children:c(o,{location:"tooltip"})})})})}),A.jsx("tbody",{children:t.filter(XT).map(({id:u,label:l,valueFormatter:f,data:d,getColor:p})=>{const m=f(d[i]??null,{dataIndex:i});if(m==null)return null;const g=ht(l,"tooltip"),h=p(i);return A.jsxs(aa,{className:a.row,children:[A.jsx(dn,{className:pt(a.markCell,a.cell),children:h&&A.jsx(Hp,{color:h,className:a.mark})}),A.jsx(dn,{className:pt(a.labelCell,a.cell),children:g?A.jsx(Mi,{children:g}):null}),A.jsx(dn,{className:pt(a.valueCell,a.cell),children:A.jsx(Mi,{children:m})})]},u)})})]})})}process.env.NODE_ENV!=="production"&&(Yp.propTypes={axis:r.object.isRequired,axisData:r.shape({x:r.shape({index:r.number,value:r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired}),y:r.shape({index:r.number,value:r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired})}).isRequired,axisValue:r.oneOfType([r.instanceOf(Date),r.number,r.string]),classes:r.object.isRequired,dataIndex:r.number,series:r.arrayOf(r.object).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function KT(e){const{content:t,contentProps:n,axisData:i,sx:o,classes:s}=e,a=i.x&&i.x.index!==-1,c=a?i.x&&i.x.index:i.y&&i.y.index,u=a?i.x&&i.x.value:i.y&&i.y.value,{xAxisIds:l,xAxis:f,yAxisIds:d,yAxis:p}=De(),{zAxisIds:m,zAxis:g}=M.useContext(Eo),h=St(),y=Cd(),b=a?l[0]:d[0],v=M.useMemo(()=>{const k=[];return Object.keys(h).filter(Wp).forEach(R=>{h[R].seriesOrder.forEach(N=>{const $=h[R].series[N],D=$.xAxisId??$.xAxisKey,E=$.yAxisId??$.yAxisKey,x=a?D:E;if(x===void 0||x===b){const P=h[R].series[N],C=D??l[0],I=E??d[0],F=P.zAxisId??P.zAxisKey??m[0],z=y[R]?.(P,f[C],p[I],F&&g[F])??(()=>"");k.push(S({},P,{getColor:z}))}})}),k},[b,y,a,h,f,l,p,d,g,m]),T=M.useMemo(()=>a?f[b]:p[b],[b,a,f,p]),O=t??Yp,w=ze({elementType:O,externalSlotProps:n,additionalProps:{axisData:i,series:v,axis:T,dataIndex:c,axisValue:u,sx:o,classes:s},ownerState:{}});return A.jsx(O,S({},w))}const QT=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},DT,t)},ZT=ye(Up,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Bo(e){const t=At({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:i,axisContent:o,slots:s,slotProps:a}=t,c=$T(),{item:u,axis:l}=M.useContext(Pt),f=n==="item"?u:l,d=jT(n,f),p=c!==null&&d,m=QT({classes:t.classes}),g=s?.popper??ZT,h=ze({elementType:g,externalSlotProps:a?.popper,additionalProps:{open:p,placement:c?.pointerType==="mouse"?"right-start":"top",anchorEl:IT(c),modifiers:[{name:"offset",options:{offset:[0,c?.pointerType==="touch"?40-c.height:0]}}]},ownerState:{}});return n==="none"?null:A.jsx(Vr,{children:p&&A.jsx(g,S({},h,{className:m.root,children:n==="item"?A.jsx(LT,{itemData:f,content:s?.itemContent??i,contentProps:a?.itemContent,sx:{mx:2},classes:m}):A.jsx(KT,{axisData:f,content:s?.axisContent??o,contentProps:a?.axisContent,sx:{mx:2},classes:m})}))})}process.env.NODE_ENV!=="production"&&(Bo.propTypes={axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])});const JT=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>{const s=ht(n[o].label,"legend");return s===void 0||i.push({id:o,seriesId:o,color:n[o].color,label:s}),i},[])},ek=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>{const s=ht(n[o].label,"legend");return s===void 0||i.push({id:o,seriesId:o,color:n[o].color,label:s}),i},[])},tk=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>{const s=ht(n[o].label,"legend");return s===void 0||i.push({id:o,seriesId:o,color:n[o].color,label:s}),i},[])},nk=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>(n[o].data.forEach(s=>{const a=ht(s.label,"legend");a!==void 0&&i.push({id:s.id,seriesId:o,color:s.color,label:a,itemId:s.id})}),i),[])},rk={bar:JT,scatter:ek,line:tk,pie:nk};function ik(e){return Object.keys(e).flatMap(t=>{const n=rk[t];return n===void 0?[]:n(e[t])})}function ok(e){return Re("MuiChartsLegend",e)}Ne("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const sk=["label"];function ak(e,t,n,i,o,s,a){let c=0,u=0,l=0,f=0,d=0;const p=[0];return[e.map(g=>{let{label:h}=g,y=ie(g,sk);const b=t(h,n),v=S({},y,{label:h,positionX:c,positionY:u,innerHeight:b.innerHeight,innerWidth:b.innerWidth,outerHeight:b.outerHeight,outerWidth:b.outerWidth,rowIndex:d});return i==="row"&&(c+b.innerWidth>o&&(c=0,u+=p[d],d+=1,p.length<=d&&p.push(0),v.positionX=c,v.positionY=u,v.rowIndex=d),l=Math.max(l,c+b.outerWidth),f=Math.max(f,u+b.outerHeight),p[d]=Math.max(p[d],b.outerHeight),c+=b.outerWidth),i==="column"&&(u+b.innerHeight>s&&(c=l+a,u=0,d=0,v.positionX=c,v.positionY=u,v.rowIndex=d),p.length<=d&&p.push(0),l=Math.max(l,c+b.outerWidth),f=Math.max(f,u+b.outerHeight),d+=1,u+=b.outerHeight),v}).map(g=>S({},g,{positionY:g.positionY+(i==="row"?p[g.rowIndex]/2:g.outerHeight/2)})),l,f]}function ck(e){const t=bo(),{id:n,positionY:i,label:o,positionX:s,innerHeight:a,innerWidth:c,legendWidth:u,color:l,gapX:f,gapY:d,itemMarkHeight:p,itemMarkWidth:m,markGap:g,labelStyle:h,classes:y,onClick:b}=e;return A.jsxs("g",{className:pt(y?.series,`${y?.series}-${n}`),transform:`translate(${f+(t?u-s:s)} ${d+i})`,children:[A.jsx("rect",{x:t?-(c+2):-2,y:-p/2-2,width:c+4,height:a+4,fill:"transparent",className:y?.itemBackground,onClick:b,style:{pointerEvents:b?"all":"none",cursor:b?"pointer":"unset"}}),A.jsx("rect",{className:y?.mark,x:t?-m:0,y:-p/2,width:m,height:p,fill:l,style:{pointerEvents:"none"}}),A.jsx(Bn,{style:S({pointerEvents:"none"},h),text:o,x:(t?-1:1)*(m+g),y:0})]})}const lk=["rotate","dominantBaseline"],uk=ye("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fk=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:S({left:0,right:0,top:0,bottom:0},e);function dk(e){const{position:t,direction:n,itemsToDisplay:i,classes:o,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:c=5,itemGap:u=10,padding:l=10,labelStyle:f,onItemClick:d}=e,p=Ut(),m=We(),g=M.useMemo(()=>S({},p.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(p.vars||p).palette.text.primary,lineHeight:1},f),[f,p]),h=M.useMemo(()=>fk(l),[l]),y=M.useCallback((D,E={})=>{const x=ie(E,lk),P=fc({style:x,needsComputation:!0,text:D}),C={innerWidth:s+c+Math.max(...P.map(I=>I.width)),innerHeight:Math.max(a,P.length*P[0].height)};return S({},C,{outerWidth:C.innerWidth+u,outerHeight:C.innerHeight+u})},[u,a,s,c]),b=m.left+m.width+m.right,v=m.top+m.height+m.bottom,T=b-h.left-h.right,O=v-h.top-h.bottom,[w,k,R]=M.useMemo(()=>ak(i,y,g,n,T,O,u),[i,y,g,n,T,O,u]),N=M.useMemo(()=>{switch(t.horizontal){case"left":return h.left;case"right":return b-h.right-k;default:return(b-k)/2}},[t.horizontal,h.left,h.right,b,k]),$=M.useMemo(()=>{switch(t.vertical){case"top":return h.top;case"bottom":return v-h.bottom-R;default:return(v-R)/2}},[t.vertical,h.top,h.bottom,v,R]);return A.jsx(Vr,{children:A.jsx(uk,{className:o?.root,children:w.map((D,E)=>ae.createElement(ck,S({},D,{key:D.id,gapX:N,gapY:$,legendWidth:k,itemMarkHeight:a,itemMarkWidth:s,markGap:c,labelStyle:g,classes:o,onClick:d?x=>d(x,E):void 0})))})})}const pk=["drawingArea","seriesToDisplay","hidden","onItemClick"],hk=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function Gp(e){const{seriesToDisplay:t,hidden:n,onItemClick:i}=e,o=ie(e,pk);return n?null:A.jsx(dk,S({},o,{itemsToDisplay:t,onItemClick:i?(s,a)=>i(s,hk(t[a]),a):void 0}))}process.env.NODE_ENV!=="production"&&(Gp.propTypes={classes:r.object,direction:r.oneOf(["column","row"]).isRequired,drawingArea:r.shape({bottom:r.number.isRequired,height:r.number.isRequired,left:r.number.isRequired,right:r.number.isRequired,top:r.number.isRequired,width:r.number.isRequired}).isRequired,hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}).isRequired,series:r.object.isRequired,seriesToDisplay:r.arrayOf(r.shape({color:r.string.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,itemId:r.oneOfType([r.number,r.string]),label:r.string.isRequired,maxValue:r.oneOfType([r.instanceOf(Date),r.number]),minValue:r.oneOfType([r.instanceOf(Date),r.number]),seriesId:r.oneOfType([r.number,r.string])})).isRequired});const mk=["slots","slotProps"],gk=e=>{const{classes:t,direction:n}=e;return Ie({root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},ok,t)};function Wo(e){const t=At({props:e,name:"MuiChartsLegend"}),n=S({direction:"row"},t,{position:S({horizontal:"middle",vertical:"top"},t.position)}),{slots:i,slotProps:o}=n,s=ie(n,mk),a=Ut(),c=gk(S({},n,{theme:a})),u=We(),l=St(),f=ik(l),d=i?.legend??Gp,p=ze({elementType:d,externalSlotProps:o?.legend,additionalProps:S({},s,{classes:c,drawingArea:u,series:l,seriesToDisplay:f}),ownerState:{}});return A.jsx(d,S({},p))}process.env.NODE_ENV!=="production"&&(Wo.propTypes={classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object});function cn(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw new Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function yk(e){return Re("MuiChartsAxisHighlight",e)}Ne("MuiChartsAxisHighlight",["root"]);const bk=()=>Ie({root:["root"]},yk),bi=ye("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:S({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:S({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function Yo(e){const{x:t,y:n}=e,{xAxisIds:i,xAxis:o,yAxisIds:s,yAxis:a}=De(),c=bk(),u=i[0],l=s[0],f=o[u].scale,d=a[l].scale,{axis:p}=M.useContext(Pt),m=Hn(f),g=Hn(d),h=p.x,y=p.y,b=t==="band"&&h!==null&&gn(f),v=n==="band"&&y!==null&&gn(d);if(process.env.NODE_ENV!=="production"){const T=b&&f(h.value)===void 0,O=v&&d(y.value)===void 0;(T||O)&&console.error(["MUI X: The position value provided for the axis is not valid for the current scale.","This probably means something is wrong with the data passed to the chart.","The ChartsAxisHighlight component will not be displayed."].join(`
|
|
59
|
-
`))}return A.jsxs(M.Fragment,{children:[b&&f(h.value)!==void 0&&A.jsx(bi,{d:`M ${f(h.value)-(f.step()-f.bandwidth())/2} ${d.range()[0]} l ${f.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-f.step()} 0 Z`,className:c.root,ownerState:{axisHighlight:"band"}}),v&&d(y.value)!==void 0&&A.jsx(bi,{d:`M ${f.range()[0]} ${d(y.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${f.range()[1]-f.range()[0]} 0 l 0 ${-d.step()} Z`,className:c.root,ownerState:{axisHighlight:"band"}}),t==="line"&&p.x!==null&&A.jsx(bi,{d:`M ${m(p.x.value)} ${d.range()[0]} L ${m(p.x.value)} ${d.range()[1]}`,className:c.root,ownerState:{axisHighlight:"line"}}),n==="line"&&p.y!==null&&A.jsx(bi,{d:`M ${f.range()[0]} ${g(p.y.value)} L ${f.range()[1]} ${g(p.y.value)}`,className:c.root,ownerState:{axisHighlight:"line"}})]})}process.env.NODE_ENV!=="production"&&(Yo.propTypes={x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])});function xc(e){const{id:t,offset:n}=e,{left:i,top:o,width:s,height:a}=We(),c=S({top:0,right:0,bottom:0,left:0},n);return A.jsx("clipPath",{id:t,children:A.jsx("rect",{x:i-c.left,y:o-c.top,width:s+c.left+c.right,height:a+c.top+c.bottom})})}process.env.NODE_ENV!=="production"&&(xc.propTypes={id:r.string.isRequired,offset:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})});const xk=["x","y","id","classes","color"];function vk(e){return Re("MuiHighlightElement",e)}Ne("MuiHighlightElement",["root"]);const Ok=e=>{const{classes:t,id:n}=e,i={root:["root",`series-${n}`]};return Ie(i,vk,t)},wk=ye("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 Xp(e){const{x:t,y:n,id:i,classes:o,color:s}=e,a=ie(e,xk),c={id:i,classes:o,color:s,x:t,y:n},u=Ok(c);return A.jsx(wk,S({pointerEvents:"none",ownerState:c,className:u.root,cx:0,cy:0,r:a.r===void 0?5:a.r},a))}process.env.NODE_ENV!=="production"&&(Xp.propTypes={classes:r.object,id:r.oneOfType([r.number,r.string]).isRequired});const Tk=["slots","slotProps"];function Kp(e){const{slots:t,slotProps:n}=e,i=ie(e,Tk),o=Ro(),s=De(),a=We(),{axis:c}=M.useContext(Pt),u=c.x?.index;if(u===void 0||o===void 0)return null;const{series:l,stackingGroups:f}=o,{xAxis:d,yAxis:p,xAxisIds:m,yAxisIds:g}=s,h=m[0],y=g[0],b=t?.lineHighlight??Xp;return A.jsx("g",S({},i,{children:f.flatMap(({ids:v})=>v.flatMap(T=>{const{xAxisId:O,yAxisId:w,xAxisKey:k=h,yAxisKey:R=y,stackedData:N,data:$,disableHighlight:D}=l[T],E=O??k,x=w??R;if(D||$[u]==null)return null;const P=Hn(d[E].scale),C=p[x].scale,I=d[E].data;if(I===void 0)throw new Error(`MUI X: ${E===zt?"The first `xAxis`":`The x-axis with id "${E}"`} should have data property to be able to display a line plot.`);const F=P(I[u]),z=C(N[u][1]);if(!a.isPointInside({x:F,y:z}))return null;const B=Va(l[T],d[E],p[x]);return A.jsx(b,S({id:T,color:B(u),x:F,y:z},n?.lineHighlight),`${T}`)}))}))}process.env.NODE_ENV!=="production"&&(Kp.propTypes={slotProps:r.object,slots:r.object});function kk(e){return Re("MuiChartsGrid",e)}const Bu=Ne("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),Ck=ye("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Bu.verticalLine}`]:t.verticalLine},{[`&.${Bu.horizontalLine}`]:t.horizontalLine},t.root]})({}),Qp=ye("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function Ak(e){const{axis:t,drawingArea:n,classes:i}=e,{scale:o,tickNumber:s,tickInterval:a}=t,c=So({scale:o,tickNumber:s,tickInterval:a});return A.jsx(M.Fragment,{children:c.map(({value:u,offset:l})=>A.jsx(Qp,{y1:n.top,y2:n.top+n.height,x1:l,x2:l,className:i.verticalLine},`vertical-${u}`))})}function Sk(e){const{axis:t,drawingArea:n,classes:i}=e,{scale:o,tickNumber:s,tickInterval:a}=t,c=So({scale:o,tickNumber:s,tickInterval:a});return A.jsx(M.Fragment,{children:c.map(({value:u,offset:l})=>A.jsx(Qp,{y1:l,y2:l,x1:n.left,x2:n.left+n.width,className:i.horizontalLine},`horizontal-${u}`))})}const Pk=["vertical","horizontal"],Rk=({classes:e})=>Ie({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},kk,e);function vc(e){const t=At({props:e,name:"MuiChartsGrid"}),n=We(),{vertical:i,horizontal:o}=t,s=ie(t,Pk),{xAxis:a,xAxisIds:c,yAxis:u,yAxisIds:l}=De(),f=Rk(t),d=u[l[0]],p=a[c[0]];return A.jsxs(Ck,S({},s,{className:f.root,children:[i&&A.jsx(Ak,{axis:p,drawingArea:n,classes:f}),o&&A.jsx(Sk,{axis:d,drawingArea:n,classes:f})]}))}process.env.NODE_ENV!=="production"&&(vc.propTypes={classes:r.object,horizontal:r.bool,vertical:r.bool});function Oc(e){const{onAxisClick:t}=e,n=cc(),i=St(),{axis:o}=M.useContext(Pt),{xAxisIds:s,xAxis:a,yAxisIds:c,yAxis:u}=De();return M.useEffect(()=>{const l=n.current;if(l===null||!t)return()=>{};const f=d=>{d.preventDefault();const p=o.x&&o.x.index!==-1,m=p?s[0]:c[0],g=p?o.x&&o.x.index:o.y&&o.y.index;if(g==null)return;const h={};Object.keys(i).filter(b=>["bar","line"].includes(b)).forEach(b=>{i[b]?.seriesOrder.forEach(v=>{const T=i[b].series[v],O=T.xAxisId??T.xAxisKey,w=T.yAxisId??T.yAxisKey,k=p?O:w;(k===void 0||k===m)&&(h[v]=T.data[g])})});const y=(p?a:u)[m].data?.[g];t(d,{dataIndex:g,axisValue:y,seriesValues:h})};return l.addEventListener("click",f),()=>{l.removeEventListener("click",f)}},[o.x,o.y,t,i,n,a,s,u,c]),A.jsx(M.Fragment,{})}process.env.NODE_ENV!=="production"&&(Oc.propTypes={onAxisClick:r.func});const _k=["message"],Ek=ye("text")(({theme:e})=>S({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Mk(e){const{message:t}=e,n=ie(e,_k),{top:i,left:o,height:s,width:a}=We();return A.jsx(Ek,S({x:o+a/2,y:i+s/2},n,{children:t??"Loading data…"}))}const Ik=["message"],$k=ye("text")(({theme:e})=>S({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function jk(e){const{message:t}=e,n=ie(e,Ik),{top:i,left:o,height:s,width:a}=We();return A.jsx($k,S({x:o+a/2,y:i+s/2},n,{children:t??"No data to display"}))}function Nk(){const e=St();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:i}=t;return i.every(o=>n[o].data.length===0)})}function wc(e){const t=Nk();if(e.loading){const n=e.slots?.loadingOverlay??Mk;return A.jsx(n,S({},e.slotProps?.loadingOverlay))}if(t){const n=e.slots?.noDataOverlay??jk;return A.jsx(n,S({},e.slotProps?.noDataOverlay))}return null}const Dk=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Lk=e=>{const{xAxis:t,yAxis:n,series:i,width:o,height:s,margin:a,colors:c,dataset:u,sx:l,tooltip:f,onAxisClick:d,onAreaClick:p,onLineClick:m,onMarkClick:g,axisHighlight:h,disableLineItemHighlight:y,legend:b,grid:v,topAxis:T,leftAxis:O,rightAxis:w,bottomAxis:k,children:R,slots:N,slotProps:$,skipAnimation:D,loading:E,highlightedItem:x,onHighlightChange:P,className:C,experimentalMarkRendering:I}=e,F=ie(e,Dk),B=`${ya()}-clip-path`,ee=S({},F,{series:i.map(oe=>S({disableHighlight:!!y,type:"line"},oe)),width:o,height:s,margin:a,colors:c,dataset:u,xAxis:t??[{id:zt,scaleType:"point",data:Array.from({length:Math.max(...i.map(oe=>(oe.data??u??[]).length))},(oe,se)=>se)}],yAxis:n,sx:l,highlightedItem:x,onHighlightChange:P,disableAxisListener:f?.trigger!=="axis"&&h?.x==="none"&&h?.y==="none"&&!d,className:C,skipAnimation:D}),j={onAxisClick:d},U={vertical:v?.vertical,horizontal:v?.horizontal},W={clipPath:`url(#${B})`},X={id:B},G={slots:N,slotProps:$,onItemClick:p},Y={slots:N,slotProps:$,onItemClick:m},Z={slots:N,slotProps:$,onItemClick:g,skipAnimation:D,experimentalRendering:I},Q={slots:N,slotProps:$,loading:E},J={topAxis:T,leftAxis:O,rightAxis:w,bottomAxis:k,slots:N,slotProps:$},q=S({x:"line"},h),H={slots:N,slotProps:$},K=S({},b,{slots:N,slotProps:$}),_=S({},f,{slots:N,slotProps:$});return{chartContainerProps:ee,axisClickHandlerProps:j,gridProps:U,clipPathProps:X,clipPathGroupProps:W,areaPlotProps:G,linePlotProps:Y,markPlotProps:Z,overlayProps:Q,chartsAxisProps:J,axisHighlightProps:q,lineHighlightPlotProps:H,legendProps:K,tooltipProps:_,children:R}},Zp=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiLineChart"}),{chartContainerProps:o,axisClickHandlerProps:s,gridProps:a,clipPathProps:c,clipPathGroupProps:u,areaPlotProps:l,linePlotProps:f,markPlotProps:d,overlayProps:p,chartsAxisProps:m,axisHighlightProps:g,lineHighlightPlotProps:h,legendProps:y,tooltipProps:b,children:v}=Lk(i);return A.jsxs(qo,S({ref:n},o,{children:[i.onAxisClick&&A.jsx(Oc,S({},s)),A.jsx(vc,S({},a)),A.jsxs("g",S({},u,{children:[A.jsx(mp,S({},l)),A.jsx(bp,S({},f)),A.jsx(wc,S({},p)),A.jsx(Yo,S({},g))]})),A.jsx(Uo,S({},m)),A.jsx("g",{"data-drawing-container":!0,children:A.jsx(kp,S({},d))}),A.jsx(Kp,S({},h)),A.jsx(Wo,S({},y)),!i.loading&&A.jsx(Bo,S({},b)),A.jsx(xc,S({},c)),v]}))});process.env.NODE_ENV!=="production"&&(Zp.propTypes={axisHighlight:r.shape({x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])}),bottomAxis:r.oneOfType([r.object,r.string]),children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,disableLineItemHighlight:r.bool,experimentalMarkRendering:r.bool,grid:r.shape({horizontal:r.bool,vertical:r.bool}),height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),leftAxis:r.oneOfType([r.object,r.string]),legend:r.shape({classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object}),loading:r.bool,margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onAreaClick:r.func,onAxisClick:r.func,onHighlightChange:r.func,onLineClick:r.func,onMarkClick:r.func,resolveSizeBeforeRender:r.bool,rightAxis:r.oneOfType([r.object,r.string]),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,tooltip:r.shape({axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])}),topAxis:r.oneOfType([r.object,r.string]),viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func}))});const Fk=({title:e,subTitle:t,withPaper:n=!0,height:i=300,sx:o,...s})=>{const a=Ut(),c=A.jsx(Zp,{height:i,sx:{width:"100%",...o},slotProps:{legend:{labelStyle:{fontSize:12,fill:a.palette.text.secondary}}},...s});return n?A.jsxs(nt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&A.jsxs(nt.Box,{sx:{mb:2},children:[e&&A.jsx(nt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&A.jsx(nt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c},qk=["id","dataIndex","classes","color","slots","slotProps","style","onClick"];function Uk(e){return Re("MuiBarElement",e)}Ne("MuiBarElement",["root"]);const zk=e=>{const{classes:t,id:n}=e,i={root:["root",`series-${n}`]};return Ie(i,Uk,t)},Vk=ye(Rt.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Nt(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function Jp(e){const{id:t,dataIndex:n,classes:i,color:o,slots:s,slotProps:a,style:c,onClick:u}=e,l=ie(e,qk),f=er(),{isFaded:d,isHighlighted:p}=Jn({seriesId:t,dataIndex:n}),m={id:t,dataIndex:n,classes:i,color:o,isFaded:d,isHighlighted:p},g=zk(m),h=s?.bar??Vk,y=ze({elementType:h,externalSlotProps:a?.bar,externalForwardedProps:l,additionalProps:S({},f({type:"bar",seriesId:t,dataIndex:n}),{style:c,onClick:u,cursor:u?"pointer":"unset"}),className:g.root,ownerState:m});return A.jsx(h,S({},y))}process.env.NODE_ENV!=="production"&&(Jp.propTypes={classes:r.object,dataIndex:r.number.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,slotProps:r.object,slots:r.object});const xi=(e,{hasNegative:t,hasPositive:n,borderRadius:i,layout:o})=>{if(!i)return 0;const s=o==="vertical";return e==="top-left"&&(s&&n||!s&&t)||e==="top-right"&&(s&&n||!s&&n)||e==="bottom-right"&&(s&&t||!s&&n)||e==="bottom-left"&&(s&&t||!s&&t)?i:0},Hk=["style","maskId"],Bk=e=>`inset(0px round ${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px)`;function Wk(e){const t=e.ownerState;return A.jsx(Rt.rect,{style:S({},e.style,{clipPath:(e.ownerState.layout==="vertical"?e.style?.height:e.style?.width).to(n=>Bk({topLeft:Math.min(n,xi("top-left",t)),topRight:Math.min(n,xi("top-right",t)),bottomRight:Math.min(n,xi("bottom-right",t)),bottomLeft:Math.min(n,xi("bottom-left",t))}))})})}function Yk(e){const{style:t,maskId:n}=e,i=ie(e,Hk);return!e.borderRadius||e.borderRadius<=0?null:A.jsx("clipPath",{id:n,children:A.jsx(Wk,{ownerState:i,style:t})})}function Gk(e){return Re("MuiBarLabel",e)}const Cs=Ne("MuiBarLabel",["root","highlighted","faded"]),Xk=e=>{const{classes:t,seriesId:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,Gk,t)},Kk=e=>{const{barLabel:t,value:n,dataIndex:i,seriesId:o,height:s,width:a}=e;return t==="value"?n?n?.toString():null:t({seriesId:o,dataIndex:i,value:n},{bar:{height:s,width:a}})},Qk=["seriesId","dataIndex","color","isFaded","isHighlighted","classes"],Zk=ye(Rt.text,{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Cs.faded}`]:t.faded},{[`&.${Cs.highlighted}`]:t.highlighted},t.root]})(({theme:e})=>S({},e?.typography?.body2,{stroke:"none",fill:(e.vars||e)?.palette?.text?.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${Cs.faded}`]:{opacity:.3}}));function eh(e){const t=At({props:e,name:"MuiBarLabel"}),n=ie(t,Qk);return A.jsx(Zk,S({},n))}process.env.NODE_ENV!=="production"&&(eh.propTypes={classes:r.object,dataIndex:r.number.isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired,seriesId:r.oneOfType([r.number,r.string]).isRequired});const Jk=["seriesId","classes","color","style","dataIndex","barLabel","slots","slotProps","height","width","value"],eC=["ownerState"];function th(e){const{seriesId:t,classes:n,color:i,style:o,dataIndex:s,barLabel:a,slots:c,slotProps:u,height:l,width:f,value:d}=e,p=ie(e,Jk),{isFaded:m,isHighlighted:g}=Jn({seriesId:t,dataIndex:s}),h={seriesId:t,classes:n,color:i,isFaded:m,isHighlighted:g,dataIndex:s},y=Xk(h),b=c?.barLabel??eh,v=ze({elementType:b,externalSlotProps:u?.barLabel,additionalProps:S({},p,{style:o,className:y.root}),ownerState:h}),{ownerState:T}=v,O=ie(v,eC);if(!a)return null;const w=Kk({barLabel:a,value:d,dataIndex:s,seriesId:t,height:l,width:f});return w?A.jsx(b,S({},O,T,{children:w})):null}process.env.NODE_ENV!=="production"&&(th.propTypes={barLabel:r.oneOfType([r.oneOf(["value"]),r.func]),classes:r.object,color:r.string.isRequired,dataIndex:r.number.isRequired,height:r.number.isRequired,seriesId:r.oneOfType([r.number,r.string]).isRequired,slotProps:r.object,slots:r.object,value:r.number,width:r.number.isRequired});const tC=["bars","skipAnimation"],nC=({layout:e,yOrigin:t,x:n,width:i,y:o,xOrigin:s,height:a})=>S({},e==="vertical"?{y:t,x:n+i/2,height:0,width:i}:{y:o+a/2,x:s,height:a,width:0}),Wu=({x:e,width:t,y:n,height:i})=>({x:e+t/2,y:n+i/2,height:i,width:t});function rC(e){const{bars:t,skipAnimation:n}=e,i=ie(e,tC),o=en(t,{keys:s=>`${s.seriesId}-${s.dataIndex}`,from:nC,leave:null,enter:Wu,update:Wu,immediate:n});return A.jsx(M.Fragment,{children:o((s,{seriesId:a,dataIndex:c,color:u,value:l,width:f,height:d})=>A.jsx(th,S({seriesId:a,dataIndex:c,value:l,color:u,width:f,height:d},i,{style:s})))})}const As=(e,t)=>{const n=`${e}-axis`,i=`${e}Axis`;return t===(e==="x"?zt:qa)?`The first \`${i}\``:`The ${n} with id "${t}"`};function iC(e,t,n,i,o,s){const a=i[n],c=s[o],u=e?a:c,l=e?c:a,f=e?n:o,d=e?o:n,p=e?"x":"y",m=e?"y":"x";if(!zs(u))throw new Error(`MUI X: ${As(p,f)} should be of type "band" to display the bar series of id "${t}".`);if(u.data===void 0)throw new Error(`MUI X: ${As(p,f)} should have data property.`);if(zs(l)||xd(l))throw new Error(`MUI X: ${As(m,d)} should be a continuous type to display the bar series of id "${t}".`)}const oC=["skipAnimation","onItemClick","borderRadius","barLabel"];function sC({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const i=e/(t+(t-1)*n),o=n*i;return{barWidth:i,offset:o}}const aC=()=>{const e=Fv()??{series:{},stackingGroups:[]},t=De(),n=ac(),{series:i,stackingGroups:o}=e,{xAxis:s,yAxis:a,xAxisIds:c,yAxisIds:u}=t,l=c[0],f=u[0],d={};return{completedData:o.flatMap(({ids:m},g)=>m.flatMap(h=>{const y=i[h].xAxisId??i[h].xAxisKey??l,b=i[h].yAxisId??i[h].yAxisKey??f,v=s[y],T=a[b],O=i[h].layout==="vertical";iC(O,h,y,s,b,a);const w=O?v:T,k=v.scale,R=T.scale,N=kd(i[h],s[y],a[b]),$=w.scale.bandwidth(),{barWidth:D,offset:E}=sC({bandWidth:$,numberOfGroups:o.length,gapRatio:w.barGapRatio}),x=g*(D+E),{stackedData:P}=i[h];return P.map((C,I)=>{const F=C.map(W=>O?R(W):k(W)),z=Math.round(Math.min(...F)),B=Math.round(Math.max(...F)),ee=i[h].stack,j={seriesId:h,dataIndex:I,layout:i[h].layout,x:O?k(s[y].data?.[I])+x:z,y:O?z:R(a[b].data?.[I])+x,xOrigin:k(0),yOrigin:R(0),height:O?B-z:D,width:O?D:B-z,color:N(I),value:i[h].data[I],maskId:`${n}_${ee||h}_${g}_${I}`};d[j.maskId]||(d[j.maskId]={id:j.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:j.layout,xOrigin:k(0),yOrigin:R(0),x:0,y:0});const U=d[j.maskId];return U.width=j.layout==="vertical"?j.width:U.width+j.width,U.height=j.layout==="vertical"?U.height+j.height:j.height,U.x=Math.min(U.x===0?1/0:U.x,j.x),U.y=Math.min(U.y===0?1/0:U.y,j.y),U.hasNegative=U.hasNegative||(j.value??0)<0,U.hasPositive=U.hasPositive||(j.value??0)>0,j})})),masksData:Object.values(d)}},vi=({layout:e,yOrigin:t,x:n,width:i,y:o,xOrigin:s,height:a})=>S({},e==="vertical"?{y:t,x:n,height:0,width:i}:{y:o,x:s,height:a,width:0}),Oi=({x:e,width:t,y:n,height:i})=>({y:n,x:e,height:i,width:t});function nh(e){const{completedData:t,masksData:n}=aC(),{skipAnimation:i,onItemClick:o,borderRadius:s,barLabel:a}=e,c=ie(e,oC),u=ei(i),l=!s||s<=0,f=en(t,{keys:p=>`${p.seriesId}-${p.dataIndex}`,from:vi,leave:vi,enter:Oi,update:Oi,immediate:u}),d=en(l?[]:n,{keys:p=>p.id,from:vi,leave:vi,enter:Oi,update:Oi,immediate:u});return A.jsxs(M.Fragment,{children:[!l&&d((p,{id:m,hasPositive:g,hasNegative:h,layout:y})=>A.jsx(Yk,{maskId:m,borderRadius:s,hasNegative:h,hasPositive:g,layout:y,style:p})),f((p,{seriesId:m,dataIndex:g,color:h,maskId:y})=>{const b=A.jsx(Jp,S({id:m,dataIndex:g,color:h},c,{onClick:o&&(v=>{o(v,{type:"bar",seriesId:m,dataIndex:g})}),style:p}));return l?b:A.jsx("g",{clipPath:`url(#${y})`,children:b})}),a&&A.jsx(rC,S({bars:t,skipAnimation:u,barLabel:a},c))]})}process.env.NODE_ENV!=="production"&&(nh.propTypes={barLabel:r.oneOfType([r.oneOf(["value"]),r.func]),borderRadius:r.number,onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const cC=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","axisHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className"],lC=e=>{const{xAxis:t,yAxis:n,series:i,width:o,height:s,margin:a,colors:c,dataset:u,sx:l,tooltip:f,onAxisClick:d,axisHighlight:p,legend:m,grid:g,topAxis:h,leftAxis:y,rightAxis:b,bottomAxis:v,children:T,slots:O,slotProps:w,skipAnimation:k,loading:R,layout:N,onItemClick:$,highlightedItem:D,onHighlightChange:E,borderRadius:x,barLabel:P,className:C}=e,I=ie(e,cC),z=`${ya()}-clip-path`,B=N==="horizontal"||N===void 0&&i.some(K=>K.layout==="horizontal"),ee={scaleType:"band",data:Array.from({length:Math.max(...i.map(K=>(K.data??u??[]).length))},(K,_)=>_)},j=S({},I,{series:i.map(K=>S({type:"bar"},K,{layout:B?"horizontal":"vertical"})),width:o,height:s,margin:a,colors:c,dataset:u,xAxis:t??(B?void 0:[S({id:zt},ee)]),yAxis:n??(B?[S({id:qa},ee)]:void 0),sx:l,highlightedItem:D,onHighlightChange:E,disableAxisListener:f?.trigger!=="axis"&&p?.x==="none"&&p?.y==="none"&&!d,className:C,skipAnimation:k}),U={onItemClick:$,slots:O,slotProps:w,borderRadius:x,barLabel:P},W={onAxisClick:d},X={vertical:g?.vertical,horizontal:g?.horizontal},G={clipPath:`url(#${z})`},Y={id:z},Z={slots:O,slotProps:w,loading:R},Q={topAxis:h,leftAxis:y,rightAxis:b,bottomAxis:v,slots:O,slotProps:w},J=S({},B?{y:"band"}:{x:"band"},p),q=S({},m,{slots:O,slotProps:w}),H=S({},f,{slots:O,slotProps:w});return{chartContainerProps:j,barPlotProps:U,axisClickHandlerProps:W,gridProps:X,clipPathProps:Y,clipPathGroupProps:G,overlayProps:Z,chartsAxisProps:Q,axisHighlightProps:J,legendProps:q,tooltipProps:H,children:T}},rh=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiBarChart"}),{chartContainerProps:o,barPlotProps:s,axisClickHandlerProps:a,gridProps:c,clipPathProps:u,clipPathGroupProps:l,overlayProps:f,chartsAxisProps:d,axisHighlightProps:p,legendProps:m,tooltipProps:g,children:h}=lC(i);return A.jsxs(qo,S({ref:n},o,{children:[i.onAxisClick&&A.jsx(Oc,S({},a)),A.jsx(vc,S({},c)),A.jsxs("g",S({},l,{children:[A.jsx(nh,S({},s)),A.jsx(wc,S({},f)),A.jsx(Yo,S({},p))]})),A.jsx(Uo,S({},d)),A.jsx(Wo,S({},m)),!i.loading&&A.jsx(Bo,S({},g)),A.jsx(xc,S({},u)),h]}))});process.env.NODE_ENV!=="production"&&(rh.propTypes={axisHighlight:r.shape({x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])}),barLabel:r.oneOfType([r.oneOf(["value"]),r.func]),borderRadius:r.number,bottomAxis:r.oneOfType([r.object,r.string]),children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,grid:r.shape({horizontal:r.bool,vertical:r.bool}),height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),layout:r.oneOf(["horizontal","vertical"]),leftAxis:r.oneOfType([r.object,r.string]),legend:r.shape({classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object}),loading:r.bool,margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onAxisClick:r.func,onHighlightChange:r.func,onItemClick:r.func,resolveSizeBeforeRender:r.bool,rightAxis:r.oneOfType([r.object,r.string]),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,tooltip:r.shape({axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])}),topAxis:r.oneOfType([r.object,r.string]),viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func}))});const uC=({title:e,subTitle:t,withPaper:n=!0,height:i=300,sx:o,...s})=>{const a=Ut(),c=A.jsx(rh,{height:i,sx:{width:"100%",...o},slotProps:{legend:{labelStyle:{fontSize:12,fill:a.palette.text.secondary}}},...s});return n?A.jsxs(nt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&A.jsxs(nt.Box,{sx:{mb:2},children:[e&&A.jsx(nt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&A.jsx(nt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c},fC=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function dC(e){return Re("MuiPieArc",e)}Ne("MuiPieArc",["root","highlighted","faded"]);const pC=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o,dataIndex:s}=e,a={root:["root",`series-${n}`,`data-index-${s}`,o&&"highlighted",i&&"faded"]};return Ie(a,dC,t)},hC=ye(Rt.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,transition:"opacity 0.2s ease-in, fill 0.2s ease-in, filter 0.2s ease-in"}));function ih(e){const{classes:t,color:n,cornerRadius:i,dataIndex:o,endAngle:s,id:a,innerRadius:c,isFaded:u,isHighlighted:l,onClick:f,outerRadius:d,paddingAngle:p,startAngle:m}=e,g=ie(e,fC),h={id:a,dataIndex:o,classes:t,color:n,isFaded:u,isHighlighted:l},y=pC(h),b=er();return A.jsx(hC,S({d:Vn([m,s,p,c,d,i],(v,T,O,w,k,R)=>Mf().cornerRadius(R)({padAngle:O,startAngle:v,endAngle:T,innerRadius:w,outerRadius:k})),visibility:Vn([m,s],(v,T)=>v===T?"hidden":"visible"),onClick:f,cursor:f?"pointer":"unset",ownerState:h,className:y.root,fill:h.color,opacity:h.isFaded?.3:1,filter:h.isHighlighted?"brightness(120%)":"none",strokeWidth:1,strokeLinejoin:"round"},g,b({type:"pie",seriesId:a,dataIndex:o})))}process.env.NODE_ENV!=="production"&&(ih.propTypes={classes:r.object,dataIndex:r.number.isRequired,highlightScope:r.shape({fade:r.oneOf(["global","none","series"]),faded:r.oneOf(["global","none","series"]),highlight:r.oneOf(["item","none","series"]),highlighted:r.oneOf(["item","none","series"])}),id:r.oneOfType([r.number,r.string]).isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired});const mC={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,color:a,isFaded:c})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,startAngle:(i+o)/2,endAngle:(i+o)/2,paddingAngle:s,fill:a,opacity:c?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,color:a,isFaded:c})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,fill:a,opacity:c?.3:1}),config:{tension:120,friction:14,clamp:!0}},gC={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:n,cornerRadius:i,startAngle:o,endAngle:s,paddingAngle:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:i,arcLabelRadius:n,startAngle:(o+s)/2,endAngle:(o+s)/2,paddingAngle:a,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,arcLabelRadius:a})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,arcLabelRadius:a,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function oh(e){const{id:t,data:n,faded:i,highlighted:o,paddingAngle:s=0,innerRadius:a=0,arcLabelRadius:c,outerRadius:u,cornerRadius:l=0}=e,{isFaded:f,isHighlighted:d}=_o();return M.useMemo(()=>n.map((m,g)=>{const h={seriesId:t,dataIndex:g},y=d(h),b=!y&&f(h),v=S({additionalRadius:0},b&&i||y&&o||{}),T=Math.max(0,Math.PI*(v.paddingAngle??s)/180),O=Math.max(0,v.innerRadius??a),w=Math.max(0,v.outerRadius??u+v.additionalRadius),k=v.cornerRadius??l,R=v.arcLabelRadius??c??(O+w)/2;return S({},m,v,{isFaded:b,isHighlighted:y,paddingAngle:T,innerRadius:O,outerRadius:w,cornerRadius:k,arcLabelRadius:R})}),[l,a,u,s,c,n,i,o,f,d,t])}const yC=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function sh(e){const{slots:t,slotProps:n,innerRadius:i=0,outerRadius:o,cornerRadius:s=0,paddingAngle:a=0,id:c,highlighted:u,faded:l={additionalRadius:-5},data:f,onItemClick:d,skipAnimation:p}=e,m=ie(e,yC),g=oh({innerRadius:i,outerRadius:o,cornerRadius:s,paddingAngle:a,id:c,highlighted:u,faded:l,data:f}),h=en(g,S({},mC,{immediate:p})),{highlightScope:y}=_o();if(f.length===0)return null;const b=t?.pieArc??ih;return A.jsx("g",S({},m,{children:h(({startAngle:v,endAngle:T,paddingAngle:O,innerRadius:w,outerRadius:k,cornerRadius:R},N,$,D)=>A.jsx(b,S({startAngle:v,endAngle:T,paddingAngle:O,innerRadius:w,outerRadius:k,cornerRadius:R,id:c,color:N.color,dataIndex:D,highlightScope:y,isFaded:N.isFaded,isHighlighted:N.isHighlighted,onClick:d&&(E=>{d(E,{type:"pie",seriesId:c,dataIndex:D},N)})},n?.pieArc)))}))}process.env.NODE_ENV!=="production"&&(sh.propTypes={arcLabelRadius:r.number,cornerRadius:r.number,data:r.arrayOf(r.shape({color:r.string.isRequired,endAngle:r.number.isRequired,formattedValue:r.string.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,index:r.number.isRequired,label:r.oneOfType([r.func,r.string]),padAngle:r.number.isRequired,startAngle:r.number.isRequired,value:r.number.isRequired})).isRequired,faded:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),highlighted:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),id:r.oneOfType([r.number,r.string]).isRequired,innerRadius:r.number,onItemClick:r.func,outerRadius:r.number.isRequired,paddingAngle:r.number,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const bC=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function xC(e){return Re("MuiPieArcLabel",e)}Ne("MuiPieArcLabel",["root","highlighted","faded"]);const vC=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,xC,t)},OC=ye(Rt.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),Yu=(e,t)=>(n,i,o,s,a)=>{if(!e)return 0;const[c,u]=Mf().cornerRadius(a).centroid({padAngle:o,startAngle:n,endAngle:i,innerRadius:s,outerRadius:s});return t==="x"?c:u};function ah(e){const{id:t,classes:n,color:i,startAngle:o,endAngle:s,paddingAngle:a,arcLabelRadius:c,cornerRadius:u,formattedArcLabel:l,isHighlighted:f,isFaded:d,style:p}=e,m=ie(e,bC),h=vC({id:t,classes:n,isFaded:d,isHighlighted:f});return A.jsx(OC,S({className:h.root},m,{style:S({x:Vn([o,s,a,c,u],Yu(l,"x")),y:Vn([o,s,a,c,u],Yu(l,"y"))},p),children:l}))}process.env.NODE_ENV!=="production"&&(ah.propTypes={classes:r.object,color:r.string.isRequired,formattedArcLabel:r.string,id:r.oneOfType([r.number,r.string]).isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired});const wC=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],TC=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],kC=180/Math.PI;function CC(e,t,n){if(!e||(n.endAngle-n.startAngle)*kC<t)return null;switch(e){case"label":return ht(n.label,"arc");case"value":return n.value?.toString();case"formattedValue":return n.formattedValue;default:return e(S({},n,{label:ht(n.label,"arc")}))}}function ch(e){const{arcLabel:t,arcLabelMinAngle:n=0,arcLabelRadius:i,cornerRadius:o=0,data:s,faded:a={additionalRadius:-5},highlighted:c,id:u,innerRadius:l,outerRadius:f,paddingAngle:d=0,skipAnimation:p,slotProps:m,slots:g}=e,h=ie(e,wC),y=oh({innerRadius:l,outerRadius:f,arcLabelRadius:i,cornerRadius:o,paddingAngle:d,id:u,highlighted:c,faded:a,data:s}),b=en(y,S({},gC,{immediate:p}));if(s.length===0)return null;const v=g?.pieArcLabel??ah;return A.jsx("g",S({},h,{children:b((T,O)=>{let{startAngle:w,endAngle:k,paddingAngle:R,innerRadius:N,outerRadius:$,arcLabelRadius:D,cornerRadius:E}=T,x=ie(T,TC);return A.jsx(v,S({startAngle:w,endAngle:k,paddingAngle:R,innerRadius:N,outerRadius:$,arcLabelRadius:D,cornerRadius:E,style:x,id:u,color:O.color,isFaded:O.isFaded,isHighlighted:O.isHighlighted,formattedArcLabel:CC(t,n,O)},m?.pieArcLabel))})}))}process.env.NODE_ENV!=="production"&&(ch.propTypes={arcLabel:r.oneOfType([r.oneOf(["formattedValue","label","value"]),r.func]),arcLabelMinAngle:r.number,arcLabelRadius:r.number,cornerRadius:r.number,data:r.arrayOf(r.shape({color:r.string.isRequired,endAngle:r.number.isRequired,formattedValue:r.string.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,index:r.number.isRequired,label:r.oneOfType([r.func,r.string]),padAngle:r.number.isRequired,startAngle:r.number.isRequired,value:r.number.isRequired})).isRequired,faded:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),highlighted:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),id:r.oneOfType([r.number,r.string]).isRequired,innerRadius:r.number,outerRadius:r.number.isRequired,paddingAngle:r.number,skipAnimation:r.bool,slotProps:r.object,slots:r.object});function Gu(e,t){const{height:n,width:i}=t,{cx:o,cy:s}=e,a=Math.min(i,n)/2,c=cn(o??"50%",i),u=cn(s??"50%",n);return{cx:c,cy:u,availableRadius:a}}function lh(e){const{skipAnimation:t,slots:n,slotProps:i,onItemClick:o}=e,s=Lv(),{left:a,top:c,width:u,height:l}=M.useContext(Qn),f=ei(t);if(s===void 0)return null;const{series:d,seriesOrder:p}=s;return A.jsxs("g",{children:[p.map(m=>{const{innerRadius:g,outerRadius:h,cornerRadius:y,paddingAngle:b,data:v,cx:T,cy:O,highlighted:w,faded:k}=d[m],{cx:R,cy:N,availableRadius:$}=Gu({cx:T,cy:O},{width:u,height:l}),D=cn(h??$,$),E=cn(g??0,$);return A.jsx("g",{transform:`translate(${a+R}, ${c+N})`,children:A.jsx(sh,{innerRadius:E,outerRadius:D,cornerRadius:y,paddingAngle:b,id:m,data:v,skipAnimation:f,highlighted:w,faded:k,onItemClick:o,slots:n,slotProps:i})},m)}),p.map(m=>{const{innerRadius:g,outerRadius:h,arcLabelRadius:y,cornerRadius:b,paddingAngle:v,arcLabel:T,arcLabelMinAngle:O,data:w,cx:k,cy:R}=d[m],{cx:N,cy:$,availableRadius:D}=Gu({cx:k,cy:R},{width:u,height:l}),E=cn(h??D,D),x=cn(g??0,D),P=y===void 0?(E+x)/2:cn(y,D);return A.jsx("g",{transform:`translate(${a+N}, ${c+$})`,children:A.jsx(ch,{innerRadius:x,outerRadius:E??D,arcLabelRadius:P,cornerRadius:b,paddingAngle:v,id:m,data:w,skipAnimation:f,arcLabel:T,arcLabelMinAngle:O,slots:n,slotProps:i})},m)})]})}process.env.NODE_ENV!=="production"&&(lh.propTypes={onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const AC=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],SC={top:5,bottom:5,left:5,right:100},PC={top:5,bottom:5,left:100,right:5},uh=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiPieChart"}),{xAxis:o,yAxis:s,series:a,width:c,height:u,margin:l,colors:f,sx:d,tooltip:p={trigger:"item"},axisHighlight:m={x:"none",y:"none"},skipAnimation:g,legend:h,topAxis:y=null,leftAxis:b=null,rightAxis:v=null,bottomAxis:T=null,children:O,slots:w,slotProps:k,onItemClick:R,loading:N,highlightedItem:$,onHighlightChange:D,className:E}=i,x=ie(i,AC),P=bo(),C=S({},P?PC:SC,l),I=S({direction:"column",position:{vertical:"middle",horizontal:P?"left":"right"}},h);return A.jsxs(qo,S({},x,{ref:n,series:a.map(F=>S({type:"pie"},F)),width:c,height:u,margin:C,xAxis:o??[{id:zt,scaleType:"point",data:[...new Array(Math.max(0,...a.map(F=>F.data.length)))].map((F,z)=>z)}],yAxis:s,colors:f,sx:d,disableAxisListener:p?.trigger!=="axis"&&m?.x==="none"&&m?.y==="none",highlightedItem:$,onHighlightChange:D,className:E,skipAnimation:g,children:[A.jsx(Uo,{topAxis:y,leftAxis:b,rightAxis:v,bottomAxis:T,slots:w,slotProps:k}),A.jsx(lh,{slots:w,slotProps:k,onItemClick:R}),A.jsx(wc,{loading:N,slots:w,slotProps:k}),A.jsx(Wo,S({},I,{slots:w,slotProps:k})),A.jsx(Yo,S({},m)),!N&&A.jsx(Bo,S({},p,{slots:w,slotProps:k})),O]}))});process.env.NODE_ENV!=="production"&&(uh.propTypes={axisHighlight:r.shape({x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])}),bottomAxis:r.oneOfType([r.object,r.string]),children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),leftAxis:r.oneOfType([r.object,r.string]),legend:r.shape({classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object}),loading:r.bool,margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onHighlightChange:r.func,onItemClick:r.func,resolveSizeBeforeRender:r.bool,rightAxis:r.oneOfType([r.object,r.string]),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,tooltip:r.shape({axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])}),topAxis:r.oneOfType([r.object,r.string]),viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func}))});const RC=({title:e,subTitle:t,withPaper:n=!0,height:i=300,sx:o,...s})=>{const a=Ut(),c=A.jsx(uh,{height:i,sx:{width:"100%",...o},slotProps:{legend:{labelStyle:{fontSize:12,fill:a.palette.text.secondary}}},...s});return n?A.jsxs(nt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&A.jsxs(nt.Box,{sx:{mb:2},children:[e&&A.jsx(nt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&A.jsx(nt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c};exports.CodeplexBarChart=uC;exports.CodeplexLineChart=Fk;exports.CodeplexPieChart=RC;
|
|
34
|
+
export default theme;`}function ld(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const J0=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let i=0;i<t.length;i+=1)r+=+t[i];return r};function ev(e){Object.assign(e,{alpha(t,r){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:zp(t,J0(r))},lighten(t,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${ld(r)})`:gs(t,r)},darken(t,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${ld(r)})`:ms(t,r)}})}function rc(e={},...t){const{breakpoints:r,mixins:i={},spacing:o,palette:s={},transitions:a={},typography:c={},shape:u,colorSpace:l,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":pn(20));const f=Vc({...s,colorSpace:l}),p=Bc(e);let h=dt(p,{mixins:F0(p.breakpoints,i),palette:f,shadows:U0.slice(),typography:B0(f,c),transitions:K0(a),zIndex:{...Z0}});if(h=dt(h,d),h=t.reduce((g,m)=>dt(g,m),h),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(y,b)=>{let O;for(O in y){const S=y[O];if(g.includes(O)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const v=Te("",O);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${O}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
35
|
+
`))}y[O]={}}}};Object.keys(h.components).forEach(y=>{const b=h.components[y].styleOverrides;b&&y.startsWith("Mui")&&m(b,y)})}return h.unstable_sxConfig={...Ci,...d?.unstable_sxConfig},h.unstable_sx=function(m){return Or({sx:m,theme:this})},h.toRuntimeSource=Up,ev(h),h}function tv(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const nv=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=tv(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Yp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Wp(e){return e==="dark"?nv:[]}function rv(e){const{palette:t={mode:"light"},opacity:r,overlays:i,colorSpace:o,...s}=e,a=Vc({...t,colorSpace:o});return{palette:a,opacity:{...Yp(a.mode),...r},overlays:i||Wp(a.mode),...s}}function iv(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ov=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],sv=e=>(t,r)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return ov(e.cssVarPrefix).forEach(c=>{a[c]=r[c],delete r[c]}),s==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:a}}:s?{[s.replace("%s",t)]:a,[`${i}, ${s.replace("%s",t)}`]:r}:{[i]:{...r,...a}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:r}};if(s)return s.replace("%s",String(t))}return i};function av(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function j(e,t,r){!e[t]&&r&&(e[t]=r)}function Zr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Fp(e)}function Wt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Kr(Zr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
36
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function cv(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Nt=e=>{try{return e()}catch{}},lv=(e="mui")=>w0(e);function Pa(e,t,r,i,o){if(!r)return;r=r===!0?{}:r;const s=o==="dark"?"dark":"light";if(!i){t[o]=rv({...r,palette:{mode:s,...r?.palette},colorSpace:e});return}const{palette:a,...c}=rc({...i,palette:{mode:s,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Yp(s),...r?.opacity},overlays:r?.overlays||Wp(s)},c}function uv(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=iv,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...d}=e,f=Object.keys(r)[0],p=i||(r.light&&f!=="light"?"light":f),h=lv(s),{[p]:g,light:m,dark:y,...b}=r,O={...b};let S=g;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:pn(21,p));let v;a&&(v="oklch");const T=Pa(v,O,S,d,p);m&&!O.light&&Pa(v,O,m,void 0,"light"),y&&!O.dark&&Pa(v,O,y,void 0,"dark");let k={defaultColorScheme:p,...T,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:l,getCssVar:h,colorSchemes:O,font:{...q0(T.typography),...T.font},spacing:cv(d.spacing)};Object.keys(k.colorSchemes).forEach($=>{const x=k.colorSchemes[$].palette,A=N=>{const q=N.split("-"),F=q[1],G=q[2];return h(N,x[F][G])};x.mode==="light"&&(j(x.common,"background","#fff"),j(x.common,"onBackground","#000")),x.mode==="dark"&&(j(x.common,"background","#000"),j(x.common,"onBackground","#fff"));function R(N,q,F){if(v){let G;return N===Cn&&(G=`transparent ${((1-F)*100).toFixed(0)}%`),N===he&&(G=`#000 ${(F*100).toFixed(0)}%`),N===me&&(G=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${v}, ${q}, ${G})`}return N(q,F)}if(av(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){j(x.Alert,"errorColor",R(he,x.error.light,.6)),j(x.Alert,"infoColor",R(he,x.info.light,.6)),j(x.Alert,"successColor",R(he,x.success.light,.6)),j(x.Alert,"warningColor",R(he,x.warning.light,.6)),j(x.Alert,"errorFilledBg",A("palette-error-main")),j(x.Alert,"infoFilledBg",A("palette-info-main")),j(x.Alert,"successFilledBg",A("palette-success-main")),j(x.Alert,"warningFilledBg",A("palette-warning-main")),j(x.Alert,"errorFilledColor",Nt(()=>x.getContrastText(x.error.main))),j(x.Alert,"infoFilledColor",Nt(()=>x.getContrastText(x.info.main))),j(x.Alert,"successFilledColor",Nt(()=>x.getContrastText(x.success.main))),j(x.Alert,"warningFilledColor",Nt(()=>x.getContrastText(x.warning.main))),j(x.Alert,"errorStandardBg",R(me,x.error.light,.9)),j(x.Alert,"infoStandardBg",R(me,x.info.light,.9)),j(x.Alert,"successStandardBg",R(me,x.success.light,.9)),j(x.Alert,"warningStandardBg",R(me,x.warning.light,.9)),j(x.Alert,"errorIconColor",A("palette-error-main")),j(x.Alert,"infoIconColor",A("palette-info-main")),j(x.Alert,"successIconColor",A("palette-success-main")),j(x.Alert,"warningIconColor",A("palette-warning-main")),j(x.AppBar,"defaultBg",A("palette-grey-100")),j(x.Avatar,"defaultBg",A("palette-grey-400")),j(x.Button,"inheritContainedBg",A("palette-grey-300")),j(x.Button,"inheritContainedHoverBg",A("palette-grey-A100")),j(x.Chip,"defaultBorder",A("palette-grey-400")),j(x.Chip,"defaultAvatarColor",A("palette-grey-700")),j(x.Chip,"defaultIconColor",A("palette-grey-700")),j(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(x.LinearProgress,"primaryBg",R(me,x.primary.main,.62)),j(x.LinearProgress,"secondaryBg",R(me,x.secondary.main,.62)),j(x.LinearProgress,"errorBg",R(me,x.error.main,.62)),j(x.LinearProgress,"infoBg",R(me,x.info.main,.62)),j(x.LinearProgress,"successBg",R(me,x.success.main,.62)),j(x.LinearProgress,"warningBg",R(me,x.warning.main,.62)),j(x.Skeleton,"bg",v?R(Cn,x.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),j(x.Slider,"primaryTrack",R(me,x.primary.main,.62)),j(x.Slider,"secondaryTrack",R(me,x.secondary.main,.62)),j(x.Slider,"errorTrack",R(me,x.error.main,.62)),j(x.Slider,"infoTrack",R(me,x.info.main,.62)),j(x.Slider,"successTrack",R(me,x.success.main,.62)),j(x.Slider,"warningTrack",R(me,x.warning.main,.62));const N=v?R(he,x.background.default,.6825):Qi(x.background.default,.8);j(x.SnackbarContent,"bg",N),j(x.SnackbarContent,"color",Nt(()=>v?nc.text.primary:x.getContrastText(N))),j(x.SpeedDialAction,"fabHoverBg",Qi(x.background.paper,.15)),j(x.StepConnector,"border",A("palette-grey-400")),j(x.StepContent,"border",A("palette-grey-400")),j(x.Switch,"defaultColor",A("palette-common-white")),j(x.Switch,"defaultDisabledColor",A("palette-grey-100")),j(x.Switch,"primaryDisabledColor",R(me,x.primary.main,.62)),j(x.Switch,"secondaryDisabledColor",R(me,x.secondary.main,.62)),j(x.Switch,"errorDisabledColor",R(me,x.error.main,.62)),j(x.Switch,"infoDisabledColor",R(me,x.info.main,.62)),j(x.Switch,"successDisabledColor",R(me,x.success.main,.62)),j(x.Switch,"warningDisabledColor",R(me,x.warning.main,.62)),j(x.TableCell,"border",R(me,R(Cn,x.divider,1),.88)),j(x.Tooltip,"bg",R(Cn,x.grey[700],.92))}if(x.mode==="dark"){j(x.Alert,"errorColor",R(me,x.error.light,.6)),j(x.Alert,"infoColor",R(me,x.info.light,.6)),j(x.Alert,"successColor",R(me,x.success.light,.6)),j(x.Alert,"warningColor",R(me,x.warning.light,.6)),j(x.Alert,"errorFilledBg",A("palette-error-dark")),j(x.Alert,"infoFilledBg",A("palette-info-dark")),j(x.Alert,"successFilledBg",A("palette-success-dark")),j(x.Alert,"warningFilledBg",A("palette-warning-dark")),j(x.Alert,"errorFilledColor",Nt(()=>x.getContrastText(x.error.dark))),j(x.Alert,"infoFilledColor",Nt(()=>x.getContrastText(x.info.dark))),j(x.Alert,"successFilledColor",Nt(()=>x.getContrastText(x.success.dark))),j(x.Alert,"warningFilledColor",Nt(()=>x.getContrastText(x.warning.dark))),j(x.Alert,"errorStandardBg",R(he,x.error.light,.9)),j(x.Alert,"infoStandardBg",R(he,x.info.light,.9)),j(x.Alert,"successStandardBg",R(he,x.success.light,.9)),j(x.Alert,"warningStandardBg",R(he,x.warning.light,.9)),j(x.Alert,"errorIconColor",A("palette-error-main")),j(x.Alert,"infoIconColor",A("palette-info-main")),j(x.Alert,"successIconColor",A("palette-success-main")),j(x.Alert,"warningIconColor",A("palette-warning-main")),j(x.AppBar,"defaultBg",A("palette-grey-900")),j(x.AppBar,"darkBg",A("palette-background-paper")),j(x.AppBar,"darkColor",A("palette-text-primary")),j(x.Avatar,"defaultBg",A("palette-grey-600")),j(x.Button,"inheritContainedBg",A("palette-grey-800")),j(x.Button,"inheritContainedHoverBg",A("palette-grey-700")),j(x.Chip,"defaultBorder",A("palette-grey-700")),j(x.Chip,"defaultAvatarColor",A("palette-grey-300")),j(x.Chip,"defaultIconColor",A("palette-grey-300")),j(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(x.LinearProgress,"primaryBg",R(he,x.primary.main,.5)),j(x.LinearProgress,"secondaryBg",R(he,x.secondary.main,.5)),j(x.LinearProgress,"errorBg",R(he,x.error.main,.5)),j(x.LinearProgress,"infoBg",R(he,x.info.main,.5)),j(x.LinearProgress,"successBg",R(he,x.success.main,.5)),j(x.LinearProgress,"warningBg",R(he,x.warning.main,.5)),j(x.Skeleton,"bg",v?R(Cn,x.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),j(x.Slider,"primaryTrack",R(he,x.primary.main,.5)),j(x.Slider,"secondaryTrack",R(he,x.secondary.main,.5)),j(x.Slider,"errorTrack",R(he,x.error.main,.5)),j(x.Slider,"infoTrack",R(he,x.info.main,.5)),j(x.Slider,"successTrack",R(he,x.success.main,.5)),j(x.Slider,"warningTrack",R(he,x.warning.main,.5));const N=v?R(me,x.background.default,.985):Qi(x.background.default,.98);j(x.SnackbarContent,"bg",N),j(x.SnackbarContent,"color",Nt(()=>v?Vp.text.primary:x.getContrastText(N))),j(x.SpeedDialAction,"fabHoverBg",Qi(x.background.paper,.15)),j(x.StepConnector,"border",A("palette-grey-600")),j(x.StepContent,"border",A("palette-grey-600")),j(x.Switch,"defaultColor",A("palette-grey-300")),j(x.Switch,"defaultDisabledColor",A("palette-grey-600")),j(x.Switch,"primaryDisabledColor",R(he,x.primary.main,.55)),j(x.Switch,"secondaryDisabledColor",R(he,x.secondary.main,.55)),j(x.Switch,"errorDisabledColor",R(he,x.error.main,.55)),j(x.Switch,"infoDisabledColor",R(he,x.info.main,.55)),j(x.Switch,"successDisabledColor",R(he,x.success.main,.55)),j(x.Switch,"warningDisabledColor",R(he,x.warning.main,.55)),j(x.TableCell,"border",R(he,R(Cn,x.divider,1),.68)),j(x.Tooltip,"bg",R(Cn,x.grey[700],.92))}Wt(x.background,"default"),Wt(x.background,"paper"),Wt(x.common,"background"),Wt(x.common,"onBackground"),Wt(x,"divider"),Object.keys(x).forEach(N=>{const q=x[N];N!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&j(x[N],"mainChannel",Kr(Zr(q.main))),q.light&&j(x[N],"lightChannel",Kr(Zr(q.light))),q.dark&&j(x[N],"darkChannel",Kr(Zr(q.dark))),q.contrastText&&j(x[N],"contrastTextChannel",Kr(Zr(q.contrastText))),N==="text"&&(Wt(x[N],"primary"),Wt(x[N],"secondary")),N==="action"&&(q.active&&Wt(x[N],"active"),q.selected&&Wt(x[N],"selected")))})}),k=t.reduce(($,x)=>dt($,x),k);const w={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:sv(k),enableContrastVars:a},{vars:M,generateThemeVars:I,generateStyleSheets:_}=P0(k,w);return k.vars=M,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([$,x])=>{k[$]=x}),k.generateThemeVars=I,k.generateStyleSheets=_,k.generateSpacing=function(){return Pp(d.spacing,Fc(this))},k.getColorSchemeSelector=R0(u),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...Ci,...d?.unstable_sxConfig},k.unstable_sx=function(x){return Or({sx:x,theme:this})},k.toRuntimeSource=Up,k}function ud(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Vc({...r===!0?{}:r.palette,mode:t})})}function dv(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r?.mode,...a}=e,c=s||"light",u=o?.[c],l={...o,...r?{[c]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return rc(e,...t);let d=r;"palette"in e||l[c]&&(l[c]!==!0?d=l[c].palette:c==="dark"&&(d={mode:"dark"}));const f=rc({...e,palette:d},...t);return f.defaultColorScheme=c,f.colorSchemes=l,f.palette.mode==="light"&&(f.colorSchemes.light={...l.light!==!0&&l.light,palette:f.palette},ud(f,"dark",l.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:f.palette},ud(f,"light",l.light)),f}return!r&&!("light"in l)&&c==="light"&&(l.light=!0),uv({...a,colorSchemes:l,defaultColorScheme:c,...typeof i!="boolean"&&i},...t)}const Gc=dv();function Xe(){const e=Ip(Gc);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[es]||e}function Ke({props:e,name:t}){return l0({props:e,name:t,defaultTheme:Gc,themeId:es})}function fv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xp=e=>fv(e)&&e!=="classes",re=i0({themeId:es,defaultTheme:Gc,rootShouldForwardProp:Xp});function te(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function mn(...e){const t=P.useRef(void 0),r=P.useCallback(i=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,c=a(i);return typeof c=="function"?c:()=>{a(null)}}return s.current=i,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return P.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}function pv(e){return typeof e=="string"}function hv(e,t,r){return e===void 0||pv(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function mv(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{r[i]=e[i]}),r}function dd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function gv(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const h=ge(r?.className,s,o?.className,i?.className),g={...r?.style,...o?.style,...i?.style},m={...r,...o,...i};return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const a=mv({...o,...i}),c=dd(i),u=dd(o),l=t(a),d=ge(l?.className,r?.className,s,o?.className,i?.className),f={...l?.style,...r?.style,...o?.style,...i?.style},p={...l,...r,...u,...c};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function yv(e,t,r){return typeof e=="function"?e(t,r):e}function $t(e){const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:yv(r,i),{props:c,internalRef:u}=gv({...s,externalSlotProps:a}),l=mn(u,a?.ref,e.additionalProps?.ref);return hv(t,{...c,ref:l},i)}function De(e){const t=P.useRef(e);return Le(()=>{t.current=e}),P.useRef((...r)=>(0,t.current)(...r)).current}var bv=(e,t,r)=>{if(t.length===1&&t[0]===r){let i=!1;try{const o={};e(o)===o&&(i=!0)}catch{}if(i){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
37
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
38
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
39
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},xv=(e,t,r)=>{const{memoize:i,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,c=i(()=>({}),...o);if(!(c.apply(null,s)===c.apply(null,a))){let l;try{throw new Error}catch(d){({stack:l}=d)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
40
|
+
This means your output selector will likely run more frequently than intended.
|
|
41
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
42
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:a,stack:l})}},vv={inputStabilityCheck:"once",identityFunctionCheck:"once"},wo=Symbol("NOT_FOUND");function Ov(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Tv(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function kv(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${r}]`)}}var fd=e=>Array.isArray(e)?e:[e];function Sv(e){const t=Array.isArray(e[0])?e[0]:e;return kv(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function pd(e,t){const r=[],{length:i}=e;for(let o=0;o<i;o++)r.push(e[o].apply(null,t));return r}var Cv=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:i}={...vv,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:bv},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&e,run:xv}}};function wv(e){let t;return{get(r){return t&&e(t.key,r)?t.value:wo},put(r,i){t={key:r,value:i}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Ev(e,t){let r=[];function i(c){const u=r.findIndex(l=>t(c,l.key));if(u>-1){const l=r[u];return u>0&&(r.splice(u,1),r.unshift(l)),l.value}return wo}function o(c,u){i(c)===wo&&(r.unshift({key:c,value:u}),r.length>e&&r.pop())}function s(){return r}function a(){r=[]}return{get:i,put:o,getEntries:s,clear:a}}var Av=(e,t)=>e===t;function Pv(e){return function(r,i){if(r===null||i===null||r.length!==i.length)return!1;const{length:o}=r;for(let s=0;s<o;s++)if(!e(r[s],i[s]))return!1;return!0}}function Rv(e,t){const r=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:i=Av,maxSize:o=1,resultEqualityCheck:s}=r,a=Pv(i);let c=0;const u=o<=1?wv(a):Ev(o,a);function l(){let d=u.get(arguments);if(d===wo){if(d=e.apply(null,arguments),c++,s){const p=u.getEntries().find(h=>s(h.value,d));p&&(d=p.value,c!==0&&c--)}u.put(arguments,d)}return d}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}var Iv=class{constructor(e){this.value=e}deref(){return this.value}},Mv=typeof WeakRef<"u"?WeakRef:Iv,$v=0,hd=1;function Ji(){return{s:$v,v:void 0,o:null,p:null}}function Kp(e,t={}){let r=Ji();const{resultEqualityCheck:i}=t;let o,s=0;function a(){let c=r;const{length:u}=arguments;for(let f=0,p=u;f<p;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const m=g.get(h);m===void 0?(c=Ji(),g.set(h,c)):c=m}else{let g=c.p;g===null&&(c.p=g=new Map);const m=g.get(h);m===void 0?(c=Ji(),g.set(h,c)):c=m}}const l=c;let d;if(c.s===hd)d=c.v;else if(d=e.apply(null,arguments),s++,i){const f=o?.deref?.()??o;f!=null&&i(f,d)&&(d=f,s!==0&&s--),o=typeof d=="object"&&d!==null||typeof d=="function"?new Mv(d):d}return l.s=hd,l.v=d,d}return a.clearCache=()=>{r=Ji(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function Zp(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...o)=>{let s=0,a=0,c,u={},l=o.pop();typeof l=="object"&&(u=l,l=o.pop()),Ov(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...r,...u},{memoize:f,memoizeOptions:p=[],argsMemoize:h=Kp,argsMemoizeOptions:g=[],devModeChecks:m={}}=d,y=fd(p),b=fd(g),O=Sv(o),S=f(function(){return s++,l.apply(null,arguments)},...y);let v=!0;const T=h(function(){a++;const w=pd(O,arguments);if(c=S.apply(null,w),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:M,inputStabilityCheck:I}=Cv(v,m);if(M.shouldRun&&M.run(l,w,c),I.shouldRun){const _=pd(O,arguments);I.run({inputSelectorResults:w,inputSelectorResultsCopy:_},{memoize:f,memoizeOptions:y},arguments)}v&&(v=!1)}return c},...b);return Object.assign(T,{resultFunc:l,memoizedResultFunc:S,dependencies:O,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:h})};return Object.assign(i,{withTypes:()=>i}),i}var _v=Zp(Kp),Dv=Object.assign((e,t=_v)=>{Tv(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),i=r.map(s=>e[s]);return t(i,(...s)=>s.reduce((a,c,u)=>(a[r[u]]=c,a),{}))},{withTypes:()=>Dv});const Lv=Zp({memoize:Rv,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),U=(e,t,r,i,o,s,a,c,...u)=>{if(u.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&r&&i&&o&&s&&a&&c)l=(d,f,p,h)=>{const g=e(d,f,p,h),m=t(d,f,p,h),y=r(d,f,p,h),b=i(d,f,p,h),O=o(d,f,p,h),S=s(d,f,p,h),v=a(d,f,p,h);return c(g,m,y,b,O,S,v,f,p,h)};else if(e&&t&&r&&i&&o&&s&&a)l=(d,f,p,h)=>{const g=e(d,f,p,h),m=t(d,f,p,h),y=r(d,f,p,h),b=i(d,f,p,h),O=o(d,f,p,h),S=s(d,f,p,h);return a(g,m,y,b,O,S,f,p,h)};else if(e&&t&&r&&i&&o&&s)l=(d,f,p,h)=>{const g=e(d,f,p,h),m=t(d,f,p,h),y=r(d,f,p,h),b=i(d,f,p,h),O=o(d,f,p,h);return s(g,m,y,b,O,f,p,h)};else if(e&&t&&r&&i&&o)l=(d,f,p,h)=>{const g=e(d,f,p,h),m=t(d,f,p,h),y=r(d,f,p,h),b=i(d,f,p,h);return o(g,m,y,b,f,p,h)};else if(e&&t&&r&&i)l=(d,f,p,h)=>{const g=e(d,f,p,h),m=t(d,f,p,h),y=r(d,f,p,h);return i(g,m,y,f,p,h)};else if(e&&t&&r)l=(d,f,p,h)=>{const g=e(d,f,p,h),m=t(d,f,p,h);return r(g,m,f,p,h)};else if(e&&t)l=(d,f,p,h)=>{const g=e(d,f,p,h);return t(g,f,p,h)};else if(e)l=e;else throw new Error("Missing arguments");return l},ys=e=>(...t)=>{const r=new WeakMap;let i=1;const o=t[t.length-1],s=t.length-1||1,a=Math.max(o.length-s,0);if(a>3)throw new Error("Unsupported number of arguments");return(u,l,d,f)=>{let p=u.__cacheKey__;p||(p={id:i},u.__cacheKey__=p,i+=1);let h=r.get(p);if(!h){const g=t.length===1?[b=>b,o]:t;let m=t;const y=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{m=[...g.slice(0,-1),()=>y[0],o];break}case 2:{m=[...g.slice(0,-1),()=>y[0],()=>y[1],o];break}case 3:{m=[...g.slice(0,-1),()=>y[0],()=>y[1],()=>y[2],o];break}default:throw new Error("Unsupported number of arguments")}e&&(m=[...m,e]),h=Lv(...m),h.selectorArgs=y,r.set(p,h)}switch(a){case 3:h.selectorArgs[2]=f;case 2:h.selectorArgs[1]=d;case 1:h.selectorArgs[0]=l}switch(a){case 0:return h(u);case 1:return h(u,l);case 2:return h(u,l,d);case 3:return h(u,l,d,f);default:throw new Error("unreachable")}}},ce=ys();var eo={exports:{}},Ra={};var md;function Nv(){if(md)return Ra;md=1;var e=Re;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function c(f,p){var h=p(),g=i({inst:{value:h,getSnapshot:p}}),m=g[0].inst,y=g[1];return s(function(){m.value=h,m.getSnapshot=p,u(m)&&y({inst:m})},[f,h,p]),o(function(){return u(m)&&y({inst:m}),f(function(){u(m)&&y({inst:m})})},[f]),a(h),h}function u(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!r(f,h)}catch{return!0}}function l(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:c;return Ra.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Ra}var Ia={};var gd;function jv(){return gd||(gd=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}function t(h,g){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!f){var y=g();s(m,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=a({inst:{value:m,getSnapshot:g}});var b=y[0].inst,O=y[1];return u(function(){b.value=m,b.getSnapshot=g,r(b)&&O({inst:b})},[h,m,g]),c(function(){return r(b)&&O({inst:b}),h(function(){r(b)&&O({inst:b})})},[h]),l(m),m}function r(h){var g=h.getSnapshot;h=h.value;try{var m=g();return!s(h,m)}catch{return!0}}function i(h,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Re,s=typeof Object.is=="function"?Object.is:e,a=o.useState,c=o.useEffect,u=o.useLayoutEffect,l=o.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:t;Ia.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ia}var yd;function Uc(){return yd||(yd=1,process.env.NODE_ENV==="production"?eo.exports=Nv():eo.exports=jv()),eo.exports}var qv=Uc(),to={exports:{}},Ma={};var bd;function Fv(){if(bd)return Ma;bd=1;var e=Re,t=Uc();function r(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var i=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,s=e.useRef,a=e.useEffect,c=e.useMemo,u=e.useDebugValue;return Ma.useSyncExternalStoreWithSelector=function(l,d,f,p,h){var g=s(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=c(function(){function b(k){if(!O){if(O=!0,S=k,k=p(k),h!==void 0&&m.hasValue){var w=m.value;if(h(w,k))return v=w}return v=k}if(w=v,i(S,k))return w;var M=p(k);return h!==void 0&&h(w,M)?(S=k,w):(S=k,v=M)}var O=!1,S,v,T=f===void 0?null:f;return[function(){return b(d())},T===null?void 0:function(){return b(T())}]},[d,f,p,h]);var y=o(l,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),u(y),y},Ma}var $a={};var xd;function zv(){return xd||(xd=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Re,r=Uc(),i=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,s=t.useRef,a=t.useEffect,c=t.useMemo,u=t.useDebugValue;$a.useSyncExternalStoreWithSelector=function(l,d,f,p,h){var g=s(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=c(function(){function b(k){if(!O){if(O=!0,S=k,k=p(k),h!==void 0&&m.hasValue){var w=m.value;if(h(w,k))return v=w}return v=k}if(w=v,i(S,k))return w;var M=p(k);return h!==void 0&&h(w,M)?(S=k,w):(S=k,v=M)}var O=!1,S,v,T=f===void 0?null:f;return[function(){return b(d())},T===null?void 0:function(){return b(T())}]},[d,f,p,h]);var y=o(l,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),u(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),$a}var vd;function Bv(){return vd||(vd=1,process.env.NODE_ENV==="production"?to.exports=Fv():to.exports=zv()),to.exports}var Hv=Bv();const Qp=parseInt(P.version,10),Vv=Qp>=19,Gv=Vv?Yv:Wv;function Uv(e,t,r,i,o){return Gv(e,t,r,i,o)}function Yv(e,t,r,i,o){const s=P.useCallback(()=>t(e.getSnapshot(),r,i,o),[e,t,r,i,o]);return qv.useSyncExternalStore(e.subscribe,s,s)}function Wv(e,t,r,i,o){return Hv.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,r,i,o))}const Od={};function bs(e,t){const r=P.useRef(Od);return r.current===Od&&(r.current=e(t)),r}const Xv=[];function Jp(e){P.useEffect(e,Xv)}const Kv=()=>{};function Zv(e,t,r){const i=bs(Qv,{store:e,selector:t}).current;i.effect=r,Jp(i.onMount)}function Qv(e){const{store:t,selector:r}=e;let i=r(t.state);const o={effect:Kv,dispose:null,subscribe:()=>{o.dispose??=t.subscribe(s=>{const a=r(s);if(!Object.is(i,a)){const c=i;i=a,o.effect(c,a)}})},onMount:()=>(o.subscribe(),()=>{o.dispose?.(),o.dispose=null})};return o.subscribe(),o}class Yc{static create(t){return new Yc(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){this.state=t,this.updateTick+=1;const r=this.updateTick,i=this.listeners.values();let o;for(;o=i.next(),!o.done;){if(r!==this.updateTick)return;const s=o.value;s(t)}}update(t){for(const r in t)if(!Object.is(this.state[r],t[r])){this.setState(E({},this.state,t));return}}set(t,r){Object.is(this.state[t],r)||this.setState(E({},this.state,{[t]:r}))}use=(t,r,i,o)=>Uv(this,t,r,i,o)}const xs=({params:e,store:t})=>{P.useEffect(()=>{t.set("animation",E({},t.state.animation,{skip:e.skipAnimation}))},[t,e.skipAnimation]);const r=P.useCallback(()=>{let i=!1;return t.set("animation",E({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests+1})),()=>{i||(i=!0,t.set("animation",E({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests-1})))}},[t]);return Le(()=>{if(typeof window>"u"||!window?.matchMedia)return;let o;const s=c=>{c.matches?o=r():o?.()},a=window.matchMedia("(prefers-reduced-motion)");return s(a),a.addEventListener("change",s),()=>{a.removeEventListener("change",s)}},[r,t]),{instance:{disableAnimation:r}}};xs.params={skipAnimation:!0};xs.getDefaultizedParams=({params:e})=>E({},e,{skipAnimation:e.skipAnimation??!1});xs.getInitialState=({skipAnimation:e})=>{const t=typeof window>"u"||!window?.matchMedia,r=process.env.NODE_ENV==="test"?t:!1;return{animation:{skip:e,skipAnimationRequests:r?1:0}}};const Jv=e=>e.animation,eO=U(Jv,e=>e.skip||e.skipAnimationRequests>0);function eh(e,t){const r=P.useRef(!0);P.useEffect(()=>{if(r.current){r.current=!1;return}return e()},t)}function ic(e){return e&&e.ownerDocument||document}function tO(e){return ic(e).defaultView||window}const bn="DEFAULT_X_AXIS_KEY",Wc="DEFAULT_Y_AXIS_KEY",nO={top:20,bottom:20,left:20,right:20},rO=45,iO=25,th=20,Ut=e=>e.cartesianAxis?.x,an=e=>e.cartesianAxis?.y,oO=U(an,function(t){return(t??[]).reduce((r,i)=>i.position==="left"?r+(i.width||0)+(i.zoom?.slider.enabled?i.zoom.slider.size:0):r,0)}),sO=U(an,function(t){return(t??[]).reduce((r,i)=>i.position==="right"?r+(i.width||0)+(i.zoom?.slider.enabled?i.zoom.slider.size:0):r,0)}),aO=U(Ut,function(t){return(t??[]).reduce((r,i)=>i.position==="top"?r+(i.height||0)+(i.zoom?.slider.enabled?i.zoom.slider.size:0):r,0)}),cO=U(Ut,function(t){return(t??[]).reduce((r,i)=>i.position==="bottom"?r+(i.height||0)+(i.zoom?.slider.enabled?i.zoom.slider.size:0):r,0)}),lO=ce(oO,sO,aO,cO,function(t,r,i,o){return{left:t,right:r,top:i,bottom:o}}),Ei=e=>e.dimensions,uO=e=>e.dimensions.margin,ot=ce(Ei,uO,lO,function({width:t,height:r},{top:i,right:o,bottom:s,left:a},{left:c,right:u,top:l,bottom:d}){return{width:t-a-o-c-u,left:a+c,right:o+u,height:r-i-s-l-d,top:i+l,bottom:s+d}}),dO=U(Ei,e=>e.width),fO=U(Ei,e=>e.height),nh=U(Ei,e=>e.propsWidth),rh=U(Ei,e=>e.propsHeight);function ih(e,t){return typeof e=="number"?{top:e,bottom:e,left:e,right:e}:t?E({},t,e):e}const pO=10,vs=({params:e,store:t,svgRef:r})=>{const i=e.width!==void 0&&e.height!==void 0,o=P.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[s,a]=P.useState(0),[c,u]=P.useState(0),l=P.useCallback(()=>{const g=r?.current;if(!g)return{};const y=tO(g).getComputedStyle(g),b=Math.floor(parseFloat(y.height))||0,O=Math.floor(parseFloat(y.width))||0;return(t.state.dimensions.width!==O||t.state.dimensions.height!==b)&&t.set("dimensions",{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:e.width??O,height:e.height??b,propsWidth:e.width,propsHeight:e.height}),{height:b,width:O}},[t,r,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]);eh(()=>{const g=e.width??t.state.dimensions.width,m=e.height??t.state.dimensions.height;t.set("dimensions",{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:g,height:m,propsHeight:e.height,propsWidth:e.width})},[t,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]),P.useEffect(()=>{o.current.displayError=!0},[]),Le(()=>{if(i||!o.current.initialCompute||o.current.computeRun>pO)return;const g=l();g.width!==s||g.height!==c?(o.current.computeRun+=1,g.width!==void 0&&a(g.width),g.height!==void 0&&u(g.height)):o.current.initialCompute&&(o.current.initialCompute=!1)},[c,s,l,i]),Le(()=>{if(i)return()=>{};l();const g=r.current;if(typeof ResizeObserver>"u")return()=>{};let m;const y=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{l()})});return g&&y.observe(g),()=>{m&&cancelAnimationFrame(m),g&&y.unobserve(g)}},[l,i,r]),process.env.NODE_ENV!=="production"&&(o.current.displayError&&e.width===void 0&&s===0&&(console.error("MUI X Charts: ChartContainer does not have `width` prop, and its container has no `width` defined."),o.current.displayError=!1),o.current.displayError&&e.height===void 0&&c===0&&(console.error("MUI X Charts: ChartContainer does not have `height` prop, and its container has no `height` defined."),o.current.displayError=!1));const d=t.use(ot),f=P.useCallback(g=>g>=d.left-1&&g<=d.left+d.width,[d.left,d.width]),p=P.useCallback(g=>g>=d.top-1&&g<=d.top+d.height,[d.height,d.top]);return{instance:{isPointInside:P.useCallback((g,m,y)=>y&&"closest"in y&&y.closest("[data-drawing-container]")?!0:f(g)&&p(m),[f,p]),isXInside:f,isYInside:p}}};vs.params={width:!0,height:!0,margin:!0};vs.getDefaultizedParams=({params:e})=>E({},e,{margin:ih(e.margin,nO)});vs.getInitialState=({width:e,height:t,margin:r})=>({dimensions:{margin:r,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});const Xc=({params:e,store:t})=>(Le(()=>{t.set("experimentalFeatures",e.experimentalFeatures)},[t,e.experimentalFeatures]),{});Xc.params={experimentalFeatures:!0};Xc.getInitialState=({experimentalFeatures:e})=>({experimentalFeatures:e});const hO=e=>e.experimentalFeatures,Os=U(hO,e=>!!e?.preferStrictDomainInLineCharts);let Td=0;const mO=()=>(Td+=1,`mui-chart-${Td}`),Kc=({params:e,store:t})=>(P.useEffect(()=>{e.id===void 0||e.id===t.state.id.providedChartId&&t.state.id.chartId!==void 0||t.set("id",E({},t.state.id,{chartId:e.id??mO()}))},[t,e.id]),{});Kc.params={id:!0};Kc.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});const gO=e=>e.id,yO=U(gO,e=>e.chartId),bO=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],xO=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],oh=e=>e==="dark"?xO:bO,sh=({series:e,colors:t,seriesConfig:r})=>{const i={};return e.forEach((o,s)=>{const a=r[o.type].getSeriesWithDefaultValues(o,s,t),c=a.id;if(i[o.type]===void 0&&(i[o.type]={series:{},seriesOrder:[]}),i[o.type]?.series[c]!==void 0)throw new Error(`MUI X Charts: series' id "${c}" is not unique.`);i[o.type].series[c]=a,i[o.type].seriesOrder.push(c)}),i},vO=(e,t,r)=>{const i={};return Object.keys(t).forEach(o=>{const s=e[o];s!==void 0&&(i[o]=t[o]?.seriesProcessor?.(s,r)??s)}),i},OO=(e,t,r)=>{let i=!1;const o={};return Object.keys(e).forEach(s=>{const a=t[s]?.seriesLayout,c=e[s];if(a!==void 0&&c!==void 0){const u=a(c,r);u&&u!==e[s]&&(i=!0,o[s]=u)}}),i?o:{}},Ts=({params:e,store:t,seriesConfig:r})=>{const{series:i,dataset:o,theme:s,colors:a}=e;return eh(()=>{t.set("series",E({},t.state.series,{defaultizedSeries:sh({series:i,colors:typeof a=="function"?a(s):a,seriesConfig:r}),dataset:o}))},[a,o,i,s,r,t]),{}};Ts.params={dataset:!0,series:!0,colors:!0,theme:!0};const TO=[];Ts.getDefaultizedParams=({params:e})=>E({},e,{series:e.series?.length?e.series:TO,colors:e.colors??oh,theme:e.theme??"light"});Ts.getInitialState=({series:e=[],colors:t,theme:r,dataset:i},o,s)=>({series:{seriesConfig:s,defaultizedSeries:sh({series:e,colors:typeof t=="function"?t(r):t,seriesConfig:s}),dataset:i}});const Zc=e=>e.series,ah=U(Zc,e=>e.defaultizedSeries),st=U(Zc,e=>e.seriesConfig),kO=U(Zc,e=>e.dataset),Se=ce(ah,st,kO,function(t,r,i){return vO(t,r,i)}),ch=ce(Se,st,ot,function(t,r,i){return OO(t,r,i)}),SO={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0};class lh{customData={};constructor(t){if(!t||!t.name)throw new Error("Gesture must be initialized with a valid name.");if(t.name in SO)throw new Error(`Gesture can't be created with a native event name. Tried to use "${t.name}". Please use a custom name instead.`);this.name=t.name,this.preventDefault=t.preventDefault??!1,this.stopPropagation=t.stopPropagation??!1,this.preventIf=t.preventIf??[],this.requiredKeys=t.requiredKeys??[],this.pointerMode=t.pointerMode??[],this.pointerOptions=t.pointerOptions??{}}init(t,r,i,o){this.element=t,this.pointerManager=r,this.gesturesRegistry=i,this.keyboardManager=o;const s=`${this.name}ChangeOptions`;this.element.addEventListener(s,this.handleOptionsChange);const a=`${this.name}ChangeState`;this.element.addEventListener(a,this.handleStateChange)}handleOptionsChange=t=>{t&&t.detail&&this.updateOptions(t.detail)};updateOptions(t){this.preventDefault=t.preventDefault??this.preventDefault,this.stopPropagation=t.stopPropagation??this.stopPropagation,this.preventIf=t.preventIf??this.preventIf,this.requiredKeys=t.requiredKeys??this.requiredKeys,this.pointerMode=t.pointerMode??this.pointerMode,this.pointerOptions=t.pointerOptions??this.pointerOptions}getBaseConfig(){return{requiredKeys:this.requiredKeys}}getEffectiveConfig(t,r){if(t!=="mouse"&&t!=="touch"&&t!=="pen")return r;const i=this.pointerOptions[t];return i?E({},r,i):r}handleStateChange=t=>{t&&t.detail&&this.updateState(t.detail)};updateState(t){Object.assign(this.state,t)}getTargetElement(t){return this.isActive||this.element===t.target||"contains"in this.element&&this.element.contains(t.target)||"getRootNode"in this.element&&this.element.getRootNode()instanceof ShadowRoot&&t.composedPath().includes(this.element)?this.element:null}set isActive(t){t?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(t,r){const i=this.getEffectiveConfig(r,this.getBaseConfig());if(!this.keyboardManager.areKeysPressed(i.requiredKeys))return!0;if(this.preventIf.length===0)return!1;const o=this.gesturesRegistry.getActiveGestures(t);return this.preventIf.some(s=>o[s])}isPointerTypeAllowed(t){return!this.pointerMode||this.pointerMode.length===0?!0:this.pointerMode.includes(t)}destroy(){const t=`${this.name}ChangeOptions`;this.element.removeEventListener(t,this.handleOptionsChange);const r=`${this.name}ChangeState`;this.element.removeEventListener(r,this.handleStateChange)}}class CO{activeGestures=new Map;registerActiveGesture(t,r){this.activeGestures.has(t)||this.activeGestures.set(t,new Set);const i=this.activeGestures.get(t),o={gesture:r,element:t};i.add(o)}unregisterActiveGesture(t,r){const i=this.activeGestures.get(t);i&&(i.forEach(o=>{o.gesture===r&&i.delete(o)}),i.size===0&&this.activeGestures.delete(t))}getActiveGestures(t){const r=this.activeGestures.get(t);return r?Array.from(r).reduce((i,o)=>(i[o.gesture.name]=!0,i),{}):{}}isGestureActive(t,r){const i=this.activeGestures.get(t);return i?Array.from(i).some(o=>o.gesture===r):!1}destroy(){this.activeGestures.clear()}unregisterElement(t){this.activeGestures.delete(t)}}class wO{pressedKeys=new Set;constructor(){this.initialize()}initialize(){typeof window>"u"||(window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp),window.addEventListener("blur",this.clearKeys))}handleKeyDown=t=>{this.pressedKeys.add(t.key)};handleKeyUp=t=>{this.pressedKeys.delete(t.key)};clearKeys=()=>{this.pressedKeys.clear()};areKeysPressed(t){return!t||t.length===0?!0:t.every(r=>r==="ControlOrMeta"?navigator.platform.includes("Mac")?this.pressedKeys.has("Meta"):this.pressedKeys.has("Control"):this.pressedKeys.has(r))}destroy(){typeof window<"u"&&(window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),window.removeEventListener("blur",this.clearKeys)),this.clearKeys()}}class EO{preventEventInterruption=!0;pointers=new Map;gestureHandlers=new Set;constructor(t){this.root=t.root??document.getRootNode({composed:!0})??document.body,this.touchAction=t.touchAction||"auto",this.passive=t.passive??!1,this.preventEventInterruption=t.preventEventInterruption??!0,this.setupEventListeners()}registerGestureHandler(t){return this.gestureHandlers.add(t),()=>{this.gestureHandlers.delete(t)}}getPointers(){return new Map(this.pointers)}setupEventListeners(){this.touchAction!=="auto"&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener("pointerdown",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointermove",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointerup",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointercancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("forceCancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("blur",this.handleInterruptEvents),this.root.addEventListener("contextmenu",this.handleInterruptEvents)}handleInterruptEvents=t=>{if(this.preventEventInterruption&&"pointerType"in t&&t.pointerType==="touch"){t.preventDefault();return}const r=new PointerEvent("forceCancel",{bubbles:!1,cancelable:!1}),i=this.pointers.values().next().value;if(this.pointers.size>0&&i){Object.defineProperties(r,{clientX:{value:i.clientX},clientY:{value:i.clientY},pointerId:{value:i.pointerId},pointerType:{value:i.pointerType}});for(const[o,s]of this.pointers.entries()){const a=E({},s,{type:"forceCancel"});this.pointers.set(o,a)}}this.notifyHandlers(r),this.pointers.clear()};handlePointerEvent=t=>{const{type:r,pointerId:i}=t;if(r==="pointerdown"||r==="pointermove")this.pointers.set(i,this.createPointerData(t));else if(r==="pointerup"||r==="pointercancel"||r==="forceCancel"){this.pointers.set(i,this.createPointerData(t)),this.notifyHandlers(t),this.pointers.delete(i);return}this.notifyHandlers(t)};notifyHandlers(t){this.gestureHandlers.forEach(r=>r(this.pointers,t))}createPointerData(t){return{pointerId:t.pointerId,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,target:t.target,timeStamp:t.timeStamp,type:t.type,isPrimary:t.isPrimary,pressure:t.pressure,width:t.width,height:t.height,pointerType:t.pointerType,srcEvent:t}}destroy(){this.root.removeEventListener("pointerdown",this.handlePointerEvent),this.root.removeEventListener("pointermove",this.handlePointerEvent),this.root.removeEventListener("pointerup",this.handlePointerEvent),this.root.removeEventListener("pointercancel",this.handlePointerEvent),this.root.removeEventListener("forceCancel",this.handlePointerEvent),this.root.removeEventListener("blur",this.handleInterruptEvents),this.root.removeEventListener("contextmenu",this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}}class AO{gestureTemplates=new Map;elementGestureMap=new Map;activeGesturesRegistry=new CO;keyboardManager=new wO;constructor(t){this.pointerManager=new EO({root:t.root,touchAction:t.touchAction,passive:t.passive}),t.gestures&&t.gestures.length>0&&t.gestures.forEach(r=>{this.addGestureTemplate(r)})}addGestureTemplate(t){this.gestureTemplates.has(t.name)&&console.warn(`Gesture template with name "${t.name}" already exists. It will be overwritten.`),this.gestureTemplates.set(t.name,t)}setGestureOptions(t,r,i){const o=this.elementGestureMap.get(r);if(!o||!o.has(t)){console.error(`Gesture "${t}" not found on the provided element.`);return}const s=new CustomEvent(`${t}ChangeOptions`,{detail:i,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(s)}setGestureState(t,r,i){const o=this.elementGestureMap.get(r);if(!o||!o.has(t)){console.error(`Gesture "${t}" not found on the provided element.`);return}const s=new CustomEvent(`${t}ChangeState`,{detail:i,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(s)}registerElement(t,r,i){return Array.isArray(t)||(t=[t]),t.forEach(o=>{const s=i?.[o];this.registerSingleGesture(o,r,s)}),r}registerSingleGesture(t,r,i){const o=this.gestureTemplates.get(t);if(!o)return console.error(`Gesture template "${t}" not found.`),!1;this.elementGestureMap.has(r)||this.elementGestureMap.set(r,new Map);const s=this.elementGestureMap.get(r);s.has(t)&&(console.warn(`Element already has gesture "${t}" registered. It will be replaced.`),this.unregisterElement(t,r));const a=o.clone(i);return a.init(r,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),s.set(t,a),!0}unregisterElement(t,r){const i=this.elementGestureMap.get(r);return!i||!i.has(t)?!1:(i.get(t).destroy(),i.delete(t),this.activeGesturesRegistry.unregisterElement(r),i.size===0&&this.elementGestureMap.delete(r),!0)}unregisterAllGestures(t){const r=this.elementGestureMap.get(t);if(r){for(const[,i]of r)i.destroy(),this.activeGesturesRegistry.unregisterElement(t);this.elementGestureMap.delete(t)}}destroy(){for(const[t]of this.elementGestureMap)this.unregisterAllGestures(t);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}}class zn extends lh{unregisterHandler=null;originalTarget=null;constructor(t){super(t),this.minPointers=t.minPointers??1,this.maxPointers=t.maxPointers??1/0}init(t,r,i,o){super.init(t,r,i,o),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent)}updateOptions(t){super.updateOptions(t),this.minPointers=t.minPointers??this.minPointers,this.maxPointers=t.maxPointers??this.maxPointers}getBaseConfig(){return{requiredKeys:this.requiredKeys,minPointers:this.minPointers,maxPointers:this.maxPointers}}isWithinPointerCount(t,r){const i=this.getEffectiveConfig(r,this.getBaseConfig());return t.length>=i.minPointers&&t.length<=i.maxPointers}getRelevantPointers(t,r){return t.filter(i=>this.isPointerTypeAllowed(i.pointerType)&&(r===i.target||i.target===this.originalTarget||r===this.originalTarget||"contains"in r&&r.contains(i.target))||"getRootNode"in r&&r.getRootNode()instanceof ShadowRoot&&i.srcEvent.composedPath().includes(r))}destroy(){this.unregisterHandler&&(this.unregisterHandler(),this.unregisterHandler=null),super.destroy()}}function PO(e,t){const r=t.x-e.x,i=t.y-e.y;return Math.sqrt(r*r+i*i)}function no(e){if(e.length<2)return 0;let t=0,r=0;for(let i=0;i<e.length;i+=1)for(let o=i+1;o<e.length;o+=1)t+=PO({x:e[i].clientX,y:e[i].clientY},{x:e[o].clientX,y:e[o].clientY}),r+=1;return r>0?t/r:0}function Mt(e){if(e.length===0)return{x:0,y:0};const t=e.reduce((r,i)=>(r.x+=i.clientX,r.y+=i.clientY,r),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}}function kt(e,t){return`${e}${t==="ongoing"?"":t.charAt(0).toUpperCase()+t.slice(1)}`}const ro=1e-5,ln=1e-5,kd=.15;function RO(e,t){const r=t.x-e.x,i=t.y-e.y,o={vertical:null,horizontal:null,mainAxis:null},s=IO(t,e),a=Math.abs(r)>Math.abs(i)?"horizontal":"vertical",c=s||a==="horizontal"?ro:kd,u=s?ro:a==="horizontal"?kd:ro;return Math.abs(r)>c&&(o.horizontal=r>0?"right":"left"),Math.abs(i)>u&&(o.vertical=i>0?"down":"up"),o.mainAxis=s?"diagonal":a,o}function IO(e,t){const r=t.x-e.x,i=t.y-e.y,o=Math.atan2(i,r)*180/Math.PI;return o>=-45+ln&&o<=-22.5+ln||o>=22.5+ln&&o<=45+ln||o>=135+ln&&o<=157.5+ln||o>=-157.5+ln&&o<=-135+ln}function MO(e,t){if(!e.vertical&&!e.horizontal)return!1;if(t.length===0)return!0;const r=e.vertical===null||t.includes(e.vertical),i=e.horizontal===null||t.includes(e.horizontal);return r&&i}const Sd=0,$O=e=>e>Sd?1:e<-Sd?-1:0,un=e=>{e.cancelable&&e.preventDefault()};class Qc extends zn{state={lastPosition:null};constructor(t){super(t),this.threshold=t.threshold||0}clone(t){return new Qc(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}init(t,r,i,o){super.init(t,r,i,o),this.element.addEventListener("pointerenter",this.handleElementEnter),this.element.addEventListener("pointerleave",this.handleElementLeave)}destroy(){this.element.removeEventListener("pointerenter",this.handleElementEnter),this.element.removeEventListener("pointerleave",this.handleElementLeave),this.resetState(),super.destroy()}updateOptions(t){super.updateOptions(t)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter=t=>{if(t.pointerType!=="mouse"&&t.pointerType!=="pen")return;const r=this.pointerManager.getPointers()||new Map,i=Array.from(r.values());if(this.isWithinPointerCount(i,t.pointerType)){this.isActive=!0;const o={x:t.clientX,y:t.clientY};this.state.lastPosition=o,this.emitMoveEvent(this.element,"start",i,t),this.emitMoveEvent(this.element,"ongoing",i,t)}};handleElementLeave=t=>{if(t.pointerType!=="mouse"&&t.pointerType!=="pen"||!this.isActive)return;const r=this.pointerManager.getPointers()||new Map,i=Array.from(r.values());this.emitMoveEvent(this.element,"end",i,t),this.resetState()};handlePointerEvent=(t,r)=>{if(r.type!=="pointermove"||r.pointerType!=="mouse"&&r.pointerType!=="pen")return;this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation();const i=Array.from(t.values()),o=this.getTargetElement(r);if(!o||!this.isWithinPointerCount(i,r.pointerType))return;if(this.shouldPreventGesture(o,r.pointerType)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(o,"end",i,r);return}const s={x:r.clientX,y:r.clientY};this.state.lastPosition=s,this.isActive||(this.isActive=!0,this.emitMoveEvent(o,"start",i,r)),this.emitMoveEvent(o,"ongoing",i,r)};emitMoveEvent(t,r,i,o){const s=this.state.lastPosition||Mt(i),a=this.gesturesRegistry.getActiveGestures(t),c={gestureName:this.name,centroid:s,target:o.target,srcEvent:o,phase:r,pointers:i,timeStamp:o.timeStamp,activeGestures:a,customData:this.customData},u=kt(this.name,r),l=new CustomEvent(u,{bubbles:!0,cancelable:!0,composed:!0,detail:c});t.dispatchEvent(l)}}class $n extends zn{state={startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null};constructor(t){super(t),this.direction=t.direction||["up","down","left","right"],this.threshold=t.threshold||0}clone(t){return new $n(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(t){super.updateOptions(t),this.direction=t.direction||this.direction,this.threshold=t.threshold??this.threshold}resetState(){this.isActive=!1,this.state=E({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent=(t,r)=>{const i=Array.from(t.values());if(r.type==="forceCancel"){this.cancel(r.target,i,r);return}const o=this.getTargetElement(r);if(!o)return;if(this.shouldPreventGesture(o,r.pointerType)){this.cancel(o,i,r);return}const s=this.getRelevantPointers(i,o);if(!this.isWithinPointerCount(s,r.pointerType)){this.cancel(o,s,r);return}switch(r.type){case"pointerdown":if(!this.isActive&&!this.state.startCentroid)s.forEach(a=>{this.state.startPointers.set(a.pointerId,a)}),this.originalTarget=o,this.state.startCentroid=Mt(s),this.state.lastCentroid=E({},this.state.startCentroid);else if(this.state.startCentroid&&this.state.lastCentroid){const a=this.state.lastCentroid,c=Mt(s),u=c.x-a.x,l=c.y-a.y;this.state.startCentroid={x:this.state.startCentroid.x+u,y:this.state.startCentroid.y+l},this.state.lastCentroid=c,s.forEach(d=>{this.state.startPointers.has(d.pointerId)||this.state.startPointers.set(d.pointerId,d)})}break;case"pointermove":if(this.state.startCentroid&&this.isWithinPointerCount(i,r.pointerType)){const a=Mt(s),c=a.x-this.state.startCentroid.x,u=a.y-this.state.startCentroid.y,l=Math.sqrt(c*c+u*u),d=RO(this.state.lastCentroid??this.state.startCentroid,a),f=this.state.lastCentroid?a.x-this.state.lastCentroid.x:0,p=this.state.lastCentroid?a.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&l>=this.threshold&&MO(d,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:f,y:p},this.state.totalDeltaX+=f,this.state.totalDeltaY+=p,this.state.activeDeltaX+=f,this.state.activeDeltaY+=p,this.emitPanEvent(o,"start",s,r,a),this.emitPanEvent(o,"ongoing",s,r,a)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:f,y:p},this.state.totalDeltaX+=f,this.state.totalDeltaY+=p,this.state.activeDeltaX+=f,this.state.activeDeltaY+=p,this.emitPanEvent(o,"ongoing",s,r,a)),this.state.lastCentroid=a,this.state.lastDirection=d}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive&&this.state.movementThresholdReached){const a=s.filter(c=>c.type!=="pointerup"&&c.type!=="pointercancel");if(this.isWithinPointerCount(a,r.pointerType)){if(a.length>=1&&this.state.lastCentroid){const c=Mt(a),u=c.x-this.state.lastCentroid.x,l=c.y-this.state.lastCentroid.y;this.state.startCentroid={x:this.state.startCentroid.x+u,y:this.state.startCentroid.y+l},this.state.lastCentroid=c;const d=s.find(f=>f.type==="pointerup"||f.type==="pointercancel")?.pointerId;d!==void 0&&this.state.startPointers.delete(d)}}else{const c=this.state.lastCentroid||this.state.startCentroid;r.type==="pointercancel"&&this.emitPanEvent(o,"cancel",s,r,c),this.emitPanEvent(o,"end",s,r,c),this.resetState()}}else this.resetState();break}};emitPanEvent(t,r,i,o,s){if(!this.state.startCentroid)return;const a=this.state.lastDeltas?.x??0,c=this.state.lastDeltas?.y??0,u=this.state.startPointers.values().next().value,l=u?(o.timeStamp-u.timeStamp)/1e3:0,d=l>0?a/l:0,f=l>0?c/l:0,p=Math.sqrt(d*d+f*f),h=this.gesturesRegistry.getActiveGestures(t),g={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:s,target:o.target,srcEvent:o,phase:r,pointers:i,timeStamp:o.timeStamp,deltaX:a,deltaY:c,direction:this.state.lastDirection,velocityX:d,velocityY:f,velocity:p,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:h,customData:this.customData},m=kt(this.name,r),y=new CustomEvent(m,{bubbles:!0,cancelable:!0,composed:!0,detail:g});t.dispatchEvent(y),this.preventDefault&&o.preventDefault(),this.stopPropagation&&o.stopPropagation()}cancel(t,r,i){if(this.isActive){const o=t??this.element;this.emitPanEvent(o,"cancel",r,i,this.state.lastCentroid),this.emitPanEvent(o,"end",r,i,this.state.lastCentroid)}this.resetState()}}class Jc extends zn{state={startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,totalScale:1,deltaScale:0};constructor(t){super(E({},t,{minPointers:t.minPointers??2})),this.threshold=t.threshold??0}clone(t){return new Jc(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(t){super.updateOptions(t)}resetState(){this.isActive=!1,this.state=E({},this.state,{startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,deltaScale:0})}handlePointerEvent=(t,r)=>{const i=Array.from(t.values()),o=this.getTargetElement(r);if(!o)return;if(this.shouldPreventGesture(o,r.pointerType)){this.isActive&&(this.emitPinchEvent(o,"cancel",i,r),this.resetState());return}const s=this.getRelevantPointers(i,o);switch(r.type){case"pointerdown":if(s.length>=2&&!this.isActive){const a=no(s);this.state.startDistance=a,this.state.lastDistance=a,this.state.lastTime=r.timeStamp,this.originalTarget=o}else if(this.isActive&&s.length>=2){const a=no(s);this.state.startDistance=a/this.state.lastScale,this.state.lastDistance=a,this.state.lastTime=r.timeStamp}break;case"pointermove":if(this.state.startDistance&&this.isWithinPointerCount(s,r.pointerType)){const a=no(s),c=Math.abs(a-this.state.lastDistance);if(c!==0&&c>=this.threshold){const u=this.state.startDistance?a/this.state.startDistance:1,l=u/this.state.lastScale;this.state.totalScale*=l;const d=(r.timeStamp-this.state.lastTime)/1e3;if(this.state.lastDistance){const p=(a-this.state.lastDistance)/d;this.state.velocity=Number.isNaN(p)?0:p}this.state.lastDistance=a,this.state.deltaScale=u-this.state.lastScale,this.state.lastScale=u,this.state.lastTime=r.timeStamp,this.isActive?this.emitPinchEvent(o,"ongoing",s,r):(this.isActive=!0,this.emitPinchEvent(o,"start",s,r),this.emitPinchEvent(o,"ongoing",s,r))}}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive){const a=s.filter(c=>c.type!=="pointerup"&&c.type!=="pointercancel");if(!this.isWithinPointerCount(a,r.pointerType))r.type==="pointercancel"&&this.emitPinchEvent(o,"cancel",s,r),this.emitPinchEvent(o,"end",s,r),this.resetState();else if(a.length>=2){const c=no(a);this.state.startDistance=c/this.state.lastScale,this.state.lastDistance=c,this.state.lastTime=r.timeStamp}}break}};emitPinchEvent(t,r,i,o){const s=Mt(i),a=this.state.lastDistance,c=this.state.lastScale,u=this.gesturesRegistry.getActiveGestures(t),l={gestureName:this.name,centroid:s,target:o.target,srcEvent:o,phase:r,pointers:i,timeStamp:o.timeStamp,scale:c,deltaScale:this.state.deltaScale,totalScale:this.state.totalScale,distance:a,velocity:this.state.velocity,activeGestures:u,direction:$O(this.state.velocity),customData:this.customData};this.preventDefault&&o.preventDefault(),this.stopPropagation&&o.stopPropagation();const d=kt(this.name,r),f=new CustomEvent(d,{bubbles:!0,cancelable:!0,composed:!0,detail:l});t.dispatchEvent(f)}}class ks extends zn{state={startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1};constructor(t){super(t),this.duration=t.duration??500,this.maxDistance=t.maxDistance??10}clone(t){return new ks(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(t){super.updateOptions(t),this.duration=t.duration??this.duration,this.maxDistance=t.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=E({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){this.state.timerId!==null&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent=(t,r)=>{const i=Array.from(t.values());if(r.type==="forceCancel"){this.cancelPress(r.target,i,r);return}const o=this.getTargetElement(r);if(!o)return;if(this.shouldPreventGesture(o,r.pointerType)){this.isActive&&this.cancelPress(o,i,r);return}const s=this.getRelevantPointers(i,o);if(!this.isWithinPointerCount(s,r.pointerType)){this.isActive&&this.cancelPress(o,s,r);return}switch(r.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=Mt(s),this.state.lastPosition=E({},this.state.startCentroid),this.state.startTime=r.timeStamp,this.isActive=!0,this.originalTarget=o,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;const a=this.state.lastPosition;this.emitPressEvent(o,"start",s,r,a),this.emitPressEvent(o,"ongoing",s,r,a)}},this.duration));break;case"pointermove":if(this.isActive&&this.state.startCentroid){const a=Mt(s);this.state.lastPosition=a;const c=a.x-this.state.startCentroid.x,u=a.y-this.state.startCentroid.y;Math.sqrt(c*c+u*u)>this.maxDistance&&this.cancelPress(o,s,r)}break;case"pointerup":if(this.isActive){if(this.state.pressThresholdReached){const a=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(o,"end",s,r,a)}this.resetState()}break;case"pointercancel":case"forceCancel":this.cancelPress(o,s,r);break}};emitPressEvent(t,r,i,o,s){const a=this.gesturesRegistry.getActiveGestures(t),c=o.timeStamp-this.state.startTime,u={gestureName:this.name,centroid:s,target:o.target,srcEvent:o,phase:r,pointers:i,timeStamp:o.timeStamp,x:s.x,y:s.y,duration:c,activeGestures:a,customData:this.customData},l=kt(this.name,r),d=new CustomEvent(l,{bubbles:!0,cancelable:!0,composed:!0,detail:u});t.dispatchEvent(d),this.preventDefault&&o.preventDefault(),this.stopPropagation&&o.stopPropagation()}cancelPress(t,r,i){if(this.isActive&&this.state.pressThresholdReached){const o=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(t??this.element,"cancel",r,i,o),this.emitPressEvent(t??this.element,"end",r,i,o)}this.resetState()}}class el extends zn{state={phase:"waitingForPress",dragTimeoutId:null};constructor(t){super(t),this.pressDuration=t.pressDuration??500,this.pressMaxDistance=t.pressMaxDistance??10,this.dragTimeout=t.dragTimeout??1e3,this.dragThreshold=t.dragThreshold??0,this.dragDirection=t.dragDirection||["up","down","left","right"],this.pressGesture=new ks({name:`${this.name}-press`,duration:this.pressDuration,maxDistance:this.pressMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}),this.panGesture=new $n({name:`${this.name}-pan`,minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)})}clone(t){return new el(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,pressDuration:this.pressDuration,pressMaxDistance:this.pressMaxDistance,dragTimeout:this.dragTimeout,dragThreshold:this.dragThreshold,dragDirection:[...this.dragDirection],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}init(t,r,i,o){super.init(t,r,i,o),this.pressGesture.init(t,r,i,o),this.panGesture.init(t,r,i,o),this.element.addEventListener(this.pressGesture.name,this.pressHandler),this.element.addEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.addEventListener(this.panGesture.name,this.dragMoveHandler),this.element.addEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.addEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler)}destroy(){this.resetState(),this.pressGesture.destroy(),this.panGesture.destroy(),this.element.removeEventListener(this.pressGesture.name,this.pressHandler),this.element.removeEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.removeEventListener(this.panGesture.name,this.dragMoveHandler),this.element.removeEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.removeEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler),super.destroy()}updateOptions(t){super.updateOptions(t),this.pressDuration=t.pressDuration??this.pressDuration,this.pressMaxDistance=t.pressMaxDistance??this.pressMaxDistance,this.dragTimeout=t.dragTimeout??this.dragTimeout,this.dragThreshold=t.dragThreshold??this.dragThreshold,this.dragDirection=t.dragDirection||this.dragDirection,this.element.dispatchEvent(new CustomEvent(`${this.panGesture.name}ChangeOptions`,{detail:{minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}})),this.element.dispatchEvent(new CustomEvent(`${this.pressGesture.name}ChangeOptions`,{detail:{duration:this.pressDuration,maxDistance:this.pressMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}}))}resetState(){this.state.dragTimeoutId!==null&&clearTimeout(this.state.dragTimeoutId),this.restoreTouchAction(),this.isActive=!1,this.state={phase:"waitingForPress",dragTimeoutId:null}}handlePointerEvent(){}pressHandler=()=>{this.state.phase==="waitingForPress"&&(this.state.phase="pressDetected",this.setTouchAction(),this.state.dragTimeoutId=setTimeout(()=>{this.resetState()},this.dragTimeout))};dragStartHandler=t=>{this.state.phase==="pressDetected"&&(this.state.dragTimeoutId!==null&&(clearTimeout(this.state.dragTimeoutId),this.state.dragTimeoutId=null),this.restoreTouchAction(),this.state.phase="dragging",this.isActive=!0,this.element.dispatchEvent(new CustomEvent(kt(this.name,t.detail.phase),t)))};dragMoveHandler=t=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(kt(this.name,t.detail.phase),t))};dragEndHandler=t=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(kt(this.name,t.detail.phase),t)))};setTouchAction(){this.element.addEventListener("touchstart",un,{passive:!1}),this.element.addEventListener("touchmove",un,{passive:!1}),this.element.addEventListener("touchend",un,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",un),this.element.removeEventListener("touchmove",un),this.element.removeEventListener("touchend",un)}}class li extends zn{state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null};constructor(t){super(t),this.maxDistance=t.maxDistance??10,this.taps=t.taps??1}clone(t){return new li(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(t){super.updateOptions(t),this.maxDistance=t.maxDistance??this.maxDistance,this.taps=t.taps??this.taps}resetState(){this.isActive=!1,this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null}}handlePointerEvent=(t,r)=>{const i=Array.from(t.values()),o=this.getTargetElement(r);if(!o)return;const s=this.getRelevantPointers(i,o);if(this.shouldPreventGesture(o,r.pointerType)||!this.isWithinPointerCount(s,r.pointerType)){this.isActive&&this.cancelTap(o,s,r);return}switch(r.type){case"pointerdown":this.isActive||(this.state.startCentroid=Mt(s),this.state.lastPosition=E({},this.state.startCentroid),this.isActive=!0,this.originalTarget=o);break;case"pointermove":if(this.isActive&&this.state.startCentroid){const a=Mt(s);this.state.lastPosition=a;const c=a.x-this.state.startCentroid.x,u=a.y-this.state.startCentroid.y;Math.sqrt(c*c+u*u)>this.maxDistance&&this.cancelTap(o,s,r)}break;case"pointerup":if(this.isActive){this.state.currentTapCount+=1;const a=this.state.lastPosition||this.state.startCentroid;if(!a){this.cancelTap(o,s,r);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(o,s,r,a),this.resetState()):(this.state.lastTapTime=r.timeStamp,this.isActive=!1,this.state.startCentroid=null,setTimeout(()=>{this.state&&this.state.currentTapCount>0&&this.state.currentTapCount<this.taps&&(this.state.currentTapCount=0)},300))}break;case"pointercancel":case"forceCancel":this.cancelTap(o,s,r);break}};fireTapEvent(t,r,i,o){const s=this.gesturesRegistry.getActiveGestures(t),a={gestureName:this.name,centroid:o,target:i.target,srcEvent:i,phase:"end",pointers:r,timeStamp:i.timeStamp,x:o.x,y:o.y,tapCount:this.state.currentTapCount,activeGestures:s,customData:this.customData},c=new CustomEvent(this.name,{bubbles:!0,cancelable:!0,composed:!0,detail:a});t.dispatchEvent(c),this.preventDefault&&i.preventDefault(),this.stopPropagation&&i.stopPropagation()}cancelTap(t,r,i){if(this.state.startCentroid||this.state.lastPosition){const o=this.state.lastPosition||this.state.startCentroid,s=this.gesturesRegistry.getActiveGestures(t),a={gestureName:this.name,centroid:o,target:i.target,srcEvent:i,phase:"cancel",pointers:r,timeStamp:i.timeStamp,x:o.x,y:o.y,tapCount:this.state.currentTapCount,activeGestures:s,customData:this.customData},c=kt(this.name,"cancel"),u=new CustomEvent(c,{bubbles:!0,cancelable:!0,composed:!0,detail:a});t.dispatchEvent(u)}this.resetState()}}class tl extends zn{state={phase:"waitingForTap",dragTimeoutId:null};constructor(t){super(t),this.tapMaxDistance=t.tapMaxDistance??10,this.dragTimeout=t.dragTimeout??1e3,this.dragThreshold=t.dragThreshold??0,this.dragDirection=t.dragDirection||["up","down","left","right"],this.tapGesture=new li({name:`${this.name}-tap`,maxDistance:this.tapMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}),this.panGesture=new $n({name:`${this.name}-pan`,minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)})}clone(t){return new tl(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,tapMaxDistance:this.tapMaxDistance,dragTimeout:this.dragTimeout,dragThreshold:this.dragThreshold,dragDirection:[...this.dragDirection],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}init(t,r,i,o){super.init(t,r,i,o),this.tapGesture.init(t,r,i,o),this.panGesture.init(t,r,i,o),this.element.addEventListener(this.tapGesture.name,this.tapHandler),this.element.addEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.addEventListener(this.panGesture.name,this.dragMoveHandler),this.element.addEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.addEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler)}destroy(){this.resetState(),this.tapGesture.destroy(),this.panGesture.destroy(),this.element.removeEventListener(this.tapGesture.name,this.tapHandler),this.element.removeEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.removeEventListener(this.panGesture.name,this.dragMoveHandler),this.element.removeEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.removeEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler),super.destroy()}updateOptions(t){super.updateOptions(t),this.tapMaxDistance=t.tapMaxDistance??this.tapMaxDistance,this.dragTimeout=t.dragTimeout??this.dragTimeout,this.dragThreshold=t.dragThreshold??this.dragThreshold,this.dragDirection=t.dragDirection||this.dragDirection,this.element.dispatchEvent(new CustomEvent(`${this.panGesture.name}ChangeOptions`,{detail:{minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}})),this.element.dispatchEvent(new CustomEvent(`${this.tapGesture.name}ChangeOptions`,{detail:{maxDistance:this.tapMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}}))}resetState(){this.state.dragTimeoutId!==null&&clearTimeout(this.state.dragTimeoutId),this.restoreTouchAction(),this.isActive=!1,this.state={phase:"waitingForTap",dragTimeoutId:null}}handlePointerEvent(){}tapHandler=()=>{this.state.phase==="waitingForTap"&&(this.state.phase="tapDetected",this.setTouchAction(),this.state.dragTimeoutId=setTimeout(()=>{this.resetState()},this.dragTimeout))};dragStartHandler=t=>{this.state.phase==="tapDetected"&&(this.state.dragTimeoutId!==null&&(clearTimeout(this.state.dragTimeoutId),this.state.dragTimeoutId=null),this.restoreTouchAction(),this.state.phase="dragging",this.isActive=!0,this.element.dispatchEvent(new CustomEvent(kt(this.name,t.detail.phase),t)))};dragMoveHandler=t=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(kt(this.name,t.detail.phase),t))};dragEndHandler=t=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(kt(this.name,t.detail.phase),t)))};setTouchAction(){this.element.addEventListener("touchstart",un,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",un)}}class Eo extends lh{state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0};constructor(t){super(t),this.sensitivity=t.sensitivity??1,this.max=t.max??Number.MAX_SAFE_INTEGER,this.min=t.min??Number.MIN_SAFE_INTEGER,this.initialDelta=t.initialDelta??0,this.invert=t.invert??!1,this.state.totalDeltaX=this.initialDelta,this.state.totalDeltaY=this.initialDelta,this.state.totalDeltaZ=this.initialDelta}clone(t){return new Eo(E({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,sensitivity:this.sensitivity,max:this.max,min:this.min,initialDelta:this.initialDelta,invert:this.invert,requiredKeys:[...this.requiredKeys],preventIf:[...this.preventIf]},t))}init(t,r,i,o){super.init(t,r,i,o),this.element.addEventListener("wheel",this.handleWheelEvent)}destroy(){this.element.removeEventListener("wheel",this.handleWheelEvent),this.resetState(),super.destroy()}resetState(){this.isActive=!1,this.state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0}}updateOptions(t){super.updateOptions(t),this.sensitivity=t.sensitivity??this.sensitivity,this.max=t.max??this.max,this.min=t.min??this.min,this.initialDelta=t.initialDelta??this.initialDelta,this.invert=t.invert??this.invert}handleWheelEvent=t=>{if(this.shouldPreventGesture(this.element,"mouse"))return;const r=this.pointerManager.getPointers()||new Map,i=Array.from(r.values());this.state.totalDeltaX+=t.deltaX*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaY+=t.deltaY*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaZ+=t.deltaZ*this.sensitivity*(this.invert?-1:1),["totalDeltaX","totalDeltaY","totalDeltaZ"].forEach(o=>{this.state[o]<this.min&&(this.state[o]=this.min),this.state[o]>this.max&&(this.state[o]=this.max)}),this.emitWheelEvent(i,t)};emitWheelEvent(t,r){const i=t.length>0?Mt(t):{x:r.clientX,y:r.clientY},o=this.gesturesRegistry.getActiveGestures(this.element),s={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:"ongoing",pointers:t,timeStamp:r.timeStamp,deltaX:r.deltaX*this.sensitivity*(this.invert?-1:1),deltaY:r.deltaY*this.sensitivity*(this.invert?-1:1),deltaZ:r.deltaZ*this.sensitivity*(this.invert?-1:1),deltaMode:r.deltaMode,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,totalDeltaZ:this.state.totalDeltaZ,activeGestures:o,customData:this.customData};this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation();const a=kt(this.name,"ongoing"),c=new CustomEvent(a,{bubbles:!0,cancelable:!0,composed:!0,detail:s});this.element.dispatchEvent(c)}}const ir=e=>e.preventDefault(),nl=({svgRef:e})=>{const t=P.useRef(null);P.useEffect(()=>{const o=e.current;t.current||(t.current=new AO({gestures:[new $n({name:"pan",threshold:0,maxPointers:1}),new Qc({name:"move",preventIf:["pan","zoomPinch","zoomPan"]}),new li({name:"tap",preventIf:["pan","zoomPinch","zoomPan"]}),new ks({name:"quickPress",duration:50}),new $n({name:"brush",threshold:0,maxPointers:1}),new $n({name:"zoomPan",threshold:0,preventIf:["zoomTapAndDrag","zoomPressAndDrag"]}),new Jc({name:"zoomPinch",threshold:5}),new Eo({name:"zoomTurnWheel",sensitivity:.01,initialDelta:1}),new Eo({name:"panTurnWheel",sensitivity:.5}),new tl({name:"zoomTapAndDrag",dragThreshold:10}),new el({name:"zoomPressAndDrag",dragThreshold:10,preventIf:["zoomPinch"]}),new li({name:"zoomDoubleTapReset",taps:2})]}));const s=t.current;if(!(!o||!s))return s.registerElement(["pan","move","zoomPinch","zoomPan","zoomTurnWheel","panTurnWheel","tap","quickPress","zoomTapAndDrag","zoomPressAndDrag","zoomDoubleTapReset","brush"],o),()=>{s.unregisterAllGestures(o)}},[e,t]);const r=P.useCallback((o,s,a)=>{const c=e.current;return c?.addEventListener(o,s,a),{cleanup:()=>c?.removeEventListener(o,s)}},[e]),i=P.useCallback((o,s)=>{const a=e.current,c=t.current;!c||!a||c.setGestureOptions(o,a,s??{})},[e,t]);return P.useEffect(()=>{const o=e.current;return o?.addEventListener("gesturestart",ir),o?.addEventListener("gesturechange",ir),o?.addEventListener("gestureend",ir),()=>{o?.removeEventListener("gesturestart",ir),o?.removeEventListener("gesturechange",ir),o?.removeEventListener("gestureend",ir)}},[e]),{instance:{addInteractionListener:r,updateZoomInteractionListeners:i}}};nl.params={};nl.getInitialState=()=>({});const _O=[Kc,Xc,vs,Ts,nl,xs],DO=["apiRef"],LO=e=>{let{plugins:t}=e,r=te(e.props,DO);const i={};t.forEach(a=>{Object.assign(i,a.params)});const o={};return Object.keys(r).forEach(a=>{const c=r[a];i[a]&&(o[a]=c)}),t.reduce((a,c)=>c.getDefaultizedParams?c.getDefaultizedParams({params:a}):a,o)};let Cd=0;function NO(e,t,r){const i=wi(),o=P.useMemo(()=>[..._O,...e],[e]),s=LO({plugins:o,props:t});s.id=s.id??i;const c=P.useRef({}).current,u=qO(t.apiRef),l=P.useRef(null),d=P.useRef(null),f=P.useRef(null);if(f.current==null){Cd+=1;const g={cacheKey:{id:Cd}};o.forEach(m=>{m.getInitialState&&Object.assign(g,m.getInitialState(s,g,r))}),f.current=new Yc(g)}const p=g=>{const m=g({instance:c,params:s,plugins:o,store:f.current,svgRef:d,chartRootRef:l,seriesConfig:r});m.publicAPI&&Object.assign(u.current,m.publicAPI),m.instance&&Object.assign(c,m.instance)};return o.forEach(p),{contextValue:P.useMemo(()=>({store:f.current,publicAPI:u.current,instance:c,svgRef:d,chartRootRef:l}),[c,u])}}function jO(e){return e.current==null&&(e.current={}),e}function qO(e){const t=P.useRef({});return e?jO(e):t}const rl=P.createContext(null);process.env.NODE_ENV!=="production"&&(rl.displayName="ChartContext");const wd=new Set;function Ct(e,t="warning"){if(process.env.NODE_ENV==="production")return;const r=Array.isArray(e)?e.join(`
|
|
43
|
+
`):e;wd.has(r)||(wd.add(r),t==="error"?console.error(r):console.warn(r))}function FO(e){const{componentName:t,propName:r,controlled:i,defaultValue:o,warningPrefix:s="MUI X"}=e,[{initialDefaultValue:a,isControlled:c}]=P.useState({initialDefaultValue:o,isControlled:i!==void 0});c!==(i!==void 0)&&Ct([`${s}: A component is changing the ${c?"":"un"}controlled ${r} state of ${t} to be ${c?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"],"error"),JSON.stringify(a)!==JSON.stringify(o)&&Ct([`${s}: A component is changing the default ${r} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`],"error")}const uh=process.env.NODE_ENV==="production"?()=>{}:FO,dh=4,fh=20+2*dh,zO=40+2*dh,BO="hover",HO={top:5,bottom:5,left:5,right:5},io={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",reverse:!1,slider:{enabled:!1,preview:!1,size:fh,showTooltip:BO}},il=(e,t,r,i)=>{if(e)return e===!0?E({axisId:t,axisDirection:r},io,{reverse:i??!1}):E({axisId:t,axisDirection:r},io,{reverse:i??!1},e,{slider:E({},io.slider,{size:e.slider?.preview??io.slider.preview?zO:fh},e.slider)})};function ph(e,t){const r={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:bn,scaleType:"linear"}]).map((s,a)=>{const c=s.dataKey,u=a===0?"bottom":"none",l=s.position??u,d=iO+(s.label?th:0),f=s.id??`defaultized-x-axis-${a}`,p=E({offset:r[l]},s,{id:f,position:l,height:s.height??d,zoom:il(s.zoom,f,"x",s.reverse)});if(l!=="none"&&(r[l]+=p.height,p.zoom?.slider.enabled&&(r[l]+=p.zoom.slider.size)),c===void 0||s.data!==void 0)return p;if(t===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return E({},p,{data:t.map(h=>h[c])})})}function hh(e,t){const r={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:Wc,scaleType:"linear"}]).map((s,a)=>{const c=s.dataKey,u=a===0?"left":"none",l=s.position??u,d=rO+(s.label?th:0),f=s.id??`defaultized-y-axis-${a}`,p=E({offset:r[l]},s,{id:f,position:l,width:s.width??d,zoom:il(s.zoom,f,"y",s.reverse)});if(l!=="none"&&(r[l]+=p.width,p.zoom?.slider.enabled&&(r[l]+=p.zoom.slider.size)),c===void 0||s.data!==void 0)return p;if(t===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return E({},p,{data:t.map(h=>h[c])})})}function VO(e,t){return function(i,o){if(o.location==="tick"){const s=o.scale.domain();return s[0]===s[1]?o.scale.tickFormat(1)(i):o.scale.tickFormat(e)(i)}return o.location==="zoom-slider-tooltip"?t.tickFormat(2)(i):`${i}`}}function Bn(e){return e.scaleType==="band"}function Hn(e){return e.scaleType==="point"}function GO(e){return e.scaleType!=="point"&&e.scaleType!=="band"}function UO(e){return e.scaleType==="symlog"}function To(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function YO(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ol(e){let t,r,i;e.length!==2?(t=To,r=(c,u)=>To(e(c),u),i=(c,u)=>e(c)-u):(t=e===To||e===YO?e:WO,r=e,i=e);function o(c,u,l=0,d=c.length){if(l<d){if(t(u,u)!==0)return d;do{const f=l+d>>>1;r(c[f],u)<0?l=f+1:d=f}while(l<d)}return l}function s(c,u,l=0,d=c.length){if(l<d){if(t(u,u)!==0)return d;do{const f=l+d>>>1;r(c[f],u)<=0?l=f+1:d=f}while(l<d)}return l}function a(c,u,l=0,d=c.length){const f=o(c,u,l,d-1);return f>l&&i(c[f-1],u)>-i(c[f],u)?f-1:f}return{left:o,center:a,right:s}}function WO(){return 0}function XO(e){return e===null?NaN:+e}const KO=ol(To),mh=KO.right;ol(XO).center;class Ao extends Map{constructor(t,r=JO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(Ed(this,t))}has(t){return super.has(Ed(this,t))}set(t,r){return super.set(ZO(this,t),r)}delete(t){return super.delete(QO(this,t))}}function Ed({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):r}function ZO({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function QO({_intern:e,_key:t},r){const i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function JO(e){return e!==null&&typeof e=="object"?e.valueOf():e}const eT=Math.sqrt(50),tT=Math.sqrt(10),nT=Math.sqrt(2);function Po(e,t,r){const i=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),a=s>=eT?10:s>=tT?5:s>=nT?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(e*l),u=Math.round(t*l),c/l<e&&++c,u/l>t&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(e/l),u=Math.round(t/l),c*l<e&&++c,u*l>t&&--u),u<c&&.5<=r&&r<2?Po(e,t,r*2):[c,u,l]}function oc(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const i=t<e,[o,s,a]=i?Po(t,e,r):Po(e,t,r);if(!(s>=o))return[];const c=s-o+1,u=new Array(c);if(i)if(a<0)for(let l=0;l<c;++l)u[l]=(s-l)/-a;else for(let l=0;l<c;++l)u[l]=(s-l)*a;else if(a<0)for(let l=0;l<c;++l)u[l]=(o+l)/-a;else for(let l=0;l<c;++l)u[l]=(o+l)*a;return u}function sc(e,t,r){return t=+t,e=+e,r=+r,Po(e,t,r)[2]}function ac(e,t,r){t=+t,e=+e,r=+r;const i=t<e,o=i?sc(t,e,r):sc(e,t,r);return(i?-1:1)*(o<0?1/-o:o)}function rT(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var i=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,s=new Array(o);++i<o;)s[i]=e+i*r;return s}function xn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function iT(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Ad=Symbol("implicit");function cc(){var e=new Ao,t=[],r=[],i=Ad;function o(s){let a=e.get(s);if(a===void 0){if(i!==Ad)return i;e.set(s,a=t.push(s)-1)}return r[a%r.length]}return o.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new Ao;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(s){return arguments.length?(r=Array.from(s),o):r.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return cc(t,r).unknown(i)},xn.apply(o,arguments),o}function sl(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function gh(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Ai(){}var ui=.7,Ro=1/ui,mr="\\s*([+-]?\\d+)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oT=/^#([0-9a-f]{3,8})$/,sT=new RegExp(`^rgb\\(${mr},${mr},${mr}\\)$`),aT=new RegExp(`^rgb\\(${Bt},${Bt},${Bt}\\)$`),cT=new RegExp(`^rgba\\(${mr},${mr},${mr},${di}\\)$`),lT=new RegExp(`^rgba\\(${Bt},${Bt},${Bt},${di}\\)$`),uT=new RegExp(`^hsl\\(${di},${Bt},${Bt}\\)$`),dT=new RegExp(`^hsla\\(${di},${Bt},${Bt},${di}\\)$`),Pd={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};sl(Ai,fi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rd,formatHex:Rd,formatHex8:fT,formatHsl:pT,formatRgb:Id,toString:Id});function Rd(){return this.rgb().formatHex()}function fT(){return this.rgb().formatHex8()}function pT(){return yh(this).formatHsl()}function Id(){return this.rgb().formatRgb()}function fi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=oT.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Md(t):r===3?new tt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?oo(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?oo(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=sT.exec(e))?new tt(t[1],t[2],t[3],1):(t=aT.exec(e))?new tt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cT.exec(e))?oo(t[1],t[2],t[3],t[4]):(t=lT.exec(e))?oo(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uT.exec(e))?Dd(t[1],t[2]/100,t[3]/100,1):(t=dT.exec(e))?Dd(t[1],t[2]/100,t[3]/100,t[4]):Pd.hasOwnProperty(e)?Md(Pd[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function Md(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function oo(e,t,r,i){return i<=0&&(e=t=r=NaN),new tt(e,t,r,i)}function hT(e){return e instanceof Ai||(e=fi(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function lc(e,t,r,i){return arguments.length===1?hT(e):new tt(e,t,r,i??1)}function tt(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}sl(tt,lc,gh(Ai,{brighter(e){return e=e==null?Ro:Math.pow(Ro,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ui:Math.pow(ui,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(_n(this.r),_n(this.g),_n(this.b),Io(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:$d,formatHex:$d,formatHex8:mT,formatRgb:_d,toString:_d}));function $d(){return`#${Pn(this.r)}${Pn(this.g)}${Pn(this.b)}`}function mT(){return`#${Pn(this.r)}${Pn(this.g)}${Pn(this.b)}${Pn((isNaN(this.opacity)?1:this.opacity)*255)}`}function _d(){const e=Io(this.opacity);return`${e===1?"rgb(":"rgba("}${_n(this.r)}, ${_n(this.g)}, ${_n(this.b)}${e===1?")":`, ${e})`}`}function Io(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _n(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pn(e){return e=_n(e),(e<16?"0":"")+e.toString(16)}function Dd(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new It(e,t,r,i)}function yh(e){if(e instanceof It)return new It(e.h,e.s,e.l,e.opacity);if(e instanceof Ai||(e=fi(e)),!e)return new It;if(e instanceof It)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(t,r,i),s=Math.max(t,r,i),a=NaN,c=s-o,u=(s+o)/2;return c?(t===s?a=(r-i)/c+(r<i)*6:r===s?a=(i-t)/c+2:a=(t-r)/c+4,c/=u<.5?s+o:2-s-o,a*=60):c=u>0&&u<1?0:a,new It(a,c,u,e.opacity)}function gT(e,t,r,i){return arguments.length===1?yh(e):new It(e,t,r,i??1)}function It(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}sl(It,gT,gh(Ai,{brighter(e){return e=e==null?Ro:Math.pow(Ro,e),new It(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ui:Math.pow(ui,e),new It(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,r=this.l,i=r+(r<.5?r:1-r)*t,o=2*r-i;return new tt(_a(e>=240?e-240:e+120,o,i),_a(e,o,i),_a(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new It(Ld(this.h),so(this.s),so(this.l),Io(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=Io(this.opacity);return`${e===1?"hsl(":"hsla("}${Ld(this.h)}, ${so(this.s)*100}%, ${so(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ld(e){return e=(e||0)%360,e<0?e+360:e}function so(e){return Math.max(0,Math.min(1,e||0))}function _a(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const al=e=>()=>e;function yT(e,t){return function(r){return e+r*t}}function bT(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function xT(e){return(e=+e)==1?bh:function(t,r){return r-t?bT(t,r,e):al(isNaN(t)?r:t)}}function bh(e,t){var r=t-e;return r?yT(e,r):al(isNaN(e)?t:e)}const Nd=(function e(t){var r=xT(t);function i(o,s){var a=r((o=lc(o)).r,(s=lc(s)).r),c=r(o.g,s.g),u=r(o.b,s.b),l=bh(o.opacity,s.opacity);return function(d){return o.r=a(d),o.g=c(d),o.b=u(d),o.opacity=l(d),o+""}}return i.gamma=e,i})(1);function vT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),o;return function(s){for(o=0;o<r;++o)i[o]=e[o]*(1-s)+t[o]*s;return i}}function OT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function TT(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),s=new Array(r),a;for(a=0;a<i;++a)o[a]=Ss(e[a],t[a]);for(;a<r;++a)s[a]=t[a];return function(c){for(a=0;a<i;++a)s[a]=o[a](c);return s}}function cl(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}function de(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function kT(e,t){var r={},i={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?r[o]=Ss(e[o],t[o]):i[o]=t[o];return function(s){for(o in r)i[o]=r[o](s);return i}}var uc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Da=new RegExp(uc.source,"g");function ST(e){return function(){return e}}function CT(e){return function(t){return e(t)+""}}function ll(e,t){var r=uc.lastIndex=Da.lastIndex=0,i,o,s,a=-1,c=[],u=[];for(e=e+"",t=t+"";(i=uc.exec(e))&&(o=Da.exec(t));)(s=o.index)>r&&(s=t.slice(r,s),c[a]?c[a]+=s:c[++a]=s),(i=i[0])===(o=o[0])?c[a]?c[a]+=o:c[++a]=o:(c[++a]=null,u.push({i:a,x:de(i,o)})),r=Da.lastIndex;return r<t.length&&(s=t.slice(r),c[a]?c[a]+=s:c[++a]=s),c.length<2?u[0]?CT(u[0].x):ST(t):(t=u.length,function(l){for(var d=0,f;d<t;++d)c[(f=u[d]).i]=f.x(l);return c.join("")})}function Ss(e,t){var r=typeof t,i;return t==null||r==="boolean"?al(t):(r==="number"?de:r==="string"?(i=fi(t))?(t=i,Nd):ll:t instanceof fi?Nd:t instanceof Date?cl:OT(t)?vT:Array.isArray(t)?TT:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?kT:de)(e,t)}function xh(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function wT(e){return function(){return e}}function ET(e){return+e}var jd=[0,1];function Ot(e){return e}function dc(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:wT(isNaN(t)?NaN:.5)}function AT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function PT(e,t,r){var i=e[0],o=e[1],s=t[0],a=t[1];return o<i?(i=dc(o,i),s=r(a,s)):(i=dc(i,o),s=r(s,a)),function(c){return s(i(c))}}function RT(e,t,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),s=new Array(i),a=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<i;)o[a]=dc(e[a],e[a+1]),s[a]=r(t[a],t[a+1]);return function(c){var u=mh(e,c,1,i)-1;return s[u](o[u](c))}}function Pi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Cs(){var e=jd,t=jd,r=Ss,i,o,s,a=Ot,c,u,l;function d(){var p=Math.min(e.length,t.length);return a!==Ot&&(a=AT(e[0],e[p-1])),c=p>2?RT:PT,u=l=null,f}function f(p){return p==null||isNaN(p=+p)?s:(u||(u=c(e.map(i),t,r)))(i(a(p)))}return f.invert=function(p){return a(o((l||(l=c(t,e.map(i),de)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,ET),d()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),r=xh,d()},f.clamp=function(p){return arguments.length?(a=p?!0:Ot,d()):a!==Ot},f.interpolate=function(p){return arguments.length?(r=p,d()):r},f.unknown=function(p){return arguments.length?(s=p,f):s},function(p,h){return i=p,o=h,d()}}function vh(){return Cs()(Ot,Ot)}function IT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Mo(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function Tr(e){return e=Mo(Math.abs(e)),e?e[1]:NaN}function MT(e,t){return function(r,i){for(var o=r.length,s=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>i&&(c=Math.max(1,i-u)),s.push(r.substring(o-=c,o+c)),!((u+=c+1)>i));)c=e[a=(a+1)%e.length];return s.reverse().join(t)}}function $T(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var _T=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pi(e){if(!(t=_T.exec(e)))throw new Error("invalid format: "+e);var t;return new ul({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]})}pi.prototype=ul.prototype;function ul(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+""}ul.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 DT(e){e:for(var t=e.length,r=1,i=-1,o;r<t;++r)switch(e[r]){case".":i=o=r;break;case"0":i===0&&(i=r),o=r;break;default:if(!+e[r])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(o+1):e}var Oh;function LT(e,t){var r=Mo(e,t);if(!r)return e+"";var i=r[0],o=r[1],s=o-(Oh=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Mo(e,Math.max(0,t+s-1))[0]}function qd(e,t){var r=Mo(e,t);if(!r)return e+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const Fd={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:IT,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>qd(e*100,t),r:qd,s:LT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function zd(e){return e}var Bd=Array.prototype.map,Hd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function NT(e){var t=e.grouping===void 0||e.thousands===void 0?zd:MT(Bd.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?zd:$T(Bd.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=pi(f);var p=f.fill,h=f.align,g=f.sign,m=f.symbol,y=f.zero,b=f.width,O=f.comma,S=f.precision,v=f.trim,T=f.type;T==="n"?(O=!0,T="g"):Fd[T]||(S===void 0&&(S=12),v=!0,T="g"),(y||p==="0"&&h==="=")&&(y=!0,p="0",h="=");var k=m==="$"?r:m==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",w=m==="$"?i:/[%p]/.test(T)?a:"",M=Fd[T],I=/[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 _($){var x=k,A=w,R,N,q;if(T==="c")A=M($)+A,$="";else{$=+$;var F=$<0||1/$<0;if($=isNaN($)?u:M(Math.abs($),S),v&&($=DT($)),F&&+$==0&&g!=="+"&&(F=!1),x=(F?g==="("?g:c:g==="-"||g==="("?"":g)+x,A=(T==="s"?Hd[8+Oh/3]:"")+A+(F&&g==="("?")":""),I){for(R=-1,N=$.length;++R<N;)if(q=$.charCodeAt(R),48>q||q>57){A=(q===46?o+$.slice(R+1):$.slice(R))+A,$=$.slice(0,R);break}}}O&&!y&&($=t($,1/0));var G=x.length+$.length+A.length,V=G<b?new Array(b-G+1).join(p):"";switch(O&&y&&($=t(V+$,V.length?b-A.length:1/0),V=""),h){case"<":$=x+$+A+V;break;case"=":$=x+V+$+A;break;case"^":$=V.slice(0,G=V.length>>1)+x+$+A+V.slice(G);break;default:$=V+x+$+A;break}return s($)}return _.toString=function(){return f+""},_}function d(f,p){var h=l((f=pi(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Tr(p)/3)))*3,m=Math.pow(10,-g),y=Hd[8+g/3];return function(b){return h(m*b)+y}}return{format:l,formatPrefix:d}}var ao,dl,Th;jT({thousands:",",grouping:[3],currency:["$",""]});function jT(e){return ao=NT(e),dl=ao.format,Th=ao.formatPrefix,ao}function qT(e){return Math.max(0,-Tr(Math.abs(e)))}function FT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Tr(t)/3)))*3-Tr(Math.abs(e)))}function zT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Tr(t)-Tr(e))+1}function BT(e,t,r,i){var o=ac(e,t,r),s;switch(i=pi(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(s=FT(o,a))&&(i.precision=s),Th(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=zT(o,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=qT(o))&&(i.precision=s-(i.type==="%")*2);break}}return dl(i)}function ws(e){var t=e.domain;return e.ticks=function(r){var i=t();return oc(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var o=t();return BT(o[0],o[o.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),o=0,s=i.length-1,a=i[o],c=i[s],u,l,d=10;for(c<a&&(l=a,a=c,c=l,l=o,o=s,s=l);d-- >0;){if(l=sc(a,c,r),l===u)return i[o]=a,i[s]=c,t(i);if(l>0)a=Math.floor(a/l)*l,c=Math.ceil(c/l)*l;else if(l<0)a=Math.ceil(a*l)/l,c=Math.floor(c*l)/l;else break;u=l}return e},e}function fl(){var e=vh();return e.copy=function(){return Pi(e,fl())},xn.apply(e,arguments),ws(e)}function kh(e,t){e=e.slice();var r=0,i=e.length-1,o=e[r],s=e[i],a;return s<o&&(a=r,r=i,i=a,a=o,o=s,s=a),e[r]=t.floor(o),e[i]=t.ceil(s),e}function Vd(e){return Math.log(e)}function Gd(e){return Math.exp(e)}function HT(e){return-Math.log(-e)}function VT(e){return-Math.exp(-e)}function GT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function UT(e){return e===10?GT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function YT(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 Ud(e){return(t,r)=>-e(-t,r)}function WT(e){const t=e(Vd,Gd),r=t.domain;let i=10,o,s;function a(){return o=YT(i),s=UT(i),r()[0]<0?(o=Ud(o),s=Ud(s),e(HT,VT)):e(Vd,Gd),t}return t.base=function(c){return arguments.length?(i=+c,a()):i},t.domain=function(c){return arguments.length?(r(c),a()):r()},t.ticks=c=>{const u=r();let l=u[0],d=u[u.length-1];const f=d<l;f&&([l,d]=[d,l]);let p=o(l),h=o(d),g,m;const y=c==null?10:+c;let b=[];if(!(i%1)&&h-p<y){if(p=Math.floor(p),h=Math.ceil(h),l>0){for(;p<=h;++p)for(g=1;g<i;++g)if(m=p<0?g/s(-p):g*s(p),!(m<l)){if(m>d)break;b.push(m)}}else for(;p<=h;++p)for(g=i-1;g>=1;--g)if(m=p>0?g/s(-p):g*s(p),!(m<l)){if(m>d)break;b.push(m)}b.length*2<y&&(b=oc(l,d,y))}else b=oc(p,h,Math.min(h-p,y)).map(s);return f?b.reverse():b},t.tickFormat=(c,u)=>{if(c==null&&(c=10),u==null&&(u=i===10?"s":","),typeof u!="function"&&(!(i%1)&&(u=pi(u)).precision==null&&(u.trim=!0),u=dl(u)),c===1/0)return u;const l=Math.max(1,i*c/t.ticks().length);return d=>{let f=d/s(Math.round(o(d)));return f*i<i-.5&&(f*=i),f<=l?u(d):""}},t.nice=()=>r(kh(r(),{floor:c=>s(Math.floor(o(c))),ceil:c=>s(Math.ceil(o(c)))})),t}function $o(){const e=WT(Cs()).domain([1,10]);return e.copy=()=>Pi(e,$o()).base(e.base()),xn.apply(e,arguments),e}function Yd(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Wd(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function XT(e){var t=1,r=e(Yd(t),Wd(t));return r.constant=function(i){return arguments.length?e(Yd(t=+i),Wd(t)):t},ws(r)}function Sh(){var e=XT(Cs());return e.copy=function(){return Pi(e,Sh()).constant(e.constant())},xn.apply(e,arguments)}function Xd(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ZT(e){return e<0?-e*e:e*e}function QT(e){var t=e(Ot,Ot),r=1;function i(){return r===1?e(Ot,Ot):r===.5?e(KT,ZT):e(Xd(r),Xd(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,i()):r},ws(t)}function pl(){var e=QT(Cs());return e.copy=function(){return Pi(e,pl()).exponent(e.exponent())},xn.apply(e,arguments),e}function JT(){return pl.apply(null,arguments).exponent(.5)}function Ch(){var e=[.5],t=[0,1],r,i=1;function o(s){return s!=null&&s<=s?t[mh(e,s,0,i)]:r}return o.domain=function(s){return arguments.length?(e=Array.from(s),i=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(s){return arguments.length?(t=Array.from(s),i=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(s){var a=t.indexOf(s);return[e[a-1],e[a]]},o.unknown=function(s){return arguments.length?(r=s,o):r},o.copy=function(){return Ch().domain(e).range(t).unknown(r)},xn.apply(o,arguments)}const La=new Date,Na=new Date;function je(e,t,r,i){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const a=o(s),c=o.ceil(s);return s-a<c-s?a:c},o.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),o.range=(s,a,c)=>{const u=[];if(s=o.ceil(s),c=c==null?1:Math.floor(c),!(s<a)||!(c>0))return u;let l;do u.push(l=new Date(+s)),t(s,c),e(s);while(l<s&&s<a);return u},o.filter=s=>je(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,c)=>{if(a>=a)if(c<0)for(;++c<=0;)for(;t(a,-1),!s(a););else for(;--c>=0;)for(;t(a,1),!s(a););}),r&&(o.count=(s,a)=>(La.setTime(+s),Na.setTime(+a),e(La),e(Na),Math.floor(r(La,Na))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(i?a=>i(a)%s===0:a=>o.count(0,a)%s===0):o)),o}const _o=je(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_o.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?je(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):_o);_o.range;const Zt=1e3,Tt=Zt*60,Qt=Tt*60,tn=Qt*24,hl=tn*7,Kd=tn*30,ja=tn*365,Rn=je(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Zt)},(e,t)=>(t-e)/Zt,e=>e.getUTCSeconds());Rn.range;const ml=je(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zt)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getMinutes());ml.range;const gl=je(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCMinutes());gl.range;const yl=je(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zt-e.getMinutes()*Tt)},(e,t)=>{e.setTime(+e+t*Qt)},(e,t)=>(t-e)/Qt,e=>e.getHours());yl.range;const bl=je(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Qt)},(e,t)=>(t-e)/Qt,e=>e.getUTCHours());bl.range;const Ri=je(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/tn,e=>e.getDate()-1);Ri.range;const Es=je(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tn,e=>e.getUTCDate()-1);Es.range;const wh=je(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tn,e=>Math.floor(e/tn));wh.range;function Vn(e){return je(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Tt)/hl)}const As=Vn(0),Do=Vn(1),ek=Vn(2),tk=Vn(3),kr=Vn(4),nk=Vn(5),rk=Vn(6);As.range;Do.range;ek.range;tk.range;kr.range;nk.range;rk.range;function Gn(e){return je(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/hl)}const Ps=Gn(0),Lo=Gn(1),ik=Gn(2),ok=Gn(3),Sr=Gn(4),sk=Gn(5),ak=Gn(6);Ps.range;Lo.range;ik.range;ok.range;Sr.range;sk.range;ak.range;const xl=je(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());xl.range;const vl=je(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vl.range;const nn=je(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());nn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:je(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});nn.range;const rn=je(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());rn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:je(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});rn.range;function Eh(e,t,r,i,o,s){const a=[[Rn,1,Zt],[Rn,5,5*Zt],[Rn,15,15*Zt],[Rn,30,30*Zt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[o,1,Qt],[o,3,3*Qt],[o,6,6*Qt],[o,12,12*Qt],[i,1,tn],[i,2,2*tn],[r,1,hl],[t,1,Kd],[t,3,3*Kd],[e,1,ja]];function c(l,d,f){const p=d<l;p&&([l,d]=[d,l]);const h=f&&typeof f.range=="function"?f:u(l,d,f),g=h?h.range(l,+d+1):[];return p?g.reverse():g}function u(l,d,f){const p=Math.abs(d-l)/f,h=ol(([,,y])=>y).right(a,p);if(h===a.length)return e.every(ac(l/ja,d/ja,f));if(h===0)return _o.every(Math.max(ac(l,d,f),1));const[g,m]=a[p/a[h-1][2]<a[h][2]/p?h-1:h];return g.every(m)}return[c,u]}const[ck,lk]=Eh(rn,vl,Ps,wh,bl,gl),[uk,dk]=Eh(nn,xl,As,Ri,yl,ml);function qa(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 Fa(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 Hr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function fk(e){var t=e.dateTime,r=e.date,i=e.time,o=e.periods,s=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,l=Vr(o),d=Gr(o),f=Vr(s),p=Gr(s),h=Vr(a),g=Gr(a),m=Vr(c),y=Gr(c),b=Vr(u),O=Gr(u),S={a:F,A:G,b:V,B:L,c:null,d:nf,e:nf,f:Dk,g:Gk,G:Yk,H:Mk,I:$k,j:_k,L:Ah,m:Lk,M:Nk,p:B,q:Y,Q:sf,s:af,S:jk,u:qk,U:Fk,V:zk,w:Bk,W:Hk,x:null,X:null,y:Vk,Y:Uk,Z:Wk,"%":of},v={a:Q,A:W,b:K,B:Z,c:null,d:rf,e:rf,f:Qk,g:cS,G:uS,H:Xk,I:Kk,j:Zk,L:Rh,m:Jk,M:eS,p:J,q:ee,Q:sf,s:af,S:tS,u:nS,U:rS,V:iS,w:oS,W:sS,x:null,X:null,y:aS,Y:lS,Z:dS,"%":of},T={a:_,A:$,b:x,B:A,c:R,d:ef,e:ef,f:Ak,g:Jd,G:Qd,H:tf,I:tf,j:Sk,L:Ek,m:kk,M:Ck,p:I,q:Tk,Q:Rk,s:Ik,S:wk,u:yk,U:bk,V:xk,w:gk,W:vk,x:N,X:q,y:Jd,Y:Qd,Z:Ok,"%":Pk};S.x=k(r,S),S.X=k(i,S),S.c=k(t,S),v.x=k(r,v),v.X=k(i,v),v.c=k(t,v);function k(z,H){return function(X){var D=[],se=-1,oe=0,$e=z.length,qe,We,Dt;for(X instanceof Date||(X=new Date(+X));++se<$e;)z.charCodeAt(se)===37&&(D.push(z.slice(oe,se)),(We=Zd[qe=z.charAt(++se)])!=null?qe=z.charAt(++se):We=qe==="e"?" ":"0",(Dt=H[qe])&&(qe=Dt(X,We)),D.push(qe),oe=se+1);return D.push(z.slice(oe,se)),D.join("")}}function w(z,H){return function(X){var D=Hr(1900,void 0,1),se=M(D,z,X+="",0),oe,$e;if(se!=X.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(H&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(oe=Fa(Hr(D.y,0,1)),$e=oe.getUTCDay(),oe=$e>4||$e===0?Lo.ceil(oe):Lo(oe),oe=Es.offset(oe,(D.V-1)*7),D.y=oe.getUTCFullYear(),D.m=oe.getUTCMonth(),D.d=oe.getUTCDate()+(D.w+6)%7):(oe=qa(Hr(D.y,0,1)),$e=oe.getDay(),oe=$e>4||$e===0?Do.ceil(oe):Do(oe),oe=Ri.offset(oe,(D.V-1)*7),D.y=oe.getFullYear(),D.m=oe.getMonth(),D.d=oe.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),$e="Z"in D?Fa(Hr(D.y,0,1)).getUTCDay():qa(Hr(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-($e+5)%7:D.w+D.U*7-($e+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Fa(D)):qa(D)}}function M(z,H,X,D){for(var se=0,oe=H.length,$e=X.length,qe,We;se<oe;){if(D>=$e)return-1;if(qe=H.charCodeAt(se++),qe===37){if(qe=H.charAt(se++),We=T[qe in Zd?H.charAt(se++):qe],!We||(D=We(z,X,D))<0)return-1}else if(qe!=X.charCodeAt(D++))return-1}return D}function I(z,H,X){var D=l.exec(H.slice(X));return D?(z.p=d.get(D[0].toLowerCase()),X+D[0].length):-1}function _(z,H,X){var D=h.exec(H.slice(X));return D?(z.w=g.get(D[0].toLowerCase()),X+D[0].length):-1}function $(z,H,X){var D=f.exec(H.slice(X));return D?(z.w=p.get(D[0].toLowerCase()),X+D[0].length):-1}function x(z,H,X){var D=b.exec(H.slice(X));return D?(z.m=O.get(D[0].toLowerCase()),X+D[0].length):-1}function A(z,H,X){var D=m.exec(H.slice(X));return D?(z.m=y.get(D[0].toLowerCase()),X+D[0].length):-1}function R(z,H,X){return M(z,t,H,X)}function N(z,H,X){return M(z,r,H,X)}function q(z,H,X){return M(z,i,H,X)}function F(z){return a[z.getDay()]}function G(z){return s[z.getDay()]}function V(z){return u[z.getMonth()]}function L(z){return c[z.getMonth()]}function B(z){return o[+(z.getHours()>=12)]}function Y(z){return 1+~~(z.getMonth()/3)}function Q(z){return a[z.getUTCDay()]}function W(z){return s[z.getUTCDay()]}function K(z){return u[z.getUTCMonth()]}function Z(z){return c[z.getUTCMonth()]}function J(z){return o[+(z.getUTCHours()>=12)]}function ee(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var H=k(z+="",S);return H.toString=function(){return z},H},parse:function(z){var H=w(z+="",!1);return H.toString=function(){return z},H},utcFormat:function(z){var H=k(z+="",v);return H.toString=function(){return z},H},utcParse:function(z){var H=w(z+="",!0);return H.toString=function(){return z},H}}}var Zd={"-":"",_:" ",0:"0"},Fe=/^\s*\d+/,pk=/^%/,hk=/[\\^$*+?|[\]().{}]/g;function ae(e,t,r){var i=e<0?"-":"",o=(i?-e:e)+"",s=o.length;return i+(s<r?new Array(r-s+1).join(t)+o:o)}function mk(e){return e.replace(hk,"\\$&")}function Vr(e){return new RegExp("^(?:"+e.map(mk).join("|")+")","i")}function Gr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function gk(e,t,r){var i=Fe.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function yk(e,t,r){var i=Fe.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function bk(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function xk(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function vk(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function Qd(e,t,r){var i=Fe.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function Jd(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Ok(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Tk(e,t,r){var i=Fe.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function kk(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function ef(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Sk(e,t,r){var i=Fe.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function tf(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Ck(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function wk(e,t,r){var i=Fe.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Ek(e,t,r){var i=Fe.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Ak(e,t,r){var i=Fe.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Pk(e,t,r){var i=pk.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Rk(e,t,r){var i=Fe.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function Ik(e,t,r){var i=Fe.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function nf(e,t){return ae(e.getDate(),t,2)}function Mk(e,t){return ae(e.getHours(),t,2)}function $k(e,t){return ae(e.getHours()%12||12,t,2)}function _k(e,t){return ae(1+Ri.count(nn(e),e),t,3)}function Ah(e,t){return ae(e.getMilliseconds(),t,3)}function Dk(e,t){return Ah(e,t)+"000"}function Lk(e,t){return ae(e.getMonth()+1,t,2)}function Nk(e,t){return ae(e.getMinutes(),t,2)}function jk(e,t){return ae(e.getSeconds(),t,2)}function qk(e){var t=e.getDay();return t===0?7:t}function Fk(e,t){return ae(As.count(nn(e)-1,e),t,2)}function Ph(e){var t=e.getDay();return t>=4||t===0?kr(e):kr.ceil(e)}function zk(e,t){return e=Ph(e),ae(kr.count(nn(e),e)+(nn(e).getDay()===4),t,2)}function Bk(e){return e.getDay()}function Hk(e,t){return ae(Do.count(nn(e)-1,e),t,2)}function Vk(e,t){return ae(e.getFullYear()%100,t,2)}function Gk(e,t){return e=Ph(e),ae(e.getFullYear()%100,t,2)}function Uk(e,t){return ae(e.getFullYear()%1e4,t,4)}function Yk(e,t){var r=e.getDay();return e=r>=4||r===0?kr(e):kr.ceil(e),ae(e.getFullYear()%1e4,t,4)}function Wk(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ae(t/60|0,"0",2)+ae(t%60,"0",2)}function rf(e,t){return ae(e.getUTCDate(),t,2)}function Xk(e,t){return ae(e.getUTCHours(),t,2)}function Kk(e,t){return ae(e.getUTCHours()%12||12,t,2)}function Zk(e,t){return ae(1+Es.count(rn(e),e),t,3)}function Rh(e,t){return ae(e.getUTCMilliseconds(),t,3)}function Qk(e,t){return Rh(e,t)+"000"}function Jk(e,t){return ae(e.getUTCMonth()+1,t,2)}function eS(e,t){return ae(e.getUTCMinutes(),t,2)}function tS(e,t){return ae(e.getUTCSeconds(),t,2)}function nS(e){var t=e.getUTCDay();return t===0?7:t}function rS(e,t){return ae(Ps.count(rn(e)-1,e),t,2)}function Ih(e){var t=e.getUTCDay();return t>=4||t===0?Sr(e):Sr.ceil(e)}function iS(e,t){return e=Ih(e),ae(Sr.count(rn(e),e)+(rn(e).getUTCDay()===4),t,2)}function oS(e){return e.getUTCDay()}function sS(e,t){return ae(Lo.count(rn(e)-1,e),t,2)}function aS(e,t){return ae(e.getUTCFullYear()%100,t,2)}function cS(e,t){return e=Ih(e),ae(e.getUTCFullYear()%100,t,2)}function lS(e,t){return ae(e.getUTCFullYear()%1e4,t,4)}function uS(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Sr(e):Sr.ceil(e),ae(e.getUTCFullYear()%1e4,t,4)}function dS(){return"+0000"}function of(){return"%"}function sf(e){return+e}function af(e){return Math.floor(+e/1e3)}var or,Mh,$h;fS({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 fS(e){return or=fk(e),Mh=or.format,or.parse,$h=or.utcFormat,or.utcParse,or}function pS(e){return new Date(e)}function hS(e){return e instanceof Date?+e:+new Date(+e)}function Ol(e,t,r,i,o,s,a,c,u,l){var d=vh(),f=d.invert,p=d.domain,h=l(".%L"),g=l(":%S"),m=l("%I:%M"),y=l("%I %p"),b=l("%a %d"),O=l("%b %d"),S=l("%B"),v=l("%Y");function T(k){return(u(k)<k?h:c(k)<k?g:a(k)<k?m:s(k)<k?y:i(k)<k?o(k)<k?b:O:r(k)<k?S:v)(k)}return d.invert=function(k){return new Date(f(k))},d.domain=function(k){return arguments.length?p(Array.from(k,hS)):p().map(pS)},d.ticks=function(k){var w=p();return e(w[0],w[w.length-1],k??10)},d.tickFormat=function(k,w){return w==null?T:l(w)},d.nice=function(k){var w=p();return(!k||typeof k.range!="function")&&(k=t(w[0],w[w.length-1],k??10)),k?p(kh(w,k)):d},d.copy=function(){return Pi(d,Ol(e,t,r,i,o,s,a,c,u,l))},d}function _h(){return xn.apply(Ol(uk,dk,nn,xl,As,Ri,yl,ml,Rn,Mh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function mS(){return xn.apply(Ol(ck,lk,rn,vl,Ps,Es,bl,gl,Rn,$h).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function gS(){var e=0,t=1,r,i,o,s,a=Ot,c=!1,u;function l(f){return f==null||isNaN(f=+f)?u:a(o===0?.5:(f=(s(f)-r)*o,c?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,r=s(e=+e),i=s(t=+t),o=r===i?0:1/(i-r),l):[e,t]},l.clamp=function(f){return arguments.length?(c=!!f,l):c},l.interpolator=function(f){return arguments.length?(a=f,l):a};function d(f){return function(p){var h,g;return arguments.length?([h,g]=p,a=f(h,g),l):[a(0),a(1)]}}return l.range=d(Ss),l.rangeRound=d(xh),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return s=f,r=f(e),i=f(t),o=r===i?0:1/(i-r),l}}function yS(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Dh(){var e=ws(gS()(Ot));return e.copy=function(){return yS(e,Dh())},iT.apply(e,arguments)}function Lh(e){return e.type==="piecewise"?Ch(e.thresholds,e.colors):Dh([e.min??0,e.max??100],e.color)}function Cr(e){return e.values?cc(e.values,e.colors).unknown(e.unknownColor??null):cc(e.colors.map((t,r)=>r),e.colors).unknown(e.unknownColor??null)}function gr(e){return e.type==="ordinal"?Cr(e):Lh(e)}function Rs(e,t,r){const{tickMaxStep:i,tickMinStep:o,tickNumber:s}=e,a=o===void 0?999:Math.floor(Math.abs(t[1]-t[0])/o),c=i===void 0?2:Math.ceil(Math.abs(t[1]-t[0])/i);return Math.min(a,Math.max(c,s??r))}function Nh(e,t){return t[1]-t[0]===0?1:e/((t[1]-t[0])/100)}function Tl(e){return Math.floor(Math.abs(e)/50)}function cf(e){return Array.isArray(e)?JSON.stringify(e):typeof e=="object"&&e!==null?e.valueOf():e}function Is(...e){let t=new Ao(void 0,cf),r=[],i=[],o=0,s=1,a,c,u=!1,l=0,d=0,f=.5;const p=y=>{const b=t.get(y);if(b!==void 0)return i[b%i.length]},h=()=>{const y=r.length,b=s<o,O=b?s:o,S=b?o:s;a=(S-O)/Math.max(1,y-l+d*2),u&&(a=Math.floor(a));const v=O+(S-O-a*(y-l))*f;c=a*(1-l);const T=u?Math.round(v):v;c=u?Math.round(c):c;const w=rT(y).map(M=>T+a*M);return i=b?w.reverse():w,p};p.domain=function(y){if(!arguments.length)return r.slice();r=[],t=new Ao(void 0,cf);for(const b of y)t.has(b)||t.set(b,r.push(b)-1);return h()},p.range=function(y){if(!arguments.length)return[o,s];const[b,O]=y;return o=+b,s=+O,h()},p.rangeRound=function(y){const[b,O]=y;return o=+b,s=+O,u=!0,h()},p.bandwidth=function(){return c},p.step=function(){return a},p.round=function(y){return arguments.length?(u=!!y,h()):u},p.padding=function(y){return arguments.length?(l=Math.min(1,d=+y),h()):l},p.paddingInner=function(y){return arguments.length?(l=Math.min(1,y),h()):l},p.paddingOuter=function(y){return arguments.length?(d=+y,h()):d},p.align=function(y){return arguments.length?(f=Math.max(0,Math.min(1,y)),h()):f},p.copy=()=>Is(r,[o,s]).round(u).paddingInner(l).paddingOuter(d).align(f);const[g,m]=e;return e.length>1?(p.domain(g),p.range(m)):g?p.range(g):h(),p}function jh(...e){const t=Is(...e).paddingInner(1),r=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=()=>{const i=r();return i.padding=i.paddingOuter,delete i.paddingInner,delete i.paddingOuter,i.copy=t.copy,i},t}function qh(...e){const t=Sh(...e),r=t.ticks,{negativeScale:i,linearScale:o,positiveScale:s}=bS(t);return t.ticks=a=>{const c=r(a),u=t.constant();let l=0,d=0,f=0;c.forEach(h=>{h>-u&&h<u&&(d+=1),h<=-u&&(l+=1),h>=u&&(f+=1)});const p=[];if(l>0&&p.push(...i.ticks(l)),d>0){const h=o.ticks(d);p.at(-1)===h[0]?p.push(...h.slice(1)):p.push(...h)}if(f>0){const h=s.ticks(f);p.at(-1)===h[0]?p.push(...h.slice(1)):p.push(...h)}return p},t.tickFormat=(a=10,c)=>{const u=t.constant(),[l,d]=t.domain(),f=d-l,p=i.domain(),h=p[1]-p[0],m=(f===0?0:h/f)*a,y=o.domain(),b=y[1]-y[0],S=(f===0?0:b/f)*a,v=s.domain(),T=v[1]-v[0],w=(f===0?0:T/f)*a,M=i.tickFormat(m,c),I=o.tickFormat(S,c),_=s.tickFormat(w,c);return $=>($.valueOf()<=-u?M:$.valueOf()>=u?_:I)($)},t.copy=()=>qh(t.domain(),t.range()).constant(t.constant()),t}function bS(e){const t=e.constant(),r=e.domain(),i=[r[0],Math.min(r[1],-t)],o=$o(i,e.range()),s=[Math.max(r[0],-t),Math.min(r[1],t)],a=fl(s,e.range()),c=[Math.max(r[0],t),r[1]],u=$o(c,e.range());return{negativeScale:o,linearScale:a,positiveScale:u}}function Ms(e,t,r){switch(e){case"log":return $o(t,r);case"pow":return pl(t,r);case"sqrt":return JT(t,r);case"time":return _h(t,r);case"utc":return mS(t,r);case"symlog":return qh(t,r);default:return fl(t,r)}}const No=e=>e?.[0]instanceof Date;function fc(e,t,r){const i=_h(e,t);return(o,{location:s})=>s==="tick"?i.tickFormat(r)(o):`${o.toLocaleString()}`}let lf,uf;class xS{types=new Set;constructor(){if(lf)throw new Error("You can only create one instance!");lf=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}class vS{types=new Set;constructor(){if(uf)throw new Error("You can only create one instance!");uf=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const $s=new xS;$s.addType("bar");$s.addType("line");$s.addType("scatter");const Fh=new vS;Fh.addType("radar");function _s(e){return $s.getTypes().has(e)}function jo(e){return _s(e.type)}const OS=(e,t,r,i)=>{const o=new Set;return Object.keys(t).filter(_s).forEach(a=>{const c=r[a]?.series??{},u=t[a].axisTooltipGetter?.(c);u!==void 0&&u.forEach(({axisId:l,direction:d})=>{d===e&&o.add(l??i)})}),o};function Ne(e){return e.bandwidth!==void 0}function TS(e){return Ne(e)&&e.paddingOuter!==void 0}function kS(e,t,r){const i=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return r?[i[1],i[0]]:i}const SS=.2,CS=.1;function zh({scales:e,drawingArea:t,formattedSeries:r,axis:i,seriesConfig:o,axisDirection:s,zoomMap:a,domains:c}){if(i===void 0)return{axis:{},axisIds:[]};const u=OS(s,o,r,i[0].id),l={};return i.forEach(d=>{const f=d,p=e[f.id],h=a?.get(f.id),g=h?[h.start,h.end]:[0,100],m=kS(t,s,f.reverse??!1),y=c[f.id].tickNumber,b=!f.ignoreTooltip&&u.has(f.id),O=Nh(y,g),S=f.data??[];if(Ne(p)){const k=s==="y"?[m[1],m[0]]:m;if(TS(p)&&Bn(f)){const w=f.categoryGapRatio??SS,M=f.barGapRatio??CS;l[f.id]=E({offset:0,height:0,categoryGapRatio:w,barGapRatio:M,triggerTooltip:b},f,{data:S,scale:p,tickNumber:O,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?Cr(E({values:f.data},f.colorMap)):gr(f.colorMap))})}if(Hn(f)&&(l[f.id]=E({offset:0,height:0,triggerTooltip:b},f,{data:S,scale:p,tickNumber:O,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?Cr(E({values:f.data},f.colorMap)):gr(f.colorMap))})),No(f.data)){const w=fc(f.data,k,f.tickNumber);l[f.id].valueFormatter=f.valueFormatter??w}return}if(f.scaleType==="band"||f.scaleType==="point")return;const v=f,T=v.scaleType??"linear";l[f.id]=E({offset:0,height:0,triggerTooltip:b},v,{data:S,scaleType:T,scale:p,tickNumber:O,colorScale:v.colorMap&&Lh(v.colorMap),valueFormatter:f.valueFormatter??VO(O,Ms(T,m.map(k=>p.invert(k)),m))})}),{axis:l,axisIds:i.map(({id:d})=>d)}}function wS(e){return e!=null}function ES(e,t,r,i){const o=e?.length??0,s=Math.floor(t*o/100),a=Math.ceil(r*o/100);return function(u,l){return(u[i]??e?.[l])==null?!0:l>=s&&l<a}}function AS(e,t,r,i,o){const s=e[0].valueOf(),a=e[1].valueOf(),c=s+t*(a-s)/100,u=s+r*(a-s)/100;return function(d,f){const p=d[i]??o?.[f];return p==null?!0:p>=c&&p<=u}}const PS=e=>({currentAxisId:t,seriesXAxisId:r,seriesYAxisId:i,isDefaultAxis:o})=>(s,a)=>!(t===r?i:r)||o?Object.values(e??{})[0]?.(s,a)??!0:[i,r].filter(l=>l!==t).map(l=>e[l??""]).filter(wS).every(l=>l(s,a)),df=e=>(t=[])=>t.reduce((r,i)=>{const{zoom:o,id:s,reverse:a}=i,c=il(o,s,e,a);return c&&(r[s]=c),r},{}),RS=.2;function Bh(e,t,r){const i=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return r.reverse?[i[1],i[0]]:i}function Hh(e,t){const r=[0,1];if(Bn(e)){const s=e.categoryGapRatio??RS;return Is(t,r).paddingInner(s).paddingOuter(s/2)}if(Hn(e))return jh(t,r);const i=e.scaleType??"linear",o=Ms(i,t,r);return UO(e)&&e.constant!=null&&o.constant(e.constant),o}const Vh=(e,t)=>{const r=e[1]-e[0],i=t[1]-t[0],o=e[0]-t[0]*r/i,s=e[1]+(100-t[1])*r/i;return[o,s]},IS=(e,t,r,i,o,s,a)=>{const c=r==="x"?i[e].xExtremumGetter:i[e].yExtremumGetter,u=s[e]?.series??{};return c?.({series:u,axis:t,axisIndex:o,isDefaultAxis:o===0,getFilters:a})??[1/0,-1/0]};function Ds(e,t,r,i,o,s){const a=Object.keys(r).filter(_s);let c=[1/0,-1/0];for(const u of a){const[l,d]=IS(u,e,t,r,i,o,s);c=[Math.min(c[0],l),Math.max(c[1],d)]}return Number.isNaN(c[0])||Number.isNaN(c[1])?[1/0,-1/0]:c}const MS=(e,t,r,i)=>{if(e.domainLimit!==void 0)return e.domainLimit;if(t==="x")for(const o of i.line?.seriesOrder??[]){const s=i.line.series[o];if(s.xAxisId===e.id||s.xAxisId===void 0&&r===0)return"strict"}return"nice"};function Gh(e,t,r){return Ms(e??"linear",t,[0,1]).nice(r).domain()}function Uh(e,t,r,i,[o,s],a,c){const u=Wh(e,t,r,i,c);let l=Xh(e,o,s);if(typeof u=="function"){const{min:f,max:p}=u(o.valueOf(),s.valueOf());l[0]=f,l[1]=p}const d=Rs(e,l,a);return u==="nice"&&(l=Gh(e.scaleType,l,d)),l=["min"in e?e.min??l[0]:l[0],"max"in e?e.max??l[1]:l[1]],{domain:l,tickNumber:d}}function Yh(e,t,r,i,[o,s],a,c){const u=Wh(e,t,r,i,c);let l=Xh(e,o,s);if(typeof u=="function"){const{min:d,max:f}=u(o.valueOf(),s.valueOf());l[0]=d,l[1]=f}return u==="nice"&&(l=Gh(e.scaleType,l,a)),[e.min??l[0],e.max??l[1]]}function Wh(e,t,r,i,o){return o?MS(e,t,r,i):e.domainLimit??"nice"}function Xh(e,t,r){let i=t,o=r;return"max"in e&&e.max!=null&&e.max<t&&(i=e.max),"min"in e&&e.min!=null&&e.min>t&&(o=e.min),!("min"in e)&&!("max"in e)?[i,o]:[e.min??i,e.max??o]}class $S{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(t,r){let i=this.length++;for(;i>0;){const o=i-1>>1,s=this.values[o];if(r>=s)break;this.ids[i]=this.ids[o],this.values[i]=s,i=o}this.ids[i]=t,this.values[i]=r}pop(){if(this.length===0)return;const t=this.ids,r=this.values,i=t[0],o=--this.length;if(o>0){const s=t[o],a=r[o];let c=0;const u=o>>1;for(;c<u;){const l=(c<<1)+1,d=l+1,f=l+(+(d<o)&+(r[d]<r[l]));if(r[f]>=a)break;t[c]=t[f],r[c]=r[f],c=f}t[c]=s,r[c]=a}return i}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){this.ids.length=this.values.length=this.length}}const ff=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],za=3;class kl{static from(t,r=0){if(r%8!==0)throw new Error("byteOffset must be 8-byte aligned.");if(!t||t.byteLength===void 0||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[i,o]=new Uint8Array(t,r+0,2);if(i!==251)throw new Error("Data does not appear to be in a Flatbush format.");const s=o>>4;if(s!==za)throw new Error(`Got v${s} data when expected v${za}.`);const a=ff[o&15];if(!a)throw new Error("Unrecognized array type.");const[c]=new Uint16Array(t,r+2,1),[u]=new Uint32Array(t,r+4,1);return new kl(u,c,a,void 0,t,r)}constructor(t,r=16,i=Float64Array,o=ArrayBuffer,s,a=0){if(t===void 0)throw new Error("Missing required argument: numItems.");if(isNaN(t)||t<=0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.byteOffset=a;let c=t,u=c;this._levelBounds=[c*4];do c=Math.ceil(c/this.nodeSize),u+=c,this._levelBounds.push(u*4);while(c!==1);this.ArrayType=i,this.IndexArrayType=u<16384?Uint16Array:Uint32Array;const l=ff.indexOf(i),d=u*4*i.BYTES_PER_ELEMENT;if(l<0)throw new Error(`Unexpected typed array class: ${i}.`);if(s)this.data=s,this._boxes=new i(s,a+8,u*4),this._indices=new this.IndexArrayType(s,a+8+d,u),this._pos=u*4,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{const f=this.data=new o(8+d+u*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new i(f,8,u*4),this._indices=new this.IndexArrayType(f,8+d,u),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(f,0,2).set([251,(za<<4)+l]),new Uint16Array(f,2,1)[0]=r,new Uint32Array(f,4,1)[0]=t}this._queue=new $S}add(t,r,i=t,o=r){const s=this._pos>>2,a=this._boxes;return this._indices[s]=s,a[this._pos++]=t,a[this._pos++]=r,a[this._pos++]=i,a[this._pos++]=o,t<this.minX&&(this.minX=t),r<this.minY&&(this.minY=r),i>this.maxX&&(this.maxX=i),o>this.maxY&&(this.maxY=o),s}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const t=this._boxes;if(this.numItems<=this.nodeSize){t[this._pos++]=this.minX,t[this._pos++]=this.minY,t[this._pos++]=this.maxX,t[this._pos++]=this.maxY;return}const r=this.maxX-this.minX||1,i=this.maxY-this.minY||1,o=new Uint32Array(this.numItems),s=65535;for(let a=0,c=0;a<this.numItems;a++){const u=t[c++],l=t[c++],d=t[c++],f=t[c++],p=Math.floor(s*((u+d)/2-this.minX)/r),h=Math.floor(s*((l+f)/2-this.minY)/i);o[a]=LS(p,h)}pc(o,t,this._indices,0,this.numItems-1,this.nodeSize);for(let a=0,c=0;a<this._levelBounds.length-1;a++){const u=this._levelBounds[a];for(;c<u;){const l=c;let d=t[c++],f=t[c++],p=t[c++],h=t[c++];for(let g=1;g<this.nodeSize&&c<u;g++)d=Math.min(d,t[c++]),f=Math.min(f,t[c++]),p=Math.max(p,t[c++]),h=Math.max(h,t[c++]);this._indices[this._pos>>2]=l,t[this._pos++]=d,t[this._pos++]=f,t[this._pos++]=p,t[this._pos++]=h}}}search(t,r,i,o,s){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const c=[],u=[];for(;a!==void 0;){const l=Math.min(a+this.nodeSize*4,pf(a,this._levelBounds));for(let d=a;d<l;d+=4){if(i<this._boxes[d]||o<this._boxes[d+1]||t>this._boxes[d+2]||r>this._boxes[d+3])continue;const f=this._indices[d>>2]|0;a>=this.numItems*4?c.push(f):(s===void 0||s(f))&&(u.push(f),u.push(this._boxes[d]),u.push(this._boxes[d+1]))}a=c.pop()}return u}neighbors(t,r,i=1/0,o=1/0,s,a=_S){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let c=this._boxes.length-4;const u=this._queue,l=[];e:for(;c!==void 0;){const d=Math.min(c+this.nodeSize*4,pf(c,this._levelBounds));for(let f=c;f<d;f+=4){const p=this._indices[f>>2]|0,h=this._boxes[f],g=this._boxes[f+1],m=this._boxes[f+2],y=this._boxes[f+3],b=t<h?h-t:t>m?t-m:0,O=r<g?g-r:r>y?r-y:0,S=a(b,O);S>o||(c>=this.numItems*4?u.push(p<<1,S):(s===void 0||s(p))&&u.push((p<<1)+1,S))}for(;u.length&&u.peek()&1;)if(u.peekValue()>o||(l.push(u.pop()>>1),l.length===i))break e;c=u.length?u.pop()>>1:void 0}return u.clear(),l}}function _S(e,t){return e*e+t*t}function pf(e,t){let r=0,i=t.length-1;for(;r<i;){const o=r+i>>1;t[o]>e?i=o:r=o+1}return t[r]}function pc(e,t,r,i,o,s){if(Math.floor(i/s)>=Math.floor(o/s))return;const a=e[i],c=e[i+o>>1],u=e[o];let l=u;const d=Math.max(a,c);u>d?l=d:d===a?l=Math.max(c,u):d===c&&(l=Math.max(a,u));let f=i-1,p=o+1;for(;;){do f++;while(e[f]<l);do p--;while(e[p]>l);if(f>=p)break;DS(e,t,r,f,p)}pc(e,t,r,i,p,s),pc(e,t,r,p+1,o,s)}function DS(e,t,r,i,o){const s=e[i];e[i]=e[o],e[o]=s;const a=4*i,c=4*o,u=t[a],l=t[a+1],d=t[a+2],f=t[a+3];t[a]=t[c],t[a+1]=t[c+1],t[a+2]=t[c+2],t[a+3]=t[c+3],t[c]=u,t[c+1]=l,t[c+2]=d,t[c+3]=f;const p=r[i];r[i]=r[o],r[o]=p}function LS(e,t){let r=e^t,i=65535^r,o=65535^(e|t),s=e&(t^65535),a=r|i>>1,c=r>>1^r,u=o>>1^i&s>>1^o,l=r&o>>1^s>>1^s;r=a,i=c,o=u,s=l,a=r&r>>2^i&i>>2,c=r&i>>2^i&(r^i)>>2,u^=r&o>>2^i&s>>2,l^=i&o>>2^(r^i)&s>>2,r=a,i=c,o=u,s=l,a=r&r>>4^i&i>>4,c=r&i>>4^i&(r^i)>>4,u^=r&o>>4^i&s>>4,l^=i&o>>4^(r^i)&s>>4,r=a,i=c,o=u,s=l,u^=r&o>>8^i&s>>8,l^=i&o>>8^(r^i)&s>>8,r=u^u>>1,i=l^l>>1;let d=e^t,f=i|65535^(d|r);return d=(d|d<<8)&16711935,d=(d|d<<4)&252645135,d=(d|d<<2)&858993459,d=(d|d<<1)&1431655765,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,(f<<1|d)>>>0}const NS=e=>{const t=new Map;return e.forEach(r=>{t.set(r.axisId,r)}),t},Kh=e=>e.zoom,jS=U(Ut,an,(e,t)=>e?.some(r=>!!r.zoom)||t?.some(r=>!!r.zoom)||!1),Zh=U(Kh,e=>e?.isInteracting),vn=ce(Kh,function(t){return t?.zoomData&&NS(t?.zoomData)}),hf=U(vn,(e,t)=>e?.get(t)),Ii=ce(Ut,an,function(t,r){return E({},df("x")(t),df("y")(r))});U(Ii,(e,t)=>e[t]);const qS=U(ot,function(t){return Tl(t.width)}),FS=U(ot,function(t){return Tl(t.height)}),Sl=ce(Ut,Se,st,Os,qS,function(t,r,i,o,s){const c={};return t?.forEach((u,l)=>{const d=u;if(Bn(d)||Hn(d)){c[d.id]={domain:d.data},d.ordinalTimeTicks!==void 0&&(c[d.id].tickNumber=Rs(d,[d.data?.find(p=>p!==null),d.data?.findLast(p=>p!==null)],s));return}const f=Ds(d,"x",i,l,r);c[d.id]=Uh(d,"x",l,r,f,s,o)}),{axes:t,domains:c}}),Cl=ce(an,Se,st,Os,FS,function(t,r,i,o,s){const c={};return t?.forEach((u,l)=>{const d=u;if(Bn(d)||Hn(d)){c[d.id]={domain:d.data},d.ordinalTimeTicks!==void 0&&(c[d.id].tickNumber=Rs(d,[d.data?.find(p=>p!==null),d.data?.findLast(p=>p!==null)],s));return}const f=Ds(d,"y",i,l,r);c[d.id]=Uh(d,"y",l,r,f,s,o)}),{axes:t,domains:c}}),Qh=ce(vn,Ii,Sl,Cl,function(t,r,{axes:i,domains:o},{axes:s,domains:a}){if(!t||!r)return;let c=!1;const u={},l=[...i??[],...s??[]];for(let d=0;d<l.length;d+=1){const f=l[d];if(!r[f.id]||r[f.id].filterMode!=="discard")continue;const p=t.get(f.id);if(p===void 0||p.start<=0&&p.end>=100)continue;const h=d<(i?.length??0)?"x":"y";if(f.scaleType==="band"||f.scaleType==="point")u[f.id]=ES(f.data,p.start,p.end,h);else{const{domain:g}=h==="x"?o[f.id]:a[f.id];u[f.id]=AS(g,p.start,p.end,h,f.data)}c=!0}if(c)return PS(u)}),zS=ce(Se,st,vn,Ii,Qh,Os,Sl,function(t,r,i,o,s,a,{axes:c,domains:u}){const l={};return c?.forEach((d,f)=>{const p=u[d.id].domain;if(Bn(d)||Hn(d)){l[d.id]=p;return}const h=i?.get(d.id),g=o?.[d.id],m=h===void 0&&!g?s:void 0;if(!m){l[d.id]=p;return}const y=u[d.id].tickNumber,b=Ds(d,"x",r,f,t,m);l[d.id]=Yh(d,"x",f,t,b,y,a)}),l}),BS=ce(Se,st,vn,Ii,Qh,Os,Cl,function(t,r,i,o,s,a,{axes:c,domains:u}){const l={};return c?.forEach((d,f)=>{const p=u[d.id].domain;if(Bn(d)||Hn(d)){l[d.id]=p;return}const h=i?.get(d.id),g=o?.[d.id],m=h===void 0&&!g?s:void 0;if(!m){l[d.id]=p;return}const y=u[d.id].tickNumber,b=Ds(d,"y",r,f,t,m);l[d.id]=Yh(d,"y",f,t,b,y,a)}),l}),Jh=ce(Ut,zS,function(t,r){const i={};return t?.forEach(o=>{const s=o,a=r[s.id];i[s.id]=Hh(s,a)}),i}),em=ce(an,BS,function(t,r){const i={};return t?.forEach(o=>{const s=o,a=r[s.id];i[s.id]=Hh(s,a)}),i}),HS=ce(Ut,Jh,ot,vn,function(t,r,i,o){const s={};return t?.forEach(a=>{const c=a,u=o?.get(c.id),l=u?[u.start,u.end]:[0,100],d=Bh(i,"x",c),f=r[c.id].copy(),p=Vh(d,l);f.range(p),s[c.id]=f}),s}),VS=ce(an,em,ot,vn,function(t,r,i,o){const s={};return t?.forEach(a=>{const c=a,u=o?.get(c.id),l=u?[u.start,u.end]:[0,100],d=Bh(i,"y",c),f=r[c.id].copy(),p=Ne(f)?d.reverse():d,h=Vh(p,l);f.range(h),s[c.id]=f}),s}),Ze=ce(ot,Se,st,vn,Sl,HS,function(t,r,i,o,{axes:s,domains:a},c){return zh({scales:c,drawingArea:t,formattedSeries:r,axis:s,seriesConfig:i,axisDirection:"x",zoomMap:o,domains:a})}),Qe=ce(ot,Se,st,vn,Cl,VS,function(t,r,i,o,{axes:s,domains:a},c){return zh({scales:c,drawingArea:t,formattedSeries:r,axis:s,seriesConfig:i,axisDirection:"y",zoomMap:o,domains:a})});U(Ze,Qe,(e,t,r)=>e?.axis[r]??t?.axis[r]);U(Ut,an,(e,t,r)=>{const i=e?.find(o=>o.id===r)??t?.find(o=>o.id===r)??null;if(i)return i});const GS=U(Ut,e=>e[0].id),US=U(an,e=>e[0].id),YS=new Map,WS=()=>YS,XS=ce(Se,Jh,em,GS,US,function(t,r,i,o,s){const a=t.scatter,c=new Map;return a&&a.seriesOrder.forEach(u=>{const{data:l,xAxisId:d=o,yAxisId:f=s}=a.series[u],p=new kl(l.length),h=r[d],g=i[f];for(const m of l)p.add(h(m.x),g(m.y));p.finish(),c.set(u,p)}),c});function sr(e){return e instanceof Date?e.getTime():e}function wr(e,t){const{scale:r,data:i,reverse:o}=e;if(!Ne(r)){const a=r.invert(t);if(i===void 0)return-1;const c=sr(a);return i?.findIndex((l,d)=>{const f=sr(l);return f>c&&(d===0||Math.abs(c-f)<=Math.abs(c-sr(i[d-1])))||f<=c&&(d===i.length-1||Math.abs(sr(a)-f)<Math.abs(sr(a)-sr(i[d+1])))})}const s=r.bandwidth()===0?Math.floor((t-Math.min(...r.range())+r.step()/2)/r.step()):Math.floor((t-Math.min(...r.range()))/r.step());return s<0||s>=i.length?-1:o?i.length-1-s:s}function mf(e,t,r,i){if(!Ne(e)){if(i===null){const o=e.invert(r);return Number.isNaN(o)?null:o}return t[i]}return i===null||i<0||i>=t.length?null:t[i]}function hi(e,t){const r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r.matrixTransform(e.getScreenCTM().inverse())}const Un=({store:e})=>{const t=De(function(){e.update({interaction:E({},e.state.interaction,{pointer:null})})}),r=De(function(s){e.state.interaction.lastUpdate!==s&&e.set("interaction",E({},e.state.interaction,{lastUpdate:s}))}),i=De(function(s){e.set("interaction",E({},e.state.interaction,{pointer:s,lastUpdate:s!==null?"pointer":e.state.interaction.lastUpdate}))});return{instance:{cleanInteraction:t,setLastUpdateSource:r,setPointerCoordinate:i}}};Un.getInitialState=()=>({interaction:{item:null,pointer:null,lastUpdate:"pointer"}});Un.params={};const wl=e=>e.interaction,KS=U(wl,e=>e!==void 0),tm=U(wl,e=>e?.pointer??null),Mi=U(tm,e=>e&&e.x),$i=U(tm,e=>e&&e.y),_i=U(wl,e=>e?.lastUpdate);function yr(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 s=0;s<o;s+=1)if(!yr(e[s],t[s]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;for(let s=0;s<o.length;s+=1){const a=o[s];if(!yr(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e),i=r.length;if(i!==Object.keys(t).length)return!1;for(let o=0;o<i;o+=1)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;for(let o=0;o<i;o+=1){const s=r[o];if(!yr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hc(e,t,r=t.axisIds[0]){return Array.isArray(r)?r.map(i=>wr(t.axis[i],e)):wr(t.axis[r],e)}const nm=(e,t,r)=>{if(e===null)return null;const i=hc(e,t,r);return i===-1?null:i},El=U(Mi,Ze,nm),Al=U($i,Qe,nm),ZS=U(Mi,$i,Ze,Qe,(e,t,r,i)=>[...e===null?[]:r.axisIds.map(o=>({axisId:o,dataIndex:hc(e,r,o)})),...t===null?[]:i.axisIds.map(o=>({axisId:o,dataIndex:hc(t,i,o)}))].filter(o=>o.dataIndex!==null&&o.dataIndex>=0));function rm(e,t,r,i=t.axisIds[0]){return Array.isArray(i)?i.map((o,s)=>{const a=t.axis[o];return mf(a.scale,a.data,e,r[s])}):mf(t.axis[i].scale,t.axis[i].data,e,r)}const QS=U(Mi,Ze,El,(e,t,r,i)=>e===null||t.axisIds.length===0?null:rm(e,t,r,i)),JS=U($i,Qe,Al,(e,t,r,i)=>e===null||t.axisIds.length===0?null:rm(e,t,r,i)),im=[],om=ys({memoizeOptions:{resultEqualityCheck:yr}})(Mi,Ze,(e,t)=>e===null?im:t.axisIds.filter(r=>t.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:wr(t.axis[r],e)})).filter(({dataIndex:r})=>r>=0)),sm=ys({memoizeOptions:{resultEqualityCheck:yr}})($i,Qe,(e,t)=>e===null?im:t.axisIds.filter(r=>t.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:wr(t.axis[r],e)})).filter(({dataIndex:r})=>r>=0)),e1=U(om,sm,(e,t)=>e.length>0||t.length>0);function t1(e){return e.setPointerCoordinate!==void 0}const Yn=({params:e,store:t,seriesConfig:r,svgRef:i,instance:o})=>{const{xAxis:s,yAxis:a,dataset:c,onHighlightedAxisChange:u}=e;if(process.env.NODE_ENV!=="production"){const v=[...s??[],...a??[]].filter(k=>k.id).map(k=>k.id),T=new Set(v.filter((k,w)=>v.indexOf(k)!==w));T.size>0&&Ct([`MUI X Charts: The following axis ids are duplicated: ${Array.from(T).join(", ")}.`,"Please make sure that each axis has a unique id."].join(`
|
|
44
|
+
`),"error")}const l=t.use(ot),d=t.use(Se),f=t.use(KS),{axis:p,axisIds:h}=t.use(Ze),{axis:g,axisIds:m}=t.use(Qe);uh({warningPrefix:"MUI X Charts",componentName:"Chart",propName:"highlightedAxis",controlled:e.highlightedAxis,defaultValue:void 0}),Le(()=>{e.highlightedAxis!==void 0&&t.set("controlledCartesianAxisHighlight",e.highlightedAxis)},[t,e.highlightedAxis]);const y=P.useRef(!0);P.useEffect(()=>{if(y.current){y.current=!1;return}t.set("cartesianAxis",{x:ph(s,c),y:hh(a,c)})},[r,l,s,a,c,t]);const b=h[0],O=m[0];Zv(t,ZS,(v,T)=>{if(u&&!Object.is(v,T)){if(v.length!==T.length){u(T);return}v?.some(({axisId:k,dataIndex:w},M)=>T[M].axisId!==k||T[M].dataIndex!==w)&&u(T)}});const S=t1(o);return P.useEffect(()=>{const v=i.current;if(!f||!S||!v||e.disableAxisListener)return()=>{};const T=o.addInteractionListener("moveEnd",x=>{x.detail.activeGestures.pan||o.cleanInteraction()}),k=o.addInteractionListener("panEnd",x=>{x.detail.activeGestures.move||o.cleanInteraction()}),w=o.addInteractionListener("quickPressEnd",x=>{!x.detail.activeGestures.move&&!x.detail.activeGestures.pan&&o.cleanInteraction()}),M=x=>{const A=x.detail.srcEvent,R=x.detail.target,N=hi(v,A);if(x.detail.srcEvent.buttons>=1&&R?.hasPointerCapture(x.detail.srcEvent.pointerId)&&!R?.closest("[data-charts-zoom-slider]")&&R?.releasePointerCapture(x.detail.srcEvent.pointerId),!o.isPointInside(N.x,N.y,R)){o.cleanInteraction?.();return}o.setPointerCoordinate(N)},I=o.addInteractionListener("move",M),_=o.addInteractionListener("pan",M),$=o.addInteractionListener("quickPress",M);return()=>{I.cleanup(),T.cleanup(),_.cleanup(),k.cleanup(),$.cleanup(),w.cleanup()}},[i,t,p,b,g,O,o,e.disableAxisListener,f,S]),P.useEffect(()=>{const v=i.current,T=e.onAxisClick;if(v===null||!T)return()=>{};const k=o.addInteractionListener("tap",w=>{let M=null,I=!1;const _=hi(v,w.detail.srcEvent),$=wr(p[b],_.x);I=$!==-1,M=I?$:wr(g[O],_.y);const x=I?h[0]:m[0];if(M==null||M===-1)return;const A=(I?p:g)[x].data[M],R={};Object.keys(d).filter(N=>["bar","line"].includes(N)).forEach(N=>{d[N]?.seriesOrder.forEach(q=>{const F=d[N].series[q],G=F.xAxisId,V=F.yAxisId,L=I?G:V;(L===void 0||L===x)&&(R[q]=F.data[M])})}),T(w.detail.srcEvent,{dataIndex:M,axisValue:A,seriesValues:R})});return()=>{k.cleanup()}},[e.onAxisClick,d,i,p,h,g,m,b,O,o]),{}};Yn.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0};Yn.getDefaultizedParams=({params:e})=>E({},e,{colors:e.colors??oh,theme:e.theme??"light",defaultizedXAxis:ph(e.xAxis,e.dataset),defaultizedYAxis:hh(e.yAxis,e.dataset)});Yn.getInitialState=e=>E({cartesianAxis:{x:e.defaultizedXAxis,y:e.defaultizedYAxis}},e.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:e.highlightedAxis});const n1=Object.is;function mi(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let r=0,i=0;for(const o in e)if(r+=1,!n1(e[o],t[o])||!(o in t))return!1;for(const o in t)i+=1;return r===i}const Di=e=>e.keyboardNavigation,r1=U(Di,(e,t)=>e?.item!=null&&mi(e.item,t)),am=U(Di,e=>e?.item!=null),Pl=U(Di,e=>e?.item??null),i1=U(Di,e=>!!e?.enableKeyboardNavigation),cm=e=>(t,r,i)=>{if(t==null||!("dataIndex"in t)||t.dataIndex===void 0)return;const o=i[t.type]?.series[t.seriesId];if(!o)return;let s=e==="x"?"xAxisId"in o&&o.xAxisId:"yAxisId"in o&&o.yAxisId;return(s===void 0||s===!1)&&(s=r.axisIds[0]),{axisId:s,dataIndex:t.dataIndex}},o1=U(Pl,Ze,Se,cm("x")),s1=U(Pl,Qe,Se,cm("y")),lm=U(Di,function(t){if(t?.item==null)return null;const{type:r,seriesId:i}=t.item;return r===void 0||i===void 0?null:t.item}),Yt=e=>e.brush;U(Yt,e=>e?.start);U(Yt,e=>e?.current);const a1=U(Yt,e=>e?.start?.x??null),c1=U(Yt,e=>e?.start?.y??null),l1=U(Yt,e=>e?.current?.x??null),u1=U(Yt,e=>e?.current?.y??null);ce(a1,c1,l1,u1,(e,t,r,i)=>e===null||t===null||r===null||i===null?null:{start:{x:e,y:t},current:{x:r,y:i}});const d1=U(Se,e=>{let t=!1,r=!1;return e&&Object.entries(e).forEach(([i,o])=>{Object.values(o.series).some(s=>s.layout==="horizontal")&&(t=!0),i==="scatter"&&o.seriesOrder.length>0&&(r=!0)}),r?"xy":t?"y":"x"}),f1=U(Ii,function(t){let r=!1,i=!1;return Object.values(t).forEach(o=>{o.axisDirection==="y"&&(i=!0),o.axisDirection==="x"&&(r=!0)}),r&&i?"xy":i?"y":r?"x":null});U(d1,f1,(e,t)=>t??e);const um=U(Yt,e=>e?.enabled||e?.isZoomBrushEnabled),dm=U(um,Yt,(e,t)=>e&&t?.start!==null&&t?.current!==null),Ls=U(Yt,dm,(e,t)=>t&&e?.preventHighlight),p1=U(Yt,dm,(e,t)=>t&&e?.preventTooltip),Dr=({store:e,svgRef:t,instance:r,params:i})=>{const o=e.use(um);Le(()=>{e.set("brush",E({},e.state.brush,{enabled:i.brushConfig.enabled,preventTooltip:i.brushConfig.preventTooltip,preventHighlight:i.brushConfig.preventHighlight}))},[e,i.brushConfig.enabled,i.brushConfig.preventTooltip,i.brushConfig.preventHighlight]);const s=De(function(l){e.set("brush",E({},e.state.brush,{start:e.state.brush.start??l,current:l}))}),a=De(function(){e.set("brush",E({},e.state.brush,{start:null,current:null}))}),c=De(function(l){e.state.brush.isZoomBrushEnabled!==l&&e.set("brush",E({},e.state.brush,{isZoomBrushEnabled:l}))});return P.useEffect(()=>{const u=t.current;if(u===null||!o)return()=>{};const l=m=>{if(m.detail.target?.closest("[data-charts-zoom-slider]"))return;const y=hi(u,{clientX:m.detail.initialCentroid.x,clientY:m.detail.initialCentroid.y});s(y)},d=m=>{const y=hi(u,{clientX:m.detail.centroid.x,clientY:m.detail.centroid.y});s(y)},f=r.addInteractionListener("brushStart",l),p=r.addInteractionListener("brush",d),h=r.addInteractionListener("brushCancel",a),g=r.addInteractionListener("brushEnd",a);return()=>{f.cleanup(),p.cleanup(),g.cleanup(),h.cleanup()}},[t,r,e,a,s,o]),{instance:{setBrushCoordinates:s,clearBrush:a,setZoomBrushEnabled:c}}};Dr.params={brushConfig:!0};Dr.getDefaultizedParams=({params:e})=>E({},e,{brushConfig:{enabled:e?.brushConfig?.enabled??!1,preventTooltip:e?.brushConfig?.preventTooltip??!0,preventHighlight:e?.brushConfig?.preventHighlight??!0}});Dr.getInitialState=e=>({brush:{enabled:e.brushConfig.enabled,isZoomBrushEnabled:!1,preventTooltip:e.brushConfig.preventTooltip,preventHighlight:e.brushConfig.preventHighlight,start:null,current:null}});const Lr=e=>e.controlledCartesianAxisHighlight,fm=(e,t,r,i)=>i?[]:r!==void 0?r.filter(o=>t.axis[o.axisId]!==void 0).map(o=>o):e===null?[]:[{axisId:t.axisIds[0],dataIndex:e}],pm=ce(El,Ze,Lr,Ls,fm);ce(Al,Qe,Lr,Ls,fm);const hm=(e,t,r,i,o,s,a)=>{if(a)return[];if(i!==void 0)return i.map(d=>E({},d,{value:r.axis[d.axisId]?.data?.[d.dataIndex]})).filter(({value:d})=>d!==void 0);const c=t!==null&&{axisId:r.axisIds[0],dataIndex:e,value:t},u=o&&r.axis[o.axisId]?.data?.[o.dataIndex],l=o&&u!=null&&E({},o,{value:u});if(s==="pointer"){if(c)return[c];if(l)return[l]}if(s==="keyboard"){if(l)return[l];if(c)return[c]}return[]},h1=ce(El,QS,Ze,Lr,o1,_i,Ls,hm),m1=ce(Al,JS,Qe,Lr,s1,_i,Ls,hm),mm=(e,t)=>e===void 0?[t.axis[t.axisIds[0]]]:e.map(i=>t.axis[i.axisId]??null).filter(i=>i!==null);U(Lr,Ze,mm);U(Lr,Qe,mm);const Wn=({store:e})=>{const t=De(function(o){const s=e.state.tooltip.item;if(!o){s!==null&&e.set("tooltip",{item:null});return}s===null||!mi(s,o)||e.set("tooltip",{item:null})});return{instance:{setTooltipItem:De(function(o){mi(e.state.tooltip.item,o)||e.set("tooltip",{item:o})}),removeTooltipItem:t}}};Wn.getInitialState=()=>({tooltip:{item:null}});Wn.params={};const Nr=({params:e,store:t,svgRef:r})=>{const i=De(function(){t.state.keyboardNavigation.item!==null&&t.set("keyboardNavigation",E({},t.state.keyboardNavigation,{item:null}))});return P.useEffect(()=>{const o=r.current;if(!o||!e.enableKeyboardNavigation)return;function s(a){let c=t.state.keyboardNavigation.item,u=c?.type;if(!u&&(u=Object.keys(ah(t.state)).find(d=>t.state.series.seriesConfig[d]!==void 0),u===void 0))return;const l=t.state.series.seriesConfig[u]?.keyboardFocusHandler?.(a);l&&(c=l(c,t.state),c!==t.state.keyboardNavigation.item&&(a.preventDefault(),t.update(E({},t.state.highlight&&{highlight:E({},t.state.highlight,{lastUpdate:"keyboard"})},t.state.interaction&&{interaction:E({},t.state.interaction,{lastUpdate:"keyboard"})},{keyboardNavigation:E({},t.state.keyboardNavigation,{item:c})}))))}return o.addEventListener("keydown",s),o.addEventListener("blur",i),()=>{o.removeEventListener("keydown",s),o.removeEventListener("blur",i)}},[r,i,e.enableKeyboardNavigation,t]),Le(()=>{t.state.keyboardNavigation.enableKeyboardNavigation!==e.enableKeyboardNavigation&&t.set("keyboardNavigation",E({},t.state.keyboardNavigation,{enableKeyboardNavigation:!!e.enableKeyboardNavigation}))},[t,e.enableKeyboardNavigation]),{}};Nr.getInitialState=e=>({keyboardNavigation:{item:null,enableKeyboardNavigation:!!e.enableKeyboardNavigation}});Nr.params={enableKeyboardNavigation:!0};function Rl(e){return Fh.getTypes().has(e)}const g1=(e,t,r,i,o,s,a)=>{const c=i==="rotation"?o[t].rotationExtremumGetter:o[t].radiusExtremumGetter,u=a[t]?.series??{},[l,d]=c?.({series:u,axis:r,axisIndex:s,isDefaultAxis:s===0})??[1/0,-1/0],[f,p]=e;return[Math.min(l,f),Math.max(d,p)]},y1=(e,t,r,i,o)=>{const a=Object.keys(r).filter(Rl).reduce((c,u)=>g1(c,u,e,t,r,i,o),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a},Jt=(e,t)=>e===void 0?t:Math.PI*e/180,b1=(e,t,r,i)=>{const o=new Set;return Object.keys(t).filter(Rl).forEach(a=>{const c=r[a]?.series??{},u=t[a].axisTooltipGetter?.(c);u!==void 0&&u.forEach(({axisId:l,direction:d})=>{d===e&&o.add(l??i)})}),o};function x1(e,t,r){if(t==="rotation"){if(r.scaleType==="point"){const i=[Jt(r.startAngle,0),Jt(r.endAngle,2*Math.PI)],o=i[1]-i[0];return o>Math.PI*2-.1&&(i[1]-=o/r.data.length),i}return[Jt(r.startAngle,0),Jt(r.endAngle,2*Math.PI)]}return[0,Math.min(e.height,e.width)/2]}const v1=.2,O1=.1;function gm({drawingArea:e,formattedSeries:t,axis:r,seriesConfig:i,axisDirection:o}){if(r===void 0)return{axis:{},axisIds:[]};const s=b1(o,i,t,r[0].id),a={};return r.forEach((c,u)=>{const l=c,d=x1(e,o,l),[f,p]=y1(l,o,i,u,t),h=!l.ignoreTooltip&&s.has(l.id),g=l.data??[];if(Bn(l)){const I=l.categoryGapRatio??v1,_=l.barGapRatio??O1;if(a[l.id]=E({offset:0,categoryGapRatio:I,barGapRatio:_,triggerTooltip:h},l,{data:g,scale:Is(l.data,d).paddingInner(I).paddingOuter(I/2),tickNumber:l.data.length,colorScale:l.colorMap&&(l.colorMap.type==="ordinal"?Cr(E({values:l.data},l.colorMap)):gr(l.colorMap))}),No(l.data)){const $=fc(l.data,d,l.tickNumber);a[l.id].valueFormatter=l.valueFormatter??$}}if(Hn(l)&&(a[l.id]=E({offset:0,triggerTooltip:h},l,{data:g,scale:jh(l.data,d),tickNumber:l.data.length,colorScale:l.colorMap&&(l.colorMap.type==="ordinal"?Cr(E({values:l.data},l.colorMap)):gr(l.colorMap))}),No(l.data))){const I=fc(l.data,d,l.tickNumber);a[l.id].valueFormatter=l.valueFormatter??I}if(!GO(l))return;const m=l.scaleType??"linear",y=l.domainLimit??"nice",b=[l.min??f,l.max??p];if(typeof y=="function"){const{min:I,max:_}=y(f,p);b[0]=I,b[1]=_}const O=Rs(l,b,Tl(Math.abs(d[1]-d[0]))),S=Nh(O,d),v=Ms(m,b,d),T=y==="nice"?v.nice(O):v,[k,w]=T.domain(),M=[l.min??k,l.max??w];a[l.id]=E({offset:0,triggerTooltip:h},l,{data:g,scaleType:m,scale:T.domain(M),tickNumber:S,colorScale:l.colorMap&&gr(l.colorMap)})}),{axis:a,axisIds:r.map(({id:c})=>c)}}const ym=e=>e.polarAxis,bm=U(ym,e=>e?.rotation),T1=U(ym,e=>e?.radius),On=ce(bm,ot,Se,st,(e,t,r,i)=>gm({drawingArea:t,formattedSeries:r,axis:e,seriesConfig:i,axisDirection:"rotation"})),k1=ce(T1,ot,Se,st,(e,t,r,i)=>gm({drawingArea:t,formattedSeries:r,axis:e,seriesConfig:i,axisDirection:"radius"}));function S1(e){return{cx:e.left+e.width/2,cy:e.top+e.height/2}}const C1=ce(ot,S1),w1=e=>e.tooltip,xm=U(w1,e=>e?.item??null),E1=U(xm,e=>e!==null),Il=U(_i,xm,lm,(e,t,r)=>e==="keyboard"?r:t??null),A1=U(_i,E1,am,(e,t,r)=>e==="keyboard"?r:t),P1=ce(Il,Ze,Qe,On,k1,Se,function(t,{axis:r,axisIds:i},{axis:o,axisIds:s},a,c,u){if(!t)return{};const l=u[t.type]?.series[t.seriesId];if(!l)return{};const d={rotationAxes:a,radiusAxes:c},f=jo(l)?l.xAxisId??i[0]:void 0,p=jo(l)?l.yAxisId??s[0]:void 0;return f!==void 0&&(d.x=r[f]),p!==void 0&&(d.y=o[p]),d}),R1=ce(Il,ot,st,Se,ch,P1,function(t,r,i,o,s,a,c="top"){if(!t)return null;const u=o[t.type]?.series[t.seriesId];return u?i[u.type].tooltipItemPositionGetter?.({series:o,seriesLayout:s,drawingArea:r,axesConfig:a,identifier:t,placement:c})??null:null});function gf(e,t){return e.id!==void 0?e:E({id:t},e)}function yf(e){return e.colorMap?E({},e,{colorScale:e.colorMap.type==="ordinal"&&e.data?Cr(E({values:e.data},e.colorMap)):gr(e.colorMap.type==="continuous"?E({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function vm(e,t){if(!e||e.length===0)return{axis:{},axisIds:[]};const r={},i=[];return e.forEach((o,s)=>{const a=o.dataKey,c=o.id??`defaultized-z-axis-${s}`;if(a===void 0||o.data!==void 0){r[c]=yf(gf(o,c)),i.push(c);return}if(t===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");r[c]=yf(gf(E({},o,{data:t.map(u=>u[a])}),c)),i.push(c)}),{axis:r,axisIds:i}}const jr=({params:e,store:t})=>{const{zAxis:r,dataset:i}=e,o=P.useRef(!0);return P.useEffect(()=>{if(o.current){o.current=!1;return}t.set("zAxis",vm(r,i))},[r,i,t]),{}};jr.params={zAxis:!0,dataset:!0};jr.getInitialState=e=>({zAxis:vm(e.zAxis,e.dataset)});const I1=e=>e,M1=U(I1,e=>e.zAxis),Xn=({store:e,params:t})=>{uh({warningPrefix:"MUI X Charts",componentName:"Chart",propName:"highlightedItem",controlled:t.highlightedItem,defaultValue:null}),Le(()=>{e.state.highlight.item!==t.highlightedItem&&e.set("highlight",E({},e.state.highlight,{item:t.highlightedItem})),process.env.NODE_ENV!=="production"&&t.highlightedItem!==void 0&&!e.state.highlight.isControlled&&Ct(["MUI X Charts: The `highlightedItem` switched between controlled and uncontrolled state.","To remove the highlight when using controlled state, you must provide `null` to the `highlightedItem` prop instead of `undefined`."].join(`
|
|
45
|
+
`))},[e,t.highlightedItem]);const r=De(()=>{t.onHighlightChange?.(null);const o=e.state.highlight;o.item===null||o.isControlled||e.set("highlight",{item:null,lastUpdate:"pointer",isControlled:!1})}),i=De(o=>{const s=e.state.highlight;mi(s.item,o)||(t.onHighlightChange?.(o),!s.isControlled&&e.set("highlight",{item:o,lastUpdate:"pointer",isControlled:!1}))});return{instance:{clearHighlight:r,setHighlight:i}}};Xn.getInitialState=e=>({highlight:{item:e.highlightedItem,lastUpdate:"pointer",isControlled:e.highlightedItem!==void 0}});Xn.params={highlightedItem:!0,onHighlightChange:!0};function qo(e){let t=1/0,r=-1/0;for(const i of e??[])i<t&&(t=i),i>r&&(r=i);return[t,r]}const bf=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},Om=e=>{const{axis:t,getFilters:r,isDefaultAxis:i}=e,o=r?.({currentAxisId:t.id,isDefaultAxis:i}),s=o?t.data?.filter((a,c)=>o({x:null,y:null},c)):t.data;return qo(s??[])},Tm=e=>t=>{const{series:r,axis:i,getFilters:o,isDefaultAxis:s}=t;return Object.keys(r).filter(a=>{const c=e==="x"?r[a].xAxisId:r[a].yAxisId;return c===i.id||s&&c===void 0}).reduce((a,c)=>{const{stackedData:u}=r[c],l=o?.({currentAxisId:i.id,isDefaultAxis:s,seriesXAxisId:r[c].xAxisId,seriesYAxisId:r[c].yAxisId}),[d,f]=u?.reduce((p,h,g)=>l&&(!l(bf(h[0],e),g)||!l(bf(h[1],e),g))?p:[Math.min(...h,p[0]),Math.max(...h,p[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(d,a[0]),Math.max(f,a[1])]},[1/0,-1/0])},$1=e=>Object.keys(e.series).some(r=>e.series[r].layout==="horizontal")?Tm("x")(e):Om(e),_1=e=>Object.keys(e.series).some(r=>e.series[r].layout==="horizontal")?Om(e):Tm("y")(e);function ie(e){return function(){return e}}const xf=Math.abs,Ge=Math.atan2,Kt=Math.cos,D1=Math.max,Ba=Math.min,et=Math.sin,Ve=Math.sqrt,Ye=1e-12,gn=Math.PI,Fo=gn/2,fn=2*gn;function L1(e){return e>1?0:e<-1?gn:Math.acos(e)}function vf(e){return e>=1?Fo:e<=-1?-Fo:Math.asin(e)}const mc=Math.PI,gc=2*mc,En=1e-6,N1=gc-En;function km(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function j1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return km;const r=10**t;return function(i){this._+=i[0];for(let o=1,s=i.length;o<s;++o)this._+=Math.round(arguments[o]*r)/r+i[o]}}class q1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?km:j1(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,o){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,r,i,o,s,a){this._append`C${+t},${+r},${+i},${+o},${this._x1=+s},${this._y1=+a}`}arcTo(t,r,i,o,s){if(t=+t,r=+r,i=+i,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,c=this._y1,u=i-t,l=o-r,d=a-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>En)if(!(Math.abs(f*u-l*d)>En)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let h=i-a,g=o-c,m=u*u+l*l,y=h*h+g*g,b=Math.sqrt(m),O=Math.sqrt(p),S=s*Math.tan((mc-Math.acos((m+p-y)/(2*b*O)))/2),v=S/O,T=S/b;Math.abs(v-1)>En&&this._append`L${t+v*d},${r+v*f}`,this._append`A${s},${s},0,0,${+(f*h>d*g)},${this._x1=t+T*u},${this._y1=r+T*l}`}}arc(t,r,i,o,s,a){if(t=+t,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(o),u=i*Math.sin(o),l=t+c,d=r+u,f=1^a,p=a?o-s:s-o;this._x1===null?this._append`M${l},${d}`:(Math.abs(this._x1-l)>En||Math.abs(this._y1-d)>En)&&this._append`L${l},${d}`,i&&(p<0&&(p=p%gc+gc),p>N1?this._append`A${i},${i},0,1,${f},${t-c},${r-u}A${i},${i},0,1,${f},${this._x1=l},${this._y1=d}`:p>En&&this._append`A${i},${i},0,${+(p>=mc)},${f},${this._x1=t+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(t,r,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function Ns(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new q1(t)}function F1(e){return e.innerRadius}function z1(e){return e.outerRadius}function B1(e){return e.startAngle}function H1(e){return e.endAngle}function V1(e){return e&&e.padAngle}function G1(e,t,r,i,o,s,a,c){var u=r-e,l=i-t,d=a-o,f=c-s,p=f*u-d*l;if(!(p*p<Ye))return p=(d*(t-s)-f*(e-o))/p,[e+p*u,t+p*l]}function co(e,t,r,i,o,s,a){var c=e-r,u=t-i,l=(a?s:-s)/Ve(c*c+u*u),d=l*u,f=-l*c,p=e+d,h=t+f,g=r+d,m=i+f,y=(p+g)/2,b=(h+m)/2,O=g-p,S=m-h,v=O*O+S*S,T=o-s,k=p*m-g*h,w=(S<0?-1:1)*Ve(D1(0,T*T*v-k*k)),M=(k*S-O*w)/v,I=(-k*O-S*w)/v,_=(k*S+O*w)/v,$=(-k*O+S*w)/v,x=M-y,A=I-b,R=_-y,N=$-b;return x*x+A*A>R*R+N*N&&(M=_,I=$),{cx:M,cy:I,x01:-d,y01:-f,x11:M*(o/T-1),y11:I*(o/T-1)}}function Sm(){var e=F1,t=z1,r=ie(0),i=null,o=B1,s=H1,a=V1,c=null,u=Ns(l);function l(){var d,f,p=+e.apply(this,arguments),h=+t.apply(this,arguments),g=o.apply(this,arguments)-Fo,m=s.apply(this,arguments)-Fo,y=xf(m-g),b=m>g;if(c||(c=d=u()),h<p&&(f=h,h=p,p=f),!(h>Ye))c.moveTo(0,0);else if(y>fn-Ye)c.moveTo(h*Kt(g),h*et(g)),c.arc(0,0,h,g,m,!b),p>Ye&&(c.moveTo(p*Kt(m),p*et(m)),c.arc(0,0,p,m,g,b));else{var O=g,S=m,v=g,T=m,k=y,w=y,M=a.apply(this,arguments)/2,I=M>Ye&&(i?+i.apply(this,arguments):Ve(p*p+h*h)),_=Ba(xf(h-p)/2,+r.apply(this,arguments)),$=_,x=_,A,R;if(I>Ye){var N=vf(I/p*et(M)),q=vf(I/h*et(M));(k-=N*2)>Ye?(N*=b?1:-1,v+=N,T-=N):(k=0,v=T=(g+m)/2),(w-=q*2)>Ye?(q*=b?1:-1,O+=q,S-=q):(w=0,O=S=(g+m)/2)}var F=h*Kt(O),G=h*et(O),V=p*Kt(T),L=p*et(T);if(_>Ye){var B=h*Kt(S),Y=h*et(S),Q=p*Kt(v),W=p*et(v),K;if(y<gn)if(K=G1(F,G,Q,W,B,Y,V,L)){var Z=F-K[0],J=G-K[1],ee=B-K[0],z=Y-K[1],H=1/et(L1((Z*ee+J*z)/(Ve(Z*Z+J*J)*Ve(ee*ee+z*z)))/2),X=Ve(K[0]*K[0]+K[1]*K[1]);$=Ba(_,(p-X)/(H-1)),x=Ba(_,(h-X)/(H+1))}else $=x=0}w>Ye?x>Ye?(A=co(Q,W,F,G,h,x,b),R=co(B,Y,V,L,h,x,b),c.moveTo(A.cx+A.x01,A.cy+A.y01),x<_?c.arc(A.cx,A.cy,x,Ge(A.y01,A.x01),Ge(R.y01,R.x01),!b):(c.arc(A.cx,A.cy,x,Ge(A.y01,A.x01),Ge(A.y11,A.x11),!b),c.arc(0,0,h,Ge(A.cy+A.y11,A.cx+A.x11),Ge(R.cy+R.y11,R.cx+R.x11),!b),c.arc(R.cx,R.cy,x,Ge(R.y11,R.x11),Ge(R.y01,R.x01),!b))):(c.moveTo(F,G),c.arc(0,0,h,O,S,!b)):c.moveTo(F,G),!(p>Ye)||!(k>Ye)?c.lineTo(V,L):$>Ye?(A=co(V,L,B,Y,p,-$,b),R=co(F,G,Q,W,p,-$,b),c.lineTo(A.cx+A.x01,A.cy+A.y01),$<_?c.arc(A.cx,A.cy,$,Ge(A.y01,A.x01),Ge(R.y01,R.x01),!b):(c.arc(A.cx,A.cy,$,Ge(A.y01,A.x01),Ge(A.y11,A.x11),!b),c.arc(0,0,p,Ge(A.cy+A.y11,A.cx+A.x11),Ge(R.cy+R.y11,R.cx+R.x11),b),c.arc(R.cx,R.cy,$,Ge(R.y11,R.x11),Ge(R.y01,R.x01),!b))):c.arc(0,0,p,T,v,b)}if(c.closePath(),d)return c=null,d+""||null}return l.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-gn/2;return[Kt(f)*d,et(f)*d]},l.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:ie(+d),l):e},l.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:ie(+d),l):t},l.cornerRadius=function(d){return arguments.length?(r=typeof d=="function"?d:ie(+d),l):r},l.padRadius=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:ie(+d),l):i},l.startAngle=function(d){return arguments.length?(o=typeof d=="function"?d:ie(+d),l):o},l.endAngle=function(d){return arguments.length?(s=typeof d=="function"?d:ie(+d),l):s},l.padAngle=function(d){return arguments.length?(a=typeof d=="function"?d:ie(+d),l):a},l.context=function(d){return arguments.length?(c=d??null,l):c},l}function js(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Cm(e){this._context=e}Cm.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 Ml(e){return new Cm(e)}function wm(e){return e[0]}function Em(e){return e[1]}function Am(e,t){var r=ie(!0),i=null,o=Ml,s=null,a=Ns(c);e=typeof e=="function"?e:e===void 0?wm:ie(e),t=typeof t=="function"?t:t===void 0?Em:ie(t);function c(u){var l,d=(u=js(u)).length,f,p=!1,h;for(i==null&&(s=o(h=a())),l=0;l<=d;++l)!(l<d&&r(f=u[l],l,u))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+e(f,l,u),+t(f,l,u));if(h)return s=null,h+""||null}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:ie(+u),c):e},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:ie(+u),c):t},c.defined=function(u){return arguments.length?(r=typeof u=="function"?u:ie(!!u),c):r},c.curve=function(u){return arguments.length?(o=u,i!=null&&(s=o(i)),c):o},c.context=function(u){return arguments.length?(u==null?i=s=null:s=o(i=u),c):i},c}function U1(e,t,r){var i=null,o=ie(!0),s=null,a=Ml,c=null,u=Ns(l);e=typeof e=="function"?e:e===void 0?wm:ie(+e),t=typeof t=="function"?t:ie(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Em:ie(+r);function l(f){var p,h,g,m=(f=js(f)).length,y,b=!1,O,S=new Array(m),v=new Array(m);for(s==null&&(c=a(O=u())),p=0;p<=m;++p){if(!(p<m&&o(y=f[p],p,f))===b)if(b=!b)h=p,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),g=p-1;g>=h;--g)c.point(S[g],v[g]);c.lineEnd(),c.areaEnd()}b&&(S[p]=+e(y,p,f),v[p]=+t(y,p,f),c.point(i?+i(y,p,f):S[p],r?+r(y,p,f):v[p]))}if(O)return c=null,O+""||null}function d(){return Am().defined(o).curve(a).context(s)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:ie(+f),i=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ie(+f),l):e},l.x1=function(f){return arguments.length?(i=f==null?null:typeof f=="function"?f:ie(+f),l):i},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:ie(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ie(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ie(+f),l):r},l.lineX0=l.lineY0=function(){return d().x(e).y(t)},l.lineY1=function(){return d().x(e).y(r)},l.lineX1=function(){return d().x(i).y(t)},l.defined=function(f){return arguments.length?(o=typeof f=="function"?f:ie(!!f),l):o},l.curve=function(f){return arguments.length?(a=f,s!=null&&(c=a(s)),l):a},l.context=function(f){return arguments.length?(f==null?s=c=null:c=a(s=f),l):s},l}function Y1(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function W1(e){return e}function X1(){var e=W1,t=Y1,r=null,i=ie(0),o=ie(fn),s=ie(0);function a(c){var u,l=(c=js(c)).length,d,f,p=0,h=new Array(l),g=new Array(l),m=+i.apply(this,arguments),y=Math.min(fn,Math.max(-fn,o.apply(this,arguments)-m)),b,O=Math.min(Math.abs(y)/l,s.apply(this,arguments)),S=O*(y<0?-1:1),v;for(u=0;u<l;++u)(v=g[h[u]=u]=+e(c[u],u,c))>0&&(p+=v);for(t!=null?h.sort(function(T,k){return t(g[T],g[k])}):r!=null&&h.sort(function(T,k){return r(c[T],c[k])}),u=0,f=p?(y-l*S)/p:0;u<l;++u,m=b)d=h[u],v=g[d],b=m+(v>0?v*f:0)+S,g[d]={data:c[d],index:u,value:v,startAngle:m,endAngle:b,padAngle:O};return g}return a.value=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),a):e},a.sortValues=function(c){return arguments.length?(t=c,r=null,a):t},a.sort=function(c){return arguments.length?(r=c,t=null,a):r},a.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:ie(+c),a):i},a.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:ie(+c),a):o},a.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:ie(+c),a):s},a}class Pm{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function K1(e){return new Pm(e,!0)}function Z1(e){return new Pm(e,!1)}const Rm={draw(e,t){const r=Ve(t/gn);e.moveTo(r,0),e.arc(0,0,r,0,fn)}},Q1={draw(e,t){const r=Ve(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Im=Ve(1/3),J1=Im*2,eC={draw(e,t){const r=Ve(t/J1),i=r*Im;e.moveTo(0,-r),e.lineTo(i,0),e.lineTo(0,r),e.lineTo(-i,0),e.closePath()}},tC={draw(e,t){const r=Ve(t),i=-r/2;e.rect(i,i,r,r)}},nC=.8908130915292852,Mm=et(gn/10)/et(7*gn/10),rC=et(fn/10)*Mm,iC=-Kt(fn/10)*Mm,oC={draw(e,t){const r=Ve(t*nC),i=rC*r,o=iC*r;e.moveTo(0,-r),e.lineTo(i,o);for(let s=1;s<5;++s){const a=fn*s/5,c=Kt(a),u=et(a);e.lineTo(u*r,-c*r),e.lineTo(c*i-u*o,u*i+c*o)}e.closePath()}},Ha=Ve(3),sC={draw(e,t){const r=-Ve(t/(Ha*3));e.moveTo(0,r*2),e.lineTo(-Ha*r,-r),e.lineTo(Ha*r,-r),e.closePath()}},mt=-.5,gt=Ve(3)/2,yc=1/Ve(12),aC=(yc/2+1)*3,cC={draw(e,t){const r=Ve(t/aC),i=r/2,o=r*yc,s=i,a=r*yc+r,c=-s,u=a;e.moveTo(i,o),e.lineTo(s,a),e.lineTo(c,u),e.lineTo(mt*i-gt*o,gt*i+mt*o),e.lineTo(mt*s-gt*a,gt*s+mt*a),e.lineTo(mt*c-gt*u,gt*c+mt*u),e.lineTo(mt*i+gt*o,mt*o-gt*i),e.lineTo(mt*s+gt*a,mt*a-gt*s),e.lineTo(mt*c+gt*u,mt*u-gt*c),e.closePath()}},$m=[Rm,Q1,eC,tC,oC,sC,cC];function _m(e,t){let r=null,i=Ns(o);e=typeof e=="function"?e:ie(e||Rm),t=typeof t=="function"?t:ie(t===void 0?64:+t);function o(){let s;if(r||(r=s=i()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),s)return r=null,s+""||null}return o.type=function(s){return arguments.length?(e=typeof s=="function"?s:ie(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:ie(+s),o):t},o.context=function(s){return arguments.length?(r=s??null,o):r},o}function Of(e,t,r){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-r),e._x2,e._y2)}function $l(e,t){this._context=e,this._k=(1-t)/6}$l.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:Of(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:Of(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 r(i){return new $l(i,t)}return r.tension=function(i){return e(+i)},r})(0);function lC(e,t,r){var i=e._x1,o=e._y1,s=e._x2,a=e._y2;if(e._l01_a>Ye){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Ye){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*l+e._x1*e._l23_2a-t*e._l12_2a)/d,a=(a*l+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(i,o,s,a,e._x2,e._y2)}function Dm(e,t){this._context=e,this._alpha=t}Dm.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 r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:lC(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 uC=(function e(t){function r(i){return t?new Dm(i,t):new $l(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Tf(e){return e<0?-1:1}function kf(e,t,r){var i=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(i||o<0&&-0),a=(r-e._y1)/(o||i<0&&-0),c=(s*o+a*i)/(i+o);return(Tf(s)+Tf(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(c))||0}function Sf(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Va(e,t,r){var i=e._x0,o=e._y0,s=e._x1,a=e._y1,c=(s-i)/3;e._context.bezierCurveTo(i+c,o+c*t,s-c,a-c*r,s,a)}function zo(e){this._context=e}zo.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:Va(this,this._t0,Sf(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 r=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,Va(this,Sf(this,r=kf(this,e,t)),r);break;default:Va(this,this._t0,r=kf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Lm(e){this._context=new Nm(e)}(Lm.prototype=Object.create(zo.prototype)).point=function(e,t){zo.prototype.point.call(this,t,e)};function Nm(e){this._context=e}Nm.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,r,i,o,s){this._context.bezierCurveTo(t,e,i,r,s,o)}};function Cf(e){return new zo(e)}function dC(e){return new Lm(e)}function jm(e){this._context=e}jm.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=wf(e),o=wf(t),s=0,a=1;a<r;++s,++a)this._context.bezierCurveTo(i[0][s],o[0][s],i[1][s],o[1][s],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function wf(e){var t,r=e.length-1,i,o=new Array(r),s=new Array(r),a=new Array(r);for(o[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,s[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=o[t]/s[t-1],s[t]-=i,a[t]-=i*a[t-1];for(o[r-1]=a[r-1]/s[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/s[t];for(s[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)s[t]=2*e[t+1]-o[t+1];return[o,s]}function fC(e){return new jm(e)}function qs(e,t){this._context=e,this._t=t}qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function pC(e){return new qs(e,.5)}function hC(e){return new qs(e,0)}function mC(e){return new qs(e,1)}function Er(e,t){if((a=e.length)>1)for(var r=1,i,o,s=e[t[0]],a,c=s.length;r<a;++r)for(o=s,s=e[t[r]],i=0;i<c;++i)s[i][1]+=s[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function Ar(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function gC(e,t){return e[t]}function yC(e){const t=[];return t.key=e,t}function qm(){var e=ie([]),t=Ar,r=Er,i=gC;function o(s){var a=Array.from(e.apply(this,arguments),yC),c,u=a.length,l=-1,d;for(const f of s)for(c=0,++l;c<u;++c)(a[c][l]=[0,+i(f,a[c].key,l,s)]).data=f;for(c=0,d=js(t(a));c<u;++c)a[d[c]].index=c;return r(a,d),a}return o.keys=function(s){return arguments.length?(e=typeof s=="function"?s:ie(Array.from(s)),o):e},o.value=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),o):i},o.order=function(s){return arguments.length?(t=s==null?Ar:typeof s=="function"?s:ie(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(r=s??Er,o):r},o}function bC(e,t){if((i=e.length)>0){for(var r,i,o=0,s=e[0].length,a;o<s;++o){for(a=r=0;r<i;++r)a+=e[r][o][1]||0;if(a)for(r=0;r<i;++r)e[r][o][1]/=a}Er(e,t)}}function xC(e,t){if((o=e.length)>0){for(var r=0,i=e[t[0]],o,s=i.length;r<s;++r){for(var a=0,c=0;a<o;++a)c+=e[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}Er(e,t)}}function vC(e,t){if(!(!((a=e.length)>0)||!((s=(o=e[t[0]]).length)>0))){for(var r=0,i=1,o,s,a;i<s;++i){for(var c=0,u=0,l=0;c<a;++c){for(var d=e[t[c]],f=d[i][1]||0,p=d[i-1][1]||0,h=(f-p)/2,g=0;g<c;++g){var m=e[t[g]],y=m[i][1]||0,b=m[i-1][1]||0;h+=y-b}u+=f,l+=h*f}o[i-1][1]+=o[i-1][0]=r,u&&(r-=l/u)}o[i-1][1]+=o[i-1][0]=r,Er(e,t)}}function Fm(e){var t=e.map(OC);return Ar(e).sort(function(r,i){return t[r]-t[i]})}function OC(e){for(var t=-1,r=0,i=e.length,o,s=-1/0;++t<i;)(o=+e[t][1])>s&&(s=o,r=t);return r}function zm(e){var t=e.map(Bm);return Ar(e).sort(function(r,i){return t[r]-t[i]})}function Bm(e){for(var t=0,r=-1,i=e.length,o;++r<i;)(o=+e[r][1])&&(t+=o);return t}function TC(e){return zm(e).reverse()}function kC(e){var t=e.length,r,i,o=e.map(Bm),s=Fm(e),a=0,c=0,u=[],l=[];for(r=0;r<t;++r)i=s[r],a<c?(a+=o[i],u.push(i)):(c+=o[i],l.push(i));return l.reverse().concat(u)}function SC(e){return Ar(e).reverse()}function CC(e,t){if(e.length===0)return;const r=e.length,i=t,o=e[i[0]].length;for(let s=0;s<o;s+=1){let a=0,c=0;for(let u=0;u<r;u+=1){const l=e[i[u]],d=l[s],f=d[1]-d[0];f>0?(d[0]=a,a+=f,d[1]=a):f<0?(d[1]=c,c+=f,d[0]=c):d.data[l.key]>0?(d[0]=a,d[1]=a):d.data[l.key]<0?(d[1]=c,d[0]=c):(d[0]=0,d[1]=0)}}}const Ga={appearance:Fm,ascending:zm,descending:TC,insideOut:kC,none:Ar,reverse:SC},Ua={expand:bC,diverging:CC,none:Er,silhouette:xC,wiggle:vC},Hm=e=>{const{series:t,seriesOrder:r,defaultStrategy:i}=e,o=[],s={};return r.forEach(a=>{const{stack:c,stackOrder:u,stackOffset:l}=t[a];c===void 0?o.push({ids:[a],stackingOrder:Ga.none,stackingOffset:Ua.none}):s[c]===void 0?(s[c]=o.length,o.push({ids:[a],stackingOrder:Ga[u??i?.stackOrder??"none"],stackingOffset:Ua[l??i?.stackOffset??"diverging"]})):(o[s[c]].ids.push(a),u!==void 0&&(o[s[c]].stackingOrder=Ga[u]),l!==void 0&&(o[s[c]].stackingOffset=Ua[l]))}),o},wC=e=>e==null?"":e.toLocaleString(),EC=(e,t)=>{const{seriesOrder:r,series:i}=e,o=Hm(e),s=t??[];r.forEach(c=>{const u=i[c].data;if(u!==void 0)u.forEach((l,d)=>{s.length<=d?s.push({[c]:l}):s[d][c]=l});else if(t===void 0)throw new Error([`MUI X Charts: bar series with id='${c}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
|
|
46
|
+
`));if(process.env.NODE_ENV!=="production"&&!u&&t){const l=i[c].dataKey;if(!l)throw new Error([`MUI X Charts: bar series with id='${c}' has no data and no dataKey.`,"You must provide a dataKey when using the dataset prop."].join(`
|
|
47
|
+
`));t.forEach((d,f)=>{const p=d[l];p!=null&&typeof p!="number"&&Ct([`MUI X Charts: your dataset key "${l}" is used for plotting bars, but the dataset contains the non-null non-numerical element "${p}" at index ${f}.`,"Bar plots only support numeric and null values."].join(`
|
|
48
|
+
`))})}});const a={};return o.forEach(c=>{const{ids:u,stackingOffset:l,stackingOrder:d}=c,f=qm().keys(u.map(p=>{const h=i[p].dataKey;return i[p].data===void 0&&h!==void 0?h:p})).value((p,h)=>p[h]??0).order(d).offset(l)(s);u.forEach((p,h)=>{const g=i[p].dataKey;a[p]=E({layout:"vertical",labelMarkType:"square",minBarSize:0,valueFormatter:i[p].valueFormatter??wC},i[p],{data:g?t.map(m=>{const y=m[g];return typeof y=="number"?y:null}):i[p].data,stackedData:f[h].map(([m,y])=>[m,y])})})}),{seriesOrder:r,stackingGroups:o,series:a}};function ft(e,t){return typeof e=="function"?e(t):e}const AC=e=>{const{seriesOrder:t,series:r}=e;return t.reduce((i,o)=>{const s=ft(r[o].label,"legend");return s===void 0||i.push({markType:r[o].labelMarkType,id:o,seriesId:o,color:r[o].color,label:s}),i},[])};function _l(e){return e.colorGetter?e.colorGetter:()=>e.color}const Vm=(e,t,r)=>{const i=e.layout==="vertical",o=i?t?.colorScale:r?.colorScale,s=i?r?.colorScale:t?.colorScale,a=i?t?.data:r?.data,c=_l(e);return s?u=>{if(u===void 0)return e.color;const l=e.data[u],d=l===null?c({value:l,dataIndex:u}):s(l);return d===null?c({value:l,dataIndex:u}):d}:o&&a?u=>{if(u===void 0)return e.color;const l=a[u],d=l===null?c({value:l,dataIndex:u}):o(l);return d===null?c({value:l,dataIndex:u}):d}:u=>{if(u===void 0)return e.color;const l=e.data[u];return c({value:l,dataIndex:u})}};function Gm(e,t,r,i){const o=Object.keys(e),s=r!==void 0&&i!==void 0&&e[r]&&e[r].series[i]?e[r].seriesOrder.indexOf(i):1,a=o.filter(f=>t?.has(f)),c=r!==void 0&&e[r]?a.indexOf(r):0;for(let f=0;f<a.length;f+=1){const p=(a.length+c-f)%a.length,h=e[a[p]],g=f===0?s+1:h.seriesOrder.length;for(let m=1;m<g;m+=1){const y=(h.seriesOrder.length+s-m)%h.seriesOrder.length;if(h.series[h.seriesOrder[y]].data.length>0)return{type:a[p],seriesId:h.seriesOrder[y]}}}const u=c,l=e[a[u]],d=l.seriesOrder;for(let f=d.length-1;f>s;f-=1)if(l.series[l.seriesOrder[f]].data.length>0)return{type:a[u],seriesId:l.seriesOrder[f]};return null}function Um(e,t,r,i){const o=Object.keys(e),s=r!==void 0&&i!==void 0&&e[r]&&e[r].series[i]?e[r].seriesOrder.indexOf(i):-1,a=o.filter(f=>t?.has(f)),c=r!==void 0&&e[r]?a.indexOf(r):0;for(let f=0;f<a.length;f+=1){const p=(c+f)%a.length,h=e[a[p]],g=f===0?s+1:0;for(let m=g;m<h.seriesOrder.length;m+=1)if(h.series[h.seriesOrder[m]].data.length>0)return{type:a[p],seriesId:h.seriesOrder[m]}}const u=c,l=e[a[u]],d=s;for(let f=0;f<d;f+=1)if(l.series[l.seriesOrder[f]].data.length>0)return{type:a[u],seriesId:l.seriesOrder[f]};return null}function Ym(e,t,r){if(t==="sankey")return!1;const i=e[t]?.series[r]?.data;return i!=null&&i.length>0}function Fs(e){return function(r,i){const o=Se(i);let s=r?.seriesId,a=r?.type;if(!a||s==null||!Ym(o,a,s)){const u=Um(o,e,a,s);if(u===null)return null;a=u.type,s=u.seriesId}const c=o[a].series[s].data.length;return{type:a,seriesId:s,dataIndex:((r?.dataIndex??-1)+1)%c}}}function zs(e){return function(r,i){const o=Se(i);let s=r?.seriesId,a=r?.type;if(!a||s==null||!Ym(o,a,s)){const u=Gm(o,e,a,s);if(u===null)return null;a=u.type,s=u.seriesId}const c=o[a].series[s].data.length;return{type:a,seriesId:s,dataIndex:(c+(r?.dataIndex??1)-1)%c}}}function Bs(e){return function(r,i){const o=Se(i);let s=r?.seriesId,a=r?.type;const c=Um(o,e,a,s);if(c===null)return null;a=c.type,s=c.seriesId;const u=o[a].series[s].data.length;return{type:a,seriesId:s,dataIndex:Math.min(u-1,r?.dataIndex??0)}}}function Hs(e){return function(r,i){const o=Se(i);let s=r?.seriesId,a=r?.type;const c=Gm(o,e,a,s);if(c===null)return null;a=c.type,s=c.seriesId;const u=o[a].series[s].data.length;return{type:a,seriesId:s,dataIndex:Math.min(u-1,r?.dataIndex??0)}}}const lo=new Set(["bar","line","scatter"]),PC=e=>{switch(e.key){case"ArrowRight":return Fs(lo);case"ArrowLeft":return zs(lo);case"ArrowDown":return Hs(lo);case"ArrowUp":return Bs(lo);default:return null}},RC=e=>{const{series:t,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;const o=ft(t.label,"tooltip"),s=t.data[i.dataIndex];if(s==null)return null;const a=t.valueFormatter(s,{dataIndex:i.dataIndex});return{identifier:i,color:r(i.dataIndex),label:o,value:s,formattedValue:a,markType:t.labelMarkType}},IC=e=>Object.values(e).map(t=>t.layout==="horizontal"?{direction:"y",axisId:t.yAxisId}:{direction:"x",axisId:t.xAxisId});function MC(e,t,r){if(r===0)return{barWidth:e/t,offset:0};const i=e/(t+(t-1)*r),o=r*i;return{barWidth:i,offset:o}}function $C(e,t,r){const i=e&&t>0,o=!e&&t<0,s=i||o;return r?!s:s}function Dl(e){const{verticalLayout:t,xAxisConfig:r,yAxisConfig:i,series:o,dataIndex:s,numberOfGroups:a,groupIndex:c}=e,u=t?r:i,l=(t?i.reverse:r.reverse)??!1,{barWidth:d,offset:f}=MC(u.scale.bandwidth(),a,u.barGapRatio),p=c*(d+f),h=r.scale,g=i.scale,m=u.data[s],y=o.data[s];if(y==null)return null;const O=o.stackedData[s].map(w=>t?g(w):h(w)),S=Math.round(Math.min(...O)),v=Math.round(Math.max(...O)),T=y===0?0:Math.max(o.minBarSize,v-S),k=$C(t,y,l)?v-T:S;return{x:t?h(m)+p:k,y:t?k:g(m)+p,height:t?T:d,width:t?d:T}}const _C=e=>{const{series:t,identifier:r,axesConfig:i,placement:o}=e;if(!r||r.dataIndex===void 0)return null;const s=t.bar?.series[r.seriesId];if(t.bar==null||s==null||i.x===void 0||i.y===void 0)return null;const a=Dl({verticalLayout:s.layout==="vertical",xAxisConfig:i.x,yAxisConfig:i.y,series:s,dataIndex:r.dataIndex,numberOfGroups:t.bar.stackingGroups.length,groupIndex:t.bar.stackingGroups.findIndex(f=>f.ids.includes(s.id))});if(a==null)return null;const{x:c,y:u,width:l,height:d}=a;switch(o){case"right":return{x:c+l,y:u+d/2};case"bottom":return{x:c+l/2,y:u+d};case"left":return{x:c,y:u+d/2};default:return{x:c+l/2,y:u}}};function DC(e,t,r){return E({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??r[t%r.length]})}const LC={seriesProcessor:EC,colorProcessor:Vm,legendGetter:AC,tooltipGetter:RC,tooltipItemPositionGetter:_C,axisTooltipGetter:IC,xExtremumGetter:$1,yExtremumGetter:_1,getSeriesWithDefaultValues:DC,keyboardFocusHandler:PC},NC=e=>{const{series:t,axis:r,isDefaultAxis:i,getFilters:o}=e;let s=1/0,a=-1/0;for(const c in t){if(!Object.hasOwn(t,c))continue;const u=t[c].xAxisId;if(!(u===r.id||u===void 0&&i))continue;const l=o?.({currentAxisId:r.id,isDefaultAxis:i,seriesXAxisId:t[c].xAxisId,seriesYAxisId:t[c].yAxisId}),d=t[c].data??[];for(let f=0;f<d.length;f+=1){const p=d[f];l&&!l(p,f)||p.x!==null&&(p.x<s&&(s=p.x),p.x>a&&(a=p.x))}}return[s,a]},jC=e=>{const{series:t,axis:r,isDefaultAxis:i,getFilters:o}=e;let s=1/0,a=-1/0;for(const c in t){if(!Object.hasOwn(t,c))continue;const u=t[c].yAxisId;if(!(u===r.id||u===void 0&&i))continue;const l=o?.({currentAxisId:r.id,isDefaultAxis:i,seriesXAxisId:t[c].xAxisId,seriesYAxisId:t[c].yAxisId}),d=t[c].data??[];for(let f=0;f<d.length;f+=1){const p=d[f];l&&!l(p,f)||p.y!==null&&(p.y<s&&(s=p.y),p.y>a&&(a=p.y))}}return[s,a]},qC=({series:e,seriesOrder:t},r)=>({series:Object.fromEntries(Object.entries(e).map(([o,s])=>{const a=s?.datasetKeys,c=["x","y"].filter(l=>typeof a?.[l]!="string");if(s?.datasetKeys&&c.length>0)throw new Error([`MUI X Charts: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${c.map(l=>`"${l}"`).join(", ")} are missing.`].join(`
|
|
49
|
+
`));const u=a?r?.map(l=>({x:l[a.x]??null,y:l[a.y]??null,z:a.z&&l[a.z],id:a.id&&l[a.id]}))??[]:s.data??[];return[o,E({labelMarkType:"circle",markerSize:4},s,{preview:E({markerSize:1},s?.preview),data:u,valueFormatter:s.valueFormatter??(l=>l&&`(${l.x}, ${l.y})`)})]})),seriesOrder:t}),FC=(e,t,r,i)=>{const o=i?.colorScale,s=r?.colorScale,a=t?.colorScale,c=_l(e);return o?u=>{if(u===void 0)return e.color;if(i?.data?.[u]!==void 0){const f=o(i?.data?.[u]);if(f!==null)return f}const l=e.data[u],d=l===null?c({value:l,dataIndex:u}):o(l.z);return d===null?c({value:l,dataIndex:u}):d}:s?u=>{if(u===void 0)return e.color;const l=e.data[u],d=l===null?c({value:l,dataIndex:u}):s(l.y);return d===null?c({value:l,dataIndex:u}):d}:a?u=>{if(u===void 0)return e.color;const l=e.data[u],d=l===null?c({value:l,dataIndex:u}):a(l.x);return d===null?c({value:l,dataIndex:u}):d}:u=>{if(u===void 0)return e.color;const l=e.data[u];return c({value:l,dataIndex:u})}},zC=e=>{const{seriesOrder:t,series:r}=e;return t.reduce((i,o)=>{const s=ft(r[o].label,"legend");return s===void 0||i.push({markType:r[o].labelMarkType,id:o,seriesId:o,color:r[o].color,label:s}),i},[])},BC=e=>{const{series:t,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;const o=ft(t.label,"tooltip"),s=t.data[i.dataIndex],a=t.valueFormatter(s,{dataIndex:i.dataIndex});return{identifier:i,color:r(i.dataIndex),label:o,value:s,formattedValue:a,markType:t.labelMarkType}},HC=(e,t,r)=>E({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??r[t%r.length]}),VC=e=>{const{series:t,identifier:r,axesConfig:i}=e;if(!r||r.dataIndex===void 0)return null;const o=t.scatter?.series[r.seriesId];if(o==null||i.x===void 0||i.y===void 0)return null;const s=o.data?.[r.dataIndex].x,a=o.data?.[r.dataIndex].y;return s==null||a==null?null:{x:i.x.scale(s),y:i.y.scale(a)}},uo=new Set(["bar","line","scatter"]),GC=e=>{switch(e.key){case"ArrowRight":return Fs(uo);case"ArrowLeft":return zs(uo);case"ArrowDown":return Hs(uo);case"ArrowUp":return Bs(uo);default:return null}},UC={seriesProcessor:qC,colorProcessor:FC,legendGetter:zC,tooltipGetter:BC,tooltipItemPositionGetter:VC,xExtremumGetter:NC,yExtremumGetter:jC,getSeriesWithDefaultValues:HC,keyboardFocusHandler:GC},YC=e=>{const{axis:t}=e;return qo(t.data??[])};function WC(e,t,r,i){return r.reduce((o,s,a)=>{if(t[a]===null)return o;const[c,u]=e(s);return i&&(!i({y:c,x:null},a)||!i({y:u,x:null},a))?o:[Math.min(c,u,o[0]),Math.max(c,u,o[1])]},[1/0,-1/0])}const XC=e=>{const{series:t,axis:r,isDefaultAxis:i,getFilters:o}=e;return Object.keys(t).filter(s=>{const a=t[s].yAxisId;return a===r.id||i&&a===void 0}).reduce((s,a)=>{const{area:c,stackedData:u,data:l}=t[a],d=c!==void 0,f=o?.({currentAxisId:r.id,isDefaultAxis:i,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),p=d&&r.scaleType!=="log"&&typeof t[a].baseline!="string"?y=>y:y=>[y[1],y[1]],h=WC(p,l,u,f),[g,m]=h;return[Math.min(g,s[0]),Math.max(m,s[1])]},[1/0,-1/0])},KC=(e,t)=>{const{seriesOrder:r,series:i}=e,o=Hm(E({},e,{defaultStrategy:{stackOffset:"none"}})),s=t??[];r.forEach(c=>{const u=i[c].data;if(u!==void 0)u.forEach((l,d)=>{s.length<=d?s.push({[c]:l}):s[d][c]=l});else if(t===void 0&&process.env.NODE_ENV!=="production")throw new Error([`MUI X Charts: line series with id='${c}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
|
|
50
|
+
`));if(process.env.NODE_ENV!=="production"&&!u&&t){const l=i[c].dataKey;if(!l)throw new Error([`MUI X Charts: line series with id='${c}' has no data and no dataKey.`,"You must provide a dataKey when using the dataset prop."].join(`
|
|
51
|
+
`));t.forEach((d,f)=>{const p=d[l];p!=null&&typeof p!="number"&&Ct([`MUI X Charts: your dataset key "${l}" is used for plotting lines, but the dataset contains the non-null non-numerical element "${p}" at index ${f}.`,"Line plots only support numeric and null values."].join(`
|
|
52
|
+
`))})}});const a={};return o.forEach(c=>{const{ids:u,stackingOrder:l,stackingOffset:d}=c,f=qm().keys(u.map(p=>{const h=i[p].dataKey;return i[p].data===void 0&&h!==void 0?h:p})).value((p,h)=>p[h]??0).order(l).offset(d)(s);u.forEach((p,h)=>{const g=i[p].dataKey;a[p]=E({labelMarkType:"line"},i[p],{data:g?t.map(m=>{const y=m[g];return typeof y=="number"?y:null}):i[p].data,stackedData:f[h].map(([m,y])=>[m,y]),valueFormatter:i[p]?.valueFormatter??(m=>m==null?"":m.toLocaleString())})})}),{seriesOrder:r,stackingGroups:o,series:a}},Ll=(e,t,r)=>{const i=r?.colorScale,o=t?.colorScale,s=_l(e);return i?a=>{if(a===void 0)return e.color;const c=e.data[a],u=c===null?s({value:c,dataIndex:a}):i(c);return u===null?s({value:c,dataIndex:a}):u}:o?a=>{if(a===void 0)return e.color;const c=t.data?.[a],u=c===null?s({value:c,dataIndex:a}):o(c);return u===null?s({value:c,dataIndex:a}):u}:a=>{if(a===void 0)return e.color;const c=e.data[a];return s({value:c,dataIndex:a})}},ZC=e=>{const{seriesOrder:t,series:r}=e;return t.reduce((i,o)=>{const s=ft(r[o].label,"legend");return s===void 0||i.push({markType:r[o].labelMarkType,id:o,seriesId:o,color:r[o].color,label:s}),i},[])},QC=e=>{const{series:t,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;const o=ft(t.label,"tooltip"),s=t.data[i.dataIndex],a=t.valueFormatter(s,{dataIndex:i.dataIndex});return{identifier:i,color:r(i.dataIndex),label:o,value:s,formattedValue:a,markType:t.labelMarkType}},JC=e=>Object.values(e).map(t=>({direction:"x",axisId:t.xAxisId})),ew=(e,t,r)=>E({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??r[t%r.length]}),tw=e=>{const{series:t,identifier:r,axesConfig:i}=e;if(!r||r.dataIndex===void 0)return null;const o=t.line?.series[r.seriesId];if(o==null||i.x===void 0||i.y===void 0)return null;const s=i.x.data?.[r.dataIndex],a=o.data[r.dataIndex];return s==null||a==null?null:{x:i.x.scale(s),y:i.y.scale(a)}},fo=new Set(["bar","line","scatter"]),nw=e=>{switch(e.key){case"ArrowRight":return Fs(fo);case"ArrowLeft":return zs(fo);case"ArrowDown":return Hs(fo);case"ArrowUp":return Bs(fo);default:return null}},rw={colorProcessor:Ll,seriesProcessor:KC,legendGetter:ZC,tooltipGetter:QC,tooltipItemPositionGetter:tw,axisTooltipGetter:JC,xExtremumGetter:YC,yExtremumGetter:XC,getSeriesWithDefaultValues:ew,keyboardFocusHandler:nw},iw=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,r)=>r-t;case"asc":return(t,r)=>t-r;default:return null}},ow=e=>{const{seriesOrder:t,series:r}=e,i={};return t.forEach(o=>{const s=X1().startAngle(Jt(r[o].startAngle??0)).endAngle(Jt(r[o].endAngle??360)).padAngle(Jt(r[o].paddingAngle??0)).sortValues(iw(r[o].sortingValues??"none"))(r[o].data.map(a=>a.value));i[o]=E({labelMarkType:"circle",valueFormatter:a=>a.value.toLocaleString()},r[o],{data:r[o].data.map((a,c)=>E({},a,{id:a.id??`auto-generated-pie-id-${o}-${c}`},s[c])).map((a,c)=>E({labelMarkType:"circle"},a,{formattedValue:r[o].valueFormatter?.(E({},a,{label:ft(a.label,"arc")}),{dataIndex:c})??a.value.toLocaleString()}))})}),{seriesOrder:t,series:i}},sw=e=>t=>e.data[t].color,aw=e=>{const{seriesOrder:t,series:r}=e;return t.reduce((i,o)=>(r[o].data.forEach((s,a)=>{const c=ft(s.label,"legend");c!==void 0&&i.push({markType:s.labelMarkType??r[o].labelMarkType,id:s.id??a,seriesId:o,color:s.color,label:c,itemId:s.id??a})}),i),[])},cw=e=>{const{series:t,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;const o=t.data[i.dataIndex];if(o==null)return null;const s=ft(o.label,"tooltip"),a=E({},o,{label:s}),c=t.valueFormatter(a,{dataIndex:i.dataIndex});return{identifier:i,color:r(i.dataIndex),label:s,value:a,formattedValue:c,markType:o.labelMarkType??t.labelMarkType}};function ti(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(r))return r*t/100}if(e.endsWith("px")){const r=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(r))return r}throw new Error(`MUI X Charts: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function lw(e,t){const{height:r,width:i}=t,{cx:o,cy:s}=e,a=Math.min(i,r)/2,c=ti(o??"50%",i),u=ti(s??"50%",r);return{cx:c,cy:u,availableRadius:a}}const uw=(e,t)=>{const r={};for(const i of e.seriesOrder){const{innerRadius:o,outerRadius:s,arcLabelRadius:a,cx:c,cy:u}=e.series[i],{cx:l,cy:d,availableRadius:f}=lw({cx:c,cy:u},{width:t.width,height:t.height}),p=ti(s??f,f),h=ti(o??0,f),g=a===void 0?(h+p)/2:ti(a,f);r[i]={radius:{available:f,inner:h,outer:p,label:g},center:{x:t.left+l,y:t.top+d}}}return r},dw=(e,t,r)=>E({},e,{id:e.id??`auto-generated-id-${t}`,data:e.data.map((i,o)=>E({},i,{color:i.color??r[o%r.length]}))}),fw=e=>{const{series:t,identifier:r,placement:i,seriesLayout:o}=e;if(!r||r.dataIndex===void 0)return null;const s=t.pie?.series[r.seriesId],a=o.pie?.[r.seriesId];if(s==null||a==null)return null;const{center:c,radius:u}=a,{data:l}=s,d=l[r.dataIndex];if(!d)return null;const f=[[u.inner,d.startAngle],[u.inner,d.endAngle],[u.outer,d.startAngle],[u.outer,d.endAngle]].map(([y,b])=>({x:c.x+y*Math.sin(b),y:c.y-y*Math.cos(b)})),[p,h]=qo(f.map(y=>y.x)),[g,m]=qo(f.map(y=>y.y));switch(i){case"bottom":return{x:(h+p)/2,y:m};case"left":return{x:p,y:(m+g)/2};case"right":return{x:h,y:(m+g)/2};default:return{x:(h+p)/2,y:g}}},po=new Set(["pie"]),pw=e=>{switch(e.key){case"ArrowRight":return Fs(po);case"ArrowLeft":return zs(po);case"ArrowDown":return Hs(po);case"ArrowUp":return Bs(po);default:return null}},hw={colorProcessor:sw,seriesProcessor:ow,seriesLayout:uw,legendGetter:aw,tooltipGetter:cw,tooltipItemPositionGetter:fw,getSeriesWithDefaultValues:dw,keyboardFocusHandler:pw},mw={bar:LC,scatter:UC,line:rw,pie:hw},gw=[jr,Wn,Un,Yn,Xn];function yw(e){const{children:t,plugins:r=gw,pluginParams:i={},seriesConfig:o=mw}=e,{contextValue:s}=NO(r,i,o);return C.jsx(rl.Provider,{value:s,children:t})}const at=()=>{const e=P.useContext(rl);if(e==null)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join(`
|
|
53
|
+
`));return e};function bw(e){"hasPointerCapture"in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}const qr=(e,t)=>{const{instance:r}=at(),i=P.useRef(!1),o=De(()=>{i.current=!0,r.setLastUpdateSource("pointer"),r.setTooltipItem(e),r.setHighlight(e.type==="sankey"?e:{seriesId:e.seriesId,dataIndex:e.dataIndex})}),s=De(()=>{i.current=!1,r.removeTooltipItem(e),r.clearHighlight()});return P.useEffect(()=>()=>{i.current&&s()},[s]),P.useMemo(()=>t?{}:{onPointerEnter:o,onPointerLeave:s,onPointerDown:bw},[t,o,s])};function ye(){const e=at();if(!e)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(`
|
|
54
|
+
`));return e.store}function xw(){return!1}function Wm(e,t){return!e||!t?xw:function(i){return i?e.highlight==="series"?i.seriesId===t.seriesId:e.highlight==="item"?i.dataIndex===t.dataIndex&&i.seriesId===t.seriesId:!1:!1}}function vw(){return!1}function Xm(e,t){return!e||!t?vw:function(i){return i?e.fade==="series"?i.seriesId===t.seriesId&&i.dataIndex!==t.dataIndex:e.fade==="global"?i.seriesId!==t.seriesId||i.dataIndex!==t.dataIndex:!1:!1}}function Nl(e,t,r){return e?.highlight==="series"&&t?.seriesId===r}function Ow(e,t,r){return Nl(e,t,r)?!1:e?.fade==="global"&&t!=null||e?.fade==="series"&&t?.seriesId===r}function Km(e,t,r){return e?.highlight==="item"&&t?.seriesId===r?t.dataIndex:null}function Tw(e,t,r){return Nl(e,t,r)||Km(e,t,r)===t?.dataIndex?null:(e?.fade==="series"||e?.fade==="global")&&t?.seriesId===r?t.dataIndex:null}const kw=e=>e.highlight,Sw=U(Se,e=>{const t=new Map;return Object.keys(e).forEach(r=>{const i=e[r];i?.seriesOrder?.forEach(o=>{const s=i?.series[o];t.set(o,s?.highlightScope)})}),t}),cn=ce(kw,lm,function(t,r){return t.isControlled||t.lastUpdate==="pointer"?t.item:r}),Tn=U(Sw,cn,function(t,r){if(!r)return null;const i=t.get(r.seriesId);return i===void 0?null:i}),Cw=ce(Tn,cn,Wm),ww=ce(Tn,cn,Xm),Ew=U(Tn,cn,function(t,r,i){return Wm(t,r)(i)});U(Tn,cn,Nl);U(Tn,cn,Ow);U(Tn,cn,Tw);U(Tn,cn,Km);const Aw=U(Tn,cn,function(t,r,i){return Xm(t,r)(i)});function Li(e){const t=ye(),r=t.use(Ew,e),i=t.use(Aw,e);return{isHighlighted:r,isFaded:!r&&i}}var Ya,Ef;function Pw(){if(Ef)return Ya;Ef=1;var e=4,t=.001,r=1e-7,i=10,o=11,s=1/(o-1),a=typeof Float32Array=="function";function c(m,y){return 1-3*y+3*m}function u(m,y){return 3*y-6*m}function l(m){return 3*m}function d(m,y,b){return((c(y,b)*m+u(y,b))*m+l(y))*m}function f(m,y,b){return 3*c(y,b)*m*m+2*u(y,b)*m+l(y)}function p(m,y,b,O,S){var v,T,k=0;do T=y+(b-y)/2,v=d(T,O,S)-m,v>0?b=T:y=T;while(Math.abs(v)>r&&++k<i);return T}function h(m,y,b,O){for(var S=0;S<e;++S){var v=f(y,b,O);if(v===0)return y;var T=d(y,b,O)-m;y-=T/v}return y}function g(m){return m}return Ya=function(y,b,O,S){if(!(0<=y&&y<=1&&0<=O&&O<=1))throw new Error("bezier x values must be in [0, 1] range");if(y===b&&O===S)return g;for(var v=a?new Float32Array(o):new Array(o),T=0;T<o;++T)v[T]=d(T*s,y,O);function k(w){for(var M=0,I=1,_=o-1;I!==_&&v[I]<=w;++I)M+=s;--I;var $=(w-v[I])/(v[I+1]-v[I]),x=M+$*s,A=f(x,y,O);return A>=t?h(w,x,y,O):A===0?x:p(w,M,M+s,y,O)}return function(M){return M===0?0:M===1?1:d(k(M),b,S)}},Ya}var Rw=Pw();const Iw=dp(Rw),_t=300,Vt="cubic-bezier(0.66, 0, 0.34, 1)",Mw=Iw(.66,0,.34,1);var Pr=0,Qr=0,Ur=0,Zm=1e3,Bo,Jr,Ho=0,Nn=0,Vs=0,gi=typeof performance=="object"&&performance.now?performance:Date,Qm=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jl(){return Nn||(Qm($w),Nn=gi.now()+Vs)}function $w(){Nn=0}function Vo(){this._call=this._time=this._next=null}Vo.prototype=Jm.prototype={constructor:Vo,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?jl():+r)+(t==null?0:+t),!this._next&&Jr!==this&&(Jr?Jr._next=this:Bo=this,Jr=this),this._call=e,this._time=r,bc()},stop:function(){this._call&&(this._call=null,this._time=1/0,bc())}};function Jm(e,t,r){var i=new Vo;return i.restart(e,t,r),i}function _w(){jl(),++Pr;for(var e=Bo,t;e;)(t=Nn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Pr}function Af(){Nn=(Ho=gi.now())+Vs,Pr=Qr=0;try{_w()}finally{Pr=0,Lw(),Nn=0}}function Dw(){var e=gi.now(),t=e-Ho;t>Zm&&(Vs-=t,Ho=e)}function Lw(){for(var e,t=Bo,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Bo=r);Jr=e,bc(i)}function bc(e){if(!Pr){Qr&&(Qr=clearTimeout(Qr));var t=e-Nn;t>24?(e<1/0&&(Qr=setTimeout(Af,e-gi.now()-Vs)),Ur&&(Ur=clearInterval(Ur))):(Ur||(Ho=gi.now(),Ur=setInterval(Dw,Zm)),Pr=1,Qm(Af))}}function Nw(e,t,r){var i=new Vo;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,r),i}class jw{elapsed=0;timer=null;constructor(t,r,i){this.duration=t,this.easingFn=r,this.onTickCallback=i,this.resume()}get running(){return this.timer!==null}timerCallback(t){this.elapsed=Math.min(t,this.duration);const r=this.duration===0?1:this.elapsed/this.duration,i=this.easingFn(r);this.onTickCallback(i),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const t=jl()-this.elapsed;return this.timer=Jm(r=>this.timerCallback(r),0,t),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),Nw(()=>this.timerCallback(this.duration)),this}}function qw(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let o=0;o<r.length;o+=1){const s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Object.is(e[s],t[s]))return!1}return!0}function Fw(e,{createInterpolator:t,applyProps:r,skip:i,initialProps:o=e}){const s=P.useRef(o),a=P.useRef(null),c=P.useRef(null),u=P.useRef(e);Le(()=>{u.current=e},[e]),Le(()=>{i&&(a.current?.finish(),a.current=null,c.current=null,s.current=e)},[e,i]);const l=P.useCallback(f=>{const p=s.current,h=t(p,e);a.current=new jw(_t,Mw,g=>{const m=h(g);s.current=m,r(f,m)})},[r,t,e]);return[P.useCallback(f=>{if(f===null){a.current?.stop();return}const p=c.current;if(p===f){if(qw(u.current,e)){a.current?.resume();return}a.current?.stop()}p&&a.current?.stop(),c.current=f,(a.current||!i)&&l(f)},[l,e,i]),s.current]}function Kn(e,{createInterpolator:t,transformProps:r,applyProps:i,skip:o,initialProps:s=e,ref:a}){const c=r??(f=>f),[u,l]=Fw(e,{initialProps:s,createInterpolator:t,applyProps:(f,p)=>i(f,c(p)),skip:o}),d=r(o?e:l);return E({},d,{ref:mn(u,a)})}function zw(e){return Kn({d:e.d},{createInterpolator:(t,r)=>{const i=ll(t.d,r.d);return o=>({d:i(o)})},applyProps:(t,{d:r})=>t.setAttribute("d",r),transformProps:t=>t,skip:e.skipAnimation,ref:e.ref})}function eg(e){return e.replace(" ","_")}function ht(){return ye().use(ot)}function Ni(){return ye().use(yO)}const Bw=e=>(t,r)=>Math.atan2(t-e.cx,e.cy-r);function Gs(e){return(e%360+360)%360}const Wa=2*Math.PI;function Hw(e){return(e%Wa+Wa)%Wa}function Pf(e,t){const{scale:r,data:i,reverse:o}=e;if(!Ne(r))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!i)return-1;const s=Hw(t-Math.min(...r.range())),a=r.bandwidth()===0?Math.floor((s+r.step()/2)/r.step())%i.length:Math.floor(s/r.step());return a<0||a>=i.length?-1:o?i.length-1-a:a}function ze(){const e=ye(),{axis:t,axisIds:r}=e.use(Ze);return{xAxis:t,xAxisIds:r}}function Be(){const e=ye(),{axis:t,axisIds:r}=e.use(Qe);return{yAxis:t,yAxisIds:r}}function Vw(e){const t=ye(),{axis:r,axisIds:i}=t.use(Ze),o=i[0];return r[o]}function Gw(e){const t=ye(),{axis:r,axisIds:i}=t.use(Qe),o=i[0];return r[o]}function tg(){const e=ye(),{axis:t,axisIds:r}=e.use(On);return{rotationAxis:t,rotationAxisIds:r}}function Uw(e){const t=ye(),{axis:r,axisIds:i}=t.use(On),o=i[0];return r[o]}function Fr(e){if(Ne(e))return r=>(e(r)??0)+e.bandwidth()/2;const t=e.domain();return t[0]===t[1]?r=>r===t[0]?e(r):NaN:r=>e(r)}function ql(){const e=ye(),{axis:t,axisIds:r}=e.use(M1)??{axis:{},axisIds:[]};return{zAxis:t,zAxisIds:r}}function Fl(){const e=at();if(!e)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(`
|
|
55
|
+
`));return e.svgRef}function Us(){return ye().use(Se)}const Yw=U(Se,(e,t)=>e[t]);ce(Se,(e,t,r)=>{if(r===void 0||Array.isArray(r)&&r.length===0)return e[t]?.seriesOrder?.map(s=>e[t]?.series[s])??[];if(!Array.isArray(r))return e[t]?.series?.[r];const i=[],o=[];for(const s of r){const a=e[t]?.series?.[s];a?i.push(a):o.push(s)}if(process.env.NODE_ENV!=="production"&&o.length>0){const s=o.map(c=>JSON.stringify(c)).join(", "),a=`use${t.charAt(0).toUpperCase()}${t.slice(1)}Series`;Ct([`MUI X Charts: The following ids provided to "${a}" could not be found: ${s}.`,`Make sure that they exist and their series are using the "${t}" series type.`])}return i});const zl=e=>ye().use(Yw,e);function ng(){return zl("pie")}function rg(){return ye().use(ch).pie??{}}function ig(){return zl("bar")}function ji(){return zl("line")}function og(){const e=ye(),t=e.use(Cw),r=e.use(ww);return{isHighlighted:t,isFaded:r}}function Ww(e,t){return Object.keys(e).flatMap(r=>{const i=t[r].legendGetter;return i===void 0?[]:i(e[r])})}function Xw(){const e=Us(),r=ye().use(st);return{items:Ww(e,r)}}function Bl(){const e=Ni();return P.useCallback(t=>`${e}-gradient-${t}`,[e])}function Kw(){const e=Ni();return P.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}function Zw(e,t){const r=de(e.x,t.x),i=de(e.y,t.y),o=de(e.width,t.width),s=de(e.height,t.height);return a=>({x:r(a),y:i(a),width:o(a),height:s(a)})}function Qw(e){const t={x:e.layout==="vertical"?e.x:e.xOrigin,y:e.layout==="vertical"?e.yOrigin:e.y,width:e.layout==="vertical"?e.width:0,height:e.layout==="vertical"?0:e.height};return Kn({x:e.x,y:e.y,width:e.width,height:e.height},{createInterpolator:Zw,applyProps(r,i){r.setAttribute("x",i.x.toString()),r.setAttribute("y",i.y.toString()),r.setAttribute("width",i.width.toString()),r.setAttribute("height",i.height.toString())},transformProps:r=>r,initialProps:t,skip:e.skipAnimation,ref:e.ref})}function Jw(e,t){const r=de(e.x,t.x),i=de(e.y,t.y),o=de(e.width,t.width),s=de(e.height,t.height);return a=>({x:r(a),y:i(a),width:o(a),height:s(a)})}function eE(e){const{initialX:t,currentX:r,initialY:i,currentY:o}=e.placement==="outside"?nE(e):tE(e),s={x:t,y:i,width:e.width,height:e.height},a={x:r,y:o,width:e.width,height:e.height};return Kn(a,{createInterpolator:Jw,transformProps:c=>c,applyProps(c,u){c.setAttribute("x",u.x.toString()),c.setAttribute("y",u.y.toString()),c.setAttribute("width",u.width.toString()),c.setAttribute("height",u.height.toString())},initialProps:s,skip:e.skipAnimation,ref:e.ref})}const ar=4;function tE(e){return{initialX:e.layout==="vertical"?e.x+e.width/2:e.xOrigin,initialY:e.layout==="vertical"?e.yOrigin:e.y+e.height/2,currentX:e.x+e.width/2,currentY:e.y+e.height/2}}function nE(e){let t=0,r=0,i=0,o=0;return e.layout==="vertical"?(e.y<e.yOrigin?(t=e.yOrigin-ar,r=e.y-ar):(t=e.yOrigin+ar,r=e.y+e.height+ar),{initialX:e.x+e.width/2,currentX:e.x+e.width/2,initialY:t,currentY:r}):(e.x<e.xOrigin?(i=e.xOrigin,o=e.x-ar):(i=e.xOrigin,o=e.x+e.width+ar),{initialX:i,currentX:o,initialY:e.y+e.height/2,currentY:e.y+e.height/2})}function rE(e){return Kn({d:e.d},{createInterpolator:(t,r)=>{const i=ll(t.d,r.d);return o=>({d:i(o)})},applyProps:(t,{d:r})=>t.setAttribute("d",r),skip:e.skipAnimation,transformProps:t=>t,ref:e.ref})}function iE(e,t){const r=de(e.startAngle,t.startAngle),i=de(e.endAngle,t.endAngle),o=de(e.innerRadius,t.innerRadius),s=de(e.outerRadius,t.outerRadius),a=de(e.paddingAngle,t.paddingAngle),c=de(e.cornerRadius,t.cornerRadius);return u=>({startAngle:r(u),endAngle:i(u),innerRadius:o(u),outerRadius:s(u),paddingAngle:a(u),cornerRadius:c(u)})}function oE(e){const t={startAngle:(e.startAngle+e.endAngle)/2,endAngle:(e.startAngle+e.endAngle)/2,innerRadius:e.innerRadius,outerRadius:e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius};return Kn({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:iE,transformProps:r=>({d:Sm().cornerRadius(r.cornerRadius)({padAngle:r.paddingAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,startAngle:r.startAngle,endAngle:r.endAngle}),visibility:r.startAngle===r.endAngle?"hidden":"visible"}),applyProps(r,i){r.setAttribute("d",i.d),r.setAttribute("visibility",i.visibility)},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function sE(e,t){const r=de(e.startAngle,t.startAngle),i=de(e.endAngle,t.endAngle),o=de(e.innerRadius,t.innerRadius),s=de(e.outerRadius,t.outerRadius),a=de(e.paddingAngle,t.paddingAngle),c=de(e.cornerRadius,t.cornerRadius);return u=>({startAngle:r(u),endAngle:i(u),innerRadius:o(u),outerRadius:s(u),paddingAngle:a(u),cornerRadius:c(u)})}function aE(e){const t={startAngle:(e.startAngle+e.endAngle)/2,endAngle:(e.startAngle+e.endAngle)/2,innerRadius:e.arcLabelRadius??e.innerRadius,outerRadius:e.arcLabelRadius??e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius};return Kn({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.arcLabelRadius??e.innerRadius,outerRadius:e.arcLabelRadius??e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:sE,transformProps:r=>{const[i,o]=Sm().cornerRadius(r.cornerRadius).centroid({padAngle:r.paddingAngle,startAngle:r.startAngle,endAngle:r.endAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius});return{x:i,y:o}},applyProps(r,{x:i,y:o}){r.setAttribute("x",i.toString()),r.setAttribute("y",o.toString())},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function cE(){return at().chartRootRef}const lE={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},uE=e=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:E({},e)}}}}),sg={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:e=>`Export as ${lE[e]??e}`,chartTypeBar:"Bar",chartTypeColumn:"Column",chartTypeLine:"Line",chartTypeArea:"Area",chartTypePie:"Pie",chartPaletteLabel:"Color palette",chartPaletteNameRainbowSurge:"Rainbow Surge",chartPaletteNameBlueberryTwilight:"Blueberry Twilight",chartPaletteNameMangoFusion:"Mango Fusion",chartPaletteNameCheerfulFiesta:"Cheerful Fiesta",chartPaletteNameStrawberrySky:"Strawberry Sky",chartPaletteNameBlue:"Blue",chartPaletteNameGreen:"Green",chartPaletteNamePurple:"Purple",chartPaletteNameRed:"Red",chartPaletteNameOrange:"Orange",chartPaletteNameYellow:"Yellow",chartPaletteNameCyan:"Cyan",chartPaletteNamePink:"Pink",chartConfigurationSectionChart:"Chart",chartConfigurationSectionColumns:"Columns",chartConfigurationSectionBars:"Bars",chartConfigurationSectionAxes:"Axes",chartConfigurationGrid:"Grid",chartConfigurationBorderRadius:"Border radius",chartConfigurationCategoryGapRatio:"Category gap ratio",chartConfigurationBarGapRatio:"Series gap ratio",chartConfigurationStacked:"Stacked",chartConfigurationShowToolbar:"Show toolbar",chartConfigurationSkipAnimation:"Skip animation",chartConfigurationInnerRadius:"Inner radius",chartConfigurationOuterRadius:"Outer radius",chartConfigurationColors:"Colors",chartConfigurationHideLegend:"Hide legend",chartConfigurationShowMark:"Show mark",chartConfigurationHeight:"Height",chartConfigurationWidth:"Width",chartConfigurationSeriesGap:"Series gap",chartConfigurationTickPlacement:"Tick placement",chartConfigurationTickLabelPlacement:"Tick label placement",chartConfigurationCategoriesAxisLabel:"Categories axis label",chartConfigurationSeriesAxisLabel:"Series axis label",chartConfigurationXAxisPosition:"X-axis position",chartConfigurationYAxisPosition:"Y-axis position",chartConfigurationSeriesAxisReverse:"Reverse series axis",chartConfigurationTooltipPlacement:"Placement",chartConfigurationTooltipTrigger:"Trigger",chartConfigurationLegendPosition:"Position",chartConfigurationLegendDirection:"Direction",chartConfigurationBarLabels:"Bar labels",chartConfigurationColumnLabels:"Column labels",chartConfigurationInterpolation:"Interpolation",chartConfigurationSectionTooltip:"Tooltip",chartConfigurationSectionLegend:"Legend",chartConfigurationSectionLines:"Lines",chartConfigurationSectionAreas:"Areas",chartConfigurationSectionArcs:"Arcs",chartConfigurationPaddingAngle:"Padding angle",chartConfigurationCornerRadius:"Corner radius",chartConfigurationArcLabels:"Arc labels",chartConfigurationStartAngle:"Start angle",chartConfigurationEndAngle:"End angle",chartConfigurationPieTooltipTrigger:"Trigger",chartConfigurationPieLegendPosition:"Position",chartConfigurationPieLegendDirection:"Direction",chartConfigurationOptionNone:"None",chartConfigurationOptionValue:"Value",chartConfigurationOptionAuto:"Auto",chartConfigurationOptionTop:"Top",chartConfigurationOptionTopLeft:"Top Left",chartConfigurationOptionTopRight:"Top Right",chartConfigurationOptionBottom:"Bottom",chartConfigurationOptionBottomLeft:"Bottom Left",chartConfigurationOptionBottomRight:"Bottom Right",chartConfigurationOptionLeft:"Left",chartConfigurationOptionRight:"Right",chartConfigurationOptionAxis:"Axis",chartConfigurationOptionItem:"Item",chartConfigurationOptionHorizontal:"Horizontal",chartConfigurationOptionVertical:"Vertical",chartConfigurationOptionBoth:"Both",chartConfigurationOptionStart:"Start",chartConfigurationOptionMiddle:"Middle",chartConfigurationOptionEnd:"End",chartConfigurationOptionExtremities:"Extremities",chartConfigurationOptionTick:"Tick",chartConfigurationOptionMonotoneX:"Monotone X",chartConfigurationOptionMonotoneY:"Monotone Y",chartConfigurationOptionCatmullRom:"Catmull-Rom",chartConfigurationOptionLinear:"Linear",chartConfigurationOptionNatural:"Natural",chartConfigurationOptionStep:"Step",chartConfigurationOptionStepBefore:"Step Before",chartConfigurationOptionStepAfter:"Step After",chartConfigurationOptionBumpX:"Bump X",chartConfigurationOptionBumpY:"Bump Y"},dE=sg;uE(sg);const fE=["localeText"],Go=P.createContext(null);process.env.NODE_ENV!=="production"&&(Go.displayName="ChartsLocalizationContext");function ag(e){const{localeText:t}=e,r=te(e,fE),{localeText:i}=P.useContext(Go)??{localeText:void 0},o=Ke({props:r,name:"MuiChartsLocalizationProvider"}),{children:s,localeText:a}=o,c=P.useMemo(()=>E({},dE,a,i,t),[a,i,t]),u=P.useMemo(()=>({localeText:c}),[c]);return C.jsx(Go.Provider,{value:u,children:s})}process.env.NODE_ENV!=="production"&&(ag.propTypes={children:n.node,localeText:n.object});const cg=()=>{const e=P.useContext(Go);if(e===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(`
|
|
56
|
+
`));return e},lg=Oe("MuiAppearingMask",["animate"]),pE=re("rect")({animationName:"animate-width",animationTimingFunction:Vt,animationDuration:"0s",[`&.${lg.animate}`]:{animationDuration:`${_t}ms`},"@keyframes animate-width":{from:{width:0}}});function ug(e){const t=ht(),r=Ni(),i=eg(`${r}-${e.id}`);return C.jsxs(P.Fragment,{children:[C.jsx("clipPath",{id:i,children:C.jsx(pE,{className:e.skipAnimation?"":lg.animate,x:0,y:0,width:t.left+t.width+t.right,height:t.top+t.height+t.bottom})}),C.jsx("g",{clipPath:`url(#${i})`,children:e.children})]})}const hE=["skipAnimation","ownerState"];function dg(e){const{skipAnimation:t,ownerState:r}=e,i=te(e,hE),o=zw(e);return C.jsx(ug,{skipAnimation:t,id:`${r.id}-area-clip`,children:C.jsx("path",E({fill:r.gradientId?`url(#${r.gradientId})`:r.color,filter:r.isHighlighted?"brightness(140%)":r.gradientId?void 0:"brightness(120%)",opacity:r.isFaded?.3:1,stroke:"none","data-series":r.id,"data-highlighted":r.isHighlighted||void 0,"data-faded":r.isFaded||void 0},i,o))})}process.env.NODE_ENV!=="production"&&(dg.propTypes={d:n.string.isRequired,ownerState:n.shape({classes:n.object,color:n.string.isRequired,gradientId:n.string,id:n.oneOfType([n.number,n.string]).isRequired,isFaded:n.bool.isRequired,isHighlighted:n.bool.isRequired}).isRequired,skipAnimation:n.bool});const mE=["id","classes","color","gradientId","slots","slotProps","onClick"];function gE(e){return Te("MuiAreaElement",e)}const yE=Oe("MuiAreaElement",["root","highlighted","faded","series"]),bE=e=>{const{classes:t,id:r,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${r}`,o&&"highlighted",i&&"faded"]};return ke(s,gE,t)};function fg(e){const{id:t,classes:r,color:i,gradientId:o,slots:s,slotProps:a,onClick:c}=e,u=te(e,mE),l=qr({type:"line",seriesId:t}),{isFaded:d,isHighlighted:f}=Li({seriesId:t}),p={id:t,classes:r,color:i,gradientId:o,isFaded:d,isHighlighted:f},h=bE(p),g=s?.area??dg,m=$t({elementType:g,externalSlotProps:a?.area,additionalProps:E({},l,{onClick:c,cursor:c?"pointer":"unset"}),className:h.root,ownerState:p});return C.jsx(g,E({},u,m))}process.env.NODE_ENV!=="production"&&(fg.propTypes={classes:n.object,color:n.string.isRequired,d:n.string.isRequired,gradientId:n.string,id:n.oneOfType([n.number,n.string]).isRequired,skipAnimation:n.bool,slotProps:n.object,slots:n.object});function qi(e){const r=ye().use(eO);return e||r}function Ys(){return ye().use(Zh)}function pg(e){switch(e){case"catmullRom":return uC.alpha(.5);case"linear":return Ml;case"monotoneX":return Cf;case"monotoneY":return dC;case"natural":return fC;case"step":return pC;case"stepBefore":return hC;case"stepAfter":return mC;case"bumpY":return Z1;case"bumpX":return K1;default:return Cf}}function xE(e,t){const r=ji(),i=ze().xAxisIds[0],o=Be().yAxisIds[0],s=Bl();return P.useMemo(()=>{if(r===void 0)return[];const{series:c,stackingGroups:u}=r,l=[];for(const d of u){const f=d.ids;for(let p=f.length-1;p>=0;p-=1){const h=f[p],{xAxisId:g=i,yAxisId:m=o,stackedData:y,data:b,connectNulls:O,baseline:S,curve:v,strictStepCurve:T,area:k}=c[h];if(!k||!(g in e)||!(m in t))continue;const w=e[g].scale,M=Fr(w),I=t[m].scale,_=e[g].data,$=t[m].colorScale&&s(m)||e[g].colorScale&&s(g)||void 0;if(process.env.NODE_ENV!=="production"){if(_===void 0)throw new Error(`MUI X Charts: ${g===bn?"The first `xAxis`":`The x-axis with id "${g}"`} should have data property to be able to display a line plot.`);if(_.length<y.length)throw new Error(`MUI X Charts: The data length of the x axis (${_.length} items) is lower than the length of series (${y.length} items).`)}const x=v?.includes("step")&&!T&&Ne(w),A=_?.flatMap((F,G)=>{const V=b[G]==null;if(x){const L=[{x:F,y:y[G],nullData:V,isExtension:!1}];return!V&&(G===0||b[G-1]==null)&&L.unshift({x:(w(F)??0)-(w.step()-w.bandwidth())/2,y:y[G],nullData:V,isExtension:!0}),!V&&(G===b.length-1||b[G+1]==null)&&L.push({x:(w(F)??0)+(w.step()+w.bandwidth())/2,y:y[G],nullData:V,isExtension:!0}),L}return{x:F,y:y[G],nullData:V}})??[],R=O?A.filter(F=>!F.nullData):A,q=U1().x(F=>F.isExtension?F.x:M(F.x)).defined(F=>O||!F.nullData||!!F.isExtension).y0(F=>{if(typeof S=="number")return I(S);if(S==="max")return I.range()[1];if(S==="min")return I.range()[0];const G=F.y&&I(F.y[0]);return Number.isNaN(G)?I.range()[0]:G}).y1(F=>F.y&&I(F.y[1])).curve(pg(v))(R)||"";l.push({area:c[h].area,color:c[h].color,gradientId:$,d:q,seriesId:h})}}return l},[r,i,o,e,t,s])}const vE=["slots","slotProps","onItemClick","skipAnimation"],OE=re("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${yE.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${_t}ms`,transitionTimingFunction:Vt}}),TE=()=>{const{xAxis:e}=ze(),{yAxis:t}=Be();return xE(e,t)};function hg(e){const{slots:t,slotProps:r,onItemClick:i,skipAnimation:o}=e,s=te(e,vE),a=Ys(),c=qi(a||o),u=TE();return C.jsx(OE,E({},s,{children:u.map(({d:l,seriesId:d,color:f,area:p,gradientId:h})=>!!p&&C.jsx(fg,{id:d,d:l,color:f,gradientId:h,slots:t,slotProps:r,onClick:i&&(g=>i(g,{type:"line",seriesId:d})),skipAnimation:c},d))}))}process.env.NODE_ENV!=="production"&&(hg.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});const kE=["skipAnimation","ownerState"],Hl=P.forwardRef(function(t,r){const{skipAnimation:i,ownerState:o}=t,s=te(t,kE),a=rE(E({},t,{ref:r}));return C.jsx(ug,{skipAnimation:i,id:`${o.id}-line-clip`,children:C.jsx("path",E({stroke:o.gradientId?`url(#${o.gradientId})`:o.color,strokeWidth:2,strokeLinejoin:"round",fill:"none",filter:o.isHighlighted?"brightness(120%)":void 0,opacity:o.isFaded?.3:1,"data-series":o.id,"data-highlighted":o.isHighlighted||void 0,"data-faded":o.isFaded||void 0},s,a))})});process.env.NODE_ENV!=="production"&&(Hl.displayName="AnimatedLine");process.env.NODE_ENV!=="production"&&(Hl.propTypes={d:n.string.isRequired,ownerState:n.shape({classes:n.object,color:n.string.isRequired,gradientId:n.string,id:n.oneOfType([n.number,n.string]).isRequired,isFaded:n.bool.isRequired,isHighlighted:n.bool.isRequired}).isRequired,skipAnimation:n.bool});const SE=["id","classes","color","gradientId","slots","slotProps","onClick"];function CE(e){return Te("MuiLineElement",e)}const wE=Oe("MuiLineElement",["root","highlighted","faded","series"]),EE=e=>{const{classes:t,id:r,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${r}`,o&&"highlighted",i&&"faded"]};return ke(s,CE,t)};function mg(e){const{id:t,classes:r,color:i,gradientId:o,slots:s,slotProps:a,onClick:c}=e,u=te(e,SE),l=qr({type:"line",seriesId:t}),{isFaded:d,isHighlighted:f}=Li({seriesId:t}),p={id:t,classes:r,color:i,gradientId:o,isFaded:d,isHighlighted:f},h=EE(p),g=s?.line??Hl,m=$t({elementType:g,externalSlotProps:a?.line,additionalProps:E({},l,{onClick:c,cursor:c?"pointer":"unset"}),className:h.root,ownerState:p});return C.jsx(g,E({},u,m))}process.env.NODE_ENV!=="production"&&(mg.propTypes={classes:n.object,color:n.string.isRequired,d:n.string.isRequired,gradientId:n.string,id:n.oneOfType([n.number,n.string]).isRequired,skipAnimation:n.bool,slotProps:n.object,slots:n.object});function AE(e,t){const r=ji(),i=ze().xAxisIds[0],o=Be().yAxisIds[0],s=Bl();return P.useMemo(()=>{if(r===void 0)return[];const{series:c,stackingGroups:u}=r,l=[];for(const d of u){const f=d.ids;for(const p of f){const{xAxisId:h=i,yAxisId:g=o,stackedData:m,data:y,connectNulls:b,curve:O,strictStepCurve:S}=c[p];if(!(h in e)||!(g in t))continue;const v=e[h].scale,T=Fr(v),k=t[g].scale,w=e[h].data,M=t[g].colorScale&&s(g)||e[h].colorScale&&s(h)||void 0;if(process.env.NODE_ENV!=="production"){if(w===void 0)throw new Error(`MUI X Charts: ${h===bn?"The first `xAxis`":`The x-axis with id "${h}"`} should have data property to be able to display a line plot.`);w.length<m.length&&Ct(`MUI X Charts: The data length of the x axis (${w.length} items) is lower than the length of series (${m.length} items).`,"error")}const I=O?.includes("step")&&!S&&Ne(v),_=w?.flatMap((R,N)=>{const q=y[N]==null;if(I){const F=[{x:R,y:m[N],nullData:q,isExtension:!1}];return!q&&(N===0||y[N-1]==null)&&F.unshift({x:(v(R)??0)-(v.step()-v.bandwidth())/2,y:m[N],nullData:q,isExtension:!0}),!q&&(N===y.length-1||y[N+1]==null)&&F.push({x:(v(R)??0)+(v.step()+v.bandwidth())/2,y:m[N],nullData:q,isExtension:!0}),F}return{x:R,y:m[N],nullData:q}})??[],$=b?_.filter(R=>!R.nullData):_,A=Am().x(R=>R.isExtension?R.x:T(R.x)).defined(R=>b||!R.nullData||!!R.isExtension).y(R=>k(R.y[1])).curve(pg(O))($)||"";l.push({color:c[p].color,gradientId:M,d:A,seriesId:p})}}return l},[r,i,o,e,t,s])}const PE=["slots","slotProps","skipAnimation","onItemClick"],RE=re("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${wE.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${_t}ms`,transitionTimingFunction:Vt}}),IE=()=>{const{xAxis:e}=ze(),{yAxis:t}=Be();return AE(e,t)};function gg(e){const{slots:t,slotProps:r,skipAnimation:i,onItemClick:o}=e,s=te(e,PE),a=Ys(),c=qi(a||i),u=IE();return C.jsx(RE,E({},s,{children:u.map(({d:l,seriesId:d,color:f,gradientId:p})=>C.jsx(mg,{id:d,d:l,color:f,gradientId:p,skipAnimation:c,slots:t,slotProps:r,onClick:o&&(h=>o(h,{type:"line",seriesId:d}))},d))}))}process.env.NODE_ENV!=="production"&&(gg.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});function ME(e){return Te("MuiMarkElement",e)}const yg=Oe("MuiMarkElement",["root","highlighted","faded","animate","series"]),bg=e=>{const{classes:t,id:r,isFaded:i,isHighlighted:o,skipAnimation:s}=e,a={root:["root",`series-${r}`,o&&"highlighted",i&&"faded",s?void 0:"animate"]};return ke(a,ME,t)},$E=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],_E=re("circle")({[`&.${yg.animate}`]:{transitionDuration:`${_t}ms`,transitionProperty:"cx, cy, opacity",transitionTimingFunction:Vt}});function xg(e){const{x:t,y:r,id:i,classes:o,color:s,dataIndex:a,onClick:c,skipAnimation:u,isFaded:l=!1,isHighlighted:d=!1}=e,f=te(e,$E),p=Xe(),h=qr({type:"line",seriesId:i,dataIndex:a}),m=bg({id:i,classes:o,isHighlighted:d,isFaded:l,skipAnimation:u});return C.jsx(_E,E({},f,{cx:t,cy:r,r:5,fill:(p.vars||p).palette.background.paper,stroke:s,strokeWidth:2,className:m.root,onClick:c,cursor:c?"pointer":"unset"},h,{"data-highlighted":d||void 0,"data-faded":l||void 0}))}process.env.NODE_ENV!=="production"&&(xg.propTypes={classes:n.object,dataIndex:n.number.isRequired,id:n.oneOfType([n.number,n.string]).isRequired,shape:n.oneOf(["circle","cross","diamond","square","star","triangle","wye"]).isRequired,skipAnimation:n.bool});function vg(e){switch(e){case"circle":return 0;case"cross":return 1;case"diamond":return 2;case"square":return 3;case"star":return 4;case"triangle":return 5;case"wye":return 6;default:return 0}}const DE=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],LE=re("path",{name:"MuiMarkElement",slot:"Root"})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2,[`&.${yg.animate}`]:{transitionDuration:`${_t}ms`,transitionProperty:"transform, transform-origin, opacity",transitionTimingFunction:Vt}}));function Og(e){const{x:t,y:r,id:i,classes:o,color:s,shape:a,dataIndex:c,onClick:u,skipAnimation:l,isFaded:d=!1,isHighlighted:f=!1}=e,p=te(e,DE),h=qr({type:"line",seriesId:i,dataIndex:c}),g={id:i,classes:o,isHighlighted:f,isFaded:d,color:s,skipAnimation:l},m=bg(g);return C.jsx(LE,E({},p,{style:{transform:`translate(${t}px, ${r}px)`,transformOrigin:`${t}px ${r}px`},ownerState:g,className:m.root,d:_m($m[vg(a)])(),onClick:u,cursor:u?"pointer":"unset"},h,{"data-highlighted":f||void 0,"data-faded":d||void 0}))}process.env.NODE_ENV!=="production"&&(Og.propTypes={classes:n.object,dataIndex:n.number.isRequired,id:n.oneOfType([n.number,n.string]).isRequired,isFaded:n.bool,isHighlighted:n.bool,shape:n.oneOf(["circle","cross","diamond","square","star","triangle","wye"]).isRequired,skipAnimation:n.bool});function NE(e,t){const r=ji(),i=ze().xAxisIds[0],o=Be().yAxisIds[0],s=Ni(),{instance:a}=at();return P.useMemo(()=>{if(r===void 0)return[];const{series:u,stackingGroups:l}=r,d=[];for(const f of l){const p=f.ids;for(const h of p){const{xAxisId:g=i,yAxisId:m=o,stackedData:y,data:b,showMark:O=!0,shape:S="circle"}=u[h];if(O===!1||!(g in e)||!(m in t))continue;const v=Fr(e[g].scale),T=t[m].scale,k=e[g].data;if(process.env.NODE_ENV!=="production"&&k===void 0)throw new Error(`MUI X Charts: ${g===bn?"The first `xAxis`":`The x-axis with id "${g}"`} should have data property to be able to display a line plot.`);const w=eg(`${s}-${h}-line-clip`),M=Ll(u[h],e[g],t[m]),I=[];if(k)for(let _=0;_<k.length;_+=1){const $=k[_],x=b[_]==null?null:y[_][1];if(x===null)continue;const A=T(x),R=v($);a.isPointInside(R,A)&&(O!==!0&&!O({x:R,y:A,index:_,position:$,value:x})||I.push({x:R,y:A,index:_,color:M(_)}))}d.push({seriesId:h,clipId:w,shape:S,xAxisId:g,marks:I})}}return d},[r,i,o,s,e,t,a])}const jE=["slots","slotProps","skipAnimation","onItemClick"];function Tg(e){const{slots:t,slotProps:r,skipAnimation:i,onItemClick:o}=e,s=te(e,jE),a=Ys(),c=qi(a||i),{xAxis:u}=ze(),{yAxis:l}=Be(),{store:d}=at(),{isFaded:f,isHighlighted:p}=og(),h=d.use(pm),g=P.useMemo(()=>{const y={};for(const{dataIndex:b,axisId:O}of h)y[O]===void 0?y[O]=new Set([b]):y[O].add(b);return y},[h]),m=NE(u,l);return C.jsx("g",E({},s,{children:m.map(({seriesId:y,clipId:b,shape:O,xAxisId:S,marks:v})=>{const T=t?.mark??(O==="circle"?xg:Og),k=p({seriesId:y}),w=!k&&f({seriesId:y});return C.jsx("g",{clipPath:`url(#${b})`,"data-series":y,children:v.map(({x:M,y:I,index:_,color:$})=>C.jsx(T,E({id:y,dataIndex:_,shape:O,color:$,x:M,y:I,skipAnimation:c,onClick:o&&(x=>o(x,{type:"line",seriesId:y,dataIndex:_})),isHighlighted:g[S]?.has(_)||k,isFaded:w},r?.mark),`${y}-${_}`))},y)})}))}process.env.NODE_ENV!=="production"&&(Tg.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});const qE=P.createContext();process.env.NODE_ENV!=="production"&&(n.node,n.bool);const Ws=()=>P.useContext(qE)??!1;function Xs(){const[e,t]=P.useState(!1);return P.useEffect(()=>{t(!0)},[]),e}function Vl(e){return typeof e=="number"&&!Number.isFinite(e)}function FE(e,t){return Math.abs(t.getFullYear()-e.getFullYear())}function Rf(e,t){return Math.abs(t.getFullYear()*12+t.getMonth()-12*e.getFullYear()-e.getMonth())}function Yr(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60*24)}function zE(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60)}const BE={years:{getTickNumber:FE,isTick:(e,t)=>t.getFullYear()!==e.getFullYear(),format:e=>e.getFullYear().toString()},quarterly:{getTickNumber:(e,t)=>Math.floor(Rf(e,t)/3),isTick:(e,t)=>t.getMonth()!==e.getMonth()&&t.getMonth()%3===0,format:new Intl.DateTimeFormat("default",{month:"short"}).format},months:{getTickNumber:Rf,isTick:(e,t)=>t.getMonth()!==e.getMonth(),format:new Intl.DateTimeFormat("default",{month:"short"}).format},biweekly:{getTickNumber:(e,t)=>Yr(e,t)/14,isTick:(e,t)=>(t.getDay()<e.getDay()||Yr(t,e)>7)&&Math.floor(t.getDate()/7)%2===1,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},weeks:{getTickNumber:(e,t)=>Yr(e,t)/7,isTick:(e,t)=>t.getDay()<e.getDay()||Yr(t,e)>=7,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},days:{getTickNumber:Yr,isTick:(e,t)=>t.getDate()!==e.getDate(),format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},hours:{getTickNumber:zE,isTick:(e,t)=>t.getHours()!==e.getHours(),format:new Intl.DateTimeFormat("default",{hour:"2-digit",minute:"2-digit"}).format}},xc={start:0,extremities:0,end:1,middle:.5};function dr(e,t,r){return e(t)-(e.step()-e.bandwidth())/2+xc[r]*e.step()}function HE(e,t,r){const i=Math.abs(t[1]-t[0]),o=Math.ceil(e.length/(i/r));return Number.isNaN(o)||o<=1?e:e.filter((s,a)=>a%o===0)}function VE(e,t,r,i,o){if(r.length===0)return[];const s=i.range()[0]>i.range()[1],a=e.findIndex(h=>o(dr(i,h,s?"start":"end"))),c=e.findLastIndex(h=>o(dr(i,h,s?"end":"start"))),u=e[0],l=e[e.length-1];if(!(u instanceof Date)||!(l instanceof Date))return[];let d=0;for(let h=0;h<r.length;h+=1)if(r[h].getTickNumber(u,l)!==0){d=h;break}let f=d;for(let h=d;h<r.length;h+=1){if(h===r.length-1){f=h;break}const g=r[h].getTickNumber(u,l),m=r[h+1].getTickNumber(u,l);if(m>t||t/g<m/t){f=h;break}}const p=[];for(let h=Math.max(1,a);h<=c;h+=1)for(let g=d;g<=f;g+=1){const m=e[h-1],y=e[h];if(m instanceof Date&&y instanceof Date&&r[g].isTick(m,y)){p.push({index:h,formatter:r[g].format});break}}return p}function GE(e){const{scale:t,tickNumber:r,valueFormatter:i,tickInterval:o,tickPlacement:s,tickLabelPlacement:a,tickSpacing:c,isInside:u,ordinalTimeTicks:l}=e;if(l!==void 0&&No(t.domain())&&Ne(t)){const m=t.domain();if(m.length===0||m.length===1)return[];const y="middle";return VE(m,r,l.map(O=>typeof O=="string"?BE[O]:O),t,u).map(({index:O,formatter:S})=>{const v=m[O],T=S(v);return{value:v,formattedValue:T,offset:dr(t,v,y),labelOffset:0}})}const d=s??"extremities";if(Ne(t)){const m=t.domain(),y=a??"middle";let b=m;if(typeof o=="object"&&o!=null?b=o:(typeof o=="function"&&(b=b.filter(o)),c!==void 0&&c>0&&(b=HE(b,t.range(),c))),b.length===0)return[];if(t.bandwidth()>0){const O=t.range()[0]>t.range()[1],S=b.findIndex(T=>u(dr(t,T,O?"start":"end"))),v=b.findLastIndex(T=>u(dr(t,T,O?"end":"start")));return[...b.slice(S,v+1).map(T=>{const k=`${T}`;return{value:T,formattedValue:i?.(T,{location:"tick",scale:t,tickNumber:r,defaultTickLabel:k})??k,offset:dr(t,T,d),labelOffset:y==="tick"?0:t.step()*(xc[y]-xc[d])}}),...d==="extremities"&&v===m.length-1&&u(t.range()[1])?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]}return b.map(O=>{const S=`${O}`;return{value:O,formattedValue:i?.(O,{location:"tick",scale:t,tickNumber:r,defaultTickLabel:S})??S,offset:t(O),labelOffset:0}})}if(t.domain().some(Vl))return[];const p=a,h=typeof o=="object"?o:UE(t,r),g=[];for(let m=0;m<h.length;m+=1){const y=h[m],b=t(y);if(u(b)){const O=t.tickFormat(r)(y);g.push({value:y,formattedValue:i?.(y,{location:"tick",scale:t,tickNumber:r,defaultTickLabel:O})??O,offset:b,labelOffset:p==="middle"?t(h[m-1]??0)-(b+t(h[m-1]??0))/2:0})}}return g}function UE(e,t){const r=e.domain();return r[0]===r[1]?[r[0]]:e.ticks(t)}function Ks(e){const{scale:t,tickNumber:r,valueFormatter:i,tickInterval:o,tickPlacement:s="extremities",tickLabelPlacement:a,tickSpacing:c,direction:u,ordinalTimeTicks:l}=e,{instance:d}=at(),f=u==="x"?d.isXInside:d.isYInside;return P.useMemo(()=>GE({scale:t,tickNumber:r,tickPlacement:s,tickInterval:o,tickLabelPlacement:a,tickSpacing:c,valueFormatter:i,isInside:f,ordinalTimeTicks:l}),[t,r,s,o,a,c,i,f,l])}function YE(e=!1){const[t,r]=P.useState(!1);return Le(()=>{e||r(!0)},[e]),P.useEffect(()=>{e&&r(!0)},[e]),t}const kg=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function WE(e){return e.length}function XE(e){const t=kg.segment(e);let r=0;for(const i of t)r+=1;return r}const KE=kg?XE:WE;function ZE(e){return e*(Math.PI/180)}const Sg=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function QE(e,t){return e.slice(0,t)}function JE(e,t){const r=Sg.segment(e);let i="",o=0;for(const s of r)if(i+=s.segment,o+=1,o>=t)break;return i}const eA=Sg?JE:QE,If="…";function Cg(e,t){const{width:r,height:i,measureText:o}=t,s=ZE(t.angle),a=o(e),c=Math.abs(a.width*Math.cos(s))+Math.abs(a.height*Math.sin(s)),u=Math.abs(a.width*Math.sin(s))+Math.abs(a.height*Math.cos(s));return c<=r&&u<=i}function wg(e,t){if(t(e))return e;let r=e,i=1,o=1/2;const s=KE(e);let a=s,c=s,u=null;do{if(c=a,a=Math.floor(s*o),a===0)break;r=eA(e,a).trim();const l=t(r+If);i+=1,l?(u=r,o+=1/2**i):o-=1/2**i}while(Math.abs(a-c)!==1);return u?u+If:""}function Eg(){return typeof window>"u"}const dn=new Map,Ag=2e3,tA=new Set(["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"]);function Gl(e,t){return tA.has(e)&&t===+t?`${t}px`:t}const nA=/([A-Z])/g;function Ul(e){return String(e).replace(nA,t=>`-${t.toLowerCase()}`)}function Pg(e){let t="";for(const r in e)if(Object.hasOwn(e,r)){const i=r,o=e[i];if(o===void 0)continue;t+=`${Ul(i)}:${Gl(i,o)};`}return t}const Fi=(e,t={})=>{if(e==null||Eg())return{width:0,height:0};const r=String(e),i=Pg(t),o=`${r}-${i}`,s=dn.get(o);if(s)return s;try{const a=Ig(),c=document.createElementNS("http://www.w3.org/2000/svg","text");Object.keys(t).map(l=>(c.style[Ul(l)]=Gl(l,t[l]),l)),c.textContent=r,a.replaceChildren(c);const u=Rg(c);return dn.set(o,u),dn.size+1>Ag&&dn.clear(),process.env.NODE_ENV==="test"&&a.replaceChildren(),u}catch{return{width:0,height:0}}};function rA(e,t={}){if(Eg())return new Map(Array.from(e).map(u=>[u,{width:0,height:0}]));const r=new Map,i=[],o=Pg(t);for(const u of e){const l=`${u}-${o}`,d=dn.get(l);d?r.set(u,d):i.push(u)}const s=Ig(),a=E({},t);Object.keys(a).map(u=>(s.style[Ul(u)]=Gl(u,a[u]),u));const c=[];for(const u of i){const l=document.createElementNS("http://www.w3.org/2000/svg","text");l.textContent=`${u}`,c.push(l)}s.replaceChildren(...c);for(let u=0;u<i.length;u+=1){const l=i[u],d=s.children[u],f=Rg(d),p=`${l}-${o}`;dn.set(p,f),r.set(l,f)}return dn.size+1>Ag&&dn.clear(),process.env.NODE_ENV==="test"&&s.replaceChildren(),r}function Rg(e){try{const t=e.getBBox();return{width:t.width,height:t.height}}catch{const t=e.getBoundingClientRect();return{width:t.width,height:t.height}}}let Je=null;function Ig(){return Je===null&&(Je=document.createElementNS("http://www.w3.org/2000/svg","svg"),Je.setAttribute("aria-hidden","true"),Je.style.position="absolute",Je.style.top="-20000px",Je.style.left="0",Je.style.padding="0",Je.style.margin="0",Je.style.border="none",Je.style.pointerEvents="none",Je.style.visibility="hidden",Je.style.contain="strict",document.body.appendChild(Je)),Je}function iA(e,t,r,i,o){const s=new Map,a=Gs(o?.angle??0);let c=1,u=1;o?.textAnchor==="start"?(c=1/0,u=1):o?.textAnchor==="end"?(c=1,u=1/0):(c=2,u=2),a>90&&a<270&&([c,u]=[u,c]),i&&([c,u]=[u,c]);for(const l of e)if(l.formattedValue){const d=Math.min((l.offset+l.labelOffset)*c,(t.left+t.width+t.right-l.offset-l.labelOffset)*u),f=p=>Cg(p,{width:d,height:r,angle:a,measureText:h=>Fi(h,o)});s.set(l,wg(l.formattedValue.toString(),f))}return s}const Mf=5;function oA(e,t,r=0){process.env.NODE_ENV!=="production"&&r>90&&r<-90&&Ct(["MUI X Charts: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.","This could cause some text overlapping.","If you encounter a use case where it's needed, please open an issue."]);const i=Math.min(Math.abs(r)%180,Math.abs(Math.abs(r)%180-180)%180);if(i<Mf)return e;if(i>90-Mf)return t;const o=Jt(i),s=Math.atan2(t,e);return o<s?e/Math.cos(o):t/Math.sin(o)}function sA(e,{tickLabelStyle:t,tickLabelInterval:r,tickLabelMinGap:i,reverse:o,isMounted:s,isXInside:a}){if(typeof r=="function")return new Set(e.filter((f,p)=>r(f.value,p)));let c=0;const u=o?-1:1,l=e.filter(f=>{const{offset:p,labelOffset:h,formattedValue:g}=f;if(g==="")return!1;const m=p+h;return a(m)}),d=cA(l,t);return new Set(l.filter((f,p)=>{const{offset:h,labelOffset:g}=f,m=h+g;if(p>0&&u*m<u*(c+i))return!1;const{width:y,height:b}=s?aA(d,f):{width:0,height:0},O=oA(y,b,t?.angle),S=m-u*O/2;return p>0&&u*S<u*(c+i)?!1:(c=m+u*O/2,!0)}))}function aA(e,t){if(t.formattedValue===void 0)return{width:0,height:0};let r=0,i=0;for(const o of t.formattedValue.split(`
|
|
57
|
+
`)){const s=e.get(o);s&&(r=Math.max(r,s.width),i+=s.height)}return{width:r,height:i}}function cA(e,t){const r=new Set;for(const i of e)i.formattedValue&&i.formattedValue.split(`
|
|
58
|
+
`).forEach(o=>r.add(o));return rA(r,t)}function Mg(e){return Te("MuiChartsAxis",e)}const ho=Oe("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]),$g=e=>{const{classes:t,position:r,id:i}=e,o={root:["root","directionX",r,`id-${i}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return ke(o,Mg,t)},vc=3,lA=4,_g={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function uA({style:e,needsComputation:t,text:r}){return r.split(`
|
|
59
|
+
`).map(i=>E({text:i},t?Fi(i,e):{width:0,height:0}))}const dA=["x","y","style","text","ownerState"],fA=["angle","textAnchor","dominantBaseline"];function zi(e){const{x:t,y:r,style:i,text:o}=e,s=te(e,dA),a=i??{},{angle:c,textAnchor:u,dominantBaseline:l}=a,d=te(a,fA),f=Xs(),p=P.useMemo(()=>uA({style:d,needsComputation:f&&o.includes(`
|
|
60
|
+
`),text:o}),[d,o,f]);let h;switch(l){case"hanging":case"text-before-edge":h=0;break;case"central":h=(p.length-1)/2*-p[0].height;break;default:h=(p.length-1)*-p[0].height;break}return C.jsx("text",E({},s,{transform:c?`rotate(${c}, ${t}, ${r})`:void 0,x:t,y:r,textAnchor:u,dominantBaseline:l,style:d,children:p.map((g,m)=>C.jsx("tspan",{x:t,dy:`${m===0?h:p[0].height}px`,dominantBaseline:l,children:g.text},m))}))}process.env.NODE_ENV!=="production"&&(zi.propTypes={lineHeight:n.number,needsComputation:n.bool,ownerState:n.any,style:n.object,text:n.string.isRequired});function Dg(e){const t=Gs(e);return t<=30||t>=330||t<=210&&t>=150?"middle":t<=180?"end":"start"}function Lg(e){const t=Gs(e);return t<=30||t>=330?"hanging":t<=210&&t>=150?"auto":"central"}function Ng(e){switch(e){case"start":return"end";case"end":return"start";default:return e}}const pA=["scale","tickNumber","reverse"];function jg(e){const{xAxis:t,xAxisIds:r}=ze(),i=t[e.axisId??r[0]],{scale:o,tickNumber:s,reverse:a}=i,c=te(i,pA),u=Ke({props:E({},c,e),name:"MuiChartsXAxis"}),l=E({},_g,u),{position:d,tickLabelStyle:f,slots:p,slotProps:h}=l,g=Xe(),m=Ws(),y=$g(l),b=d==="bottom"?1:-1,O=p?.axisTick??"line",S=p?.axisTickLabel??zi,v=Dg((d==="bottom"?0:180)-(f?.angle??0)),T=Lg((d==="bottom"?0:180)-(f?.angle??0)),k=$t({elementType:S,externalSlotProps:h?.axisTickLabel,additionalProps:{style:E({},g.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:m?Ng(v):v,dominantBaseline:T},f)},className:y.tickLabel,ownerState:{}});return{xScale:o,defaultizedProps:l,tickNumber:s,positionSign:b,classes:y,Tick:O,TickLabel:S,axisTickLabelProps:k,reverse:a}}function hA(e){const{axisLabelHeight:t,ordinalTimeTicks:r}=e,{xScale:i,defaultizedProps:o,tickNumber:s,positionSign:a,classes:c,Tick:u,TickLabel:l,axisTickLabelProps:d,reverse:f}=jg(e),p=Ws(),h=YE(),{disableTicks:g,tickSize:m,valueFormatter:y,slotProps:b,tickInterval:O,tickLabelInterval:S,tickPlacement:v,tickLabelPlacement:T,tickLabelMinGap:k,tickSpacing:w,height:M}=o,I=ht(),{instance:_}=at(),$=Xs(),x=g?4:m,A=Ks({scale:i,tickNumber:s,valueFormatter:y,tickInterval:O,tickPlacement:v,tickLabelPlacement:T,tickSpacing:w,direction:"x",ordinalTimeTicks:r}),R=sA(A,{tickLabelStyle:d.style,tickLabelInterval:S,tickLabelMinGap:k,reverse:f,isMounted:h,isXInside:_.isXInside}),N=Math.max(0,M-(t>0?t+lA:0)-x-vc),q=$?iA(R,I,N,p,d.style):new Map(Array.from(R).map(F=>[F,F.formattedValue]));return C.jsx(P.Fragment,{children:A.map((F,G)=>{const{offset:V,labelOffset:L}=F,B=L??0,Y=a*(x+vc),Q=_.isXInside(V),W=q.get(F),K=R.has(F);return C.jsxs("g",{transform:`translate(${V}, 0)`,className:c.tickContainer,children:[!g&&Q&&C.jsx(u,E({y2:a*x,className:c.tick},b?.axisTick)),W!==void 0&&K&&C.jsx(l,E({x:B,y:Y},d,{text:W}))]},G)})})}const Wr={start:0,extremities:0,end:1,middle:.5,tick:0};function qg(e){const{scale:t,tickInterval:r,tickLabelPlacement:i="middle",tickPlacement:o="extremities",groups:s}=e;return P.useMemo(()=>{const a=t.domain(),c=typeof r=="function"&&a.filter(r)||typeof r=="object"&&r||a;if(t.bandwidth()>0){const u=$f(c,s,o,i,t);return u[0]&&(u[0].ignoreTick=!0),[{formattedValue:void 0,offset:t.range()[0],labelOffset:0,groupIndex:s.length-1},...u,{formattedValue:void 0,offset:t.range()[1],labelOffset:0,groupIndex:s.length-1}]}return $f(c,s,o,i,t)},[t,r,s,o,i])}function $f(e,t,r,i,o){const s=[],a=new Map;let c=0;for(let u=0;u<t.length;u+=1)for(let l=0;l<e.length;l+=1){const d=e[l],f=t[u].getValue(d,l),p=s[s.length-1];if(p?.value!==f||p?.groupIndex!==u){c=1;const g=Ne(o)?o(d)-(o.step()-o.bandwidth())/2+Wr[r]*o.step():o(d),m=o.step()*c*(Wr[i]-Wr[r]);s.push({value:f,formattedValue:`${f}`,offset:g,groupIndex:u,dataIndex:l,ignoreTick:!1,labelOffset:m}),a.has(l)||a.set(l,new Set);const y=a.get(l);for(const b of y.values())s[b].ignoreTick=!0;y.add(s.length-1)}else{c+=1;const g=o.step()*c*(Wr[i]-Wr[r]);p.labelOffset=g}}return s}const _f={tickSize:6},mA=(e,t,r)=>{const i=e[t]??{},o=r??_f.tickSize,s=o*t*2+o;return E({},_f,i,{tickSize:i.tickSize??s})};function gA(e){const{xScale:t,defaultizedProps:r,positionSign:i,classes:o,Tick:s,TickLabel:a,axisTickLabelProps:c}=jg(e);if(!Ne(t))throw new Error("MUI X Charts: ChartsGroupedXAxis only supports the `band` and `point` scale types.");const{disableTicks:u,tickSize:l,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:h,tickLabelPlacement:g}=r,m=r.groups,{instance:y}=at(),b=qg({scale:t,tickInterval:p,tickPlacement:h,tickLabelPlacement:g,groups:m});return C.jsx(P.Fragment,{children:b.map((O,S)=>{const{offset:v,labelOffset:T}=O,k=T??0,w=y.isXInside(v),M=O.formattedValue,I=O.ignoreTick??!1,_=O.groupIndex??0,$=mA(m,_,l),x=i*$.tickSize,A=i*($.tickSize+vc);return C.jsxs("g",{transform:`translate(${v}, 0)`,className:o.tickContainer,"data-group-index":_,children:[!u&&!I&&w&&C.jsx(s,E({y2:x,className:o.tick},f?.axisTick)),M!==void 0&&C.jsx(a,E({x:k,y:A},c,{style:E({},c.style,$.tickLabelStyle),text:M}))]},S)})})}const Fg=re("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:e})=>({[`& .${ho.tickLabel}`]:E({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${ho.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${ho.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${ho.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),yA=["axis"],bA=["scale","tickNumber","reverse","ordinalTimeTicks"],xA=re(Fg,{name:"MuiChartsXAxis",slot:"Root"})({});function vA(e){let{axis:t}=e,r=te(e,yA);const{scale:i,ordinalTimeTicks:o}=t,s=te(t,bA),a=Ke({props:E({},s,r),name:"MuiChartsXAxis"}),c=E({},_g,a),{position:u,labelStyle:l,offset:d,slots:f,slotProps:p,sx:h,disableLine:g,label:m,height:y}=c,b=Xe(),O=$g(c),{left:S,top:v,width:T,height:k}=ht(),w=u==="bottom"?1:-1,M=f?.axisLine??"line",I=f?.axisLabel??zi,_=$t({elementType:I,externalSlotProps:p?.axisLabel,additionalProps:{style:E({},b.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:u==="bottom"?"text-after-edge":"text-before-edge"},l)},ownerState:{}});if(u==="none")return null;const $=m?Fi(m,_.style).height:0,x=i.domain(),R=Ne(i)?x.length===0:x.some(Vl);let N=null;R||(N="groups"in t&&Array.isArray(t.groups)?C.jsx(gA,E({},r)):C.jsx(hA,E({},r,{axisLabelHeight:$,ordinalTimeTicks:o})));const q={x:S+T/2,y:w*y};return C.jsxs(xA,{transform:`translate(0, ${u==="bottom"?v+k+d:v-d})`,className:O.root,sx:h,children:[!g&&C.jsx(M,E({x1:S,x2:S+T,className:O.line},p?.axisLine)),N,m&&C.jsx("g",{className:O.label,children:C.jsx(I,E({},q,_,{text:m}))})]})}function zg(e){const{xAxis:t,xAxisIds:r}=ze(),i=t[e.axisId??r[0]];return i?C.jsx(vA,E({},e,{axis:i})):(Ct(`MUI X Charts: No axis found. The axisId "${e.axisId}" is probably invalid.`),null)}process.env.NODE_ENV!=="production"&&(zg.propTypes={axis:n.oneOf(["x"]),axisId:n.oneOfType([n.number,n.string]),classes:n.object,disableLine:n.bool,disableTicks:n.bool,label:n.string,labelStyle:n.object,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number});function OA(e,t,r,i,o){const s=new Map,a=Gs(o?.angle??0);let c=1,u=1;o?.textAnchor==="start"?(c=1/0,u=1):o?.textAnchor==="end"?(c=1,u=1/0):(c=2,u=2),a>180&&([c,u]=[u,c]),i&&([c,u]=[u,c]);for(const l of e)if(l.formattedValue){const d=Math.min((l.offset+l.labelOffset)*c,(t.top+t.height+t.bottom-l.offset-l.labelOffset)*u),f=p=>Cg(p,{width:r,height:d,angle:a,measureText:h=>Fi(h,o)});s.set(l,wg(l.formattedValue.toString(),f))}return s}const Bg=e=>{const{classes:t,position:r,id:i}=e,o={root:["root","directionY",r,`id-${i}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return ke(o,Mg,t)},Oc=2,TA=2,Hg={disableLine:!1,disableTicks:!1,tickSize:6},kA=["scale","tickNumber","reverse"];function Vg(e){const{yAxis:t,yAxisIds:r}=Be(),i=t[e.axisId??r[0]],{scale:o,tickNumber:s}=i,a=te(i,kA),c=Ke({props:E({},a,e),name:"MuiChartsYAxis"}),u=E({},Hg,c),{position:l,tickLabelStyle:d,slots:f,slotProps:p}=u,h=Xe(),g=Ws(),m=Bg(u),y=l==="right"?1:-1,b=typeof d?.fontSize=="number"?d.fontSize:12,O=f?.axisTick??"line",S=f?.axisTickLabel??zi,v=Dg((l==="right"?-90:90)-(d?.angle??0)),T=Lg((l==="right"?-90:90)-(d?.angle??0)),k=$t({elementType:S,externalSlotProps:p?.axisTickLabel,additionalProps:{style:E({},h.typography.caption,{fontSize:b,textAnchor:g?Ng(v):v,dominantBaseline:T},d)},className:m.tickLabel,ownerState:{}});return{yScale:o,defaultizedProps:u,tickNumber:s,positionSign:y,classes:m,Tick:O,TickLabel:S,axisTickLabelProps:k}}function SA(e){const{axisLabelHeight:t,ordinalTimeTicks:r}=e,{yScale:i,defaultizedProps:o,tickNumber:s,positionSign:a,classes:c,Tick:u,TickLabel:l,axisTickLabelProps:d}=Vg(e),f=Ws(),{disableTicks:p,tickSize:h,valueFormatter:g,slotProps:m,tickPlacement:y,tickLabelPlacement:b,tickInterval:O,tickLabelInterval:S,tickSpacing:v,width:T}=o,k=ht(),{instance:w}=at(),M=Xs(),I=p?4:h,_=Ks({scale:i,tickNumber:s,valueFormatter:g,tickPlacement:y,tickLabelPlacement:b,tickInterval:O,tickSpacing:v,direction:"y",ordinalTimeTicks:r}),$=Math.max(0,T-(t>0?t+TA:0)-I-Oc),x=M?OA(_,k,$,f,d.style):new Map(Array.from(_).map(A=>[A,A.formattedValue]));return C.jsx(P.Fragment,{children:_.map((A,R)=>{const{offset:N,labelOffset:q,value:F}=A,G=a*(I+Oc),V=q,L=typeof S=="function"&&!S?.(F,R),B=w.isYInside(N),Y=x.get(A);return B?C.jsxs("g",{transform:`translate(0, ${N})`,className:c.tickContainer,children:[!p&&C.jsx(u,E({x2:a*I,className:c.tick},m?.axisTick)),Y!==void 0&&!L&&C.jsx(l,E({x:G,y:V,text:Y},d))]},R):null})})}const Df={tickSize:6},CA=(e,t,r)=>{const i=e[t]??{},o=r??Df.tickSize,s=o*t*2+o;return E({},Df,i,{tickSize:i.tickSize??s})};function wA(e){const{yScale:t,defaultizedProps:r,positionSign:i,classes:o,Tick:s,TickLabel:a,axisTickLabelProps:c}=Vg(e);if(!Ne(t))throw new Error("MUI X Charts: ChartsGroupedYAxis only supports the `band` and `point` scale types.");const{disableTicks:u,tickSize:l,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:h,tickLabelPlacement:g}=r,m=r.groups,{instance:y}=at(),b=qg({scale:t,tickInterval:p,tickPlacement:h,tickLabelPlacement:g,groups:m});return C.jsx(P.Fragment,{children:b.map((O,S)=>{const{offset:v,labelOffset:T}=O,k=T??0,w=y.isYInside(v),M=O.formattedValue,I=O.ignoreTick??!1,_=O.groupIndex??0,$=CA(m,_,l),x=i*$.tickSize,A=i*($.tickSize+Oc);return C.jsxs("g",{transform:`translate(0, ${v})`,className:o.tickContainer,"data-group-index":_,children:[!u&&!I&&w&&C.jsx(s,E({x2:x,className:o.tick},f?.axisTick)),M!==void 0&&C.jsx(a,E({x:A,y:k},c,{style:E({},c.style,$.tickLabelStyle),text:M}))]},S)})})}const EA=["axis"],AA=["scale","tickNumber","reverse","ordinalTimeTicks"],PA=re(Fg,{name:"MuiChartsYAxis",slot:"Root"})({});function RA(e){let{axis:t}=e,r=te(e,EA);const{scale:i,ordinalTimeTicks:o}=t,s=te(t,AA),a=Xs(),c=Ke({props:E({},s,r),name:"MuiChartsYAxis"}),u=E({},Hg,c),{position:l,disableLine:d,label:f,labelStyle:p,offset:h,width:g,sx:m,slots:y,slotProps:b}=u,O=Xe(),S=Bg(u),{left:v,top:T,width:k,height:w}=ht(),M=l==="right"?1:-1,I=y?.axisLine??"line",_=y?.axisLabel??zi,$=$t({elementType:I,externalSlotProps:b?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),x=$t({elementType:_,externalSlotProps:b?.axisLabel,additionalProps:{style:E({},O.typography.body1,{lineHeight:1,fontSize:14,angle:M*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},p)},ownerState:{}});if(l==="none")return null;const A={x:M*g,y:T+w/2},R=f==null?0:Fi(f,x.style).height,N=i.domain(),F=Ne(i)?N.length===0:N.some(Vl);let G=null;return F||(G="groups"in t&&Array.isArray(t.groups)?C.jsx(wA,E({},r)):C.jsx(SA,E({},r,{axisLabelHeight:R,ordinalTimeTicks:o}))),C.jsxs(PA,{transform:`translate(${l==="right"?v+k+h:v-h}, 0)`,className:S.root,sx:m,children:[!d&&C.jsx(I,E({y1:T,y2:T+w,className:S.line},$)),G,f&&a&&C.jsx("g",{className:S.label,children:C.jsx(_,E({},A,x,{text:f}))})]})}function Gg(e){const{yAxis:t,yAxisIds:r}=Be(),i=t[e.axisId??r[0]];return i?C.jsx(RA,E({},e,{axis:i})):(Ct(`MUI X Charts: No axis found. The axisId "${e.axisId}" is probably invalid.`),null)}process.env.NODE_ENV!=="production"&&(Gg.propTypes={axis:n.oneOf(["y"]),axisId:n.oneOfType([n.number,n.string]),classes:n.object,disableLine:n.bool,disableTicks:n.bool,label:n.string,labelStyle:n.object,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number});function Yl(e){const{slots:t,slotProps:r}=e,{xAxisIds:i,xAxis:o}=ze(),{yAxisIds:s,yAxis:a}=Be();return C.jsxs(P.Fragment,{children:[i.map(c=>!o[c].position||o[c].position==="none"?null:C.jsx(zg,{slots:t,slotProps:r,axisId:c},c)),s.map(c=>!a[c].position||a[c].position==="none"?null:C.jsx(Gg,{slots:t,slotProps:r,axisId:c},c))]})}process.env.NODE_ENV!=="production"&&(Yl.propTypes={slotProps:n.object,slots:n.object});function jn(e,t,r,i,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${i} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function IA(){return Kx}const qn=C0;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function Zn(e){return T0(e)}function MA(e){return typeof e.main=="string"}function $A(e,t=[]){if(!MA(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function yi(e=[]){return([,t])=>t&&$A(t,e)}function _A(e){return Te("MuiTypography",e)}Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const DA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},LA=IA(),NA=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:o,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${ve(t)}`,r&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return ke(c,_A,a)},jA=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ve(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(qn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ve(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Lf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zs=P.forwardRef(function(t,r){const{color:i,...o}=Zn({props:t,name:"MuiTypography"}),s=!DA[i],a=LA({...o,...s&&{color:i}}),{align:c="inherit",className:u,component:l,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:g=Lf,...m}=a,y={...a,align:c,color:i,className:u,component:l,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:g},b=l||(p?"p":g[h]||Lf[h])||"span",O=NA(y);return C.jsx(jA,{as:b,ref:r,className:ge(O.root,u),...m,ownerState:y,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...m.style}})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),n.string]),component:n.elementType,gutterBottom:n.bool,noWrap:n.bool,paragraph:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),n.string]),variantMapping:n.object});function qA(e){return Te("MuiChartsTooltip",e)}const lr=Oe("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),Qs=e=>ke({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},qA,e);function FA(){const e=ye(),t=e.use(Il),r=e.use(st),i=Us(),{xAxis:o,xAxisIds:s}=ze(),{yAxis:a,yAxisIds:c}=Be(),{zAxis:u,zAxisIds:l}=ql(),{rotationAxis:d,rotationAxisIds:f}=tg();if(!t)return null;const p=i[t.type]?.series[t.seriesId];if(!p)return null;const h=jo(p)?p.xAxisId??s[0]:void 0,g=jo(p)?p.yAxisId??c[0]:void 0,m="zAxisId"in p?p.zAxisId??l[0]:l[0],y=f[0],b=r[p.type].colorProcessor?.(p,h!==void 0?o[h]:void 0,g!==void 0?a[g]:void 0,m!==void 0?u[m]:void 0)??(()=>""),O={};return h!==void 0&&(O.x=o[h]),g!==void 0&&(O.y=a[g]),y!==void 0&&(O.rotation=d[y]),r[p.type].tooltipGetter({series:p,axesConfig:O,getColor:b,identifier:t})}const Tc=re("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,borderRadius:(e.vars||e).shape?.borderRadius,border:`solid ${(e.vars||e).palette.divider} 1px`})),kc=re("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,[`& .${lr.markContainer}`]:{display:"inline-block",width:`calc(20px + ${e.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`,padding:e.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:e.spacing(1.5)}}})),Sc=re("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(.5)},"tr:last-of-type& td":{paddingBottom:e.spacing(.5)}})),fr=re(Zs,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,textAlign:"start",[`&.${lr.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${lr.labelCell}`]:{whiteSpace:"nowrap",fontWeight:e.typography.fontWeightRegular},[`&.${lr.valueCell}, &.${lr.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${lr.valueCell}`]:{paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:e.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:e.spacing(1.5)}}));function zA(e){return Te("MuiChartsLabelMark",e)}const cr=Oe("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),BA=e=>{const{type:t}=e;return ke({root:typeof t=="function"?["root"]:["root",t],mask:["mask"],fill:["fill"]},zA,e.classes)},Wl=(e,t,r)=>P.forwardRef(function(o,s){const a=Ke({props:o,name:e}),c=typeof t.defaultProps=="function"?t.defaultProps(a):t.defaultProps??{},u=Ln(c,a),l=Xe(),d=t.classesResolver?.(u,l),f=P.forwardRef(r);return process.env.NODE_ENV!=="production"&&(f.displayName="OutComponent"),process.env.NODE_ENV!=="production"&&(f.displayName=`consumeThemeProps(${e})`),C.jsx(f,E({},u,{classes:d,ref:s}))});process.env.NODE_ENV!=="production"&&(Wl.displayName="consumeThemeProps");const HA=["type","color","className","classes"],VA=re("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${cr.line}`]:{width:16,height:"unset",alignItems:"center",[`.${cr.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${cr.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${cr.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${cr.mask} > *`]:{height:"100%",width:"100%"},[`& .${cr.mask}`]:{height:"100%",width:"100%"}})),bi=Wl("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:BA},function(t,r){const{type:i,color:o,className:s,classes:a}=t,c=te(t,HA),u=i;return C.jsx(VA,E({className:ge(a?.root,s),ownerState:t,"aria-hidden":"true",ref:r},c,{children:C.jsx("div",{className:a?.mask,children:typeof u=="function"?C.jsx(u,{className:a?.fill,color:o}):C.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:i==="line"?"none":void 0,children:i==="circle"?C.jsx("circle",{className:a?.fill,r:"12",cx:"12",cy:"12",fill:o}):C.jsx("rect",{className:a?.fill,width:"24",height:"24",fill:o})})})}))});process.env.NODE_ENV!=="production"&&(bi.propTypes={classes:n.object,color:n.string,type:n.oneOf(["circle","line","square"])});function Ug(e){const{classes:t,sx:r}=e,i=FA(),o=Qs(t);if(!i)return null;if("values"in i){const{label:l,color:d,markType:f}=i;return C.jsx(Tc,{sx:r,className:o.paper,children:C.jsxs(kc,{className:o.table,children:[C.jsxs(Zs,{component:"caption",children:[C.jsx("div",{className:o.markContainer,children:C.jsx(bi,{type:f,color:d,className:o.mark})}),l]}),C.jsx("tbody",{children:i.values.map(({formattedValue:p,label:h})=>C.jsxs(Sc,{className:o.row,children:[C.jsx(fr,{className:ge(o.labelCell,o.cell),component:"th",children:h}),C.jsx(fr,{className:ge(o.valueCell,o.cell),component:"td",children:p})]},h))})]})})}const{color:s,label:a,formattedValue:c,markType:u}=i;return C.jsx(Tc,{sx:r,className:o.paper,children:C.jsx(kc,{className:o.table,children:C.jsx("tbody",{children:C.jsxs(Sc,{className:o.row,children:[C.jsxs(fr,{className:ge(o.labelCell,o.cell),component:"th",children:[C.jsx("div",{className:o.markContainer,children:C.jsx(bi,{type:u,color:s,className:o.mark})}),a]}),C.jsx(fr,{className:ge(o.valueCell,o.cell),component:"td",children:c})]})})})})}process.env.NODE_ENV!=="production"&&(Ug.propTypes={classes:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function GA(e){const r=ye().use(st);return P.useMemo(()=>{const o={};return Object.keys(r).forEach(s=>{o[s]=r[s].colorProcessor}),o},[r])}const UA=qp({themeId:es});function YA(){const e=Fl(),[t,r]=P.useState(null);return P.useEffect(()=>{const i=e.current;if(i===null)return()=>{};const o=a=>{a.pointerType!=="mouse"&&r(null)},s=a=>{r({pointerType:a.pointerType})};return i.addEventListener("pointerenter",s),i.addEventListener("pointerup",o),()=>{i.removeEventListener("pointerenter",s),i.removeEventListener("pointerup",o)}},[e]),t}function WA(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}const XA="@media (pointer: fine)",KA=()=>UA(XA,{defaultMatches:!0}),Yg=(e,t)=>t,Wg=(e,t)=>t;function Xg(e,t,r){return Array.isArray(r)?r.map(i=>Pf(t.axis[i],e)):Pf(t.axis[r],e)}const Kg=U(Mi,$i,C1,(e,t,r)=>e===null||t===null?null:Bw(r)(e,t)),ZA=U(Kg,On,Yg,(e,t,r=t.axisIds[0])=>e===null?null:Xg(e,t,r)),Zg=U(Kg,On,Wg,(e,t,r=t.axisIds)=>e===null?null:Xg(e,t,r));U(On,ZA,Yg,(e,t,r=e.axisIds[0])=>{if(t===null||t===-1||e.axisIds.length===0)return null;const i=e.axis[r]?.data;return i?i[t]:null});U(On,Zg,Wg,(e,t,r=e.axisIds)=>t===null?null:r.map((i,o)=>{const s=t[o];return s===-1?null:e.axis[i].data?.[s]}));const Qg=ys({memoizeOptions:{resultEqualityCheck:yr}})(Zg,On,(e,t)=>e===null?[]:t.axisIds.map((r,i)=>({axisId:r,dataIndex:e[i]})).filter(({axisId:r,dataIndex:i})=>t.axis[r].triggerTooltip&&i>=0)),QA=U(Qg,e=>e.length>0);function Xa(e,t,r){const i=e.data?.[t]??null,s=(e.valueFormatter??(a=>e.scaleType==="utc"?WA(a):a.toLocaleString()))(i,{location:"tooltip",scale:e.scale});return{axisDirection:r,axisId:e.id,mainAxis:e,dataIndex:t,axisValue:i,axisFormattedValue:s,seriesItems:[]}}function JA(e={}){const{multipleAxes:t,directions:r}=e,i=Vw(),o=Gw(),s=Uw(),a=ye(),c=a.use(om),u=a.use(sm),l=a.use(Qg),d=Us(),{xAxis:f}=ze(),{yAxis:p}=Be(),{zAxis:h,zAxisIds:g}=ql(),{rotationAxis:m}=tg(),y=GA();if(c.length===0&&u.length===0&&l.length===0)return null;const b=[];return(r===void 0||r.includes("x"))&&c.forEach(({axisId:O,dataIndex:S})=>{!t&&b.length>1||b.push(Xa(f[O],S,"x"))}),(r===void 0||r.includes("y"))&&u.forEach(({axisId:O,dataIndex:S})=>{!t&&b.length>1||b.push(Xa(p[O],S,"y"))}),(r===void 0||r.includes("rotation"))&&l.forEach(({axisId:O,dataIndex:S})=>{!t&&b.length>1||b.push(Xa(m[O],S,"rotation"))}),Object.keys(d).filter(_s).forEach(O=>{const S=d[O];return S?S.seriesOrder.forEach(v=>{const T=S.series[v],k=T.xAxisId??i.id,w=T.yAxisId??o.id,M=b.findIndex(({axisDirection:I,axisId:_})=>I==="x"&&_===k||I==="y"&&_===w);if(M>=0){const I="zAxisId"in T?T.zAxisId:g[0],{dataIndex:_}=b[M],$=y[O]?.(T,f[k],p[w],I?h[I]:void 0)(_)??"",x=T.data[_]??null,A=T.valueFormatter(x,{dataIndex:_}),R=ft(T.label,"tooltip")??null;b[M].seriesItems.push({seriesId:v,color:$,value:x,formattedValue:A,formattedLabel:R,markType:T.labelMarkType})}}):[]}),Object.keys(d).filter(Rl).forEach(O=>{const S=d[O];return S?S.seriesOrder.forEach(v=>{const T=S.series[v],k=T.rotationAxisId??s?.id,w=b.findIndex(({axisDirection:M,axisId:I})=>M==="rotation"&&I===k);if(w>=0){const{dataIndex:M}=b[w],I=y[O]?.(T)(M)??"",_=T.data[M]??null,$=T.valueFormatter(_,{dataIndex:M}),x=ft(T.label,"tooltip")??null;b[w].seriesItems.push({seriesId:v,color:I,value:_,formattedValue:$,formattedLabel:x,markType:T.labelMarkType})}}):[]}),t?b:b.length===0?b[0]:null}function eP(e){return JA(E({},e,{multipleAxes:!0}))}function Jg(e){const t=Qs(e.classes),r=eP();return r===null?null:C.jsx(Tc,{sx:e.sx,className:t.paper,children:r.map(({axisId:i,mainAxis:o,axisValue:s,axisFormattedValue:a,seriesItems:c})=>C.jsxs(kc,{className:t.table,children:[s!=null&&!o.hideTooltip&&C.jsx(Zs,{component:"caption",children:a}),C.jsx("tbody",{children:c.map(({seriesId:u,color:l,formattedValue:d,formattedLabel:f,markType:p})=>d==null?null:C.jsxs(Sc,{className:t.row,children:[C.jsxs(fr,{className:ge(t.labelCell,t.cell),component:"th",children:[C.jsx("div",{className:t.markContainer,children:C.jsx(bi,{type:p,color:l,className:t.mark})}),f||null]}),C.jsx(fr,{className:ge(t.valueCell,t.cell),component:"td",children:d})]},u))})]},i))})}process.env.NODE_ENV!=="production"&&(Jg.propTypes={classes:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Xl=n.oneOfType([n.func,n.object]);function Js(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}var nt="top",wt="bottom",Et="right",rt="left",Kl="auto",Bi=[nt,wt,Et,rt],Rr="start",xi="end",tP="clippingParents",ey="viewport",Xr="popper",nP="reference",Nf=Bi.reduce(function(e,t){return e.concat([t+"-"+Rr,t+"-"+xi])},[]),ty=[].concat(Bi,[Kl]).reduce(function(e,t){return e.concat([t,t+"-"+Rr,t+"-"+xi])},[]),rP="beforeRead",iP="read",oP="afterRead",sP="beforeMain",aP="main",cP="afterMain",lP="beforeWrite",uP="write",dP="afterWrite",fP=[rP,iP,oP,sP,aP,cP,lP,uP,dP];function Gt(e){return e?(e.nodeName||"").toLowerCase():null}function pt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fn(e){var t=pt(e).Element;return e instanceof t||e instanceof Element}function St(e){var t=pt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zl(e){if(typeof ShadowRoot>"u")return!1;var t=pt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function pP(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!St(s)||!Gt(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(a){var c=o[a];c===!1?s.removeAttribute(a):s.setAttribute(a,c===!0?"":c)}))})}function hP(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],s=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=a.reduce(function(u,l){return u[l]="",u},{});!St(o)||!Gt(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const mP={name:"applyStyles",enabled:!0,phase:"write",fn:pP,effect:hP,requires:["computeStyles"]};function Ht(e){return e.split("-")[0]}var Dn=Math.max,Uo=Math.min,Ir=Math.round;function Cc(){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 ny(){return!/^((?!chrome|android).)*safari/i.test(Cc())}function Mr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&St(e)&&(o=e.offsetWidth>0&&Ir(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ir(i.height)/e.offsetHeight||1);var a=Fn(e)?pt(e):window,c=a.visualViewport,u=!ny()&&r,l=(i.left+(u&&c?c.offsetLeft:0))/o,d=(i.top+(u&&c?c.offsetTop:0))/s,f=i.width/o,p=i.height/s;return{width:f,height:p,top:d,right:l+f,bottom:d+p,left:l,x:l,y:d}}function Ql(e){var t=Mr(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function ry(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Zl(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function on(e){return pt(e).getComputedStyle(e)}function gP(e){return["table","td","th"].indexOf(Gt(e))>=0}function kn(e){return((Fn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ea(e){return Gt(e)==="html"?e:e.assignedSlot||e.parentNode||(Zl(e)?e.host:null)||kn(e)}function jf(e){return!St(e)||on(e).position==="fixed"?null:e.offsetParent}function yP(e){var t=/firefox/i.test(Cc()),r=/Trident/i.test(Cc());if(r&&St(e)){var i=on(e);if(i.position==="fixed")return null}var o=ea(e);for(Zl(o)&&(o=o.host);St(o)&&["html","body"].indexOf(Gt(o))<0;){var s=on(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Hi(e){for(var t=pt(e),r=jf(e);r&&gP(r)&&on(r).position==="static";)r=jf(r);return r&&(Gt(r)==="html"||Gt(r)==="body"&&on(r).position==="static")?t:r||yP(e)||t}function Jl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ni(e,t,r){return Dn(e,Uo(t,r))}function bP(e,t,r){var i=ni(e,t,r);return i>r?r:i}function iy(){return{top:0,right:0,bottom:0,left:0}}function oy(e){return Object.assign({},iy(),e)}function sy(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var xP=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,oy(typeof t!="number"?t:sy(t,Bi))};function vP(e){var t,r=e.state,i=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,c=Ht(r.placement),u=Jl(c),l=[rt,Et].indexOf(c)>=0,d=l?"height":"width";if(!(!s||!a)){var f=xP(o.padding,r),p=Ql(s),h=u==="y"?nt:rt,g=u==="y"?wt:Et,m=r.rects.reference[d]+r.rects.reference[u]-a[u]-r.rects.popper[d],y=a[u]-r.rects.reference[u],b=Hi(s),O=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,S=m/2-y/2,v=f[h],T=O-p[d]-f[g],k=O/2-p[d]/2+S,w=ni(v,k,T),M=u;r.modifiersData[i]=(t={},t[M]=w,t.centerOffset=w-k,t)}}function OP(e){var t=e.state,r=e.options,i=r.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ry(t.elements.popper,o)&&(t.elements.arrow=o))}const TP={name:"arrow",enabled:!0,phase:"main",fn:vP,effect:OP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $r(e){return e.split("-")[1]}var kP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SP(e,t){var r=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Ir(r*o)/o||0,y:Ir(i*o)/o||0}}function qf(e){var t,r=e.popper,i=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,m=g===void 0?0:g,y=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var b=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),S=rt,v=nt,T=window;if(l){var k=Hi(r),w="clientHeight",M="clientWidth";if(k===pt(r)&&(k=kn(r),on(k).position!=="static"&&c==="absolute"&&(w="scrollHeight",M="scrollWidth")),k=k,o===nt||(o===rt||o===Et)&&s===xi){v=wt;var I=f&&k===T&&T.visualViewport?T.visualViewport.height:k[w];m-=I-i.height,m*=u?1:-1}if(o===rt||(o===nt||o===wt)&&s===xi){S=Et;var _=f&&k===T&&T.visualViewport?T.visualViewport.width:k[M];h-=_-i.width,h*=u?1:-1}}var $=Object.assign({position:c},l&&kP),x=d===!0?SP({x:h,y:m},pt(r)):{x:h,y:m};if(h=x.x,m=x.y,u){var A;return Object.assign({},$,(A={},A[v]=O?"0":"",A[S]=b?"0":"",A.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",A))}return Object.assign({},$,(t={},t[v]=O?m+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function CP(e){var t=e.state,r=e.options,i=r.gpuAcceleration,o=i===void 0?!0:i,s=r.adaptive,a=s===void 0?!0:s,c=r.roundOffsets,u=c===void 0?!0:c,l={placement:Ht(t.placement),variation:$r(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,qf(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qf(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const wP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CP,data:{}};var mo={passive:!0};function EP(e){var t=e.state,r=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,a=i.resize,c=a===void 0?!0:a,u=pt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach(function(d){d.addEventListener("scroll",r.update,mo)}),c&&u.addEventListener("resize",r.update,mo),function(){s&&l.forEach(function(d){d.removeEventListener("scroll",r.update,mo)}),c&&u.removeEventListener("resize",r.update,mo)}}const AP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:EP,data:{}};var PP={left:"right",right:"left",bottom:"top",top:"bottom"};function ko(e){return e.replace(/left|right|bottom|top/g,function(t){return PP[t]})}var RP={start:"end",end:"start"};function Ff(e){return e.replace(/start|end/g,function(t){return RP[t]})}function eu(e){var t=pt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function tu(e){return Mr(kn(e)).left+eu(e).scrollLeft}function IP(e,t){var r=pt(e),i=kn(e),o=r.visualViewport,s=i.clientWidth,a=i.clientHeight,c=0,u=0;if(o){s=o.width,a=o.height;var l=ny();(l||!l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:c+tu(e),y:u}}function MP(e){var t,r=kn(e),i=eu(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Dn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Dn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-i.scrollLeft+tu(e),u=-i.scrollTop;return on(o||r).direction==="rtl"&&(c+=Dn(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:c,y:u}}function nu(e){var t=on(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}function ay(e){return["html","body","#document"].indexOf(Gt(e))>=0?e.ownerDocument.body:St(e)&&nu(e)?e:ay(ea(e))}function ri(e,t){var r;t===void 0&&(t=[]);var i=ay(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=pt(i),a=o?[s].concat(s.visualViewport||[],nu(i)?i:[]):i,c=t.concat(a);return o?c:c.concat(ri(ea(a)))}function wc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $P(e,t){var r=Mr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function zf(e,t,r){return t===ey?wc(IP(e,r)):Fn(t)?$P(t,r):wc(MP(kn(e)))}function _P(e){var t=ri(ea(e)),r=["absolute","fixed"].indexOf(on(e).position)>=0,i=r&&St(e)?Hi(e):e;return Fn(i)?t.filter(function(o){return Fn(o)&&ry(o,i)&&Gt(o)!=="body"}):[]}function DP(e,t,r,i){var o=t==="clippingParents"?_P(e):[].concat(t),s=[].concat(o,[r]),a=s[0],c=s.reduce(function(u,l){var d=zf(e,l,i);return u.top=Dn(d.top,u.top),u.right=Uo(d.right,u.right),u.bottom=Uo(d.bottom,u.bottom),u.left=Dn(d.left,u.left),u},zf(e,a,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function cy(e){var t=e.reference,r=e.element,i=e.placement,o=i?Ht(i):null,s=i?$r(i):null,a=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(o){case nt:u={x:a,y:t.y-r.height};break;case wt:u={x:a,y:t.y+t.height};break;case Et:u={x:t.x+t.width,y:c};break;case rt:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var l=o?Jl(o):null;if(l!=null){var d=l==="y"?"height":"width";switch(s){case Rr:u[l]=u[l]-(t[d]/2-r[d]/2);break;case xi:u[l]=u[l]+(t[d]/2-r[d]/2);break}}return u}function vi(e,t){t===void 0&&(t={});var r=t,i=r.placement,o=i===void 0?e.placement:i,s=r.strategy,a=s===void 0?e.strategy:s,c=r.boundary,u=c===void 0?tP:c,l=r.rootBoundary,d=l===void 0?ey:l,f=r.elementContext,p=f===void 0?Xr:f,h=r.altBoundary,g=h===void 0?!1:h,m=r.padding,y=m===void 0?0:m,b=oy(typeof y!="number"?y:sy(y,Bi)),O=p===Xr?nP:Xr,S=e.rects.popper,v=e.elements[g?O:p],T=DP(Fn(v)?v:v.contextElement||kn(e.elements.popper),u,d,a),k=Mr(e.elements.reference),w=cy({reference:k,element:S,placement:o}),M=wc(Object.assign({},S,w)),I=p===Xr?M:k,_={top:T.top-I.top+b.top,bottom:I.bottom-T.bottom+b.bottom,left:T.left-I.left+b.left,right:I.right-T.right+b.right},$=e.modifiersData.offset;if(p===Xr&&$){var x=$[o];Object.keys(_).forEach(function(A){var R=[Et,wt].indexOf(A)>=0?1:-1,N=[nt,wt].indexOf(A)>=0?"y":"x";_[A]+=x[N]*R})}return _}function LP(e,t){t===void 0&&(t={});var r=t,i=r.placement,o=r.boundary,s=r.rootBoundary,a=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?ty:u,d=$r(i),f=d?c?Nf:Nf.filter(function(g){return $r(g)===d}):Bi,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,m){return g[m]=vi(e,{placement:m,boundary:o,rootBoundary:s,padding:a})[Ht(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function NP(e){if(Ht(e)===Kl)return[];var t=ko(e);return[Ff(e),t,Ff(t)]}function jP(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,a=r.altAxis,c=a===void 0?!0:a,u=r.fallbackPlacements,l=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,m=r.allowedAutoPlacements,y=t.options.placement,b=Ht(y),O=b===y,S=u||(O||!g?[ko(y)]:NP(y)),v=[y].concat(S).reduce(function(W,K){return W.concat(Ht(K)===Kl?LP(t,{placement:K,boundary:d,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:m}):K)},[]),T=t.rects.reference,k=t.rects.popper,w=new Map,M=!0,I=v[0],_=0;_<v.length;_++){var $=v[_],x=Ht($),A=$r($)===Rr,R=[nt,wt].indexOf(x)>=0,N=R?"width":"height",q=vi(t,{placement:$,boundary:d,rootBoundary:f,altBoundary:p,padding:l}),F=R?A?Et:rt:A?wt:nt;T[N]>k[N]&&(F=ko(F));var G=ko(F),V=[];if(s&&V.push(q[x]<=0),c&&V.push(q[F]<=0,q[G]<=0),V.every(function(W){return W})){I=$,M=!1;break}w.set($,V)}if(M)for(var L=g?3:1,B=function(K){var Z=v.find(function(J){var ee=w.get(J);if(ee)return ee.slice(0,K).every(function(z){return z})});if(Z)return I=Z,"break"},Y=L;Y>0;Y--){var Q=B(Y);if(Q==="break")break}t.placement!==I&&(t.modifiersData[i]._skip=!0,t.placement=I,t.reset=!0)}}const qP={name:"flip",enabled:!0,phase:"main",fn:jP,requiresIfExists:["offset"],data:{_skip:!1}};function Bf(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Hf(e){return[nt,Et,wt,rt].some(function(t){return e[t]>=0})}function FP(e){var t=e.state,r=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=vi(t,{elementContext:"reference"}),c=vi(t,{altBoundary:!0}),u=Bf(a,i),l=Bf(c,o,s),d=Hf(u),f=Hf(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const zP={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FP};function BP(e,t,r){var i=Ht(e),o=[rt,nt].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=s[0],c=s[1];return a=a||0,c=(c||0)*o,[rt,Et].indexOf(i)>=0?{x:c,y:a}:{x:a,y:c}}function HP(e){var t=e.state,r=e.options,i=e.name,o=r.offset,s=o===void 0?[0,0]:o,a=ty.reduce(function(d,f){return d[f]=BP(f,t.rects,s),d},{}),c=a[t.placement],u=c.x,l=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}const VP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HP};function GP(e){var t=e.state,r=e.name;t.modifiersData[r]=cy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const UP={name:"popperOffsets",enabled:!0,phase:"read",fn:GP,data:{}};function YP(e){return e==="x"?"y":"x"}function WP(e){var t=e.state,r=e.options,i=e.name,o=r.mainAxis,s=o===void 0?!0:o,a=r.altAxis,c=a===void 0?!1:a,u=r.boundary,l=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,g=r.tetherOffset,m=g===void 0?0:g,y=vi(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:d}),b=Ht(t.placement),O=$r(t.placement),S=!O,v=Jl(b),T=YP(v),k=t.modifiersData.popperOffsets,w=t.rects.reference,M=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,_=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(k){if(s){var A,R=v==="y"?nt:rt,N=v==="y"?wt:Et,q=v==="y"?"height":"width",F=k[v],G=F+y[R],V=F-y[N],L=h?-M[q]/2:0,B=O===Rr?w[q]:M[q],Y=O===Rr?-M[q]:-w[q],Q=t.elements.arrow,W=h&&Q?Ql(Q):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iy(),Z=K[R],J=K[N],ee=ni(0,w[q],W[q]),z=S?w[q]/2-L-ee-Z-_.mainAxis:B-ee-Z-_.mainAxis,H=S?-w[q]/2+L+ee+J+_.mainAxis:Y+ee+J+_.mainAxis,X=t.elements.arrow&&Hi(t.elements.arrow),D=X?v==="y"?X.clientTop||0:X.clientLeft||0:0,se=(A=$?.[v])!=null?A:0,oe=F+z-se-D,$e=F+H-se,qe=ni(h?Uo(G,oe):G,F,h?Dn(V,$e):V);k[v]=qe,x[v]=qe-F}if(c){var We,Dt=v==="x"?nt:rt,ya=v==="x"?wt:Et,Lt=k[T],Qn=T==="y"?"height":"width",ne=Lt+y[Dt],bu=Lt-y[ya],ba=[nt,rt].indexOf(b)!==-1,xu=(We=$?.[T])!=null?We:0,vu=ba?ne:Lt-w[Qn]-M[Qn]-xu+_.altAxis,Ou=ba?Lt+w[Qn]+M[Qn]-xu-_.altAxis:bu,Tu=h&&ba?bP(vu,Lt,Ou):ni(h?vu:ne,Lt,h?Ou:bu);k[T]=Tu,x[T]=Tu-Lt}t.modifiersData[i]=x}}const XP={name:"preventOverflow",enabled:!0,phase:"main",fn:WP,requiresIfExists:["offset"]};function KP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ZP(e){return e===pt(e)||!St(e)?eu(e):KP(e)}function QP(e){var t=e.getBoundingClientRect(),r=Ir(t.width)/e.offsetWidth||1,i=Ir(t.height)/e.offsetHeight||1;return r!==1||i!==1}function JP(e,t,r){r===void 0&&(r=!1);var i=St(t),o=St(t)&&QP(t),s=kn(t),a=Mr(e,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&((Gt(t)!=="body"||nu(s))&&(c=ZP(t)),St(t)?(u=Mr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=tu(s))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function eR(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&o(u)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),i}function tR(e){var t=eR(e);return fP.reduce(function(r,i){return r.concat(t.filter(function(o){return o.phase===i}))},[])}function nR(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function rR(e){var t=e.reduce(function(r,i){var o=r[i.name];return r[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Vf={placement:"bottom",modifiers:[],strategy:"absolute"};function Gf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function iR(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?Vf:o;return function(c,u,l){l===void 0&&(l=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vf,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var O=typeof b=="function"?b(d.options):b;m(),d.options=Object.assign({},s,d.options,O),d.scrollParents={reference:Fn(c)?ri(c):c.contextElement?ri(c.contextElement):[],popper:ri(u)};var S=tR(rR([].concat(i,d.options.modifiers)));return d.orderedModifiers=S.filter(function(v){return v.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,O=b.reference,S=b.popper;if(Gf(O,S)){d.rects={reference:JP(O,Hi(S),d.options.strategy==="fixed"),popper:Ql(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(_){return d.modifiersData[_.name]=Object.assign({},_.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var T=d.orderedModifiers[v],k=T.fn,w=T.options,M=w===void 0?{}:w,I=T.name;typeof k=="function"&&(d=k({state:d,options:M,name:I,instance:h})||d)}}}},update:nR(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){m(),p=!0}};if(!Gf(c,u))return h;h.setOptions(l).then(function(y){!p&&l.onFirstUpdate&&l.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var b=y.name,O=y.options,S=O===void 0?{}:O,v=y.effect;if(typeof v=="function"){var T=v({state:d,name:b,instance:h,options:S}),k=function(){};f.push(T||k)}})}function m(){f.forEach(function(y){return y()}),f=[]}return h}}var oR=[AP,UP,wP,mP,VP,qP,XP,TP,zP],sR=iR({defaultModifiers:oR});function Uf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aR(e){return parseInt(P.version,10)>=19?e?.props?.ref||null:e?.ref||null}function cR(e){return typeof e=="function"?e():e}const Yo=P.forwardRef(function(t,r){const{children:i,container:o,disablePortal:s=!1}=t,[a,c]=P.useState(null),u=mn(P.isValidElement(i)?aR(i):null,r);if(Le(()=>{s||c(cR(o)||document.body)},[o,s]),Le(()=>{if(a&&!s)return Uf(r,a),()=>{Uf(r,null)}},[r,a,s]),s){if(P.isValidElement(i)){const l={ref:u};return P.cloneElement(i,l)}return i}return a&&Hy.createPortal(i,a)});process.env.NODE_ENV!=="production"&&(Yo.propTypes={children:n.node,container:n.oneOfType([jn,n.func]),disablePortal:n.bool});process.env.NODE_ENV!=="production"&&(Yo.propTypes=Bp(Yo.propTypes));function lR(e){return Te("MuiPopper",e)}Oe("MuiPopper",["root"]);function uR(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 Wo(e){return typeof e=="function"?e():e}function ta(e){return e.nodeType!==void 0}function dR(e){return!ta(e)}const fR=e=>{const{classes:t}=e;return ke({root:["root"]},lR,t)},pR={},hR=P.forwardRef(function(t,r){const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:c,open:u,placement:l,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:g,ownerState:m,...y}=t,b=P.useRef(null),O=mn(b,r),S=P.useRef(null),v=mn(S,f),T=P.useRef(v);Le(()=>{T.current=v},[v]),P.useImperativeHandle(f,()=>S.current,[]);const k=uR(l,s),[w,M]=P.useState(k),[I,_]=P.useState(Wo(i));P.useEffect(()=>{S.current&&S.current.forceUpdate()}),P.useEffect(()=>{i&&_(Wo(i))},[i]),Le(()=>{if(!I||!u)return;const N=G=>{M(G.placement)};if(process.env.NODE_ENV!=="production"&&I&&ta(I)&&I.nodeType===1){const G=I.getBoundingClientRect();process.env.NODE_ENV!=="test"&&G.top===0&&G.left===0&&G.right===0&&G.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
61
|
+
`))}let q=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{N(G)}}];c!=null&&(q=q.concat(c)),d&&d.modifiers!=null&&(q=q.concat(d.modifiers));const F=sR(I,b.current,{placement:k,...d,modifiers:q});return T.current(F),()=>{F.destroy(),T.current(null)}},[I,a,c,u,d,k]);const $={placement:w};g!==null&&($.TransitionProps=g);const x=fR(t),A=h.root??"div",R=$t({elementType:A,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:x.root});return C.jsx(A,{...R,children:typeof o=="function"?o($):o})}),ly=P.forwardRef(function(t,r){const{anchorEl:i,children:o,container:s,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:l,open:d,placement:f="bottom",popperOptions:p=pR,popperRef:h,style:g,transition:m=!1,slotProps:y={},slots:b={},...O}=t,[S,v]=P.useState(!0),T=()=>{v(!1)},k=()=>{v(!0)};if(!u&&!d&&(!m||S))return null;let w;if(s)w=s;else if(i){const _=Wo(i);w=_&&ta(_)?ic(_).body:ic(null).body}const M=!d&&u&&(!m||S)?"none":void 0,I=m?{in:d,onEnter:T,onExited:k}:void 0;return C.jsx(Yo,{disablePortal:c,container:w,children:C.jsx(hR,{anchorEl:i,direction:a,disablePortal:c,modifiers:l,ref:r,open:m?!S:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:b,...O,style:{position:"fixed",top:0,left:0,display:M,...g},TransitionProps:I,children:o})})});process.env.NODE_ENV!=="production"&&(ly.propTypes={anchorEl:Js(n.oneOfType([jn,n.object,n.func]),e=>{if(e.open){const t=Wo(e.anchorEl);if(t&&ta(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
62
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||dR(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
63
|
+
`))}return null}),children:n.oneOfType([n.node,n.func]),container:n.oneOfType([jn,n.func]),direction:n.oneOf(["ltr","rtl"]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:n.oneOf(["absolute","fixed"])}),popperRef:Xl,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),transition:n.bool});const mR=re(ly,{name:"MuiPopper",slot:"Root"})({}),uy=P.forwardRef(function(t,r){const i=x0(),o=Zn({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:u,container:l,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:y,transition:b,slots:O,slotProps:S,...v}=o,T=O?.root??c?.Root,k={anchorEl:s,container:l,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:y,transition:b,...v};return C.jsx(mR,{as:a,direction:i?"rtl":"ltr",slots:{root:T},slotProps:S??u,...k,ref:r})});process.env.NODE_ENV!=="production"&&(uy.propTypes={anchorEl:n.oneOfType([jn,n.object,n.func]),children:n.oneOfType([n.node,n.func]),component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.oneOfType([n.func,n.object])}),container:n.oneOfType([jn,n.func]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:n.oneOf(["absolute","fixed"])}),popperRef:Xl,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transition:n.bool});function Xo(e){const{children:t,defer:r=!1,fallback:i=null}=e,[o,s]=P.useState(!1);return Le(()=>{r||s(!0)},[r]),P.useEffect(()=>{r&&s(!0)},[r]),o?t:i}process.env.NODE_ENV!=="production"&&(Xo.propTypes={children:n.node,defer:n.bool,fallback:n.node});process.env.NODE_ENV!=="production"&&(Xo.propTypes=Bp(Xo.propTypes));function Yf(e){let t,r;const i=()=>{r=null,e(...t)};function o(...s){t=s,r||(r=requestAnimationFrame(i))}return o.clear=()=>{r&&(cancelAnimationFrame(r),r=null)},o}function gR(){const e=ye(),t=e.use(bm),r=e.use(Ut);return t!==void 0?"polar":r!==void 0?"cartesian":"none"}const yR=["trigger","position","anchor","classes","children"],Wf=()=>!1,bR=()=>null;function xR(e,t,r){return r?Wf:e==="item"?A1:t==="polar"?QA:t==="cartesian"?e1:Wf}const vR=re(uy,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function dy(e){const t=Ke({props:e,name:"MuiChartsTooltipContainer"}),{trigger:r="axis",position:i,anchor:o="pointer",classes:s,children:a}=t,c=te(t,yR),u=Fl(),l=Qs(s),d=YA(),f=KA(),p=P.useRef(null),h=bs(()=>({x:0,y:0})),g=gR(),m=ye(),y=m.use(p1),b=m.use(xR(r,g,y)),S=m.use(_i)==="keyboard"?"node":o,v=m.use(r==="item"&&S==="node"?R1:bR,i);P.useEffect(()=>{const I=u.current;if(I===null)return()=>{};if(v!==null){const x=Yf(()=>{h.current={x:I.getBoundingClientRect().left+(v?.x??0),y:I.getBoundingClientRect().top+(v?.y??0)},p.current?.update()});return x(),()=>x.clear()}const _=Yf((x,A)=>{h.current={x,y:A},p.current?.update()}),$=x=>{_(x.clientX,x.clientY)};return I.addEventListener("pointerdown",$),I.addEventListener("pointermove",$),I.addEventListener("pointerenter",$),()=>{I.removeEventListener("pointerdown",$),I.removeEventListener("pointermove",$),I.removeEventListener("pointerenter",$),_.clear()}},[u,h,v]);const T=P.useMemo(()=>({getBoundingClientRect:()=>({x:h.current.x,y:h.current.y,top:h.current.y,left:h.current.x,right:h.current.x,bottom:h.current.y,width:0,height:0,toJSON:()=>""})}),[h]),k=d?.pointerType==="mouse"||f,w=d?.pointerType==="touch"||!f,M=P.useMemo(()=>[{name:"offset",options:{offset:()=>w?[0,64]:[0,8]}},...k?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[k,w]);return r==="none"?null:C.jsx(Xo,{children:b&&C.jsx(vR,E({},c,{className:l?.root,open:b,placement:c.placement??i??(k?"right-start":"top"),popperRef:p,anchorEl:T,modifiers:M,children:a}))})}process.env.NODE_ENV!=="production"&&(dy.propTypes={anchor:n.oneOf(["node","pointer"]),anchorEl:n.oneOfType([jn,n.object,n.func]),children:n.node,classes:n.object,component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.oneOfType([n.func,n.object])}),container:n.oneOfType([(e,t)=>e[t]==null?new Error(`Prop '${t}' is required but wasn't specified`):typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null,n.func]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:n.oneOf(["absolute","fixed"])}),popperRef:n.oneOfType([n.func,n.shape({current:n.shape({destroy:n.func.isRequired,forceUpdate:n.func.isRequired,setOptions:n.func.isRequired,state:n.shape({attributes:n.object.isRequired,elements:n.object.isRequired,modifiersData:n.object.isRequired,options:n.object.isRequired,orderedModifiers:n.arrayOf(n.object).isRequired,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]).isRequired,rects:n.object.isRequired,reset:n.bool.isRequired,scrollParents:n.object.isRequired,strategy:n.oneOf(["absolute","fixed"]).isRequired,styles:n.object.isRequired}).isRequired,update:n.func.isRequired})})]),position:n.oneOf(["bottom","left","right","top"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transition:n.bool,trigger:n.oneOf(["axis","item","none"])});function na(e){const{classes:t,trigger:r="axis"}=e,i=Qs(t);return C.jsx(dy,E({},e,{classes:t,children:r==="axis"?C.jsx(Jg,{classes:i}):C.jsx(Ug,{classes:i})}))}process.env.NODE_ENV!=="production"&&(na.propTypes={anchor:n.oneOf(["node","pointer"]),anchorEl:n.oneOfType([jn,n.object,n.func]),classes:n.object,component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.oneOfType([n.func,n.object])}),container:n.oneOfType([(e,t)=>e[t]==null?new Error(`Prop '${t}' is required but wasn't specified`):typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null,n.func]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:n.oneOf(["absolute","fixed"])}),popperRef:n.oneOfType([n.func,n.shape({current:n.shape({destroy:n.func.isRequired,forceUpdate:n.func.isRequired,setOptions:n.func.isRequired,state:n.shape({attributes:n.object.isRequired,elements:n.object.isRequired,modifiersData:n.object.isRequired,options:n.object.isRequired,orderedModifiers:n.arrayOf(n.object).isRequired,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]).isRequired,rects:n.object.isRequired,reset:n.bool.isRequired,scrollParents:n.object.isRequired,strategy:n.oneOf(["absolute","fixed"]).isRequired,styles:n.object.isRequired}).isRequired,update:n.func.isRequired})})]),position:n.oneOf(["bottom","left","right","top"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transition:n.bool,trigger:n.oneOf(["axis","item","none"])});const OR=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function TR(e){return Te("MuiChartsLegend",e)}const kR=e=>{const{classes:t,direction:r}=e;return ke({root:["root",r],item:["item"],mark:["mark"],label:["label"],series:["series"]},TR,t)},Xf=Oe("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]),SR=["slots","slotProps"],CR=["ownerState"],fy=(e,t,r,i)=>{function o(s,a){const c=Ke({props:s,name:e}),u=typeof r.defaultProps=="function"?r.defaultProps(c):r.defaultProps??{},l=Ln(u,c),d=l,{slots:f,slotProps:p}=d,h=te(d,SR),g=Xe(),m=r.classesResolver?.(l,g),y=f?.[t]??i,b=r.propagateSlots&&!f?.[t],O=$t({elementType:y,externalSlotProps:p?.[t],additionalProps:E({},h,{classes:m},b&&{slots:f,slotProps:p}),ownerState:{}}),S=te(O,CR),v=E({},S);for(const T of r.omitProps??[])delete v[T];return process.env.NODE_ENV!=="production"&&(y.displayName=`${e}.slots.${t}`),C.jsx(y,E({},v,{ref:a}))}return P.forwardRef(o)};process.env.NODE_ENV!=="production"&&(fy.displayName="consumeSlots");function wR(e){return Te("MuiChartsLabel",e)}Oe("MuiChartsLabel",["root"]);const ER=e=>ke({root:["root"]},wR,e.classes),AR=["children","className","classes"],py=Wl("MuiChartsLabel",{classesResolver:ER},function(t,r){const{children:i,className:o,classes:s}=t,a=te(t,AR);return C.jsx("span",E({className:ge(s?.root,o),ref:r},a,{children:i}))});process.env.NODE_ENV!=="production"&&(py.propTypes={children:n.node,classes:n.object});const PR=["direction","onItemClick","className","classes"],RR=re("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:e,theme:t})=>E({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:e.direction==="vertical"?"column":"row",alignItems:e.direction==="vertical"?void 0:"center",flexShrink:0,gap:t.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:t.spacing(1),marginInline:t.spacing(1),flexWrap:"wrap",li:{display:e.direction==="horizontal"?"inline-flex":void 0},[`button.${Xf.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${Xf.series}`]:{display:e.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:t.spacing(1)},gridArea:"legend"})),Vi=fy("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:kR},P.forwardRef(function(t,r){const i=Xw(),{onItemClick:o,className:s,classes:a}=t,c=te(t,PR);if(i.items.length===0)return null;const u=o?"button":"div";return C.jsx(RR,E({className:ge(a?.root,s),ref:r},c,{ownerState:t,children:i.items.map((l,d)=>C.jsx("li",{className:a?.item,"data-series":l.id,children:C.jsxs(u,{className:a?.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?f=>o(f,OR(l),d):void 0,children:[C.jsx(bi,{className:a?.mark,color:l.color,type:l.markType}),C.jsx(py,{className:a?.label,children:l.label})]})},l.id))}))}));process.env.NODE_ENV!=="production"&&(Vi.displayName="ChartsLegend");process.env.NODE_ENV!=="production"&&(Vi.propTypes={classes:n.object,className:n.string,direction:n.oneOf(["horizontal","vertical"]),onItemClick:n.func,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function IR(e){return Te("MuiChartsAxisHighlight",e)}Oe("MuiChartsAxisHighlight",["root"]);const Ko=re("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:E({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:E({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function MR(e){const{type:t,classes:r}=e,{left:i,width:o}=ht(),s=ye(),a=s.use(m1),c=s.use(Qe);return a.length===0?null:a.map(({axisId:u,value:l})=>{const f=c.axis[u].scale,p=Fr(f),h=t==="band"&&l!==null&&Ne(f);return process.env.NODE_ENV!=="production"&&h&&f(l)===void 0&&console.error(["MUI X Charts: The position value provided for the axis is not valid for the current scale.","This probably means something is wrong with the data passed to the chart.","The ChartsAxisHighlight component will not be displayed."].join(`
|
|
64
|
+
`)),C.jsxs(P.Fragment,{children:[h&&f(l)!==void 0&&C.jsx(Ko,{d:`M ${i} ${f(l)-(f.step()-f.bandwidth())/2} l 0 ${f.step()} l ${o} 0 l 0 ${-f.step()} Z`,className:r.root,ownerState:{axisHighlight:"band"}}),t==="line"&&l!==null&&C.jsx(Ko,{d:`M ${i} ${p(l)} L ${i+o} ${p(l)}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${u}-${l}`)})}function $R(e){const{type:t,classes:r}=e,{top:i,height:o}=ht(),s=ye(),a=s.use(h1),c=s.use(Ze);return a.length===0?null:a.map(({axisId:u,value:l})=>{const f=c.axis[u].scale,p=Fr(f),h=t==="band"&&l!==null&&Ne(f);return process.env.NODE_ENV!=="production"&&h&&f(l)===void 0&&console.error(["MUI X Charts: The position value provided for the axis is not valid for the current scale.","This probably means something is wrong with the data passed to the chart.","The ChartsAxisHighlight component will not be displayed."].join(`
|
|
65
|
+
`)),C.jsxs(P.Fragment,{children:[h&&f(l)!==void 0&&C.jsx(Ko,{d:`M ${f(l)-(f.step()-f.bandwidth())/2} ${i} l ${f.step()} 0 l 0 ${o} l ${-f.step()} 0 Z`,className:r.root,ownerState:{axisHighlight:"band"}}),t==="line"&&l!==null&&C.jsx(Ko,{d:`M ${p(l)} ${i} L ${p(l)} ${i+o}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${u}-${l}`)})}const _R=()=>ke({root:["root"]},IR);function ru(e){const{x:t,y:r}=e,i=_R();return C.jsxs(P.Fragment,{children:[t&&t!=="none"&&C.jsx($R,{type:t,classes:i}),r&&r!=="none"&&C.jsx(MR,{type:r,classes:i})]})}process.env.NODE_ENV!=="production"&&(ru.propTypes={x:n.oneOf(["band","line","none"]),y:n.oneOf(["band","line","none"])});function iu(e){const{id:t,offset:r}=e,{left:i,top:o,width:s,height:a}=ht(),c=E({top:0,right:0,bottom:0,left:0},r);return C.jsx("clipPath",{id:t,children:C.jsx("rect",{x:i-c.left,y:o-c.top,width:s+c.left+c.right,height:a+c.top+c.bottom})})}process.env.NODE_ENV!=="production"&&(iu.propTypes={id:n.string.isRequired,offset:n.shape({bottom:n.number,left:n.number,right:n.number,top:n.number})});const DR=["x","y","id","classes","color","shape"];function LR(e){return Te("MuiHighlightElement",e)}Oe("MuiHighlightElement",["root"]);const NR=e=>{const{classes:t,id:r}=e,i={root:["root",`series-${r}`]};return ke(i,LR,t)};function hy(e){const{x:t,y:r,color:i,shape:o}=e,s=te(e,DR),a=NR(e),c=o==="circle"?"circle":"path",u=o==="circle"?{cx:0,cy:0,r:s.r===void 0?5:s.r}:{d:_m($m[vg(o)])()},l=Qp>18?{transformOrigin:`${t} ${r}`}:{"transform-origin":`${t} ${r}`};return C.jsx(c,E({pointerEvents:"none",className:a.root,transform:`translate(${t} ${r})`,fill:i},l,u,s))}process.env.NODE_ENV!=="production"&&(hy.propTypes={classes:n.object,id:n.oneOfType([n.number,n.string]).isRequired,shape:n.oneOf(["circle","cross","diamond","square","star","triangle","wye"]).isRequired});const jR=["slots","slotProps"];function my(e){const{slots:t,slotProps:r}=e,i=te(e,jR),o=ji(),{xAxis:s,xAxisIds:a}=ze(),{yAxis:c,yAxisIds:u}=Be(),{instance:l}=at(),f=ye().use(pm);if(f.length===0||o===void 0)return null;const{series:p,stackingGroups:h}=o,g=a[0],m=u[0],y=t?.lineHighlight??hy;return C.jsx("g",E({},i,{children:f.flatMap(({dataIndex:b,axisId:O})=>h.flatMap(({ids:S})=>S.flatMap(v=>{const{xAxisId:T=g,yAxisId:k=m,stackedData:w,data:M,disableHighlight:I,shape:_="circle"}=p[v];if(I||M[b]==null||O!==T)return null;const $=Fr(s[T].scale),x=c[k].scale,A=s[T].data;if(A===void 0)throw new Error(`MUI X Charts: ${T===bn?"The first `xAxis`":`The x-axis with id "${T}"`} should have data property to be able to display a line plot.`);const R=$(A[b]),N=x(w[b][1]);if(!l.isPointInside(R,N))return null;const q=Ll(p[v],s[T],c[k]);return C.jsx(y,E({id:v,color:q(b),x:R,y:N,shape:_},r?.lineHighlight),`${v}`)})))}))}process.env.NODE_ENV!=="production"&&(my.propTypes={slotProps:n.object,slots:n.object});function qR(e){return Te("MuiChartsGrid",e)}const Kf=Oe("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),FR=re("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Kf.verticalLine}`]:t.verticalLine},{[`&.${Kf.horizontalLine}`]:t.horizontalLine},t.root]})({}),gy=re("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function zR(e){const{instance:t}=at(),{axis:r,start:i,end:o,classes:s}=e,{scale:a,tickNumber:c,tickInterval:u,tickSpacing:l}=r,d=Ks({scale:a,tickNumber:c,tickInterval:u,tickSpacing:l,direction:"x",ordinalTimeTicks:"ordinalTimeTicks"in r?r.ordinalTimeTicks:void 0});return C.jsx(P.Fragment,{children:d.map(({value:f,offset:p})=>t.isXInside(p)?C.jsx(gy,{y1:i,y2:o,x1:p,x2:p,className:s.verticalLine},`vertical-${f?.getTime?.()??f}`):null)})}function BR(e){const{instance:t}=at(),{axis:r,start:i,end:o,classes:s}=e,{scale:a,tickNumber:c,tickInterval:u,tickSpacing:l}=r,d=Ks({scale:a,tickNumber:c,tickInterval:u,tickSpacing:l,direction:"y",ordinalTimeTicks:"ordinalTimeTicks"in r?r.ordinalTimeTicks:void 0});return C.jsx(P.Fragment,{children:d.map(({value:f,offset:p})=>t.isYInside(p)?C.jsx(gy,{y1:p,y2:p,x1:i,x2:o,className:s.horizontalLine},`horizontal-${f?.getTime?.()??f}`):null)})}const HR=["vertical","horizontal"],VR=({classes:e})=>ke({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},qR,e);function ou(e){const t=Ke({props:e,name:"MuiChartsGrid"}),r=ht(),{vertical:i,horizontal:o}=t,s=te(t,HR),{xAxis:a,xAxisIds:c}=ze(),{yAxis:u,yAxisIds:l}=Be(),d=VR(t),f=u[l[0]],p=a[c[0]];return C.jsxs(FR,E({},s,{className:d.root,children:[i&&C.jsx(zR,{axis:p,start:r.top,end:r.height+r.top,classes:d}),o&&C.jsx(BR,{axis:f,start:r.left,end:r.width+r.left,classes:d})]}))}process.env.NODE_ENV!=="production"&&(ou.propTypes={classes:n.object,horizontal:n.bool,vertical:n.bool});const GR=["message"],UR=re("text")(({theme:e})=>E({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function YR(e){const{message:t}=e,r=te(e,GR),{top:i,left:o,height:s,width:a}=ht(),{localeText:c}=cg();return C.jsx(UR,E({x:o+a/2,y:i+s/2},r,{children:t??c.loading}))}const WR=["message"],XR=re("text")(({theme:e})=>E({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function KR(e){const{message:t}=e,r=te(e,WR),{top:i,left:o,height:s,width:a}=ht(),{localeText:c}=cg();return C.jsx(XR,E({x:o+a/2,y:i+s/2},r,{children:t??c.noData}))}function ZR(){const e=Us();return Object.values(e).every(t=>{if(!t)return!0;const{series:r,seriesOrder:i}=t;return i.every(o=>{const s=r[o];return s.type==="sankey"?s.data.links.length===0:s.data.length===0})})}function su(e){const t=ZR();if(e.loading){const r=e.slots?.loadingOverlay??YR;return C.jsx(r,E({},e.slotProps?.loadingOverlay))}if(t){const r=e.slots?.noDataOverlay??KR;return C.jsx(r,E({},e.slotProps?.noDataOverlay))}return null}const QR=[jr,Dr,Wn,Un,Yn,Xn,Nr],JR=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","hideLegend","grid","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","showToolbar","brushConfig"],eI=e=>{const{xAxis:t,yAxis:r,series:i,width:o,height:s,margin:a,colors:c,dataset:u,sx:l,onAreaClick:d,onLineClick:f,onMarkClick:p,axisHighlight:h,disableLineItemHighlight:g,grid:m,children:y,slots:b,slotProps:O,skipAnimation:S,loading:v,highlightedItem:T,onHighlightChange:k,className:w,brushConfig:M}=e,I=te(e,JR),$=`${wi()}-clip-path`,x=P.useMemo(()=>i.map(Z=>E({disableHighlight:!!g,type:"line"},Z)),[g,i]),A=E({},I,{series:x,width:o,height:s,margin:a,colors:c,dataset:u,xAxis:t??[{id:bn,scaleType:"point",data:Array.from({length:Math.max(...i.map(Z=>(Z.data??u??[]).length))},(Z,J)=>J)}],yAxis:r,highlightedItem:T,onHighlightChange:k,disableAxisListener:O?.tooltip?.trigger!=="axis"&&h?.x==="none"&&h?.y==="none",className:w,skipAnimation:S,brushConfig:M,plugins:QR}),R={vertical:m?.vertical,horizontal:m?.horizontal},N={clipPath:`url(#${$})`},q={id:$},F={slots:b,slotProps:O,onItemClick:d},G={slots:b,slotProps:O,onItemClick:f},V={slots:b,slotProps:O,onItemClick:p,skipAnimation:S},L={slots:b,slotProps:O,loading:v},B={slots:b,slotProps:O},Y=E({x:"line"},h),Q={slots:b,slotProps:O},W={slots:b,slotProps:O};return{chartsWrapperProps:{sx:l,legendPosition:e.slotProps?.legend?.position,legendDirection:e.slotProps?.legend?.direction,hideLegend:e.hideLegend??!1},chartContainerProps:A,gridProps:R,clipPathProps:q,clipPathGroupProps:N,areaPlotProps:F,linePlotProps:G,markPlotProps:V,overlayProps:L,chartsAxisProps:B,axisHighlightProps:Y,lineHighlightPlotProps:Q,legendProps:W,children:y}};function tI(e,t,r,i,o,s,a,c,u,l,d=1/0,f=1){const p=r.copy(),h=i.copy();p.range([0,1]),h.range([0,1]);const g=function(w){const M=p(t[w].x),I=h(t[w].y);return M>=o&&M<=s&&I>=a&&I<=c},m=r.range()[1]-r.range()[0],y=i.range()[1]-i.range()[0],b=m*m,O=y*y;function S(k,w){return b*k*k+O*w*w}const v=p(Zf(r,u,k=>t[k]?.x)),T=h(Zf(i,l,k=>t[k]?.y));return e.neighbors(v,T,f,d!=null?d*d:1/0,g,S)}function Zf(e,t,r){if(Ne(e)){const i=e.bandwidth()===0?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step());return r(i)}return e.invert(t)}const ra=({svgRef:e,params:t,store:r,instance:i})=>{const{disableVoronoi:o,voronoiMaxRadius:s,onItemClick:a}=t,{axis:c,axisIds:u}=r.use(Ze),{axis:l,axisIds:d}=r.use(Qe),f=r.use(Zh),{series:p,seriesOrder:h}=r.use(Se)?.scatter??{},g=r.use(f?WS:XS),m=u[0],y=d[0];Le(()=>{r.set("voronoi",{isVoronoiEnabled:!o})},[r,o]),P.useEffect(()=>{if(e.current===null||o)return;const S=e.current;function v(A){const R=hi(S,A);if(!i.isPointInside(R.x,R.y))return"outside-chart";let N;for(const q of h??[]){const F=(p??{})[q],G=g.get(q);if(!G)continue;const V=F.xAxisId??m,L=F.yAxisId??y,B=hf(r.state,V),Y=hf(r.state,L),Q=s==="item"?F.markerSize:s,W=(B?.start??0)/100,K=(B?.end??100)/100,Z=(Y?.start??0)/100,J=(Y?.end??100)/100,ee=c[V].scale,z=l[L].scale,H=tI(G,F.data,ee,z,W,K,Z,J,R.x,R.y,Q)[0];if(H===void 0)continue;const X=F.data[H],D=ee(X.x),se=z(X.y),oe=(D-R.x)**2+(se-R.y)**2;(N===void 0||oe<N.distanceSq)&&(N={dataIndex:H,seriesId:q,distanceSq:oe})}return N===void 0?"no-point-found":{seriesId:N.seriesId,dataIndex:N.dataIndex}}const T=i.addInteractionListener("moveEnd",A=>{A.detail.activeGestures.pan||(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),k=i.addInteractionListener("panEnd",A=>{A.detail.activeGestures.move||(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),w=i.addInteractionListener("quickPressEnd",A=>{!A.detail.activeGestures.move&&!A.detail.activeGestures.pan&&(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),M=A=>{const R=v(A.detail.srcEvent);if(R==="outside-chart"){i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.();return}if(R==="outside-voronoi-max-radius"||R==="no-point-found"){i.removeTooltipItem?.(),i.clearHighlight?.(),i.removeTooltipItem?.();return}const{seriesId:N,dataIndex:q}=R;i.setTooltipItem?.({type:"scatter",seriesId:N,dataIndex:q}),i.setLastUpdateSource?.("pointer"),i.setHighlight?.({seriesId:N,dataIndex:q})},I=i.addInteractionListener("tap",A=>{const R=v(A.detail.srcEvent);if(typeof R!="string"&&a){const{seriesId:N,dataIndex:q}=R;a(A.detail.srcEvent,{type:"scatter",seriesId:N,dataIndex:q})}}),_=i.addInteractionListener("move",M),$=i.addInteractionListener("pan",M),x=i.addInteractionListener("quickPress",M);return()=>{I.cleanup(),_.cleanup(),T.cleanup(),$.cleanup(),k.cleanup(),x.cleanup(),w.cleanup()}},[e,l,c,s,a,o,i,h,p,g,m,y,r]);const b=De(()=>{r.set("voronoi",{isVoronoiEnabled:!0})}),O=De(()=>{r.set("voronoi",{isVoronoiEnabled:!1})});return{instance:{enableVoronoi:b,disableVoronoi:O}}};ra.getDefaultizedParams=({params:e})=>E({},e,{disableVoronoi:e.disableVoronoi??!e.series.some(t=>t.type==="scatter")});ra.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableVoronoi}});ra.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const yy=[jr,Dr,Wn,Un,Yn,Xn,ra,Nr],nI=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","highlightedAxis","onHighlightedAxisChange","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText","slots","slotProps","experimentalFeatures","enableKeyboardNavigation","brushConfig"],au=(e,t)=>{const r=e,{width:i,height:o,margin:s,children:a,series:c,colors:u,dataset:l,desc:d,onAxisClick:f,highlightedAxis:p,onHighlightedAxisChange:h,disableVoronoi:g,voronoiMaxRadius:m,onItemClick:y,disableAxisListener:b,highlightedItem:O,onHighlightChange:S,sx:v,title:T,xAxis:k,yAxis:w,zAxis:M,rotationAxis:I,radiusAxis:_,skipAnimation:$,seriesConfig:x,plugins:A,localeText:R,slots:N,slotProps:q,experimentalFeatures:F,enableKeyboardNavigation:G,brushConfig:V}=r,L=te(r,nI),B=E({title:T,desc:d,sx:v,ref:t},L);return{chartDataProviderProps:{margin:s,series:c,colors:u,dataset:l,disableAxisListener:b,highlightedItem:O,onHighlightChange:S,onAxisClick:f,highlightedAxis:p,onHighlightedAxisChange:h,disableVoronoi:g,voronoiMaxRadius:m,onItemClick:y,xAxis:k,yAxis:w,zAxis:M,rotationAxis:I,radiusAxis:_,skipAnimation:$,width:i,height:o,localeText:R,seriesConfig:x,experimentalFeatures:F,enableKeyboardNavigation:G,brushConfig:V,plugins:A??yy,slots:N,slotProps:q},chartsSurfaceProps:B,children:a}};function rI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function iI(e,t,r,i,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!rI(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${i} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oI=Js(n.elementType,iI);function Qf(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
66
|
+
`))}return!1}class Zo{static create(){return new Zo}static use(){const t=bs(Zo.create).current,[r,i]=P.useState(!1);return t.shouldMount=r,t.setShouldMount=i,P.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=aI(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function sI(){return Zo.use()}function aI(){let e,t;const r=new Promise((i,o)=>{e=i,t=o});return r.resolve=e,r.reject=t,r}function Ec(e,t){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ec(e,t)}function cI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ec(e,t)}const Jf=Re.createContext(null);function lI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cu(e,t){var r=function(s){return t&&Re.isValidElement(s)?t(s):s},i=Object.create(null);return e&&Re.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=r(o)}),i}function uI(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a,c={};for(var u in t){if(i[u])for(a=0;a<i[u].length;a++){var l=i[u][a];c[i[u][a]]=r(l)}c[u]=r(u)}for(a=0;a<o.length;a++)c[o[a]]=r(o[a]);return c}function In(e,t,r){return r[t]!=null?r[t]:e.props[t]}function dI(e,t){return cu(e.children,function(r){return Re.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:In(r,"appear",e),enter:In(r,"enter",e),exit:In(r,"exit",e)})})}function fI(e,t,r){var i=cu(e.children),o=uI(t,i);return Object.keys(o).forEach(function(s){var a=o[s];if(Re.isValidElement(a)){var c=s in t,u=s in i,l=t[s],d=Re.isValidElement(l)&&!l.props.in;u&&(!c||d)?o[s]=Re.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:In(a,"exit",e),enter:In(a,"enter",e)}):!u&&c&&!d?o[s]=Re.cloneElement(a,{in:!1}):u&&c&&Re.isValidElement(l)&&(o[s]=Re.cloneElement(a,{onExited:r.bind(null,a),in:l.props.in,exit:In(a,"exit",e),enter:In(a,"enter",e)}))}}),o}var pI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},hI={component:"div",childFactory:function(t){return t}},lu=(function(e){cI(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var a=s.handleExited.bind(lI(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var a=s.children,c=s.handleExited,u=s.firstRender;return{children:u?dI(o,c):fI(o,a,c),firstRender:!1}},r.handleExited=function(o,s){var a=cu(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(c){var u=E({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,s=o.component,a=o.childFactory,c=te(o,["component","childFactory"]),u=this.state.contextValue,l=pI(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,s===null?Re.createElement(Jf.Provider,{value:u},l):Re.createElement(Jf.Provider,{value:u},Re.createElement(s,c,l))},t})(Re.Component);lu.propTypes=process.env.NODE_ENV!=="production"?{component:n.any,children:n.node,appear:n.bool,enter:n.bool,exit:n.bool,childFactory:n.func}:{};lu.defaultProps=hI;class uu{static create(){return new uu}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function mI(){const e=bs(uu.create).current;return Jp(e.disposeEffect),e}function by(e){const{className:t,classes:r,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:a,in:c,onExited:u,timeout:l}=e,[d,f]=P.useState(!1),p=ge(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),h={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},g=ge(r.child,d&&r.childLeaving,i&&r.childPulsate);return!c&&!d&&f(!0),P.useEffect(()=>{if(!c&&u!=null){const m=setTimeout(u,l);return()=>{clearTimeout(m)}}},[u,c,l]),C.jsx("span",{className:p,style:h,children:C.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(by.propTypes={classes:n.object.isRequired,className:n.string,in:n.bool,onExited:n.func,pulsate:n.bool,rippleSize:n.number,rippleX:n.number,rippleY:n.number,timeout:n.number.isRequired});const yt=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ac=550,gI=80,yI=Ti`
|
|
67
|
+
0% {
|
|
68
|
+
transform: scale(0);
|
|
69
|
+
opacity: 0.1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
100% {
|
|
73
|
+
transform: scale(1);
|
|
74
|
+
opacity: 0.3;
|
|
75
|
+
}
|
|
76
|
+
`,bI=Ti`
|
|
77
|
+
0% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
100% {
|
|
82
|
+
opacity: 0;
|
|
83
|
+
}
|
|
84
|
+
`,xI=Ti`
|
|
85
|
+
0% {
|
|
86
|
+
transform: scale(1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
50% {
|
|
90
|
+
transform: scale(0.92);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
100% {
|
|
94
|
+
transform: scale(1);
|
|
95
|
+
}
|
|
96
|
+
`,vI=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OI=re(by,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
97
|
+
opacity: 0;
|
|
98
|
+
position: absolute;
|
|
99
|
+
|
|
100
|
+
&.${yt.rippleVisible} {
|
|
101
|
+
opacity: 0.3;
|
|
102
|
+
transform: scale(1);
|
|
103
|
+
animation-name: ${yI};
|
|
104
|
+
animation-duration: ${Ac}ms;
|
|
105
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.${yt.ripplePulsate} {
|
|
109
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
& .${yt.child} {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
display: block;
|
|
115
|
+
width: 100%;
|
|
116
|
+
height: 100%;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
background-color: currentColor;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
& .${yt.childLeaving} {
|
|
122
|
+
opacity: 0;
|
|
123
|
+
animation-name: ${bI};
|
|
124
|
+
animation-duration: ${Ac}ms;
|
|
125
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
& .${yt.childPulsate} {
|
|
129
|
+
position: absolute;
|
|
130
|
+
/* @noflip */
|
|
131
|
+
left: 0px;
|
|
132
|
+
top: 0;
|
|
133
|
+
animation-name: ${xI};
|
|
134
|
+
animation-duration: 2500ms;
|
|
135
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
136
|
+
animation-iteration-count: infinite;
|
|
137
|
+
animation-delay: 200ms;
|
|
138
|
+
}
|
|
139
|
+
`,xy=P.forwardRef(function(t,r){const i=Zn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...c}=i,[u,l]=P.useState([]),d=P.useRef(0),f=P.useRef(null);P.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=P.useRef(!1),h=mI(),g=P.useRef(null),m=P.useRef(null),y=P.useCallback(v=>{const{pulsate:T,rippleX:k,rippleY:w,rippleSize:M,cb:I}=v;l(_=>[..._,C.jsx(OI,{classes:{ripple:ge(s.ripple,yt.ripple),rippleVisible:ge(s.rippleVisible,yt.rippleVisible),ripplePulsate:ge(s.ripplePulsate,yt.ripplePulsate),child:ge(s.child,yt.child),childLeaving:ge(s.childLeaving,yt.childLeaving),childPulsate:ge(s.childPulsate,yt.childPulsate)},timeout:Ac,pulsate:T,rippleX:k,rippleY:w,rippleSize:M},d.current)]),d.current+=1,f.current=I},[s]),b=P.useCallback((v={},T={},k=()=>{})=>{const{pulsate:w=!1,center:M=o||T.pulsate,fakeElement:I=!1}=T;if(v?.type==="mousedown"&&p.current){p.current=!1;return}v?.type==="touchstart"&&(p.current=!0);const _=I?null:m.current,$=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,A,R;if(M||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)x=Math.round($.width/2),A=Math.round($.height/2);else{const{clientX:N,clientY:q}=v.touches&&v.touches.length>0?v.touches[0]:v;x=Math.round(N-$.left),A=Math.round(q-$.top)}if(M)R=Math.sqrt((2*$.width**2+$.height**2)/3),R%2===0&&(R+=1);else{const N=Math.max(Math.abs((_?_.clientWidth:0)-x),x)*2+2,q=Math.max(Math.abs((_?_.clientHeight:0)-A),A)*2+2;R=Math.sqrt(N**2+q**2)}v?.touches?g.current===null&&(g.current=()=>{y({pulsate:w,rippleX:x,rippleY:A,rippleSize:R,cb:k})},h.start(gI,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:w,rippleX:x,rippleY:A,rippleSize:R,cb:k})},[o,y,h]),O=P.useCallback(()=>{b({},{pulsate:!0})},[b]),S=P.useCallback((v,T)=>{if(h.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{S(v,T)});return}g.current=null,l(k=>k.length>0?k.slice(1):k),f.current=T},[h]);return P.useImperativeHandle(r,()=>({pulsate:O,start:b,stop:S}),[O,b,S]),C.jsx(vI,{className:ge(yt.root,s.root,a),ref:m,...c,children:C.jsx(lu,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(xy.propTypes={center:n.bool,classes:n.object,className:n.string});function TI(e){return Te("MuiButtonBase",e)}const kI=Oe("MuiButtonBase",["root","disabled","focusVisible"]),SI=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:o}=e,a=ke({root:["root",t&&"disabled",r&&"focusVisible"]},TI,o);return r&&i&&(a.root+=` ${i}`),a},CI=re("button",{name:"MuiButtonBase",slot:"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"},[`&.${kI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),du=P.forwardRef(function(t,r){const i=Zn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:c,component:u="button",disabled:l=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:b,onDragLeave:O,onFocus:S,onFocusVisible:v,onKeyDown:T,onKeyUp:k,onMouseDown:w,onMouseLeave:M,onMouseUp:I,onTouchEnd:_,onTouchMove:$,onTouchStart:x,tabIndex:A=0,TouchRippleProps:R,touchRippleRef:N,type:q,...F}=i,G=P.useRef(null),V=sI(),L=mn(V.ref,N),[B,Y]=P.useState(!1);l&&B&&Y(!1),P.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),G.current.focus()}}),[]);const Q=V.shouldMount&&!d&&!l;P.useEffect(()=>{B&&p&&!d&&V.pulsate()},[d,p,B,V]);const W=Xt(V,"start",w,f),K=Xt(V,"stop",b,f),Z=Xt(V,"stop",O,f),J=Xt(V,"stop",I,f),ee=Xt(V,"stop",ne=>{B&&ne.preventDefault(),M&&M(ne)},f),z=Xt(V,"start",x,f),H=Xt(V,"stop",_,f),X=Xt(V,"stop",$,f),D=Xt(V,"stop",ne=>{Qf(ne.target)||Y(!1),m&&m(ne)},!1),se=De(ne=>{G.current||(G.current=ne.currentTarget),Qf(ne.target)&&(Y(!0),v&&v(ne)),S&&S(ne)}),oe=()=>{const ne=G.current;return u&&u!=="button"&&!(ne.tagName==="A"&&ne.href)},$e=De(ne=>{p&&!ne.repeat&&B&&ne.key===" "&&V.stop(ne,()=>{V.start(ne)}),ne.target===ne.currentTarget&&oe()&&ne.key===" "&&ne.preventDefault(),T&&T(ne),ne.target===ne.currentTarget&&oe()&&ne.key==="Enter"&&!l&&(ne.preventDefault(),y&&y(ne))}),qe=De(ne=>{p&&ne.key===" "&&B&&!ne.defaultPrevented&&V.stop(ne,()=>{V.pulsate(ne)}),k&&k(ne),y&&ne.target===ne.currentTarget&&oe()&&ne.key===" "&&!ne.defaultPrevented&&y(ne)});let We=u;We==="button"&&(F.href||F.to)&&(We=g);const Dt={};if(We==="button"){const ne=!!F.formAction;Dt.type=q===void 0&&!ne?"button":q,Dt.disabled=l}else!F.href&&!F.to&&(Dt.role="button"),l&&(Dt["aria-disabled"]=l);const ya=mn(r,G),Lt={...i,centerRipple:s,component:u,disabled:l,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:A,focusVisible:B},Qn=SI(Lt);return C.jsxs(CI,{as:We,className:ge(Qn.root,c),ownerState:Lt,onBlur:D,onClick:y,onContextMenu:K,onFocus:se,onKeyDown:$e,onKeyUp:qe,onMouseDown:W,onMouseLeave:ee,onMouseUp:J,onDragLeave:Z,onTouchEnd:H,onTouchMove:X,onTouchStart:z,ref:ya,tabIndex:l?-1:A,type:q,...Dt,...F,children:[a,Q?C.jsx(xy,{ref:L,center:s,...R}):null]})});function Xt(e,t,r,i=!1){return De(o=>(r&&r(o),i||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(du.propTypes={action:Xl,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:oI,disabled:n.bool,disableRipple:n.bool,disableTouchRipple:n.bool,focusRipple:n.bool,focusVisibleClassName:n.string,formAction:n.oneOfType([n.func,n.string]),href:n.any,LinkComponent:n.elementType,onBlur:n.func,onClick:n.func,onContextMenu:n.func,onDragLeave:n.func,onFocus:n.func,onFocusVisible:n.func,onKeyDown:n.func,onKeyUp:n.func,onMouseDown:n.func,onMouseLeave:n.func,onMouseUp:n.func,onTouchEnd:n.func,onTouchMove:n.func,onTouchStart:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,TouchRippleProps:n.object,touchRippleRef:n.oneOfType([n.func,n.shape({current:n.shape({pulsate:n.func.isRequired,start:n.func.isRequired,stop:n.func.isRequired})})]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string])});function wI(e){return Te("MuiCircularProgress",e)}Oe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Rt=44,Pc=Ti`
|
|
140
|
+
0% {
|
|
141
|
+
transform: rotate(0deg);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
100% {
|
|
145
|
+
transform: rotate(360deg);
|
|
146
|
+
}
|
|
147
|
+
`,Rc=Ti`
|
|
148
|
+
0% {
|
|
149
|
+
stroke-dasharray: 1px, 200px;
|
|
150
|
+
stroke-dashoffset: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
50% {
|
|
154
|
+
stroke-dasharray: 100px, 200px;
|
|
155
|
+
stroke-dashoffset: -15px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
100% {
|
|
159
|
+
stroke-dasharray: 1px, 200px;
|
|
160
|
+
stroke-dashoffset: -126px;
|
|
161
|
+
}
|
|
162
|
+
`,EI=typeof Pc!="string"?qc`
|
|
163
|
+
animation: ${Pc} 1.4s linear infinite;
|
|
164
|
+
`:null,AI=typeof Rc!="string"?qc`
|
|
165
|
+
animation: ${Rc} 1.4s ease-in-out infinite;
|
|
166
|
+
`:null,PI=e=>{const{classes:t,variant:r,color:i,disableShrink:o}=e,s={root:["root",r,`color${ve(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ve(r)}`,o&&"circleDisableShrink"]};return ke(s,wI,t)},RI=re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ve(r.color)}`]]}})(qn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:EI||{animation:`${Pc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),II=re("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),MI=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ve(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(qn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:AI||{animation:`${Rc} 1.4s ease-in-out infinite`}}]}))),$I=re("circle",{name:"MuiCircularProgress",slot:"Track"})(qn(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),fu=P.forwardRef(function(t,r){const i=Zn({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:a=!1,enableTrackSlot:c=!1,size:u=40,style:l,thickness:d=3.6,value:f=0,variant:p="indeterminate",...h}=i,g={...i,color:s,disableShrink:a,size:u,thickness:d,value:f,variant:p,enableTrackSlot:c},m=PI(g),y={},b={},O={};if(p==="determinate"){const S=2*Math.PI*((Rt-d)/2);y.strokeDasharray=S.toFixed(3),O["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*S).toFixed(3)}px`,b.transform="rotate(-90deg)"}return C.jsx(RI,{className:ge(m.root,o),style:{width:u,height:u,...b,...l},ownerState:g,ref:r,role:"progressbar",...O,...h,children:C.jsxs(II,{className:m.svg,ownerState:g,viewBox:`${Rt/2} ${Rt/2} ${Rt} ${Rt}`,children:[c?C.jsx($I,{className:m.track,ownerState:g,cx:Rt,cy:Rt,r:(Rt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,C.jsx(MI,{className:m.circle,style:y,ownerState:g,cx:Rt,cy:Rt,r:(Rt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(fu.propTypes={classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","error","info","success","warning"]),n.string]),disableShrink:Js(n.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:n.bool,size:n.oneOfType([n.number,n.string]),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thickness:n.number,value:n.number,variant:n.oneOf(["determinate","indeterminate"])});function _I(e){return Te("MuiIconButton",e)}const ep=Oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),DI=e=>{const{classes:t,disabled:r,color:i,edge:o,size:s,loading:a}=e,c={root:["root",a&&"loading",r&&"disabled",i!=="default"&&`color${ve(i)}`,o&&`edge${ve(o)}`,`size${ve(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ke(c,_I,t)},LI=re(du,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${ve(r.color)}`],r.edge&&t[`edge${ve(r.edge)}`],t[`size${ve(r.size)}`]]}})(qn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),qn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ep.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${ep.loading}`]:{color:"transparent"}}))),NI=re("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),vy=P.forwardRef(function(t,r){const i=Zn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:a,color:c="default",disabled:u=!1,disableFocusRipple:l=!1,size:d="medium",id:f,loading:p=null,loadingIndicator:h,...g}=i,m=wi(f),y=h??C.jsx(fu,{"aria-labelledby":m,color:"inherit",size:16}),b={...i,edge:o,color:c,disabled:u,disableFocusRipple:l,loading:p,loadingIndicator:y,size:d},O=DI(b);return C.jsxs(LI,{id:p?m:f,className:ge(O.root,a),centerRipple:!0,focusRipple:!l,disabled:u||p,ref:r,...g,ownerState:b,children:[typeof p=="boolean"&&C.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:C.jsx(NI,{className:O.loadingIndicator,ownerState:b,children:p&&y})}),s]})});process.env.NODE_ENV!=="production"&&(vy.propTypes={children:Js(n.node,e=>P.Children.toArray(e.children).some(r=>P.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
167
|
+
`)):null),classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,edge:n.oneOf(["end","start",!1]),id:n.string,loading:n.bool,loadingIndicator:n.node,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function jI(e){return Te("MuiButton",e)}const wn=Oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Oy=P.createContext({});process.env.NODE_ENV!=="production"&&(Oy.displayName="ButtonGroupContext");const Ty=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ty.displayName="ButtonGroupButtonContext");const qI=e=>{const{color:t,disableElevation:r,fullWidth:i,size:o,variant:s,loading:a,loadingPosition:c,classes:u}=e,l={root:["root",a&&"loading",s,`${s}${ve(t)}`,`size${ve(o)}`,`${s}Size${ve(o)}`,`color${ve(t)}`,r&&"disableElevation",i&&"fullWidth",a&&`loadingPosition${ve(c)}`],startIcon:["icon","startIcon",`iconSize${ve(o)}`],endIcon:["icon","endIcon",`iconSize${ve(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=ke(l,jI,u);return{...u,...d}},ky=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],FI=re(du,{shouldForwardProp:e=>Xp(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ve(r.color)}`],t[`size${ve(r.size)}`],t[`${r.variant}Size${ve(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(qn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${wn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${wn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${wn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(yi()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(e.vars||e).palette[i].main,"--variant-outlinedColor":(e.vars||e).palette[i].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[i].main,.5),"--variant-containedColor":(e.vars||e).palette[i].contrastText,"--variant-containedBg":(e.vars||e).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[i].dark,"--variant-textBg":e.alpha((e.vars||e).palette[i].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[i].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[i].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${wn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${wn.loading}`]:{color:"transparent"}}}]}})),zI=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${ve(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ky]})),BI=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${ve(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ky]})),HI=re("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),tp=re("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Sy=P.forwardRef(function(t,r){const i=P.useContext(Oy),o=P.useContext(Ty),s=Ln(i,t),a=Zn({props:s,name:"MuiButton"}),{children:c,color:u="primary",component:l="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:m,fullWidth:y=!1,id:b,loading:O=null,loadingIndicator:S,loadingPosition:v="center",size:T="medium",startIcon:k,type:w,variant:M="text",...I}=a,_=wi(b),$=S??C.jsx(fu,{"aria-labelledby":_,color:"inherit",size:16}),x={...a,color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:O,loadingIndicator:$,loadingPosition:v,size:T,type:w,variant:M},A=qI(x),R=(k||O&&v==="start")&&C.jsx(zI,{className:A.startIcon,ownerState:x,children:k||C.jsx(tp,{className:A.loadingIconPlaceholder,ownerState:x})}),N=(g||O&&v==="end")&&C.jsx(BI,{className:A.endIcon,ownerState:x,children:g||C.jsx(tp,{className:A.loadingIconPlaceholder,ownerState:x})}),q=o||"",F=typeof O=="boolean"?C.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:O&&C.jsx(HI,{className:A.loadingIndicator,ownerState:x,children:$})}):null;return C.jsxs(FI,{ownerState:x,className:ge(i.className,A.root,d,q),component:l,disabled:f||O,focusRipple:!h,focusVisibleClassName:ge(A.focusVisible,m),ref:r,type:w,id:O?_:b,...I,classes:A,children:[R,v!=="end"&&F,c,v==="end"&&F,N]})});process.env.NODE_ENV!=="production"&&(Sy.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","success","error","info","warning"]),n.string]),component:n.elementType,disabled:n.bool,disableElevation:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,endIcon:n.node,focusVisibleClassName:n.string,fullWidth:n.bool,href:n.string,id:n.string,loading:n.bool,loadingIndicator:n.node,loadingPosition:n.oneOf(["center","end","start"]),size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),startIcon:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string]),variant:n.oneOfType([n.oneOf(["contained","outlined","text"]),n.string])});const VI={baseButton:Sy,baseIconButton:vy},GI={},UI=E({},VI,GI),Cy=P.createContext(null);process.env.NODE_ENV!=="production"&&(Cy.displayName="ChartsSlotsContext");function YI(e){const{slots:t,slotProps:r={},defaultSlots:i,children:o}=e,s=P.useMemo(()=>({slots:E({},i,t),slotProps:r}),[i,t,r]);return C.jsx(Cy.Provider,{value:s,children:o})}const WI=["children","localeText","plugins","seriesConfig","slots","slotProps"],XI=e=>{const t=Ke({props:e,name:"MuiChartDataProvider"}),{children:r,localeText:i,plugins:o=yy,seriesConfig:s,slots:a,slotProps:c}=t,u=te(t,WI),l=Xe(),d={plugins:o,seriesConfig:s,pluginParams:E({theme:l.palette.mode},u)};return{children:r,localeText:i,chartProviderProps:d,slots:a,slotProps:c}};function ia(e){const{children:t,localeText:r,chartProviderProps:i,slots:o,slotProps:s}=XI(e);return C.jsx(yw,E({},i,{children:C.jsx(ag,{localeText:r,children:C.jsx(YI,{slots:o,slotProps:s,defaultSlots:UI,children:t})})}))}process.env.NODE_ENV!=="production"&&(ia.propTypes={apiRef:n.shape({current:n.any}),colors:n.oneOfType([n.arrayOf(n.string),n.func]),dataset:n.arrayOf(n.object),experimentalFeatures:n.shape({preferStrictDomainInLineCharts:n.bool}),height:n.number,id:n.string,localeText:n.object,margin:n.oneOfType([n.number,n.shape({bottom:n.number,left:n.number,right:n.number,top:n.number})]),series:n.arrayOf(n.object),skipAnimation:n.bool,slotProps:n.object,slots:n.object,theme:n.oneOf(["dark","light"]),width:n.number});function np(e){const{isReversed:t,gradientId:r,size:i,direction:o,scale:s,colorMap:a}=e;return i<=0?null:C.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${i}px`,gradientUnits:"userSpaceOnUse",children:a.thresholds.map((c,u)=>{const l=s(c);if(l===void 0)return null;const d=t?1-l/i:l/i;return Number.isNaN(d)?null:C.jsxs(P.Fragment,{children:[C.jsx("stop",{offset:d,stopColor:a.colors[u],stopOpacity:1}),C.jsx("stop",{offset:d,stopColor:a.colors[u+1],stopOpacity:1})]},c.toString()+u)})})}const KI=10;function rp(e){const{gradientUnits:t,isReversed:r,gradientId:i,size:o,direction:s,scale:a,colorScale:c,colorMap:u}=e,l=[u.min??0,u.max??100],d=l.map(a).filter(g=>g!==void 0);if(d.length!==2)return null;const f=typeof l[0]=="number"?de(l[0],l[1]):cl(l[0],l[1]),p=Math.round((Math.max(...d)-Math.min(...d))/KI),h=`${l[0]}-${l[1]}-`;return C.jsx("linearGradient",{id:i,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${r?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:p+1},(g,m)=>{const y=f(m/p);if(y===void 0)return null;const b=a(y);if(b===void 0)return null;const O=r?1-b/o:b/o,S=c(y);return S===null?null:C.jsx("stop",{offset:O,stopColor:S,stopOpacity:1},h+m)})})}const ZI=10,QI=e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function Ka(e){const{isReversed:t,gradientId:r,colorScale:i,colorMap:o}=e,s=[o.min??0,o.max??100],a=typeof s[0]=="number"?de(s[0],s[1]):cl(s[0],s[1]),c=ZI,u=`${s[0]}-${s[1]}-`;return C.jsx("linearGradient",E({id:r},QI(t),{gradientUnits:"objectBoundingBox",children:Array.from({length:c+1},(l,d)=>{const f=d/c,p=a(f);if(p===void 0)return null;const h=i(p);return h===null?null:C.jsx("stop",{offset:f,stopColor:h,stopOpacity:1},u+d)})}))}function JI(){const{top:e,height:t,bottom:r,left:i,width:o,right:s}=ht(),a=e+t+r,c=i+o+s,u=Bl(),l=Kw(),{xAxis:d,xAxisIds:f}=ze(),{yAxis:p,yAxisIds:h}=Be(),{zAxis:g,zAxisIds:m}=ql(),y=h.filter(S=>p[S].colorMap!==void 0),b=f.filter(S=>d[S].colorMap!==void 0),O=m.filter(S=>g[S].colorMap!==void 0);return y.length===0&&b.length===0&&O.length===0?null:C.jsxs("defs",{children:[y.map(S=>{const v=u(S),T=l(S),{colorMap:k,scale:w,colorScale:M,reverse:I}=p[S];return k?.type==="piecewise"?C.jsx(np,{isReversed:!I,scale:w,colorMap:k,size:a,gradientId:v,direction:"y"},v):k?.type==="continuous"?C.jsxs(P.Fragment,{children:[C.jsx(rp,{isReversed:!I,scale:w,colorScale:M,colorMap:k,size:a,gradientId:v,direction:"y"}),C.jsx(Ka,{isReversed:I,colorScale:M,colorMap:k,gradientId:T})]},v):null}),b.map(S=>{const v=u(S),T=l(S),{colorMap:k,scale:w,reverse:M,colorScale:I}=d[S];return k?.type==="piecewise"?C.jsx(np,{isReversed:M,scale:w,colorMap:k,size:c,gradientId:v,direction:"x"},v):k?.type==="continuous"?C.jsxs(P.Fragment,{children:[C.jsx(rp,{isReversed:M,scale:w,colorScale:I,colorMap:k,size:c,gradientId:v,direction:"x"}),C.jsx(Ka,{isReversed:M,colorScale:I,colorMap:k,gradientId:T})]},v):null}),O.map(S=>{const v=l(S),{colorMap:T,colorScale:k}=g[S];return T?.type==="continuous"?C.jsx(Ka,{colorScale:k,colorMap:T,gradientId:v},v):null})]})}function eM(e){return Te("MuiChartsSurface",e)}const tM=()=>ke({root:["root"]},eM);Oe("MuiChartsSurface",["root"]);const nM=["children","className","title","desc"],rM=re("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:e.hasZoom?"pan-y":void 0,userSelect:"none",gridArea:"chart","&:focus":{outline:"none"}})),Gi=P.forwardRef(function(t,r){const i=ye(),o=i.use(dO),s=i.use(fO),a=i.use(nh),c=i.use(rh),u=i.use(i1),l=i.use(am),d=i.use(jS),f=Fl(),p=mn(f,r),h=Ke({props:t,name:"MuiChartsSurface"}),{children:g,className:m,title:y,desc:b}=h,O=te(h,nM),S=tM(),v=s>0&&o>0;return C.jsxs(rM,E({ownerState:{width:a,height:c,hasZoom:d},viewBox:`0 0 ${o} ${s}`,className:ge(S.root,m),tabIndex:u?0:void 0,"data-has-focused-item":l||void 0},O,{ref:p,children:[y&&C.jsx("title",{children:y}),b&&C.jsx("desc",{children:b}),C.jsx(JI,{}),v&&g]}))});process.env.NODE_ENV!=="production"&&(Gi.displayName="ChartsSurface");process.env.NODE_ENV!=="production"&&(Gi.propTypes={children:n.node,className:n.string,desc:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),title:n.string});function ur(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wy(e){if(P.isValidElement(e)||vr.isValidElementType(e)||!ur(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=wy(e[r])}),t}function Qo(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return ur(e)&&ur(t)&&Object.keys(t).forEach(o=>{P.isValidElement(t[o])||vr.isValidElementType(t[o])?i[o]=t[o]:ur(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ur(e[o])?i[o]=Qo(e[o],t[o],r):r.clone?i[o]=ur(t[o])?wy(t[o]):t[o]:i[o]=t[o]}),i}function Ey(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Ay(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ey(7));return e.charAt(0).toUpperCase()+e.slice(1)}const iM=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function oM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...o}=e,s=iM(t),a=Object.keys(s);function c(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-i/100}${r})`}function l(p,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-i/100}${r})`}function d(p){return a.indexOf(p)+1<a.length?l(p,a[a.indexOf(p)+1]):c(p)}function f(p){const h=a.indexOf(p);return h===0?c(a[1]):h===a.length-1?u(a[h]):l(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:c,down:u,between:l,only:d,not:f,unit:r,...o}}function ip(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return r.length?r.reduce((i,o)=>{const s=t[o];return delete i[o],i[o]=s,i},{...t}):t}function sM(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function aM(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
168
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ey(18,`(${t})`));return null}const[,i,o]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(s)}function cM(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function r(s,a){s.up=(...c)=>t(e.breakpoints.up(...c),a),s.down=(...c)=>t(e.breakpoints.down(...c),a),s.between=(...c)=>t(e.breakpoints.between(...c),a),s.only=(...c)=>t(e.breakpoints.only(...c),a),s.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const i={},o=s=>(r(i,s),i);return r(o),{...e,containerQueries:o}}const lM={borderRadius:4},Sn=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.string,n.object,n.array]):{};function ii(e,t){return t?Qo(e,t,{clone:!1}):e}const oa={xs:0,sm:600,md:900,lg:1200,xl:1536},op={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oa[e]}px)`},uM={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:oa[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function sn(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||op;return t.reduce((a,c,u)=>(a[s.up(s.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const s=i.breakpoints||op;return Object.keys(t).reduce((a,c)=>{if(sM(s.keys,c)){const u=aM(i.containerQueries?i:uM,c);u&&(a[u]=r(t[c],c))}else if(Object.keys(s.values||oa).includes(c)){const u=s.up(c);a[u]=r(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return r(t)}function dM(e={}){return e.keys?.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{})||{}}function sp(e,t){return e.reduce((r,i)=>{const o=r[i];return(!o||Object.keys(o).length===0)&&delete r[i],r},t)}function sa(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function Jo(e,t,r,i=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||i:o=sa(e,r)||i,t&&(o=t(o,i,e)),o}function Me(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:o}=e,s=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,l=sa(u,i)||{};return sn(a,c,f=>{let p=Jo(l,o,f);return f===p&&typeof f=="string"&&(p=Jo(l,o,`${t}${f==="default"?"":Ay(f)}`,f)),r===!1?p:{[r]:p}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Sn}:{},s.filterProps=[t],s}function fM(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const pM={m:"margin",p:"padding"},hM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ap={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mM=fM(e=>{if(e.length>2)if(ap[e])e=ap[e];else return[e];const[t,r]=e.split(""),i=pM[t],o=hM[r]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),aa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ca=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],gM=[...aa,...ca];function Ui(e,t,r,i){const o=sa(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
169
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
170
|
+
`)));const c=o[a];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
171
|
+
`)),()=>{})}function Py(e){return Ui(e,"spacing",8,"spacing")}function Yi(e,t){return typeof t=="string"||t==null?t:e(t)}function yM(e,t){return r=>e.reduce((i,o)=>(i[o]=Yi(t,r),i),{})}function bM(e,t,r,i){if(!t.includes(r))return null;const o=mM(r),s=yM(o,i),a=e[r];return sn(e,a,s)}function Ry(e,t){const r=Py(e.theme);return Object.keys(e).map(i=>bM(e,t,i,r)).reduce(ii,{})}function Ae(e){return Ry(e,aa)}Ae.propTypes=process.env.NODE_ENV!=="production"?aa.reduce((e,t)=>(e[t]=Sn,e),{}):{};Ae.filterProps=aa;function Pe(e){return Ry(e,ca)}Pe.propTypes=process.env.NODE_ENV!=="production"?ca.reduce((e,t)=>(e[t]=Sn,e),{}):{};Pe.filterProps=ca;process.env.NODE_ENV!=="production"&&gM.reduce((e,t)=>(e[t]=Sn,e),{});function xM(e=8,t=Py({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function la(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),r=i=>Object.keys(i).reduce((o,s)=>t[s]?ii(o,t[s](i)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,o)=>Object.assign(i,o.propTypes),{}):{},r.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),r}function xt(e){return typeof e!="number"?e:`${e}px solid`}function Pt(e,t){return Me({prop:e,themeKey:"borders",transform:t})}const vM=Pt("border",xt),OM=Pt("borderTop",xt),TM=Pt("borderRight",xt),kM=Pt("borderBottom",xt),SM=Pt("borderLeft",xt),CM=Pt("borderColor"),wM=Pt("borderTopColor"),EM=Pt("borderRightColor"),AM=Pt("borderBottomColor"),PM=Pt("borderLeftColor"),RM=Pt("outline",xt),IM=Pt("outlineColor"),ua=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ui(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Yi(t,i)});return sn(e,e.borderRadius,r)}return null};ua.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Sn}:{};ua.filterProps=["borderRadius"];la(vM,OM,TM,kM,SM,CM,wM,EM,AM,PM,ua,RM,IM);const da=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ui(e.theme,"spacing",8,"gap"),r=i=>({gap:Yi(t,i)});return sn(e,e.gap,r)}return null};da.propTypes=process.env.NODE_ENV!=="production"?{gap:Sn}:{};da.filterProps=["gap"];const fa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ui(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Yi(t,i)});return sn(e,e.columnGap,r)}return null};fa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Sn}:{};fa.filterProps=["columnGap"];const pa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ui(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Yi(t,i)});return sn(e,e.rowGap,r)}return null};pa.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Sn}:{};pa.filterProps=["rowGap"];const MM=Me({prop:"gridColumn"}),$M=Me({prop:"gridRow"}),_M=Me({prop:"gridAutoFlow"}),DM=Me({prop:"gridAutoColumns"}),LM=Me({prop:"gridAutoRows"}),NM=Me({prop:"gridTemplateColumns"}),jM=Me({prop:"gridTemplateRows"}),qM=Me({prop:"gridTemplateAreas"}),FM=Me({prop:"gridArea"});la(da,fa,pa,MM,$M,_M,DM,LM,NM,jM,qM,FM);function br(e,t){return t==="grey"?t:e}const zM=Me({prop:"color",themeKey:"palette",transform:br}),BM=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:br}),HM=Me({prop:"backgroundColor",themeKey:"palette",transform:br});la(zM,BM,HM);function lt(e){return e<=1&&e!==0?`${e*100}%`:e}const VM=Me({prop:"width",transform:lt}),pu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||oa[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:lt(r)}};return sn(e,e.maxWidth,t)}return null};pu.filterProps=["maxWidth"];const GM=Me({prop:"minWidth",transform:lt}),UM=Me({prop:"height",transform:lt}),YM=Me({prop:"maxHeight",transform:lt}),WM=Me({prop:"minHeight",transform:lt});Me({prop:"size",cssProperty:"width",transform:lt});Me({prop:"size",cssProperty:"height",transform:lt});const XM=Me({prop:"boxSizing"});la(VM,pu,GM,UM,YM,WM,XM);const Iy={border:{themeKey:"borders",transform:xt},borderTop:{themeKey:"borders",transform:xt},borderRight:{themeKey:"borders",transform:xt},borderBottom:{themeKey:"borders",transform:xt},borderLeft:{themeKey:"borders",transform:xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ua},color:{themeKey:"palette",transform:br},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:br},backgroundColor:{themeKey:"palette",transform:br},p:{style:Pe},pt:{style:Pe},pr:{style:Pe},pb:{style:Pe},pl:{style:Pe},px:{style:Pe},py:{style:Pe},padding:{style:Pe},paddingTop:{style:Pe},paddingRight:{style:Pe},paddingBottom:{style:Pe},paddingLeft:{style:Pe},paddingX:{style:Pe},paddingY:{style:Pe},paddingInline:{style:Pe},paddingInlineStart:{style:Pe},paddingInlineEnd:{style:Pe},paddingBlock:{style:Pe},paddingBlockStart:{style:Pe},paddingBlockEnd:{style:Pe},m:{style:Ae},mt:{style:Ae},mr:{style:Ae},mb:{style:Ae},ml:{style:Ae},mx:{style:Ae},my:{style:Ae},margin:{style:Ae},marginTop:{style:Ae},marginRight:{style:Ae},marginBottom:{style:Ae},marginLeft:{style:Ae},marginX:{style:Ae},marginY:{style:Ae},marginInline:{style:Ae},marginInlineStart:{style:Ae},marginInlineEnd:{style:Ae},marginBlock:{style:Ae},marginBlockStart:{style:Ae},marginBlockEnd:{style:Ae},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:da},rowGap:{style:pa},columnGap:{style:fa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:lt},maxWidth:{style:pu},minWidth:{transform:lt},height:{transform:lt},maxHeight:{transform:lt},minHeight:{transform:lt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function KM(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function ZM(e,t){return typeof e=="function"?e(t):e}function QM(){function e(r,i,o,s){const a={[r]:i,theme:o},c=s[r];if(!c)return{[r]:i};const{cssProperty:u=r,themeKey:l,transform:d,style:f}=c;if(i==null)return null;if(l==="typography"&&i==="inherit")return{[r]:i};const p=sa(o,l)||{};return f?f(a):sn(a,i,g=>{let m=Jo(p,d,g);return g===m&&typeof g=="string"&&(m=Jo(p,d,`${r}${g==="default"?"":Ay(g)}`,g)),u===!1?m:{[u]:m}})}function t(r){const{sx:i,theme:o={},nested:s}=r||{};if(!i)return null;const a=o.unstable_sxConfig??Iy;function c(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const d=dM(o.breakpoints),f=Object.keys(d);let p=d;return Object.keys(l).forEach(h=>{const g=ZM(l[h],o);if(g!=null)if(typeof g=="object")if(a[h])p=ii(p,e(h,g,o,a));else{const m=sn({theme:o},g,y=>({[h]:y}));KM(m,g)?p[h]=t({sx:g,theme:o,nested:!0}):p=ii(p,m)}else p=ii(p,e(h,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":ip(o,sp(f,p))}:ip(o,sp(f,p))}return Array.isArray(i)?i.map(c):c(i)}return t}const My=QM();My.filterProps=["sx"];function JM(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function e$(e={},...t){const{breakpoints:r={},palette:i={},spacing:o,shape:s={},...a}=e,c=oM(r),u=xM(o);let l=Qo({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...lM,...s}},a);return l=cM(l),l.applyStyles=JM,l=t.reduce((d,f)=>Qo(d,f),l),l.unstable_sxConfig={...Iy,...a?.unstable_sxConfig},l.unstable_sx=function(f){return My({sx:f,theme:this})},l}e$();function t$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cp=Oe("MuiChartsToolbar",["root"]),n$=e=>e?.horizontal==="start"?"start":e?.horizontal==="end"?"end":"center",r$=e=>e?.vertical==="top"?"flex-start":e?.vertical==="bottom"?"flex-end":"center",i$=(e,t,r)=>e?'"chart"':t==="vertical"?r?.horizontal==="start"?'"legend chart"':'"chart legend"':r?.vertical==="bottom"?`"chart"
|
|
172
|
+
"legend"`:`"legend"
|
|
173
|
+
"chart"`,o$=(e=!1,t="horizontal",r="end",i=void 0)=>{const o=i?"auto":"1fr";return t==="horizontal"||e?o:r==="start"?`auto ${o}`:`${o} auto`},s$=(e=!1,t="horizontal",r="top")=>t==="vertical"||e?"1fr":r==="bottom"?"1fr auto":"auto 1fr",a$=re("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:e=>t$(e)&&e!=="extendVertically"&&e!=="width"})(({ownerState:e,width:t})=>{const r=o$(e.hideLegend,e.legendDirection,e.legendPosition?.horizontal,t),i=s$(e.hideLegend,e.legendDirection,e.legendPosition?.vertical),o=i$(e.hideLegend,e.legendDirection,e.legendPosition);return{variants:[{props:{extendVertically:!0},style:{height:"100%",minHeight:0}}],flex:1,display:"grid",gridTemplateColumns:r,gridTemplateRows:i,gridTemplateAreas:o,[`&:has(.${cp.root})`]:{gridTemplateRows:`auto ${i}`,gridTemplateAreas:`"${r.split(" ").map(()=>"toolbar").join(" ")}"
|
|
174
|
+
${o}`},[`& .${cp.root}`]:{gridArea:"toolbar",justifySelf:"center"},justifyContent:"safe center",justifyItems:n$(e.legendPosition),alignItems:r$(e.legendPosition)}});function ha(e){const{children:t,sx:r,extendVertically:i}=e,o=cE(),s=ye(),a=s.use(nh),c=s.use(rh);return C.jsx(a$,{ref:o,ownerState:e,sx:r,extendVertically:i??c===void 0,width:a,children:t})}process.env.NODE_ENV!=="production"&&(ha.propTypes={children:n.node,extendVertically:n.bool,hideLegend:n.bool,legendDirection:n.oneOf(["horizontal","vertical"]),legendPosition:n.shape({horizontal:n.oneOf(["center","end","start"]),vertical:n.oneOf(["bottom","middle","top"])}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function ma(){return ye().use(Pl)}const go=6;function c$(){const e=Xe(),t=ma(),r=ji(),{xAxis:i,xAxisIds:o}=ze(),{yAxis:s,yAxisIds:a}=Be();if(t===null||t.type!=="line"||!r)return null;const c=r?.series[t.seriesId],u=c.xAxisId??o[0],l=c.yAxisId??a[0];return C.jsx("rect",{fill:"none",stroke:(e.vars??e).palette.text.primary,strokeWidth:2,x:i[u].scale(i[u].data[t.dataIndex])-go,y:s[l].scale(c.stackedData[t.dataIndex][1])-go,width:2*go,height:2*go,rx:3,ry:3})}const hu=P.forwardRef(function(t,r){const i=Ke({props:t,name:"MuiLineChart"}),{chartsWrapperProps:o,chartContainerProps:s,gridProps:a,clipPathProps:c,clipPathGroupProps:u,areaPlotProps:l,linePlotProps:d,markPlotProps:f,overlayProps:p,chartsAxisProps:h,axisHighlightProps:g,lineHighlightPlotProps:m,legendProps:y,children:b}=eI(i),{chartDataProviderProps:O,chartsSurfaceProps:S}=au(s,r),v=i.slots?.tooltip??na,T=i.slots?.toolbar;return C.jsx(ia,E({},O,{children:C.jsxs(ha,E({},o,{children:[i.showToolbar&&T?C.jsx(T,E({},i.slotProps?.toolbar)):null,!i.hideLegend&&C.jsx(Vi,E({},y)),C.jsxs(Gi,E({},S,{children:[C.jsx(ou,E({},a)),C.jsxs("g",E({},u,{children:[C.jsx(hg,E({},l)),C.jsx(gg,E({},d)),C.jsx(su,E({},p)),C.jsx(ru,E({},g))]})),C.jsx(c$,{}),C.jsx(Yl,E({},h)),C.jsx("g",{"data-drawing-container":!0,children:C.jsx(Tg,E({},f))}),C.jsx(my,E({},m)),C.jsx(iu,E({},c)),b]})),!i.loading&&C.jsx(v,E({},i.slotProps?.tooltip))]}))}))});process.env.NODE_ENV!=="production"&&(hu.displayName="LineChart");process.env.NODE_ENV!=="production"&&(hu.propTypes={apiRef:n.shape({current:n.object}),axisHighlight:n.shape({x:n.oneOf(["band","line","none"]),y:n.oneOf(["band","line","none"])}),brushConfig:n.shape({enabled:n.bool,preventHighlight:n.bool,preventTooltip:n.bool}),children:n.node,className:n.string,colors:n.oneOfType([n.arrayOf(n.string),n.func]),dataset:n.arrayOf(n.object),desc:n.string,disableAxisListener:n.bool,disableLineItemHighlight:n.bool,enableKeyboardNavigation:n.bool,experimentalFeatures:n.shape({preferStrictDomainInLineCharts:n.bool}),grid:n.shape({horizontal:n.bool,vertical:n.bool}),height:n.number,hideLegend:n.bool,highlightedAxis:n.arrayOf(n.shape({axisId:n.oneOfType([n.number,n.string]).isRequired,dataIndex:n.number.isRequired})),highlightedItem:n.shape({dataIndex:n.number,seriesId:n.oneOfType([n.number,n.string]).isRequired}),id:n.string,loading:n.bool,localeText:n.object,margin:n.oneOfType([n.number,n.shape({bottom:n.number,left:n.number,right:n.number,top:n.number})]),onAreaClick:n.func,onAxisClick:n.func,onHighlightChange:n.func,onHighlightedAxisChange:n.func,onLineClick:n.func,onMarkClick:n.func,series:n.arrayOf(n.object).isRequired,showToolbar:n.bool,skipAnimation:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),theme:n.oneOf(["dark","light"]),title:n.string,width:n.number,xAxis:n.arrayOf(n.oneOfType([n.shape({axis:n.oneOf(["x"]),barGapRatio:n.number,categoryGapRatio:n.number,classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["band"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["point"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["log"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),constant:n.number,data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["symlog"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["pow"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["sqrt"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["time"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["utc"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["linear"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func})]).isRequired),yAxis:n.arrayOf(n.oneOfType([n.shape({axis:n.oneOf(["y"]),barGapRatio:n.number,categoryGapRatio:n.number,classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["band"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["point"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["log"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),constant:n.number,data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["symlog"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["pow"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["sqrt"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["time"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["utc"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["linear"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number})]).isRequired)});const l$=({title:e,subTitle:t,withPaper:r=!0,height:i=300,sx:o,...s})=>{const a=Xe(),c=C.jsx(hu,{height:i,sx:{width:"100%",...o},...s});return r?C.jsxs(vt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&C.jsxs(vt.Box,{sx:{mb:2},children:[e&&C.jsx(vt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&C.jsx(vt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c};function u$(e){return Te("MuiBarElement",e)}const d$=Oe("MuiBarElement",["root","highlighted","faded","series"]),f$=e=>{const{classes:t,id:r,isHighlighted:i,isFaded:o}=e,s={root:["root",`series-${r}`,i&&"highlighted",o&&"faded"]};return ke(s,u$,t)},p$=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function h$(e){const{ownerState:t}=e,r=te(e,p$),i=Qw(e);return C.jsx("rect",E({},r,{filter:t.isHighlighted?"brightness(120%)":void 0,opacity:t.isFaded?.3:1,"data-highlighted":t.isHighlighted||void 0,"data-faded":t.isFaded||void 0},i))}function m$(e){return ye().use(r1,e)}const g$=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function $y(e){const{id:t,dataIndex:r,classes:i,color:o,slots:s,slotProps:a,style:c,onClick:u,skipAnimation:l,layout:d,x:f,xOrigin:p,y:h,yOrigin:g,width:m,height:y}=e,b=te(e,g$),O=P.useMemo(()=>({type:"bar",seriesId:t,dataIndex:r}),[t,r]),S=qr(O),{isFaded:v,isHighlighted:T}=Li(O),k=m$(P.useMemo(()=>({type:"bar",seriesId:t,dataIndex:r}),[t,r])),w={id:t,dataIndex:r,classes:i,color:o,isFaded:v,isHighlighted:T,isFocused:k},M=f$(w),I=s?.bar??h$,_=$t({elementType:I,externalSlotProps:a?.bar,externalForwardedProps:b,additionalProps:E({},S,{id:t,dataIndex:r,color:o,x:f,xOrigin:p,y:h,yOrigin:g,width:m,height:y,style:c,onClick:u,cursor:u?"pointer":"unset",stroke:"none",fill:o,skipAnimation:l,layout:d}),className:M.root,ownerState:w});return C.jsx(I,E({},_))}process.env.NODE_ENV!=="production"&&($y.propTypes={classes:n.object,dataIndex:n.number.isRequired,id:n.oneOfType([n.number,n.string]).isRequired,layout:n.oneOf(["horizontal","vertical"]).isRequired,skipAnimation:n.bool.isRequired,slotProps:n.object,slots:n.object,xOrigin:n.number.isRequired,yOrigin:n.number.isRequired});function y$(e,t){const r=de(e.x,t.x),i=de(e.y,t.y),o=de(e.width,t.width),s=de(e.height,t.height),a=de(e.borderRadius,t.borderRadius);return c=>({x:r(c),y:i(c),width:o(c),height:s(c),borderRadius:a(c)})}function b$(e){const t={x:e.layout==="vertical"?e.x:e.xOrigin,y:e.layout==="vertical"?e.yOrigin:e.y,width:e.layout==="vertical"?e.width:0,height:e.layout==="vertical"?0:e.height,borderRadius:e.borderRadius};return Kn({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius},{createInterpolator:y$,transformProps:r=>({d:v$(e.hasNegative,e.hasPositive,e.layout,r.x,r.y,r.width,r.height,e.xOrigin,e.yOrigin,r.borderRadius)}),applyProps(r,{d:i}){i&&r.setAttribute("d",i)},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function x$(e){const{maskId:t,x:r,y:i,width:o,height:s,skipAnimation:a}=e,{ref:c,d:u}=b$({layout:e.layout??"vertical",hasNegative:e.hasNegative,hasPositive:e.hasPositive,xOrigin:e.xOrigin,yOrigin:e.yOrigin,x:r,y:i,width:o,height:s,borderRadius:e.borderRadius??0,skipAnimation:a});return!e.borderRadius||e.borderRadius<=0?null:C.jsx("clipPath",{id:t,children:C.jsx("path",{ref:c,d:u})})}function v$(e,t,r,i,o,s,a,c,u,l){if(r==="vertical"){if(t&&e){const f=Math.min(l,s/2,a/2);return`M${i},${o+a/2} v${-(a/2-f)} a${f},${f} 0 0 1 ${f},${-f} h${s-f*2} a${f},${f} 0 0 1 ${f},${f} v${a-2*f} a${f},${f} 0 0 1 ${-f},${f} h${-(s-f*2)} a${f},${f} 0 0 1 ${-f},${-f} v${-(a/2-f)}`}const d=Math.min(l,s/2);if(t)return`M${i},${Math.max(u,o+d)} v${Math.min(0,-(u-o-d))} a${d},${d} 0 0 1 ${d},${-d} h${s-d*2} a${d},${d} 0 0 1 ${d},${d} v${Math.max(0,u-o-d)} Z`;if(e)return`M${i},${Math.min(u,o+a-d)} v${Math.max(0,a-d)} a${d},${d} 0 0 0 ${d},${d} h${s-d*2} a${d},${d} 0 0 0 ${d},${-d} v${-Math.max(0,a-d)} Z`}if(r==="horizontal"){if(t&&e){const f=Math.min(l,s/2,a/2);return`M${i+s/2},${o} h${s/2-f} a${f},${f} 0 0 1 ${f},${f} v${a-f*2} a${f},${f} 0 0 1 ${-f},${f} h${-(s-2*f)} a${f},${f} 0 0 1 ${-f},${-f} v${-(a-f*2)} a${f},${f} 0 0 1 ${f},${-f} h${s/2-f}`}const d=Math.min(l,a/2);if(t)return`M${Math.min(c,i-d)},${o} h${s} a${d},${d} 0 0 1 ${d},${d} v${a-d*2} a${d},${d} 0 0 1 ${-d},${d} h${-s} Z`;if(e)return`M${Math.max(c,i+s+d)},${o} h${-s} a${d},${d} 0 0 0 ${-d},${d} v${a-d*2} a${d},${d} 0 0 0 ${d},${d} h${s} Z`}}function O$(e){return Te("MuiBarLabel",e)}const lp=Oe("MuiBarLabel",["root","highlighted","faded","animate"]),T$=e=>{const{classes:t,seriesId:r,isFaded:i,isHighlighted:o,skipAnimation:s}=e,a={root:["root",`series-${r}`,o&&"highlighted",i&&"faded",!s&&"animate"]};return ke(a,O$,t)};function k$(e){const{barLabel:t,value:r,dataIndex:i,seriesId:o,height:s,width:a}=e;return t==="value"?r?r?.toString():null:t({seriesId:o,dataIndex:i,value:r},{bar:{height:s,width:a}})}const S$=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin","placement"],C$=re("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${lp.faded}`]:t.faded},{[`&.${lp.highlighted}`]:t.highlighted},t.root]})(({theme:e})=>E({},e?.typography?.body2,{stroke:"none",fill:(e.vars||e)?.palette?.text?.primary,transitionProperty:"opacity, fill",transitionDuration:`${_t}ms`,transitionTimingFunction:Vt,pointerEvents:"none"}));function _y(e){const t=Ke({props:e,name:"MuiBarLabel"}),{isFaded:r}=t,i=te(t,S$),o=eE(t),s=w$(t),a=E$(t),c=r?.3:1;return C.jsx(C$,E({textAnchor:s,dominantBaseline:a,opacity:c},i,o))}function w$({placement:e,layout:t,xOrigin:r,x:i}){return e==="outside"&&t==="horizontal"?i<r?"end":"start":"middle"}function E$({placement:e,layout:t,yOrigin:r,y:i}){return e==="outside"?t==="horizontal"?"central":i<r?"auto":"hanging":"central"}process.env.NODE_ENV!=="production"&&(_y.propTypes={classes:n.object,dataIndex:n.number.isRequired,height:n.number.isRequired,isFaded:n.bool.isRequired,isHighlighted:n.bool.isRequired,layout:n.oneOf(["horizontal","vertical"]).isRequired,placement:n.oneOf(["center","outside"]),seriesId:n.oneOfType([n.number,n.string]).isRequired,skipAnimation:n.bool.isRequired,width:n.number.isRequired,x:n.number.isRequired,xOrigin:n.number.isRequired,y:n.number.isRequired,yOrigin:n.number.isRequired});const A$=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout","barLabelPlacement"],P$=["ownerState"];function Dy(e){const{seriesId:t,classes:r,color:i,dataIndex:o,barLabel:s,slots:a,slotProps:c,xOrigin:u,yOrigin:l,x:d,y:f,width:p,height:h,value:g,skipAnimation:m,layout:y,barLabelPlacement:b}=e,O=te(e,A$),{isFaded:S,isHighlighted:v}=Li({seriesId:t,dataIndex:o}),T={seriesId:t,classes:r,color:i,isFaded:S,isHighlighted:v,dataIndex:o,skipAnimation:m,layout:y},k=T$(T),w=a?.barLabel??_y,M=$t({elementType:w,externalSlotProps:c?.barLabel,additionalProps:E({},O,{xOrigin:u,yOrigin:l,x:d,y:f,width:p,height:h,placement:b,className:k.root}),ownerState:T}),{ownerState:I}=M,_=te(M,P$);if(!s)return null;const $=k$({barLabel:s,value:g,dataIndex:o,seriesId:t,height:h,width:p});return $?C.jsx(w,E({},_,I,{children:$})):null}process.env.NODE_ENV!=="production"&&(Dy.propTypes={barLabel:n.oneOfType([n.oneOf(["value"]),n.func]),classes:n.object,color:n.string.isRequired,dataIndex:n.number.isRequired,height:n.number.isRequired,seriesId:n.oneOfType([n.number,n.string]).isRequired,slotProps:n.object,slots:n.object,value:n.number,width:n.number.isRequired});const R$=["processedSeries","className","skipAnimation"];function I$(e){const{processedSeries:t,className:r,skipAnimation:i}=e,o=te(e,R$),{seriesId:s,data:a,layout:c,xOrigin:u,yOrigin:l}=t,d=t.barLabel??e.barLabel;return d?C.jsx("g",{className:r,"data-series":s,children:a.map(({x:f,y:p,dataIndex:h,color:g,value:m,width:y,height:b})=>C.jsx(Dy,E({seriesId:s,dataIndex:h,value:m,color:g,xOrigin:u,yOrigin:l,x:f,y:p,width:y,height:b,skipAnimation:i??!1,layout:c??"vertical"},o,{barLabel:d,barLabelPlacement:t.barLabelPlacement||"center"}),h))},s):null}const yo=(e,t)=>{const r=`${e}-axis`,i=`${e}Axis`;return t===(e==="x"?bn:Wc)?`The first \`${i}\``:`The ${r} with id "${t}"`};function M$(e,t,r,i,o,s,a){const c=o[i],u=a[s],l=e?c:u,d=e?u:c,f=e?i:s,p=e?s:i,h=e?"x":"y",g=e?"y":"x";if(l.scaleType!=="band")throw new Error(`MUI X Charts: ${yo(h,f)} should be of type "band" to display the bar series of id "${t}".`);if(l.data===void 0)throw new Error(`MUI X Charts: ${yo(h,f)} should have data property.`);if(d.scaleType==="band"||d.scaleType==="point")throw new Error(`MUI X Charts: ${yo(g,p)} should be a continuous type to display the bar series of id "${t}".`);process.env.NODE_ENV!=="production"&&l.data.length<r&&Ct([`MUI X Charts: ${yo(h,f)} has less data (${l.data.length} values) than the bar series of id "${t}" (${r} values).`,"The axis data should have at least the same length than the series using it."],"error")}function $$(e,t,r){const i=ig()??{series:{},stackingGroups:[]},o=ze().xAxisIds[0],s=Be().yAxisIds[0],a=Ni(),{series:c,stackingGroups:u}=i,l={};return{completedData:u.flatMap(({ids:f},p)=>{const h=e.left,g=e.left+e.width,m=e.top,y=e.top+e.height;return f.map(b=>{const O=c[b].xAxisId??o,S=c[b].yAxisId??s,v=c[b].layout,T=t[O],k=r[S],w=c[b].layout==="vertical",M=(w?k.reverse:T.reverse)??!1;M$(w,b,c[b].stackedData.length,O,t,S,r);const I=w?T:k,_=T.scale,$=k.scale,x=Math.round(_(0)??0),A=Math.round($(0)??0),R=Vm(c[b],t[O],r[S]),N=[];for(let q=0;q<I.data.length;q+=1){const F=Dl({verticalLayout:w,xAxisConfig:T,yAxisConfig:k,series:c[b],dataIndex:q,numberOfGroups:u.length,groupIndex:p});if(F==null)continue;const G=c[b].stack,V=E({seriesId:b,dataIndex:q},F,{color:R(q),value:c[b].data[q],maskId:`${a}_${G||b}_${p}_${q}`});if(V.x>g||V.x+V.width<h||V.y>y||V.y+V.height<m)continue;l[V.maskId]||(l[V.maskId]={id:V.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:v,xOrigin:x,yOrigin:A,x:0,y:0});const L=l[V.maskId];L.width=v==="vertical"?V.width:L.width+V.width,L.height=v==="vertical"?L.height+V.height:V.height,L.x=Math.min(L.x===0?1/0:L.x,V.x),L.y=Math.min(L.y===0?1/0:L.y,V.y);const B=V.value??0;L.hasNegative=L.hasNegative||(M?B>0:B<0),L.hasPositive=L.hasPositive||(M?B<0:B>0),N.push(V)}return{seriesId:b,barLabel:c[b].barLabel,barLabelPlacement:c[b].barLabelPlacement,data:N,layout:v,xOrigin:x,yOrigin:A}})}),masksData:Object.values(l)}}function _$(e){return Te("MuiBar",e)}Oe("MuiBar",["root","series","seriesLabels"]);const D$=e=>ke({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},_$,e),L$=["skipAnimation","onItemClick","borderRadius","barLabel"],N$=re("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${d$.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${_t}ms`,transitionTimingFunction:Vt}});function Ly(e){const{skipAnimation:t,onItemClick:r,borderRadius:i,barLabel:o}=e,s=te(e,L$),a=Ys(),c=qi(a||t),{xAxis:u}=ze(),{yAxis:l}=Be(),{completedData:d,masksData:f}=$$(ht(),u,l),p=!i||i<=0,h=D$();return C.jsxs(N$,{className:h.root,children:[!p&&f.map(({id:g,x:m,y,xOrigin:b,yOrigin:O,width:S,height:v,hasPositive:T,hasNegative:k,layout:w})=>C.jsx(x$,{maskId:g,borderRadius:i,hasNegative:k,hasPositive:T,layout:w,x:m,y,xOrigin:b,yOrigin:O,width:S,height:v,skipAnimation:c??!1},g)),d.map(({seriesId:g,layout:m,xOrigin:y,yOrigin:b,data:O})=>C.jsx("g",{"data-series":g,className:h.series,children:O.map(({dataIndex:S,color:v,maskId:T,x:k,y:w,width:M,height:I})=>{const _=C.jsx($y,E({id:g,dataIndex:S,color:v,skipAnimation:c??!1,layout:m??"vertical",x:k,xOrigin:y,y:w,yOrigin:b,width:M,height:I},s,{onClick:r&&($=>{r($,{type:"bar",seriesId:g,dataIndex:S})})}),S);return p?_:C.jsx("g",{clipPath:`url(#${T})`,children:_},S)})},g)),d.map(g=>C.jsx(I$,E({className:h.seriesLabels,processedSeries:g,skipAnimation:c,barLabel:o},s),g.seriesId))]})}process.env.NODE_ENV!=="production"&&(Ly.propTypes={barLabel:n.oneOfType([n.oneOf(["value"]),n.func]),barLabelPlacement:n.oneOf(["outside","inside"]),borderRadius:n.number,onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});const j$=[jr,Dr,Wn,Un,Yn,Xn,Nr],q$=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","axisHighlight","grid","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className","hideLegend","showToolbar","brushConfig"],F$=e=>{const{xAxis:t,yAxis:r,series:i,width:o,height:s,margin:a,colors:c,dataset:u,sx:l,axisHighlight:d,grid:f,children:p,slots:h,slotProps:g,skipAnimation:m,loading:y,layout:b,onItemClick:O,highlightedItem:S,onHighlightChange:v,borderRadius:T,barLabel:k,className:w,brushConfig:M}=e,I=te(e,q$),$=`${wi()}-clip-path`,x=b==="horizontal"||b===void 0&&i.some(H=>H.layout==="horizontal"),A=P.useMemo(()=>[{id:bn,scaleType:"band",data:Array.from({length:Math.max(...i.map(H=>(H.data??u??[]).length))},(H,X)=>X)}],[u,i]),R=P.useMemo(()=>[{id:Wc,scaleType:"band",data:Array.from({length:Math.max(...i.map(H=>(H.data??u??[]).length))},(H,X)=>X)}],[u,i]),N=P.useMemo(()=>i.map(H=>E({type:"bar"},H,{layout:x?"horizontal":"vertical"})),[x,i]),q=x?void 0:A,F=P.useMemo(()=>t?x?t:t.map(H=>E({scaleType:"band"},H)):q,[q,x,t]),G=x?R:void 0,V=P.useMemo(()=>r?x?r.map(H=>E({scaleType:"band"},H)):r:G,[G,x,r]),L=E({},I,{series:N,width:o,height:s,margin:a,colors:c,dataset:u,xAxis:F,yAxis:V,highlightedItem:S,onHighlightChange:v,disableAxisListener:g?.tooltip?.trigger!=="axis"&&d?.x==="none"&&d?.y==="none",className:w,skipAnimation:m,brushConfig:M,plugins:j$}),B={onItemClick:O,slots:h,slotProps:g,borderRadius:T,barLabel:k},Y={vertical:f?.vertical,horizontal:f?.horizontal},Q={clipPath:`url(#${$})`},W={id:$},K={slots:h,slotProps:g,loading:y},Z={slots:h,slotProps:g},J=E({},x?{y:"band"}:{x:"band"},d),ee={slots:h,slotProps:g};return{chartsWrapperProps:{sx:l,legendPosition:e.slotProps?.legend?.position,legendDirection:e.slotProps?.legend?.direction,hideLegend:e.hideLegend??!1},chartContainerProps:L,barPlotProps:B,gridProps:Y,clipPathProps:W,clipPathGroupProps:Q,overlayProps:K,chartsAxisProps:Z,axisHighlightProps:J,legendProps:ee,children:p}};function z$(e){const t=Xe(),r=ma(),i=ig(),{xAxis:o,xAxisIds:s}=ze(),{yAxis:a,yAxisIds:c}=Be();if(r===null||r.type!=="bar"||!i)return null;const u=i?.series[r.seriesId],l=u.xAxisId??s[0],d=u.yAxisId??c[0],f=o[l],p=a[d],h=i.series[r.seriesId].layout==="vertical",g=i.stackingGroups.findIndex(v=>v.ids.includes(r.seriesId)),m=Dl({verticalLayout:h,xAxisConfig:f,yAxisConfig:p,series:u,dataIndex:r.dataIndex,numberOfGroups:i.stackingGroups.length,groupIndex:g});if(m===null)return null;const{x:y,y:b,height:O,width:S}=m;return C.jsx("rect",E({fill:"none",stroke:(t.vars??t).palette.text.primary,strokeWidth:2,x:y-3,y:b-3,width:S+6,height:O+6,rx:3,ry:3},e))}const mu=P.forwardRef(function(t,r){const i=Ke({props:t,name:"MuiBarChart"}),{chartsWrapperProps:o,chartContainerProps:s,barPlotProps:a,gridProps:c,clipPathProps:u,clipPathGroupProps:l,overlayProps:d,chartsAxisProps:f,axisHighlightProps:p,legendProps:h,children:g}=F$(i),{chartDataProviderProps:m,chartsSurfaceProps:y}=au(s,r),b=i.slots?.tooltip??na,O=i.slots?.toolbar;return C.jsx(ia,E({},m,{children:C.jsxs(ha,E({},o,{children:[i.showToolbar&&O?C.jsx(O,E({},i.slotProps?.toolbar)):null,!i.hideLegend&&C.jsx(Vi,E({},h)),C.jsxs(Gi,E({},y,{children:[C.jsx(ou,E({},c)),C.jsxs("g",E({},l,{children:[C.jsx(Ly,E({},a)),C.jsx(su,E({},d)),C.jsx(ru,E({},p)),C.jsx(z$,{})]})),C.jsx(Yl,E({},f)),C.jsx(iu,E({},u)),g]})),!i.loading&&C.jsx(b,E({},i.slotProps?.tooltip))]}))}))});process.env.NODE_ENV!=="production"&&(mu.displayName="BarChart");process.env.NODE_ENV!=="production"&&(mu.propTypes={apiRef:n.shape({current:n.object}),axisHighlight:n.shape({x:n.oneOf(["band","line","none"]),y:n.oneOf(["band","line","none"])}),barLabel:n.oneOfType([n.oneOf(["value"]),n.func]),borderRadius:n.number,brushConfig:n.shape({enabled:n.bool,preventHighlight:n.bool,preventTooltip:n.bool}),children:n.node,className:n.string,colors:n.oneOfType([n.arrayOf(n.string),n.func]),dataset:n.arrayOf(n.object),desc:n.string,disableAxisListener:n.bool,enableKeyboardNavigation:n.bool,grid:n.shape({horizontal:n.bool,vertical:n.bool}),height:n.number,hideLegend:n.bool,highlightedAxis:n.arrayOf(n.shape({axisId:n.oneOfType([n.number,n.string]).isRequired,dataIndex:n.number.isRequired})),highlightedItem:n.shape({dataIndex:n.number,seriesId:n.oneOfType([n.number,n.string]).isRequired}),id:n.string,layout:n.oneOf(["horizontal","vertical"]),loading:n.bool,localeText:n.object,margin:n.oneOfType([n.number,n.shape({bottom:n.number,left:n.number,right:n.number,top:n.number})]),onAxisClick:n.func,onHighlightChange:n.func,onHighlightedAxisChange:n.func,onItemClick:n.func,series:n.arrayOf(n.object).isRequired,showToolbar:n.bool,skipAnimation:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),theme:n.oneOf(["dark","light"]),title:n.string,width:n.number,xAxis:n.arrayOf(n.oneOfType([n.shape({axis:n.oneOf(["x"]),barGapRatio:n.number,categoryGapRatio:n.number,classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["band"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["point"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["log"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),constant:n.number,data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["symlog"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["pow"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["sqrt"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["time"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["utc"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func}),n.shape({axis:n.oneOf(["x"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),height:n.number,hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["bottom","none","top"]),reverse:n.bool,scaleType:n.oneOf(["linear"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelMinGap:n.number,tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func})]).isRequired),yAxis:n.arrayOf(n.oneOfType([n.shape({axis:n.oneOf(["y"]),barGapRatio:n.number,categoryGapRatio:n.number,classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["band"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({colors:n.arrayOf(n.string).isRequired,type:n.oneOf(["ordinal"]).isRequired,unknownColor:n.string,values:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number,n.string]).isRequired)}),n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),groups:n.arrayOf(n.shape({getValue:n.func.isRequired,tickLabelStyle:n.object,tickSize:n.number})),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,offset:n.number,ordinalTimeTicks:n.arrayOf(n.oneOfType([n.oneOf(["biweekly","days","hours","months","quarterly","weeks","years"]),n.shape({format:n.func.isRequired,getTickNumber:n.func.isRequired,isTick:n.func.isRequired})]).isRequired),position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["point"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["log"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),constant:n.number,data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["symlog"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["pow"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["sqrt"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["time"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),min:n.oneOfType([n.number,n.shape({valueOf:n.func.isRequired})]),offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["utc"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number}),n.shape({axis:n.oneOf(["y"]),classes:n.object,colorMap:n.oneOfType([n.shape({color:n.oneOfType([n.arrayOf(n.string.isRequired),n.func]).isRequired,max:n.oneOfType([n.instanceOf(Date),n.number]),min:n.oneOfType([n.instanceOf(Date),n.number]),type:n.oneOf(["continuous"]).isRequired}),n.shape({colors:n.arrayOf(n.string).isRequired,thresholds:n.arrayOf(n.oneOfType([n.instanceOf(Date),n.number]).isRequired).isRequired,type:n.oneOf(["piecewise"]).isRequired})]),data:n.array,dataKey:n.string,disableLine:n.bool,disableTicks:n.bool,domainLimit:n.oneOfType([n.oneOf(["nice","strict"]),n.func]),hideTooltip:n.bool,id:n.oneOfType([n.number,n.string]),ignoreTooltip:n.bool,label:n.string,labelStyle:n.object,max:n.number,min:n.number,offset:n.number,position:n.oneOf(["left","none","right"]),reverse:n.bool,scaleType:n.oneOf(["linear"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tickInterval:n.oneOfType([n.oneOf(["auto"]),n.array,n.func]),tickLabelInterval:n.oneOfType([n.oneOf(["auto"]),n.func]),tickLabelPlacement:n.oneOf(["middle","tick"]),tickLabelStyle:n.object,tickMaxStep:n.number,tickMinStep:n.number,tickNumber:n.number,tickPlacement:n.oneOf(["end","extremities","middle","start"]),tickSize:n.number,tickSpacing:n.number,valueFormatter:n.func,width:n.number})]).isRequired)});const B$=({title:e,subTitle:t,withPaper:r=!0,height:i=300,sx:o,...s})=>{const a=Xe(),c=C.jsx(mu,{height:i,sx:{width:"100%",...o},...s});return r?C.jsxs(vt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&C.jsxs(vt.Box,{sx:{mb:2},children:[e&&C.jsx(vt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&C.jsx(vt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c},H$=["className","classes","color","dataIndex","id","isFaded","isHighlighted","isFocused","onClick","cornerRadius","startAngle","endAngle","innerRadius","outerRadius","paddingAngle","skipAnimation","stroke","skipInteraction"];function V$(e){return Te("MuiPieArc",e)}const G$=Oe("MuiPieArc",["root","highlighted","faded","series","focusIndicator"]),U$=e=>{const{classes:t,id:r,isFaded:i,isHighlighted:o,dataIndex:s}=e,a={root:["root",`series-${r}`,`data-index-${s}`,o&&"highlighted",i&&"faded"]};return ke(a,V$,t)},Y$=re("path",{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})({transitionProperty:"opacity, fill, filter",transitionDuration:`${_t}ms`,transitionTimingFunction:Vt}),ga=P.forwardRef(function(t,r){const{className:i,classes:o,color:s,dataIndex:a,id:c,isFaded:u,isHighlighted:l,isFocused:d,onClick:f,cornerRadius:p,startAngle:h,endAngle:g,innerRadius:m,outerRadius:y,paddingAngle:b,skipAnimation:O,stroke:S,skipInteraction:v}=t,T=te(t,H$),k=Xe(),w=S??(k.vars||k).palette.background.paper,M={id:c,dataIndex:a,classes:o,color:s,isFaded:u,isHighlighted:l,isFocused:d},I=U$(M),_=qr({type:"pie",seriesId:c,dataIndex:a},v),$=oE({cornerRadius:p,startAngle:h,endAngle:g,innerRadius:m,outerRadius:y,paddingAngle:b,skipAnimation:O,ref:r});return C.jsx(Y$,E({onClick:f,cursor:f?"pointer":"unset",ownerState:M,className:ge(I.root,i),fill:M.color,opacity:M.isFaded?.3:1,filter:M.isHighlighted?"brightness(120%)":"none",stroke:w,strokeWidth:1,strokeLinejoin:"round","data-highlighted":M.isHighlighted||void 0,"data-faded":M.isFaded||void 0},T,_,$))});process.env.NODE_ENV!=="production"&&(ga.displayName="PieArc");process.env.NODE_ENV!=="production"&&(ga.propTypes={classes:n.object,cornerRadius:n.number.isRequired,dataIndex:n.number.isRequired,endAngle:n.number.isRequired,id:n.oneOfType([n.number,n.string]).isRequired,innerRadius:n.number.isRequired,isFaded:n.bool.isRequired,isFocused:n.bool.isRequired,isHighlighted:n.bool.isRequired,outerRadius:n.number.isRequired,paddingAngle:n.number.isRequired,skipAnimation:n.bool,skipInteraction:n.bool,startAngle:n.number.isRequired});function W$(){const e=ma();return t=>e!==null&&mi(e,t)}function Ny(e,t,r,i){const{faded:o,highlighted:s,paddingAngle:a=0,cornerRadius:c=0}=e,{radius:{inner:u=0,label:l,outer:d}}=t,f=E({additionalRadius:0},i&&o||r&&s||{}),p=Math.max(0,Jt(f.paddingAngle??a)),h=Math.max(0,f.innerRadius??u),g=Math.max(0,f.outerRadius??d+f.additionalRadius),m=f.cornerRadius??c,y=f.arcLabelRadius??l??(h+g)/2;return{paddingAngle:p,innerRadius:h,outerRadius:g,cornerRadius:m,arcLabelRadius:y}}function jy(e){const{id:t,data:r,faded:i,highlighted:o}=e,{isFaded:s,isHighlighted:a}=og(),c=W$();return P.useMemo(()=>r.map((l,d)=>{const f={seriesId:t,dataIndex:d},p=a(f),h=!p&&s(f),g=c({type:"pie",seriesId:t,dataIndex:d}),m=Ny(e,{radius:{inner:e.innerRadius??0,outer:e.outerRadius,label:e.arcLabelRadius??0,available:0}},p,h),y=E({additionalRadius:0},h&&i||p&&o||{});return E({},l,y,{dataIndex:d,isFaded:h,isHighlighted:p,isFocused:g},m)}),[r,t,a,s,c,e,i,o])}const X$=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function qy(e){const{slots:t,slotProps:r,innerRadius:i=0,outerRadius:o,cornerRadius:s=0,paddingAngle:a=0,id:c,highlighted:u,faded:l={additionalRadius:-5},data:d,onItemClick:f,skipAnimation:p}=e,h=te(e,X$),g=jy({innerRadius:i,outerRadius:o,cornerRadius:s,paddingAngle:a,id:c,highlighted:u,faded:l,data:d});if(d.length===0)return null;const m=t?.pieArc??ga;return C.jsx("g",E({},h,{children:g.map((y,b)=>C.jsx(m,E({startAngle:y.startAngle,endAngle:y.endAngle,paddingAngle:y.paddingAngle,innerRadius:y.innerRadius,outerRadius:y.outerRadius,cornerRadius:y.cornerRadius,skipAnimation:p??!1,id:c,color:y.color,dataIndex:b,isFaded:y.isFaded,isHighlighted:y.isHighlighted,isFocused:y.isFocused,onClick:f&&(O=>{f(O,{type:"pie",seriesId:c,dataIndex:b},y)})},r?.pieArc),y.dataIndex))}))}process.env.NODE_ENV!=="production"&&(qy.propTypes={arcLabelRadius:n.number,cornerRadius:n.number,data:n.arrayOf(n.shape({color:n.string.isRequired,endAngle:n.number.isRequired,formattedValue:n.string.isRequired,id:n.oneOfType([n.number,n.string]),index:n.number.isRequired,label:n.oneOfType([n.func,n.string]),labelMarkType:n.oneOfType([n.oneOf(["circle","line","square"]),n.func]),padAngle:n.number.isRequired,startAngle:n.number.isRequired,value:n.number.isRequired})).isRequired,faded:n.shape({additionalRadius:n.number,arcLabelRadius:n.number,color:n.string,cornerRadius:n.number,innerRadius:n.number,outerRadius:n.number,paddingAngle:n.number}),highlighted:n.shape({additionalRadius:n.number,arcLabelRadius:n.number,color:n.string,cornerRadius:n.number,innerRadius:n.number,outerRadius:n.number,paddingAngle:n.number}),id:n.oneOfType([n.number,n.string]).isRequired,innerRadius:n.number,onItemClick:n.func,outerRadius:n.number.isRequired,paddingAngle:n.number,skipAnimation:n.bool,slotProps:n.object,slots:n.object});const K$=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","skipAnimation"];function Z$(e){return Te("MuiPieArcLabel",e)}const Q$=Oe("MuiPieArcLabel",["root","highlighted","faded","animate","series"]),J$=e=>{const{classes:t,id:r,isFaded:i,isHighlighted:o,skipAnimation:s}=e,a={root:["root",`series-${r}`,o&&"highlighted",i&&"faded",!s&&"animate"]};return ke(a,Z$,t)},e_=re("text",{name:"MuiPieArcLabel",slot:"Root"})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none",animationName:"animate-opacity",animationDuration:"0s",animationTimingFunction:Vt,transitionDuration:`${_t}ms`,transitionProperty:"opacity",transitionTimingFunction:Vt,[`&.${Q$.animate}`]:{animationDuration:`${_t}ms`},"@keyframes animate-opacity":{from:{opacity:0}}})),gu=P.forwardRef(function(t,r){const{id:i,classes:o,color:s,startAngle:a,endAngle:c,paddingAngle:u,arcLabelRadius:l,cornerRadius:d,formattedArcLabel:f,isHighlighted:p,isFaded:h,skipAnimation:g}=t,m=te(t,K$),b=J$({id:i,classes:o,isFaded:h,isHighlighted:p,skipAnimation:g}),O=aE({cornerRadius:d,startAngle:a,endAngle:c,innerRadius:l,outerRadius:l,paddingAngle:u,skipAnimation:g,ref:r});return C.jsx(e_,E({className:b.root},m,O,{children:f}))});process.env.NODE_ENV!=="production"&&(gu.displayName="PieArcLabel");process.env.NODE_ENV!=="production"&&(gu.propTypes={arcLabelRadius:n.number.isRequired,classes:n.object,color:n.string.isRequired,cornerRadius:n.number.isRequired,endAngle:n.number.isRequired,formattedArcLabel:n.string,id:n.oneOfType([n.number,n.string]).isRequired,innerRadius:n.number.isRequired,isFaded:n.bool.isRequired,isHighlighted:n.bool.isRequired,outerRadius:n.number.isRequired,paddingAngle:n.number.isRequired,skipAnimation:n.bool.isRequired,startAngle:n.number.isRequired});const t_=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],n_=180/Math.PI;function r_(e,t,r){if(!e||(r.endAngle-r.startAngle)*n_<t)return null;switch(e){case"label":return ft(r.label,"arc");case"value":return r.value?.toString();case"formattedValue":return r.formattedValue;default:return e(E({},r,{label:ft(r.label,"arc")}))}}function Fy(e){const{arcLabel:t,arcLabelMinAngle:r=0,arcLabelRadius:i,cornerRadius:o=0,data:s,faded:a={additionalRadius:-5},highlighted:c,id:u,innerRadius:l,outerRadius:d,paddingAngle:f=0,skipAnimation:p,slotProps:h,slots:g}=e,m=te(e,t_),y=jy({innerRadius:l,outerRadius:d,arcLabelRadius:i,cornerRadius:o,paddingAngle:f,id:u,highlighted:c,faded:a,data:s});if(s.length===0)return null;const b=g?.pieArcLabel??gu;return C.jsx("g",E({},m,{children:y.map(O=>C.jsx(b,E({startAngle:O.startAngle,endAngle:O.endAngle,paddingAngle:O.paddingAngle,innerRadius:O.innerRadius,outerRadius:O.outerRadius,arcLabelRadius:O.arcLabelRadius,cornerRadius:O.cornerRadius,id:u,color:O.color,isFaded:O.isFaded,isHighlighted:O.isHighlighted,formattedArcLabel:r_(t,r,O),skipAnimation:p??!1},h?.pieArcLabel),O.id??O.dataIndex))}))}process.env.NODE_ENV!=="production"&&(Fy.propTypes={arcLabel:n.oneOfType([n.oneOf(["formattedValue","label","value"]),n.func]),arcLabelMinAngle:n.number,arcLabelRadius:n.number,cornerRadius:n.number,data:n.arrayOf(n.shape({color:n.string.isRequired,endAngle:n.number.isRequired,formattedValue:n.string.isRequired,id:n.oneOfType([n.number,n.string]),index:n.number.isRequired,label:n.oneOfType([n.func,n.string]),labelMarkType:n.oneOfType([n.oneOf(["circle","line","square"]),n.func]),padAngle:n.number.isRequired,startAngle:n.number.isRequired,value:n.number.isRequired})).isRequired,faded:n.shape({additionalRadius:n.number,arcLabelRadius:n.number,color:n.string,cornerRadius:n.number,innerRadius:n.number,outerRadius:n.number,paddingAngle:n.number}),highlighted:n.shape({additionalRadius:n.number,arcLabelRadius:n.number,color:n.string,cornerRadius:n.number,innerRadius:n.number,outerRadius:n.number,paddingAngle:n.number}),id:n.oneOfType([n.number,n.string]).isRequired,innerRadius:n.number,outerRadius:n.number.isRequired,paddingAngle:n.number,skipAnimation:n.bool,slotProps:n.object,slots:n.object});function i_(e){return Te("MuiPieChart",e)}Oe("MuiPieChart",["root","series","seriesLabels"]);const o_=e=>ke({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},i_,e);function zy(e){const{skipAnimation:t,slots:r,slotProps:i,onItemClick:o}=e,s=ng(),a=rg(),c=qi(t),u=o_();if(s===void 0)return null;const{series:l,seriesOrder:d}=s;return C.jsxs("g",{children:[d.map(f=>{const{cornerRadius:p,paddingAngle:h,data:g,highlighted:m,faded:y}=l[f];return C.jsx("g",{className:u.series,transform:`translate(${a[f].center.x}, ${a[f].center.y})`,"data-series":f,children:C.jsx(qy,{innerRadius:a[f].radius.inner,outerRadius:a[f].radius.outer,cornerRadius:p,paddingAngle:h,id:f,data:g,skipAnimation:c,highlighted:m,faded:y,onItemClick:o,slots:r,slotProps:i})},f)}),d.map(f=>{const{cornerRadius:p,paddingAngle:h,arcLabel:g,arcLabelMinAngle:m,data:y}=l[f];return C.jsx("g",{className:u.seriesLabels,transform:`translate(${a[f].center.x}, ${a[f].center.y})`,"data-series":f,children:C.jsx(Fy,{innerRadius:a[f].radius.inner,outerRadius:a[f].radius.outer,arcLabelRadius:a[f].radius.label,cornerRadius:p,paddingAngle:h,id:f,data:y,skipAnimation:c,arcLabel:g,arcLabelMinAngle:m,slots:r,slotProps:i})},f)})]})}process.env.NODE_ENV!=="production"&&(zy.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});const s_=[Wn,Un,Xn,Nr];function a_(e){const t=Xe(),r=ma(),i=rg(),{isHighlighted:o,isFaded:s}=Li(r),a=ng();if(r===null||r.type!=="pie"||!a)return null;const c=a?.series[r.seriesId],{center:u,radius:l}=i[r.seriesId];if(!c||!u||!l)return null;const d=c.data[r.dataIndex],f=Ny(c,i[r.seriesId],o,s);return C.jsx(ga,E({transform:`translate(${i[c.id].center.x}, ${i[c.id].center.y})`,startAngle:d.startAngle,endAngle:d.endAngle,color:"transparent",pointerEvents:"none",skipInteraction:!0,skipAnimation:!0,stroke:(t.vars??t).palette.text.primary,id:c.id,className:G$.focusIndicator,dataIndex:r.dataIndex,isFaded:!1,isHighlighted:!1,isFocused:!1,strokeWidth:3},f,e))}const c_=["series","width","height","margin","colors","sx","skipAnimation","hideLegend","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className","showToolbar"],yu=P.forwardRef(function(t,r){const i=Ke({props:t,name:"MuiPieChart"}),{series:o,width:s,height:a,margin:c,colors:u,sx:l,skipAnimation:d,hideLegend:f,children:p,slots:h,slotProps:g,onItemClick:m,loading:y,highlightedItem:b,onHighlightChange:O,className:S,showToolbar:v}=i,T=te(i,c_),k=ih(c,HO),{chartDataProviderProps:w,chartsSurfaceProps:M}=au(E({},T,{series:o.map($=>E({type:"pie"},$)),width:s,height:a,margin:k,colors:u,highlightedItem:b,onHighlightChange:O,className:S,skipAnimation:d,plugins:s_}),r),I=h?.tooltip??na,_=i.slots?.toolbar;return C.jsx(ia,E({},w,{children:C.jsxs(ha,{legendPosition:i.slotProps?.legend?.position,legendDirection:i.slotProps?.legend?.direction??"vertical",sx:l,hideLegend:f??!1,children:[v&&_?C.jsx(_,E({},i.slotProps?.toolbar)):null,!f&&C.jsx(Vi,{direction:i.slotProps?.legend?.direction??"vertical",slots:h,slotProps:g}),C.jsxs(Gi,E({},M,{children:[C.jsx(zy,{slots:h,slotProps:g,onItemClick:m}),C.jsx(a_,{}),C.jsx(su,{loading:y,slots:h,slotProps:g}),p]})),!y&&C.jsx(I,E({trigger:"item"},g?.tooltip))]})}))});process.env.NODE_ENV!=="production"&&(yu.displayName="PieChart");process.env.NODE_ENV!=="production"&&(yu.propTypes={apiRef:n.shape({current:n.object}),children:n.node,className:n.string,colors:n.oneOfType([n.arrayOf(n.string),n.func]),dataset:n.arrayOf(n.object),desc:n.string,enableKeyboardNavigation:n.bool,height:n.number,hideLegend:n.bool,highlightedItem:n.shape({dataIndex:n.number,seriesId:n.oneOfType([n.number,n.string]).isRequired}),id:n.string,loading:n.bool,localeText:n.object,margin:n.oneOfType([n.number,n.shape({bottom:n.number,left:n.number,right:n.number,top:n.number})]),onHighlightChange:n.func,onItemClick:n.func,series:n.arrayOf(n.object).isRequired,showToolbar:n.bool,skipAnimation:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),theme:n.oneOf(["dark","light"]),title:n.string,width:n.number});const l_=({title:e,subTitle:t,withPaper:r=!0,height:i=300,sx:o,...s})=>{const a=Xe(),c=C.jsx(yu,{height:i,sx:{width:"100%",...o},...s});return r?C.jsxs(vt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&C.jsxs(vt.Box,{sx:{mb:2},children:[e&&C.jsx(vt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&C.jsx(vt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c};exports.CodeplexBarChart=B$;exports.CodeplexLineChart=l$;exports.CodeplexPieChart=l_;
|