@codeplex-sac/graficos 0.0.20 → 0.0.23
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 +32 -154
- package/index.d.ts +22 -5
- package/index.js +5245 -25502
- package/lib/_nucleo/animaciones.d.ts +30 -0
- package/lib/_nucleo/ejes.d.ts +18 -0
- package/lib/_nucleo/grafico-tooltip.d.ts +10 -0
- package/lib/_nucleo/index.d.ts +5 -0
- package/lib/_nucleo/periodo.d.ts +16 -0
- package/lib/_nucleo/tipos.d.ts +57 -0
- package/lib/_nucleo/usar-paleta-grafico.d.ts +10 -0
- package/lib/grafico-area/grafico-area.d.ts +18 -0
- package/lib/grafico-area/index.d.ts +1 -0
- package/lib/grafico-barra-linea/grafico-barra-linea.d.ts +11 -0
- package/lib/grafico-barra-linea/index.d.ts +1 -0
- package/lib/grafico-barras/grafico-barras.d.ts +18 -0
- package/lib/grafico-barras/index.d.ts +1 -0
- package/lib/grafico-barras-apiladas/grafico-barras-apiladas.d.ts +14 -0
- package/lib/grafico-barras-apiladas/index.d.ts +1 -0
- package/lib/grafico-barras-divergentes/grafico-barras-divergentes.d.ts +13 -0
- package/lib/grafico-barras-divergentes/index.d.ts +1 -0
- package/lib/grafico-barras-multiples/grafico-barras-multiples.d.ts +14 -0
- package/lib/grafico-barras-multiples/index.d.ts +1 -0
- package/lib/grafico-burbujas/grafico-burbujas.d.ts +15 -0
- package/lib/grafico-burbujas/index.d.ts +1 -0
- package/lib/grafico-comparativa/grafico-comparativa.d.ts +9 -0
- package/lib/grafico-comparativa/index.d.ts +1 -0
- package/lib/grafico-desglose/grafico-desglose.d.ts +10 -0
- package/lib/grafico-desglose/index.d.ts +1 -0
- package/lib/grafico-dispersion/grafico-dispersion.d.ts +14 -0
- package/lib/grafico-dispersion/index.d.ts +1 -0
- package/lib/grafico-embudo/grafico-embudo.d.ts +10 -0
- package/lib/grafico-embudo/index.d.ts +1 -0
- package/lib/grafico-lineas/grafico-lineas.d.ts +18 -0
- package/lib/grafico-lineas/index.d.ts +1 -0
- package/lib/grafico-mapa-calor/grafico-mapa-calor.d.ts +16 -0
- package/lib/grafico-mapa-calor/index.d.ts +1 -0
- package/lib/grafico-medidor/grafico-medidor.d.ts +11 -0
- package/lib/grafico-medidor/index.d.ts +1 -0
- package/lib/grafico-pastel/grafico-pastel.d.ts +17 -0
- package/lib/grafico-pastel/index.d.ts +1 -0
- package/lib/grafico-puntos-conectados/grafico-puntos-conectados.d.ts +12 -0
- package/lib/grafico-puntos-conectados/index.d.ts +1 -0
- package/lib/grafico-radar/grafico-radar.d.ts +19 -0
- package/lib/grafico-radar/index.d.ts +1 -0
- package/lib/grafico-treemap/grafico-treemap.d.ts +22 -0
- package/lib/grafico-treemap/index.d.ts +1 -0
- package/lib/grafico-velas/grafico-velas.d.ts +11 -0
- package/lib/grafico-velas/index.d.ts +1 -0
- package/package.json +5 -2
- package/lib/area-chart.d.ts +0 -11
- package/lib/area-chart.stories.d.ts +0 -8
- package/lib/bar-chart.d.ts +0 -8
- package/lib/bar-chart.stories.d.ts +0 -7
- package/lib/donut-chart.d.ts +0 -12
- package/lib/donut-chart.stories.d.ts +0 -9
- package/lib/line-chart.d.ts +0 -8
- package/lib/line-chart.stories.d.ts +0 -7
- package/lib/pie-chart.d.ts +0 -8
- package/lib/pie-chart.stories.d.ts +0 -7
package/index.cjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),Oe=require("@mui/material"),Ae=require("react"),Ot=require("@mui/system"),hg=require("@emotion/styled"),mg=require("@emotion/react"),gg=require("react-dom");function Jd(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 R=Jd(Ae),yg=Jd(gg);function w(){return w=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},w.apply(null,arguments)}function ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oi={exports:{}},Ti={exports:{}},de={};var xl;function bg(){if(xl)return de;xl=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 de.AsyncMode=u,de.ConcurrentMode=l,de.ContextConsumer=c,de.ContextProvider=a,de.Element=t,de.ForwardRef=d,de.Fragment=i,de.Lazy=g,de.Memo=h,de.Portal=r,de.Profiler=s,de.StrictMode=o,de.Suspense=f,de.isAsyncMode=function(T){return v(T)||S(T)===u},de.isConcurrentMode=v,de.isContextConsumer=function(T){return S(T)===c},de.isContextProvider=function(T){return S(T)===a},de.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},de.isForwardRef=function(T){return S(T)===d},de.isFragment=function(T){return S(T)===i},de.isLazy=function(T){return S(T)===g},de.isMemo=function(T){return S(T)===h},de.isPortal=function(T){return S(T)===r},de.isProfiler=function(T){return S(T)===s},de.isStrictMode=function(T){return S(T)===o},de.isSuspense=function(T){return S(T)===f},de.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)},de.typeOf=S,de}var fe={};var vl;function xg(){return vl||(vl=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($){return typeof $=="string"||typeof $=="function"||$===i||$===l||$===s||$===o||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===h||$.$$typeof===a||$.$$typeof===c||$.$$typeof===d||$.$$typeof===y||$.$$typeof===b||$.$$typeof===O||$.$$typeof===m)}function v($){if(typeof $=="object"&&$!==null){var se=$.$$typeof;switch(se){case t:var oe=$.type;switch(oe){case u:case l:case i:case s:case o:case f:return oe;default:var Ce=oe&&oe.$$typeof;switch(Ce){case c:case d:case g:case h:case a:return Ce;default:return se}}case r:return se}}}var T=u,k=l,A=c,M=a,I=t,D=d,_=i,x=g,E=h,P=r,j=s,q=o,F=f,G=!1;function V($){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($)||v($)===u}function L($){return v($)===l}function B($){return v($)===c}function Y($){return v($)===a}function Q($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function W($){return v($)===d}function K($){return v($)===i}function Z($){return v($)===g}function J($){return v($)===h}function ee($){return v($)===r}function z($){return v($)===s}function H($){return v($)===o}function X($){return v($)===f}fe.AsyncMode=T,fe.ConcurrentMode=k,fe.ContextConsumer=A,fe.ContextProvider=M,fe.Element=I,fe.ForwardRef=D,fe.Fragment=_,fe.Lazy=x,fe.Memo=E,fe.Portal=P,fe.Profiler=j,fe.StrictMode=q,fe.Suspense=F,fe.isAsyncMode=V,fe.isConcurrentMode=L,fe.isContextConsumer=B,fe.isContextProvider=Y,fe.isElement=Q,fe.isForwardRef=W,fe.isFragment=K,fe.isLazy=Z,fe.isMemo=J,fe.isPortal=ee,fe.isProfiler=z,fe.isStrictMode=H,fe.isSuspense=X,fe.isValidElementType=S,fe.typeOf=v})()),fe}var Ol;function tf(){return Ol||(Ol=1,process.env.NODE_ENV==="production"?Ti.exports=bg():Ti.exports=xg()),Ti.exports}var Rs,Tl;function vg(){if(Tl)return Rs;Tl=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 Rs=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},Rs}var Is,kl;function Da(){if(kl)return Is;kl=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Is=e,Is}var Ms,Sl;function nf(){return Sl||(Sl=1,Ms=Function.call.bind(Object.prototype.hasOwnProperty)),Ms}var _s,Cl;function Og(){if(Cl)return _s;Cl=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Da(),r={},i=nf();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={})},_s=o,_s}var $s,wl;function Tg(){if(wl)return $s;wl=1;var e=tf(),t=vg(),r=Da(),i=nf(),o=Og(),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 $s=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:D(),objectOf:M,oneOf:A,oneOfType:I,shape:x,exact:E};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 $=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 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 A(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,$){var se=F($);return se==="symbol"?String($):$});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],$=X(W,K,Z,J,ee,r);if($==null)return null;$.data&&i($.data,"expectedType")&&z.push($.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 D(){function L(B,Y,Q,W,K){return P(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 E(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
|
-
|
|
3
|
-
The following
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),ne=require("react"),c=require("@mui/material"),Ye=require("@mui/system"),oe=require("d3-scale"),ue=require("d3-shape"),le=require("d3-array"),or=require("@emotion/react"),hr=require("d3-hierarchy");function Kt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Ae=Kt(ne),Bt=e=>{const r=e.trim(),t=r.match(/^(\d{1,2})[/\-.](\d{1,2})[/\-.](\d{4})$/),o=r.match(/^(\d{2})(\d{2})(\d{4})$/),a=t??o;if(!a){const h=new Date(r);return Number.isNaN(h.getTime())?null:h}const i=Number(a[1]),d=Number(a[2]),f=Number(a[3]);if(d<1||d>12||i<1||i>31)return null;const y=new Date(f,d-1,i);return Number.isNaN(y.getTime())?null:y},Qt=e=>{const r=String(e.getDate()).padStart(2,"0"),t=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear();return`${r}/${t}/${o}`},At=e=>{if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if(typeof e=="number"){const r=new Date(e);return Number.isNaN(r.getTime())?null:r}return Bt(e)},Jt=(e,r)=>{const t=e.getFullYear(),o=e.getMonth(),a=e.getDate();switch(r){case"diario":return new Date(t,o,a);case"semanal":{const i=new Date(t,o,a),d=(i.getDay()+6)%7;return i.setDate(i.getDate()-d),i}case"quincenal":return new Date(t,o,a<=15?1:16);case"mensual":return new Date(t,o,1);case"anual":return new Date(t,0,1)}},Zt=(e,r)=>{if(e.length===0)return 0;switch(r){case"suma":return e.reduce((t,o)=>t+o,0);case"promedio":return e.reduce((t,o)=>t+o,0)/e.length;case"maximo":return Math.max(...e);case"minimo":return Math.min(...e);case"primero":return e[0];case"ultimo":return e[e.length-1]}},Rt=(e,r)=>{if(!r||!r.desde&&!r.hasta)return e;const t=r.desde?new Date(r.desde.getFullYear(),r.desde.getMonth(),r.desde.getDate()).getTime():-1/0,o=r.hasta?new Date(r.hasta.getFullYear(),r.hasta.getMonth(),r.hasta.getDate(),23,59,59,999).getTime():1/0;return e.filter(a=>{const i=At(a.etiqueta);if(!i)return!1;const d=i.getTime();return d>=t&&d<=o})},eo=(e,r={})=>{const{periodo:t,rango:o,agregacion:a="suma"}=r,i=Rt(e,o);if(!t)return i;const d=new Map;for(const f of i){const y=At(f.etiqueta);if(!y)continue;const h=Jt(y,t),v=h.getTime(),u=d.get(v);u?u.valores.push(f.valor):d.set(v,{fecha:h,valores:[f.valor]})}return Array.from(d.values()).sort((f,y)=>f.fecha.getTime()-y.fecha.getTime()).map(f=>({etiqueta:f.fecha,valor:Zt(f.valores,a)}))};function Ne(e,...r){const t=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(o=>t.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${t} for the full message.`}const ro="$$material",to=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,o)=>t.val-o.val),r.reduce((t,o)=>({...t,[o.key]:o.val}),{})};function oo(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:o=5,...a}=e,i=to(r),d=Object.keys(i);function f(x){return`@media (min-width:${typeof r[x]=="number"?r[x]:x}${t})`}function y(x){return`@media (max-width:${(typeof r[x]=="number"?r[x]:x)-o/100}${t})`}function h(x,m){const p=d.indexOf(m);return`@media (min-width:${typeof r[x]=="number"?r[x]:x}${t}) and (max-width:${(p!==-1&&typeof r[d[p]]=="number"?r[d[p]]:m)-o/100}${t})`}function v(x){return d.indexOf(x)+1<d.length?h(x,d[d.indexOf(x)+1]):f(x)}function u(x){const m=d.indexOf(x);return m===0?f(d[1]):m===d.length-1?y(d[m]):h(x,d[d.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:d,values:i,up:f,down:y,between:h,only:v,not:u,unit:t,...a}}function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dr={exports:{}},re={};var Xr;function ao(){if(Xr)return re;Xr=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function p(s){if(typeof s=="object"&&s!==null){var $=s.$$typeof;switch($){case e:switch(s=s.type,s){case t:case a:case o:case y:case h:case x:return s;default:switch(s=s&&s.$$typeof,s){case d:case f:case u:case v:return s;case i:return s;default:return $}}case r:return $}}}return re.ContextConsumer=i,re.ContextProvider=d,re.Element=e,re.ForwardRef=f,re.Fragment=t,re.Lazy=u,re.Memo=v,re.Portal=r,re.Profiler=a,re.StrictMode=o,re.Suspense=y,re.SuspenseList=h,re.isContextConsumer=function(s){return p(s)===i},re.isContextProvider=function(s){return p(s)===d},re.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===e},re.isForwardRef=function(s){return p(s)===f},re.isFragment=function(s){return p(s)===t},re.isLazy=function(s){return p(s)===u},re.isMemo=function(s){return p(s)===v},re.isPortal=function(s){return p(s)===r},re.isProfiler=function(s){return p(s)===a},re.isStrictMode=function(s){return p(s)===o},re.isSuspense=function(s){return p(s)===y},re.isSuspenseList=function(s){return p(s)===h},re.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===t||s===a||s===o||s===y||s===h||typeof s=="object"&&s!==null&&(s.$$typeof===u||s.$$typeof===v||s.$$typeof===d||s.$$typeof===i||s.$$typeof===f||s.$$typeof===m||s.getModuleId!==void 0)},re.typeOf=p,re}var te={};var Hr;function io(){return Hr||(Hr=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(typeof s=="object"&&s!==null){var $=s.$$typeof;switch($){case r:switch(s=s.type,s){case o:case i:case a:case h:case v:case m:return s;default:switch(s=s&&s.$$typeof,s){case f:case y:case x:case u:return s;case d:return s;default:return $}}case t:return $}}}var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");te.ContextConsumer=d,te.ContextProvider=f,te.Element=r,te.ForwardRef=y,te.Fragment=o,te.Lazy=x,te.Memo=u,te.Portal=t,te.Profiler=i,te.StrictMode=a,te.Suspense=h,te.SuspenseList=v,te.isContextConsumer=function(s){return e(s)===d},te.isContextProvider=function(s){return e(s)===f},te.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===r},te.isForwardRef=function(s){return e(s)===y},te.isFragment=function(s){return e(s)===o},te.isLazy=function(s){return e(s)===x},te.isMemo=function(s){return e(s)===u},te.isPortal=function(s){return e(s)===t},te.isProfiler=function(s){return e(s)===i},te.isStrictMode=function(s){return e(s)===a},te.isSuspense=function(s){return e(s)===h},te.isSuspenseList=function(s){return e(s)===v},te.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===o||s===i||s===a||s===h||s===v||typeof s=="object"&&s!==null&&(s.$$typeof===x||s.$$typeof===u||s.$$typeof===f||s.$$typeof===d||s.$$typeof===y||s.$$typeof===p||s.getModuleId!==void 0)},te.typeOf=e})()),te}var Kr;function so(){return Kr||(Kr=1,process.env.NODE_ENV==="production"?dr.exports=ao():dr.exports=io()),dr.exports}var Ot=so();function Ie(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _t(e){if(Ae.isValidElement(e)||Ot.isValidElementType(e)||!Ie(e))return e;const r={};return Object.keys(e).forEach(t=>{r[t]=_t(e[t])}),r}function xe(e,r,t={clone:!0}){const o=t.clone?{...e}:e;return Ie(e)&&Ie(r)&&Object.keys(r).forEach(a=>{Ae.isValidElement(r[a])||Ot.isValidElementType(r[a])?o[a]=r[a]:Ie(r[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Ie(e[a])?o[a]=xe(e[a],r[a],t):t.clone?o[a]=Ie(r[a])?_t(r[a]):r[a]:o[a]=r[a]}),o}function co(e,r=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,t))}function Vr(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),co(e,r,t)}function lo(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(r);return t&&t[0].length===1&&(t=t.map(o=>o+o)),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.`),t?`rgb${t.length===4?"a":""}(${t.map((o,a)=>a<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function De(e){if(e.type)return e;if(e.charAt(0)==="#")return De(lo(e));const r=e.indexOf("("),t=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
2
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ne(9,e));let o=e.substring(r+1,e.length-1),a;if(t==="color"){if(o=o.split(" "),a=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
|
|
3
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ne(10,a))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:t,values:o,colorSpace:a}}const po=e=>{const r=De(e);return r.values.slice(0,3).map((t,o)=>r.type.includes("hsl")&&o!==0?`${t}%`:t).join(" ")},Ze=(e,r)=>{try{return po(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function xr(e){const{type:r,colorSpace:t}=e;let{values:o}=e;return r.includes("rgb")?o=o.map((a,i)=>i<3?parseInt(a,10):a):r.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),r.includes("color")?o=`${t} ${o.join(" ")}`:o=`${o.join(", ")}`,`${r}(${o})`}function Pt(e){e=De(e);const{values:r}=e,t=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),d=(h,v=(h+t/30)%12)=>a-i*Math.max(Math.min(v-3,9-v,1),-1);let f="rgb";const y=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return e.type==="hsla"&&(f+="a",y.push(r[3])),xr({type:f,values:y})}function Lr(e){e=De(e);let r=e.type==="hsl"||e.type==="hsla"?De(Pt(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function Qr(e,r){const t=Lr(e),o=Lr(r);return(Math.max(t,o)+.05)/(Math.min(t,o)+.05)}function Mt(e,r){return e=De(e),r=Vr(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,xr(e)}function ze(e,r,t){try{return Mt(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function gr(e,r){if(e=De(e),r=Vr(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-r;return xr(e)}function Z(e,r,t){try{return gr(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function yr(e,r){if(e=De(e),r=Vr(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return xr(e)}function ee(e,r,t){try{return yr(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function uo(e,r=.15){return Lr(e)>.5?gr(e,r):yr(e,r)}function pr(e,r,t){try{return uo(e,r)}catch{return e}}const tr={black:"#000",white:"#fff"},fo={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"},qe={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ge={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qe={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Fe={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ue={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Xe={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function It(){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:tr.white,default:tr.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 Nt=It();function Dt(){return{text:{primary:tr.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:tr.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 zr=Dt();function Jr(e,r,t,o){const a=o.light||o,i=o.dark||o*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=yr(e.main,a):r==="dark"&&(e.dark=gr(e.main,i)))}function Zr(e,r,t,o,a){const i=a.light||a,d=a.dark||a*1.5;r[t]||(r.hasOwnProperty(o)?r[t]=r[o]:t==="light"?r.light=`color-mix(in ${e}, ${r.main}, #fff ${(i*100).toFixed(0)}%)`:t==="dark"&&(r.dark=`color-mix(in ${e}, ${r.main}, #000 ${(d*100).toFixed(0)}%)`))}function ho(e="light"){return e==="dark"?{main:Fe[200],light:Fe[50],dark:Fe[400]}:{main:Fe[700],light:Fe[400],dark:Fe[800]}}function mo(e="light"){return e==="dark"?{main:qe[200],light:qe[50],dark:qe[400]}:{main:qe[500],light:qe[300],dark:qe[700]}}function xo(e="light"){return e==="dark"?{main:Ge[500],light:Ge[300],dark:Ge[700]}:{main:Ge[700],light:Ge[400],dark:Ge[800]}}function go(e="light"){return e==="dark"?{main:Ue[400],light:Ue[300],dark:Ue[700]}:{main:Ue[700],light:Ue[500],dark:Ue[900]}}function yo(e="light"){return e==="dark"?{main:Xe[400],light:Xe[300],dark:Xe[700]}:{main:Xe[800],light:Xe[500],dark:Xe[900]}}function bo(e="light"){return e==="dark"?{main:Qe[400],light:Qe[300],dark:Qe[700]}:{main:"#ed6c02",light:Qe[500],dark:Qe[900]}}function vo(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Yr(e){const{mode:r="light",contrastThreshold:t=3,tonalOffset:o=.2,colorSpace:a,...i}=e,d=e.primary||ho(r),f=e.secondary||mo(r),y=e.error||xo(r),h=e.info||go(r),v=e.success||yo(r),u=e.warning||bo(r);function x($){if(a)return vo($);const E=Qr($,zr.text.primary)>=t?zr.text.primary:Nt.text.primary;if(process.env.NODE_ENV!=="production"){const w=Qr($,E);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${E} on ${$}`,"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(`
|
|
4
|
+
`))}return E}const m=({color:$,name:E,mainShade:w=500,lightShade:j=300,darkShade:b=700})=>{if($={...$},!$.main&&$[w]&&($.main=$[w]),!$.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${E?` (${E})`:""} provided to augmentColor(color) is invalid.
|
|
5
|
+
The color object needs to have a \`main\` property or a \`${w}\` property.`:Ne(11,E?` (${E})`:"",w));if(typeof $.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${E?` (${E})`:""} provided to augmentColor(color) is invalid.
|
|
6
|
+
\`color.main\` should be a string, but \`${JSON.stringify($.main)}\` was provided instead.
|
|
8
7
|
|
|
9
8
|
Did you intend to use one of the following approaches?
|
|
10
9
|
|
|
@@ -16,155 +15,34 @@ const theme1 = createTheme({ palette: {
|
|
|
16
15
|
|
|
17
16
|
const theme2 = createTheme({ palette: {
|
|
18
17
|
primary: { main: green[500] },
|
|
19
|
-
} });`:Zt(12,b?` (${b})`:"",JSON.stringify(y.main)));return o?($l(o,y,"light",S,i),$l(o,y,"dark",v,i)):(_l(y,"light",S,i),_l(y,"dark",v,i)),y.contrastText||(y.contrastText=p(y.main)),y};let g;return t==="light"?g=af():t==="dark"&&(g=lf()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et({common:{...jr},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:Dg,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:i,...g},s)}const en=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.string,n.object,n.array]):{};function _r(e,t){return t?et(e,t,{clone:!1}):e}function Dl(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 Hg(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Vg(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>\`.
|
|
20
|
-
|
|
21
|
-
`)):
|
|
22
|
-
`))
|
|
23
|
-
`))
|
|
24
|
-
`)):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 ly(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Bl=[];function gn(e){return Bl[0]=e,ay(Bl)}const uy="exact-prop: ";function ff(e){return process.env.NODE_ENV==="production"?e:{...e,[uy]: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 vn=typeof window<"u"?R.useLayoutEffect:R.useEffect;function dy(e){return Object.keys(e).length===0}function pf(e=null){const t=R.useContext(mg.ThemeContext);return!t||dy(t)?e:t}const fy=R.createContext();process.env.NODE_ENV!=="production"&&(n.node,n.bool);const ei=()=>R.useContext(fy)??!1;function hf(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=hf(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function ae(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=hf(e))&&(i&&(i+=" "),i+=t);return i}function Nr(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]=Nr(a[l],c[l],r)}}}else s==="className"&&r&&t.className?i.className=ae(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}const py=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.node,n.object);function hy(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?Nr(o.defaultProps,i,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Nr(o,i,t.components.mergeClassNameAndStyle):i}function my({props:e,name:t}){const r=R.useContext(py);return hy({props:e,name:t,theme:{components:r}})}let Hl=0;function gy(e){const[t,r]=R.useState(e),i=e||t;return R.useEffect(()=>{t==null&&(Hl+=1,r(`mui-${Hl}`))},[t]),i}const yy={...R},Vl=yy.useId;function mf(e){if(Vl!==void 0){const t=Vl();return e??t}return gy(e)}const by={borderRadius:4};function xy(e=8,t=Na({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 Mo(...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]?_r(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 ct(e){return typeof e!="number"?e:`${e}px solid`}function gt(e,t){return Se({prop:e,themeKey:"borders",transform:t})}const vy=gt("border",ct),Oy=gt("borderTop",ct),Ty=gt("borderRight",ct),ky=gt("borderBottom",ct),Sy=gt("borderLeft",ct),Cy=gt("borderColor"),wy=gt("borderTopColor"),Ay=gt("borderRightColor"),Ey=gt("borderBottomColor"),Py=gt("borderLeftColor"),Ry=gt("outline",ct),Iy=gt("outlineColor"),_o=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Jr(t,i)});return qt(e,e.borderRadius,r)}return null};_o.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:en}:{};_o.filterProps=["borderRadius"];Mo(vy,Oy,Ty,ky,Sy,Cy,wy,Ay,Ey,Py,_o,Ry,Iy);const $o=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=i=>({gap:Jr(t,i)});return qt(e,e.gap,r)}return null};$o.propTypes=process.env.NODE_ENV!=="production"?{gap:en}:{};$o.filterProps=["gap"];const Do=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Jr(t,i)});return qt(e,e.columnGap,r)}return null};Do.propTypes=process.env.NODE_ENV!=="production"?{columnGap:en}:{};Do.filterProps=["columnGap"];const Lo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Jr(t,i)});return qt(e,e.rowGap,r)}return null};Lo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:en}:{};Lo.filterProps=["rowGap"];const My=Se({prop:"gridColumn"}),_y=Se({prop:"gridRow"}),$y=Se({prop:"gridAutoFlow"}),Dy=Se({prop:"gridAutoColumns"}),Ly=Se({prop:"gridAutoRows"}),jy=Se({prop:"gridTemplateColumns"}),Ny=Se({prop:"gridTemplateRows"}),qy=Se({prop:"gridTemplateAreas"}),Fy=Se({prop:"gridArea"});Mo($o,Do,Lo,My,_y,$y,Dy,Ly,jy,Ny,qy,Fy);function Kn(e,t){return t==="grey"?t:e}const zy=Se({prop:"color",themeKey:"palette",transform:Kn}),By=Se({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kn}),Hy=Se({prop:"backgroundColor",themeKey:"palette",transform:Kn});Mo(zy,By,Hy);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const Vy=Se({prop:"width",transform:Je}),qa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||Eo[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Je(r)}};return qt(e,e.maxWidth,t)}return null};qa.filterProps=["maxWidth"];const Gy=Se({prop:"minWidth",transform:Je}),Uy=Se({prop:"height",transform:Je}),Yy=Se({prop:"maxHeight",transform:Je}),Wy=Se({prop:"minHeight",transform:Je});Se({prop:"size",cssProperty:"width",transform:Je});Se({prop:"size",cssProperty:"height",transform:Je});const Xy=Se({prop:"boxSizing"});Mo(Vy,qa,Gy,Uy,Yy,Wy,Xy);const ti={border:{themeKey:"borders",transform:ct},borderTop:{themeKey:"borders",transform:ct},borderRight:{themeKey:"borders",transform:ct},borderBottom:{themeKey:"borders",transform:ct},borderLeft:{themeKey:"borders",transform:ct},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ct},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_o},color:{themeKey:"palette",transform:Kn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kn},backgroundColor:{themeKey:"palette",transform:Kn},p:{style:ke},pt:{style:ke},pr:{style:ke},pb:{style:ke},pl:{style:ke},px:{style:ke},py:{style:ke},padding:{style:ke},paddingTop:{style:ke},paddingRight:{style:ke},paddingBottom:{style:ke},paddingLeft:{style:ke},paddingX:{style:ke},paddingY:{style:ke},paddingInline:{style:ke},paddingInlineStart:{style:ke},paddingInlineEnd:{style:ke},paddingBlock:{style:ke},paddingBlockStart:{style:ke},paddingBlockEnd:{style:ke},m:{style:Te},mt:{style:Te},mr:{style:Te},mb:{style:Te},ml:{style:Te},mx:{style:Te},my:{style:Te},margin:{style:Te},marginTop:{style:Te},marginRight:{style:Te},marginBottom:{style:Te},marginLeft:{style:Te},marginX:{style:Te},marginY:{style:Te},marginInline:{style:Te},marginInlineStart:{style:Te},marginInlineEnd:{style:Te},marginBlock:{style:Te},marginBlockStart:{style:Te},marginBlockEnd:{style:Te},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:$o},rowGap:{style:Lo},columnGap:{style:Do},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:qa},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},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 Ky(...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 Zy(e,t){return typeof e=="function"?e(t):e}function Qy(){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=Po(o,l)||{};return f?f(a):qt(a,i,g=>{let m=Xi(p,d,g);return g===m&&typeof g=="string"&&(m=Xi(p,d,`${r}${g==="default"?"":be(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??ti;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=Yg(o.breakpoints),f=Object.keys(d);let p=d;return Object.keys(l).forEach(h=>{const g=Zy(l[h],o);if(g!=null)if(typeof g=="object")if(a[h])p=_r(p,e(h,g,o,a));else{const m=qt({theme:o},g,y=>({[h]:y}));Ky(m,g)?p[h]=t({sx:g,theme:o,nested:!0}):p=_r(p,m)}else p=_r(p,e(h,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":Dl(o,jl(f,p))}:Dl(o,jl(f,p))}return Array.isArray(i)?i.map(c):c(i)}return t}const er=Qy();er.filterProps=["sx"];function Jy(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 Fa(e={},...t){const{breakpoints:r={},palette:i={},spacing:o,shape:s={},...a}=e,c=Ag(r),u=xy(o);let l=et({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...by,...s}},a);return l=Gg(l),l.applyStyles=Jy,l=t.reduce((d,f)=>et(d,f),l),l.unstable_sxConfig={...ti,...a?.unstable_sxConfig},l.unstable_sx=function(f){return er({sx:f,theme:this})},l}const eb=Fa();function tb(e=eb){return pf(e)}const Gl=(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])})},nb=(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)},rb=(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 js(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},o={},s={},a={};return nb(e,(c,u,l)=>{if((typeof u=="string"||typeof u=="number")&&(!i||!i(c,u))){const d=`--${r?`${r}-`:""}${c.join("-")}`,f=rb(c,u);Object.assign(o,{[d]:f}),Gl(s,c,`var(${d})`,l),Gl(a,c,`var(${d}, ${f})`,l)}},c=>c[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function ib(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}=js(l,t);let h=p;const g={},{[u]:m,...y}=a;if(Object.entries(y||{}).forEach(([v,T])=>{const{vars:k,css:A,varsWithDefaults:M}=js(T,t);h=et(h,M),g[v]={css:A,vars:k}}),m){const{css:v,vars:T,varsWithDefaults:k}=js(m,t);h=et(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=et(v,T)}),v},generateStyleSheets:()=>{const v=[],T=e.defaultColorScheme||"light";function k(I,D){Object.keys(D).length&&v.push(typeof I=="string"?{[I]:{...D}}:I)}k(r(void 0,{...f}),f);const{[T]:A,...M}=g;if(A){const{css:I}=A,D=a[T]?.palette?.mode,_=!i&&D?{colorScheme:D,...I}:{...I};k(r(T,{..._}),_)}return Object.entries(M).forEach(([I,{css:D}])=>{const _=a[I]?.palette?.mode,x=!i&&_?{colorScheme:_,...D}:{...D};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 ob(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 sb(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)} &`:"&"}}const ab=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??ti;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function cb(e){const{sx:t,...r}=e,{systemProps:i,otherProps:o}=ab(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return Ct(c)?{...i,...c}:i}:s={...i,...t},{...o,sx:s}}const Ul=e=>e,lb=()=>{let e=Ul;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ul}}},ub=lb(),db={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 tn(e,t,r="Mui"){const i=db[t];return i?`${r}-${i}`:`${ub.generate(e)}-${t}`}function fb(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function pb(e){return Math.round(e*1e5)/1e5}const Yl={textTransform:"uppercase"},Wl='"Roboto", "Helvetica", "Arial", sans-serif';function hb(e,t){const{fontFamily:r=Wl,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===Wl?{letterSpacing:`${pb(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,Yl),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Yl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return et({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c,...m},f,{clone:!1})}const mb=.2,gb=.14,yb=.12;function ve(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mb})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gb})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yb})`].join(",")}const bb=["none",ve(0,2,1,-1,0,1,1,0,0,1,3,0),ve(0,3,1,-2,0,2,2,0,0,1,5,0),ve(0,3,3,-2,0,3,4,0,0,1,8,0),ve(0,2,4,-1,0,4,5,0,0,1,10,0),ve(0,3,5,-1,0,5,8,0,0,1,14,0),ve(0,3,5,-1,0,6,10,0,0,1,18,0),ve(0,4,5,-2,0,7,10,1,0,2,16,1),ve(0,5,5,-3,0,8,10,1,0,3,14,2),ve(0,5,6,-3,0,9,12,1,0,3,16,2),ve(0,6,6,-3,0,10,14,1,0,4,18,3),ve(0,6,7,-4,0,11,15,1,0,4,20,3),ve(0,7,8,-4,0,12,17,2,0,5,22,4),ve(0,7,8,-4,0,13,19,2,0,5,24,4),ve(0,7,9,-4,0,14,21,2,0,5,26,4),ve(0,8,9,-5,0,15,22,2,0,6,28,5),ve(0,8,10,-5,0,16,24,2,0,6,30,5),ve(0,8,11,-5,0,17,26,2,0,6,32,5),ve(0,9,11,-5,0,18,28,2,0,7,34,6),ve(0,9,12,-6,0,19,29,2,0,7,36,6),ve(0,10,13,-6,0,20,31,3,0,8,38,7),ve(0,10,13,-6,0,21,33,3,0,8,40,7),ve(0,10,14,-6,0,22,35,3,0,8,42,7),ve(0,11,14,-7,0,23,36,3,0,9,44,8),ve(0,11,15,-7,0,24,38,3,0,9,46,8)],xb={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)"},vb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xl(e){return`${Math.round(e)}ms`}function Ob(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Tb(e){const t={...xb,...e.easing},r={...vb,...e.duration};return{getAutoHeightDuration:Ob,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(`
|
|
25
|
-
`)),Object.keys(
|
|
18
|
+
} });`:Ne(12,E?` (${E})`:"",JSON.stringify($.main)));return a?(Zr(a,$,"light",j,o),Zr(a,$,"dark",b,o)):(Jr($,"light",j,o),Jr($,"dark",b,o)),$.contrastText||($.contrastText=x($.main)),$};let p;return r==="light"?p=It():r==="dark"&&(p=Dt()),process.env.NODE_ENV!=="production"&&(p||console.error(`MUI: The palette mode \`${r}\` is not supported.`)),xe({common:{...tr},mode:r,primary:m({color:d,name:"primary"}),secondary:m({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:y,name:"error"}),warning:m({color:u,name:"warning"}),info:m({color:h,name:"info"}),success:m({color:v,name:"success"}),grey:fo,contrastThreshold:t,getContrastText:x,augmentColor:m,tonalOffset:o,...p},i)}var ur={exports:{}},fr={exports:{}},K={};var et;function $o(){if(et)return K;et=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,s=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function j(g){if(typeof g=="object"&&g!==null){var S=g.$$typeof;switch(S){case r:switch(g=g.type,g){case y:case h:case o:case i:case a:case u:return g;default:switch(g=g&&g.$$typeof,g){case f:case v:case p:case m:case d:return g;default:return S}}case t:return S}}}function b(g){return j(g)===h}return K.AsyncMode=y,K.ConcurrentMode=h,K.ContextConsumer=f,K.ContextProvider=d,K.Element=r,K.ForwardRef=v,K.Fragment=o,K.Lazy=p,K.Memo=m,K.Portal=t,K.Profiler=i,K.StrictMode=a,K.Suspense=u,K.isAsyncMode=function(g){return b(g)||j(g)===y},K.isConcurrentMode=b,K.isContextConsumer=function(g){return j(g)===f},K.isContextProvider=function(g){return j(g)===d},K.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===r},K.isForwardRef=function(g){return j(g)===v},K.isFragment=function(g){return j(g)===o},K.isLazy=function(g){return j(g)===p},K.isMemo=function(g){return j(g)===m},K.isPortal=function(g){return j(g)===t},K.isProfiler=function(g){return j(g)===i},K.isStrictMode=function(g){return j(g)===a},K.isSuspense=function(g){return j(g)===u},K.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===h||g===i||g===a||g===u||g===x||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===m||g.$$typeof===d||g.$$typeof===f||g.$$typeof===v||g.$$typeof===$||g.$$typeof===E||g.$$typeof===w||g.$$typeof===s)},K.typeOf=j,K}var Q={};var rt;function wo(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,s=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function j(R){return typeof R=="string"||typeof R=="function"||R===o||R===h||R===i||R===a||R===u||R===x||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===m||R.$$typeof===d||R.$$typeof===f||R.$$typeof===v||R.$$typeof===$||R.$$typeof===E||R.$$typeof===w||R.$$typeof===s)}function b(R){if(typeof R=="object"&&R!==null){var $e=R.$$typeof;switch($e){case r:var lr=R.type;switch(lr){case y:case h:case o:case i:case a:case u:return lr;default:var Ur=lr&&lr.$$typeof;switch(Ur){case f:case v:case p:case m:case d:return Ur;default:return $e}}case t:return $e}}}var g=y,S=h,B=f,_=d,M=r,Y=v,P=o,l=p,A=m,k=t,W=i,z=a,N=u,I=!1;function U(R){return I||(I=!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.")),C(R)||b(R)===y}function C(R){return b(R)===h}function O(R){return b(R)===f}function D(R){return b(R)===d}function V(R){return typeof R=="object"&&R!==null&&R.$$typeof===r}function L(R){return b(R)===v}function F(R){return b(R)===o}function q(R){return b(R)===p}function G(R){return b(R)===m}function X(R){return b(R)===t}function J(R){return b(R)===i}function H(R){return b(R)===a}function fe(R){return b(R)===u}Q.AsyncMode=g,Q.ConcurrentMode=S,Q.ContextConsumer=B,Q.ContextProvider=_,Q.Element=M,Q.ForwardRef=Y,Q.Fragment=P,Q.Lazy=l,Q.Memo=A,Q.Portal=k,Q.Profiler=W,Q.StrictMode=z,Q.Suspense=N,Q.isAsyncMode=U,Q.isConcurrentMode=C,Q.isContextConsumer=O,Q.isContextProvider=D,Q.isElement=V,Q.isForwardRef=L,Q.isFragment=F,Q.isLazy=q,Q.isMemo=G,Q.isPortal=X,Q.isProfiler=J,Q.isStrictMode=H,Q.isSuspense=fe,Q.isValidElementType=j,Q.typeOf=b})()),Q}var tt;function Lt(){return tt||(tt=1,process.env.NODE_ENV==="production"?fr.exports=$o():fr.exports=wo()),fr.exports}var Rr,ot;function So(){if(ot)return Rr;ot=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var d={},f=0;f<10;f++)d["_"+String.fromCharCode(f)]=f;var y=Object.getOwnPropertyNames(d).map(function(v){return d[v]});if(y.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(v){h[v]=v}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rr=a()?Object.assign:function(i,d){for(var f,y=o(i),h,v=1;v<arguments.length;v++){f=Object(arguments[v]);for(var u in f)r.call(f,u)&&(y[u]=f[u]);if(e){h=e(f);for(var x=0;x<h.length;x++)t.call(f,h[x])&&(y[h[x]]=f[h[x]])}}return y},Rr}var Or,nt;function qr(){if(nt)return Or;nt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Or=e,Or}var _r,at;function zt(){return at||(at=1,_r=Function.call.bind(Object.prototype.hasOwnProperty)),_r}var Pr,it;function jo(){if(it)return Pr;it=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=qr(),t={},o=zt();e=function(i){var d="Warning: "+i;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function a(i,d,f,y,h){if(process.env.NODE_ENV!=="production"){for(var v in i)if(o(i,v)){var u;try{if(typeof i[v]!="function"){var x=Error((y||"React class")+": "+f+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}u=i[v](d,v,y,f,null,r)}catch(p){u=p}if(u&&!(u instanceof Error)&&e((y||"React class")+": type specification of "+f+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in t)){t[u.message]=!0;var m=h?h():"";e("Failed "+f+" type: "+u.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Pr=a,Pr}var Mr,st;function To(){if(st)return Mr;st=1;var e=Lt(),r=So(),t=qr(),o=zt(),a=jo(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(f){var y="Warning: "+f;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return Mr=function(f,y){var h=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function u(C){var O=C&&(h&&C[h]||C[v]);if(typeof O=="function")return O}var x="<<anonymous>>",m={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:w(),arrayOf:j,element:b(),elementType:g(),instanceOf:S,node:Y(),objectOf:_,oneOf:B,oneOfType:M,shape:l,exact:A};function p(C,O){return C===O?C!==0||1/C===1/O:C!==C&&O!==O}function s(C,O){this.message=C,this.data=O&&typeof O=="object"?O:{},this.stack=""}s.prototype=Error.prototype;function $(C){if(process.env.NODE_ENV!=="production")var O={},D=0;function V(F,q,G,X,J,H,fe){if(X=X||x,H=H||G,fe!==t){if(y){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=X+":"+G;!O[$e]&&D<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+X+"`. 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."),O[$e]=!0,D++)}}return q[G]==null?F?q[G]===null?new s("The "+J+" `"+H+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new s("The "+J+" `"+H+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:C(q,G,X,J,H)}var L=V.bind(null,!1);return L.isRequired=V.bind(null,!0),L}function E(C){function O(D,V,L,F,q,G){var X=D[V],J=z(X);if(J!==C){var H=N(X);return new s("Invalid "+F+" `"+q+"` of type "+("`"+H+"` supplied to `"+L+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return $(O)}function w(){return $(d)}function j(C){function O(D,V,L,F,q){if(typeof C!="function")return new s("Property `"+q+"` of component `"+L+"` has invalid PropType notation inside arrayOf.");var G=D[V];if(!Array.isArray(G)){var X=z(G);return new s("Invalid "+F+" `"+q+"` of type "+("`"+X+"` supplied to `"+L+"`, expected an array."))}for(var J=0;J<G.length;J++){var H=C(G,J,L,F,q+"["+J+"]",t);if(H instanceof Error)return H}return null}return $(O)}function b(){function C(O,D,V,L,F){var q=O[D];if(!f(q)){var G=z(q);return new s("Invalid "+L+" `"+F+"` of type "+("`"+G+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return $(C)}function g(){function C(O,D,V,L,F){var q=O[D];if(!e.isValidElementType(q)){var G=z(q);return new s("Invalid "+L+" `"+F+"` of type "+("`"+G+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return $(C)}function S(C){function O(D,V,L,F,q){if(!(D[V]instanceof C)){var G=C.name||x,X=U(D[V]);return new s("Invalid "+F+" `"+q+"` of type "+("`"+X+"` supplied to `"+L+"`, expected ")+("instance of `"+G+"`."))}return null}return $(O)}function B(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),d;function O(D,V,L,F,q){for(var G=D[V],X=0;X<C.length;X++)if(p(G,C[X]))return null;var J=JSON.stringify(C,function(fe,R){var $e=N(R);return $e==="symbol"?String(R):R});return new s("Invalid "+F+" `"+q+"` of value `"+String(G)+"` "+("supplied to `"+L+"`, expected one of "+J+"."))}return $(O)}function _(C){function O(D,V,L,F,q){if(typeof C!="function")return new s("Property `"+q+"` of component `"+L+"` has invalid PropType notation inside objectOf.");var G=D[V],X=z(G);if(X!=="object")return new s("Invalid "+F+" `"+q+"` of type "+("`"+X+"` supplied to `"+L+"`, expected an object."));for(var J in G)if(o(G,J)){var H=C(G,J,L,F,q+"."+J,t);if(H instanceof Error)return H}return null}return $(O)}function M(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var O=0;O<C.length;O++){var D=C[O];if(typeof D!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(D)+" at index "+O+"."),d}function V(L,F,q,G,X){for(var J=[],H=0;H<C.length;H++){var fe=C[H],R=fe(L,F,q,G,X,t);if(R==null)return null;R.data&&o(R.data,"expectedType")&&J.push(R.data.expectedType)}var $e=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new s("Invalid "+G+" `"+X+"` supplied to "+("`"+q+"`"+$e+"."))}return $(V)}function Y(){function C(O,D,V,L,F){return k(O[D])?null:new s("Invalid "+L+" `"+F+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return $(C)}function P(C,O,D,V,L){return new s((C||"React class")+": "+O+" type `"+D+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+L+"`.")}function l(C){function O(D,V,L,F,q){var G=D[V],X=z(G);if(X!=="object")return new s("Invalid "+F+" `"+q+"` of type `"+X+"` "+("supplied to `"+L+"`, expected `object`."));for(var J in C){var H=C[J];if(typeof H!="function")return P(L,F,q,J,N(H));var fe=H(G,J,L,F,q+"."+J,t);if(fe)return fe}return null}return $(O)}function A(C){function O(D,V,L,F,q){var G=D[V],X=z(G);if(X!=="object")return new s("Invalid "+F+" `"+q+"` of type `"+X+"` "+("supplied to `"+L+"`, expected `object`."));var J=r({},D[V],C);for(var H in J){var fe=C[H];if(o(C,H)&&typeof fe!="function")return P(L,F,q,H,N(fe));if(!fe)return new s("Invalid "+F+" `"+q+"` key `"+H+"` supplied to `"+L+"`.\nBad object: "+JSON.stringify(D[V],null," ")+`
|
|
19
|
+
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var R=fe(G,H,L,F,q+"."+H,t);if(R)return R}return null}return $(O)}function k(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(k);if(C===null||f(C))return!0;var O=u(C);if(O){var D=O.call(C),V;if(O!==C.entries){for(;!(V=D.next()).done;)if(!k(V.value))return!1}else for(;!(V=D.next()).done;){var L=V.value;if(L&&!k(L[1]))return!1}}else return!1;return!0;default:return!1}}function W(C,O){return C==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function z(C){var O=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":W(O,C)?"symbol":O}function N(C){if(typeof C>"u"||C===null)return""+C;var O=z(C);if(O==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return O}function I(C){var O=N(C);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function U(C){return!C.constructor||!C.constructor.name?x:C.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},Mr}var Ir,ct;function Co(){if(ct)return Ir;ct=1;var e=qr();function r(){}function t(){}return t.resetWarningCache=r,Ir=function(){function o(d,f,y,h,v,u){if(u!==e){var x=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 x.name="Invariant Violation",x}}o.isRequired=o;function a(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Ir}var lt;function Eo(){if(lt)return ur.exports;if(lt=1,process.env.NODE_ENV!=="production"){var e=Lt(),r=!0;ur.exports=To()(e.isElement,r)}else ur.exports=Co()();return ur.exports}var ko=Eo();const Je=no(ko),Le=process.env.NODE_ENV!=="production"?Je.oneOfType([Je.number,Je.string,Je.object,Je.array]):{};function rr(e,r){return r?xe(e,r,{clone:!1}):e}function dt(e,r){if(!e.containerQueries)return r;const t=Object.keys(r).filter(o=>o.startsWith("@container")).sort((o,a)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(a.match(i)?.[1]||0)});return t.length?t.reduce((o,a)=>{const i=r[a];return delete o[a],o[a]=i,o},{...r}):r}function Bo(e,r){return r==="@"||r.startsWith("@")&&(e.some(t=>r.startsWith(`@${t}`))||!!r.match(/^@\d/))}function Ao(e,r){const t=r.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
20
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ne(18,`(${r})`));return null}const[,o,a]=t,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(i)}function Ro(e){const r=(i,d)=>i.replace("@media",d?`@container ${d}`:"@container");function t(i,d){i.up=(...f)=>r(e.breakpoints.up(...f),d),i.down=(...f)=>r(e.breakpoints.down(...f),d),i.between=(...f)=>r(e.breakpoints.between(...f),d),i.only=(...f)=>r(e.breakpoints.only(...f),d),i.not=(...f)=>{const y=r(e.breakpoints.not(...f),d);return y.includes("not all and")?y.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):y}}const o={},a=i=>(t(o,i),o);return t(a),{...e,containerQueries:a}}const br={xs:0,sm:600,md:900,lg:1200,xl:1536},pt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${br[e]}px)`},Oo={containerQueries:e=>({up:r=>{let t=typeof r=="number"?r:br[r]||r;return typeof t=="number"&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function Pe(e,r,t){const o=e.theme||{};if(Array.isArray(r)){const i=o.breakpoints||pt;return r.reduce((d,f,y)=>(d[i.up(i.keys[y])]=t(r[y]),d),{})}if(typeof r=="object"){const i=o.breakpoints||pt;return Object.keys(r).reduce((d,f)=>{if(Bo(i.keys,f)){const y=Ao(o.containerQueries?o:Oo,f);y&&(d[y]=t(r[f],f))}else if(Object.keys(i.values||br).includes(f)){const y=i.up(f);d[y]=t(r[f],f)}else{const y=f;d[y]=r[y]}return d},{})}return t(r)}function _o(e={}){return e.keys?.reduce((t,o)=>{const a=e.up(o);return t[a]={},t},{})||{}}function ut(e,r){return e.reduce((t,o)=>{const a=t[o];return(!a||Object.keys(a).length===0)&&delete t[o],t},r)}function Wt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ne(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vr(e,r,t=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&t){const o=`vars.${r}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,e);if(o!=null)return o}return r.split(".").reduce((o,a)=>o&&o[a]!=null?o[a]:null,e)}function mr(e,r,t,o=t){let a;return typeof e=="function"?a=e(t):Array.isArray(e)?a=e[t]||o:a=vr(e,t)||o,r&&(a=r(a,o,e)),a}function de(e){const{prop:r,cssProperty:t=e.prop,themeKey:o,transform:a}=e,i=d=>{if(d[r]==null)return null;const f=d[r],y=d.theme,h=vr(y,o)||{};return Pe(d,f,u=>{let x=mr(h,a,u);return u===x&&typeof u=="string"&&(x=mr(h,a,`${r}${u==="default"?"":Wt(u)}`,u)),t===!1?x:{[t]:x}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[r]:Le}:{},i.filterProps=[r],i}function Po(e){const r={};return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}const Mo={m:"margin",p:"padding"},Io={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ft={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},No=Po(e=>{if(e.length>2)if(ft[e])e=ft[e];else return[e];const[r,t]=e.split(""),o=Mo[r],a=Io[t]||"";return Array.isArray(a)?a.map(i=>o+i):[o+a]}),$r=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Do=[...$r,...wr];function nr(e,r,t,o){const a=vr(e,r,!0)??t;return typeof a=="number"||typeof a=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof a=="string"?a.startsWith("var(")&&i===0?0:a.startsWith("var(")&&i===1?a:`calc(${i} * ${a})`:a*i):Array.isArray(a)?i=>{if(typeof i=="string")return i;const d=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(d)?d>a.length-1&&console.error([`MUI: The value provided (${d}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${d} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
21
|
+
`)):console.error([`MUI: The \`theme.${r}\` 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.${r}\` as a number.`].join(`
|
|
22
|
+
`)));const f=a[d];return i>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${r}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
23
|
+
`)),()=>{})}function Gr(e){return nr(e,"spacing",8,"spacing")}function ar(e,r){return typeof r=="string"||r==null?r:e(r)}function Lo(e,r){return t=>e.reduce((o,a)=>(o[a]=ar(r,t),o),{})}function zo(e,r,t,o){if(!r.includes(t))return null;const a=No(t),i=Lo(a,o),d=e[t];return Pe(e,d,i)}function Vt(e,r){const t=Gr(e.theme);return Object.keys(e).map(o=>zo(e,r,o,t)).reduce(rr,{})}function ie(e){return Vt(e,$r)}ie.propTypes=process.env.NODE_ENV!=="production"?$r.reduce((e,r)=>(e[r]=Le,e),{}):{};ie.filterProps=$r;function se(e){return Vt(e,wr)}se.propTypes=process.env.NODE_ENV!=="production"?wr.reduce((e,r)=>(e[r]=Le,e),{}):{};se.filterProps=wr;process.env.NODE_ENV!=="production"&&Do.reduce((e,r)=>(e[r]=Le,e),{});const Wo={borderRadius:4};function Vo(e=8,r=Gr({spacing:e})){if(e.mui)return e;const t=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const d=r(i);return typeof d=="number"?`${d}px`:d}).join(" "));return t.mui=!0,t}function Sr(...e){const r=e.reduce((o,a)=>(a.filterProps.forEach(i=>{o[i]=a}),o),{}),t=o=>Object.keys(o).reduce((a,i)=>r[i]?rr(a,r[i](o)):a,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,a)=>Object.assign(o,a.propTypes),{}):{},t.filterProps=e.reduce((o,a)=>o.concat(a.filterProps),[]),t}function ye(e){return typeof e!="number"?e:`${e}px solid`}function be(e,r){return de({prop:e,themeKey:"borders",transform:r})}const Yo=be("border",ye),qo=be("borderTop",ye),Go=be("borderRight",ye),Fo=be("borderBottom",ye),Uo=be("borderLeft",ye),Xo=be("borderColor"),Ho=be("borderTopColor"),Ko=be("borderRightColor"),Qo=be("borderBottomColor"),Jo=be("borderLeftColor"),Zo=be("outline",ye),en=be("outlineColor"),jr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=nr(e.theme,"shape.borderRadius",4,"borderRadius"),t=o=>({borderRadius:ar(r,o)});return Pe(e,e.borderRadius,t)}return null};jr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Le}:{};jr.filterProps=["borderRadius"];Sr(Yo,qo,Go,Fo,Uo,Xo,Ho,Ko,Qo,Jo,jr,Zo,en);const Tr=e=>{if(e.gap!==void 0&&e.gap!==null){const r=nr(e.theme,"spacing",8,"gap"),t=o=>({gap:ar(r,o)});return Pe(e,e.gap,t)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{gap:Le}:{};Tr.filterProps=["gap"];const Cr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=nr(e.theme,"spacing",8,"columnGap"),t=o=>({columnGap:ar(r,o)});return Pe(e,e.columnGap,t)}return null};Cr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Le}:{};Cr.filterProps=["columnGap"];const Er=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=nr(e.theme,"spacing",8,"rowGap"),t=o=>({rowGap:ar(r,o)});return Pe(e,e.rowGap,t)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Le}:{};Er.filterProps=["rowGap"];const rn=de({prop:"gridColumn"}),tn=de({prop:"gridRow"}),on=de({prop:"gridAutoFlow"}),nn=de({prop:"gridAutoColumns"}),an=de({prop:"gridAutoRows"}),sn=de({prop:"gridTemplateColumns"}),cn=de({prop:"gridTemplateRows"}),ln=de({prop:"gridTemplateAreas"}),dn=de({prop:"gridArea"});Sr(Tr,Cr,Er,rn,tn,on,nn,an,sn,cn,ln,dn);function He(e,r){return r==="grey"?r:e}const pn=de({prop:"color",themeKey:"palette",transform:He}),un=de({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:He}),fn=de({prop:"backgroundColor",themeKey:"palette",transform:He});Sr(pn,un,fn);function me(e){return e<=1&&e!==0?`${e*100}%`:e}const hn=de({prop:"width",transform:me}),Fr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=t=>{const o=e.theme?.breakpoints?.values?.[t]||br[t];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:me(t)}};return Pe(e,e.maxWidth,r)}return null};Fr.filterProps=["maxWidth"];const mn=de({prop:"minWidth",transform:me}),xn=de({prop:"height",transform:me}),gn=de({prop:"maxHeight",transform:me}),yn=de({prop:"minHeight",transform:me});de({prop:"size",cssProperty:"width",transform:me});de({prop:"size",cssProperty:"height",transform:me});const bn=de({prop:"boxSizing"});Sr(hn,Fr,mn,xn,gn,yn,bn);const kr={border:{themeKey:"borders",transform:ye},borderTop:{themeKey:"borders",transform:ye},borderRight:{themeKey:"borders",transform:ye},borderBottom:{themeKey:"borders",transform:ye},borderLeft:{themeKey:"borders",transform:ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jr},color:{themeKey:"palette",transform:He},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:He},backgroundColor:{themeKey:"palette",transform:He},p:{style:se},pt:{style:se},pr:{style:se},pb:{style:se},pl:{style:se},px:{style:se},py:{style:se},padding:{style:se},paddingTop:{style:se},paddingRight:{style:se},paddingBottom:{style:se},paddingLeft:{style:se},paddingX:{style:se},paddingY:{style:se},paddingInline:{style:se},paddingInlineStart:{style:se},paddingInlineEnd:{style:se},paddingBlock:{style:se},paddingBlockStart:{style:se},paddingBlockEnd:{style:se},m:{style:ie},mt:{style:ie},mr:{style:ie},mb:{style:ie},ml:{style:ie},mx:{style:ie},my:{style:ie},margin:{style:ie},marginTop:{style:ie},marginRight:{style:ie},marginBottom:{style:ie},marginLeft:{style:ie},marginX:{style:ie},marginY:{style:ie},marginInline:{style:ie},marginInlineStart:{style:ie},marginInlineEnd:{style:ie},marginBlock:{style:ie},marginBlockStart:{style:ie},marginBlockEnd:{style:ie},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:Tr},rowGap:{style:Er},columnGap:{style:Cr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:me},maxWidth:{style:Fr},minWidth:{transform:me},height:{transform:me},maxHeight:{transform:me},minHeight:{transform:me},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 vn(...e){const r=e.reduce((o,a)=>o.concat(Object.keys(a)),[]),t=new Set(r);return e.every(o=>t.size===Object.keys(o).length)}function $n(e,r){return typeof e=="function"?e(r):e}function wn(){function e(t,o,a,i){const d={[t]:o,theme:a},f=i[t];if(!f)return{[t]:o};const{cssProperty:y=t,themeKey:h,transform:v,style:u}=f;if(o==null)return null;if(h==="typography"&&o==="inherit")return{[t]:o};const x=vr(a,h)||{};return u?u(d):Pe(d,o,p=>{let s=mr(x,v,p);return p===s&&typeof p=="string"&&(s=mr(x,v,`${t}${p==="default"?"":Wt(p)}`,p)),y===!1?s:{[y]:s}})}function r(t){const{sx:o,theme:a={},nested:i}=t||{};if(!o)return null;const d=a.unstable_sxConfig??kr;function f(y){let h=y;if(typeof y=="function")h=y(a);else if(typeof y!="object")return y;if(!h)return null;const v=_o(a.breakpoints),u=Object.keys(v);let x=v;return Object.keys(h).forEach(m=>{const p=$n(h[m],a);if(p!=null)if(typeof p=="object")if(d[m])x=rr(x,e(m,p,a,d));else{const s=Pe({theme:a},p,$=>({[m]:$}));vn(s,p)?x[m]=r({sx:p,theme:a,nested:!0}):x=rr(x,s)}else x=rr(x,e(m,p,a,d))}),!i&&a.modularCssLayers?{"@layer sx":dt(a,ut(u,x))}:dt(a,ut(u,x))}return Array.isArray(o)?o.map(f):f(o)}return r}const Br=wn();Br.filterProps=["sx"];function Sn(e,r){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||typeof t.getColorSchemeSelector!="function")return{};let o=t.getColorSchemeSelector(e);return o==="&"?r:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:r})}return t.palette.mode===e?r:{}}function jn(e={},...r){const{breakpoints:t={},palette:o={},spacing:a,shape:i={},...d}=e,f=oo(t),y=Vo(a);let h=xe({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:y,shape:{...Wo,...i}},d);return h=Ro(h),h.applyStyles=Sn,h=r.reduce((v,u)=>xe(v,u),h),h.unstable_sxConfig={...kr,...d?.unstable_sxConfig},h.unstable_sx=function(u){return Br({sx:u,theme:this})},h}const ht=(e,r,t,o=[])=>{let a=e;r.forEach((i,d)=>{d===r.length-1?Array.isArray(a)?a[Number(i)]=t:a&&typeof a=="object"&&(a[i]=t):a&&typeof a=="object"&&(a[i]||(a[i]=o.includes(i)?[]:{}),a=a[i])})},Tn=(e,r,t)=>{function o(a,i=[],d=[]){Object.entries(a).forEach(([f,y])=>{(!t||t&&!t([...i,f]))&&y!=null&&(typeof y=="object"&&Object.keys(y).length>0?o(y,[...i,f],Array.isArray(y)?[...d,f]:d):r([...i,f],y,d))})}o(e)},Cn=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Nr(e,r){const{prefix:t,shouldSkipGeneratingVar:o}=r||{},a={},i={},d={};return Tn(e,(f,y,h)=>{if((typeof y=="string"||typeof y=="number")&&(!o||!o(f,y))){const v=`--${t?`${t}-`:""}${f.join("-")}`,u=Cn(f,y);Object.assign(a,{[v]:u}),ht(i,f,`var(${v})`,h),ht(d,f,`var(${v}, ${u})`,h)}},f=>f[0]==="vars"),{css:a,vars:i,varsWithDefaults:d}}function En(e,r={}){const{getSelector:t=E,disableCssColorScheme:o,colorSchemeSelector:a,enableContrastVars:i}=r,{colorSchemes:d={},components:f,defaultColorScheme:y="light",...h}=e,{vars:v,css:u,varsWithDefaults:x}=Nr(h,r);let m=x;const p={},{[y]:s,...$}=d;if(Object.entries($||{}).forEach(([b,g])=>{const{vars:S,css:B,varsWithDefaults:_}=Nr(g,r);m=xe(m,_),p[b]={css:B,vars:S}}),s){const{css:b,vars:g,varsWithDefaults:S}=Nr(s,r);m=xe(m,S),p[y]={css:b,vars:g}}function E(b,g){let S=a;if(a==="class"&&(S=".%s"),a==="data"&&(S="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(S=`[${a}="%s"]`),b){if(S==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${d[b]?.palette?.mode||b})`]:{":root":g}};if(S)return e.defaultColorScheme===b?`:root, ${S.replace("%s",String(b))}`:S.replace("%s",String(b))}return":root"}return{vars:m,generateThemeVars:()=>{let b={...v};return Object.entries(p).forEach(([,{vars:g}])=>{b=xe(b,g)}),b},generateStyleSheets:()=>{const b=[],g=e.defaultColorScheme||"light";function S(M,Y){Object.keys(Y).length&&b.push(typeof M=="string"?{[M]:{...Y}}:M)}S(t(void 0,{...u}),u);const{[g]:B,..._}=p;if(B){const{css:M}=B,Y=d[g]?.palette?.mode,P=!o&&Y?{colorScheme:Y,...M}:{...M};S(t(g,{...P}),P)}return Object.entries(_).forEach(([M,{css:Y}])=>{const P=d[M]?.palette?.mode,l=!o&&P?{colorScheme:P,...Y}:{...Y};S(t(M,{...l}),l)}),i&&b.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)"}}),b}}}function kn(e){const r={};return Object.entries(e).forEach(o=>{const[a,i]=o;typeof i=="object"&&(r[a]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),r}function Bn(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const mt=e=>e,An=()=>{let e=mt;return{configure(r){e=r},generate(r){return e(r)},reset(){e=mt}}},Rn=An(),On={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 _n(e,r,t="Mui"){const o=On[r];return o?`${t}-${o}`:`${Rn.generate(e)}-${r}`}function Pn(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function Mn(e){return Math.round(e*1e5)/1e5}const xt={textTransform:"uppercase"},gt='"Roboto", "Helvetica", "Arial", sans-serif';function In(e,r){const{fontFamily:t=gt,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:d=500,fontWeightBold:f=700,htmlFontSize:y=16,allVariants:h,pxToRem:v,...u}=typeof r=="function"?r(e):r;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof y!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const x=o/14,m=v||($=>`${$/y*x}rem`),p=($,E,w,j,b)=>({fontFamily:t,fontWeight:$,fontSize:m(E),lineHeight:w,...t===gt?{letterSpacing:`${Mn(j/E)}em`}:{},...b,...h}),s={h1:p(a,96,1.167,-1.5),h2:p(a,60,1.2,-.5),h3:p(i,48,1.167,0),h4:p(i,34,1.235,.25),h5:p(i,24,1.334,0),h6:p(d,20,1.6,.15),subtitle1:p(i,16,1.75,.15),subtitle2:p(d,14,1.57,.1),body1:p(i,16,1.5,.15),body2:p(i,14,1.43,.15),button:p(d,14,1.75,.4,xt),caption:p(i,12,1.66,.4),overline:p(i,12,2.66,1,xt),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xe({htmlFontSize:y,pxToRem:m,fontFamily:t,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:d,fontWeightBold:f,...s},u,{clone:!1})}const Nn=.2,Dn=.14,Ln=.12;function ae(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Nn})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Dn})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ln})`].join(",")}const zn=["none",ae(0,2,1,-1,0,1,1,0,0,1,3,0),ae(0,3,1,-2,0,2,2,0,0,1,5,0),ae(0,3,3,-2,0,3,4,0,0,1,8,0),ae(0,2,4,-1,0,4,5,0,0,1,10,0),ae(0,3,5,-1,0,5,8,0,0,1,14,0),ae(0,3,5,-1,0,6,10,0,0,1,18,0),ae(0,4,5,-2,0,7,10,1,0,2,16,1),ae(0,5,5,-3,0,8,10,1,0,3,14,2),ae(0,5,6,-3,0,9,12,1,0,3,16,2),ae(0,6,6,-3,0,10,14,1,0,4,18,3),ae(0,6,7,-4,0,11,15,1,0,4,20,3),ae(0,7,8,-4,0,12,17,2,0,5,22,4),ae(0,7,8,-4,0,13,19,2,0,5,24,4),ae(0,7,9,-4,0,14,21,2,0,5,26,4),ae(0,8,9,-5,0,15,22,2,0,6,28,5),ae(0,8,10,-5,0,16,24,2,0,6,30,5),ae(0,8,11,-5,0,17,26,2,0,6,32,5),ae(0,9,11,-5,0,18,28,2,0,7,34,6),ae(0,9,12,-6,0,19,29,2,0,7,36,6),ae(0,10,13,-6,0,20,31,3,0,8,38,7),ae(0,10,13,-6,0,21,33,3,0,8,40,7),ae(0,10,14,-6,0,22,35,3,0,8,42,7),ae(0,11,14,-7,0,23,36,3,0,9,44,8),ae(0,11,15,-7,0,24,38,3,0,9,46,8)],Wn={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)"},Vn={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yt(e){return`${Math.round(e)}ms`}function Yn(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function qn(e){const r={...Wn,...e.easing},t={...Vn,...e.duration};return{getAutoHeightDuration:Yn,create:(a=["all"],i={})=>{const{duration:d=t.standard,easing:f=r.easeInOut,delay:y=0,...h}=i;if(process.env.NODE_ENV!=="production"){const v=x=>typeof x=="string",u=x=>!Number.isNaN(parseFloat(x));!v(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(d)&&!v(d)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${d}.`),v(f)||console.error('MUI: Argument "easing" must be a string.'),!u(y)&&!v(y)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(`
|
|
24
|
+
`)),Object.keys(h).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(h).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(v=>`${v} ${typeof d=="string"?d:yt(d)} ${f} ${typeof y=="string"?y:yt(y)}`).join(",")},...e,easing:r,duration:t}}const Gn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Fn(e){return Ie(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Yt(e={}){const r={...e};function t(o){const a=Object.entries(o);for(let i=0;i<a.length;i++){const[d,f]=a[i];!Fn(f)||d.startsWith("unstable_")?delete o[d]:Ie(f)&&(o[d]={...f},t(o[d]))}}return t(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
26
25
|
|
|
27
|
-
const theme = ${JSON.stringify(
|
|
26
|
+
const theme = ${JSON.stringify(r,null,2)};
|
|
28
27
|
|
|
29
28
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
30
29
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
31
30
|
|
|
32
|
-
export default theme;`}function
|
|
33
|
-
`))}
|
|
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 $b(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const St=e=>{try{return e()}catch{}},Db=(e="mui")=>Ot.unstable_createGetCssVar(e);function Ns(e,t,r,i,o){if(!r)return;r=r===!0?{}:r;const s=o==="dark"?"dark":"light";if(!i){t[o]=Pb({...r,palette:{mode:s,...r?.palette},colorSpace:e});return}const{palette:a,...c}=ca({...i,palette:{mode:s,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...yf(s),...r?.opacity},overlays:r?.overlays||bf(s)},c}function Lb(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=Rb,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=Db(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.`:Zt(21,p));let v;a&&(v="oklch");const T=Ns(v,O,S,d,p);m&&!O.light&&Ns(v,O,m,void 0,"light"),y&&!O.dark&&Ns(v,O,y,void 0,"dark");let k={defaultColorScheme:p,...T,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:l,getCssVar:h,colorSchemes:O,font:{...ob(T.typography),...T.font},spacing:$b(d.spacing)};Object.keys(k.colorSchemes).forEach(_=>{const x=k.colorSchemes[_].palette,E=j=>{const q=j.split("-"),F=q[1],G=q[2];return h(j,x[F][G])};x.mode==="light"&&(N(x.common,"background","#fff"),N(x.common,"onBackground","#000")),x.mode==="dark"&&(N(x.common,"background","#000"),N(x.common,"onBackground","#fff"));function P(j,q,F){if(v){let G;return j===ln&&(G=`transparent ${((1-F)*100).toFixed(0)}%`),j===pe&&(G=`#000 ${(F*100).toFixed(0)}%`),j===he&&(G=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${v}, ${q}, ${G})`}return j(q,F)}if(_b(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){N(x.Alert,"errorColor",P(pe,x.error.light,.6)),N(x.Alert,"infoColor",P(pe,x.info.light,.6)),N(x.Alert,"successColor",P(pe,x.success.light,.6)),N(x.Alert,"warningColor",P(pe,x.warning.light,.6)),N(x.Alert,"errorFilledBg",E("palette-error-main")),N(x.Alert,"infoFilledBg",E("palette-info-main")),N(x.Alert,"successFilledBg",E("palette-success-main")),N(x.Alert,"warningFilledBg",E("palette-warning-main")),N(x.Alert,"errorFilledColor",St(()=>x.getContrastText(x.error.main))),N(x.Alert,"infoFilledColor",St(()=>x.getContrastText(x.info.main))),N(x.Alert,"successFilledColor",St(()=>x.getContrastText(x.success.main))),N(x.Alert,"warningFilledColor",St(()=>x.getContrastText(x.warning.main))),N(x.Alert,"errorStandardBg",P(he,x.error.light,.9)),N(x.Alert,"infoStandardBg",P(he,x.info.light,.9)),N(x.Alert,"successStandardBg",P(he,x.success.light,.9)),N(x.Alert,"warningStandardBg",P(he,x.warning.light,.9)),N(x.Alert,"errorIconColor",E("palette-error-main")),N(x.Alert,"infoIconColor",E("palette-info-main")),N(x.Alert,"successIconColor",E("palette-success-main")),N(x.Alert,"warningIconColor",E("palette-warning-main")),N(x.AppBar,"defaultBg",E("palette-grey-100")),N(x.Avatar,"defaultBg",E("palette-grey-400")),N(x.Button,"inheritContainedBg",E("palette-grey-300")),N(x.Button,"inheritContainedHoverBg",E("palette-grey-A100")),N(x.Chip,"defaultBorder",E("palette-grey-400")),N(x.Chip,"defaultAvatarColor",E("palette-grey-700")),N(x.Chip,"defaultIconColor",E("palette-grey-700")),N(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),N(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),N(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),N(x.LinearProgress,"primaryBg",P(he,x.primary.main,.62)),N(x.LinearProgress,"secondaryBg",P(he,x.secondary.main,.62)),N(x.LinearProgress,"errorBg",P(he,x.error.main,.62)),N(x.LinearProgress,"infoBg",P(he,x.info.main,.62)),N(x.LinearProgress,"successBg",P(he,x.success.main,.62)),N(x.LinearProgress,"warningBg",P(he,x.warning.main,.62)),N(x.Skeleton,"bg",v?P(ln,x.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),N(x.Slider,"primaryTrack",P(he,x.primary.main,.62)),N(x.Slider,"secondaryTrack",P(he,x.secondary.main,.62)),N(x.Slider,"errorTrack",P(he,x.error.main,.62)),N(x.Slider,"infoTrack",P(he,x.info.main,.62)),N(x.Slider,"successTrack",P(he,x.success.main,.62)),N(x.Slider,"warningTrack",P(he,x.warning.main,.62));const j=v?P(pe,x.background.default,.6825):Si(x.background.default,.8);N(x.SnackbarContent,"bg",j),N(x.SnackbarContent,"color",St(()=>v?aa.text.primary:x.getContrastText(j))),N(x.SpeedDialAction,"fabHoverBg",Si(x.background.paper,.15)),N(x.StepConnector,"border",E("palette-grey-400")),N(x.StepContent,"border",E("palette-grey-400")),N(x.Switch,"defaultColor",E("palette-common-white")),N(x.Switch,"defaultDisabledColor",E("palette-grey-100")),N(x.Switch,"primaryDisabledColor",P(he,x.primary.main,.62)),N(x.Switch,"secondaryDisabledColor",P(he,x.secondary.main,.62)),N(x.Switch,"errorDisabledColor",P(he,x.error.main,.62)),N(x.Switch,"infoDisabledColor",P(he,x.info.main,.62)),N(x.Switch,"successDisabledColor",P(he,x.success.main,.62)),N(x.Switch,"warningDisabledColor",P(he,x.warning.main,.62)),N(x.TableCell,"border",P(he,P(ln,x.divider,1),.88)),N(x.Tooltip,"bg",P(ln,x.grey[700],.92))}if(x.mode==="dark"){N(x.Alert,"errorColor",P(he,x.error.light,.6)),N(x.Alert,"infoColor",P(he,x.info.light,.6)),N(x.Alert,"successColor",P(he,x.success.light,.6)),N(x.Alert,"warningColor",P(he,x.warning.light,.6)),N(x.Alert,"errorFilledBg",E("palette-error-dark")),N(x.Alert,"infoFilledBg",E("palette-info-dark")),N(x.Alert,"successFilledBg",E("palette-success-dark")),N(x.Alert,"warningFilledBg",E("palette-warning-dark")),N(x.Alert,"errorFilledColor",St(()=>x.getContrastText(x.error.dark))),N(x.Alert,"infoFilledColor",St(()=>x.getContrastText(x.info.dark))),N(x.Alert,"successFilledColor",St(()=>x.getContrastText(x.success.dark))),N(x.Alert,"warningFilledColor",St(()=>x.getContrastText(x.warning.dark))),N(x.Alert,"errorStandardBg",P(pe,x.error.light,.9)),N(x.Alert,"infoStandardBg",P(pe,x.info.light,.9)),N(x.Alert,"successStandardBg",P(pe,x.success.light,.9)),N(x.Alert,"warningStandardBg",P(pe,x.warning.light,.9)),N(x.Alert,"errorIconColor",E("palette-error-main")),N(x.Alert,"infoIconColor",E("palette-info-main")),N(x.Alert,"successIconColor",E("palette-success-main")),N(x.Alert,"warningIconColor",E("palette-warning-main")),N(x.AppBar,"defaultBg",E("palette-grey-900")),N(x.AppBar,"darkBg",E("palette-background-paper")),N(x.AppBar,"darkColor",E("palette-text-primary")),N(x.Avatar,"defaultBg",E("palette-grey-600")),N(x.Button,"inheritContainedBg",E("palette-grey-800")),N(x.Button,"inheritContainedHoverBg",E("palette-grey-700")),N(x.Chip,"defaultBorder",E("palette-grey-700")),N(x.Chip,"defaultAvatarColor",E("palette-grey-300")),N(x.Chip,"defaultIconColor",E("palette-grey-300")),N(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),N(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),N(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),N(x.LinearProgress,"primaryBg",P(pe,x.primary.main,.5)),N(x.LinearProgress,"secondaryBg",P(pe,x.secondary.main,.5)),N(x.LinearProgress,"errorBg",P(pe,x.error.main,.5)),N(x.LinearProgress,"infoBg",P(pe,x.info.main,.5)),N(x.LinearProgress,"successBg",P(pe,x.success.main,.5)),N(x.LinearProgress,"warningBg",P(pe,x.warning.main,.5)),N(x.Skeleton,"bg",v?P(ln,x.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),N(x.Slider,"primaryTrack",P(pe,x.primary.main,.5)),N(x.Slider,"secondaryTrack",P(pe,x.secondary.main,.5)),N(x.Slider,"errorTrack",P(pe,x.error.main,.5)),N(x.Slider,"infoTrack",P(pe,x.info.main,.5)),N(x.Slider,"successTrack",P(pe,x.success.main,.5)),N(x.Slider,"warningTrack",P(pe,x.warning.main,.5));const j=v?P(he,x.background.default,.985):Si(x.background.default,.98);N(x.SnackbarContent,"bg",j),N(x.SnackbarContent,"color",St(()=>v?cf.text.primary:x.getContrastText(j))),N(x.SpeedDialAction,"fabHoverBg",Si(x.background.paper,.15)),N(x.StepConnector,"border",E("palette-grey-600")),N(x.StepContent,"border",E("palette-grey-600")),N(x.Switch,"defaultColor",E("palette-grey-300")),N(x.Switch,"defaultDisabledColor",E("palette-grey-600")),N(x.Switch,"primaryDisabledColor",P(pe,x.primary.main,.55)),N(x.Switch,"secondaryDisabledColor",P(pe,x.secondary.main,.55)),N(x.Switch,"errorDisabledColor",P(pe,x.error.main,.55)),N(x.Switch,"infoDisabledColor",P(pe,x.info.main,.55)),N(x.Switch,"successDisabledColor",P(pe,x.success.main,.55)),N(x.Switch,"warningDisabledColor",P(pe,x.warning.main,.55)),N(x.TableCell,"border",P(pe,P(ln,x.divider,1),.68)),N(x.Tooltip,"bg",P(ln,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(j=>{const q=x[j];j!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&N(x[j],"mainChannel",Pr(Rr(q.main))),q.light&&N(x[j],"lightChannel",Pr(Rr(q.light))),q.dark&&N(x[j],"darkChannel",Pr(Rr(q.dark))),q.contrastText&&N(x[j],"contrastTextChannel",Pr(Rr(q.contrastText))),j==="text"&&(_t(x[j],"primary"),_t(x[j],"secondary")),j==="action"&&(q.active&&_t(x[j],"active"),q.selected&&_t(x[j],"selected")))})}),k=t.reduce((_,x)=>et(_,x),k);const A={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Mb(k),enableContrastVars:a},{vars:M,generateThemeVars:I,generateStyleSheets:D}=ib(k,A);return k.vars=M,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([_,x])=>{k[_]=x}),k.generateThemeVars=I,k.generateStyleSheets=D,k.generateSpacing=function(){return Ot.createSpacing(d.spacing,Na(this))},k.getColorSchemeSelector=sb(u),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...ti,...d?.unstable_sxConfig},k.unstable_sx=function(x){return er({sx:x,theme:this})},k.toRuntimeSource=gf,k}function Zl(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:ja({...r===!0?{}:r.palette,mode:t})})}function jb(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 ca(e,...t);let d=r;"palette"in e||l[c]&&(l[c]!==!0?d=l[c].palette:c==="dark"&&(d={mode:"dark"}));const f=ca({...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},Zl(f,"dark",l.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:f.palette},Zl(f,"light",l.light)),f}return!r&&!("light"in l)&&c==="light"&&(l.light=!0),Lb({...a,colorSchemes:l,defaultColorScheme:c,...typeof i!="boolean"&&i},...t)}const za=jb();function je(){const e=Ot.useTheme(za);return process.env.NODE_ENV!=="production"&&R.useDebugValue(e),e[So]||e}function xf(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:Nr(t.components[r].defaultProps,i)}function Nb({props:e,name:t,defaultTheme:r,themeId:i}){let o=tb(r);return o=o[i]||o,xf({theme:o,name:t,props:e})}function Be({props:e,name:t}){return Nb({props:e,name:t,defaultTheme:za,themeId:So})}function vf(e,t=""){return e.displayName||e.name||t}function Ql(e,t,r){const i=vf(t);return e.displayName||(i!==""?`${r}(${i})`:r)}function qb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Wi.ForwardRef:return Ql(e,e.render,"ForwardRef");case Wi.Memo:return Ql(e,e.type,"memo");default:return}}}function Fb(e){const{variants:t,...r}=e,i={variants:t,style:gn(r),isProcessed:!0};return i.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=gn(o.style))}),i}const zb=Fa();function Hi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Bb(e){return e?(t,r)=>r[e]:null}function Hb(e,t,r){e.theme=Yb(e.theme)?r:e.theme[t]||e.theme}function Vi(e,t,r){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(o=>Vi(e,o,r));if(Array.isArray(i?.variants)){let o;if(i.isProcessed)o=r?fn(i.style,r):i.style;else{const{variants:s,...a}=i;o=r?fn(gn(a),r):a}return Of(e,i.variants,[o],r)}return i?.isProcessed?r?fn(gn(i.style),r):i.style:r?fn(gn(i),r):i}function Of(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?fn(gn(a.style(o)),i):a.style(o))):r.push(i?fn(gn(a.style),i):a.style)}return r}function Vb(e={}){const{themeId:t,defaultTheme:r=zb,rootShouldForwardProp:i=Hi,slotShouldForwardProp:o=Hi}=e;function s(c){Hb(c,t,r)}return(c,u={})=>{ly(c,k=>k.filter(A=>A!==er));const{name:l,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Bb(Tf(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=Hi;d==="Root"||d==="root"?O=i:d?O=o:Wb(c)&&(O=void 0);const S=cy(c,{shouldForwardProp:O,label:Ub(l,d),...g}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(M){return Vi(M,k,M.theme.modularCssLayers?m:void 0)};if(Ct(k)){const A=Fb(k);return function(I){return A.variants?Vi(I,A,I.theme.modularCssLayers?m:void 0):I.theme.modularCssLayers?fn(A.style,m):A.style}}return k},T=(...k)=>{const A=[],M=k.map(v),I=[];if(A.push(s),l&&h&&I.push(function(E){const j=E.theme.components?.[l]?.styleOverrides;if(!j)return null;const q={};for(const F in j)q[F]=Vi(E,j[F],E.theme.modularCssLayers?"theme":void 0);return h(E,q)}),l&&!y&&I.push(function(E){const j=E.theme?.components?.[l]?.variants;return j?Of(E,j,[],E.theme.modularCssLayers?"theme":void 0):null}),b||I.push(er),Array.isArray(M[0])){const x=M.shift(),E=new Array(A.length).fill(""),P=new Array(I.length).fill("");let j;j=[...E,...x,...P],j.raw=[...E,...x.raw,...P],A.unshift(j)}const D=[...A,...M,...I],_=S(...D);return c.muiName&&(_.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(_.displayName=Gb(l,d,c)),_};return S.withConfig&&(T.withConfig=S.withConfig),T}}function Gb(e,t,r){return e?`${e}${be(t||"")}`:`Styled(${qb(r)})`}function Ub(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Tf(t||"Root")}`),r}function Yb(e){for(const t in e)return!1;return!0}function Wb(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Xb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kf=e=>Xb(e)&&e!=="classes",re=Vb({themeId:So,defaultTheme:za,rootShouldForwardProp:kf});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 Pe(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}function Ba(...e){const t=R.useRef(void 0),r=R.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 R.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}function Kb(e){return typeof e=="string"}function Zb(e,t,r){return e===void 0||Kb(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Qb(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 Jl(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 Jb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const h=ae(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=Qb({...o,...i}),c=Jl(i),u=Jl(o),l=t(a),d=ae(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 ex(e,t,r){return typeof e=="function"?e(t,r):e}function Et(e){const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:ex(r,i),{props:c,internalRef:u}=Jb({...s,externalSlotProps:a}),l=Ba(u,a?.ref,e.additionalProps?.ref);return Zb(t,{...c,ref:l},i)}const eu=e=>e,tx=()=>{let e=eu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eu}}},nx=tx(),rx={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,r="Mui"){const i=rx[t];return i?`${r}-${i}`:`${nx.generate(e)}-${t}`}function we(e,t,r="Mui"){const i={};return t.forEach(o=>{i[o]=Re(e,o,r)}),i}const tt=typeof window<"u"?R.useLayoutEffect:R.useEffect;function ze(e){const t=R.useRef(e);return tt(()=>{t.current=e}),R.useRef((...r)=>(0,t.current)(...r)).current}let tu=0;function ix(e){const[t,r]=R.useState(e),i=t;return R.useEffect(()=>{t==null&&(tu+=1,r(`mui-${tu}`))},[t]),i}const ox={...R},nu=ox.useId;function Ha(e){return nu!==void 0?nu():ix(e)}var sx=(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
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:a,stack:l})}},cx={inputStabilityCheck:"once",identityFunctionCheck:"once"},Zi=Symbol("NOT_FOUND");function lx(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ux(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function dx(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 ru=e=>Array.isArray(e)?e:[e];function fx(e){const t=Array.isArray(e[0])?e[0]:e;return dx(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function iu(e,t){const r=[],{length:i}=e;for(let o=0;o<i;o++)r.push(e[o].apply(null,t));return r}var px=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:i}={...cx,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:sx},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&e,run:ax}}};function hx(e){let t;return{get(r){return t&&e(t.key,r)?t.value:Zi},put(r,i){t={key:r,value:i}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function mx(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 Zi}function o(c,u){i(c)===Zi&&(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 gx=(e,t)=>e===t;function yx(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 bx(e,t){const r=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:i=gx,maxSize:o=1,resultEqualityCheck:s}=r,a=yx(i);let c=0;const u=o<=1?hx(a):mx(o,a);function l(){let d=u.get(arguments);if(d===Zi){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 xx=class{constructor(e){this.value=e}deref(){return this.value}},vx=typeof WeakRef<"u"?WeakRef:xx,Ox=0,ou=1;function Ci(){return{s:Ox,v:void 0,o:null,p:null}}function Sf(e,t={}){let r=Ci();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=Ci(),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=Ci(),g.set(h,c)):c=m}}const l=c;let d;if(c.s===ou)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 vx(d):d}return l.s=ou,l.v=d,d}return a.clearCache=()=>{r=Ci(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function Cf(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()),lx(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...r,...u},{memoize:f,memoizeOptions:p=[],argsMemoize:h=Sf,argsMemoizeOptions:g=[],devModeChecks:m={}}=d,y=ru(p),b=ru(g),O=fx(o),S=f(function(){return s++,l.apply(null,arguments)},...y);let v=!0;const T=h(function(){a++;const A=iu(O,arguments);if(c=S.apply(null,A),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:M,inputStabilityCheck:I}=px(v,m);if(M.shouldRun&&M.run(l,A,c),I.shouldRun){const D=iu(O,arguments);I.run({inputSelectorResults:A,inputSelectorResultsCopy:D},{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 Tx=Cf(Sf),kx=Object.assign((e,t=Tx)=>{ux(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:()=>kx});const Sx=Cf({memoize:bx,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},jo=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=Sx(...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")}}},le=jo();var wi={exports:{}},qs={};var su;function Cx(){if(su)return qs;su=1;var e=Ae;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 qs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,qs}var Fs={};var au;function wx(){return au||(au=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=Ae,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;Fs.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())})()),Fs}var cu;function Va(){return cu||(cu=1,process.env.NODE_ENV==="production"?wi.exports=Cx():wi.exports=wx()),wi.exports}var Ax=Va(),Ai={exports:{}},zs={};var lu;function Ex(){if(lu)return zs;lu=1;var e=Ae,t=Va();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 zs.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 A=m.value;if(h(A,k))return v=A}return v=k}if(A=v,i(S,k))return A;var M=p(k);return h!==void 0&&h(A,M)?(S=k,A):(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},zs}var Bs={};var uu;function Px(){return uu||(uu=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=Ae,r=Va(),i=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,s=t.useRef,a=t.useEffect,c=t.useMemo,u=t.useDebugValue;Bs.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 A=m.value;if(h(A,k))return v=A}return v=k}if(A=v,i(S,k))return A;var M=p(k);return h!==void 0&&h(A,M)?(S=k,A):(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())})()),Bs}var du;function Rx(){return du||(du=1,process.env.NODE_ENV==="production"?Ai.exports=Ex():Ai.exports=Px()),Ai.exports}var Ix=Rx();const wf=parseInt(R.version,10),Mx=wf>=19,_x=Mx?Dx:Lx;function $x(e,t,r,i,o){return _x(e,t,r,i,o)}function Dx(e,t,r,i,o){const s=R.useCallback(()=>t(e.getSnapshot(),r,i,o),[e,t,r,i,o]);return Ax.useSyncExternalStore(e.subscribe,s,s)}function Lx(e,t,r,i,o){return Ix.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,r,i,o))}const fu={};function Af(e,t){const r=R.useRef(fu);return r.current===fu&&(r.current=e(t)),r}const jx=[];function Nx(e){R.useEffect(e,jx)}const qx=()=>{};function Fx(e,t,r){const i=Af(zx,{store:e,selector:t}).current;i.effect=r,Nx(i.onMount)}function zx(e){const{store:t,selector:r}=e;let i=r(t.state);const o={effect:qx,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 Ga{static create(t){return new Ga(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(w({},this.state,t));return}}set(t,r){Object.is(this.state[t],r)||this.setState(w({},this.state,{[t]:r}))}use=(t,r,i,o)=>$x(this,t,r,i,o)}const No=({params:e,store:t})=>{R.useEffect(()=>{t.set("animation",w({},t.state.animation,{skip:e.skipAnimation}))},[t,e.skipAnimation]);const r=R.useCallback(()=>{let i=!1;return t.set("animation",w({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests+1})),()=>{i||(i=!0,t.set("animation",w({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests-1})))}},[t]);return tt(()=>{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}}};No.params={skipAnimation:!0};No.getDefaultizedParams=({params:e})=>w({},e,{skipAnimation:e.skipAnimation??!1});No.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 Bx=e=>e.animation,Hx=U(Bx,e=>e.skip||e.skipAnimationRequests>0);function Ef(e,t){const r=R.useRef(!0);R.useEffect(()=>{if(r.current){r.current=!1;return}return e()},t)}function Vx(e){return e&&e.ownerDocument||document}function Gx(e){return Vx(e).defaultView||window}const nn="DEFAULT_X_AXIS_KEY",Ua="DEFAULT_Y_AXIS_KEY",Ux={top:20,bottom:20,left:20,right:20},Yx=45,Wx=25,Pf=20,It=e=>e.cartesianAxis?.x,Vt=e=>e.cartesianAxis?.y,Xx=U(Vt,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)}),Kx=U(Vt,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)}),Zx=U(It,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)}),Qx=U(It,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)}),Jx=le(Xx,Kx,Zx,Qx,function(t,r,i,o){return{left:t,right:r,top:i,bottom:o}}),ni=e=>e.dimensions,e0=e=>e.dimensions.margin,Ke=le(ni,e0,Jx,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}}),t0=U(ni,e=>e.width),n0=U(ni,e=>e.height),Rf=U(ni,e=>e.propsWidth),If=U(ni,e=>e.propsHeight);function Mf(e,t){return typeof e=="number"?{top:e,bottom:e,left:e,right:e}:t?w({},t,e):e}const r0=10,qo=({params:e,store:t,svgRef:r})=>{const i=e.width!==void 0&&e.height!==void 0,o=R.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[s,a]=R.useState(0),[c,u]=R.useState(0),l=R.useCallback(()=>{const g=r?.current;if(!g)return{};const y=Gx(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]);Ef(()=>{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]),R.useEffect(()=>{o.current.displayError=!0},[]),tt(()=>{if(i||!o.current.initialCompute||o.current.computeRun>r0)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]),tt(()=>{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(Ke),f=R.useCallback(g=>g>=d.left-1&&g<=d.left+d.width,[d.left,d.width]),p=R.useCallback(g=>g>=d.top-1&&g<=d.top+d.height,[d.height,d.top]);return{instance:{isPointInside:R.useCallback((g,m,y)=>y&&"closest"in y&&y.closest("[data-drawing-container]")?!0:f(g)&&p(m),[f,p]),isXInside:f,isYInside:p}}};qo.params={width:!0,height:!0,margin:!0};qo.getDefaultizedParams=({params:e})=>w({},e,{margin:Mf(e.margin,Ux)});qo.getInitialState=({width:e,height:t,margin:r})=>({dimensions:{margin:r,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});const Ya=({params:e,store:t})=>(tt(()=>{t.set("experimentalFeatures",e.experimentalFeatures)},[t,e.experimentalFeatures]),{});Ya.params={experimentalFeatures:!0};Ya.getInitialState=({experimentalFeatures:e})=>({experimentalFeatures:e});const i0=e=>e.experimentalFeatures,Fo=U(i0,e=>!!e?.preferStrictDomainInLineCharts);let pu=0;const o0=()=>(pu+=1,`mui-chart-${pu}`),Wa=({params:e,store:t})=>(R.useEffect(()=>{e.id===void 0||e.id===t.state.id.providedChartId&&t.state.id.chartId!==void 0||t.set("id",w({},t.state.id,{chartId:e.id??o0()}))},[t,e.id]),{});Wa.params={id:!0};Wa.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});const s0=e=>e.id,a0=U(s0,e=>e.chartId),c0=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],l0=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],_f=e=>e==="dark"?l0:c0,$f=({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},u0=(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},d0=(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:{}},zo=({params:e,store:t,seriesConfig:r})=>{const{series:i,dataset:o,theme:s,colors:a}=e;return Ef(()=>{t.set("series",w({},t.state.series,{defaultizedSeries:$f({series:i,colors:typeof a=="function"?a(s):a,seriesConfig:r}),dataset:o}))},[a,o,i,s,r,t]),{}};zo.params={dataset:!0,series:!0,colors:!0,theme:!0};const f0=[];zo.getDefaultizedParams=({params:e})=>w({},e,{series:e.series?.length?e.series:f0,colors:e.colors??_f,theme:e.theme??"light"});zo.getInitialState=({series:e=[],colors:t,theme:r,dataset:i},o,s)=>({series:{seriesConfig:s,defaultizedSeries:$f({series:e,colors:typeof t=="function"?t(r):t,seriesConfig:s}),dataset:i}});const Xa=e=>e.series,Df=U(Xa,e=>e.defaultizedSeries),Ze=U(Xa,e=>e.seriesConfig),p0=U(Xa,e=>e.dataset),xe=le(Df,Ze,p0,function(t,r,i){return u0(t,r,i)}),Lf=le(xe,Ze,Ke,function(t,r,i){return d0(t,r,i)}),h0={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 jf{customData={};constructor(t){if(!t||!t.name)throw new Error("Gesture must be initialized with a valid name.");if(t.name in h0)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?w({},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 m0{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 g0{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 y0{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=w({},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 b0{gestureTemplates=new Map;elementGestureMap=new Map;activeGesturesRegistry=new m0;keyboardManager=new g0;constructor(t){this.pointerManager=new y0({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 Sn extends jf{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 x0(e,t){const r=t.x-e.x,i=t.y-e.y;return Math.sqrt(r*r+i*i)}function Ei(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+=x0({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 xt(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 dt(e,t){return`${e}${t==="ongoing"?"":t.charAt(0).toUpperCase()+t.slice(1)}`}const Pi=1e-5,Ut=1e-5,hu=.15;function v0(e,t){const r=t.x-e.x,i=t.y-e.y,o={vertical:null,horizontal:null,mainAxis:null},s=O0(t,e),a=Math.abs(r)>Math.abs(i)?"horizontal":"vertical",c=s||a==="horizontal"?Pi:hu,u=s?Pi:a==="horizontal"?hu:Pi;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 O0(e,t){const r=t.x-e.x,i=t.y-e.y,o=Math.atan2(i,r)*180/Math.PI;return o>=-45+Ut&&o<=-22.5+Ut||o>=22.5+Ut&&o<=45+Ut||o>=135+Ut&&o<=157.5+Ut||o>=-157.5+Ut&&o<=-135+Ut}function T0(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 mu=0,k0=e=>e>mu?1:e<-mu?-1:0,Yt=e=>{e.cancelable&&e.preventDefault()};class Ka extends Sn{state={lastPosition:null};constructor(t){super(t),this.threshold=t.threshold||0}clone(t){return new Ka(w({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||xt(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=dt(this.name,r),l=new CustomEvent(u,{bubbles:!0,cancelable:!0,composed:!0,detail:c});t.dispatchEvent(l)}}class yn extends Sn{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 yn(w({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=w({},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=xt(s),this.state.lastCentroid=w({},this.state.startCentroid);else if(this.state.startCentroid&&this.state.lastCentroid){const a=this.state.lastCentroid,c=xt(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=xt(s),c=a.x-this.state.startCentroid.x,u=a.y-this.state.startCentroid.y,l=Math.sqrt(c*c+u*u),d=v0(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&&T0(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=xt(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=dt(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 Za extends Sn{state={startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,totalScale:1,deltaScale:0};constructor(t){super(w({},t,{minPointers:t.minPointers??2})),this.threshold=t.threshold??0}clone(t){return new Za(w({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=w({},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=Ei(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=Ei(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=Ei(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=Ei(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=xt(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:k0(this.state.velocity),customData:this.customData};this.preventDefault&&o.preventDefault(),this.stopPropagation&&o.stopPropagation();const d=dt(this.name,r),f=new CustomEvent(d,{bubbles:!0,cancelable:!0,composed:!0,detail:l});t.dispatchEvent(f)}}class Bo extends Sn{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 Bo(w({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=w({},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=xt(s),this.state.lastPosition=w({},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=xt(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=dt(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 Qa extends Sn{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 Bo({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 yn({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 Qa(w({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(dt(this.name,t.detail.phase),t)))};dragMoveHandler=t=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(dt(this.name,t.detail.phase),t))};dragEndHandler=t=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(dt(this.name,t.detail.phase),t)))};setTouchAction(){this.element.addEventListener("touchstart",Yt,{passive:!1}),this.element.addEventListener("touchmove",Yt,{passive:!1}),this.element.addEventListener("touchend",Yt,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",Yt),this.element.removeEventListener("touchmove",Yt),this.element.removeEventListener("touchend",Yt)}}class qr extends Sn{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 qr(w({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=xt(s),this.state.lastPosition=w({},this.state.startCentroid),this.isActive=!0,this.originalTarget=o);break;case"pointermove":if(this.isActive&&this.state.startCentroid){const a=xt(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=dt(this.name,"cancel"),u=new CustomEvent(c,{bubbles:!0,cancelable:!0,composed:!0,detail:a});t.dispatchEvent(u)}this.resetState()}}class Ja extends Sn{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 qr({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 yn({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 Ja(w({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(dt(this.name,t.detail.phase),t)))};dragMoveHandler=t=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(dt(this.name,t.detail.phase),t))};dragEndHandler=t=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(dt(this.name,t.detail.phase),t)))};setTouchAction(){this.element.addEventListener("touchstart",Yt,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",Yt)}}class Qi extends jf{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 Qi(w({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?xt(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=dt(this.name,"ongoing"),c=new CustomEvent(a,{bubbles:!0,cancelable:!0,composed:!0,detail:s});this.element.dispatchEvent(c)}}const Bn=e=>e.preventDefault(),ec=({svgRef:e})=>{const t=R.useRef(null);R.useEffect(()=>{const o=e.current;t.current||(t.current=new b0({gestures:[new yn({name:"pan",threshold:0,maxPointers:1}),new Ka({name:"move",preventIf:["pan","zoomPinch","zoomPan"]}),new qr({name:"tap",preventIf:["pan","zoomPinch","zoomPan"]}),new Bo({name:"quickPress",duration:50}),new yn({name:"brush",threshold:0,maxPointers:1}),new yn({name:"zoomPan",threshold:0,preventIf:["zoomTapAndDrag","zoomPressAndDrag"]}),new Za({name:"zoomPinch",threshold:5}),new Qi({name:"zoomTurnWheel",sensitivity:.01,initialDelta:1}),new Qi({name:"panTurnWheel",sensitivity:.5}),new Ja({name:"zoomTapAndDrag",dragThreshold:10}),new Qa({name:"zoomPressAndDrag",dragThreshold:10,preventIf:["zoomPinch"]}),new qr({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=R.useCallback((o,s,a)=>{const c=e.current;return c?.addEventListener(o,s,a),{cleanup:()=>c?.removeEventListener(o,s)}},[e]),i=R.useCallback((o,s)=>{const a=e.current,c=t.current;!c||!a||c.setGestureOptions(o,a,s??{})},[e,t]);return R.useEffect(()=>{const o=e.current;return o?.addEventListener("gesturestart",Bn),o?.addEventListener("gesturechange",Bn),o?.addEventListener("gestureend",Bn),()=>{o?.removeEventListener("gesturestart",Bn),o?.removeEventListener("gesturechange",Bn),o?.removeEventListener("gestureend",Bn)}},[e]),{instance:{addInteractionListener:r,updateZoomInteractionListeners:i}}};ec.params={};ec.getInitialState=()=>({});const S0=[Wa,Ya,qo,zo,ec,No],C0=["apiRef"],w0=e=>{let{plugins:t}=e,r=te(e.props,C0);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 gu=0;function A0(e,t,r){const i=Ha(),o=R.useMemo(()=>[...S0,...e],[e]),s=w0({plugins:o,props:t});s.id=s.id??i;const c=R.useRef({}).current,u=P0(t.apiRef),l=R.useRef(null),d=R.useRef(null),f=R.useRef(null);if(f.current==null){gu+=1;const g={cacheKey:{id:gu}};o.forEach(m=>{m.getInitialState&&Object.assign(g,m.getInitialState(s,g,r))}),f.current=new Ga(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:R.useMemo(()=>({store:f.current,publicAPI:u.current,instance:c,svgRef:d,chartRootRef:l}),[c,u])}}function E0(e){return e.current==null&&(e.current={}),e}function P0(e){const t=R.useRef({});return e?E0(e):t}const tc=R.createContext(null);process.env.NODE_ENV!=="production"&&(tc.displayName="ChartContext");const yu=new Set;function pt(e,t="warning"){if(process.env.NODE_ENV==="production")return;const r=Array.isArray(e)?e.join(`
|
|
41
|
-
`):e;yu.has(r)||(yu.add(r),t==="error"?console.error(r):console.warn(r))}function R0(e){const{componentName:t,propName:r,controlled:i,defaultValue:o,warningPrefix:s="MUI X"}=e,[{initialDefaultValue:a,isControlled:c}]=R.useState({initialDefaultValue:o,isControlled:i!==void 0});c!==(i!==void 0)&&pt([`${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)&&pt([`${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 Nf=process.env.NODE_ENV==="production"?()=>{}:R0,qf=4,Ff=20+2*qf,I0=40+2*qf,M0="hover",_0={top:5,bottom:5,left:5,right:5},Ri={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",reverse:!1,slider:{enabled:!1,preview:!1,size:Ff,showTooltip:M0}},nc=(e,t,r,i)=>{if(e)return e===!0?w({axisId:t,axisDirection:r},Ri,{reverse:i??!1}):w({axisId:t,axisDirection:r},Ri,{reverse:i??!1},e,{slider:w({},Ri.slider,{size:e.slider?.preview??Ri.slider.preview?I0:Ff},e.slider)})};function zf(e,t){const r={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:nn,scaleType:"linear"}]).map((s,a)=>{const c=s.dataKey,u=a===0?"bottom":"none",l=s.position??u,d=Wx+(s.label?Pf:0),f=s.id??`defaultized-x-axis-${a}`,p=w({offset:r[l]},s,{id:f,position:l,height:s.height??d,zoom:nc(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 w({},p,{data:t.map(h=>h[c])})})}function Bf(e,t){const r={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:Ua,scaleType:"linear"}]).map((s,a)=>{const c=s.dataKey,u=a===0?"left":"none",l=s.position??u,d=Yx+(s.label?Pf:0),f=s.id??`defaultized-y-axis-${a}`,p=w({offset:r[l]},s,{id:f,position:l,width:s.width??d,zoom:nc(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 w({},p,{data:t.map(h=>h[c])})})}function $0(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 Cn(e){return e.scaleType==="band"}function wn(e){return e.scaleType==="point"}function D0(e){return e.scaleType!=="point"&&e.scaleType!=="band"}function L0(e){return e.scaleType==="symlog"}function Gi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function j0(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rc(e){let t,r,i;e.length!==2?(t=Gi,r=(c,u)=>Gi(e(c),u),i=(c,u)=>e(c)-u):(t=e===Gi||e===j0?e:N0,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 N0(){return 0}function q0(e){return e===null?NaN:+e}const F0=rc(Gi),Hf=F0.right;rc(q0).center;class Ji extends Map{constructor(t,r=H0){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(bu(this,t))}has(t){return super.has(bu(this,t))}set(t,r){return super.set(z0(this,t),r)}delete(t){return super.delete(B0(this,t))}}function bu({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):r}function z0({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function B0({_intern:e,_key:t},r){const i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function H0(e){return e!==null&&typeof e=="object"?e.valueOf():e}const V0=Math.sqrt(50),G0=Math.sqrt(10),U0=Math.sqrt(2);function eo(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>=V0?10:s>=G0?5:s>=U0?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?eo(e,t,r*2):[c,u,l]}function la(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?eo(t,e,r):eo(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 ua(e,t,r){return t=+t,e=+e,r=+r,eo(e,t,r)[2]}function da(e,t,r){t=+t,e=+e,r=+r;const i=t<e,o=i?ua(t,e,r):ua(e,t,r);return(i?-1:1)*(o<0?1/-o:o)}function Y0(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 rn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function W0(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 xu=Symbol("implicit");function fa(){var e=new Ji,t=[],r=[],i=xu;function o(s){let a=e.get(s);if(a===void 0){if(i!==xu)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 Ji;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 fa(t,r).unknown(i)},rn.apply(o,arguments),o}function ic(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Vf(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function ri(){}var Fr=.7,to=1/Fr,Zn="\\s*([+-]?\\d+)\\s*",zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X0=/^#([0-9a-f]{3,8})$/,K0=new RegExp(`^rgb\\(${Zn},${Zn},${Zn}\\)$`),Z0=new RegExp(`^rgb\\(${wt},${wt},${wt}\\)$`),Q0=new RegExp(`^rgba\\(${Zn},${Zn},${Zn},${zr}\\)$`),J0=new RegExp(`^rgba\\(${wt},${wt},${wt},${zr}\\)$`),ev=new RegExp(`^hsl\\(${zr},${wt},${wt}\\)$`),tv=new RegExp(`^hsla\\(${zr},${wt},${wt},${zr}\\)$`),vu={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};ic(ri,Br,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ou,formatHex:Ou,formatHex8:nv,formatHsl:rv,formatRgb:Tu,toString:Tu});function Ou(){return this.rgb().formatHex()}function nv(){return this.rgb().formatHex8()}function rv(){return Gf(this).formatHsl()}function Tu(){return this.rgb().formatRgb()}function Br(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=X0.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ku(t):r===3?new Ye(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ii(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ii(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=K0.exec(e))?new Ye(t[1],t[2],t[3],1):(t=Z0.exec(e))?new Ye(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Q0.exec(e))?Ii(t[1],t[2],t[3],t[4]):(t=J0.exec(e))?Ii(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ev.exec(e))?wu(t[1],t[2]/100,t[3]/100,1):(t=tv.exec(e))?wu(t[1],t[2]/100,t[3]/100,t[4]):vu.hasOwnProperty(e)?ku(vu[e]):e==="transparent"?new Ye(NaN,NaN,NaN,0):null}function ku(e){return new Ye(e>>16&255,e>>8&255,e&255,1)}function Ii(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ye(e,t,r,i)}function iv(e){return e instanceof ri||(e=Br(e)),e?(e=e.rgb(),new Ye(e.r,e.g,e.b,e.opacity)):new Ye}function pa(e,t,r,i){return arguments.length===1?iv(e):new Ye(e,t,r,i??1)}function Ye(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}ic(Ye,pa,Vf(ri,{brighter(e){return e=e==null?to:Math.pow(to,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Fr:Math.pow(Fr,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(bn(this.r),bn(this.g),bn(this.b),no(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:Su,formatHex:Su,formatHex8:ov,formatRgb:Cu,toString:Cu}));function Su(){return`#${pn(this.r)}${pn(this.g)}${pn(this.b)}`}function ov(){return`#${pn(this.r)}${pn(this.g)}${pn(this.b)}${pn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cu(){const e=no(this.opacity);return`${e===1?"rgb(":"rgba("}${bn(this.r)}, ${bn(this.g)}, ${bn(this.b)}${e===1?")":`, ${e})`}`}function no(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function bn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pn(e){return e=bn(e),(e<16?"0":"")+e.toString(16)}function wu(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new bt(e,t,r,i)}function Gf(e){if(e instanceof bt)return new bt(e.h,e.s,e.l,e.opacity);if(e instanceof ri||(e=Br(e)),!e)return new bt;if(e instanceof bt)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 bt(a,c,u,e.opacity)}function sv(e,t,r,i){return arguments.length===1?Gf(e):new bt(e,t,r,i??1)}function bt(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}ic(bt,sv,Vf(ri,{brighter(e){return e=e==null?to:Math.pow(to,e),new bt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Fr:Math.pow(Fr,e),new bt(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 Ye(Hs(e>=240?e-240:e+120,o,i),Hs(e,o,i),Hs(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new bt(Au(this.h),Mi(this.s),Mi(this.l),no(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=no(this.opacity);return`${e===1?"hsl(":"hsla("}${Au(this.h)}, ${Mi(this.s)*100}%, ${Mi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Au(e){return e=(e||0)%360,e<0?e+360:e}function Mi(e){return Math.max(0,Math.min(1,e||0))}function Hs(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 oc=e=>()=>e;function av(e,t){return function(r){return e+r*t}}function cv(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 lv(e){return(e=+e)==1?Uf:function(t,r){return r-t?cv(t,r,e):oc(isNaN(t)?r:t)}}function Uf(e,t){var r=t-e;return r?av(e,r):oc(isNaN(e)?t:e)}const Eu=(function e(t){var r=lv(t);function i(o,s){var a=r((o=pa(o)).r,(s=pa(s)).r),c=r(o.g,s.g),u=r(o.b,s.b),l=Uf(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 uv(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 dv(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fv(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]=Ho(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 sc(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}function ue(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function pv(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]=Ho(e[o],t[o]):i[o]=t[o];return function(s){for(o in r)i[o]=r[o](s);return i}}var ha=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vs=new RegExp(ha.source,"g");function hv(e){return function(){return e}}function mv(e){return function(t){return e(t)+""}}function ac(e,t){var r=ha.lastIndex=Vs.lastIndex=0,i,o,s,a=-1,c=[],u=[];for(e=e+"",t=t+"";(i=ha.exec(e))&&(o=Vs.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:ue(i,o)})),r=Vs.lastIndex;return r<t.length&&(s=t.slice(r),c[a]?c[a]+=s:c[++a]=s),c.length<2?u[0]?mv(u[0].x):hv(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 Ho(e,t){var r=typeof t,i;return t==null||r==="boolean"?oc(t):(r==="number"?ue:r==="string"?(i=Br(t))?(t=i,Eu):ac:t instanceof Br?Eu:t instanceof Date?sc:dv(t)?uv:Array.isArray(t)?fv:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?pv:ue)(e,t)}function Yf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function gv(e){return function(){return e}}function yv(e){return+e}var Pu=[0,1];function lt(e){return e}function ma(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:gv(isNaN(t)?NaN:.5)}function bv(e,t){var r;return e>t&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function xv(e,t,r){var i=e[0],o=e[1],s=t[0],a=t[1];return o<i?(i=ma(o,i),s=r(a,s)):(i=ma(i,o),s=r(s,a)),function(c){return s(i(c))}}function vv(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]=ma(e[a],e[a+1]),s[a]=r(t[a],t[a+1]);return function(c){var u=Hf(e,c,1,i)-1;return s[u](o[u](c))}}function ii(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Vo(){var e=Pu,t=Pu,r=Ho,i,o,s,a=lt,c,u,l;function d(){var p=Math.min(e.length,t.length);return a!==lt&&(a=bv(e[0],e[p-1])),c=p>2?vv:xv,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),ue)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,yv),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=Yf,d()},f.clamp=function(p){return arguments.length?(a=p?!0:lt,d()):a!==lt},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 Wf(){return Vo()(lt,lt)}function Ov(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ro(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=ro(Math.abs(e)),e?e[1]:NaN}function Tv(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 kv(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Sv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hr(e){if(!(t=Sv.exec(e)))throw new Error("invalid format: "+e);var t;return new cc({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]})}Hr.prototype=cc.prototype;function cc(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+""}cc.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 Cv(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 Xf;function wv(e,t){var r=ro(e,t);if(!r)return e+"";var i=r[0],o=r[1],s=o-(Xf=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")+ro(e,Math.max(0,t+s-1))[0]}function Ru(e,t){var r=ro(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 Iu={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ov,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)=>Ru(e*100,t),r:Ru,s:wv,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Mu(e){return e}var _u=Array.prototype.map,$u=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Av(e){var t=e.grouping===void 0||e.thousands===void 0?Mu:Tv(_u.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?Mu:kv(_u.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=Hr(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"):Iu[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():"",A=m==="$"?i:/[%p]/.test(T)?a:"",M=Iu[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 D(_){var x=k,E=A,P,j,q;if(T==="c")E=M(_)+E,_="";else{_=+_;var F=_<0||1/_<0;if(_=isNaN(_)?u:M(Math.abs(_),S),v&&(_=Cv(_)),F&&+_==0&&g!=="+"&&(F=!1),x=(F?g==="("?g:c:g==="-"||g==="("?"":g)+x,E=(T==="s"?$u[8+Xf/3]:"")+E+(F&&g==="("?")":""),I){for(P=-1,j=_.length;++P<j;)if(q=_.charCodeAt(P),48>q||q>57){E=(q===46?o+_.slice(P+1):_.slice(P))+E,_=_.slice(0,P);break}}}O&&!y&&(_=t(_,1/0));var G=x.length+_.length+E.length,V=G<b?new Array(b-G+1).join(p):"";switch(O&&y&&(_=t(V+_,V.length?b-E.length:1/0),V=""),h){case"<":_=x+_+E+V;break;case"=":_=x+V+_+E;break;case"^":_=V.slice(0,G=V.length>>1)+x+_+E+V.slice(G);break;default:_=V+x+_+E;break}return s(_)}return D.toString=function(){return f+""},D}function d(f,p){var h=l((f=Hr(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(tr(p)/3)))*3,m=Math.pow(10,-g),y=$u[8+g/3];return function(b){return h(m*b)+y}}return{format:l,formatPrefix:d}}var _i,lc,Kf;Ev({thousands:",",grouping:[3],currency:["$",""]});function Ev(e){return _i=Av(e),lc=_i.format,Kf=_i.formatPrefix,_i}function Pv(e){return Math.max(0,-tr(Math.abs(e)))}function Rv(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tr(t)/3)))*3-tr(Math.abs(e)))}function Iv(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tr(t)-tr(e))+1}function Mv(e,t,r,i){var o=da(e,t,r),s;switch(i=Hr(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(s=Rv(o,a))&&(i.precision=s),Kf(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=Iv(o,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=Pv(o))&&(i.precision=s-(i.type==="%")*2);break}}return lc(i)}function Go(e){var t=e.domain;return e.ticks=function(r){var i=t();return la(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var o=t();return Mv(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=ua(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 uc(){var e=Wf();return e.copy=function(){return ii(e,uc())},rn.apply(e,arguments),Go(e)}function Zf(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 Du(e){return Math.log(e)}function Lu(e){return Math.exp(e)}function _v(e){return-Math.log(-e)}function $v(e){return-Math.exp(-e)}function Dv(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Lv(e){return e===10?Dv:e===Math.E?Math.exp:t=>Math.pow(e,t)}function jv(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 ju(e){return(t,r)=>-e(-t,r)}function Nv(e){const t=e(Du,Lu),r=t.domain;let i=10,o,s;function a(){return o=jv(i),s=Lv(i),r()[0]<0?(o=ju(o),s=ju(s),e(_v,$v)):e(Du,Lu),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=la(l,d,y))}else b=la(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=Hr(u)).precision==null&&(u.trim=!0),u=lc(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(Zf(r(),{floor:c=>s(Math.floor(o(c))),ceil:c=>s(Math.ceil(o(c)))})),t}function io(){const e=Nv(Vo()).domain([1,10]);return e.copy=()=>ii(e,io()).base(e.base()),rn.apply(e,arguments),e}function Nu(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function qu(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qv(e){var t=1,r=e(Nu(t),qu(t));return r.constant=function(i){return arguments.length?e(Nu(t=+i),qu(t)):t},Go(r)}function Qf(){var e=qv(Vo());return e.copy=function(){return ii(e,Qf()).constant(e.constant())},rn.apply(e,arguments)}function Fu(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Fv(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function zv(e){return e<0?-e*e:e*e}function Bv(e){var t=e(lt,lt),r=1;function i(){return r===1?e(lt,lt):r===.5?e(Fv,zv):e(Fu(r),Fu(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,i()):r},Go(t)}function dc(){var e=Bv(Vo());return e.copy=function(){return ii(e,dc()).exponent(e.exponent())},rn.apply(e,arguments),e}function Hv(){return dc.apply(null,arguments).exponent(.5)}function Jf(){var e=[.5],t=[0,1],r,i=1;function o(s){return s!=null&&s<=s?t[Hf(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 Jf().domain(e).range(t).unknown(r)},rn.apply(o,arguments)}const Gs=new Date,Us=new Date;function Ie(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=>Ie(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)=>(Gs.setTime(+s),Us.setTime(+a),e(Gs),e(Us),Math.floor(r(Gs,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 oo=Ie(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);oo.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ie(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):oo);oo.range;const Lt=1e3,ut=Lt*60,jt=ut*60,Ft=jt*24,fc=Ft*7,zu=Ft*30,Ys=Ft*365,hn=Ie(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Lt)},(e,t)=>(t-e)/Lt,e=>e.getUTCSeconds());hn.range;const pc=Ie(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lt)},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getMinutes());pc.range;const hc=Ie(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getUTCMinutes());hc.range;const mc=Ie(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lt-e.getMinutes()*ut)},(e,t)=>{e.setTime(+e+t*jt)},(e,t)=>(t-e)/jt,e=>e.getHours());mc.range;const gc=Ie(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*jt)},(e,t)=>(t-e)/jt,e=>e.getUTCHours());gc.range;const oi=Ie(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ut)/Ft,e=>e.getDate()-1);oi.range;const Uo=Ie(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ft,e=>e.getUTCDate()-1);Uo.range;const ep=Ie(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ft,e=>Math.floor(e/Ft));ep.range;function An(e){return Ie(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())*ut)/fc)}const Yo=An(0),so=An(1),Vv=An(2),Gv=An(3),nr=An(4),Uv=An(5),Yv=An(6);Yo.range;so.range;Vv.range;Gv.range;nr.range;Uv.range;Yv.range;function En(e){return Ie(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)/fc)}const Wo=En(0),ao=En(1),Wv=En(2),Xv=En(3),rr=En(4),Kv=En(5),Zv=En(6);Wo.range;ao.range;Wv.range;Xv.range;rr.range;Kv.range;Zv.range;const yc=Ie(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());yc.range;const bc=Ie(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());bc.range;const zt=Ie(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());zt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ie(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)});zt.range;const Bt=Ie(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());Bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ie(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)});Bt.range;function tp(e,t,r,i,o,s){const a=[[hn,1,Lt],[hn,5,5*Lt],[hn,15,15*Lt],[hn,30,30*Lt],[s,1,ut],[s,5,5*ut],[s,15,15*ut],[s,30,30*ut],[o,1,jt],[o,3,3*jt],[o,6,6*jt],[o,12,12*jt],[i,1,Ft],[i,2,2*Ft],[r,1,fc],[t,1,zu],[t,3,3*zu],[e,1,Ys]];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=rc(([,,y])=>y).right(a,p);if(h===a.length)return e.every(da(l/Ys,d/Ys,f));if(h===0)return oo.every(Math.max(da(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[Qv,Jv]=tp(Bt,bc,Wo,ep,gc,hc),[eO,tO]=tp(zt,yc,Yo,oi,mc,pc);function Ws(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 Xs(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 Tr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function nO(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=kr(o),d=Sr(o),f=kr(s),p=Sr(s),h=kr(a),g=Sr(a),m=kr(c),y=Sr(c),b=kr(u),O=Sr(u),S={a:F,A:G,b:V,B:L,c:null,d:Yu,e:Yu,f:CO,g:DO,G:jO,H:TO,I:kO,j:SO,L:np,m:wO,M:AO,p:B,q:Y,Q:Ku,s:Zu,S:EO,u:PO,U:RO,V:IO,w:MO,W:_O,x:null,X:null,y:$O,Y:LO,Z:NO,"%":Xu},v={a:Q,A:W,b:K,B:Z,c:null,d:Wu,e:Wu,f:BO,g:QO,G:eT,H:qO,I:FO,j:zO,L:ip,m:HO,M:VO,p:J,q:ee,Q:Ku,s:Zu,S:GO,u:UO,U:YO,V:WO,w:XO,W:KO,x:null,X:null,y:ZO,Y:JO,Z:tT,"%":Xu},T={a:D,A:_,b:x,B:E,c:P,d:Gu,e:Gu,f:bO,g:Vu,G:Hu,H:Uu,I:Uu,j:hO,L:yO,m:pO,M:mO,p:I,q:fO,Q:vO,s:OO,S:gO,u:aO,U:cO,V:lO,w:sO,W:uO,x:j,X:q,y:Vu,Y:Hu,Z:dO,"%":xO};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 $=[],se=-1,oe=0,Ce=z.length,Me,Fe,Tt;for(X instanceof Date||(X=new Date(+X));++se<Ce;)z.charCodeAt(se)===37&&($.push(z.slice(oe,se)),(Fe=Bu[Me=z.charAt(++se)])!=null?Me=z.charAt(++se):Fe=Me==="e"?" ":"0",(Tt=H[Me])&&(Me=Tt(X,Fe)),$.push(Me),oe=se+1);return $.push(z.slice(oe,se)),$.join("")}}function A(z,H){return function(X){var $=Tr(1900,void 0,1),se=M($,z,X+="",0),oe,Ce;if(se!=X.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 $?(oe=Xs(Tr($.y,0,1)),Ce=oe.getUTCDay(),oe=Ce>4||Ce===0?ao.ceil(oe):ao(oe),oe=Uo.offset(oe,($.V-1)*7),$.y=oe.getUTCFullYear(),$.m=oe.getUTCMonth(),$.d=oe.getUTCDate()+($.w+6)%7):(oe=Ws(Tr($.y,0,1)),Ce=oe.getDay(),oe=Ce>4||Ce===0?so.ceil(oe):so(oe),oe=oi.offset(oe,($.V-1)*7),$.y=oe.getFullYear(),$.m=oe.getMonth(),$.d=oe.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),Ce="Z"in $?Xs(Tr($.y,0,1)).getUTCDay():Ws(Tr($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(Ce+5)%7:$.w+$.U*7-(Ce+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,Xs($)):Ws($)}}function M(z,H,X,$){for(var se=0,oe=H.length,Ce=X.length,Me,Fe;se<oe;){if($>=Ce)return-1;if(Me=H.charCodeAt(se++),Me===37){if(Me=H.charAt(se++),Fe=T[Me in Bu?H.charAt(se++):Me],!Fe||($=Fe(z,X,$))<0)return-1}else if(Me!=X.charCodeAt($++))return-1}return $}function I(z,H,X){var $=l.exec(H.slice(X));return $?(z.p=d.get($[0].toLowerCase()),X+$[0].length):-1}function D(z,H,X){var $=h.exec(H.slice(X));return $?(z.w=g.get($[0].toLowerCase()),X+$[0].length):-1}function _(z,H,X){var $=f.exec(H.slice(X));return $?(z.w=p.get($[0].toLowerCase()),X+$[0].length):-1}function x(z,H,X){var $=b.exec(H.slice(X));return $?(z.m=O.get($[0].toLowerCase()),X+$[0].length):-1}function E(z,H,X){var $=m.exec(H.slice(X));return $?(z.m=y.get($[0].toLowerCase()),X+$[0].length):-1}function P(z,H,X){return M(z,t,H,X)}function j(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=A(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=A(z+="",!0);return H.toString=function(){return z},H}}}var Bu={"-":"",_:" ",0:"0"},_e=/^\s*\d+/,rO=/^%/,iO=/[\\^$*+?|[\]().{}]/g;function ce(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 oO(e){return e.replace(iO,"\\$&")}function kr(e){return new RegExp("^(?:"+e.map(oO).join("|")+")","i")}function Sr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function sO(e,t,r){var i=_e.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function aO(e,t,r){var i=_e.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function cO(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function lO(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function uO(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function Hu(e,t,r){var i=_e.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function Vu(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function dO(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 fO(e,t,r){var i=_e.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function pO(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function Gu(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function hO(e,t,r){var i=_e.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function Uu(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function mO(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function gO(e,t,r){var i=_e.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function yO(e,t,r){var i=_e.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function bO(e,t,r){var i=_e.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function xO(e,t,r){var i=rO.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function vO(e,t,r){var i=_e.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function OO(e,t,r){var i=_e.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function Yu(e,t){return ce(e.getDate(),t,2)}function TO(e,t){return ce(e.getHours(),t,2)}function kO(e,t){return ce(e.getHours()%12||12,t,2)}function SO(e,t){return ce(1+oi.count(zt(e),e),t,3)}function np(e,t){return ce(e.getMilliseconds(),t,3)}function CO(e,t){return np(e,t)+"000"}function wO(e,t){return ce(e.getMonth()+1,t,2)}function AO(e,t){return ce(e.getMinutes(),t,2)}function EO(e,t){return ce(e.getSeconds(),t,2)}function PO(e){var t=e.getDay();return t===0?7:t}function RO(e,t){return ce(Yo.count(zt(e)-1,e),t,2)}function rp(e){var t=e.getDay();return t>=4||t===0?nr(e):nr.ceil(e)}function IO(e,t){return e=rp(e),ce(nr.count(zt(e),e)+(zt(e).getDay()===4),t,2)}function MO(e){return e.getDay()}function _O(e,t){return ce(so.count(zt(e)-1,e),t,2)}function $O(e,t){return ce(e.getFullYear()%100,t,2)}function DO(e,t){return e=rp(e),ce(e.getFullYear()%100,t,2)}function LO(e,t){return ce(e.getFullYear()%1e4,t,4)}function jO(e,t){var r=e.getDay();return e=r>=4||r===0?nr(e):nr.ceil(e),ce(e.getFullYear()%1e4,t,4)}function NO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Wu(e,t){return ce(e.getUTCDate(),t,2)}function qO(e,t){return ce(e.getUTCHours(),t,2)}function FO(e,t){return ce(e.getUTCHours()%12||12,t,2)}function zO(e,t){return ce(1+Uo.count(Bt(e),e),t,3)}function ip(e,t){return ce(e.getUTCMilliseconds(),t,3)}function BO(e,t){return ip(e,t)+"000"}function HO(e,t){return ce(e.getUTCMonth()+1,t,2)}function VO(e,t){return ce(e.getUTCMinutes(),t,2)}function GO(e,t){return ce(e.getUTCSeconds(),t,2)}function UO(e){var t=e.getUTCDay();return t===0?7:t}function YO(e,t){return ce(Wo.count(Bt(e)-1,e),t,2)}function op(e){var t=e.getUTCDay();return t>=4||t===0?rr(e):rr.ceil(e)}function WO(e,t){return e=op(e),ce(rr.count(Bt(e),e)+(Bt(e).getUTCDay()===4),t,2)}function XO(e){return e.getUTCDay()}function KO(e,t){return ce(ao.count(Bt(e)-1,e),t,2)}function ZO(e,t){return ce(e.getUTCFullYear()%100,t,2)}function QO(e,t){return e=op(e),ce(e.getUTCFullYear()%100,t,2)}function JO(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function eT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?rr(e):rr.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function tT(){return"+0000"}function Xu(){return"%"}function Ku(e){return+e}function Zu(e){return Math.floor(+e/1e3)}var Hn,sp,ap;nT({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 nT(e){return Hn=nO(e),sp=Hn.format,Hn.parse,ap=Hn.utcFormat,Hn.utcParse,Hn}function rT(e){return new Date(e)}function iT(e){return e instanceof Date?+e:+new Date(+e)}function xc(e,t,r,i,o,s,a,c,u,l){var d=Wf(),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,iT)):p().map(rT)},d.ticks=function(k){var A=p();return e(A[0],A[A.length-1],k??10)},d.tickFormat=function(k,A){return A==null?T:l(A)},d.nice=function(k){var A=p();return(!k||typeof k.range!="function")&&(k=t(A[0],A[A.length-1],k??10)),k?p(Zf(A,k)):d},d.copy=function(){return ii(d,xc(e,t,r,i,o,s,a,c,u,l))},d}function cp(){return rn.apply(xc(eO,tO,zt,yc,Yo,oi,mc,pc,hn,sp).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oT(){return rn.apply(xc(Qv,Jv,Bt,bc,Wo,Uo,gc,hc,hn,ap).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function sT(){var e=0,t=1,r,i,o,s,a=lt,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(Ho),l.rangeRound=d(Yf),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 aT(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lp(){var e=Go(sT()(lt));return e.copy=function(){return aT(e,lp())},W0.apply(e,arguments)}function up(e){return e.type==="piecewise"?Jf(e.thresholds,e.colors):lp([e.min??0,e.max??100],e.color)}function ir(e){return e.values?fa(e.values,e.colors).unknown(e.unknownColor??null):fa(e.colors.map((t,r)=>r),e.colors).unknown(e.unknownColor??null)}function Qn(e){return e.type==="ordinal"?ir(e):up(e)}function Xo(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 dp(e,t){return t[1]-t[0]===0?1:e/((t[1]-t[0])/100)}function vc(e){return Math.floor(Math.abs(e)/50)}function Qu(e){return Array.isArray(e)?JSON.stringify(e):typeof e=="object"&&e!==null?e.valueOf():e}function Ko(...e){let t=new Ji(void 0,Qu),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 A=Y0(y).map(M=>T+a*M);return i=b?A.reverse():A,p};p.domain=function(y){if(!arguments.length)return r.slice();r=[],t=new Ji(void 0,Qu);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=()=>Ko(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 fp(...e){const t=Ko(...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 pp(...e){const t=Qf(...e),r=t.ticks,{negativeScale:i,linearScale:o,positiveScale:s}=cT(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],A=(f===0?0:T/f)*a,M=i.tickFormat(m,c),I=o.tickFormat(S,c),D=s.tickFormat(A,c);return _=>(_.valueOf()<=-u?M:_.valueOf()>=u?D:I)(_)},t.copy=()=>pp(t.domain(),t.range()).constant(t.constant()),t}function cT(e){const t=e.constant(),r=e.domain(),i=[r[0],Math.min(r[1],-t)],o=io(i,e.range()),s=[Math.max(r[0],-t),Math.min(r[1],t)],a=uc(s,e.range()),c=[Math.max(r[0],t),r[1]],u=io(c,e.range());return{negativeScale:o,linearScale:a,positiveScale:u}}function Zo(e,t,r){switch(e){case"log":return io(t,r);case"pow":return dc(t,r);case"sqrt":return Hv(t,r);case"time":return cp(t,r);case"utc":return oT(t,r);case"symlog":return pp(t,r);default:return uc(t,r)}}const co=e=>e?.[0]instanceof Date;function ga(e,t,r){const i=cp(e,t);return(o,{location:s})=>s==="tick"?i.tickFormat(r)(o):`${o.toLocaleString()}`}let Ju,ed;class lT{types=new Set;constructor(){if(Ju)throw new Error("You can only create one instance!");Ju=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}class uT{types=new Set;constructor(){if(ed)throw new Error("You can only create one instance!");ed=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const Qo=new lT;Qo.addType("bar");Qo.addType("line");Qo.addType("scatter");const hp=new uT;hp.addType("radar");function Jo(e){return Qo.getTypes().has(e)}function lo(e){return Jo(e.type)}const dT=(e,t,r,i)=>{const o=new Set;return Object.keys(t).filter(Jo).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 Ee(e){return e.bandwidth!==void 0}function fT(e){return Ee(e)&&e.paddingOuter!==void 0}function pT(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 hT=.2,mT=.1;function mp({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=dT(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=pT(t,s,f.reverse??!1),y=c[f.id].tickNumber,b=!f.ignoreTooltip&&u.has(f.id),O=dp(y,g),S=f.data??[];if(Ee(p)){const k=s==="y"?[m[1],m[0]]:m;if(fT(p)&&Cn(f)){const A=f.categoryGapRatio??hT,M=f.barGapRatio??mT;l[f.id]=w({offset:0,height:0,categoryGapRatio:A,barGapRatio:M,triggerTooltip:b},f,{data:S,scale:p,tickNumber:O,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?ir(w({values:f.data},f.colorMap)):Qn(f.colorMap))})}if(wn(f)&&(l[f.id]=w({offset:0,height:0,triggerTooltip:b},f,{data:S,scale:p,tickNumber:O,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?ir(w({values:f.data},f.colorMap)):Qn(f.colorMap))})),co(f.data)){const A=ga(f.data,k,f.tickNumber);l[f.id].valueFormatter=f.valueFormatter??A}return}if(f.scaleType==="band"||f.scaleType==="point")return;const v=f,T=v.scaleType??"linear";l[f.id]=w({offset:0,height:0,triggerTooltip:b},v,{data:S,scaleType:T,scale:p,tickNumber:O,colorScale:v.colorMap&&up(v.colorMap),valueFormatter:f.valueFormatter??$0(O,Zo(T,m.map(k=>p.invert(k)),m))})}),{axis:l,axisIds:i.map(({id:d})=>d)}}function gT(e){return e!=null}function yT(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 bT(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 xT=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(gT).every(l=>l(s,a)),td=e=>(t=[])=>t.reduce((r,i)=>{const{zoom:o,id:s,reverse:a}=i,c=nc(o,s,e,a);return c&&(r[s]=c),r},{}),vT=.2;function gp(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 yp(e,t){const r=[0,1];if(Cn(e)){const s=e.categoryGapRatio??vT;return Ko(t,r).paddingInner(s).paddingOuter(s/2)}if(wn(e))return fp(t,r);const i=e.scaleType??"linear",o=Zo(i,t,r);return L0(e)&&e.constant!=null&&o.constant(e.constant),o}const bp=(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]},OT=(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 es(e,t,r,i,o,s){const a=Object.keys(r).filter(Jo);let c=[1/0,-1/0];for(const u of a){const[l,d]=OT(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 TT=(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 xp(e,t,r){return Zo(e??"linear",t,[0,1]).nice(r).domain()}function vp(e,t,r,i,[o,s],a,c){const u=Tp(e,t,r,i,c);let l=kp(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=Xo(e,l,a);return u==="nice"&&(l=xp(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 Op(e,t,r,i,[o,s],a,c){const u=Tp(e,t,r,i,c);let l=kp(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=xp(e.scaleType,l,a)),[e.min??l[0],e.max??l[1]]}function Tp(e,t,r,i,o){return o?TT(e,t,r,i):e.domainLimit??"nice"}function kp(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 kT{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 nd=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Ks=3;class Oc{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!==Ks)throw new Error(`Got v${s} data when expected v${Ks}.`);const a=nd[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 Oc(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=nd.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,(Ks<<4)+l]),new Uint16Array(f,2,1)[0]=r,new Uint32Array(f,4,1)[0]=t}this._queue=new kT}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]=wT(p,h)}ya(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,rd(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=ST){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,rd(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 ST(e,t){return e*e+t*t}function rd(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 ya(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;CT(e,t,r,f,p)}ya(e,t,r,i,p,s),ya(e,t,r,p+1,o,s)}function CT(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 wT(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 AT=e=>{const t=new Map;return e.forEach(r=>{t.set(r.axisId,r)}),t},Sp=e=>e.zoom,ET=U(It,Vt,(e,t)=>e?.some(r=>!!r.zoom)||t?.some(r=>!!r.zoom)||!1),Cp=U(Sp,e=>e?.isInteracting),on=le(Sp,function(t){return t?.zoomData&&AT(t?.zoomData)}),id=U(on,(e,t)=>e?.get(t)),si=le(It,Vt,function(t,r){return w({},td("x")(t),td("y")(r))});U(si,(e,t)=>e[t]);const PT=U(Ke,function(t){return vc(t.width)}),RT=U(Ke,function(t){return vc(t.height)}),Tc=le(It,xe,Ze,Fo,PT,function(t,r,i,o,s){const c={};return t?.forEach((u,l)=>{const d=u;if(Cn(d)||wn(d)){c[d.id]={domain:d.data},d.ordinalTimeTicks!==void 0&&(c[d.id].tickNumber=Xo(d,[d.data?.find(p=>p!==null),d.data?.findLast(p=>p!==null)],s));return}const f=es(d,"x",i,l,r);c[d.id]=vp(d,"x",l,r,f,s,o)}),{axes:t,domains:c}}),kc=le(Vt,xe,Ze,Fo,RT,function(t,r,i,o,s){const c={};return t?.forEach((u,l)=>{const d=u;if(Cn(d)||wn(d)){c[d.id]={domain:d.data},d.ordinalTimeTicks!==void 0&&(c[d.id].tickNumber=Xo(d,[d.data?.find(p=>p!==null),d.data?.findLast(p=>p!==null)],s));return}const f=es(d,"y",i,l,r);c[d.id]=vp(d,"y",l,r,f,s,o)}),{axes:t,domains:c}}),wp=le(on,si,Tc,kc,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]=yT(f.data,p.start,p.end,h);else{const{domain:g}=h==="x"?o[f.id]:a[f.id];u[f.id]=bT(g,p.start,p.end,h,f.data)}c=!0}if(c)return xT(u)}),IT=le(xe,Ze,on,si,wp,Fo,Tc,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(Cn(d)||wn(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=es(d,"x",r,f,t,m);l[d.id]=Op(d,"x",f,t,b,y,a)}),l}),MT=le(xe,Ze,on,si,wp,Fo,kc,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(Cn(d)||wn(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=es(d,"y",r,f,t,m);l[d.id]=Op(d,"y",f,t,b,y,a)}),l}),Ap=le(It,IT,function(t,r){const i={};return t?.forEach(o=>{const s=o,a=r[s.id];i[s.id]=yp(s,a)}),i}),Ep=le(Vt,MT,function(t,r){const i={};return t?.forEach(o=>{const s=o,a=r[s.id];i[s.id]=yp(s,a)}),i}),_T=le(It,Ap,Ke,on,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=gp(i,"x",c),f=r[c.id].copy(),p=bp(d,l);f.range(p),s[c.id]=f}),s}),$T=le(Vt,Ep,Ke,on,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=gp(i,"y",c),f=r[c.id].copy(),p=Ee(f)?d.reverse():d,h=bp(p,l);f.range(h),s[c.id]=f}),s}),He=le(Ke,xe,Ze,on,Tc,_T,function(t,r,i,o,{axes:s,domains:a},c){return mp({scales:c,drawingArea:t,formattedSeries:r,axis:s,seriesConfig:i,axisDirection:"x",zoomMap:o,domains:a})}),Ve=le(Ke,xe,Ze,on,kc,$T,function(t,r,i,o,{axes:s,domains:a},c){return mp({scales:c,drawingArea:t,formattedSeries:r,axis:s,seriesConfig:i,axisDirection:"y",zoomMap:o,domains:a})});U(He,Ve,(e,t,r)=>e?.axis[r]??t?.axis[r]);U(It,Vt,(e,t,r)=>{const i=e?.find(o=>o.id===r)??t?.find(o=>o.id===r)??null;if(i)return i});const DT=U(It,e=>e[0].id),LT=U(Vt,e=>e[0].id),jT=new Map,NT=()=>jT,qT=le(xe,Ap,Ep,DT,LT,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 Oc(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 Vn(e){return e instanceof Date?e.getTime():e}function or(e,t){const{scale:r,data:i,reverse:o}=e;if(!Ee(r)){const a=r.invert(t);if(i===void 0)return-1;const c=Vn(a);return i?.findIndex((l,d)=>{const f=Vn(l);return f>c&&(d===0||Math.abs(c-f)<=Math.abs(c-Vn(i[d-1])))||f<=c&&(d===i.length-1||Math.abs(Vn(a)-f)<Math.abs(Vn(a)-Vn(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 od(e,t,r,i){if(!Ee(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 Vr(e,t){const r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r.matrixTransform(e.getScreenCTM().inverse())}const Pn=({store:e})=>{const t=ze(function(){e.update({interaction:w({},e.state.interaction,{pointer:null})})}),r=ze(function(s){e.state.interaction.lastUpdate!==s&&e.set("interaction",w({},e.state.interaction,{lastUpdate:s}))}),i=ze(function(s){e.set("interaction",w({},e.state.interaction,{pointer:s,lastUpdate:s!==null?"pointer":e.state.interaction.lastUpdate}))});return{instance:{cleanInteraction:t,setLastUpdateSource:r,setPointerCoordinate:i}}};Pn.getInitialState=()=>({interaction:{item:null,pointer:null,lastUpdate:"pointer"}});Pn.params={};const Sc=e=>e.interaction,FT=U(Sc,e=>e!==void 0),Pp=U(Sc,e=>e?.pointer??null),ai=U(Pp,e=>e&&e.x),ci=U(Pp,e=>e&&e.y),li=U(Sc,e=>e?.lastUpdate);function Jn(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(!Jn(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(!Jn(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(!Jn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ba(e,t,r=t.axisIds[0]){return Array.isArray(r)?r.map(i=>or(t.axis[i],e)):or(t.axis[r],e)}const Rp=(e,t,r)=>{if(e===null)return null;const i=ba(e,t,r);return i===-1?null:i},Cc=U(ai,He,Rp),wc=U(ci,Ve,Rp),zT=U(ai,ci,He,Ve,(e,t,r,i)=>[...e===null?[]:r.axisIds.map(o=>({axisId:o,dataIndex:ba(e,r,o)})),...t===null?[]:i.axisIds.map(o=>({axisId:o,dataIndex:ba(t,i,o)}))].filter(o=>o.dataIndex!==null&&o.dataIndex>=0));function Ip(e,t,r,i=t.axisIds[0]){return Array.isArray(i)?i.map((o,s)=>{const a=t.axis[o];return od(a.scale,a.data,e,r[s])}):od(t.axis[i].scale,t.axis[i].data,e,r)}const BT=U(ai,He,Cc,(e,t,r,i)=>e===null||t.axisIds.length===0?null:Ip(e,t,r,i)),HT=U(ci,Ve,wc,(e,t,r,i)=>e===null||t.axisIds.length===0?null:Ip(e,t,r,i)),Mp=[],_p=jo({memoizeOptions:{resultEqualityCheck:Jn}})(ai,He,(e,t)=>e===null?Mp:t.axisIds.filter(r=>t.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:or(t.axis[r],e)})).filter(({dataIndex:r})=>r>=0)),$p=jo({memoizeOptions:{resultEqualityCheck:Jn}})(ci,Ve,(e,t)=>e===null?Mp:t.axisIds.filter(r=>t.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:or(t.axis[r],e)})).filter(({dataIndex:r})=>r>=0)),VT=U(_p,$p,(e,t)=>e.length>0||t.length>0);function GT(e){return e.setPointerCoordinate!==void 0}const Rn=({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,A)=>v.indexOf(k)!==A));T.size>0&&pt([`MUI X Charts: The following axis ids are duplicated: ${Array.from(T).join(", ")}.`,"Please make sure that each axis has a unique id."].join(`
|
|
42
|
-
`),"error")}const l=t.use(Ke),d=t.use(xe),f=t.use(FT),{axis:p,axisIds:h}=t.use(He),{axis:g,axisIds:m}=t.use(Ve);Nf({warningPrefix:"MUI X Charts",componentName:"Chart",propName:"highlightedAxis",controlled:e.highlightedAxis,defaultValue:void 0}),tt(()=>{e.highlightedAxis!==void 0&&t.set("controlledCartesianAxisHighlight",e.highlightedAxis)},[t,e.highlightedAxis]);const y=R.useRef(!0);R.useEffect(()=>{if(y.current){y.current=!1;return}t.set("cartesianAxis",{x:zf(s,c),y:Bf(a,c)})},[r,l,s,a,c,t]);const b=h[0],O=m[0];Fx(t,zT,(v,T)=>{if(u&&!Object.is(v,T)){if(v.length!==T.length){u(T);return}v?.some(({axisId:k,dataIndex:A},M)=>T[M].axisId!==k||T[M].dataIndex!==A)&&u(T)}});const S=GT(o);return R.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()}),A=o.addInteractionListener("quickPressEnd",x=>{!x.detail.activeGestures.move&&!x.detail.activeGestures.pan&&o.cleanInteraction()}),M=x=>{const E=x.detail.srcEvent,P=x.detail.target,j=Vr(v,E);if(x.detail.srcEvent.buttons>=1&&P?.hasPointerCapture(x.detail.srcEvent.pointerId)&&!P?.closest("[data-charts-zoom-slider]")&&P?.releasePointerCapture(x.detail.srcEvent.pointerId),!o.isPointInside(j.x,j.y,P)){o.cleanInteraction?.();return}o.setPointerCoordinate(j)},I=o.addInteractionListener("move",M),D=o.addInteractionListener("pan",M),_=o.addInteractionListener("quickPress",M);return()=>{I.cleanup(),T.cleanup(),D.cleanup(),k.cleanup(),_.cleanup(),A.cleanup()}},[i,t,p,b,g,O,o,e.disableAxisListener,f,S]),R.useEffect(()=>{const v=i.current,T=e.onAxisClick;if(v===null||!T)return()=>{};const k=o.addInteractionListener("tap",A=>{let M=null,I=!1;const D=Vr(v,A.detail.srcEvent),_=or(p[b],D.x);I=_!==-1,M=I?_:or(g[O],D.y);const x=I?h[0]:m[0];if(M==null||M===-1)return;const E=(I?p:g)[x].data[M],P={};Object.keys(d).filter(j=>["bar","line"].includes(j)).forEach(j=>{d[j]?.seriesOrder.forEach(q=>{const F=d[j].series[q],G=F.xAxisId,V=F.yAxisId,L=I?G:V;(L===void 0||L===x)&&(P[q]=F.data[M])})}),T(A.detail.srcEvent,{dataIndex:M,axisValue:E,seriesValues:P})});return()=>{k.cleanup()}},[e.onAxisClick,d,i,p,h,g,m,b,O,o]),{}};Rn.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0};Rn.getDefaultizedParams=({params:e})=>w({},e,{colors:e.colors??_f,theme:e.theme??"light",defaultizedXAxis:zf(e.xAxis,e.dataset),defaultizedYAxis:Bf(e.yAxis,e.dataset)});Rn.getInitialState=e=>w({cartesianAxis:{x:e.defaultizedXAxis,y:e.defaultizedYAxis}},e.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:e.highlightedAxis});const UT=Object.is;function Gr(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,!UT(e[o],t[o])||!(o in t))return!1;for(const o in t)i+=1;return r===i}const ui=e=>e.keyboardNavigation,YT=U(ui,(e,t)=>e?.item!=null&&Gr(e.item,t)),Dp=U(ui,e=>e?.item!=null),Ac=U(ui,e=>e?.item??null),WT=U(ui,e=>!!e?.enableKeyboardNavigation),Lp=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}},XT=U(Ac,He,xe,Lp("x")),KT=U(Ac,Ve,xe,Lp("y")),jp=U(ui,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}),Mt=e=>e.brush;U(Mt,e=>e?.start);U(Mt,e=>e?.current);const ZT=U(Mt,e=>e?.start?.x??null),QT=U(Mt,e=>e?.start?.y??null),JT=U(Mt,e=>e?.current?.x??null),ek=U(Mt,e=>e?.current?.y??null);le(ZT,QT,JT,ek,(e,t,r,i)=>e===null||t===null||r===null||i===null?null:{start:{x:e,y:t},current:{x:r,y:i}});const tk=U(xe,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"}),nk=U(si,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(tk,nk,(e,t)=>t??e);const Np=U(Mt,e=>e?.enabled||e?.isZoomBrushEnabled),qp=U(Np,Mt,(e,t)=>e&&t?.start!==null&&t?.current!==null),ts=U(Mt,qp,(e,t)=>t&&e?.preventHighlight),rk=U(Mt,qp,(e,t)=>t&&e?.preventTooltip),hr=({store:e,svgRef:t,instance:r,params:i})=>{const o=e.use(Np);tt(()=>{e.set("brush",w({},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=ze(function(l){e.set("brush",w({},e.state.brush,{start:e.state.brush.start??l,current:l}))}),a=ze(function(){e.set("brush",w({},e.state.brush,{start:null,current:null}))}),c=ze(function(l){e.state.brush.isZoomBrushEnabled!==l&&e.set("brush",w({},e.state.brush,{isZoomBrushEnabled:l}))});return R.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=Vr(u,{clientX:m.detail.initialCentroid.x,clientY:m.detail.initialCentroid.y});s(y)},d=m=>{const y=Vr(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}}};hr.params={brushConfig:!0};hr.getDefaultizedParams=({params:e})=>w({},e,{brushConfig:{enabled:e?.brushConfig?.enabled??!1,preventTooltip:e?.brushConfig?.preventTooltip??!0,preventHighlight:e?.brushConfig?.preventHighlight??!0}});hr.getInitialState=e=>({brush:{enabled:e.brushConfig.enabled,isZoomBrushEnabled:!1,preventTooltip:e.brushConfig.preventTooltip,preventHighlight:e.brushConfig.preventHighlight,start:null,current:null}});const mr=e=>e.controlledCartesianAxisHighlight,Fp=(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}],zp=le(Cc,He,mr,ts,Fp);le(wc,Ve,mr,ts,Fp);const Bp=(e,t,r,i,o,s,a)=>{if(a)return[];if(i!==void 0)return i.map(d=>w({},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&&w({},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[]},ik=le(Cc,BT,He,mr,XT,li,ts,Bp),ok=le(wc,HT,Ve,mr,KT,li,ts,Bp),Hp=(e,t)=>e===void 0?[t.axis[t.axisIds[0]]]:e.map(i=>t.axis[i.axisId]??null).filter(i=>i!==null);U(mr,He,Hp);U(mr,Ve,Hp);const In=({store:e})=>{const t=ze(function(o){const s=e.state.tooltip.item;if(!o){s!==null&&e.set("tooltip",{item:null});return}s===null||!Gr(s,o)||e.set("tooltip",{item:null})});return{instance:{setTooltipItem:ze(function(o){Gr(e.state.tooltip.item,o)||e.set("tooltip",{item:o})}),removeTooltipItem:t}}};In.getInitialState=()=>({tooltip:{item:null}});In.params={};const gr=({params:e,store:t,svgRef:r})=>{const i=ze(function(){t.state.keyboardNavigation.item!==null&&t.set("keyboardNavigation",w({},t.state.keyboardNavigation,{item:null}))});return R.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(Df(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(w({},t.state.highlight&&{highlight:w({},t.state.highlight,{lastUpdate:"keyboard"})},t.state.interaction&&{interaction:w({},t.state.interaction,{lastUpdate:"keyboard"})},{keyboardNavigation:w({},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]),tt(()=>{t.state.keyboardNavigation.enableKeyboardNavigation!==e.enableKeyboardNavigation&&t.set("keyboardNavigation",w({},t.state.keyboardNavigation,{enableKeyboardNavigation:!!e.enableKeyboardNavigation}))},[t,e.enableKeyboardNavigation]),{}};gr.getInitialState=e=>({keyboardNavigation:{item:null,enableKeyboardNavigation:!!e.enableKeyboardNavigation}});gr.params={enableKeyboardNavigation:!0};function Ec(e){return hp.getTypes().has(e)}const sk=(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)]},ak=(e,t,r,i,o)=>{const a=Object.keys(r).filter(Ec).reduce((c,u)=>sk(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},Nt=(e,t)=>e===void 0?t:Math.PI*e/180,ck=(e,t,r,i)=>{const o=new Set;return Object.keys(t).filter(Ec).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 lk(e,t,r){if(t==="rotation"){if(r.scaleType==="point"){const i=[Nt(r.startAngle,0),Nt(r.endAngle,2*Math.PI)],o=i[1]-i[0];return o>Math.PI*2-.1&&(i[1]-=o/r.data.length),i}return[Nt(r.startAngle,0),Nt(r.endAngle,2*Math.PI)]}return[0,Math.min(e.height,e.width)/2]}const uk=.2,dk=.1;function Vp({drawingArea:e,formattedSeries:t,axis:r,seriesConfig:i,axisDirection:o}){if(r===void 0)return{axis:{},axisIds:[]};const s=ck(o,i,t,r[0].id),a={};return r.forEach((c,u)=>{const l=c,d=lk(e,o,l),[f,p]=ak(l,o,i,u,t),h=!l.ignoreTooltip&&s.has(l.id),g=l.data??[];if(Cn(l)){const I=l.categoryGapRatio??uk,D=l.barGapRatio??dk;if(a[l.id]=w({offset:0,categoryGapRatio:I,barGapRatio:D,triggerTooltip:h},l,{data:g,scale:Ko(l.data,d).paddingInner(I).paddingOuter(I/2),tickNumber:l.data.length,colorScale:l.colorMap&&(l.colorMap.type==="ordinal"?ir(w({values:l.data},l.colorMap)):Qn(l.colorMap))}),co(l.data)){const _=ga(l.data,d,l.tickNumber);a[l.id].valueFormatter=l.valueFormatter??_}}if(wn(l)&&(a[l.id]=w({offset:0,triggerTooltip:h},l,{data:g,scale:fp(l.data,d),tickNumber:l.data.length,colorScale:l.colorMap&&(l.colorMap.type==="ordinal"?ir(w({values:l.data},l.colorMap)):Qn(l.colorMap))}),co(l.data))){const I=ga(l.data,d,l.tickNumber);a[l.id].valueFormatter=l.valueFormatter??I}if(!D0(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:D}=y(f,p);b[0]=I,b[1]=D}const O=Xo(l,b,vc(Math.abs(d[1]-d[0]))),S=dp(O,d),v=Zo(m,b,d),T=y==="nice"?v.nice(O):v,[k,A]=T.domain(),M=[l.min??k,l.max??A];a[l.id]=w({offset:0,triggerTooltip:h},l,{data:g,scaleType:m,scale:T.domain(M),tickNumber:S,colorScale:l.colorMap&&Qn(l.colorMap)})}),{axis:a,axisIds:r.map(({id:c})=>c)}}const Gp=e=>e.polarAxis,Up=U(Gp,e=>e?.rotation),fk=U(Gp,e=>e?.radius),sn=le(Up,Ke,xe,Ze,(e,t,r,i)=>Vp({drawingArea:t,formattedSeries:r,axis:e,seriesConfig:i,axisDirection:"rotation"})),pk=le(fk,Ke,xe,Ze,(e,t,r,i)=>Vp({drawingArea:t,formattedSeries:r,axis:e,seriesConfig:i,axisDirection:"radius"}));function hk(e){return{cx:e.left+e.width/2,cy:e.top+e.height/2}}const mk=le(Ke,hk),gk=e=>e.tooltip,Yp=U(gk,e=>e?.item??null),yk=U(Yp,e=>e!==null),Pc=U(li,Yp,jp,(e,t,r)=>e==="keyboard"?r:t??null),bk=U(li,yk,Dp,(e,t,r)=>e==="keyboard"?r:t),xk=le(Pc,He,Ve,sn,pk,xe,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=lo(l)?l.xAxisId??i[0]:void 0,p=lo(l)?l.yAxisId??s[0]:void 0;return f!==void 0&&(d.x=r[f]),p!==void 0&&(d.y=o[p]),d}),vk=le(Pc,Ke,Ze,xe,Lf,xk,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 sd(e,t){return e.id!==void 0?e:w({id:t},e)}function ad(e){return e.colorMap?w({},e,{colorScale:e.colorMap.type==="ordinal"&&e.data?ir(w({values:e.data},e.colorMap)):Qn(e.colorMap.type==="continuous"?w({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function Wp(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]=ad(sd(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]=ad(sd(w({},o,{data:t.map(u=>u[a])}),c)),i.push(c)}),{axis:r,axisIds:i}}const yr=({params:e,store:t})=>{const{zAxis:r,dataset:i}=e,o=R.useRef(!0);return R.useEffect(()=>{if(o.current){o.current=!1;return}t.set("zAxis",Wp(r,i))},[r,i,t]),{}};yr.params={zAxis:!0,dataset:!0};yr.getInitialState=e=>({zAxis:Wp(e.zAxis,e.dataset)});const Ok=e=>e,Tk=U(Ok,e=>e.zAxis),Mn=({store:e,params:t})=>{Nf({warningPrefix:"MUI X Charts",componentName:"Chart",propName:"highlightedItem",controlled:t.highlightedItem,defaultValue:null}),tt(()=>{e.state.highlight.item!==t.highlightedItem&&e.set("highlight",w({},e.state.highlight,{item:t.highlightedItem})),process.env.NODE_ENV!=="production"&&t.highlightedItem!==void 0&&!e.state.highlight.isControlled&&pt(["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(`
|
|
43
|
-
`))},[e,t.highlightedItem]);const r=ze(()=>{t.onHighlightChange?.(null);const o=e.state.highlight;o.item===null||o.isControlled||e.set("highlight",{item:null,lastUpdate:"pointer",isControlled:!1})}),i=ze(o=>{const s=e.state.highlight;Gr(s.item,o)||(t.onHighlightChange?.(o),!s.isControlled&&e.set("highlight",{item:o,lastUpdate:"pointer",isControlled:!1}))});return{instance:{clearHighlight:r,setHighlight:i}}};Mn.getInitialState=e=>({highlight:{item:e.highlightedItem,lastUpdate:"pointer",isControlled:e.highlightedItem!==void 0}});Mn.params={highlightedItem:!0,onHighlightChange:!0};function uo(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 cd=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},Xp=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 uo(s??[])},Kp=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(cd(h[0],e),g)||!l(cd(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])},kk=e=>Object.keys(e.series).some(r=>e.series[r].layout==="horizontal")?Kp("x")(e):Xp(e),Sk=e=>Object.keys(e.series).some(r=>e.series[r].layout==="horizontal")?Xp(e):Kp("y")(e);function ie(e){return function(){return e}}const ld=Math.abs,Ne=Math.atan2,Dt=Math.cos,Ck=Math.max,Zs=Math.min,Ue=Math.sin,Le=Math.sqrt,qe=1e-12,Jt=Math.PI,fo=Jt/2,Kt=2*Jt;function wk(e){return e>1?0:e<-1?Jt:Math.acos(e)}function ud(e){return e>=1?fo:e<=-1?-fo:Math.asin(e)}const xa=Math.PI,va=2*xa,dn=1e-6,Ak=va-dn;function Zp(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Ek(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Zp;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 Pk{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Zp:Ek(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>dn)if(!(Math.abs(f*u-l*d)>dn)||!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((xa-Math.acos((m+p-y)/(2*b*O)))/2),v=S/O,T=S/b;Math.abs(v-1)>dn&&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)>dn||Math.abs(this._y1-d)>dn)&&this._append`L${l},${d}`,i&&(p<0&&(p=p%va+va),p>Ak?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>dn&&this._append`A${i},${i},0,${+(p>=xa)},${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 Pk(t)}function Rk(e){return e.innerRadius}function Ik(e){return e.outerRadius}function Mk(e){return e.startAngle}function _k(e){return e.endAngle}function $k(e){return e&&e.padAngle}function Dk(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<qe))return p=(d*(t-s)-f*(e-o))/p,[e+p*u,t+p*l]}function $i(e,t,r,i,o,s,a){var c=e-r,u=t-i,l=(a?s:-s)/Le(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,A=(S<0?-1:1)*Le(Ck(0,T*T*v-k*k)),M=(k*S-O*A)/v,I=(-k*O-S*A)/v,D=(k*S+O*A)/v,_=(-k*O+S*A)/v,x=M-y,E=I-b,P=D-y,j=_-b;return x*x+E*E>P*P+j*j&&(M=D,I=_),{cx:M,cy:I,x01:-d,y01:-f,x11:M*(o/T-1),y11:I*(o/T-1)}}function Qp(){var e=Rk,t=Ik,r=ie(0),i=null,o=Mk,s=_k,a=$k,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=ld(m-g),b=m>g;if(c||(c=d=u()),h<p&&(f=h,h=p,p=f),!(h>qe))c.moveTo(0,0);else if(y>Kt-qe)c.moveTo(h*Dt(g),h*Ue(g)),c.arc(0,0,h,g,m,!b),p>qe&&(c.moveTo(p*Dt(m),p*Ue(m)),c.arc(0,0,p,m,g,b));else{var O=g,S=m,v=g,T=m,k=y,A=y,M=a.apply(this,arguments)/2,I=M>qe&&(i?+i.apply(this,arguments):Le(p*p+h*h)),D=Zs(ld(h-p)/2,+r.apply(this,arguments)),_=D,x=D,E,P;if(I>qe){var j=ud(I/p*Ue(M)),q=ud(I/h*Ue(M));(k-=j*2)>qe?(j*=b?1:-1,v+=j,T-=j):(k=0,v=T=(g+m)/2),(A-=q*2)>qe?(q*=b?1:-1,O+=q,S-=q):(A=0,O=S=(g+m)/2)}var F=h*Dt(O),G=h*Ue(O),V=p*Dt(T),L=p*Ue(T);if(D>qe){var B=h*Dt(S),Y=h*Ue(S),Q=p*Dt(v),W=p*Ue(v),K;if(y<Jt)if(K=Dk(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/Ue(wk((Z*ee+J*z)/(Le(Z*Z+J*J)*Le(ee*ee+z*z)))/2),X=Le(K[0]*K[0]+K[1]*K[1]);_=Zs(D,(p-X)/(H-1)),x=Zs(D,(h-X)/(H+1))}else _=x=0}A>qe?x>qe?(E=$i(Q,W,F,G,h,x,b),P=$i(B,Y,V,L,h,x,b),c.moveTo(E.cx+E.x01,E.cy+E.y01),x<D?c.arc(E.cx,E.cy,x,Ne(E.y01,E.x01),Ne(P.y01,P.x01),!b):(c.arc(E.cx,E.cy,x,Ne(E.y01,E.x01),Ne(E.y11,E.x11),!b),c.arc(0,0,h,Ne(E.cy+E.y11,E.cx+E.x11),Ne(P.cy+P.y11,P.cx+P.x11),!b),c.arc(P.cx,P.cy,x,Ne(P.y11,P.x11),Ne(P.y01,P.x01),!b))):(c.moveTo(F,G),c.arc(0,0,h,O,S,!b)):c.moveTo(F,G),!(p>qe)||!(k>qe)?c.lineTo(V,L):_>qe?(E=$i(V,L,B,Y,p,-_,b),P=$i(F,G,Q,W,p,-_,b),c.lineTo(E.cx+E.x01,E.cy+E.y01),_<D?c.arc(E.cx,E.cy,_,Ne(E.y01,E.x01),Ne(P.y01,P.x01),!b):(c.arc(E.cx,E.cy,_,Ne(E.y01,E.x01),Ne(E.y11,E.x11),!b),c.arc(0,0,p,Ne(E.cy+E.y11,E.cx+E.x11),Ne(P.cy+P.y11,P.cx+P.x11),b),c.arc(P.cx,P.cy,_,Ne(P.y11,P.x11),Ne(P.y01,P.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-Jt/2;return[Dt(f)*d,Ue(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 rs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Jp(e){this._context=e}Jp.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 Rc(e){return new Jp(e)}function eh(e){return e[0]}function th(e){return e[1]}function nh(e,t){var r=ie(!0),i=null,o=Rc,s=null,a=ns(c);e=typeof e=="function"?e:e===void 0?eh:ie(e),t=typeof t=="function"?t:t===void 0?th:ie(t);function c(u){var l,d=(u=rs(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 Lk(e,t,r){var i=null,o=ie(!0),s=null,a=Rc,c=null,u=ns(l);e=typeof e=="function"?e:e===void 0?eh:ie(+e),t=typeof t=="function"?t:ie(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?th:ie(+r);function l(f){var p,h,g,m=(f=rs(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 nh().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 jk(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Nk(e){return e}function qk(){var e=Nk,t=jk,r=null,i=ie(0),o=ie(Kt),s=ie(0);function a(c){var u,l=(c=rs(c)).length,d,f,p=0,h=new Array(l),g=new Array(l),m=+i.apply(this,arguments),y=Math.min(Kt,Math.max(-Kt,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 rh{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 Fk(e){return new rh(e,!0)}function zk(e){return new rh(e,!1)}const ih={draw(e,t){const r=Le(t/Jt);e.moveTo(r,0),e.arc(0,0,r,0,Kt)}},Bk={draw(e,t){const r=Le(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()}},oh=Le(1/3),Hk=oh*2,Vk={draw(e,t){const r=Le(t/Hk),i=r*oh;e.moveTo(0,-r),e.lineTo(i,0),e.lineTo(0,r),e.lineTo(-i,0),e.closePath()}},Gk={draw(e,t){const r=Le(t),i=-r/2;e.rect(i,i,r,r)}},Uk=.8908130915292852,sh=Ue(Jt/10)/Ue(7*Jt/10),Yk=Ue(Kt/10)*sh,Wk=-Dt(Kt/10)*sh,Xk={draw(e,t){const r=Le(t*Uk),i=Yk*r,o=Wk*r;e.moveTo(0,-r),e.lineTo(i,o);for(let s=1;s<5;++s){const a=Kt*s/5,c=Dt(a),u=Ue(a);e.lineTo(u*r,-c*r),e.lineTo(c*i-u*o,u*i+c*o)}e.closePath()}},Qs=Le(3),Kk={draw(e,t){const r=-Le(t/(Qs*3));e.moveTo(0,r*2),e.lineTo(-Qs*r,-r),e.lineTo(Qs*r,-r),e.closePath()}},ot=-.5,st=Le(3)/2,Oa=1/Le(12),Zk=(Oa/2+1)*3,Qk={draw(e,t){const r=Le(t/Zk),i=r/2,o=r*Oa,s=i,a=r*Oa+r,c=-s,u=a;e.moveTo(i,o),e.lineTo(s,a),e.lineTo(c,u),e.lineTo(ot*i-st*o,st*i+ot*o),e.lineTo(ot*s-st*a,st*s+ot*a),e.lineTo(ot*c-st*u,st*c+ot*u),e.lineTo(ot*i+st*o,ot*o-st*i),e.lineTo(ot*s+st*a,ot*a-st*s),e.lineTo(ot*c+st*u,ot*u-st*c),e.closePath()}},ah=[ih,Bk,Vk,Gk,Xk,Kk,Qk];function ch(e,t){let r=null,i=ns(o);e=typeof e=="function"?e:ie(e||ih),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 dd(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 Ic(e,t){this._context=e,this._k=(1-t)/6}Ic.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:dd(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:dd(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 Ic(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Jk(e,t,r){var i=e._x1,o=e._y1,s=e._x2,a=e._y2;if(e._l01_a>qe){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>qe){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 lh(e,t){this._context=e,this._alpha=t}lh.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:Jk(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 eS=(function e(t){function r(i){return t?new lh(i,t):new Ic(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function fd(e){return e<0?-1:1}function pd(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(fd(s)+fd(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(c))||0}function hd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Js(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 po(e){this._context=e}po.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Js(this,this._t0,hd(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,Js(this,hd(this,r=pd(this,e,t)),r);break;default:Js(this,this._t0,r=pd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function uh(e){this._context=new dh(e)}(uh.prototype=Object.create(po.prototype)).point=function(e,t){po.prototype.point.call(this,t,e)};function dh(e){this._context=e}dh.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 md(e){return new po(e)}function tS(e){return new uh(e)}function fh(e){this._context=e}fh.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=gd(e),o=gd(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 gd(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 nS(e){return new fh(e)}function is(e,t){this._context=e,this._t=t}is.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 rS(e){return new is(e,.5)}function iS(e){return new is(e,0)}function oS(e){return new is(e,1)}function sr(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 sS(e,t){return e[t]}function aS(e){const t=[];return t.key=e,t}function ph(){var e=ie([]),t=ar,r=sr,i=sS;function o(s){var a=Array.from(e.apply(this,arguments),aS),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=rs(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??sr,o):r},o}function cS(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}sr(e,t)}}function lS(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}sr(e,t)}}function uS(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,sr(e,t)}}function hh(e){var t=e.map(dS);return ar(e).sort(function(r,i){return t[r]-t[i]})}function dS(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 mh(e){var t=e.map(gh);return ar(e).sort(function(r,i){return t[r]-t[i]})}function gh(e){for(var t=0,r=-1,i=e.length,o;++r<i;)(o=+e[r][1])&&(t+=o);return t}function fS(e){return mh(e).reverse()}function pS(e){var t=e.length,r,i,o=e.map(gh),s=hh(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 hS(e){return ar(e).reverse()}function mS(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 ea={appearance:hh,ascending:mh,descending:fS,insideOut:pS,none:ar,reverse:hS},ta={expand:cS,diverging:mS,none:sr,silhouette:lS,wiggle:uS},yh=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:ea.none,stackingOffset:ta.none}):s[c]===void 0?(s[c]=o.length,o.push({ids:[a],stackingOrder:ea[u??i?.stackOrder??"none"],stackingOffset:ta[l??i?.stackOffset??"diverging"]})):(o[s[c]].ids.push(a),u!==void 0&&(o[s[c]].stackingOrder=ea[u]),l!==void 0&&(o[s[c]].stackingOffset=ta[l]))}),o},gS=e=>e==null?"":e.toLocaleString(),yS=(e,t)=>{const{seriesOrder:r,series:i}=e,o=yh(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(`
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
`));t.forEach((d,f)=>{const p=d[l];p!=null&&typeof p!="number"&&pt([`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(`
|
|
50
|
-
`))})}});const a={};return o.forEach(c=>{const{ids:u,stackingOrder:l,stackingOffset:d}=c,f=ph().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]=w({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}},$c=(e,t,r)=>{const i=r?.colorScale,o=t?.colorScale,s=Mc(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})}},zS=e=>{const{seriesOrder:t,series:r}=e;return t.reduce((i,o)=>{const s=nt(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},[])},BS=e=>{const{series:t,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;const o=nt(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}},HS=e=>Object.values(e).map(t=>({direction:"x",axisId:t.xAxisId})),VS=(e,t,r)=>w({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??r[t%r.length]}),GS=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)}},ji=new Set(["bar","line","scatter"]),US=e=>{switch(e.key){case"ArrowRight":return os(ji);case"ArrowLeft":return ss(ji);case"ArrowDown":return cs(ji);case"ArrowUp":return as(ji);default:return null}},YS={colorProcessor:$c,seriesProcessor:FS,legendGetter:zS,tooltipGetter:BS,tooltipItemPositionGetter:GS,axisTooltipGetter:HS,xExtremumGetter:jS,yExtremumGetter:qS,getSeriesWithDefaultValues:VS,keyboardFocusHandler:US},WS=(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}},XS=e=>{const{seriesOrder:t,series:r}=e,i={};return t.forEach(o=>{const s=qk().startAngle(Nt(r[o].startAngle??0)).endAngle(Nt(r[o].endAngle??360)).padAngle(Nt(r[o].paddingAngle??0)).sortValues(WS(r[o].sortingValues??"none"))(r[o].data.map(a=>a.value));i[o]=w({labelMarkType:"circle",valueFormatter:a=>a.value.toLocaleString()},r[o],{data:r[o].data.map((a,c)=>w({},a,{id:a.id??`auto-generated-pie-id-${o}-${c}`},s[c])).map((a,c)=>w({labelMarkType:"circle"},a,{formattedValue:r[o].valueFormatter?.(w({},a,{label:nt(a.label,"arc")}),{dataIndex:c})??a.value.toLocaleString()}))})}),{seriesOrder:t,series:i}},KS=e=>t=>e.data[t].color,ZS=e=>{const{seriesOrder:t,series:r}=e;return t.reduce((i,o)=>(r[o].data.forEach((s,a)=>{const c=nt(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),[])},QS=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=nt(o.label,"tooltip"),a=w({},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 $r(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 JS(e,t){const{height:r,width:i}=t,{cx:o,cy:s}=e,a=Math.min(i,r)/2,c=$r(o??"50%",i),u=$r(s??"50%",r);return{cx:c,cy:u,availableRadius:a}}const eC=(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}=JS({cx:c,cy:u},{width:t.width,height:t.height}),p=$r(s??f,f),h=$r(o??0,f),g=a===void 0?(h+p)/2:$r(a,f);r[i]={radius:{available:f,inner:h,outer:p,label:g},center:{x:t.left+l,y:t.top+d}}}return r},tC=(e,t,r)=>w({},e,{id:e.id??`auto-generated-id-${t}`,data:e.data.map((i,o)=>w({},i,{color:i.color??r[o%r.length]}))}),nC=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]=uo(f.map(y=>y.x)),[g,m]=uo(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}}},Ni=new Set(["pie"]),rC=e=>{switch(e.key){case"ArrowRight":return os(Ni);case"ArrowLeft":return ss(Ni);case"ArrowDown":return cs(Ni);case"ArrowUp":return as(Ni);default:return null}},iC={colorProcessor:KS,seriesProcessor:XS,seriesLayout:eC,legendGetter:ZS,tooltipGetter:QS,tooltipItemPositionGetter:nC,getSeriesWithDefaultValues:tC,keyboardFocusHandler:rC},oC={bar:wS,scatter:LS,line:YS,pie:iC},sC=[yr,In,Pn,Rn,Mn];function aC(e){const{children:t,plugins:r=sC,pluginParams:i={},seriesConfig:o=oC}=e,{contextValue:s}=A0(r,i,o);return C.jsx(tc.Provider,{value:s,children:t})}const Qe=()=>{const e=R.useContext(tc);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(`
|
|
51
|
-
`));return e};function cC(e){"hasPointerCapture"in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}const br=(e,t)=>{const{instance:r}=Qe(),i=R.useRef(!1),o=ze(()=>{i.current=!0,r.setLastUpdateSource("pointer"),r.setTooltipItem(e),r.setHighlight(e.type==="sankey"?e:{seriesId:e.seriesId,dataIndex:e.dataIndex})}),s=ze(()=>{i.current=!1,r.removeTooltipItem(e),r.clearHighlight()});return R.useEffect(()=>()=>{i.current&&s()},[s]),R.useMemo(()=>t?{}:{onPointerEnter:o,onPointerLeave:s,onPointerDown:cC},[t,o,s])};function me(){const e=Qe();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(`
|
|
52
|
-
`));return e.store}function lC(){return!1}function Th(e,t){return!e||!t?lC: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 uC(){return!1}function kh(e,t){return!e||!t?uC: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 Dc(e,t,r){return e?.highlight==="series"&&t?.seriesId===r}function dC(e,t,r){return Dc(e,t,r)?!1:e?.fade==="global"&&t!=null||e?.fade==="series"&&t?.seriesId===r}function Sh(e,t,r){return e?.highlight==="item"&&t?.seriesId===r?t.dataIndex:null}function fC(e,t,r){return Dc(e,t,r)||Sh(e,t,r)===t?.dataIndex?null:(e?.fade==="series"||e?.fade==="global")&&t?.seriesId===r?t.dataIndex:null}const pC=e=>e.highlight,hC=U(xe,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}),Gt=le(pC,jp,function(t,r){return t.isControlled||t.lastUpdate==="pointer"?t.item:r}),an=U(hC,Gt,function(t,r){if(!r)return null;const i=t.get(r.seriesId);return i===void 0?null:i}),mC=le(an,Gt,Th),gC=le(an,Gt,kh),yC=U(an,Gt,function(t,r,i){return Th(t,r)(i)});U(an,Gt,Dc);U(an,Gt,dC);U(an,Gt,fC);U(an,Gt,Sh);const bC=U(an,Gt,function(t,r,i){return kh(t,r)(i)});function di(e){const t=me(),r=t.use(yC,e),i=t.use(bC,e);return{isHighlighted:r,isFaded:!r&&i}}var na,yd;function xC(){if(yd)return na;yd=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 na=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(A){for(var M=0,I=1,D=o-1;I!==D&&v[I]<=A;++I)M+=s;--I;var _=(A-v[I])/(v[I+1]-v[I]),x=M+_*s,E=f(x,y,O);return E>=t?h(A,x,y,O):E===0?x:p(A,M,M+s,y,O)}return function(M){return M===0?0:M===1?1:d(k(M),b,S)}},na}var vC=xC();const OC=ef(vC),vt=300,Pt="cubic-bezier(0.66, 0, 0.34, 1)",TC=OC(.66,0,.34,1);var cr=0,Ir=0,Cr=0,Ch=1e3,ho,Mr,mo=0,On=0,ls=0,Ur=typeof performance=="object"&&performance.now?performance:Date,wh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Lc(){return On||(wh(kC),On=Ur.now()+ls)}function kC(){On=0}function go(){this._call=this._time=this._next=null}go.prototype=Ah.prototype={constructor:go,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Lc():+r)+(t==null?0:+t),!this._next&&Mr!==this&&(Mr?Mr._next=this:ho=this,Mr=this),this._call=e,this._time=r,Ta()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ta())}};function Ah(e,t,r){var i=new go;return i.restart(e,t,r),i}function SC(){Lc(),++cr;for(var e=ho,t;e;)(t=On-e._time)>=0&&e._call.call(void 0,t),e=e._next;--cr}function bd(){On=(mo=Ur.now())+ls,cr=Ir=0;try{SC()}finally{cr=0,wC(),On=0}}function CC(){var e=Ur.now(),t=e-mo;t>Ch&&(ls-=t,mo=e)}function wC(){for(var e,t=ho,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:ho=r);Mr=e,Ta(i)}function Ta(e){if(!cr){Ir&&(Ir=clearTimeout(Ir));var t=e-On;t>24?(e<1/0&&(Ir=setTimeout(bd,e-Ur.now()-ls)),Cr&&(Cr=clearInterval(Cr))):(Cr||(mo=Ur.now(),Cr=setInterval(CC,Ch)),cr=1,wh(bd))}}function AC(e,t,r){var i=new go;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,r),i}class EC{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=Lc()-this.elapsed;return this.timer=Ah(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(),AC(()=>this.timerCallback(this.duration)),this}}function PC(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 RC(e,{createInterpolator:t,applyProps:r,skip:i,initialProps:o=e}){const s=R.useRef(o),a=R.useRef(null),c=R.useRef(null),u=R.useRef(e);tt(()=>{u.current=e},[e]),tt(()=>{i&&(a.current?.finish(),a.current=null,c.current=null,s.current=e)},[e,i]);const l=R.useCallback(f=>{const p=s.current,h=t(p,e);a.current=new EC(vt,TC,g=>{const m=h(g);s.current=m,r(f,m)})},[r,t,e]);return[R.useCallback(f=>{if(f===null){a.current?.stop();return}const p=c.current;if(p===f){if(PC(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 _n(e,{createInterpolator:t,transformProps:r,applyProps:i,skip:o,initialProps:s=e,ref:a}){const c=r??(f=>f),[u,l]=RC(e,{initialProps:s,createInterpolator:t,applyProps:(f,p)=>i(f,c(p)),skip:o}),d=r(o?e:l);return w({},d,{ref:Ba(u,a)})}function IC(e){return _n({d:e.d},{createInterpolator:(t,r)=>{const i=ac(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 Eh(e){return e.replace(" ","_")}function it(){return me().use(Ke)}function fi(){return me().use(a0)}const MC=e=>(t,r)=>Math.atan2(t-e.cx,e.cy-r);function us(e){return(e%360+360)%360}const ra=2*Math.PI;function _C(e){return(e%ra+ra)%ra}function xd(e,t){const{scale:r,data:i,reverse:o}=e;if(!Ee(r))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!i)return-1;const s=_C(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 $e(){const e=me(),{axis:t,axisIds:r}=e.use(He);return{xAxis:t,xAxisIds:r}}function De(){const e=me(),{axis:t,axisIds:r}=e.use(Ve);return{yAxis:t,yAxisIds:r}}function $C(e){const t=me(),{axis:r,axisIds:i}=t.use(He),o=i[0];return r[o]}function DC(e){const t=me(),{axis:r,axisIds:i}=t.use(Ve),o=i[0];return r[o]}function Ph(){const e=me(),{axis:t,axisIds:r}=e.use(sn);return{rotationAxis:t,rotationAxisIds:r}}function LC(e){const t=me(),{axis:r,axisIds:i}=t.use(sn),o=i[0];return r[o]}function xr(e){if(Ee(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 jc(){const e=me(),{axis:t,axisIds:r}=e.use(Tk)??{axis:{},axisIds:[]};return{zAxis:t,zAxisIds:r}}function Nc(){const e=Qe();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(`
|
|
53
|
-
`));return e.svgRef}function ds(){return me().use(xe)}const jC=U(xe,(e,t)=>e[t]);le(xe,(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`;pt([`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 qc=e=>me().use(jC,e);function Rh(){return qc("pie")}function Ih(){return me().use(Lf).pie??{}}function Mh(){return qc("bar")}function pi(){return qc("line")}function _h(){const e=me(),t=e.use(mC),r=e.use(gC);return{isHighlighted:t,isFaded:r}}function NC(e,t){return Object.keys(e).flatMap(r=>{const i=t[r].legendGetter;return i===void 0?[]:i(e[r])})}function qC(){const e=ds(),r=me().use(Ze);return{items:NC(e,r)}}function Fc(){const e=fi();return R.useCallback(t=>`${e}-gradient-${t}`,[e])}function FC(){const e=fi();return R.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}function zC(e,t){const r=ue(e.x,t.x),i=ue(e.y,t.y),o=ue(e.width,t.width),s=ue(e.height,t.height);return a=>({x:r(a),y:i(a),width:o(a),height:s(a)})}function BC(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 _n({x:e.x,y:e.y,width:e.width,height:e.height},{createInterpolator:zC,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 HC(e,t){const r=ue(e.x,t.x),i=ue(e.y,t.y),o=ue(e.width,t.width),s=ue(e.height,t.height);return a=>({x:r(a),y:i(a),width:o(a),height:s(a)})}function VC(e){const{initialX:t,currentX:r,initialY:i,currentY:o}=e.placement==="outside"?UC(e):GC(e),s={x:t,y:i,width:e.width,height:e.height},a={x:r,y:o,width:e.width,height:e.height};return _n(a,{createInterpolator:HC,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 Gn=4;function GC(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 UC(e){let t=0,r=0,i=0,o=0;return e.layout==="vertical"?(e.y<e.yOrigin?(t=e.yOrigin-Gn,r=e.y-Gn):(t=e.yOrigin+Gn,r=e.y+e.height+Gn),{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-Gn):(i=e.xOrigin,o=e.x+e.width+Gn),{initialX:i,currentX:o,initialY:e.y+e.height/2,currentY:e.y+e.height/2})}function YC(e){return _n({d:e.d},{createInterpolator:(t,r)=>{const i=ac(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 WC(e,t){const r=ue(e.startAngle,t.startAngle),i=ue(e.endAngle,t.endAngle),o=ue(e.innerRadius,t.innerRadius),s=ue(e.outerRadius,t.outerRadius),a=ue(e.paddingAngle,t.paddingAngle),c=ue(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 XC(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 _n({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:WC,transformProps:r=>({d:Qp().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 KC(e,t){const r=ue(e.startAngle,t.startAngle),i=ue(e.endAngle,t.endAngle),o=ue(e.innerRadius,t.innerRadius),s=ue(e.outerRadius,t.outerRadius),a=ue(e.paddingAngle,t.paddingAngle),c=ue(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 ZC(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 _n({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.arcLabelRadius??e.innerRadius,outerRadius:e.arcLabelRadius??e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:KC,transformProps:r=>{const[i,o]=Qp().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 QC(){return Qe().chartRootRef}const JC={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},e1=e=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:w({},e)}}}}),$h={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:e=>`Export as ${JC[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"},t1=$h;e1($h);const n1=["localeText"],yo=R.createContext(null);process.env.NODE_ENV!=="production"&&(yo.displayName="ChartsLocalizationContext");function Dh(e){const{localeText:t}=e,r=te(e,n1),{localeText:i}=R.useContext(yo)??{localeText:void 0},o=Be({props:r,name:"MuiChartsLocalizationProvider"}),{children:s,localeText:a}=o,c=R.useMemo(()=>w({},t1,a,i,t),[a,i,t]),u=R.useMemo(()=>({localeText:c}),[c]);return C.jsx(yo.Provider,{value:u,children:s})}process.env.NODE_ENV!=="production"&&(Dh.propTypes={children:n.node,localeText:n.object});const Lh=()=>{const e=R.useContext(yo);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(`
|
|
54
|
-
`));return e},jh=we("MuiAppearingMask",["animate"]),r1=re("rect")({animationName:"animate-width",animationTimingFunction:Pt,animationDuration:"0s",[`&.${jh.animate}`]:{animationDuration:`${vt}ms`},"@keyframes animate-width":{from:{width:0}}});function Nh(e){const t=it(),r=fi(),i=Eh(`${r}-${e.id}`);return C.jsxs(R.Fragment,{children:[C.jsx("clipPath",{id:i,children:C.jsx(r1,{className:e.skipAnimation?"":jh.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 i1=["skipAnimation","ownerState"];function qh(e){const{skipAnimation:t,ownerState:r}=e,i=te(e,i1),o=IC(e);return C.jsx(Nh,{skipAnimation:t,id:`${r.id}-area-clip`,children:C.jsx("path",w({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"&&(qh.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 o1=["id","classes","color","gradientId","slots","slotProps","onClick"];function s1(e){return Re("MuiAreaElement",e)}const a1=we("MuiAreaElement",["root","highlighted","faded","series"]),c1=e=>{const{classes:t,id:r,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${r}`,o&&"highlighted",i&&"faded"]};return Pe(s,s1,t)};function Fh(e){const{id:t,classes:r,color:i,gradientId:o,slots:s,slotProps:a,onClick:c}=e,u=te(e,o1),l=br({type:"line",seriesId:t}),{isFaded:d,isHighlighted:f}=di({seriesId:t}),p={id:t,classes:r,color:i,gradientId:o,isFaded:d,isHighlighted:f},h=c1(p),g=s?.area??qh,m=Et({elementType:g,externalSlotProps:a?.area,additionalProps:w({},l,{onClick:c,cursor:c?"pointer":"unset"}),className:h.root,ownerState:p});return C.jsx(g,w({},u,m))}process.env.NODE_ENV!=="production"&&(Fh.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 hi(e){const r=me().use(Hx);return e||r}function fs(){return me().use(Cp)}function zh(e){switch(e){case"catmullRom":return eS.alpha(.5);case"linear":return Rc;case"monotoneX":return md;case"monotoneY":return tS;case"natural":return nS;case"step":return rS;case"stepBefore":return iS;case"stepAfter":return oS;case"bumpY":return zk;case"bumpX":return Fk;default:return md}}function l1(e,t){const r=pi(),i=$e().xAxisIds[0],o=De().yAxisIds[0],s=Fc();return R.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 A=e[g].scale,M=xr(A),I=t[m].scale,D=e[g].data,_=t[m].colorScale&&s(m)||e[g].colorScale&&s(g)||void 0;if(process.env.NODE_ENV!=="production"){if(D===void 0)throw new Error(`MUI X Charts: ${g===nn?"The first `xAxis`":`The x-axis with id "${g}"`} should have data property to be able to display a line plot.`);if(D.length<y.length)throw new Error(`MUI X Charts: The data length of the x axis (${D.length} items) is lower than the length of series (${y.length} items).`)}const x=v?.includes("step")&&!T&&Ee(A),E=D?.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:(A(F)??0)-(A.step()-A.bandwidth())/2,y:y[G],nullData:V,isExtension:!0}),!V&&(G===b.length-1||b[G+1]==null)&&L.push({x:(A(F)??0)+(A.step()+A.bandwidth())/2,y:y[G],nullData:V,isExtension:!0}),L}return{x:F,y:y[G],nullData:V}})??[],P=O?E.filter(F=>!F.nullData):E,q=Lk().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(zh(v))(P)||"";l.push({area:c[h].area,color:c[h].color,gradientId:_,d:q,seriesId:h})}}return l},[r,i,o,e,t,s])}const u1=["slots","slotProps","onItemClick","skipAnimation"],d1=re("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${a1.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${vt}ms`,transitionTimingFunction:Pt}}),f1=()=>{const{xAxis:e}=$e(),{yAxis:t}=De();return l1(e,t)};function Bh(e){const{slots:t,slotProps:r,onItemClick:i,skipAnimation:o}=e,s=te(e,u1),a=fs(),c=hi(a||o),u=f1();return C.jsx(d1,w({},s,{children:u.map(({d:l,seriesId:d,color:f,area:p,gradientId:h})=>!!p&&C.jsx(Fh,{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"&&(Bh.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});const p1=["skipAnimation","ownerState"],zc=R.forwardRef(function(t,r){const{skipAnimation:i,ownerState:o}=t,s=te(t,p1),a=YC(w({},t,{ref:r}));return C.jsx(Nh,{skipAnimation:i,id:`${o.id}-line-clip`,children:C.jsx("path",w({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"&&(zc.displayName="AnimatedLine");process.env.NODE_ENV!=="production"&&(zc.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 h1=["id","classes","color","gradientId","slots","slotProps","onClick"];function m1(e){return Re("MuiLineElement",e)}const g1=we("MuiLineElement",["root","highlighted","faded","series"]),y1=e=>{const{classes:t,id:r,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${r}`,o&&"highlighted",i&&"faded"]};return Pe(s,m1,t)};function Hh(e){const{id:t,classes:r,color:i,gradientId:o,slots:s,slotProps:a,onClick:c}=e,u=te(e,h1),l=br({type:"line",seriesId:t}),{isFaded:d,isHighlighted:f}=di({seriesId:t}),p={id:t,classes:r,color:i,gradientId:o,isFaded:d,isHighlighted:f},h=y1(p),g=s?.line??zc,m=Et({elementType:g,externalSlotProps:a?.line,additionalProps:w({},l,{onClick:c,cursor:c?"pointer":"unset"}),className:h.root,ownerState:p});return C.jsx(g,w({},u,m))}process.env.NODE_ENV!=="production"&&(Hh.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 b1(e,t){const r=pi(),i=$e().xAxisIds[0],o=De().yAxisIds[0],s=Fc();return R.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=xr(v),k=t[g].scale,A=e[h].data,M=t[g].colorScale&&s(g)||e[h].colorScale&&s(h)||void 0;if(process.env.NODE_ENV!=="production"){if(A===void 0)throw new Error(`MUI X Charts: ${h===nn?"The first `xAxis`":`The x-axis with id "${h}"`} should have data property to be able to display a line plot.`);A.length<m.length&&pt(`MUI X Charts: The data length of the x axis (${A.length} items) is lower than the length of series (${m.length} items).`,"error")}const I=O?.includes("step")&&!S&&Ee(v),D=A?.flatMap((P,j)=>{const q=y[j]==null;if(I){const F=[{x:P,y:m[j],nullData:q,isExtension:!1}];return!q&&(j===0||y[j-1]==null)&&F.unshift({x:(v(P)??0)-(v.step()-v.bandwidth())/2,y:m[j],nullData:q,isExtension:!0}),!q&&(j===y.length-1||y[j+1]==null)&&F.push({x:(v(P)??0)+(v.step()+v.bandwidth())/2,y:m[j],nullData:q,isExtension:!0}),F}return{x:P,y:m[j],nullData:q}})??[],_=b?D.filter(P=>!P.nullData):D,E=nh().x(P=>P.isExtension?P.x:T(P.x)).defined(P=>b||!P.nullData||!!P.isExtension).y(P=>k(P.y[1])).curve(zh(O))(_)||"";l.push({color:c[p].color,gradientId:M,d:E,seriesId:p})}}return l},[r,i,o,e,t,s])}const x1=["slots","slotProps","skipAnimation","onItemClick"],v1=re("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${g1.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${vt}ms`,transitionTimingFunction:Pt}}),O1=()=>{const{xAxis:e}=$e(),{yAxis:t}=De();return b1(e,t)};function Vh(e){const{slots:t,slotProps:r,skipAnimation:i,onItemClick:o}=e,s=te(e,x1),a=fs(),c=hi(a||i),u=O1();return C.jsx(v1,w({},s,{children:u.map(({d:l,seriesId:d,color:f,gradientId:p})=>C.jsx(Hh,{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"&&(Vh.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});function T1(e){return Re("MuiMarkElement",e)}const Gh=we("MuiMarkElement",["root","highlighted","faded","animate","series"]),Uh=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 Pe(a,T1,t)},k1=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],S1=re("circle")({[`&.${Gh.animate}`]:{transitionDuration:`${vt}ms`,transitionProperty:"cx, cy, opacity",transitionTimingFunction:Pt}});function Yh(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,k1),p=je(),h=br({type:"line",seriesId:i,dataIndex:a}),m=Uh({id:i,classes:o,isHighlighted:d,isFaded:l,skipAnimation:u});return C.jsx(S1,w({},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"&&(Yh.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 Wh(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 C1=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],w1=re("path",{name:"MuiMarkElement",slot:"Root"})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2,[`&.${Gh.animate}`]:{transitionDuration:`${vt}ms`,transitionProperty:"transform, transform-origin, opacity",transitionTimingFunction:Pt}}));function Xh(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,C1),h=br({type:"line",seriesId:i,dataIndex:c}),g={id:i,classes:o,isHighlighted:f,isFaded:d,color:s,skipAnimation:l},m=Uh(g);return C.jsx(w1,w({},p,{style:{transform:`translate(${t}px, ${r}px)`,transformOrigin:`${t}px ${r}px`},ownerState:g,className:m.root,d:ch(ah[Wh(a)])(),onClick:u,cursor:u?"pointer":"unset"},h,{"data-highlighted":f||void 0,"data-faded":d||void 0}))}process.env.NODE_ENV!=="production"&&(Xh.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 A1(e,t){const r=pi(),i=$e().xAxisIds[0],o=De().yAxisIds[0],s=fi(),{instance:a}=Qe();return R.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=xr(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===nn?"The first `xAxis`":`The x-axis with id "${g}"`} should have data property to be able to display a line plot.`);const A=Eh(`${s}-${h}-line-clip`),M=$c(u[h],e[g],t[m]),I=[];if(k)for(let D=0;D<k.length;D+=1){const _=k[D],x=b[D]==null?null:y[D][1];if(x===null)continue;const E=T(x),P=v(_);a.isPointInside(P,E)&&(O!==!0&&!O({x:P,y:E,index:D,position:_,value:x})||I.push({x:P,y:E,index:D,color:M(D)}))}d.push({seriesId:h,clipId:A,shape:S,xAxisId:g,marks:I})}}return d},[r,i,o,s,e,t,a])}const E1=["slots","slotProps","skipAnimation","onItemClick"];function Kh(e){const{slots:t,slotProps:r,skipAnimation:i,onItemClick:o}=e,s=te(e,E1),a=fs(),c=hi(a||i),{xAxis:u}=$e(),{yAxis:l}=De(),{store:d}=Qe(),{isFaded:f,isHighlighted:p}=_h(),h=d.use(zp),g=R.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=A1(u,l);return C.jsx("g",w({},s,{children:m.map(({seriesId:y,clipId:b,shape:O,xAxisId:S,marks:v})=>{const T=t?.mark??(O==="circle"?Yh:Xh),k=p({seriesId:y}),A=!k&&f({seriesId:y});return C.jsx("g",{clipPath:`url(#${b})`,"data-series":y,children:v.map(({x:M,y:I,index:D,color:_})=>C.jsx(T,w({id:y,dataIndex:D,shape:O,color:_,x:M,y:I,skipAnimation:c,onClick:o&&(x=>o(x,{type:"line",seriesId:y,dataIndex:D})),isHighlighted:g[S]?.has(D)||k,isFaded:A},r?.mark),`${y}-${D}`))},y)})}))}process.env.NODE_ENV!=="production"&&(Kh.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});function ps(){const[e,t]=R.useState(!1);return R.useEffect(()=>{t(!0)},[]),e}function Bc(e){return typeof e=="number"&&!Number.isFinite(e)}function P1(e,t){return Math.abs(t.getFullYear()-e.getFullYear())}function vd(e,t){return Math.abs(t.getFullYear()*12+t.getMonth()-12*e.getFullYear()-e.getMonth())}function wr(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60*24)}function R1(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60)}const I1={years:{getTickNumber:P1,isTick:(e,t)=>t.getFullYear()!==e.getFullYear(),format:e=>e.getFullYear().toString()},quarterly:{getTickNumber:(e,t)=>Math.floor(vd(e,t)/3),isTick:(e,t)=>t.getMonth()!==e.getMonth()&&t.getMonth()%3===0,format:new Intl.DateTimeFormat("default",{month:"short"}).format},months:{getTickNumber:vd,isTick:(e,t)=>t.getMonth()!==e.getMonth(),format:new Intl.DateTimeFormat("default",{month:"short"}).format},biweekly:{getTickNumber:(e,t)=>wr(e,t)/14,isTick:(e,t)=>(t.getDay()<e.getDay()||wr(t,e)>7)&&Math.floor(t.getDate()/7)%2===1,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},weeks:{getTickNumber:(e,t)=>wr(e,t)/7,isTick:(e,t)=>t.getDay()<e.getDay()||wr(t,e)>=7,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},days:{getTickNumber:wr,isTick:(e,t)=>t.getDate()!==e.getDate(),format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},hours:{getTickNumber:R1,isTick:(e,t)=>t.getHours()!==e.getHours(),format:new Intl.DateTimeFormat("default",{hour:"2-digit",minute:"2-digit"}).format}},ka={start:0,extremities:0,end:1,middle:.5};function Wn(e,t,r){return e(t)-(e.step()-e.bandwidth())/2+ka[r]*e.step()}function M1(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 _1(e,t,r,i,o){if(r.length===0)return[];const s=i.range()[0]>i.range()[1],a=e.findIndex(h=>o(Wn(i,h,s?"start":"end"))),c=e.findLastIndex(h=>o(Wn(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 $1(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&&co(t.domain())&&Ee(t)){const m=t.domain();if(m.length===0||m.length===1)return[];const y="middle";return _1(m,r,l.map(O=>typeof O=="string"?I1[O]:O),t,u).map(({index:O,formatter:S})=>{const v=m[O],T=S(v);return{value:v,formattedValue:T,offset:Wn(t,v,y),labelOffset:0}})}const d=s??"extremities";if(Ee(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=M1(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(Wn(t,T,O?"start":"end"))),v=b.findLastIndex(T=>u(Wn(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:Wn(t,T,d),labelOffset:y==="tick"?0:t.step()*(ka[y]-ka[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(Bc))return[];const p=a,h=typeof o=="object"?o:D1(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 D1(e,t){const r=e.domain();return r[0]===r[1]?[r[0]]:e.ticks(t)}function hs(e){const{scale:t,tickNumber:r,valueFormatter:i,tickInterval:o,tickPlacement:s="extremities",tickLabelPlacement:a,tickSpacing:c,direction:u,ordinalTimeTicks:l}=e,{instance:d}=Qe(),f=u==="x"?d.isXInside:d.isYInside;return R.useMemo(()=>$1({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 L1(e=!1){const[t,r]=R.useState(!1);return tt(()=>{e||r(!0)},[e]),R.useEffect(()=>{e&&r(!0)},[e]),t}const Zh=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function j1(e){return e.length}function N1(e){const t=Zh.segment(e);let r=0;for(const i of t)r+=1;return r}const q1=Zh?N1:j1;function F1(e){return e*(Math.PI/180)}const Qh=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function z1(e,t){return e.slice(0,t)}function B1(e,t){const r=Qh.segment(e);let i="",o=0;for(const s of r)if(i+=s.segment,o+=1,o>=t)break;return i}const H1=Qh?B1:z1,Od="…";function Jh(e,t){const{width:r,height:i,measureText:o}=t,s=F1(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 em(e,t){if(t(e))return e;let r=e,i=1,o=1/2;const s=q1(e);let a=s,c=s,u=null;do{if(c=a,a=Math.floor(s*o),a===0)break;r=H1(e,a).trim();const l=t(r+Od);i+=1,l?(u=r,o+=1/2**i):o-=1/2**i}while(Math.abs(a-c)!==1);return u?u+Od:""}function tm(){return typeof window>"u"}const Xt=new Map,nm=2e3,V1=new Set(["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"]);function Hc(e,t){return V1.has(e)&&t===+t?`${t}px`:t}const G1=/([A-Z])/g;function Vc(e){return String(e).replace(G1,t=>`-${t.toLowerCase()}`)}function rm(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+=`${Vc(i)}:${Hc(i,o)};`}return t}const mi=(e,t={})=>{if(e==null||tm())return{width:0,height:0};const r=String(e),i=rm(t),o=`${r}-${i}`,s=Xt.get(o);if(s)return s;try{const a=om(),c=document.createElementNS("http://www.w3.org/2000/svg","text");Object.keys(t).map(l=>(c.style[Vc(l)]=Hc(l,t[l]),l)),c.textContent=r,a.replaceChildren(c);const u=im(c);return Xt.set(o,u),Xt.size+1>nm&&Xt.clear(),process.env.NODE_ENV==="test"&&a.replaceChildren(),u}catch{return{width:0,height:0}}};function U1(e,t={}){if(tm())return new Map(Array.from(e).map(u=>[u,{width:0,height:0}]));const r=new Map,i=[],o=rm(t);for(const u of e){const l=`${u}-${o}`,d=Xt.get(l);d?r.set(u,d):i.push(u)}const s=om(),a=w({},t);Object.keys(a).map(u=>(s.style[Vc(u)]=Hc(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=im(d),p=`${l}-${o}`;Xt.set(p,f),r.set(l,f)}return Xt.size+1>nm&&Xt.clear(),process.env.NODE_ENV==="test"&&s.replaceChildren(),r}function im(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 Ge=null;function om(){return Ge===null&&(Ge=document.createElementNS("http://www.w3.org/2000/svg","svg"),Ge.setAttribute("aria-hidden","true"),Ge.style.position="absolute",Ge.style.top="-20000px",Ge.style.left="0",Ge.style.padding="0",Ge.style.margin="0",Ge.style.border="none",Ge.style.pointerEvents="none",Ge.style.visibility="hidden",Ge.style.contain="strict",document.body.appendChild(Ge)),Ge}function Y1(e,t,r,i,o){const s=new Map,a=us(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=>Jh(p,{width:d,height:r,angle:a,measureText:h=>mi(h,o)});s.set(l,em(l.formattedValue.toString(),f))}return s}const Td=5;function W1(e,t,r=0){process.env.NODE_ENV!=="production"&&r>90&&r<-90&&pt(["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<Td)return e;if(i>90-Td)return t;const o=Nt(i),s=Math.atan2(t,e);return o<s?e/Math.cos(o):t/Math.sin(o)}function X1(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=Z1(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?K1(d,f):{width:0,height:0},O=W1(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 K1(e,t){if(t.formattedValue===void 0)return{width:0,height:0};let r=0,i=0;for(const o of t.formattedValue.split(`
|
|
55
|
-
`)){const s=e.get(o);s&&(r=Math.max(r,s.width),i+=s.height)}return{width:r,height:i}}function Z1(e,t){const r=new Set;for(const i of e)i.formattedValue&&i.formattedValue.split(`
|
|
56
|
-
`).forEach(o=>r.add(o));return U1(r,t)}function sm(e){return Re("MuiChartsAxis",e)}const qi=we("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]),am=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 Pe(o,sm,t)},Sa=3,Q1=4,cm={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function J1({style:e,needsComputation:t,text:r}){return r.split(`
|
|
57
|
-
`).map(i=>w({text:i},t?mi(i,e):{width:0,height:0}))}const ew=["x","y","style","text","ownerState"],tw=["angle","textAnchor","dominantBaseline"];function gi(e){const{x:t,y:r,style:i,text:o}=e,s=te(e,ew),a=i??{},{angle:c,textAnchor:u,dominantBaseline:l}=a,d=te(a,tw),f=ps(),p=R.useMemo(()=>J1({style:d,needsComputation:f&&o.includes(`
|
|
58
|
-
`),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",w({},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"&&(gi.propTypes={lineHeight:n.number,needsComputation:n.bool,ownerState:n.any,style:n.object,text:n.string.isRequired});function lm(e){const t=us(e);return t<=30||t>=330||t<=210&&t>=150?"middle":t<=180?"end":"start"}function um(e){const t=us(e);return t<=30||t>=330?"hanging":t<=210&&t>=150?"auto":"central"}function dm(e){switch(e){case"start":return"end";case"end":return"start";default:return e}}const nw=["scale","tickNumber","reverse"];function fm(e){const{xAxis:t,xAxisIds:r}=$e(),i=t[e.axisId??r[0]],{scale:o,tickNumber:s,reverse:a}=i,c=te(i,nw),u=Be({props:w({},c,e),name:"MuiChartsXAxis"}),l=w({},cm,u),{position:d,tickLabelStyle:f,slots:p,slotProps:h}=l,g=je(),m=ei(),y=am(l),b=d==="bottom"?1:-1,O=p?.axisTick??"line",S=p?.axisTickLabel??gi,v=lm((d==="bottom"?0:180)-(f?.angle??0)),T=um((d==="bottom"?0:180)-(f?.angle??0)),k=Et({elementType:S,externalSlotProps:h?.axisTickLabel,additionalProps:{style:w({},g.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:m?dm(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 rw(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}=fm(e),p=ei(),h=L1(),{disableTicks:g,tickSize:m,valueFormatter:y,slotProps:b,tickInterval:O,tickLabelInterval:S,tickPlacement:v,tickLabelPlacement:T,tickLabelMinGap:k,tickSpacing:A,height:M}=o,I=it(),{instance:D}=Qe(),_=ps(),x=g?4:m,E=hs({scale:i,tickNumber:s,valueFormatter:y,tickInterval:O,tickPlacement:v,tickLabelPlacement:T,tickSpacing:A,direction:"x",ordinalTimeTicks:r}),P=X1(E,{tickLabelStyle:d.style,tickLabelInterval:S,tickLabelMinGap:k,reverse:f,isMounted:h,isXInside:D.isXInside}),j=Math.max(0,M-(t>0?t+Q1:0)-x-Sa),q=_?Y1(P,I,j,p,d.style):new Map(Array.from(P).map(F=>[F,F.formattedValue]));return C.jsx(R.Fragment,{children:E.map((F,G)=>{const{offset:V,labelOffset:L}=F,B=L??0,Y=a*(x+Sa),Q=D.isXInside(V),W=q.get(F),K=P.has(F);return C.jsxs("g",{transform:`translate(${V}, 0)`,className:c.tickContainer,children:[!g&&Q&&C.jsx(u,w({y2:a*x,className:c.tick},b?.axisTick)),W!==void 0&&K&&C.jsx(l,w({x:B,y:Y},d,{text:W}))]},G)})})}const Ar={start:0,extremities:0,end:1,middle:.5,tick:0};function pm(e){const{scale:t,tickInterval:r,tickLabelPlacement:i="middle",tickPlacement:o="extremities",groups:s}=e;return R.useMemo(()=>{const a=t.domain(),c=typeof r=="function"&&a.filter(r)||typeof r=="object"&&r||a;if(t.bandwidth()>0){const u=kd(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 kd(c,s,o,i,t)},[t,r,s,o,i])}function kd(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=Ee(o)?o(d)-(o.step()-o.bandwidth())/2+Ar[r]*o.step():o(d),m=o.step()*c*(Ar[i]-Ar[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*(Ar[i]-Ar[r]);p.labelOffset=g}}return s}const Sd={tickSize:6},iw=(e,t,r)=>{const i=e[t]??{},o=r??Sd.tickSize,s=o*t*2+o;return w({},Sd,i,{tickSize:i.tickSize??s})};function ow(e){const{xScale:t,defaultizedProps:r,positionSign:i,classes:o,Tick:s,TickLabel:a,axisTickLabelProps:c}=fm(e);if(!Ee(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}=Qe(),b=pm({scale:t,tickInterval:p,tickPlacement:h,tickLabelPlacement:g,groups:m});return C.jsx(R.Fragment,{children:b.map((O,S)=>{const{offset:v,labelOffset:T}=O,k=T??0,A=y.isXInside(v),M=O.formattedValue,I=O.ignoreTick??!1,D=O.groupIndex??0,_=iw(m,D,l),x=i*_.tickSize,E=i*(_.tickSize+Sa);return C.jsxs("g",{transform:`translate(${v}, 0)`,className:o.tickContainer,"data-group-index":D,children:[!u&&!I&&A&&C.jsx(s,w({y2:x,className:o.tick},f?.axisTick)),M!==void 0&&C.jsx(a,w({x:k,y:E},c,{style:w({},c.style,_.tickLabelStyle),text:M}))]},S)})})}const hm=re("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:e})=>({[`& .${qi.tickLabel}`]:w({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${qi.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${qi.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${qi.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),sw=["axis"],aw=["scale","tickNumber","reverse","ordinalTimeTicks"],cw=re(hm,{name:"MuiChartsXAxis",slot:"Root"})({});function lw(e){let{axis:t}=e,r=te(e,sw);const{scale:i,ordinalTimeTicks:o}=t,s=te(t,aw),a=Be({props:w({},s,r),name:"MuiChartsXAxis"}),c=w({},cm,a),{position:u,labelStyle:l,offset:d,slots:f,slotProps:p,sx:h,disableLine:g,label:m,height:y}=c,b=je(),O=am(c),{left:S,top:v,width:T,height:k}=it(),A=u==="bottom"?1:-1,M=f?.axisLine??"line",I=f?.axisLabel??gi,D=Et({elementType:I,externalSlotProps:p?.axisLabel,additionalProps:{style:w({},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?mi(m,D.style).height:0,x=i.domain(),P=Ee(i)?x.length===0:x.some(Bc);let j=null;P||(j="groups"in t&&Array.isArray(t.groups)?C.jsx(ow,w({},r)):C.jsx(rw,w({},r,{axisLabelHeight:_,ordinalTimeTicks:o})));const q={x:S+T/2,y:A*y};return C.jsxs(cw,{transform:`translate(0, ${u==="bottom"?v+k+d:v-d})`,className:O.root,sx:h,children:[!g&&C.jsx(M,w({x1:S,x2:S+T,className:O.line},p?.axisLine)),j,m&&C.jsx("g",{className:O.label,children:C.jsx(I,w({},q,D,{text:m}))})]})}function mm(e){const{xAxis:t,xAxisIds:r}=$e(),i=t[e.axisId??r[0]];return i?C.jsx(lw,w({},e,{axis:i})):(pt(`MUI X Charts: No axis found. The axisId "${e.axisId}" is probably invalid.`),null)}process.env.NODE_ENV!=="production"&&(mm.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 uw(e,t,r,i,o){const s=new Map,a=us(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=>Jh(p,{width:r,height:d,angle:a,measureText:h=>mi(h,o)});s.set(l,em(l.formattedValue.toString(),f))}return s}const gm=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 Pe(o,sm,t)},Ca=2,dw=2,ym={disableLine:!1,disableTicks:!1,tickSize:6},fw=["scale","tickNumber","reverse"];function bm(e){const{yAxis:t,yAxisIds:r}=De(),i=t[e.axisId??r[0]],{scale:o,tickNumber:s}=i,a=te(i,fw),c=Be({props:w({},a,e),name:"MuiChartsYAxis"}),u=w({},ym,c),{position:l,tickLabelStyle:d,slots:f,slotProps:p}=u,h=je(),g=ei(),m=gm(u),y=l==="right"?1:-1,b=typeof d?.fontSize=="number"?d.fontSize:12,O=f?.axisTick??"line",S=f?.axisTickLabel??gi,v=lm((l==="right"?-90:90)-(d?.angle??0)),T=um((l==="right"?-90:90)-(d?.angle??0)),k=Et({elementType:S,externalSlotProps:p?.axisTickLabel,additionalProps:{style:w({},h.typography.caption,{fontSize:b,textAnchor:g?dm(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 pw(e){const{axisLabelHeight:t,ordinalTimeTicks:r}=e,{yScale:i,defaultizedProps:o,tickNumber:s,positionSign:a,classes:c,Tick:u,TickLabel:l,axisTickLabelProps:d}=bm(e),f=ei(),{disableTicks:p,tickSize:h,valueFormatter:g,slotProps:m,tickPlacement:y,tickLabelPlacement:b,tickInterval:O,tickLabelInterval:S,tickSpacing:v,width:T}=o,k=it(),{instance:A}=Qe(),M=ps(),I=p?4:h,D=hs({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+dw:0)-I-Ca),x=M?uw(D,k,_,f,d.style):new Map(Array.from(D).map(E=>[E,E.formattedValue]));return C.jsx(R.Fragment,{children:D.map((E,P)=>{const{offset:j,labelOffset:q,value:F}=E,G=a*(I+Ca),V=q,L=typeof S=="function"&&!S?.(F,P),B=A.isYInside(j),Y=x.get(E);return B?C.jsxs("g",{transform:`translate(0, ${j})`,className:c.tickContainer,children:[!p&&C.jsx(u,w({x2:a*I,className:c.tick},m?.axisTick)),Y!==void 0&&!L&&C.jsx(l,w({x:G,y:V,text:Y},d))]},P):null})})}const Cd={tickSize:6},hw=(e,t,r)=>{const i=e[t]??{},o=r??Cd.tickSize,s=o*t*2+o;return w({},Cd,i,{tickSize:i.tickSize??s})};function mw(e){const{yScale:t,defaultizedProps:r,positionSign:i,classes:o,Tick:s,TickLabel:a,axisTickLabelProps:c}=bm(e);if(!Ee(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}=Qe(),b=pm({scale:t,tickInterval:p,tickPlacement:h,tickLabelPlacement:g,groups:m});return C.jsx(R.Fragment,{children:b.map((O,S)=>{const{offset:v,labelOffset:T}=O,k=T??0,A=y.isYInside(v),M=O.formattedValue,I=O.ignoreTick??!1,D=O.groupIndex??0,_=hw(m,D,l),x=i*_.tickSize,E=i*(_.tickSize+Ca);return C.jsxs("g",{transform:`translate(0, ${v})`,className:o.tickContainer,"data-group-index":D,children:[!u&&!I&&A&&C.jsx(s,w({x2:x,className:o.tick},f?.axisTick)),M!==void 0&&C.jsx(a,w({x:E,y:k},c,{style:w({},c.style,_.tickLabelStyle),text:M}))]},S)})})}const gw=["axis"],yw=["scale","tickNumber","reverse","ordinalTimeTicks"],bw=re(hm,{name:"MuiChartsYAxis",slot:"Root"})({});function xw(e){let{axis:t}=e,r=te(e,gw);const{scale:i,ordinalTimeTicks:o}=t,s=te(t,yw),a=ps(),c=Be({props:w({},s,r),name:"MuiChartsYAxis"}),u=w({},ym,c),{position:l,disableLine:d,label:f,labelStyle:p,offset:h,width:g,sx:m,slots:y,slotProps:b}=u,O=je(),S=gm(u),{left:v,top:T,width:k,height:A}=it(),M=l==="right"?1:-1,I=y?.axisLine??"line",D=y?.axisLabel??gi,_=Et({elementType:I,externalSlotProps:b?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),x=Et({elementType:D,externalSlotProps:b?.axisLabel,additionalProps:{style:w({},O.typography.body1,{lineHeight:1,fontSize:14,angle:M*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},p)},ownerState:{}});if(l==="none")return null;const E={x:M*g,y:T+A/2},P=f==null?0:mi(f,x.style).height,j=i.domain(),F=Ee(i)?j.length===0:j.some(Bc);let G=null;return F||(G="groups"in t&&Array.isArray(t.groups)?C.jsx(mw,w({},r)):C.jsx(pw,w({},r,{axisLabelHeight:P,ordinalTimeTicks:o}))),C.jsxs(bw,{transform:`translate(${l==="right"?v+k+h:v-h}, 0)`,className:S.root,sx:m,children:[!d&&C.jsx(I,w({y1:T,y2:T+A,className:S.line},_)),G,f&&a&&C.jsx("g",{className:S.label,children:C.jsx(D,w({},E,x,{text:f}))})]})}function xm(e){const{yAxis:t,yAxisIds:r}=De(),i=t[e.axisId??r[0]];return i?C.jsx(xw,w({},e,{axis:i})):(pt(`MUI X Charts: No axis found. The axisId "${e.axisId}" is probably invalid.`),null)}process.env.NODE_ENV!=="production"&&(xm.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 Gc(e){const{slots:t,slotProps:r}=e,{xAxisIds:i,xAxis:o}=$e(),{yAxisIds:s,yAxis:a}=De();return C.jsxs(R.Fragment,{children:[i.map(c=>!o[c].position||o[c].position==="none"?null:C.jsx(mm,{slots:t,slotProps:r,axisId:c},c)),s.map(c=>!a[c].position||a[c].position==="none"?null:C.jsx(xm,{slots:t,slotProps:r,axisId:c},c))]})}process.env.NODE_ENV!=="production"&&(Gc.propTypes={slotProps:n.object,slots:n.object});function vm(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 vr(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}function vw(){return cb}const Tn=Ot.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function $n(e){return my(e)}function Ow(e){return typeof e.main=="string"}function Tw(e,t=[]){if(!Ow(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Yr(e=[]){return([,t])=>t&&Tw(t,e)}function Dn(e,t,r="Mui"){const i={};return t.forEach(o=>{i[o]=tn(e,o,r)}),i}function kw(e){return tn("MuiTypography",e)}Dn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Cw=vw(),ww=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:o,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${be(t)}`,r&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return vr(c,kw,a)},Aw=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${be(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Tn(({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(Yr()).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${be(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}}]}))),wd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ms=R.forwardRef(function(t,r){const{color:i,...o}=$n({props:t,name:"MuiTypography"}),s=!Sw[i],a=Cw({...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=wd,...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]||wd[h])||"span",O=ww(y);return C.jsx(Aw,{as:b,ref:r,className:ae(O.root,u),...m,ownerState:y,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...m.style}})});process.env.NODE_ENV!=="production"&&(ms.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 Ew(e){return Re("MuiChartsTooltip",e)}const Yn=we("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),gs=e=>Pe({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},Ew,e);function Pw(){const e=me(),t=e.use(Pc),r=e.use(Ze),i=ds(),{xAxis:o,xAxisIds:s}=$e(),{yAxis:a,yAxisIds:c}=De(),{zAxis:u,zAxisIds:l}=jc(),{rotationAxis:d,rotationAxisIds:f}=Ph();if(!t)return null;const p=i[t.type]?.series[t.seriesId];if(!p)return null;const h=lo(p)?p.xAxisId??s[0]:void 0,g=lo(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 wa=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`})),Aa=re("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,[`& .${Yn.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)}}})),Ea=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)}})),Xn=re(ms,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,textAlign:"start",[`&.${Yn.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${Yn.labelCell}`]:{whiteSpace:"nowrap",fontWeight:e.typography.fontWeightRegular},[`&.${Yn.valueCell}, &.${Yn.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${Yn.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 Rw(e){return Re("MuiChartsLabelMark",e)}const Un=we("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Iw=e=>{const{type:t}=e;return Pe({root:typeof t=="function"?["root"]:["root",t],mask:["mask"],fill:["fill"]},Rw,e.classes)};function Uc(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]=Uc(a[l],c[l],r)}}}else s==="className"&&r&&t.className?i.className=ae(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}const Yc=(e,t,r)=>R.forwardRef(function(o,s){const a=Be({props:o,name:e}),c=typeof t.defaultProps=="function"?t.defaultProps(a):t.defaultProps??{},u=Uc(c,a),l=je(),d=t.classesResolver?.(u,l),f=R.forwardRef(r);return process.env.NODE_ENV!=="production"&&(f.displayName="OutComponent"),process.env.NODE_ENV!=="production"&&(f.displayName=`consumeThemeProps(${e})`),C.jsx(f,w({},u,{classes:d,ref:s}))});process.env.NODE_ENV!=="production"&&(Yc.displayName="consumeThemeProps");const Mw=["type","color","className","classes"],_w=re("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${Un.line}`]:{width:16,height:"unset",alignItems:"center",[`.${Un.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${Un.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${Un.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${Un.mask} > *`]:{height:"100%",width:"100%"},[`& .${Un.mask}`]:{height:"100%",width:"100%"}})),Wr=Yc("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Iw},function(t,r){const{type:i,color:o,className:s,classes:a}=t,c=te(t,Mw),u=i;return C.jsx(_w,w({className:ae(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"&&(Wr.propTypes={classes:n.object,color:n.string,type:n.oneOf(["circle","line","square"])});function Om(e){const{classes:t,sx:r}=e,i=Pw(),o=gs(t);if(!i)return null;if("values"in i){const{label:l,color:d,markType:f}=i;return C.jsx(wa,{sx:r,className:o.paper,children:C.jsxs(Aa,{className:o.table,children:[C.jsxs(ms,{component:"caption",children:[C.jsx("div",{className:o.markContainer,children:C.jsx(Wr,{type:f,color:d,className:o.mark})}),l]}),C.jsx("tbody",{children:i.values.map(({formattedValue:p,label:h})=>C.jsxs(Ea,{className:o.row,children:[C.jsx(Xn,{className:ae(o.labelCell,o.cell),component:"th",children:h}),C.jsx(Xn,{className:ae(o.valueCell,o.cell),component:"td",children:p})]},h))})]})})}const{color:s,label:a,formattedValue:c,markType:u}=i;return C.jsx(wa,{sx:r,className:o.paper,children:C.jsx(Aa,{className:o.table,children:C.jsx("tbody",{children:C.jsxs(Ea,{className:o.row,children:[C.jsxs(Xn,{className:ae(o.labelCell,o.cell),component:"th",children:[C.jsx("div",{className:o.markContainer,children:C.jsx(Wr,{type:u,color:s,className:o.mark})}),a]}),C.jsx(Xn,{className:ae(o.valueCell,o.cell),component:"td",children:c})]})})})})}process.env.NODE_ENV!=="production"&&(Om.propTypes={classes:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function $w(e){const r=me().use(Ze);return R.useMemo(()=>{const o={};return Object.keys(r).forEach(s=>{o[s]=r[s].colorProcessor}),o},[r])}function Dw(e,t,r,i,o){const[s,a]=R.useState(()=>o&&r?r(e).matches:i?i(e).matches:t);return vn(()=>{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 Lw={...R},Tm=Lw.useSyncExternalStore;function jw(e,t,r,i,o){const s=R.useCallback(()=>t,[t]),a=R.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]=R.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 Tm(u,c,a)}function km(e={}){const{themeId:t}=e;return function(i,o={}){let s=pf();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}=xf({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(`
|
|
59
|
-
`));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(`
|
|
60
|
-
`));const h=(Tm!==void 0?jw:Dw)(f,c,u,l,d);return process.env.NODE_ENV!=="production"&&R.useDebugValue({query:f,match:h}),h}}km();const Nw=km({themeId:So});function qw(){const e=Nc(),[t,r]=R.useState(null);return R.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 Fw(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}const zw="@media (pointer: fine)",Bw=()=>Nw(zw,{defaultMatches:!0}),Sm=(e,t)=>t,Cm=(e,t)=>t;function wm(e,t,r){return Array.isArray(r)?r.map(i=>xd(t.axis[i],e)):xd(t.axis[r],e)}const Am=U(ai,ci,mk,(e,t,r)=>e===null||t===null?null:MC(r)(e,t)),Hw=U(Am,sn,Sm,(e,t,r=t.axisIds[0])=>e===null?null:wm(e,t,r)),Em=U(Am,sn,Cm,(e,t,r=t.axisIds)=>e===null?null:wm(e,t,r));U(sn,Hw,Sm,(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(sn,Em,Cm,(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 Pm=jo({memoizeOptions:{resultEqualityCheck:Jn}})(Em,sn,(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)),Vw=U(Pm,e=>e.length>0);function ia(e,t,r){const i=e.data?.[t]??null,s=(e.valueFormatter??(a=>e.scaleType==="utc"?Fw(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 Gw(e={}){const{multipleAxes:t,directions:r}=e,i=$C(),o=DC(),s=LC(),a=me(),c=a.use(_p),u=a.use($p),l=a.use(Pm),d=ds(),{xAxis:f}=$e(),{yAxis:p}=De(),{zAxis:h,zAxisIds:g}=jc(),{rotationAxis:m}=Ph(),y=$w();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(ia(f[O],S,"x"))}),(r===void 0||r.includes("y"))&&u.forEach(({axisId:O,dataIndex:S})=>{!t&&b.length>1||b.push(ia(p[O],S,"y"))}),(r===void 0||r.includes("rotation"))&&l.forEach(({axisId:O,dataIndex:S})=>{!t&&b.length>1||b.push(ia(m[O],S,"rotation"))}),Object.keys(d).filter(Jo).forEach(O=>{const S=d[O];return S?S.seriesOrder.forEach(v=>{const T=S.series[v],k=T.xAxisId??i.id,A=T.yAxisId??o.id,M=b.findIndex(({axisDirection:I,axisId:D})=>I==="x"&&D===k||I==="y"&&D===A);if(M>=0){const I="zAxisId"in T?T.zAxisId:g[0],{dataIndex:D}=b[M],_=y[O]?.(T,f[k],p[A],I?h[I]:void 0)(D)??"",x=T.data[D]??null,E=T.valueFormatter(x,{dataIndex:D}),P=nt(T.label,"tooltip")??null;b[M].seriesItems.push({seriesId:v,color:_,value:x,formattedValue:E,formattedLabel:P,markType:T.labelMarkType})}}):[]}),Object.keys(d).filter(Ec).forEach(O=>{const S=d[O];return S?S.seriesOrder.forEach(v=>{const T=S.series[v],k=T.rotationAxisId??s?.id,A=b.findIndex(({axisDirection:M,axisId:I})=>M==="rotation"&&I===k);if(A>=0){const{dataIndex:M}=b[A],I=y[O]?.(T)(M)??"",D=T.data[M]??null,_=T.valueFormatter(D,{dataIndex:M}),x=nt(T.label,"tooltip")??null;b[A].seriesItems.push({seriesId:v,color:I,value:D,formattedValue:_,formattedLabel:x,markType:T.labelMarkType})}}):[]}),t?b:b.length===0?b[0]:null}function Uw(e){return Gw(w({},e,{multipleAxes:!0}))}function Rm(e){const t=gs(e.classes),r=Uw();return r===null?null:C.jsx(wa,{sx:e.sx,className:t.paper,children:r.map(({axisId:i,mainAxis:o,axisValue:s,axisFormattedValue:a,seriesItems:c})=>C.jsxs(Aa,{className:t.table,children:[s!=null&&!o.hideTooltip&&C.jsx(ms,{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(Ea,{className:t.row,children:[C.jsxs(Xn,{className:ae(t.labelCell,t.cell),component:"th",children:[C.jsx("div",{className:t.markContainer,children:C.jsx(Wr,{type:p,color:l,className:t.mark})}),f||null]}),C.jsx(Xn,{className:ae(t.valueCell,t.cell),component:"td",children:d})]},u))})]},i))})}process.env.NODE_ENV!=="production"&&(Rm.propTypes={classes:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Wc=n.oneOfType([n.func,n.object]);function Xr(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 Ad(e){return e&&e.ownerDocument||document}function lr(...e){const t=R.useRef(void 0),r=R.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 R.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}function ys(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}var We="top",ht="bottom",mt="right",Xe="left",Xc="auto",yi=[We,ht,mt,Xe],ur="start",Kr="end",Yw="clippingParents",Im="viewport",Er="popper",Ww="reference",Ed=yi.reduce(function(e,t){return e.concat([t+"-"+ur,t+"-"+Kr])},[]),Mm=[].concat(yi,[Xc]).reduce(function(e,t){return e.concat([t,t+"-"+ur,t+"-"+Kr])},[]),Xw="beforeRead",Kw="read",Zw="afterRead",Qw="beforeMain",Jw="main",eA="afterMain",tA="beforeWrite",nA="write",rA="afterWrite",iA=[Xw,Kw,Zw,Qw,Jw,eA,tA,nA,rA];function Rt(e){return e?(e.nodeName||"").toLowerCase():null}function rt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kn(e){var t=rt(e).Element;return e instanceof t||e instanceof Element}function ft(e){var t=rt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kc(e){if(typeof ShadowRoot>"u")return!1;var t=rt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oA(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];!ft(s)||!Rt(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 sA(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},{});!ft(o)||!Rt(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const aA={name:"applyStyles",enabled:!0,phase:"write",fn:oA,effect:sA,requires:["computeStyles"]};function At(e){return e.split("-")[0]}var xn=Math.max,bo=Math.min,dr=Math.round;function Pa(){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 _m(){return!/^((?!chrome|android).)*safari/i.test(Pa())}function fr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&ft(e)&&(o=e.offsetWidth>0&&dr(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&dr(i.height)/e.offsetHeight||1);var a=kn(e)?rt(e):window,c=a.visualViewport,u=!_m()&&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 Zc(e){var t=fr(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 $m(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Kc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ht(e){return rt(e).getComputedStyle(e)}function cA(e){return["table","td","th"].indexOf(Rt(e))>=0}function cn(e){return((kn(e)?e.ownerDocument:e.document)||window.document).documentElement}function bs(e){return Rt(e)==="html"?e:e.assignedSlot||e.parentNode||(Kc(e)?e.host:null)||cn(e)}function Pd(e){return!ft(e)||Ht(e).position==="fixed"?null:e.offsetParent}function lA(e){var t=/firefox/i.test(Pa()),r=/Trident/i.test(Pa());if(r&&ft(e)){var i=Ht(e);if(i.position==="fixed")return null}var o=bs(e);for(Kc(o)&&(o=o.host);ft(o)&&["html","body"].indexOf(Rt(o))<0;){var s=Ht(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 bi(e){for(var t=rt(e),r=Pd(e);r&&cA(r)&&Ht(r).position==="static";)r=Pd(r);return r&&(Rt(r)==="html"||Rt(r)==="body"&&Ht(r).position==="static")?t:r||lA(e)||t}function Qc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dr(e,t,r){return xn(e,bo(t,r))}function uA(e,t,r){var i=Dr(e,t,r);return i>r?r:i}function Dm(){return{top:0,right:0,bottom:0,left:0}}function Lm(e){return Object.assign({},Dm(),e)}function jm(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var dA=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Lm(typeof t!="number"?t:jm(t,yi))};function fA(e){var t,r=e.state,i=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,c=At(r.placement),u=Qc(c),l=[Xe,mt].indexOf(c)>=0,d=l?"height":"width";if(!(!s||!a)){var f=dA(o.padding,r),p=Zc(s),h=u==="y"?We:Xe,g=u==="y"?ht:mt,m=r.rects.reference[d]+r.rects.reference[u]-a[u]-r.rects.popper[d],y=a[u]-r.rects.reference[u],b=bi(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,A=Dr(v,k,T),M=u;r.modifiersData[i]=(t={},t[M]=A,t.centerOffset=A-k,t)}}function pA(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)||$m(t.elements.popper,o)&&(t.elements.arrow=o))}const hA={name:"arrow",enabled:!0,phase:"main",fn:fA,effect:pA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pr(e){return e.split("-")[1]}var mA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gA(e,t){var r=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:dr(r*o)/o||0,y:dr(i*o)/o||0}}function Rd(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=Xe,v=We,T=window;if(l){var k=bi(r),A="clientHeight",M="clientWidth";if(k===rt(r)&&(k=cn(r),Ht(k).position!=="static"&&c==="absolute"&&(A="scrollHeight",M="scrollWidth")),k=k,o===We||(o===Xe||o===mt)&&s===Kr){v=ht;var I=f&&k===T&&T.visualViewport?T.visualViewport.height:k[A];m-=I-i.height,m*=u?1:-1}if(o===Xe||(o===We||o===ht)&&s===Kr){S=mt;var D=f&&k===T&&T.visualViewport?T.visualViewport.width:k[M];h-=D-i.width,h*=u?1:-1}}var _=Object.assign({position:c},l&&mA),x=d===!0?gA({x:h,y:m},rt(r)):{x:h,y:m};if(h=x.x,m=x.y,u){var E;return Object.assign({},_,(E={},E[v]=O?"0":"",E[S]=b?"0":"",E.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",E))}return Object.assign({},_,(t={},t[v]=O?m+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function yA(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:At(t.placement),variation:pr(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,Rd(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,Rd(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 bA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yA,data:{}};var Fi={passive:!0};function xA(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=rt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach(function(d){d.addEventListener("scroll",r.update,Fi)}),c&&u.addEventListener("resize",r.update,Fi),function(){s&&l.forEach(function(d){d.removeEventListener("scroll",r.update,Fi)}),c&&u.removeEventListener("resize",r.update,Fi)}}const vA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xA,data:{}};var OA={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(e){return e.replace(/left|right|bottom|top/g,function(t){return OA[t]})}var TA={start:"end",end:"start"};function Id(e){return e.replace(/start|end/g,function(t){return TA[t]})}function Jc(e){var t=rt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function el(e){return fr(cn(e)).left+Jc(e).scrollLeft}function kA(e,t){var r=rt(e),i=cn(e),o=r.visualViewport,s=i.clientWidth,a=i.clientHeight,c=0,u=0;if(o){s=o.width,a=o.height;var l=_m();(l||!l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:c+el(e),y:u}}function SA(e){var t,r=cn(e),i=Jc(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=xn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=xn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-i.scrollLeft+el(e),u=-i.scrollTop;return Ht(o||r).direction==="rtl"&&(c+=xn(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:c,y:u}}function tl(e){var t=Ht(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}function Nm(e){return["html","body","#document"].indexOf(Rt(e))>=0?e.ownerDocument.body:ft(e)&&tl(e)?e:Nm(bs(e))}function Lr(e,t){var r;t===void 0&&(t=[]);var i=Nm(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=rt(i),a=o?[s].concat(s.visualViewport||[],tl(i)?i:[]):i,c=t.concat(a);return o?c:c.concat(Lr(bs(a)))}function Ra(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CA(e,t){var r=fr(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 Md(e,t,r){return t===Im?Ra(kA(e,r)):kn(t)?CA(t,r):Ra(SA(cn(e)))}function wA(e){var t=Lr(bs(e)),r=["absolute","fixed"].indexOf(Ht(e).position)>=0,i=r&&ft(e)?bi(e):e;return kn(i)?t.filter(function(o){return kn(o)&&$m(o,i)&&Rt(o)!=="body"}):[]}function AA(e,t,r,i){var o=t==="clippingParents"?wA(e):[].concat(t),s=[].concat(o,[r]),a=s[0],c=s.reduce(function(u,l){var d=Md(e,l,i);return u.top=xn(d.top,u.top),u.right=bo(d.right,u.right),u.bottom=bo(d.bottom,u.bottom),u.left=xn(d.left,u.left),u},Md(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 qm(e){var t=e.reference,r=e.element,i=e.placement,o=i?At(i):null,s=i?pr(i):null,a=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(o){case We:u={x:a,y:t.y-r.height};break;case ht:u={x:a,y:t.y+t.height};break;case mt:u={x:t.x+t.width,y:c};break;case Xe:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var l=o?Qc(o):null;if(l!=null){var d=l==="y"?"height":"width";switch(s){case ur:u[l]=u[l]-(t[d]/2-r[d]/2);break;case Kr:u[l]=u[l]+(t[d]/2-r[d]/2);break}}return u}function Zr(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?Yw:c,l=r.rootBoundary,d=l===void 0?Im:l,f=r.elementContext,p=f===void 0?Er:f,h=r.altBoundary,g=h===void 0?!1:h,m=r.padding,y=m===void 0?0:m,b=Lm(typeof y!="number"?y:jm(y,yi)),O=p===Er?Ww:Er,S=e.rects.popper,v=e.elements[g?O:p],T=AA(kn(v)?v:v.contextElement||cn(e.elements.popper),u,d,a),k=fr(e.elements.reference),A=qm({reference:k,element:S,placement:o}),M=Ra(Object.assign({},S,A)),I=p===Er?M:k,D={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===Er&&_){var x=_[o];Object.keys(D).forEach(function(E){var P=[mt,ht].indexOf(E)>=0?1:-1,j=[We,ht].indexOf(E)>=0?"y":"x";D[E]+=x[j]*P})}return D}function EA(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?Mm:u,d=pr(i),f=d?c?Ed:Ed.filter(function(g){return pr(g)===d}):yi,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]=Zr(e,{placement:m,boundary:o,rootBoundary:s,padding:a})[At(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function PA(e){if(At(e)===Xc)return[];var t=Ui(e);return[Id(e),t,Id(t)]}function RA(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=At(y),O=b===y,S=u||(O||!g?[Ui(y)]:PA(y)),v=[y].concat(S).reduce(function(W,K){return W.concat(At(K)===Xc?EA(t,{placement:K,boundary:d,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:m}):K)},[]),T=t.rects.reference,k=t.rects.popper,A=new Map,M=!0,I=v[0],D=0;D<v.length;D++){var _=v[D],x=At(_),E=pr(_)===ur,P=[We,ht].indexOf(x)>=0,j=P?"width":"height",q=Zr(t,{placement:_,boundary:d,rootBoundary:f,altBoundary:p,padding:l}),F=P?E?mt:Xe:E?ht:We;T[j]>k[j]&&(F=Ui(F));var G=Ui(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}A.set(_,V)}if(M)for(var L=g?3:1,B=function(K){var Z=v.find(function(J){var ee=A.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 IA={name:"flip",enabled:!0,phase:"main",fn:RA,requiresIfExists:["offset"],data:{_skip:!1}};function _d(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 $d(e){return[We,mt,ht,Xe].some(function(t){return e[t]>=0})}function MA(e){var t=e.state,r=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=_d(a,i),l=_d(c,o,s),d=$d(u),f=$d(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 _A={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MA};function $A(e,t,r){var i=At(e),o=[Xe,We].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,[Xe,mt].indexOf(i)>=0?{x:c,y:a}:{x:a,y:c}}function DA(e){var t=e.state,r=e.options,i=e.name,o=r.offset,s=o===void 0?[0,0]:o,a=Mm.reduce(function(d,f){return d[f]=$A(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 LA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:DA};function jA(e){var t=e.state,r=e.name;t.modifiersData[r]=qm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const NA={name:"popperOffsets",enabled:!0,phase:"read",fn:jA,data:{}};function qA(e){return e==="x"?"y":"x"}function FA(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=Zr(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:d}),b=At(t.placement),O=pr(t.placement),S=!O,v=Qc(b),T=qA(v),k=t.modifiersData.popperOffsets,A=t.rects.reference,M=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=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 E,P=v==="y"?We:Xe,j=v==="y"?ht:mt,q=v==="y"?"height":"width",F=k[v],G=F+y[P],V=F-y[j],L=h?-M[q]/2:0,B=O===ur?A[q]:M[q],Y=O===ur?-M[q]:-A[q],Q=t.elements.arrow,W=h&&Q?Zc(Q):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dm(),Z=K[P],J=K[j],ee=Dr(0,A[q],W[q]),z=S?A[q]/2-L-ee-Z-D.mainAxis:B-ee-Z-D.mainAxis,H=S?-A[q]/2+L+ee+J+D.mainAxis:Y+ee+J+D.mainAxis,X=t.elements.arrow&&bi(t.elements.arrow),$=X?v==="y"?X.clientTop||0:X.clientLeft||0:0,se=(E=_?.[v])!=null?E:0,oe=F+z-se-$,Ce=F+H-se,Me=Dr(h?bo(G,oe):G,F,h?xn(V,Ce):V);k[v]=Me,x[v]=Me-F}if(c){var Fe,Tt=v==="x"?We:Xe,Es=v==="x"?ht:mt,kt=k[T],Ln=T==="y"?"height":"width",ne=kt+y[Tt],hl=kt-y[Es],Ps=[We,Xe].indexOf(b)!==-1,ml=(Fe=_?.[T])!=null?Fe:0,gl=Ps?ne:kt-A[Ln]-M[Ln]-ml+D.altAxis,yl=Ps?kt+A[Ln]+M[Ln]-ml-D.altAxis:hl,bl=h&&Ps?uA(gl,kt,yl):Dr(h?gl:ne,kt,h?yl:hl);k[T]=bl,x[T]=bl-kt}t.modifiersData[i]=x}}const zA={name:"preventOverflow",enabled:!0,phase:"main",fn:FA,requiresIfExists:["offset"]};function BA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function HA(e){return e===rt(e)||!ft(e)?Jc(e):BA(e)}function VA(e){var t=e.getBoundingClientRect(),r=dr(t.width)/e.offsetWidth||1,i=dr(t.height)/e.offsetHeight||1;return r!==1||i!==1}function GA(e,t,r){r===void 0&&(r=!1);var i=ft(t),o=ft(t)&&VA(t),s=cn(t),a=fr(e,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&((Rt(t)!=="body"||tl(s))&&(c=HA(t)),ft(t)?(u=fr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=el(s))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function UA(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 YA(e){var t=UA(e);return iA.reduce(function(r,i){return r.concat(t.filter(function(o){return o.phase===i}))},[])}function WA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function XA(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 Dd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ld(){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 KA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?Dd:o;return function(c,u,l){l===void 0&&(l=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dd,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:kn(c)?Lr(c):c.contextElement?Lr(c.contextElement):[],popper:Lr(u)};var S=YA(XA([].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(Ld(O,S)){d.rects={reference:GA(O,bi(S),d.options.strategy==="fixed"),popper:Zc(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(D){return d.modifiersData[D.name]=Object.assign({},D.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,A=T.options,M=A===void 0?{}:A,I=T.name;typeof k=="function"&&(d=k({state:d,options:M,name:I,instance:h})||d)}}}},update:WA(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){m(),p=!0}};if(!Ld(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 ZA=[vA,NA,bA,aA,LA,IA,zA,hA,_A],QA=KA({defaultModifiers:ZA});function JA(e){return typeof e=="string"}function eE(e,t,r){return e===void 0||JA(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function tE(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 jd(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 nE(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const h=ae(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=tE({...o,...i}),c=jd(i),u=jd(o),l=t(a),d=ae(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 rE(e,t,r){return typeof e=="function"?e(t,r):e}function iE(e){const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:rE(r,i),{props:c,internalRef:u}=nE({...s,externalSlotProps:a}),l=lr(u,a?.ref,e.additionalProps?.ref);return eE(t,{...c,ref:l},i)}function Nd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function oE(e){return parseInt(R.version,10)>=19?e?.props?.ref||null:e?.ref||null}function sE(e){return typeof e=="function"?e():e}const xo=R.forwardRef(function(t,r){const{children:i,container:o,disablePortal:s=!1}=t,[a,c]=R.useState(null),u=lr(R.isValidElement(i)?oE(i):null,r);if(vn(()=>{s||c(sE(o)||document.body)},[o,s]),vn(()=>{if(a&&!s)return Nd(r,a),()=>{Nd(r,null)}},[r,a,s]),s){if(R.isValidElement(i)){const l={ref:u};return R.cloneElement(i,l)}return i}return a&&yg.createPortal(i,a)});process.env.NODE_ENV!=="production"&&(xo.propTypes={children:n.node,container:n.oneOfType([Xr,n.func]),disablePortal:n.bool});process.env.NODE_ENV!=="production"&&(xo.propTypes=ff(xo.propTypes));function aE(e){return tn("MuiPopper",e)}Dn("MuiPopper",["root"]);function cE(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 vo(e){return typeof e=="function"?e():e}function xs(e){return e.nodeType!==void 0}function lE(e){return!xs(e)}const uE=e=>{const{classes:t}=e;return vr({root:["root"]},aE,t)},dE={},fE=R.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=R.useRef(null),O=lr(b,r),S=R.useRef(null),v=lr(S,f),T=R.useRef(v);vn(()=>{T.current=v},[v]),R.useImperativeHandle(f,()=>S.current,[]);const k=cE(l,s),[A,M]=R.useState(k),[I,D]=R.useState(vo(i));R.useEffect(()=>{S.current&&S.current.forceUpdate()}),R.useEffect(()=>{i&&D(vo(i))},[i]),vn(()=>{if(!I||!u)return;const j=G=>{M(G.placement)};if(process.env.NODE_ENV!=="production"&&I&&xs(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})=>{j(G)}}];c!=null&&(q=q.concat(c)),d&&d.modifiers!=null&&(q=q.concat(d.modifiers));const F=QA(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:A};g!==null&&(_.TransitionProps=g);const x=uE(t),E=h.root??"div",P=iE({elementType:E,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:x.root});return C.jsx(E,{...P,children:typeof o=="function"?o(_):o})}),Fm=R.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=dE,popperRef:h,style:g,transition:m=!1,slotProps:y={},slots:b={},...O}=t,[S,v]=R.useState(!0),T=()=>{v(!1)},k=()=>{v(!0)};if(!u&&!d&&(!m||S))return null;let A;if(s)A=s;else if(i){const D=vo(i);A=D&&xs(D)?Ad(D).body:Ad(null).body}const M=!d&&u&&(!m||S)?"none":void 0,I=m?{in:d,onEnter:T,onExited:k}:void 0;return C.jsx(xo,{disablePortal:c,container:A,children:C.jsx(fE,{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"&&(Fm.propTypes={anchorEl:ys(n.oneOfType([Xr,n.object,n.func]),e=>{if(e.open){const t=vo(e.anchorEl);if(t&&xs(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"||lE(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([Xr,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:Wc,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),transition:n.bool});const pE=re(Fm,{name:"MuiPopper",slot:"Root"})({}),zm=R.forwardRef(function(t,r){const i=ei(),o=$n({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(pE,{as:a,direction:i?"rtl":"ltr",slots:{root:T},slotProps:S??u,...k,ref:r})});process.env.NODE_ENV!=="production"&&(zm.propTypes={anchorEl:n.oneOfType([Xr,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([Xr,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:Wc,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 Oo(e){const{children:t,defer:r=!1,fallback:i=null}=e,[o,s]=R.useState(!1);return vn(()=>{r||s(!0)},[r]),R.useEffect(()=>{r&&s(!0)},[r]),o?t:i}process.env.NODE_ENV!=="production"&&(Oo.propTypes={children:n.node,defer:n.bool,fallback:n.node});process.env.NODE_ENV!=="production"&&(Oo.propTypes=ff(Oo.propTypes));function qd(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 hE(){const e=me(),t=e.use(Up),r=e.use(It);return t!==void 0?"polar":r!==void 0?"cartesian":"none"}const mE=["trigger","position","anchor","classes","children"],Fd=()=>!1,gE=()=>null;function yE(e,t,r){return r?Fd:e==="item"?bk:t==="polar"?Vw:t==="cartesian"?VT:Fd}const bE=re(zm,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Bm(e){const t=Be({props:e,name:"MuiChartsTooltipContainer"}),{trigger:r="axis",position:i,anchor:o="pointer",classes:s,children:a}=t,c=te(t,mE),u=Nc(),l=gs(s),d=qw(),f=Bw(),p=R.useRef(null),h=Af(()=>({x:0,y:0})),g=hE(),m=me(),y=m.use(rk),b=m.use(yE(r,g,y)),S=m.use(li)==="keyboard"?"node":o,v=m.use(r==="item"&&S==="node"?vk:gE,i);R.useEffect(()=>{const I=u.current;if(I===null)return()=>{};if(v!==null){const x=qd(()=>{h.current={x:I.getBoundingClientRect().left+(v?.x??0),y:I.getBoundingClientRect().top+(v?.y??0)},p.current?.update()});return x(),()=>x.clear()}const D=qd((x,E)=>{h.current={x,y:E},p.current?.update()}),_=x=>{D(x.clientX,x.clientY)};return I.addEventListener("pointerdown",_),I.addEventListener("pointermove",_),I.addEventListener("pointerenter",_),()=>{I.removeEventListener("pointerdown",_),I.removeEventListener("pointermove",_),I.removeEventListener("pointerenter",_),D.clear()}},[u,h,v]);const T=R.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,A=d?.pointerType==="touch"||!f,M=R.useMemo(()=>[{name:"offset",options:{offset:()=>A?[0,64]:[0,8]}},...k?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[k,A]);return r==="none"?null:C.jsx(Oo,{children:b&&C.jsx(bE,w({},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"&&(Bm.propTypes={anchor:n.oneOf(["node","pointer"]),anchorEl:n.oneOfType([vm,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 vs(e){const{classes:t,trigger:r="axis"}=e,i=gs(t);return C.jsx(Bm,w({},e,{classes:t,children:r==="axis"?C.jsx(Rm,{classes:i}):C.jsx(Om,{classes:i})}))}process.env.NODE_ENV!=="production"&&(vs.propTypes={anchor:n.oneOf(["node","pointer"]),anchorEl:n.oneOfType([vm,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 xE=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function vE(e){return Re("MuiChartsLegend",e)}const OE=e=>{const{classes:t,direction:r}=e;return Pe({root:["root",r],item:["item"],mark:["mark"],label:["label"],series:["series"]},vE,t)},zd=we("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]),TE=["slots","slotProps"],kE=["ownerState"],Hm=(e,t,r,i)=>{function o(s,a){const c=Be({props:s,name:e}),u=typeof r.defaultProps=="function"?r.defaultProps(c):r.defaultProps??{},l=Uc(u,c),d=l,{slots:f,slotProps:p}=d,h=te(d,TE),g=je(),m=r.classesResolver?.(l,g),y=f?.[t]??i,b=r.propagateSlots&&!f?.[t],O=Et({elementType:y,externalSlotProps:p?.[t],additionalProps:w({},h,{classes:m},b&&{slots:f,slotProps:p}),ownerState:{}}),S=te(O,kE),v=w({},S);for(const T of r.omitProps??[])delete v[T];return process.env.NODE_ENV!=="production"&&(y.displayName=`${e}.slots.${t}`),C.jsx(y,w({},v,{ref:a}))}return R.forwardRef(o)};process.env.NODE_ENV!=="production"&&(Hm.displayName="consumeSlots");function SE(e){return Re("MuiChartsLabel",e)}we("MuiChartsLabel",["root"]);const CE=e=>Pe({root:["root"]},SE,e.classes),wE=["children","className","classes"],Vm=Yc("MuiChartsLabel",{classesResolver:CE},function(t,r){const{children:i,className:o,classes:s}=t,a=te(t,wE);return C.jsx("span",w({className:ae(s?.root,o),ref:r},a,{children:i}))});process.env.NODE_ENV!=="production"&&(Vm.propTypes={children:n.node,classes:n.object});const AE=["direction","onItemClick","className","classes"],EE=re("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:e,theme:t})=>w({},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.${zd.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${zd.series}`]:{display:e.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:t.spacing(1)},gridArea:"legend"})),xi=Hm("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:OE},R.forwardRef(function(t,r){const i=qC(),{onItemClick:o,className:s,classes:a}=t,c=te(t,AE);if(i.items.length===0)return null;const u=o?"button":"div";return C.jsx(EE,w({className:ae(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,xE(l),d):void 0,children:[C.jsx(Wr,{className:a?.mark,color:l.color,type:l.markType}),C.jsx(Vm,{className:a?.label,children:l.label})]})},l.id))}))}));process.env.NODE_ENV!=="production"&&(xi.displayName="ChartsLegend");process.env.NODE_ENV!=="production"&&(xi.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 PE(e){return Re("MuiChartsAxisHighlight",e)}we("MuiChartsAxisHighlight",["root"]);const To=re("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:w({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:w({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function RE(e){const{type:t,classes:r}=e,{left:i,width:o}=it(),s=me(),a=s.use(ok),c=s.use(Ve);return a.length===0?null:a.map(({axisId:u,value:l})=>{const f=c.axis[u].scale,p=xr(f),h=t==="band"&&l!==null&&Ee(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(R.Fragment,{children:[h&&f(l)!==void 0&&C.jsx(To,{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(To,{d:`M ${i} ${p(l)} L ${i+o} ${p(l)}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${u}-${l}`)})}function IE(e){const{type:t,classes:r}=e,{top:i,height:o}=it(),s=me(),a=s.use(ik),c=s.use(He);return a.length===0?null:a.map(({axisId:u,value:l})=>{const f=c.axis[u].scale,p=xr(f),h=t==="band"&&l!==null&&Ee(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(R.Fragment,{children:[h&&f(l)!==void 0&&C.jsx(To,{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(To,{d:`M ${p(l)} ${i} L ${p(l)} ${i+o}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${u}-${l}`)})}const ME=()=>Pe({root:["root"]},PE);function nl(e){const{x:t,y:r}=e,i=ME();return C.jsxs(R.Fragment,{children:[t&&t!=="none"&&C.jsx(IE,{type:t,classes:i}),r&&r!=="none"&&C.jsx(RE,{type:r,classes:i})]})}process.env.NODE_ENV!=="production"&&(nl.propTypes={x:n.oneOf(["band","line","none"]),y:n.oneOf(["band","line","none"])});function rl(e){const{id:t,offset:r}=e,{left:i,top:o,width:s,height:a}=it(),c=w({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"&&(rl.propTypes={id:n.string.isRequired,offset:n.shape({bottom:n.number,left:n.number,right:n.number,top:n.number})});const _E=["x","y","id","classes","color","shape"];function $E(e){return Re("MuiHighlightElement",e)}we("MuiHighlightElement",["root"]);const DE=e=>{const{classes:t,id:r}=e,i={root:["root",`series-${r}`]};return Pe(i,$E,t)};function Gm(e){const{x:t,y:r,color:i,shape:o}=e,s=te(e,_E),a=DE(e),c=o==="circle"?"circle":"path",u=o==="circle"?{cx:0,cy:0,r:s.r===void 0?5:s.r}:{d:ch(ah[Wh(o)])()},l=wf>18?{transformOrigin:`${t} ${r}`}:{"transform-origin":`${t} ${r}`};return C.jsx(c,w({pointerEvents:"none",className:a.root,transform:`translate(${t} ${r})`,fill:i},l,u,s))}process.env.NODE_ENV!=="production"&&(Gm.propTypes={classes:n.object,id:n.oneOfType([n.number,n.string]).isRequired,shape:n.oneOf(["circle","cross","diamond","square","star","triangle","wye"]).isRequired});const LE=["slots","slotProps"];function Um(e){const{slots:t,slotProps:r}=e,i=te(e,LE),o=pi(),{xAxis:s,xAxisIds:a}=$e(),{yAxis:c,yAxisIds:u}=De(),{instance:l}=Qe(),f=me().use(zp);if(f.length===0||o===void 0)return null;const{series:p,stackingGroups:h}=o,g=a[0],m=u[0],y=t?.lineHighlight??Gm;return C.jsx("g",w({},i,{children:f.flatMap(({dataIndex:b,axisId:O})=>h.flatMap(({ids:S})=>S.flatMap(v=>{const{xAxisId:T=g,yAxisId:k=m,stackedData:A,data:M,disableHighlight:I,shape:D="circle"}=p[v];if(I||M[b]==null||O!==T)return null;const _=xr(s[T].scale),x=c[k].scale,E=s[T].data;if(E===void 0)throw new Error(`MUI X Charts: ${T===nn?"The first `xAxis`":`The x-axis with id "${T}"`} should have data property to be able to display a line plot.`);const P=_(E[b]),j=x(A[b][1]);if(!l.isPointInside(P,j))return null;const q=$c(p[v],s[T],c[k]);return C.jsx(y,w({id:v,color:q(b),x:P,y:j,shape:D},r?.lineHighlight),`${v}`)})))}))}process.env.NODE_ENV!=="production"&&(Um.propTypes={slotProps:n.object,slots:n.object});function jE(e){return Re("MuiChartsGrid",e)}const Bd=we("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),NE=re("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Bd.verticalLine}`]:t.verticalLine},{[`&.${Bd.horizontalLine}`]:t.horizontalLine},t.root]})({}),Ym=re("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function qE(e){const{instance:t}=Qe(),{axis:r,start:i,end:o,classes:s}=e,{scale:a,tickNumber:c,tickInterval:u,tickSpacing:l}=r,d=hs({scale:a,tickNumber:c,tickInterval:u,tickSpacing:l,direction:"x",ordinalTimeTicks:"ordinalTimeTicks"in r?r.ordinalTimeTicks:void 0});return C.jsx(R.Fragment,{children:d.map(({value:f,offset:p})=>t.isXInside(p)?C.jsx(Ym,{y1:i,y2:o,x1:p,x2:p,className:s.verticalLine},`vertical-${f?.getTime?.()??f}`):null)})}function FE(e){const{instance:t}=Qe(),{axis:r,start:i,end:o,classes:s}=e,{scale:a,tickNumber:c,tickInterval:u,tickSpacing:l}=r,d=hs({scale:a,tickNumber:c,tickInterval:u,tickSpacing:l,direction:"y",ordinalTimeTicks:"ordinalTimeTicks"in r?r.ordinalTimeTicks:void 0});return C.jsx(R.Fragment,{children:d.map(({value:f,offset:p})=>t.isYInside(p)?C.jsx(Ym,{y1:p,y2:p,x1:i,x2:o,className:s.horizontalLine},`horizontal-${f?.getTime?.()??f}`):null)})}const zE=["vertical","horizontal"],BE=({classes:e})=>Pe({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},jE,e);function il(e){const t=Be({props:e,name:"MuiChartsGrid"}),r=it(),{vertical:i,horizontal:o}=t,s=te(t,zE),{xAxis:a,xAxisIds:c}=$e(),{yAxis:u,yAxisIds:l}=De(),d=BE(t),f=u[l[0]],p=a[c[0]];return C.jsxs(NE,w({},s,{className:d.root,children:[i&&C.jsx(qE,{axis:p,start:r.top,end:r.height+r.top,classes:d}),o&&C.jsx(FE,{axis:f,start:r.left,end:r.width+r.left,classes:d})]}))}process.env.NODE_ENV!=="production"&&(il.propTypes={classes:n.object,horizontal:n.bool,vertical:n.bool});const HE=["message"],VE=re("text")(({theme:e})=>w({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function GE(e){const{message:t}=e,r=te(e,HE),{top:i,left:o,height:s,width:a}=it(),{localeText:c}=Lh();return C.jsx(VE,w({x:o+a/2,y:i+s/2},r,{children:t??c.loading}))}const UE=["message"],YE=re("text")(({theme:e})=>w({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function WE(e){const{message:t}=e,r=te(e,UE),{top:i,left:o,height:s,width:a}=it(),{localeText:c}=Lh();return C.jsx(YE,w({x:o+a/2,y:i+s/2},r,{children:t??c.noData}))}function XE(){const e=ds();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 ol(e){const t=XE();if(e.loading){const r=e.slots?.loadingOverlay??GE;return C.jsx(r,w({},e.slotProps?.loadingOverlay))}if(t){const r=e.slots?.noDataOverlay??WE;return C.jsx(r,w({},e.slotProps?.noDataOverlay))}return null}const KE=[yr,hr,In,Pn,Rn,Mn,gr],ZE=["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"],QE=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:A,brushConfig:M}=e,I=te(e,ZE),_=`${Ha()}-clip-path`,x=R.useMemo(()=>i.map(Z=>w({disableHighlight:!!g,type:"line"},Z)),[g,i]),E=w({},I,{series:x,width:o,height:s,margin:a,colors:c,dataset:u,xAxis:t??[{id:nn,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:A,skipAnimation:S,brushConfig:M,plugins:KE}),P={vertical:m?.vertical,horizontal:m?.horizontal},j={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=w({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:E,gridProps:P,clipPathProps:q,clipPathGroupProps:j,areaPlotProps:F,linePlotProps:G,markPlotProps:V,overlayProps:L,chartsAxisProps:B,axisHighlightProps:Y,lineHighlightPlotProps:Q,legendProps:W,children:y}};function JE(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(A){const M=p(t[A].x),I=h(t[A].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,A){return b*k*k+O*A*A}const v=p(Hd(r,u,k=>t[k]?.x)),T=h(Hd(i,l,k=>t[k]?.y));return e.neighbors(v,T,f,d!=null?d*d:1/0,g,S)}function Hd(e,t,r){if(Ee(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 Os=({svgRef:e,params:t,store:r,instance:i})=>{const{disableVoronoi:o,voronoiMaxRadius:s,onItemClick:a}=t,{axis:c,axisIds:u}=r.use(He),{axis:l,axisIds:d}=r.use(Ve),f=r.use(Cp),{series:p,seriesOrder:h}=r.use(xe)?.scatter??{},g=r.use(f?NT:qT),m=u[0],y=d[0];tt(()=>{r.set("voronoi",{isVoronoiEnabled:!o})},[r,o]),R.useEffect(()=>{if(e.current===null||o)return;const S=e.current;function v(E){const P=Vr(S,E);if(!i.isPointInside(P.x,P.y))return"outside-chart";let j;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=id(r.state,V),Y=id(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=JE(G,F.data,ee,z,W,K,Z,J,P.x,P.y,Q)[0];if(H===void 0)continue;const X=F.data[H],$=ee(X.x),se=z(X.y),oe=($-P.x)**2+(se-P.y)**2;(j===void 0||oe<j.distanceSq)&&(j={dataIndex:H,seriesId:q,distanceSq:oe})}return j===void 0?"no-point-found":{seriesId:j.seriesId,dataIndex:j.dataIndex}}const T=i.addInteractionListener("moveEnd",E=>{E.detail.activeGestures.pan||(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),k=i.addInteractionListener("panEnd",E=>{E.detail.activeGestures.move||(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),A=i.addInteractionListener("quickPressEnd",E=>{!E.detail.activeGestures.move&&!E.detail.activeGestures.pan&&(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),M=E=>{const P=v(E.detail.srcEvent);if(P==="outside-chart"){i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.();return}if(P==="outside-voronoi-max-radius"||P==="no-point-found"){i.removeTooltipItem?.(),i.clearHighlight?.(),i.removeTooltipItem?.();return}const{seriesId:j,dataIndex:q}=P;i.setTooltipItem?.({type:"scatter",seriesId:j,dataIndex:q}),i.setLastUpdateSource?.("pointer"),i.setHighlight?.({seriesId:j,dataIndex:q})},I=i.addInteractionListener("tap",E=>{const P=v(E.detail.srcEvent);if(typeof P!="string"&&a){const{seriesId:j,dataIndex:q}=P;a(E.detail.srcEvent,{type:"scatter",seriesId:j,dataIndex:q})}}),D=i.addInteractionListener("move",M),_=i.addInteractionListener("pan",M),x=i.addInteractionListener("quickPress",M);return()=>{I.cleanup(),D.cleanup(),T.cleanup(),_.cleanup(),k.cleanup(),x.cleanup(),A.cleanup()}},[e,l,c,s,a,o,i,h,p,g,m,y,r]);const b=ze(()=>{r.set("voronoi",{isVoronoiEnabled:!0})}),O=ze(()=>{r.set("voronoi",{isVoronoiEnabled:!1})});return{instance:{enableVoronoi:b,disableVoronoi:O}}};Os.getDefaultizedParams=({params:e})=>w({},e,{disableVoronoi:e.disableVoronoi??!e.series.some(t=>t.type==="scatter")});Os.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableVoronoi}});Os.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const Wm=[yr,hr,In,Pn,Rn,Mn,Os,gr],eP=["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"],sl=(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:A,zAxis:M,rotationAxis:I,radiusAxis:D,skipAnimation:_,seriesConfig:x,plugins:E,localeText:P,slots:j,slotProps:q,experimentalFeatures:F,enableKeyboardNavigation:G,brushConfig:V}=r,L=te(r,eP),B=w({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:A,zAxis:M,rotationAxis:I,radiusAxis:D,skipAnimation:_,width:i,height:o,localeText:P,seriesConfig:x,experimentalFeatures:F,enableKeyboardNavigation:G,brushConfig:V,plugins:E??Wm,slots:j,slotProps:q},chartsSurfaceProps:B,children:a}};function Yi(e){const t=R.useRef(e);return vn(()=>{t.current=e}),R.useRef((...r)=>(0,t.current)(...r)).current}function tP(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nP(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"&&!tP(s)&&(c="Did you accidentally provide a plain function component instead?"),s===R.Fragment&&(c="Did you accidentally provide a React.Fragment 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 rP=ys(n.elementType,nP);function Vd(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}const Gd={};function Xm(e,t){const r=R.useRef(Gd);return r.current===Gd&&(r.current=e(t)),r}class ko{static create(){return new ko}static use(){const t=Xm(ko.create).current,[r,i]=R.useState(!1);return t.shouldMount=r,t.setShouldMount=i,R.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=oP(),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 iP(){return ko.use()}function oP(){let e,t;const r=new Promise((i,o)=>{e=i,t=o});return r.resolve=e,r.reject=t,r}function Ia(e,t){return Ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ia(e,t)}function sP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ia(e,t)}const Ud=Ae.createContext(null);function aP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function al(e,t){var r=function(s){return t&&Ae.isValidElement(s)?t(s):s},i=Object.create(null);return e&&Ae.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=r(o)}),i}function cP(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 mn(e,t,r){return r[t]!=null?r[t]:e.props[t]}function lP(e,t){return al(e.children,function(r){return Ae.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:mn(r,"appear",e),enter:mn(r,"enter",e),exit:mn(r,"exit",e)})})}function uP(e,t,r){var i=al(e.children),o=cP(t,i);return Object.keys(o).forEach(function(s){var a=o[s];if(Ae.isValidElement(a)){var c=s in t,u=s in i,l=t[s],d=Ae.isValidElement(l)&&!l.props.in;u&&(!c||d)?o[s]=Ae.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:mn(a,"exit",e),enter:mn(a,"enter",e)}):!u&&c&&!d?o[s]=Ae.cloneElement(a,{in:!1}):u&&c&&Ae.isValidElement(l)&&(o[s]=Ae.cloneElement(a,{onExited:r.bind(null,a),in:l.props.in,exit:mn(a,"exit",e),enter:mn(a,"enter",e)}))}}),o}var dP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},fP={component:"div",childFactory:function(t){return t}},cl=(function(e){sP(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var a=s.handleExited.bind(aP(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?lP(o,c):uP(o,a,c),firstRender:!1}},r.handleExited=function(o,s){var a=al(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(c){var u=w({},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=dP(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,s===null?Ae.createElement(Ud.Provider,{value:u},l):Ae.createElement(Ud.Provider,{value:u},Ae.createElement(s,c,l))},t})(Ae.Component);cl.propTypes=process.env.NODE_ENV!=="production"?{component:n.any,children:n.node,appear:n.bool,enter:n.bool,exit:n.bool,childFactory:n.func}:{};cl.defaultProps=fP;const pP=[];function hP(e){R.useEffect(e,pP)}class ll{static create(){return new ll}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 mP(){const e=Xm(ll.create).current;return hP(e.disposeEffect),e}function Km(e){const{className:t,classes:r,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:a,in:c,onExited:u,timeout:l}=e,[d,f]=R.useState(!1),p=ae(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),h={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},g=ae(r.child,d&&r.childLeaving,i&&r.childPulsate);return!c&&!d&&f(!0),R.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"&&(Km.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 at=Dn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ma=550,gP=80,yP=Ot.keyframes`
|
|
67
|
-
0% {
|
|
68
|
-
transform: scale(0);
|
|
69
|
-
opacity: 0.1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
100% {
|
|
73
|
-
transform: scale(1);
|
|
74
|
-
opacity: 0.3;
|
|
75
|
-
}
|
|
76
|
-
`,bP=Ot.keyframes`
|
|
77
|
-
0% {
|
|
78
|
-
opacity: 1;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
100% {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
}
|
|
84
|
-
`,xP=Ot.keyframes`
|
|
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
|
-
`,vP=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OP=re(Km,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
97
|
-
opacity: 0;
|
|
98
|
-
position: absolute;
|
|
99
|
-
|
|
100
|
-
&.${at.rippleVisible} {
|
|
101
|
-
opacity: 0.3;
|
|
102
|
-
transform: scale(1);
|
|
103
|
-
animation-name: ${yP};
|
|
104
|
-
animation-duration: ${Ma}ms;
|
|
105
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&.${at.ripplePulsate} {
|
|
109
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
& .${at.child} {
|
|
113
|
-
opacity: 1;
|
|
114
|
-
display: block;
|
|
115
|
-
width: 100%;
|
|
116
|
-
height: 100%;
|
|
117
|
-
border-radius: 50%;
|
|
118
|
-
background-color: currentColor;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
& .${at.childLeaving} {
|
|
122
|
-
opacity: 0;
|
|
123
|
-
animation-name: ${bP};
|
|
124
|
-
animation-duration: ${Ma}ms;
|
|
125
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
& .${at.childPulsate} {
|
|
129
|
-
position: absolute;
|
|
130
|
-
/* @noflip */
|
|
131
|
-
left: 0px;
|
|
132
|
-
top: 0;
|
|
133
|
-
animation-name: ${xP};
|
|
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
|
-
`,Zm=R.forwardRef(function(t,r){const i=$n({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...c}=i,[u,l]=R.useState([]),d=R.useRef(0),f=R.useRef(null);R.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=R.useRef(!1),h=mP(),g=R.useRef(null),m=R.useRef(null),y=R.useCallback(v=>{const{pulsate:T,rippleX:k,rippleY:A,rippleSize:M,cb:I}=v;l(D=>[...D,C.jsx(OP,{classes:{ripple:ae(s.ripple,at.ripple),rippleVisible:ae(s.rippleVisible,at.rippleVisible),ripplePulsate:ae(s.ripplePulsate,at.ripplePulsate),child:ae(s.child,at.child),childLeaving:ae(s.childLeaving,at.childLeaving),childPulsate:ae(s.childPulsate,at.childPulsate)},timeout:Ma,pulsate:T,rippleX:k,rippleY:A,rippleSize:M},d.current)]),d.current+=1,f.current=I},[s]),b=R.useCallback((v={},T={},k=()=>{})=>{const{pulsate:A=!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 D=I?null:m.current,_=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,E,P;if(M||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)x=Math.round(_.width/2),E=Math.round(_.height/2);else{const{clientX:j,clientY:q}=v.touches&&v.touches.length>0?v.touches[0]:v;x=Math.round(j-_.left),E=Math.round(q-_.top)}if(M)P=Math.sqrt((2*_.width**2+_.height**2)/3),P%2===0&&(P+=1);else{const j=Math.max(Math.abs((D?D.clientWidth:0)-x),x)*2+2,q=Math.max(Math.abs((D?D.clientHeight:0)-E),E)*2+2;P=Math.sqrt(j**2+q**2)}v?.touches?g.current===null&&(g.current=()=>{y({pulsate:A,rippleX:x,rippleY:E,rippleSize:P,cb:k})},h.start(gP,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:A,rippleX:x,rippleY:E,rippleSize:P,cb:k})},[o,y,h]),O=R.useCallback(()=>{b({},{pulsate:!0})},[b]),S=R.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 R.useImperativeHandle(r,()=>({pulsate:O,start:b,stop:S}),[O,b,S]),C.jsx(vP,{className:ae(at.root,s.root,a),ref:m,...c,children:C.jsx(cl,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(Zm.propTypes={center:n.bool,classes:n.object,className:n.string});function TP(e){return tn("MuiButtonBase",e)}const kP=Dn("MuiButtonBase",["root","disabled","focusVisible"]),SP=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:o}=e,a=vr({root:["root",t&&"disabled",r&&"focusVisible"]},TP,o);return r&&i&&(a.root+=` ${i}`),a},CP=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"},[`&.${kP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ul=R.forwardRef(function(t,r){const i=$n({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:A,onMouseLeave:M,onMouseUp:I,onTouchEnd:D,onTouchMove:_,onTouchStart:x,tabIndex:E=0,TouchRippleProps:P,touchRippleRef:j,type:q,...F}=i,G=R.useRef(null),V=iP(),L=lr(V.ref,j),[B,Y]=R.useState(!1);l&&B&&Y(!1),R.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),G.current.focus()}}),[]);const Q=V.shouldMount&&!d&&!l;R.useEffect(()=>{B&&p&&!d&&V.pulsate()},[d,p,B,V]);const W=$t(V,"start",A,f),K=$t(V,"stop",b,f),Z=$t(V,"stop",O,f),J=$t(V,"stop",I,f),ee=$t(V,"stop",ne=>{B&&ne.preventDefault(),M&&M(ne)},f),z=$t(V,"start",x,f),H=$t(V,"stop",D,f),X=$t(V,"stop",_,f),$=$t(V,"stop",ne=>{Vd(ne.target)||Y(!1),m&&m(ne)},!1),se=Yi(ne=>{G.current||(G.current=ne.currentTarget),Vd(ne.target)&&(Y(!0),v&&v(ne)),S&&S(ne)}),oe=()=>{const ne=G.current;return u&&u!=="button"&&!(ne.tagName==="A"&&ne.href)},Ce=Yi(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))}),Me=Yi(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 Fe=u;Fe==="button"&&(F.href||F.to)&&(Fe=g);const Tt={};if(Fe==="button"){const ne=!!F.formAction;Tt.type=q===void 0&&!ne?"button":q,Tt.disabled=l}else!F.href&&!F.to&&(Tt.role="button"),l&&(Tt["aria-disabled"]=l);const Es=lr(r,G),kt={...i,centerRipple:s,component:u,disabled:l,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:E,focusVisible:B},Ln=SP(kt);return C.jsxs(CP,{as:Fe,className:ae(Ln.root,c),ownerState:kt,onBlur:$,onClick:y,onContextMenu:K,onFocus:se,onKeyDown:Ce,onKeyUp:Me,onMouseDown:W,onMouseLeave:ee,onMouseUp:J,onDragLeave:Z,onTouchEnd:H,onTouchMove:X,onTouchStart:z,ref:Es,tabIndex:l?-1:E,type:q,...Tt,...F,children:[a,Q?C.jsx(Zm,{ref:L,center:s,...P}):null]})});function $t(e,t,r,i=!1){return Yi(o=>(r&&r(o),i||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(ul.propTypes={action:Wc,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:rP,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 wP(e){return tn("MuiCircularProgress",e)}Dn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const yt=44,_a=Ot.keyframes`
|
|
140
|
-
0% {
|
|
141
|
-
transform: rotate(0deg);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
100% {
|
|
145
|
-
transform: rotate(360deg);
|
|
146
|
-
}
|
|
147
|
-
`,$a=Ot.keyframes`
|
|
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
|
-
`,AP=typeof _a!="string"?Ot.css`
|
|
163
|
-
animation: ${_a} 1.4s linear infinite;
|
|
164
|
-
`:null,EP=typeof $a!="string"?Ot.css`
|
|
165
|
-
animation: ${$a} 1.4s ease-in-out infinite;
|
|
166
|
-
`:null,PP=e=>{const{classes:t,variant:r,color:i,disableShrink:o}=e,s={root:["root",r,`color${be(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${be(r)}`,o&&"circleDisableShrink"]};return vr(s,wP,t)},RP=re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${be(r.color)}`]]}})(Tn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:AP||{animation:`${_a} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),IP=re("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),MP=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${be(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Tn(({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:EP||{animation:`${$a} 1.4s ease-in-out infinite`}}]}))),_P=re("circle",{name:"MuiCircularProgress",slot:"Track"})(Tn(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),dl=R.forwardRef(function(t,r){const i=$n({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=PP(g),y={},b={},O={};if(p==="determinate"){const S=2*Math.PI*((yt-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(RP,{className:ae(m.root,o),style:{width:u,height:u,...b,...l},ownerState:g,ref:r,role:"progressbar",...O,...h,children:C.jsxs(IP,{className:m.svg,ownerState:g,viewBox:`${yt/2} ${yt/2} ${yt} ${yt}`,children:[c?C.jsx(_P,{className:m.track,ownerState:g,cx:yt,cy:yt,r:(yt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,C.jsx(MP,{className:m.circle,style:y,ownerState:g,cx:yt,cy:yt,r:(yt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(dl.propTypes={classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","error","info","success","warning"]),n.string]),disableShrink:ys(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 $P(e){return tn("MuiIconButton",e)}const Yd=Dn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),DP=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${be(i)}`,o&&`edge${be(o)}`,`size${be(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return vr(c,$P,t)},LP=re(ul,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${be(r.color)}`],r.edge&&t[`edge${be(r.edge)}`],t[`size${be(r.size)}`]]}})(Tn(({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}}]})),Tn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Yr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Yr()).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)}}],[`&.${Yd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Yd.loading}`]:{color:"transparent"}}))),jP=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"}}]})),Qm=R.forwardRef(function(t,r){const i=$n({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=mf(f),y=h??C.jsx(dl,{"aria-labelledby":m,color:"inherit",size:16}),b={...i,edge:o,color:c,disabled:u,disableFocusRipple:l,loading:p,loadingIndicator:y,size:d},O=DP(b);return C.jsxs(LP,{id:p?m:f,className:ae(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(jP,{className:O.loadingIndicator,ownerState:b,children:p&&y})}),s]})});process.env.NODE_ENV!=="production"&&(Qm.propTypes={children:ys(n.node,e=>R.Children.toArray(e.children).some(r=>R.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 NP(e){return tn("MuiButton",e)}const un=Dn("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"]),Jm=R.createContext({});process.env.NODE_ENV!=="production"&&(Jm.displayName="ButtonGroupContext");const eg=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(eg.displayName="ButtonGroupButtonContext");const qP=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}${be(t)}`,`size${be(o)}`,`${s}Size${be(o)}`,`color${be(t)}`,r&&"disableElevation",i&&"fullWidth",a&&`loadingPosition${be(c)}`],startIcon:["icon","startIcon",`iconSize${be(o)}`],endIcon:["icon","endIcon",`iconSize${be(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=vr(l,NP,u);return{...u,...d}},tg=[{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}}}],FP=re(ul,{shouldForwardProp:e=>kf(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${be(r.color)}`],t[`size${be(r.size)}`],t[`${r.variant}Size${be(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Tn(({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"},[`&.${un.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]},[`&.${un.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${un.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)",[`&.${un.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(Yr()).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"},[`&.${un.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${un.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}),[`&.${un.loading}`]:{color:"transparent"}}}]}})),zP=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${be(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}},...tg]})),BP=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${be(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}},...tg]})),HP=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}}]})),Wd=re("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ng=R.forwardRef(function(t,r){const i=R.useContext(Jm),o=R.useContext(eg),s=Nr(i,t),a=$n({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:A,variant:M="text",...I}=a,D=mf(b),_=S??C.jsx(dl,{"aria-labelledby":D,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:A,variant:M},E=qP(x),P=(k||O&&v==="start")&&C.jsx(zP,{className:E.startIcon,ownerState:x,children:k||C.jsx(Wd,{className:E.loadingIconPlaceholder,ownerState:x})}),j=(g||O&&v==="end")&&C.jsx(BP,{className:E.endIcon,ownerState:x,children:g||C.jsx(Wd,{className:E.loadingIconPlaceholder,ownerState:x})}),q=o||"",F=typeof O=="boolean"?C.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:O&&C.jsx(HP,{className:E.loadingIndicator,ownerState:x,children:_})}):null;return C.jsxs(FP,{ownerState:x,className:ae(i.className,E.root,d,q),component:l,disabled:f||O,focusRipple:!h,focusVisibleClassName:ae(E.focusVisible,m),ref:r,type:A,id:O?D:b,...I,classes:E,children:[P,v!=="end"&&F,c,v==="end"&&F,j]})});process.env.NODE_ENV!=="production"&&(ng.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 VP={baseButton:ng,baseIconButton:Qm},GP={},UP=w({},VP,GP),rg=R.createContext(null);process.env.NODE_ENV!=="production"&&(rg.displayName="ChartsSlotsContext");function YP(e){const{slots:t,slotProps:r={},defaultSlots:i,children:o}=e,s=R.useMemo(()=>({slots:w({},i,t),slotProps:r}),[i,t,r]);return C.jsx(rg.Provider,{value:s,children:o})}const WP=["children","localeText","plugins","seriesConfig","slots","slotProps"],XP=e=>{const t=Be({props:e,name:"MuiChartDataProvider"}),{children:r,localeText:i,plugins:o=Wm,seriesConfig:s,slots:a,slotProps:c}=t,u=te(t,WP),l=je(),d={plugins:o,seriesConfig:s,pluginParams:w({theme:l.palette.mode},u)};return{children:r,localeText:i,chartProviderProps:d,slots:a,slotProps:c}};function Ts(e){const{children:t,localeText:r,chartProviderProps:i,slots:o,slotProps:s}=XP(e);return C.jsx(aC,w({},i,{children:C.jsx(Dh,{localeText:r,children:C.jsx(YP,{slots:o,slotProps:s,defaultSlots:UP,children:t})})}))}process.env.NODE_ENV!=="production"&&(Ts.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 Xd(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(R.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 KP=10;function Kd(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"?ue(l[0],l[1]):sc(l[0],l[1]),p=Math.round((Math.max(...d)-Math.min(...d))/KP),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 ZP=10,QP=e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function oa(e){const{isReversed:t,gradientId:r,colorScale:i,colorMap:o}=e,s=[o.min??0,o.max??100],a=typeof s[0]=="number"?ue(s[0],s[1]):sc(s[0],s[1]),c=ZP,u=`${s[0]}-${s[1]}-`;return C.jsx("linearGradient",w({id:r},QP(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 JP(){const{top:e,height:t,bottom:r,left:i,width:o,right:s}=it(),a=e+t+r,c=i+o+s,u=Fc(),l=FC(),{xAxis:d,xAxisIds:f}=$e(),{yAxis:p,yAxisIds:h}=De(),{zAxis:g,zAxisIds:m}=jc(),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:A,colorScale:M,reverse:I}=p[S];return k?.type==="piecewise"?C.jsx(Xd,{isReversed:!I,scale:A,colorMap:k,size:a,gradientId:v,direction:"y"},v):k?.type==="continuous"?C.jsxs(R.Fragment,{children:[C.jsx(Kd,{isReversed:!I,scale:A,colorScale:M,colorMap:k,size:a,gradientId:v,direction:"y"}),C.jsx(oa,{isReversed:I,colorScale:M,colorMap:k,gradientId:T})]},v):null}),b.map(S=>{const v=u(S),T=l(S),{colorMap:k,scale:A,reverse:M,colorScale:I}=d[S];return k?.type==="piecewise"?C.jsx(Xd,{isReversed:M,scale:A,colorMap:k,size:c,gradientId:v,direction:"x"},v):k?.type==="continuous"?C.jsxs(R.Fragment,{children:[C.jsx(Kd,{isReversed:M,scale:A,colorScale:I,colorMap:k,size:c,gradientId:v,direction:"x"}),C.jsx(oa,{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(oa,{colorScale:k,colorMap:T,gradientId:v},v):null})]})}function eR(e){return Re("MuiChartsSurface",e)}const tR=()=>Pe({root:["root"]},eR);we("MuiChartsSurface",["root"]);const nR=["children","className","title","desc"],rR=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"}})),vi=R.forwardRef(function(t,r){const i=me(),o=i.use(t0),s=i.use(n0),a=i.use(Rf),c=i.use(If),u=i.use(WT),l=i.use(Dp),d=i.use(ET),f=Nc(),p=Ba(f,r),h=Be({props:t,name:"MuiChartsSurface"}),{children:g,className:m,title:y,desc:b}=h,O=te(h,nR),S=tR(),v=s>0&&o>0;return C.jsxs(rR,w({ownerState:{width:a,height:c,hasZoom:d},viewBox:`0 0 ${o} ${s}`,className:ae(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(JP,{}),v&&g]}))});process.env.NODE_ENV!=="production"&&(vi.displayName="ChartsSurface");process.env.NODE_ENV!=="production"&&(vi.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});const Zd=we("MuiChartsToolbar",["root"]),iR=e=>e?.horizontal==="start"?"start":e?.horizontal==="end"?"end":"center",oR=e=>e?.vertical==="top"?"flex-start":e?.vertical==="bottom"?"flex-end":"center",sR=(e,t,r)=>e?'"chart"':t==="vertical"?r?.horizontal==="start"?'"legend chart"':'"chart legend"':r?.vertical==="bottom"?`"chart"
|
|
168
|
-
"legend"`:`"legend"
|
|
169
|
-
"chart"`,aR=(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`},cR=(e=!1,t="horizontal",r="top")=>t==="vertical"||e?"1fr":r==="bottom"?"1fr auto":"auto 1fr",lR=re("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:e=>Hi(e)&&e!=="extendVertically"&&e!=="width"})(({ownerState:e,width:t})=>{const r=aR(e.hideLegend,e.legendDirection,e.legendPosition?.horizontal,t),i=cR(e.hideLegend,e.legendDirection,e.legendPosition?.vertical),o=sR(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(.${Zd.root})`]:{gridTemplateRows:`auto ${i}`,gridTemplateAreas:`"${r.split(" ").map(()=>"toolbar").join(" ")}"
|
|
170
|
-
${o}`},[`& .${Zd.root}`]:{gridArea:"toolbar",justifySelf:"center"},justifyContent:"safe center",justifyItems:iR(e.legendPosition),alignItems:oR(e.legendPosition)}});function ks(e){const{children:t,sx:r,extendVertically:i}=e,o=QC(),s=me(),a=s.use(Rf),c=s.use(If);return C.jsx(lR,{ref:o,ownerState:e,sx:r,extendVertically:i??c===void 0,width:a,children:t})}process.env.NODE_ENV!=="production"&&(ks.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 Ss(){return me().use(Ac)}const zi=6;function uR(){const e=je(),t=Ss(),r=pi(),{xAxis:i,xAxisIds:o}=$e(),{yAxis:s,yAxisIds:a}=De();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])-zi,y:s[l].scale(c.stackedData[t.dataIndex][1])-zi,width:2*zi,height:2*zi,rx:3,ry:3})}const Cs=R.forwardRef(function(t,r){const i=Be({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}=QE(i),{chartDataProviderProps:O,chartsSurfaceProps:S}=sl(s,r),v=i.slots?.tooltip??vs,T=i.slots?.toolbar;return C.jsx(Ts,w({},O,{children:C.jsxs(ks,w({},o,{children:[i.showToolbar&&T?C.jsx(T,w({},i.slotProps?.toolbar)):null,!i.hideLegend&&C.jsx(xi,w({},y)),C.jsxs(vi,w({},S,{children:[C.jsx(il,w({},a)),C.jsxs("g",w({},u,{children:[C.jsx(Bh,w({},l)),C.jsx(Vh,w({},d)),C.jsx(ol,w({},p)),C.jsx(nl,w({},g))]})),C.jsx(uR,{}),C.jsx(Gc,w({},h)),C.jsx("g",{"data-drawing-container":!0,children:C.jsx(Kh,w({},f))}),C.jsx(Um,w({},m)),C.jsx(rl,w({},c)),b]})),!i.loading&&C.jsx(v,w({},i.slotProps?.tooltip))]}))}))});process.env.NODE_ENV!=="production"&&(Cs.displayName="LineChart");process.env.NODE_ENV!=="production"&&(Cs.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 dR=({titulo:e,subtitulo:t,conPapel:r=!0,alto:i=300,sx:o,...s})=>{const a=je(),c=C.jsx(Cs,{height:i,sx:[{width:"100%"},...Array.isArray(o)?o:o?[o]:[]],...s});return r?C.jsxs(Oe.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${a.palette.divider}`,bgcolor:a.palette.background.paper,boxShadow:a.shadows[1]},children:[(e||t)&&C.jsxs(Oe.Box,{sx:{mb:2},children:[e&&C.jsx(Oe.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:e}),t&&C.jsx(Oe.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c};function fR(e){return Re("MuiBarElement",e)}const pR=we("MuiBarElement",["root","highlighted","faded","series"]),hR=e=>{const{classes:t,id:r,isHighlighted:i,isFaded:o}=e,s={root:["root",`series-${r}`,i&&"highlighted",o&&"faded"]};return Pe(s,fR,t)},mR=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function gR(e){const{ownerState:t}=e,r=te(e,mR),i=BC(e);return C.jsx("rect",w({},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 yR(e){return me().use(YT,e)}const bR=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function ig(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,bR),O=R.useMemo(()=>({type:"bar",seriesId:t,dataIndex:r}),[t,r]),S=br(O),{isFaded:v,isHighlighted:T}=di(O),k=yR(R.useMemo(()=>({type:"bar",seriesId:t,dataIndex:r}),[t,r])),A={id:t,dataIndex:r,classes:i,color:o,isFaded:v,isHighlighted:T,isFocused:k},M=hR(A),I=s?.bar??gR,D=Et({elementType:I,externalSlotProps:a?.bar,externalForwardedProps:b,additionalProps:w({},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:A});return C.jsx(I,w({},D))}process.env.NODE_ENV!=="production"&&(ig.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 xR(e,t){const r=ue(e.x,t.x),i=ue(e.y,t.y),o=ue(e.width,t.width),s=ue(e.height,t.height),a=ue(e.borderRadius,t.borderRadius);return c=>({x:r(c),y:i(c),width:o(c),height:s(c),borderRadius:a(c)})}function vR(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 _n({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius},{createInterpolator:xR,transformProps:r=>({d:TR(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 OR(e){const{maskId:t,x:r,y:i,width:o,height:s,skipAnimation:a}=e,{ref:c,d:u}=vR({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 TR(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 kR(e){return Re("MuiBarLabel",e)}const Qd=we("MuiBarLabel",["root","highlighted","faded","animate"]),SR=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 Pe(a,kR,t)};function CR(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 wR=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin","placement"],AR=re("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Qd.faded}`]:t.faded},{[`&.${Qd.highlighted}`]:t.highlighted},t.root]})(({theme:e})=>w({},e?.typography?.body2,{stroke:"none",fill:(e.vars||e)?.palette?.text?.primary,transitionProperty:"opacity, fill",transitionDuration:`${vt}ms`,transitionTimingFunction:Pt,pointerEvents:"none"}));function og(e){const t=Be({props:e,name:"MuiBarLabel"}),{isFaded:r}=t,i=te(t,wR),o=VC(t),s=ER(t),a=PR(t),c=r?.3:1;return C.jsx(AR,w({textAnchor:s,dominantBaseline:a,opacity:c},i,o))}function ER({placement:e,layout:t,xOrigin:r,x:i}){return e==="outside"&&t==="horizontal"?i<r?"end":"start":"middle"}function PR({placement:e,layout:t,yOrigin:r,y:i}){return e==="outside"?t==="horizontal"?"central":i<r?"auto":"hanging":"central"}process.env.NODE_ENV!=="production"&&(og.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 RR=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout","barLabelPlacement"],IR=["ownerState"];function sg(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,RR),{isFaded:S,isHighlighted:v}=di({seriesId:t,dataIndex:o}),T={seriesId:t,classes:r,color:i,isFaded:S,isHighlighted:v,dataIndex:o,skipAnimation:m,layout:y},k=SR(T),A=a?.barLabel??og,M=Et({elementType:A,externalSlotProps:c?.barLabel,additionalProps:w({},O,{xOrigin:u,yOrigin:l,x:d,y:f,width:p,height:h,placement:b,className:k.root}),ownerState:T}),{ownerState:I}=M,D=te(M,IR);if(!s)return null;const _=CR({barLabel:s,value:g,dataIndex:o,seriesId:t,height:h,width:p});return _?C.jsx(A,w({},D,I,{children:_})):null}process.env.NODE_ENV!=="production"&&(sg.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 MR=["processedSeries","className","skipAnimation"];function _R(e){const{processedSeries:t,className:r,skipAnimation:i}=e,o=te(e,MR),{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(sg,w({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 Bi=(e,t)=>{const r=`${e}-axis`,i=`${e}Axis`;return t===(e==="x"?nn:Ua)?`The first \`${i}\``:`The ${r} with id "${t}"`};function $R(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: ${Bi(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: ${Bi(h,f)} should have data property.`);if(d.scaleType==="band"||d.scaleType==="point")throw new Error(`MUI X Charts: ${Bi(g,p)} should be a continuous type to display the bar series of id "${t}".`);process.env.NODE_ENV!=="production"&&l.data.length<r&&pt([`MUI X Charts: ${Bi(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 DR(e,t,r){const i=Mh()??{series:{},stackingGroups:[]},o=$e().xAxisIds[0],s=De().yAxisIds[0],a=fi(),{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],A=c[b].layout==="vertical",M=(A?k.reverse:T.reverse)??!1;$R(A,b,c[b].stackedData.length,O,t,S,r);const I=A?T:k,D=T.scale,_=k.scale,x=Math.round(D(0)??0),E=Math.round(_(0)??0),P=bh(c[b],t[O],r[S]),j=[];for(let q=0;q<I.data.length;q+=1){const F=_c({verticalLayout:A,xAxisConfig:T,yAxisConfig:k,series:c[b],dataIndex:q,numberOfGroups:u.length,groupIndex:p});if(F==null)continue;const G=c[b].stack,V=w({seriesId:b,dataIndex:q},F,{color:P(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:E,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),j.push(V)}return{seriesId:b,barLabel:c[b].barLabel,barLabelPlacement:c[b].barLabelPlacement,data:j,layout:v,xOrigin:x,yOrigin:E}})}),masksData:Object.values(l)}}function LR(e){return Re("MuiBar",e)}we("MuiBar",["root","series","seriesLabels"]);const jR=e=>Pe({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},LR,e),NR=["skipAnimation","onItemClick","borderRadius","barLabel"],qR=re("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${pR.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${vt}ms`,transitionTimingFunction:Pt}});function ag(e){const{skipAnimation:t,onItemClick:r,borderRadius:i,barLabel:o}=e,s=te(e,NR),a=fs(),c=hi(a||t),{xAxis:u}=$e(),{yAxis:l}=De(),{completedData:d,masksData:f}=DR(it(),u,l),p=!i||i<=0,h=jR();return C.jsxs(qR,{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:A})=>C.jsx(OR,{maskId:g,borderRadius:i,hasNegative:k,hasPositive:T,layout:A,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:A,width:M,height:I})=>{const D=C.jsx(ig,w({id:g,dataIndex:S,color:v,skipAnimation:c??!1,layout:m??"vertical",x:k,xOrigin:y,y:A,yOrigin:b,width:M,height:I},s,{onClick:r&&(_=>{r(_,{type:"bar",seriesId:g,dataIndex:S})})}),S);return p?D:C.jsx("g",{clipPath:`url(#${T})`,children:D},S)})},g)),d.map(g=>C.jsx(_R,w({className:h.seriesLabels,processedSeries:g,skipAnimation:c,barLabel:o},s),g.seriesId))]})}process.env.NODE_ENV!=="production"&&(ag.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 FR=[yr,hr,In,Pn,Rn,Mn,gr],zR=["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"],BR=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:A,brushConfig:M}=e,I=te(e,zR),_=`${Ha()}-clip-path`,x=b==="horizontal"||b===void 0&&i.some(H=>H.layout==="horizontal"),E=R.useMemo(()=>[{id:nn,scaleType:"band",data:Array.from({length:Math.max(...i.map(H=>(H.data??u??[]).length))},(H,X)=>X)}],[u,i]),P=R.useMemo(()=>[{id:Ua,scaleType:"band",data:Array.from({length:Math.max(...i.map(H=>(H.data??u??[]).length))},(H,X)=>X)}],[u,i]),j=R.useMemo(()=>i.map(H=>w({type:"bar"},H,{layout:x?"horizontal":"vertical"})),[x,i]),q=x?void 0:E,F=R.useMemo(()=>t?x?t:t.map(H=>w({scaleType:"band"},H)):q,[q,x,t]),G=x?P:void 0,V=R.useMemo(()=>r?x?r.map(H=>w({scaleType:"band"},H)):r:G,[G,x,r]),L=w({},I,{series:j,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:A,skipAnimation:m,brushConfig:M,plugins:FR}),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=w({},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 HR(e){const t=je(),r=Ss(),i=Mh(),{xAxis:o,xAxisIds:s}=$e(),{yAxis:a,yAxisIds:c}=De();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=_c({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",w({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 fl=R.forwardRef(function(t,r){const i=Be({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}=BR(i),{chartDataProviderProps:m,chartsSurfaceProps:y}=sl(s,r),b=i.slots?.tooltip??vs,O=i.slots?.toolbar;return C.jsx(Ts,w({},m,{children:C.jsxs(ks,w({},o,{children:[i.showToolbar&&O?C.jsx(O,w({},i.slotProps?.toolbar)):null,!i.hideLegend&&C.jsx(xi,w({},h)),C.jsxs(vi,w({},y,{children:[C.jsx(il,w({},c)),C.jsxs("g",w({},l,{children:[C.jsx(ag,w({},a)),C.jsx(ol,w({},d)),C.jsx(nl,w({},p)),C.jsx(HR,{})]})),C.jsx(Gc,w({},f)),C.jsx(rl,w({},u)),g]})),!i.loading&&C.jsx(b,w({},i.slotProps?.tooltip))]}))}))});process.env.NODE_ENV!=="production"&&(fl.displayName="BarChart");process.env.NODE_ENV!=="production"&&(fl.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 VR=({titulo:e,subtitulo:t,conPapel:r=!0,alto:i=300,sx:o,...s})=>{const a=je(),c=C.jsx(fl,{height:i,sx:[{width:"100%"},...Array.isArray(o)?o:o?[o]:[]],...s});return r?C.jsxs(Oe.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${a.palette.divider}`,bgcolor:a.palette.background.paper,boxShadow:a.shadows[1]},children:[(e||t)&&C.jsxs(Oe.Box,{sx:{mb:2},children:[e&&C.jsx(Oe.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:e}),t&&C.jsx(Oe.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c},GR=["className","classes","color","dataIndex","id","isFaded","isHighlighted","isFocused","onClick","cornerRadius","startAngle","endAngle","innerRadius","outerRadius","paddingAngle","skipAnimation","stroke","skipInteraction"];function UR(e){return Re("MuiPieArc",e)}const YR=we("MuiPieArc",["root","highlighted","faded","series","focusIndicator"]),WR=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 Pe(a,UR,t)},XR=re("path",{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})({transitionProperty:"opacity, fill, filter",transitionDuration:`${vt}ms`,transitionTimingFunction:Pt}),ws=R.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,GR),k=je(),A=S??(k.vars||k).palette.background.paper,M={id:c,dataIndex:a,classes:o,color:s,isFaded:u,isHighlighted:l,isFocused:d},I=WR(M),D=br({type:"pie",seriesId:c,dataIndex:a},v),_=XC({cornerRadius:p,startAngle:h,endAngle:g,innerRadius:m,outerRadius:y,paddingAngle:b,skipAnimation:O,ref:r});return C.jsx(XR,w({onClick:f,cursor:f?"pointer":"unset",ownerState:M,className:ae(I.root,i),fill:M.color,opacity:M.isFaded?.3:1,filter:M.isHighlighted?"brightness(120%)":"none",stroke:A,strokeWidth:1,strokeLinejoin:"round","data-highlighted":M.isHighlighted||void 0,"data-faded":M.isFaded||void 0},T,D,_))});process.env.NODE_ENV!=="production"&&(ws.displayName="PieArc");process.env.NODE_ENV!=="production"&&(ws.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 KR(){const e=Ss();return t=>e!==null&&Gr(e,t)}function cg(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=w({additionalRadius:0},i&&o||r&&s||{}),p=Math.max(0,Nt(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 lg(e){const{id:t,data:r,faded:i,highlighted:o}=e,{isFaded:s,isHighlighted:a}=_h(),c=KR();return R.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=cg(e,{radius:{inner:e.innerRadius??0,outer:e.outerRadius,label:e.arcLabelRadius??0,available:0}},p,h),y=w({additionalRadius:0},h&&i||p&&o||{});return w({},l,y,{dataIndex:d,isFaded:h,isHighlighted:p,isFocused:g},m)}),[r,t,a,s,c,e,i,o])}const ZR=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function ug(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,ZR),g=lg({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??ws;return C.jsx("g",w({},h,{children:g.map((y,b)=>C.jsx(m,w({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"&&(ug.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 QR=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","skipAnimation"];function JR(e){return Re("MuiPieArcLabel",e)}const eI=we("MuiPieArcLabel",["root","highlighted","faded","animate","series"]),tI=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 Pe(a,JR,t)},nI=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:Pt,transitionDuration:`${vt}ms`,transitionProperty:"opacity",transitionTimingFunction:Pt,[`&.${eI.animate}`]:{animationDuration:`${vt}ms`},"@keyframes animate-opacity":{from:{opacity:0}}})),pl=R.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,QR),b=tI({id:i,classes:o,isFaded:h,isHighlighted:p,skipAnimation:g}),O=ZC({cornerRadius:d,startAngle:a,endAngle:c,innerRadius:l,outerRadius:l,paddingAngle:u,skipAnimation:g,ref:r});return C.jsx(nI,w({className:b.root},m,O,{children:f}))});process.env.NODE_ENV!=="production"&&(pl.displayName="PieArcLabel");process.env.NODE_ENV!=="production"&&(pl.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 rI=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],iI=180/Math.PI;function oI(e,t,r){if(!e||(r.endAngle-r.startAngle)*iI<t)return null;switch(e){case"label":return nt(r.label,"arc");case"value":return r.value?.toString();case"formattedValue":return r.formattedValue;default:return e(w({},r,{label:nt(r.label,"arc")}))}}function dg(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,rI),y=lg({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??pl;return C.jsx("g",w({},m,{children:y.map(O=>C.jsx(b,w({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:oI(t,r,O),skipAnimation:p??!1},h?.pieArcLabel),O.id??O.dataIndex))}))}process.env.NODE_ENV!=="production"&&(dg.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 sI(e){return Re("MuiPieChart",e)}we("MuiPieChart",["root","series","seriesLabels"]);const aI=e=>Pe({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},sI,e);function fg(e){const{skipAnimation:t,slots:r,slotProps:i,onItemClick:o}=e,s=Rh(),a=Ih(),c=hi(t),u=aI();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(ug,{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(dg,{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"&&(fg.propTypes={onItemClick:n.func,skipAnimation:n.bool,slotProps:n.object,slots:n.object});const cI=[In,Pn,Mn,gr];function lI(e){const t=je(),r=Ss(),i=Ih(),{isHighlighted:o,isFaded:s}=di(r),a=Rh();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=cg(c,i[r.seriesId],o,s);return C.jsx(ws,w({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:YR.focusIndicator,dataIndex:r.dataIndex,isFaded:!1,isHighlighted:!1,isFocused:!1,strokeWidth:3},f,e))}const uI=["series","width","height","margin","colors","sx","skipAnimation","hideLegend","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className","showToolbar"],As=R.forwardRef(function(t,r){const i=Be({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,uI),k=Mf(c,_0),{chartDataProviderProps:A,chartsSurfaceProps:M}=sl(w({},T,{series:o.map(_=>w({type:"pie"},_)),width:s,height:a,margin:k,colors:u,highlightedItem:b,onHighlightChange:O,className:S,skipAnimation:d,plugins:cI}),r),I=h?.tooltip??vs,D=i.slots?.toolbar;return C.jsx(Ts,w({},A,{children:C.jsxs(ks,{legendPosition:i.slotProps?.legend?.position,legendDirection:i.slotProps?.legend?.direction??"vertical",sx:l,hideLegend:f??!1,children:[v&&D?C.jsx(D,w({},i.slotProps?.toolbar)):null,!f&&C.jsx(xi,{direction:i.slotProps?.legend?.direction??"vertical",slots:h,slotProps:g}),C.jsxs(vi,w({},M,{children:[C.jsx(fg,{slots:h,slotProps:g,onItemClick:m}),C.jsx(lI,{}),C.jsx(ol,{loading:y,slots:h,slotProps:g}),p]})),!y&&C.jsx(I,w({trigger:"item"},g?.tooltip))]})}))});process.env.NODE_ENV!=="production"&&(As.displayName="PieChart");process.env.NODE_ENV!=="production"&&(As.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 dI=({titulo:e,subtitulo:t,conPapel:r=!0,alto:i=300,sx:o,...s})=>{const a=je(),c=C.jsx(As,{height:i,sx:[{width:"100%"},...Array.isArray(o)?o:o?[o]:[]],...s});return r?C.jsxs(Oe.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${a.palette.divider}`,bgcolor:a.palette.background.paper,boxShadow:a.shadows[1]},children:[(e||t)&&C.jsxs(Oe.Box,{sx:{mb:2},children:[e&&C.jsx(Oe.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:e}),t&&C.jsx(Oe.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c},fI=({titulo:e,subtitulo:t,conPapel:r=!0,alto:i=300,sx:o,series:s,...a})=>{const c=je(),u=s.map(d=>({area:!0,...d})),l=C.jsx(Cs,{height:i,sx:[{width:"100%"},...Array.isArray(o)?o:o?[o]:[]],series:u,...a});return r?C.jsxs(Oe.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${c.palette.divider}`,bgcolor:c.palette.background.paper,boxShadow:c.shadows[1]},children:[(e||t)&&C.jsxs(Oe.Box,{sx:{mb:2},children:[e&&C.jsx(Oe.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:e}),t&&C.jsx(Oe.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),l]}):l},pg=({titulo:e,subtitulo:t,conPapel:r=!0,alto:i=300,radioInterior:o=60,etiquetaCentral:s,valorCentral:a,sx:c,series:u,...l})=>{const d=je(),f=u.map(h=>({innerRadius:o,paddingAngle:2,cornerRadius:4,...h})),p=C.jsxs(Oe.Box,{sx:{position:"relative"},children:[C.jsx(As,{height:i,sx:[{width:"100%"},...Array.isArray(c)?c:c?[c]:[]],series:f,...l}),(s||a!==void 0)&&C.jsxs(Oe.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",pointerEvents:"none"},children:[a!==void 0&&C.jsx(Oe.Typography,{variant:"h5",fontWeight:700,color:"text.primary",lineHeight:1,children:a}),s&&C.jsx(Oe.Typography,{variant:"caption",color:"text.secondary",children:s})]})]});return r?C.jsxs(Oe.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${d.palette.divider}`,bgcolor:d.palette.background.paper,boxShadow:d.shadows[1]},children:[(e||t)&&C.jsxs(Oe.Box,{sx:{mb:2},children:[e&&C.jsx(Oe.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:e}),t&&C.jsx(Oe.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),p]}):p},pI=pg;exports.CodeplexAreaChart=fI;exports.CodeplexBarChart=VR;exports.CodeplexDonutChart=pg;exports.CodeplexGraficoPastelDonut=pI;exports.CodeplexLineChart=dR;exports.CodeplexPieChart=dI;
|
|
31
|
+
export default theme;`}function bt(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Un=e=>{if(!Number.isNaN(+e))return+e;const r=e.match(/\d*\.?\d+/g);if(!r)return 0;let t=0;for(let o=0;o<r.length;o+=1)t+=+r[o];return t};function Xn(e){Object.assign(e,{alpha(r,t){const o=this||e;return o.colorSpace?`oklch(from ${r} l c h / ${typeof t=="string"?`calc(${t})`:t})`:o.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof t=="string"?`calc(${t})`:t})`:Mt(r,Un(t))},lighten(r,t){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${r}, #fff ${bt(t)})`:yr(r,t)},darken(r,t){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${r}, #000 ${bt(t)})`:gr(r,t)}})}function Wr(e={},...r){const{breakpoints:t,mixins:o={},spacing:a,palette:i={},transitions:d={},typography:f={},shape:y,colorSpace:h,...v}=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.":Ne(20));const u=Yr({...i,colorSpace:h}),x=jn(e);let m=xe(x,{mixins:Pn(x.breakpoints,o),palette:u,shadows:zn.slice(),typography:In(u,f),transitions:qn(d),zIndex:{...Gn}});if(m=xe(m,v),m=r.reduce((p,s)=>xe(p,s),m),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],s=($,E)=>{let w;for(w in $){const j=$[w];if(p.includes(w)&&Object.keys(j).length>0){if(process.env.NODE_ENV!=="production"){const b=_n("",w);console.error([`MUI: The \`${E}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify($,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:j}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
32
|
+
`))}$[w]={}}}};Object.keys(m.components).forEach($=>{const E=m.components[$].styleOverrides;E&&$.startsWith("Mui")&&s(E,$)})}return m.unstable_sxConfig={...kr,...v?.unstable_sxConfig},m.unstable_sx=function(s){return Br({sx:s,theme:this})},m.toRuntimeSource=Yt,Xn(m),m}function Hn(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const Kn=[...Array(25)].map((e,r)=>{if(r===0)return"none";const t=Hn(r);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function qt(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Gt(e){return e==="dark"?Kn:[]}function Qn(e){const{palette:r={mode:"light"},opacity:t,overlays:o,colorSpace:a,...i}=e,d=Yr({...r,colorSpace:a});return{palette:d,opacity:{...qt(d.mode),...t},overlays:o||Gt(d.mode),...i}}function Jn(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 Zn=e=>[...[...Array(25)].map((r,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ea=e=>(r,t)=>{const o=e.rootSelector||":root",a=e.colorSchemeSelector;let i=a;if(a==="class"&&(i=".%s"),a==="data"&&(i="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(i=`[${a}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const d={};return Zn(e.cssVarPrefix).forEach(f=>{d[f]=t[f],delete t[f]}),i==="media"?{[o]:t,"@media (prefers-color-scheme: dark)":{[o]:d}}:i?{[i.replace("%s",r)]:d,[`${o}, ${i.replace("%s",r)}`]:t}:{[o]:{...t,...d}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(r))}`}else if(r){if(i==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[o]:t}};if(i)return i.replace("%s",String(r))}return o};function ra(e,r){r.forEach(t=>{e[t]||(e[t]={})})}function T(e,r,t){!e[r]&&t&&(e[r]=t)}function er(e){return typeof e!="string"||!e.startsWith("hsl")?e:Pt(e)}function Oe(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Ze(er(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
33
|
+
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function ta(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const we=e=>{try{return e()}catch{}},oa=(e="mui")=>Ye.unstable_createGetCssVar(e);function Dr(e,r,t,o,a){if(!t)return;t=t===!0?{}:t;const i=a==="dark"?"dark":"light";if(!o){r[a]=Qn({...t,palette:{mode:i,...t?.palette},colorSpace:e});return}const{palette:d,...f}=Wr({...o,palette:{mode:i,...t?.palette},colorSpace:e});return r[a]={...t,palette:d,opacity:{...qt(i),...t?.opacity},overlays:t?.overlays||Gt(i)},f}function na(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:o,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",nativeColor:d=!1,shouldSkipGeneratingVar:f=Jn,colorSchemeSelector:y=t.light&&t.dark?"media":void 0,rootSelector:h=":root",...v}=e,u=Object.keys(t)[0],x=o||(t.light&&u!=="light"?"light":u),m=oa(i),{[x]:p,light:s,dark:$,...E}=t,w={...E};let j=p;if((x==="dark"&&!("dark"in t)||x==="light"&&!("light"in t))&&(j=!0),!j)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${x}\` option is either missing or invalid.`:Ne(21,x));let b;d&&(b="oklch");const g=Dr(b,w,j,v,x);s&&!w.light&&Dr(b,w,s,void 0,"light"),$&&!w.dark&&Dr(b,w,$,void 0,"dark");let S={defaultColorScheme:x,...g,cssVarPrefix:i,colorSchemeSelector:y,rootSelector:h,getCssVar:m,colorSchemes:w,font:{...kn(g.typography),...g.font},spacing:ta(v.spacing)};Object.keys(S.colorSchemes).forEach(P=>{const l=S.colorSchemes[P].palette,A=W=>{const z=W.split("-"),N=z[1],I=z[2];return m(W,l[N][I])};l.mode==="light"&&(T(l.common,"background","#fff"),T(l.common,"onBackground","#000")),l.mode==="dark"&&(T(l.common,"background","#000"),T(l.common,"onBackground","#fff"));function k(W,z,N){if(b){let I;return W===ze&&(I=`transparent ${((1-N)*100).toFixed(0)}%`),W===Z&&(I=`#000 ${(N*100).toFixed(0)}%`),W===ee&&(I=`#fff ${(N*100).toFixed(0)}%`),`color-mix(in ${b}, ${z}, ${I})`}return W(z,N)}if(ra(l,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),l.mode==="light"){T(l.Alert,"errorColor",k(Z,l.error.light,.6)),T(l.Alert,"infoColor",k(Z,l.info.light,.6)),T(l.Alert,"successColor",k(Z,l.success.light,.6)),T(l.Alert,"warningColor",k(Z,l.warning.light,.6)),T(l.Alert,"errorFilledBg",A("palette-error-main")),T(l.Alert,"infoFilledBg",A("palette-info-main")),T(l.Alert,"successFilledBg",A("palette-success-main")),T(l.Alert,"warningFilledBg",A("palette-warning-main")),T(l.Alert,"errorFilledColor",we(()=>l.getContrastText(l.error.main))),T(l.Alert,"infoFilledColor",we(()=>l.getContrastText(l.info.main))),T(l.Alert,"successFilledColor",we(()=>l.getContrastText(l.success.main))),T(l.Alert,"warningFilledColor",we(()=>l.getContrastText(l.warning.main))),T(l.Alert,"errorStandardBg",k(ee,l.error.light,.9)),T(l.Alert,"infoStandardBg",k(ee,l.info.light,.9)),T(l.Alert,"successStandardBg",k(ee,l.success.light,.9)),T(l.Alert,"warningStandardBg",k(ee,l.warning.light,.9)),T(l.Alert,"errorIconColor",A("palette-error-main")),T(l.Alert,"infoIconColor",A("palette-info-main")),T(l.Alert,"successIconColor",A("palette-success-main")),T(l.Alert,"warningIconColor",A("palette-warning-main")),T(l.AppBar,"defaultBg",A("palette-grey-100")),T(l.Avatar,"defaultBg",A("palette-grey-400")),T(l.Button,"inheritContainedBg",A("palette-grey-300")),T(l.Button,"inheritContainedHoverBg",A("palette-grey-A100")),T(l.Chip,"defaultBorder",A("palette-grey-400")),T(l.Chip,"defaultAvatarColor",A("palette-grey-700")),T(l.Chip,"defaultIconColor",A("palette-grey-700")),T(l.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),T(l.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),T(l.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),T(l.LinearProgress,"primaryBg",k(ee,l.primary.main,.62)),T(l.LinearProgress,"secondaryBg",k(ee,l.secondary.main,.62)),T(l.LinearProgress,"errorBg",k(ee,l.error.main,.62)),T(l.LinearProgress,"infoBg",k(ee,l.info.main,.62)),T(l.LinearProgress,"successBg",k(ee,l.success.main,.62)),T(l.LinearProgress,"warningBg",k(ee,l.warning.main,.62)),T(l.Skeleton,"bg",b?k(ze,l.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),T(l.Slider,"primaryTrack",k(ee,l.primary.main,.62)),T(l.Slider,"secondaryTrack",k(ee,l.secondary.main,.62)),T(l.Slider,"errorTrack",k(ee,l.error.main,.62)),T(l.Slider,"infoTrack",k(ee,l.info.main,.62)),T(l.Slider,"successTrack",k(ee,l.success.main,.62)),T(l.Slider,"warningTrack",k(ee,l.warning.main,.62));const W=b?k(Z,l.background.default,.6825):pr(l.background.default,.8);T(l.SnackbarContent,"bg",W),T(l.SnackbarContent,"color",we(()=>b?zr.text.primary:l.getContrastText(W))),T(l.SpeedDialAction,"fabHoverBg",pr(l.background.paper,.15)),T(l.StepConnector,"border",A("palette-grey-400")),T(l.StepContent,"border",A("palette-grey-400")),T(l.Switch,"defaultColor",A("palette-common-white")),T(l.Switch,"defaultDisabledColor",A("palette-grey-100")),T(l.Switch,"primaryDisabledColor",k(ee,l.primary.main,.62)),T(l.Switch,"secondaryDisabledColor",k(ee,l.secondary.main,.62)),T(l.Switch,"errorDisabledColor",k(ee,l.error.main,.62)),T(l.Switch,"infoDisabledColor",k(ee,l.info.main,.62)),T(l.Switch,"successDisabledColor",k(ee,l.success.main,.62)),T(l.Switch,"warningDisabledColor",k(ee,l.warning.main,.62)),T(l.TableCell,"border",k(ee,k(ze,l.divider,1),.88)),T(l.Tooltip,"bg",k(ze,l.grey[700],.92))}if(l.mode==="dark"){T(l.Alert,"errorColor",k(ee,l.error.light,.6)),T(l.Alert,"infoColor",k(ee,l.info.light,.6)),T(l.Alert,"successColor",k(ee,l.success.light,.6)),T(l.Alert,"warningColor",k(ee,l.warning.light,.6)),T(l.Alert,"errorFilledBg",A("palette-error-dark")),T(l.Alert,"infoFilledBg",A("palette-info-dark")),T(l.Alert,"successFilledBg",A("palette-success-dark")),T(l.Alert,"warningFilledBg",A("palette-warning-dark")),T(l.Alert,"errorFilledColor",we(()=>l.getContrastText(l.error.dark))),T(l.Alert,"infoFilledColor",we(()=>l.getContrastText(l.info.dark))),T(l.Alert,"successFilledColor",we(()=>l.getContrastText(l.success.dark))),T(l.Alert,"warningFilledColor",we(()=>l.getContrastText(l.warning.dark))),T(l.Alert,"errorStandardBg",k(Z,l.error.light,.9)),T(l.Alert,"infoStandardBg",k(Z,l.info.light,.9)),T(l.Alert,"successStandardBg",k(Z,l.success.light,.9)),T(l.Alert,"warningStandardBg",k(Z,l.warning.light,.9)),T(l.Alert,"errorIconColor",A("palette-error-main")),T(l.Alert,"infoIconColor",A("palette-info-main")),T(l.Alert,"successIconColor",A("palette-success-main")),T(l.Alert,"warningIconColor",A("palette-warning-main")),T(l.AppBar,"defaultBg",A("palette-grey-900")),T(l.AppBar,"darkBg",A("palette-background-paper")),T(l.AppBar,"darkColor",A("palette-text-primary")),T(l.Avatar,"defaultBg",A("palette-grey-600")),T(l.Button,"inheritContainedBg",A("palette-grey-800")),T(l.Button,"inheritContainedHoverBg",A("palette-grey-700")),T(l.Chip,"defaultBorder",A("palette-grey-700")),T(l.Chip,"defaultAvatarColor",A("palette-grey-300")),T(l.Chip,"defaultIconColor",A("palette-grey-300")),T(l.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),T(l.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),T(l.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),T(l.LinearProgress,"primaryBg",k(Z,l.primary.main,.5)),T(l.LinearProgress,"secondaryBg",k(Z,l.secondary.main,.5)),T(l.LinearProgress,"errorBg",k(Z,l.error.main,.5)),T(l.LinearProgress,"infoBg",k(Z,l.info.main,.5)),T(l.LinearProgress,"successBg",k(Z,l.success.main,.5)),T(l.LinearProgress,"warningBg",k(Z,l.warning.main,.5)),T(l.Skeleton,"bg",b?k(ze,l.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),T(l.Slider,"primaryTrack",k(Z,l.primary.main,.5)),T(l.Slider,"secondaryTrack",k(Z,l.secondary.main,.5)),T(l.Slider,"errorTrack",k(Z,l.error.main,.5)),T(l.Slider,"infoTrack",k(Z,l.info.main,.5)),T(l.Slider,"successTrack",k(Z,l.success.main,.5)),T(l.Slider,"warningTrack",k(Z,l.warning.main,.5));const W=b?k(ee,l.background.default,.985):pr(l.background.default,.98);T(l.SnackbarContent,"bg",W),T(l.SnackbarContent,"color",we(()=>b?Nt.text.primary:l.getContrastText(W))),T(l.SpeedDialAction,"fabHoverBg",pr(l.background.paper,.15)),T(l.StepConnector,"border",A("palette-grey-600")),T(l.StepContent,"border",A("palette-grey-600")),T(l.Switch,"defaultColor",A("palette-grey-300")),T(l.Switch,"defaultDisabledColor",A("palette-grey-600")),T(l.Switch,"primaryDisabledColor",k(Z,l.primary.main,.55)),T(l.Switch,"secondaryDisabledColor",k(Z,l.secondary.main,.55)),T(l.Switch,"errorDisabledColor",k(Z,l.error.main,.55)),T(l.Switch,"infoDisabledColor",k(Z,l.info.main,.55)),T(l.Switch,"successDisabledColor",k(Z,l.success.main,.55)),T(l.Switch,"warningDisabledColor",k(Z,l.warning.main,.55)),T(l.TableCell,"border",k(Z,k(ze,l.divider,1),.68)),T(l.Tooltip,"bg",k(ze,l.grey[700],.92))}Oe(l.background,"default"),Oe(l.background,"paper"),Oe(l.common,"background"),Oe(l.common,"onBackground"),Oe(l,"divider"),Object.keys(l).forEach(W=>{const z=l[W];W!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&T(l[W],"mainChannel",Ze(er(z.main))),z.light&&T(l[W],"lightChannel",Ze(er(z.light))),z.dark&&T(l[W],"darkChannel",Ze(er(z.dark))),z.contrastText&&T(l[W],"contrastTextChannel",Ze(er(z.contrastText))),W==="text"&&(Oe(l[W],"primary"),Oe(l[W],"secondary")),W==="action"&&(z.active&&Oe(l[W],"active"),z.selected&&Oe(l[W],"selected")))})}),S=r.reduce((P,l)=>xe(P,l),S);const B={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:f,getSelector:ea(S),enableContrastVars:d},{vars:_,generateThemeVars:M,generateStyleSheets:Y}=En(S,B);return S.vars=_,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([P,l])=>{S[P]=l}),S.generateThemeVars=M,S.generateStyleSheets=Y,S.generateSpacing=function(){return Ye.createSpacing(v.spacing,Gr(this))},S.getColorSchemeSelector=Bn(y),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=f,S.unstable_sxConfig={...kr,...v?.unstable_sxConfig},S.unstable_sx=function(l){return Br({sx:l,theme:this})},S.toRuntimeSource=Yt,S}function vt(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:Yr({...t===!0?{}:t.palette,mode:r})})}function aa(e={},...r){const{palette:t,cssVariables:o=!1,colorSchemes:a=t?void 0:{light:!0},defaultColorScheme:i=t?.mode,...d}=e,f=i||"light",y=a?.[f],h={...a,...t?{[f]:{...typeof y!="boolean"&&y,palette:t}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Wr(e,...r);let v=t;"palette"in e||h[f]&&(h[f]!==!0?v=h[f].palette:f==="dark"&&(v={mode:"dark"}));const u=Wr({...e,palette:v},...r);return u.defaultColorScheme=f,u.colorSchemes=h,u.palette.mode==="light"&&(u.colorSchemes.light={...h.light!==!0&&h.light,palette:u.palette},vt(u,"dark",h.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:u.palette},vt(u,"light",h.light)),u}return!t&&!("light"in h)&&f==="light"&&(h.light=!0),na({...d,colorSchemes:h,defaultColorScheme:f,...typeof o!="boolean"&&o},...r)}const ia=aa();function pe(){const e=Ye.useTheme(ia);return process.env.NODE_ENV!=="production"&&Ae.useDebugValue(e),e[ro]||e}const Ft=Ae.createContext(void 0),Ut=()=>{const e=Ae.useContext(Ft);if(!e)throw new Error("Los subcomponentes de tooltip deben usarse dentro de CodeplexGraficoTooltip");return e},ir=({children:e})=>{const[r,t]=Ae.useState();return n.jsx(Ft.Provider,{value:{posicion:r,establecerPosicion:t},children:e})},Ke=Ae.forwardRef(({children:e},r)=>{const t=Ut(),o=Ae.useRef(null);return Ae.useEffect(()=>{const a=i=>{o.current&&!o.current.contains(i.target)&&t.establecerPosicion(void 0)};return document.addEventListener("mousedown",a),document.addEventListener("touchstart",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}},[t]),n.jsx("g",{ref:a=>{o.current=a,typeof r=="function"?r(a):r&&(r.current=a)},onPointerMove:a=>{a.pointerType==="mouse"&&t.establecerPosicion({x:a.clientX,y:a.clientY})},onPointerLeave:a=>{a.pointerType==="mouse"&&t.establecerPosicion(void 0)},onTouchStart:a=>{t.establecerPosicion({x:a.touches[0].clientX,y:a.touches[0].clientY})},children:e})});Ke.displayName="GraficoTooltipDisparador";const sr=({children:e})=>{const r=Ut(),t=pe(),o=Ae.useRef(null),a=typeof document<"u";if(!r.posicion||!a)return null;const i=o.current?.offsetWidth??0,d=r.posicion.x+i+10>window.innerWidth;return n.jsx(c.Portal,{children:n.jsx(c.Box,{ref:o,sx:{position:"fixed",top:r.posicion.y-20,left:d?r.posicion.x-i-10:r.posicion.x+10,zIndex:t.zIndex.tooltip,bgcolor:"background.paper",border:`1px solid ${t.palette.divider}`,borderRadius:1.5,px:1.5,py:1,boxShadow:t.shadows[3],pointerEvents:"none"},children:e})})},ce=()=>{const e=pe();return ne.useMemo(()=>{const r={primario:e.palette.primary.main,secundario:e.palette.secondary.main,exito:e.palette.success.main,error:e.palette.error.main,advertencia:e.palette.warning.main,info:e.palette.info.main},t={primario:e.palette.primary.contrastText,secundario:e.palette.secondary.contrastText,exito:e.palette.success.contrastText,error:e.palette.error.contrastText,advertencia:e.palette.warning.contrastText,info:e.palette.info.contrastText},o=[e.palette.primary.main,e.palette.secondary.main,e.palette.success.main,e.palette.info.main,e.palette.warning.main,e.palette.error.main];return{color:a=>a?r[a]:e.palette.primary.main,contraste:a=>a?t[a]:e.palette.primary.contrastText,serie:a=>o[(a%o.length+o.length)%o.length],cuadricula:e.palette.divider,ejeTexto:e.palette.text.secondary,superficie:e.palette.background.paper}},[e])},Re=({posiciones:e,orientacion:r="horizontal"})=>{const t=ce(),o=r==="horizontal";return n.jsx(n.Fragment,{children:e.map((a,i)=>n.jsx("g",{transform:o?`translate(0,${a})`:`translate(${a},0)`,children:n.jsx("line",{x1:0,y1:0,x2:o?100:0,y2:o?0:100,stroke:t.cuadricula,strokeDasharray:"6,5",strokeWidth:.5,vectorEffect:"non-scaling-stroke"})},i))})},sa={inicio:"translateX(0)",centro:"translateX(-50%)",fin:"translateX(-100%)"},cr=({marcas:e})=>{const r=ce();return n.jsx(n.Fragment,{children:e.map((t,o)=>n.jsx(c.Box,{sx:{position:"absolute",top:`${t.posicion}%`,left:0,width:"100%",pr:1,textAlign:"right",transform:"translateY(-50%)",fontSize:12,fontVariantNumeric:"tabular-nums",color:r.ejeTexto},children:t.texto},o))})},Ar=({marcas:e})=>{const r=ce();return n.jsx(n.Fragment,{children:e.map((t,o)=>n.jsx(c.Box,{sx:{position:"absolute",left:`${t.posicion}%`,top:"100%",transform:sa[t.anclaje??"centro"],fontSize:12,fontVariantNumeric:"tabular-nums",color:r.ejeTexto},children:t.texto},o))})},Xt=or.keyframes`
|
|
34
|
+
from { transform: translateX(-100%); }
|
|
35
|
+
to { transform: translateX(0); }
|
|
36
|
+
`,Ht=or.keyframes`
|
|
37
|
+
from { transform: scaleY(0); }
|
|
38
|
+
to { transform: scaleY(1); }
|
|
39
|
+
`;or.keyframes`
|
|
40
|
+
from { stroke-dashoffset: 1; }
|
|
41
|
+
to { stroke-dashoffset: 0; }
|
|
42
|
+
`;or.keyframes`
|
|
43
|
+
from { opacity: 0; }
|
|
44
|
+
to { opacity: 1; }
|
|
45
|
+
`;const ca=or.keyframes`
|
|
46
|
+
0% { transform: scale(1); opacity: 0.55; }
|
|
47
|
+
100% { transform: scale(2.6); opacity: 0; }
|
|
48
|
+
`,Se={arriba:0,derecha:8,abajo:25,izquierda:28},la={lineal:ue.curveLinear,suave:ue.curveMonotoneX,escalon:ue.curveStep,natural:ue.curveNatural},da=e=>e instanceof Date,$t=e=>e instanceof Date?e.toLocaleDateString("es-ES",{day:"2-digit",month:"short"}):String(e),pa=({series:e,datos:r,titulo:t,subtitulo:o,alto:a=288,curva:i="suave",color:d,gradiente:f=!1,mostrarValores:y=!1,pulsante:h=!1,conCuadricula:v=!0,conTooltip:u=!0,conPapel:x=!0})=>{const m=pe(),p=ce(),s=ne.useId().replace(/:/g,""),$=ne.useMemo(()=>e&&e.length>0?e:r&&r.length>0?[{nombre:t??"Serie",datos:r,color:d}]:[],[e,r,t,d]),E=$.some(b=>b.datos.some(g=>g.icono)),w=ne.useMemo(()=>{const b=$.flatMap(N=>N.datos.map(I=>I.etiqueta)),g=$.flatMap(N=>N.datos.map(I=>I.valor)),S=le.max(g)??0,B=oe.scaleLinear().domain([0,S===0?1:S]).range([100,0]),_=b[0];let M;if(_ instanceof Date){const N=b.filter(da),I=le.extent(N),U=oe.scaleTime().domain(I).range([0,100]);M=C=>U(C)}else if(typeof _=="number"){const N=b,I=oe.scaleLinear().domain([le.min(N)??0,le.max(N)??0]).range([0,100]);M=U=>I(U)}else{const N=b.map(U=>String(U)),I=oe.scalePoint().domain(N).range([0,100]);M=U=>I(String(U))??0}const Y=ue.line().x(N=>M(N.etiqueta)).y(N=>B(N.valor)).curve(la[i]),P=B.ticks(6).map(N=>({posicion:B(N),texto:String(N)})),l=B.ticks(6).map(N=>B(N)),A=$[0]?.datos??[],k=A.reduce((N,I,U,C)=>I.valor>C[N].valor?U:N,0),z=Array.from(new Set([0,k,A.length-1].filter(N=>N>=0))).map(N=>({posicion:M(A[N].etiqueta),texto:$t(A[N].etiqueta),anclaje:N===0?"inicio":N===A.length-1?"fin":"centro"}));return{escalaY:B,posicionX:M,generarLinea:Y,marcasY:P,marcasX:z,posicionesCuadricula:l}},[$,i]),j=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:a},children:[n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Se.arriba}px - ${Se.abajo}px)`,width:`${Se.izquierda}px`,transform:`translateY(${Se.arriba}px)`,overflow:"visible"},children:n.jsx(cr,{marcas:w.marcasY})}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Se.arriba}px - ${Se.abajo}px)`,width:`calc(100% - ${Se.izquierda}px - ${Se.derecha}px)`,transform:`translate(${Se.izquierda}px, ${Se.arriba}px)`,overflow:"visible"},children:[n.jsxs(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{width:"100%",height:"100%",overflow:"visible"},children:[f&&n.jsx("defs",{children:n.jsxs("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[n.jsx("stop",{offset:"0%",stopColor:p.color(d??"primario")}),n.jsx("stop",{offset:"100%",stopColor:p.color(d==="secundario"?"error":"secundario")})]})}),v&&n.jsx(Re,{posiciones:w.posicionesCuadricula}),$.map((b,g)=>{const S=w.generarLinea(b.datos),B=b.color?p.color(b.color):d?p.color(d):p.serie(g);return S?n.jsxs("g",{children:[n.jsx("path",{d:S,fill:"none",stroke:f?`url(#${s})`:B,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),u&&b.datos.map((_,M)=>{const Y=w.posicionX(_.etiqueta),P=w.escalaY(_.valor);return n.jsxs(ir,{children:[n.jsxs(Ke,{children:[n.jsx("path",{d:`M ${Y} ${P} l 0.0001 0`,stroke:B,strokeWidth:7,strokeLinecap:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),n.jsx("path",{d:`M ${Y} ${P} l 0.0001 0`,stroke:"transparent",strokeWidth:18,strokeLinecap:"round",fill:"none",vectorEffect:"non-scaling-stroke"})]}),n.jsxs(sr,{children:[n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:b.nombre}),n.jsxs(c.Typography,{variant:"body2",fontWeight:700,color:"text.primary",children:[$t(_.etiqueta)," ·"," ",_.valor.toLocaleString("es-ES")]})]})]},`${b.nombre}-${M}`)})]},b.nombre):null})]}),(y||E||h)&&n.jsxs(c.Box,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:[$.flatMap((b,g)=>b.datos.map((S,B)=>{const _=w.posicionX(S.etiqueta),M=w.escalaY(S.valor),Y=b.color?p.color(b.color):d?p.color(d):p.serie(g),P=`${b.nombre}-${B}`;return S.icono?n.jsx(c.Box,{sx:{position:"absolute",left:`${_}%`,top:`${M}%`,transform:"translate(-50%, -50%)",width:24,height:24,borderRadius:"50%",overflow:"hidden","& img, & svg":{width:"100%",height:"100%"}},children:S.icono},P):y?n.jsx(c.Box,{sx:{position:"absolute",left:`${_}%`,top:`${M}%`,transform:"translate(-50%, -50%)",minWidth:20,height:20,px:.5,borderRadius:"999px",bgcolor:"background.paper",border:`1px solid ${Y}`,color:"text.primary",fontSize:11,fontVariantNumeric:"tabular-nums",display:"flex",alignItems:"center",justifyContent:"center"},children:S.valor},P):null})),h&&$[0]?.datos.length>0&&(()=>{const b=$[0],g=b.datos[b.datos.length-1],S=w.posicionX(g.etiqueta),B=w.escalaY(g.valor),_=b.color?p.color(b.color):d?p.color(d):p.serie(0);return n.jsxs(c.Box,{sx:{position:"absolute",left:`${S}%`,top:`${B}%`,transform:"translate(-50%, -50%)",width:10,height:10},children:[n.jsx(c.Box,{sx:{position:"absolute",inset:0,borderRadius:"50%",bgcolor:_,animation:`${ca} 1.4s ease-out infinite`}}),n.jsx(c.Box,{sx:{position:"absolute",inset:"25%",borderRadius:"50%",bgcolor:_}})]})})()]}),n.jsx(c.Box,{sx:{position:"relative",mt:1},children:n.jsx(Ar,{marcas:w.marcasX})})]})]});return x?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${m.palette.divider}`,bgcolor:m.palette.background.paper,boxShadow:m.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),j]}):j},je={arriba:12,derecha:8,abajo:28},ua=({datos:e,titulo:r,subtitulo:t,alto:o=288,orientacion:a="horizontal",color:i,gradiente:d=!1,animado:f=!0,delgado:y=!1,mostrarValores:h=!1,conCuadricula:v=!0,conTooltip:u=!0,conPapel:x=!0})=>{const m=pe(),p=ce(),s=a==="horizontal",$=e.some(S=>S.icono),E=ne.useMemo(()=>{const S=e.map(A=>A.clave),B=le.max(e,A=>A.valor)??0,_=oe.scaleBand().domain(S).range([0,100]).padding(y?.6:.2),M=oe.scaleLinear().domain([0,B===0?1:B]).range(s?[0,100]:[100,0]),Y=M.ticks(5),P=Y.map(A=>M(A)),l=S.reduce((A,k)=>Math.max(A,k.length),1);return{claves:S,escalaCategoria:_,escalaValor:M,marcasValor:Y,posicionesCuadricula:P,margenCategoria:s?Math.min(l*7,120)+($?32:0):28}},[e,s,y,$]),w=(S,B)=>{const _=S.color?p.color(S.color):i?p.color(i):p.serie(B);return d?`linear-gradient(180deg, ${Ye.alpha(_,1)}, ${Ye.alpha(_,.55)})`:_},j=s?E.margenCategoria:je.derecha,b=e.map((S,B)=>{const _=E.escalaCategoria(S.clave)??0,M=E.escalaCategoria.bandwidth(),Y=s?E.escalaValor(S.valor):100-E.escalaValor(S.valor),P=n.jsx(c.Box,{sx:{position:"absolute",...s?{left:0,top:`${_}%`,width:`${Y}%`,height:`${M}%`,borderRadius:"0 6px 6px 0",transformOrigin:"left center",animation:f?`${Xt} 0.5s ease-out ${B*.06}s both`:"none"}:{left:`${_}%`,bottom:0,width:`${M}%`,height:`${Y}%`,borderRadius:"6px 6px 0 0",transformOrigin:"bottom center",animation:f?`${Ht} 0.5s ease-out ${B*.06}s both`:"none"},background:w(S,B)}});return u?n.jsx(c.Tooltip,{arrow:!0,placement:s?"right":"top",title:n.jsxs(c.Box,{children:[n.jsx(c.Typography,{variant:"caption",sx:{opacity:.7},children:S.clave}),n.jsx(c.Typography,{variant:"body2",fontWeight:700,children:S.valor.toLocaleString("es-ES")})]}),children:P},S.clave):n.jsx(c.Box,{children:P},S.clave)}),g=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:o},children:[n.jsxs(c.Box,{sx:{position:"absolute",inset:0,zIndex:1,height:`calc(100% - ${je.arriba}px - ${je.abajo}px)`,width:`calc(100% - ${j}px - ${je.derecha}px)`,transform:`translate(${j}px, ${je.arriba}px)`,overflow:"visible"},children:[v&&n.jsx(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{position:"absolute",inset:0,width:"100%",height:"100%",overflow:"visible"},children:n.jsx(Re,{posiciones:E.posicionesCuadricula,orientacion:s?"vertical":"horizontal"})}),b,h&&e.map(S=>{const _=(E.escalaCategoria(S.clave)??0)+E.escalaCategoria.bandwidth()/2,M=E.escalaValor(S.valor);return n.jsx(c.Box,{sx:{position:"absolute",color:p.ejeTexto,fontSize:12,fontWeight:500,fontVariantNumeric:"tabular-nums",pointerEvents:"none",whiteSpace:"nowrap",...s?{left:`calc(${M}% + 4px)`,top:`${_}%`,transform:"translateY(-50%)"}:{left:`${_}%`,top:`${M}%`,transform:"translate(-50%, -130%)"}},children:S.valor},`valor-${S.clave}`)}),E.marcasValor.map((S,B)=>n.jsx(c.Box,{sx:{position:"absolute",color:p.ejeTexto,fontSize:12,fontVariantNumeric:"tabular-nums",...s?{left:`${E.escalaValor(S)}%`,top:"100%",transform:"translateX(-50%)",pt:.5}:{top:`${E.escalaValor(S)}%`,right:"100%",transform:"translateY(-50%)",pr:1}},children:S},B))]}),n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${je.arriba}px - ${je.abajo}px)`,transform:`translateY(${je.arriba}px)`,overflow:"visible",...s?{width:`${j}px`}:{top:"auto",bottom:0,height:`${je.abajo}px`,transform:"none",left:`${j}px`,right:`${je.derecha}px`}},children:e.map(S=>{const B=(E.escalaCategoria(S.clave)??0)+E.escalaCategoria.bandwidth()/2;return n.jsxs(c.Box,{sx:{position:"absolute",display:"flex",alignItems:"center",gap:.75,color:p.ejeTexto,fontSize:12,whiteSpace:"nowrap",...s?{top:`${B}%`,left:S.icono?0:void 0,right:S.icono?void 0:m.spacing(1),transform:"translateY(-50%)"}:{left:`${B}%`,top:4,transform:"translateX(-50%)"}},children:[S.icono&&n.jsx(c.Box,{sx:{width:22,height:22,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%","& img, & svg":{width:"100%",height:"100%"}},children:S.icono}),S.clave]},S.clave)})})]});return x?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${m.palette.divider}`,bgcolor:m.palette.background.paper,boxShadow:m.shadows[1]},children:[(r||t)&&n.jsxs(c.Box,{sx:{mb:2},children:[r&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:r}),t&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),g]}):g},fa=({datos:e,variante:r="grueso",titulo:t,subtitulo:o,conPapel:a=!0})=>{const i=pe(),d=ce(),f=r==="grueso",y=n.jsx(c.Box,{sx:{display:"flex",gap:.4,width:"100%",alignItems:"stretch"},children:e.map((h,v)=>{const u=h.color?d.color(h.color):d.serie(v);return n.jsxs(c.Box,{sx:{flexGrow:Math.max(h.valor,.001),flexBasis:0,minWidth:0},children:[n.jsx(c.Box,{sx:{position:"relative",height:f?54:12,borderRadius:1,background:`linear-gradient(180deg, ${u}, ${u}cc)`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:f&&n.jsxs(n.Fragment,{children:[n.jsx(c.Typography,{variant:"caption",sx:{color:i.palette.common.white,fontWeight:600,lineHeight:1.2,whiteSpace:"nowrap"},children:h.clave}),n.jsx(c.Typography,{sx:{color:i.palette.common.white,fontSize:12,fontWeight:700,fontFamily:"monospace"},children:h.valor})]})}),!f&&n.jsx(c.Typography,{sx:{mt:1,fontSize:12,color:d.ejeTexto,textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:h.clave})]},h.clave)})});return a?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${i.palette.divider}`,bgcolor:i.palette.background.paper,boxShadow:i.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),y]}):y},_e={arriba:8,derecha:8,abajo:24},ha=({categorias:e,series:r,orientacion:t="vertical",titulo:o,subtitulo:a,alto:i=288,conCuadricula:d=!0,conLeyenda:f=!0,conPapel:y=!0})=>{const h=pe(),v=ce(),u=t==="horizontal",x=(w,j)=>w.color?v.color(w.color):v.serie(j),m=ne.useMemo(()=>{const w=e.map((A,k)=>r.reduce((W,z)=>W+(z.valores[k]??0),0)),j=le.max(w)??0,b=oe.scaleBand().domain(e).range([0,100]).padding(.3),g=oe.scaleLinear().domain([0,j===0?1:j]).range(u?[0,100]:[100,0]),S=e.map(()=>0),B=[];r.forEach((A,k)=>{e.forEach((W,z)=>{const N=A.valores[z]??0,I=S[z],U=I+N;S[z]=U,B.push({indiceSerie:k,indiceCategoria:z,clave:W,nombre:A.nombre,valor:N,relleno:x(A,k),inicio:g(I),fin:g(U),bandaInicio:b(W)??0,bandaGrosor:b.bandwidth()})})});const _=g.ticks(5),M=_.map(A=>g(A)),Y=_.map(A=>({posicion:g(A),texto:String(A)})),P=e.map(A=>({posicion:(b(A)??0)+b.bandwidth()/2,texto:A})),l=e.reduce((A,k)=>Math.max(A,k.length),1);return{segmentos:B,posicionesCuadricula:M,marcasValorEje:Y,marcasCategoria:P,margenCategoria:u?Math.min(l*7,110):28}},[e,r,u]),p=m.margenCategoria,s=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:i},children:[n.jsxs(c.Box,{sx:{position:"absolute",inset:0,zIndex:1,height:`calc(100% - ${_e.arriba}px - ${_e.abajo}px)`,width:`calc(100% - ${p}px - ${_e.derecha}px)`,transform:`translate(${p}px, ${_e.arriba}px)`,overflow:"visible"},children:[d&&n.jsx(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{position:"absolute",inset:0,width:"100%",height:"100%",overflow:"visible"},children:n.jsx(Re,{posiciones:m.posicionesCuadricula,orientacion:u?"vertical":"horizontal"})}),m.segmentos.map(w=>{const j=Math.abs(w.fin-w.inicio);return n.jsx(c.Tooltip,{arrow:!0,placement:u?"top":"right",title:n.jsxs(c.Box,{children:[n.jsxs(c.Typography,{variant:"caption",sx:{opacity:.7},children:[w.nombre," · ",w.clave]}),n.jsx(c.Typography,{variant:"body2",fontWeight:700,children:w.valor.toLocaleString("es-ES")})]}),children:n.jsx(c.Box,{sx:{position:"absolute",background:w.relleno,...u?{left:`${Math.min(w.inicio,w.fin)}%`,top:`${w.bandaInicio}%`,width:`${j}%`,height:`${w.bandaGrosor}%`}:{left:`${w.bandaInicio}%`,top:`${Math.min(w.inicio,w.fin)}%`,width:`${w.bandaGrosor}%`,height:`${j}%`}}})},`${w.indiceSerie}-${w.indiceCategoria}`)})]}),n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${_e.arriba}px - ${_e.abajo}px)`,width:`${p}px`,transform:`translateY(${_e.arriba}px)`,overflow:"visible"},children:n.jsx(cr,{marcas:u?m.marcasCategoria:m.marcasValorEje})}),n.jsx(c.Box,{sx:{position:"absolute",bottom:0,left:`${p}px`,right:`${_e.derecha}px`,height:`${_e.abajo}px`,overflow:"visible"},children:n.jsx(Ar,{marcas:u?m.marcasValorEje:m.marcasCategoria})})]}),$=f&&n.jsx(c.Stack,{direction:"row",flexWrap:"wrap",gap:1.5,sx:{mb:1.5},children:r.map((w,j)=>n.jsxs(c.Stack,{direction:"row",spacing:.75,alignItems:"center",children:[n.jsx(c.Box,{sx:{width:10,height:10,borderRadius:"3px",bgcolor:x(w,j),flexShrink:0}}),n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:w.nombre})]},w.nombre))}),E=n.jsxs(n.Fragment,{children:[$,s]});return y?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${h.palette.divider}`,bgcolor:h.palette.background.paper,boxShadow:h.shadows[1]},children:[(o||a)&&n.jsxs(c.Box,{sx:{mb:2},children:[o&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:o}),a&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:a})]}),E]}):E},ve={arriba:12,derecha:8,abajo:28,izquierda:28},wt=1.5,ma=({categorias:e,series:r,orientacion:t="vertical",titulo:o,subtitulo:a,alto:i=288,conCuadricula:d=!0,conLeyenda:f=!0,conPapel:y=!0})=>{const h=pe(),v=ce(),u=t==="horizontal",x=ne.useMemo(()=>{const w=r.length===0?1:r.length,j=oe.scaleBand().domain(e).range([0,100]).padding(.3),b=le.max(r.flatMap(P=>P.valores))??0,g=oe.scaleLinear().domain([0,b===0?1:b]).range(u?[0,100]:[100,0]),S=g.ticks(6),B=S.map(P=>g(P)),_=j.bandwidth(),M=(_-wt*(w-1))/w,Y=e.reduce((P,l)=>Math.max(P,l.length),1);return{escalaCategoria:j,escalaValor:g,marcasValor:S,posicionesCuadricula:B,grosorGrupo:_,grosorSubBarra:M,totalSeries:w,margenCategoria:u?Math.min(Y*7,120):ve.izquierda}},[e,r,u]),m=(w,j)=>w.color?v.color(w.color):v.serie(j),p=u?x.margenCategoria:ve.izquierda,s=e.flatMap((w,j)=>{const b=x.escalaCategoria(w)??0;return r.map((g,S)=>{const B=g.valores[j]??0,_=S*(x.grosorSubBarra+wt),M=u?x.escalaValor(B):100-x.escalaValor(B),Y=n.jsx(c.Box,{sx:{position:"absolute",background:m(g,S),...u?{left:0,top:`${b+_}%`,width:`${M}%`,height:`${x.grosorSubBarra}%`,borderRadius:"0 4px 4px 0"}:{bottom:0,left:`${b+_}%`,width:`${x.grosorSubBarra}%`,height:`${M}%`,borderRadius:"4px 4px 0 0"}}});return n.jsx(c.Tooltip,{arrow:!0,placement:u?"right":"top",title:n.jsxs(c.Box,{children:[n.jsxs(c.Typography,{variant:"caption",sx:{opacity:.7},children:[g.nombre," · ",w]}),n.jsx(c.Typography,{variant:"body2",fontWeight:700,children:B.toLocaleString("es-ES")})]}),children:Y},`${w}-${g.nombre}`)})}),$=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:i},children:[n.jsxs(c.Box,{sx:{position:"absolute",inset:0,zIndex:1,height:`calc(100% - ${ve.arriba}px - ${ve.abajo}px)`,width:`calc(100% - ${p}px - ${ve.derecha}px)`,transform:`translate(${p}px, ${ve.arriba}px)`,overflow:"visible"},children:[d&&n.jsx(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{position:"absolute",inset:0,width:"100%",height:"100%",overflow:"visible"},children:n.jsx(Re,{posiciones:x.posicionesCuadricula,orientacion:u?"vertical":"horizontal"})}),s,x.marcasValor.map((w,j)=>n.jsx(c.Box,{sx:{position:"absolute",color:v.ejeTexto,fontSize:12,fontVariantNumeric:"tabular-nums",...u?{left:`${x.escalaValor(w)}%`,top:"100%",transform:"translateX(-50%)",pt:.5}:{top:`${x.escalaValor(w)}%`,right:"100%",transform:"translateY(-50%)",pr:1}},children:w},j))]}),n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${ve.arriba}px - ${ve.abajo}px)`,transform:`translateY(${ve.arriba}px)`,overflow:"visible",...u?{width:`${p}px`}:{top:"auto",bottom:0,height:`${ve.abajo}px`,transform:"none",left:`${p}px`,right:`${ve.derecha}px`}},children:e.map(w=>{const j=(x.escalaCategoria(w)??0)+x.escalaCategoria.bandwidth()/2;return n.jsx(c.Box,{sx:{position:"absolute",color:v.ejeTexto,fontSize:12,whiteSpace:"nowrap",...u?{top:`${j}%`,right:h.spacing(1),transform:"translateY(-50%)"}:{left:`${j}%`,top:4,transform:"translateX(-50%)"}},children:w},w)})})]}),E=n.jsxs(c.Box,{children:[f&&n.jsx(c.Stack,{direction:"row",spacing:2,flexWrap:"wrap",sx:{mb:1.5},children:r.map((w,j)=>n.jsxs(c.Stack,{direction:"row",spacing:.75,alignItems:"center",children:[n.jsx(c.Box,{sx:{width:10,height:10,borderRadius:"3px",bgcolor:m(w,j)}}),n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:w.nombre})]},w.nombre))}),$]});return y?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${h.palette.divider}`,bgcolor:h.palette.background.paper,boxShadow:h.shadows[1]},children:[(o||a)&&n.jsxs(c.Box,{sx:{mb:2},children:[o&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:o}),a&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:a})]}),E]}):E},xa=({datos:e,indiceDestacado:r=0,titulo:t,subtitulo:o,conPapel:a=!0})=>{const i=pe(),d=ce(),f=e.reduce((h,v)=>Math.max(h,v.valor),0),y=n.jsx(c.Box,{sx:{display:"flex",flexDirection:"column",gap:2,width:"100%"},children:e.map((h,v)=>{const u=v===r,x=f===0?0:h.valor/f*100,m=u?`linear-gradient(90deg, ${d.color("exito")}, ${d.color("info")})`:`linear-gradient(90deg, ${d.ejeTexto}, ${d.cuadricula})`;return n.jsxs(c.Box,{children:[n.jsx(c.Typography,{variant:"body2",sx:{mb:.75,fontWeight:u?700:500,color:u?d.color("exito"):d.ejeTexto},children:h.clave}),n.jsxs(c.Box,{sx:{display:"flex",alignItems:"center",gap:1.25},children:[n.jsx(c.Box,{sx:{position:"relative",flexGrow:1,height:12,borderRadius:1,overflow:"hidden",bgcolor:i.palette.action.hover},children:n.jsx(c.Box,{sx:{position:"absolute",insetBlock:0,left:0,width:`${x}%`,borderRadius:1,background:m,transformOrigin:"left center",animation:`${Xt} 0.6s ease-out ${v*.08}s both`}})}),n.jsx(c.Typography,{variant:"body2",sx:{fontVariantNumeric:"tabular-nums",fontWeight:u?700:500,color:u?d.color("info"):d.ejeTexto,minWidth:40,textAlign:"right"},children:h.valor})]})]},h.clave)})});return a?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${i.palette.divider}`,bgcolor:i.palette.background.paper,boxShadow:i.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),y]}):y},Te={arriba:12,derecha:8,abajo:44,izquierda:28},ga=({datos:e,colorPositivo:r="exito",colorNegativo:t="error",titulo:o,subtitulo:a,alto:i=288,conCuadricula:d=!0,conTooltip:f=!0,conPapel:y=!0})=>{const h=pe(),v=ce(),u=ne.useMemo(()=>{const p=e.map(B=>B.clave),s=e.map(B=>B.valor),$=Math.min(0,le.min(s)??0),E=Math.max(0,le.max(s)??0),w=oe.scaleBand().domain(p).range([0,100]).padding(.3),j=oe.scaleLinear().domain([$,E===$?$+1:E]).range([100,0]),b=j(0),g=j.ticks(6),S=g.map(B=>j(B));return{claves:p,escalaCategoria:w,escalaValor:j,cero:b,marcasValor:g,posicionesCuadricula:S}},[e]),x=p=>{const s=v.color(p?r:t);return`linear-gradient(180deg, ${s}, ${s}bb)`},m=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:i},children:[n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Te.arriba}px - ${Te.abajo}px)`,width:`${Te.izquierda}px`,transform:`translateY(${Te.arriba}px)`,overflow:"visible"},children:u.marcasValor.map((p,s)=>n.jsx(c.Box,{sx:{position:"absolute",top:`${u.escalaValor(p)}%`,left:0,width:"100%",pr:1,textAlign:"right",transform:"translateY(-50%)",fontSize:12,fontVariantNumeric:"tabular-nums",color:v.ejeTexto},children:p},s))}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Te.arriba}px - ${Te.abajo}px)`,width:`calc(100% - ${Te.izquierda}px - ${Te.derecha}px)`,transform:`translate(${Te.izquierda}px, ${Te.arriba}px)`,overflow:"visible"},children:[d&&n.jsx(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{position:"absolute",inset:0,width:"100%",height:"100%",overflow:"visible"},children:n.jsx(Re,{posiciones:u.posicionesCuadricula,orientacion:"horizontal"})}),e.map((p,s)=>{const $=p.valor>=0,E=u.escalaCategoria(p.clave)??0,w=u.escalaCategoria.bandwidth(),j=u.escalaValor(p.valor),b=$?j:u.cero,g=Math.abs(j-u.cero),S=n.jsx(c.Box,{sx:{position:"absolute",left:`${E}%`,top:`${b}%`,width:`${w}%`,height:`${g}%`,borderRadius:$?"4px 4px 0 0":"0 0 4px 4px",background:x($),transformOrigin:$?"bottom center":"top center",animation:`${Ht} 0.5s ease-out ${s*.05}s both`}});return f?n.jsx(c.Tooltip,{arrow:!0,placement:"top",title:n.jsxs(c.Box,{children:[n.jsx(c.Typography,{variant:"caption",sx:{opacity:.7},children:p.clave}),n.jsx(c.Typography,{variant:"body2",fontWeight:700,children:p.valor.toLocaleString("es-ES")})]}),children:S},p.clave):n.jsx(c.Box,{children:S},p.clave)}),n.jsx(c.Box,{sx:{position:"absolute",left:0,right:0,top:`${u.cero}%`,borderTop:`1.5px solid ${v.ejeTexto}`,opacity:.6,pointerEvents:"none"}}),e.map(p=>{const s=(u.escalaCategoria(p.clave)??0)+u.escalaCategoria.bandwidth()/2;return n.jsx(c.Box,{sx:{position:"absolute",left:`${s}%`,top:"100%",transform:"rotate(45deg) translate(4px, 8px)",transformOrigin:"left top",fontSize:12,whiteSpace:"nowrap",color:v.ejeTexto},children:p.clave},`etq-${p.clave}`)})]})]});return y?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${h.palette.divider}`,bgcolor:h.palette.background.paper,boxShadow:h.shadows[1]},children:[(o||a)&&n.jsxs(c.Box,{sx:{mb:2},children:[o&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:o}),a&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:a})]}),m]}):m},he={arriba:8,derecha:30,abajo:28,izquierda:30},ya=({datos:e,colorBarra:r="secundario",colorLinea:t="error",titulo:o,subtitulo:a,alto:i=288,conPapel:d=!0})=>{const f=pe(),y=ce(),h=y.color(r),v=y.color(t),u=ne.useMemo(()=>{const m=e.map(g=>g.clave),p=oe.scaleBand().domain(m).range([0,100]).padding(.3),s=le.max(e,g=>g.barra)??0,$=oe.scaleLinear().domain([0,s===0?1:s]).range([100,0]),E=le.min(e,g=>g.linea)??0,w=le.max(e,g=>g.linea)??0,j=oe.scaleLinear().domain([E,w===E?E+1:w]).range([100,0]),b=ue.line().x(g=>(p(g.clave)??0)+p.bandwidth()/2).y(g=>j(g.linea)).curve(ue.curveMonotoneX);return{escalaX:p,escalaBarra:$,escalaLinea:j,trazo:b(e)??"",marcasBarra:$.ticks(6),marcasLinea:j.ticks(6)}},[e]),x=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:i},children:[n.jsx(c.Box,{sx:{position:"absolute",height:`calc(100% - ${he.arriba}px - ${he.abajo}px)`,width:`${he.izquierda}px`,left:0,transform:`translateY(${he.arriba}px)`,overflow:"visible"},children:u.marcasBarra.map((m,p)=>n.jsx(c.Box,{sx:{position:"absolute",top:`${u.escalaBarra(m)}%`,right:0,width:"100%",pr:.5,textAlign:"right",transform:"translateY(-50%)",fontSize:11,fontVariantNumeric:"tabular-nums",color:h},children:m},p))}),n.jsx(c.Box,{sx:{position:"absolute",height:`calc(100% - ${he.arriba}px - ${he.abajo}px)`,width:`${he.derecha}px`,right:0,transform:`translateY(${he.arriba}px)`,overflow:"visible"},children:u.marcasLinea.map((m,p)=>n.jsx(c.Box,{sx:{position:"absolute",top:`${u.escalaLinea(m)}%`,left:0,width:"100%",pl:.5,transform:"translateY(-50%)",fontSize:11,fontVariantNumeric:"tabular-nums",color:v},children:m},p))}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${he.arriba}px - ${he.abajo}px)`,width:`calc(100% - ${he.izquierda}px - ${he.derecha}px)`,transform:`translate(${he.izquierda}px, ${he.arriba}px)`,overflow:"visible"},children:[e.map(m=>{const p=u.escalaX(m.clave)??0,s=u.escalaX.bandwidth(),$=100-u.escalaBarra(m.barra);return n.jsx(c.Box,{sx:{position:"absolute",left:`${p}%`,bottom:0,width:`${s}%`,height:`${$}%`,borderRadius:"6px 6px 0 0",background:`linear-gradient(180deg, ${h}, ${h}99)`}},m.clave)}),n.jsx(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{position:"absolute",inset:0,width:"100%",height:"100%",overflow:"visible",pointerEvents:"none"},children:n.jsx("path",{d:u.trazo,fill:"none",stroke:v,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"})}),n.jsx(c.Box,{sx:{position:"absolute",inset:0},children:e.map(m=>{const p=(u.escalaX(m.clave)??0)+u.escalaX.bandwidth()/2;return n.jsx(c.Box,{sx:{position:"absolute",left:`${p}%`,top:"100%",transform:"translateX(-50%)",pt:.5,fontSize:11,color:y.ejeTexto,whiteSpace:"nowrap"},children:m.clave},m.clave)})})]})]});return d?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${f.palette.divider}`,bgcolor:f.palette.background.paper,boxShadow:f.shadows[1]},children:[(o||a)&&n.jsxs(c.Box,{sx:{mb:2},children:[o&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:o}),a&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:a})]}),x]}):x},Ce={arriba:8,derecha:8,abajo:25,izquierda:32},ba=({datos:e,titulo:r,subtitulo:t,alto:o=288,conCuadricula:a=!0,conTooltip:i=!0,conPapel:d=!0})=>{const f=pe(),y=ce(),h=ne.useMemo(()=>{const u=e.map(j=>j.etiqueta),x=le.min(e,j=>j.minimo)??0,m=le.max(e,j=>j.maximo)??0,p=(m-x)*.05,s=oe.scaleBand().domain(u).range([0,100]).padding(.35),$=oe.scaleLinear().domain([x-p,m+p]).range([100,0]),E=$.ticks(6).map(j=>({posicion:$(j),texto:String(j)})),w=$.ticks(6).map(j=>$(j));return{escalaX:s,escalaY:$,marcasY:E,posicionesCuadricula:w}},[e]),v=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:o},children:[n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Ce.arriba}px - ${Ce.abajo}px)`,width:`${Ce.izquierda}px`,transform:`translateY(${Ce.arriba}px)`,overflow:"visible"},children:n.jsx(cr,{marcas:h.marcasY})}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Ce.arriba}px - ${Ce.abajo}px)`,width:`calc(100% - ${Ce.izquierda}px - ${Ce.derecha}px)`,transform:`translate(${Ce.izquierda}px, ${Ce.arriba}px)`,overflow:"visible"},children:[a&&n.jsx(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{position:"absolute",inset:0,width:"100%",height:"100%",overflow:"visible"},children:n.jsx(Re,{posiciones:h.posicionesCuadricula})}),e.map(u=>{const x=h.escalaX(u.etiqueta)??0,m=h.escalaX.bandwidth(),s=u.cierre>=u.apertura?y.color("exito"):y.color("error"),$=h.escalaY(u.maximo),E=h.escalaY(u.minimo)-$,w=h.escalaY(Math.max(u.apertura,u.cierre)),j=h.escalaY(Math.min(u.apertura,u.cierre))-w,b=n.jsxs(c.Box,{sx:{position:"absolute",left:`${x}%`,width:`${m}%`,top:0,height:"100%"},children:[n.jsx(c.Box,{sx:{position:"absolute",left:"50%",transform:"translateX(-50%)",width:"2px",top:`${$}%`,height:`${E}%`,backgroundColor:s}}),n.jsx(c.Box,{sx:{position:"absolute",left:0,width:"100%",top:`${w}%`,height:`${j}%`,minHeight:"1px",borderRadius:"2px",backgroundColor:s}})]});return i?n.jsx(c.Tooltip,{arrow:!0,placement:"top",title:n.jsxs(c.Box,{children:[n.jsx(c.Typography,{variant:"caption",sx:{opacity:.7},children:u.etiqueta}),n.jsxs(c.Typography,{variant:"body2",fontWeight:700,children:["A ",u.apertura," · M ",u.maximo," · m ",u.minimo," · C"," ",u.cierre]})]}),children:b},u.etiqueta):n.jsx(c.Box,{children:b},u.etiqueta)})]})]});return d?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${f.palette.divider}`,bgcolor:f.palette.background.paper,boxShadow:f.shadows[1]},children:[(r||t)&&n.jsxs(c.Box,{sx:{mb:2},children:[r&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:r}),t&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),v]}):v},We={arriba:10,derecha:36,abajo:24},va=({datos:e,color:r="primario",titulo:t,subtitulo:o,alto:a=288,conCuadricula:i=!0,conTooltip:d=!0,conPapel:f=!0})=>{const y=pe(),h=ce(),v=ne.useMemo(()=>{const m=e.map(S=>S.clave),p=le.max(e,S=>S.valor)??0,s=oe.scaleBand().domain(m).range([0,100]).padding(.5),$=oe.scaleLinear().domain([0,p===0?1:p]).range([0,100]),E=e.map(S=>({dato:S,x:$(S.valor),y:(s(S.clave)??0)+s.bandwidth()/2})),w=E.map((S,B)=>`${B===0?"M":"L"} ${S.x} ${S.y}`).join(" "),j=$.ticks(5),b=j.map(S=>$(S)),g=m.reduce((S,B)=>Math.max(S,B.length),1);return{puntos:E,trazo:w,marcasValor:j,escalaValor:$,posicionesCuadricula:b,margenIzquierda:Math.min(g*7,120)}},[e]),u=h.color(r),x=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:a},children:[n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${We.arriba}px - ${We.abajo}px)`,width:`${v.margenIzquierda}px`,transform:`translateY(${We.arriba}px)`,overflow:"visible"},children:v.puntos.map(m=>n.jsx(c.Box,{sx:{position:"absolute",top:`${m.y}%`,right:y.spacing(1),transform:"translateY(-50%)",fontSize:12,whiteSpace:"nowrap",color:h.ejeTexto},children:m.dato.clave},m.dato.clave))}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${We.arriba}px - ${We.abajo}px)`,width:`calc(100% - ${v.margenIzquierda}px - ${We.derecha}px)`,transform:`translate(${v.margenIzquierda}px, ${We.arriba}px)`,overflow:"visible"},children:[n.jsxs(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{width:"100%",height:"100%",overflow:"visible"},children:[i&&n.jsx(Re,{posiciones:v.posicionesCuadricula,orientacion:"vertical"}),n.jsx("path",{d:v.trazo,fill:"none",stroke:u,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),v.puntos.map(m=>{const p=m.dato.color?h.color(m.dato.color):u,s=n.jsxs(n.Fragment,{children:[n.jsx("path",{d:`M ${m.x} ${m.y} l 0.0001 0`,stroke:p,strokeWidth:9,strokeLinecap:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),n.jsx("path",{d:`M ${m.x} ${m.y} l 0.0001 0`,stroke:"transparent",strokeWidth:18,strokeLinecap:"round",fill:"none",vectorEffect:"non-scaling-stroke"})]});return d?n.jsxs(ir,{children:[n.jsx(Ke,{children:s}),n.jsxs(sr,{children:[n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:m.dato.clave}),n.jsx(c.Typography,{variant:"body2",fontWeight:700,color:"text.primary",children:m.dato.valor.toLocaleString("es-ES")})]})]},m.dato.clave):n.jsx("g",{children:s},m.dato.clave)})]}),v.puntos.map(m=>n.jsx(c.Box,{sx:{position:"absolute",left:`${m.x}%`,top:`${m.y}%`,transform:"translate(8px, -50%)",fontSize:12,fontWeight:500,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",pointerEvents:"none",color:h.ejeTexto},children:m.dato.valor},`valor-${m.dato.clave}`)),v.marcasValor.map((m,p)=>n.jsx(c.Box,{sx:{position:"absolute",left:`${v.escalaValor(m)}%`,top:"100%",transform:"translateX(-50%)",pt:.5,fontSize:12,fontVariantNumeric:"tabular-nums",color:h.ejeTexto},children:m},p))]})]});return f?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${y.palette.divider}`,bgcolor:y.palette.background.paper,boxShadow:y.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),x]}):x},St=20,ge=100,$a=({datos:e,variante:r="dona",titulo:t,subtitulo:o,alto:a=288,valorCentral:i,etiquetaCentral:d,etiquetasEnPorciones:f=!1,gradiente:y=!1,conTooltip:h=!0,conLeyenda:v=!0,conPapel:u=!0})=>{const x=pe(),m=ce(),p=ne.useId().replace(/:/g,""),s=r==="media-dona",$=ne.useMemo(()=>{const b=ue.pie().value(P=>P.valor).sort(null).startAngle(s?-Math.PI/2:0).endAngle(s?Math.PI/2:2*Math.PI),g=r==="pastel"?0:ge*.6,S=ue.arc().innerRadius(g).outerRadius(ge).cornerRadius(r==="pastel"?0:3).padAngle(.012),B=r==="pastel"?ge*.62:(g+ge)/2,_=ue.arc().innerRadius(B).outerRadius(B),M=e.reduce((P,l)=>P+l.valor,0);return{segmentos:b(e).map(P=>({arco:P,ruta:S(P)??"",centroide:_.centroid(P),angulo:(P.endAngle-P.startAngle)*180/Math.PI,porcentaje:M===0?0:P.data.valor/M*100})),total:M}},[e,r,s]),E=(b,g)=>b.color?m.color(b.color):m.serie(g),w=s?`-${ge+16} -${ge+16} ${2*ge+32} ${ge+24}`:`-${ge+16} -${ge+16} ${2*ge+32} ${2*ge+32}`,j=n.jsxs(c.Stack,{direction:{xs:"column",sm:v?"row":"column"},spacing:2,alignItems:"center",justifyContent:"center",sx:{width:"100%",height:a},children:[n.jsxs(c.Box,{sx:{position:"relative",height:"100%",flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[n.jsxs(c.Box,{component:"svg",viewBox:w,sx:{width:"100%",height:"100%",maxHeight:a,overflow:"visible"},children:[y&&n.jsx("defs",{children:$.segmentos.map((b,g)=>{const S=E(b.arco.data,g);return n.jsxs("linearGradient",{id:`${p}-${g}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[n.jsx("stop",{offset:"0%",stopColor:S,stopOpacity:1}),n.jsx("stop",{offset:"100%",stopColor:S,stopOpacity:.55})]},`grad-${b.arco.data.clave}`)})}),$.segmentos.map((b,g)=>{const S=y?`url(#${p}-${g})`:E(b.arco.data,g),B=n.jsx("path",{d:b.ruta,fill:S,stroke:m.superficie,strokeWidth:1.5});return h?n.jsxs(ir,{children:[n.jsx(Ke,{children:B}),n.jsxs(sr,{children:[n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:b.arco.data.clave}),n.jsxs(c.Typography,{variant:"body2",fontWeight:700,color:"text.primary",children:[b.arco.data.valor.toLocaleString("es-ES")," ·"," ",b.porcentaje.toFixed(1),"%"]})]})]},b.arco.data.clave):n.jsx("g",{children:B},b.arco.data.clave)}),f&&$.segmentos.map(b=>{if(b.angulo<=St)return null;const[g,S]=b.centroide;return n.jsxs("text",{transform:`translate(${g},${S})`,textAnchor:"middle",pointerEvents:"none",fill:x.palette.common.white,fontSize:8,fontWeight:600,children:[n.jsx("tspan",{x:0,y:"-0.3em",children:b.arco.data.clave}),n.jsx("tspan",{x:0,y:"1em",fontWeight:400,fillOpacity:.85,children:b.arco.data.valor.toLocaleString("es-ES")})]},`etq-${b.arco.data.clave}`)}),$.segmentos.map(b=>{const g=b.arco.data.icono;if(!g||b.angulo<=St)return null;const[S,B]=b.centroide,_=30;return n.jsx("foreignObject",{x:S-_/2,y:B-_/2,width:_,height:_,pointerEvents:"none",children:n.jsx(c.Box,{sx:{width:"100%",height:"100%",borderRadius:"50%",overflow:"hidden","& img, & svg":{width:"100%",height:"100%"}},children:g})},`ico-${b.arco.data.clave}`)})]}),(i!==void 0||d)&&r!=="pastel"&&n.jsxs(c.Box,{sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pointerEvents:"none",transform:s?"translateY(28%)":"none"},children:[i!==void 0&&n.jsx(c.Typography,{variant:"h5",fontWeight:800,color:"text.primary",children:i}),d&&n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:d})]})]}),v&&n.jsx(c.Stack,{spacing:1,sx:{minWidth:120},children:e.map((b,g)=>n.jsxs(c.Stack,{direction:"row",spacing:1,alignItems:"center",children:[n.jsx(c.Box,{sx:{width:10,height:10,borderRadius:"3px",bgcolor:E(b,g),flexShrink:0}}),n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:b.clave})]},b.clave))})]});return u?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${x.palette.divider}`,bgcolor:x.palette.background.paper,boxShadow:x.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),j]}):j},Ee=100,wa=({valor:e,variante:r="completo",color:t="secundario",etiqueta:o,alto:a=240,conPapel:i=!0})=>{const d=pe(),f=ce(),y=r==="medio",h=Math.max(0,Math.min(100,e)),v=d.palette.mode==="dark"?d.palette.grey[800]:d.palette.grey[200],u=ne.useMemo(()=>{const p=ue.pie().value($=>$.valor).sort(null).padAngle(0).startAngle(y?-Math.PI/2:0).endAngle(y?Math.PI/2:2*Math.PI),s=ue.arc().innerRadius(Ee*.62).outerRadius(Ee).cornerRadius(4);return p([{valor:h},{valor:100-h}]).map($=>({arco:$,ruta:s($)??""}))},[h,y]),x=y?`-${Ee+12} -${Ee+12} ${2*Ee+24} ${Ee+24}`:`-${Ee+12} -${Ee+12} ${2*Ee+24} ${2*Ee+24}`,m=n.jsxs(c.Box,{sx:{position:"relative",height:a,display:"flex",alignItems:"center",justifyContent:"center"},children:[n.jsx(c.Box,{component:"svg",viewBox:x,sx:{width:"100%",height:"100%",maxHeight:a,overflow:"visible"},children:u.map((p,s)=>n.jsx("path",{d:p.ruta,fill:s===0?f.color(t):v},s))}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pointerEvents:"none",transform:y?"translateY(28%)":"none"},children:[n.jsxs(c.Typography,{variant:"h4",fontWeight:800,color:"text.primary",lineHeight:1.1,children:[h,"%"]}),o&&n.jsx(c.Typography,{variant:"body2",color:"text.secondary",children:o})]})]});return i?n.jsx(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${d.palette.divider}`,bgcolor:d.palette.background.paper,boxShadow:d.shadows[1]},children:m}):m},ke={arriba:6,derecha:8,abajo:25,izquierda:28},jt={lineal:ue.curveLinear,suave:ue.curveMonotoneX,escalon:ue.curveStep},Sa=(e,r)=>e instanceof Date?e.toLocaleDateString("es-ES",r?{month:"short",year:"2-digit"}:{day:"2-digit",month:"short"}):String(e),ja=({series:e,datos:r,titulo:t,subtitulo:o,alto:a=288,curva:i="suave",color:d,colorLinea:f,gradiente:y=!0,contorno:h=!1,apilado:v=!1,conCuadricula:u=!0,conPapel:x=!0})=>{const m=pe(),p=ce(),s=ne.useMemo(()=>e&&e.length>0?e:r&&r.length>0?[{nombre:t??"Serie",datos:r,color:d}]:[],[e,r,t,d]),$=ne.useMemo(()=>{const w=s[0]?.datos.map(I=>I.etiqueta)??[],j=w.map(()=>0),b=v?Math.max(...w.map((I,U)=>s.reduce((C,O)=>C+(O.datos[U]?.valor??0),0)),1):le.max(s.flatMap(I=>I.datos.map(U=>U.valor)))??1,g=oe.scaleLinear().domain([0,b]).range([100,0]),S=w[0];let B;if(S instanceof Date){const I=w.filter(C=>C instanceof Date),U=oe.scaleTime().domain(le.extent(I)).range([0,100]);B=C=>U(C)}else if(typeof S=="number"){const I=w,U=oe.scaleLinear().domain([le.min(I)??0,le.max(I)??0]).range([0,100]);B=C=>U(C)}else{const I=w.map(C=>String(C)),U=oe.scalePoint().domain(I).range([0,100]);B=C=>U(String(C))??0}const _=s.map(I=>{const U=I.datos.map((D,V)=>{const L=v?j[V]:0,F=L+D.valor;return v&&(j[V]=F),{etiqueta:D.etiqueta,base:L,total:F}}),C=ue.area().x(D=>B(D.etiqueta)).y0(D=>g(D.base)).y1(D=>g(D.total)).curve(jt[i]),O=ue.line().x(D=>B(D.etiqueta)).y(D=>g(D.total)).curve(jt[i]);return{area:C(U)??"",linea:O(U)??""}}),M=g.ticks(5).map(I=>({posicion:g(I),texto:String(I)})),Y=g.ticks(5).map(I=>g(I)),P=w.length,l=Math.min(5,P),A=Array.from(new Set(l<=1?[0]:Array.from({length:l},(I,U)=>Math.round(U*(P-1)/(l-1))))).filter(I=>I>=0&&I<P),k=w[0],W=w[P-1],z=k instanceof Date&&W instanceof Date&&k.getFullYear()!==W.getFullYear(),N=A.map((I,U)=>({posicion:B(w[I]),texto:Sa(w[I],z),anclaje:U===0?"inicio":U===A.length-1?"fin":"centro"}));return{capas:_,marcasY:M,marcasX:N,posicionesCuadricula:Y}},[s,i,v]),E=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:a},children:[n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${ke.arriba}px - ${ke.abajo}px)`,width:`${ke.izquierda}px`,transform:`translateY(${ke.arriba}px)`,overflow:"visible"},children:n.jsx(cr,{marcas:$.marcasY})}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${ke.arriba}px - ${ke.abajo}px)`,width:`calc(100% - ${ke.izquierda}px - ${ke.derecha}px)`,transform:`translate(${ke.izquierda}px, ${ke.arriba}px)`,overflow:"visible"},children:[n.jsxs(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{width:"100%",height:"100%",overflow:"visible"},children:[n.jsx("defs",{children:s.map((w,j)=>{const b=w.color?p.color(w.color):d?p.color(d):p.serie(j);return n.jsxs("linearGradient",{id:`codeplex-area-${j}`,x1:"0",x2:"0",y1:"0",y2:"1",children:[n.jsx("stop",{offset:"0%",stopColor:b,stopOpacity:.45}),n.jsx("stop",{offset:"100%",stopColor:b,stopOpacity:.02})]},w.nombre)})}),u&&n.jsx(Re,{posiciones:$.posicionesCuadricula}),$.capas.map((w,j)=>{const b=s[j],g=b.color?p.color(b.color):d?p.color(d):p.serie(j),S=f?p.color(f):g,B=h?g:y?`url(#codeplex-area-${j})`:g,_=h?.12:y?1:.35;return n.jsxs("g",{children:[n.jsx("path",{d:w.area,fill:B,fillOpacity:_}),n.jsx("path",{d:w.linea,fill:"none",stroke:S,strokeWidth:h?2.5:2,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"})]},b.nombre)})]}),n.jsx(c.Box,{sx:{position:"relative",mt:1},children:n.jsx(Ar,{marcas:$.marcasX})})]})]});return x?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${m.palette.divider}`,bgcolor:m.palette.background.paper,boxShadow:m.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),E]}):E},Be={arriba:8,derecha:8,abajo:28,izquierda:32},Ta=({datos:e,series:r,titulo:t,subtitulo:o,alto:a=288,color:i,conCuadricula:d=!0,conTooltip:f=!0,conLeyenda:y=!0,conPapel:h=!0})=>{const v=pe(),u=ce(),x=ne.useMemo(()=>r&&r.length>0?r.map((w,j)=>({nombre:w.nombre,color:w.color,puntos:w.puntos,indice:j})):[{color:i,puntos:e??[],indice:0}],[r,e,i]),m=y&&!!(r&&r.length>0),p=(w,j)=>w.color?u.color(w.color):j.color?u.color(j.color):u.serie(j.indice),s=ne.useMemo(()=>{const w=x.flatMap(l=>l.puntos),j=le.extent(w,l=>l.x),b=le.extent(w,l=>l.y),g=oe.scaleLinear().domain([j[0]??0,j[1]??0]).nice().range([0,100]),S=oe.scaleLinear().domain([b[0]??0,b[1]??0]).nice().range([100,0]),B=S.ticks(5).map(l=>({posicion:S(l),texto:String(l)})),_=g.ticks(5).map(l=>({posicion:g(l),texto:String(l)})),M=S.ticks(5).map(l=>S(l)),Y=g.ticks(5).map(l=>g(l)),P=w.some(l=>l.icono);return{escalaX:g,escalaY:S,marcasY:B,marcasX:_,posicionesCuadriculaY:M,posicionesCuadriculaX:Y,tieneIconos:P}},[x]),$=n.jsxs(c.Box,{sx:{position:"relative",width:"100%",height:a},children:[n.jsx(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Be.arriba}px - ${Be.abajo}px)`,width:`${Be.izquierda}px`,transform:`translateY(${Be.arriba}px)`,overflow:"visible"},children:n.jsx(cr,{marcas:s.marcasY})}),n.jsxs(c.Box,{sx:{position:"absolute",inset:0,height:`calc(100% - ${Be.arriba}px - ${Be.abajo}px)`,width:`calc(100% - ${Be.izquierda}px - ${Be.derecha}px)`,transform:`translate(${Be.izquierda}px, ${Be.arriba}px)`,overflow:"visible"},children:[n.jsxs(c.Box,{component:"svg",viewBox:"0 0 100 100",preserveAspectRatio:"none",sx:{width:"100%",height:"100%",overflow:"visible"},children:[d&&n.jsxs(n.Fragment,{children:[n.jsx(Re,{posiciones:s.posicionesCuadriculaY}),n.jsx(Re,{posiciones:s.posicionesCuadriculaX,orientacion:"vertical"})]}),x.flatMap(w=>w.puntos.map((j,b)=>{const g=s.escalaX(j.x),S=s.escalaY(j.y),B=p(j,w),_=`${w.indice}-${b}`,M=n.jsxs(n.Fragment,{children:[!j.icono&&n.jsx("path",{d:`M ${g} ${S} l 0.0001 0`,stroke:B,strokeWidth:9,strokeLinecap:"round",fill:"none",vectorEffect:"non-scaling-stroke",opacity:.85}),n.jsx("path",{d:`M ${g} ${S} l 0.0001 0`,stroke:"transparent",strokeWidth:18,strokeLinecap:"round",fill:"none",vectorEffect:"non-scaling-stroke"})]});return f?n.jsxs(ir,{children:[n.jsx(Ke,{children:M}),n.jsxs(sr,{children:[(j.etiqueta||w.nombre)&&n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:j.etiqueta??w.nombre}),n.jsxs(c.Typography,{variant:"body2",fontWeight:700,color:"text.primary",children:["x: ",j.x.toLocaleString("es-ES")," · y:"," ",j.y.toLocaleString("es-ES")]})]})]},_):n.jsx("g",{children:M},_)}))]}),s.tieneIconos&&n.jsx(c.Box,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:x.flatMap(w=>w.puntos.map((j,b)=>{if(!j.icono)return null;const g=s.escalaX(j.x),S=s.escalaY(j.y);return n.jsx(c.Box,{sx:{position:"absolute",left:`${g}%`,top:`${S}%`,transform:"translate(-50%, -50%)",width:28,height:28,borderRadius:"50%",overflow:"hidden","& img, & svg":{width:"100%",height:"100%"}},children:j.icono},`logo-${w.indice}-${b}`)}))}),n.jsx(c.Box,{sx:{position:"relative",mt:1},children:n.jsx(Ar,{marcas:s.marcasX})})]})]}),E=m?n.jsxs(c.Box,{children:[n.jsx(c.Stack,{direction:"row",spacing:2,flexWrap:"wrap",sx:{mb:1.5},children:x.map(w=>n.jsxs(c.Stack,{direction:"row",spacing:.75,alignItems:"center",children:[n.jsx(c.Box,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:w.color?u.color(w.color):u.serie(w.indice),flexShrink:0}}),n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:w.nombre})]},w.indice))}),$]}):$;return h?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${v.palette.divider}`,bgcolor:v.palette.background.paper,boxShadow:v.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),E]}):E},Tt=15,Ca=({datos:e,variante:r="solido",alto:t=280,titulo:o,subtitulo:a,conPapel:i=!0})=>{const d=pe(),f=ce(),y=ne.useMemo(()=>{const u={name:"root",children:e.map((p,s)=>({name:p.grupo,indiceGrupo:s,children:p.items.map($=>({name:$.nombre,valor:$.valor,icono:$.icono}))}))},x=hr.hierarchy(u).sum(p=>p.valor??0).sort((p,s)=>(s.value??0)-(p.value??0));return hr.treemap().size([100,100]).paddingInner(.75).paddingOuter(1).round(!1)(x).leaves()},[e]),h=u=>{const x=u.parent?.data.indiceGrupo??0,m=e[x];return m?.color?f.color(m.color):f.serie(x)},v=n.jsx(c.Box,{sx:{position:"relative",width:"100%",height:t},children:y.map((u,x)=>{const m=u.x1-u.x0,p=u.y1-u.y0,s=h(u),$=m>Tt&&p>Tt,E=r==="gradiente"?`linear-gradient(180deg, ${s}, ${s}bb)`:s;return n.jsx(c.Tooltip,{arrow:!0,title:n.jsxs(c.Box,{children:[n.jsx(c.Typography,{variant:"caption",sx:{opacity:.7},children:u.data.name}),n.jsx(c.Typography,{variant:"body2",fontWeight:700,children:(u.value??0).toLocaleString("es-ES")})]}),children:n.jsx(c.Box,{sx:{position:"absolute",left:`${u.x0}%`,top:`${u.y0}%`,width:`${m}%`,height:`${p}%`,borderRadius:"6px",border:"1px solid rgba(255, 255, 255, 0.25)",background:E,color:d.palette.common.white,p:.75,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",alignItems:r==="logos"?"center":"flex-start",justifyContent:"center"},children:r==="logos"?u.data.icono&&n.jsx(c.Box,{sx:{width:36,height:36,"& img, & svg":{width:"100%",height:"100%"}},children:u.data.icono}):$&&n.jsxs(n.Fragment,{children:[n.jsx(c.Typography,{sx:{fontSize:13,fontWeight:600,lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:u.data.name}),n.jsx(c.Typography,{sx:{fontSize:12,opacity:.85},children:(u.value??0).toLocaleString("es-ES")})]})})},x)})});return i?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${d.palette.divider}`,bgcolor:d.palette.background.paper,boxShadow:d.shadows[1]},children:[(o||a)&&n.jsxs(c.Box,{sx:{mb:2},children:[o&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:o}),a&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:a})]}),v]}):v},Ct=e=>"valor"in e,Ve=1e3,Ea=({datos:e,alto:r=300,titulo:t,subtitulo:o,conPapel:a=!0})=>{const i=pe(),d=ce(),f=ne.useMemo(()=>{const h=new Map;for(const m of e)h.has(m.grupo)||h.set(m.grupo,h.size);const v=hr.hierarchy({children:e}).sum(m=>Ct(m)?m.valor:0);return{nodos:hr.pack().size([Ve,Ve]).padding(12)(v).leaves().filter(m=>Ct(m.data)).map(m=>{const p=m.data,s=h.get(p.grupo)??0;return{nombre:p.nombre,grupo:p.grupo,valor:p.valor,x:m.x,y:m.y,r:m.r,relleno:p.color?d.color(p.color):d.serie(s)}})}},[e,d]),y=n.jsx(c.Box,{sx:{position:"relative",width:"100%",height:r,display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(c.Box,{sx:{position:"relative",height:"100%",aspectRatio:"1 / 1",maxWidth:"100%"},children:f.nodos.map((h,v)=>{const u=h.r/Ve*100>7;return n.jsx(c.Tooltip,{arrow:!0,title:n.jsxs(c.Box,{children:[n.jsx(c.Typography,{variant:"caption",sx:{opacity:.7},children:h.grupo}),n.jsxs(c.Typography,{variant:"body2",fontWeight:700,children:[h.nombre," · ",h.valor.toLocaleString("es-ES")]})]}),children:n.jsx(c.Box,{sx:{position:"absolute",left:`${h.x/Ve*100}%`,top:`${h.y/Ve*100}%`,width:`${h.r*2/Ve*100}%`,height:`${h.r*2/Ve*100}%`,transform:"translate(-50%, -50%)",borderRadius:"50%",backgroundColor:h.relleno,border:`1px solid ${i.palette.common.white}33`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",cursor:"default",transition:"filter 0.2s","&:hover":{filter:"brightness(1.08)"}},children:u&&n.jsxs(n.Fragment,{children:[n.jsx(c.Typography,{sx:{color:i.palette.common.white,fontSize:11,fontWeight:600,lineHeight:1.1,textAlign:"center",whiteSpace:"nowrap"},children:h.nombre}),n.jsx(c.Typography,{sx:{color:i.palette.common.white,fontSize:10,opacity:.75,lineHeight:1.1},children:h.valor.toLocaleString("es-ES")})]})})},`${h.nombre}-${v}`)})})});return a?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${i.palette.divider}`,bgcolor:i.palette.background.paper,boxShadow:i.shadows[1]},children:[(t||o)&&n.jsxs(c.Box,{sx:{mb:2},children:[t&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:t}),o&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:o})]}),y]}):y},ka=48,Ba=8,Aa=({datos:e,gradiente:r=!0,alto:t=280,titulo:o,subtitulo:a,conPapel:i=!0})=>{const d=pe(),f=ce(),y=ne.useMemo(()=>[...e].sort((x,m)=>m.valor-x.valor),[e]),h=ne.useMemo(()=>y.reduce((x,m)=>Math.max(x,m.valor),0)||1,[y]),v=(x,m)=>{const p=x.color?f.color(x.color):f.serie(m);return r?`linear-gradient(180deg, ${p}, ${p}cc)`:p},u=n.jsx(c.Box,{sx:{display:"flex",flexDirection:"column",gap:`${Ba}px`,width:"100%",height:t,justifyContent:"center"},children:y.map((x,m)=>{const p=x.valor/h*100;return n.jsxs(c.Box,{sx:{position:"relative",alignSelf:"center",width:`${p}%`,height:`${ka}px`,flexShrink:0,borderRadius:1.5,background:v(x,m),display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:[n.jsx(c.Typography,{variant:"caption",sx:{color:d.palette.common.white,fontWeight:600,lineHeight:1.2,whiteSpace:"nowrap"},children:x.clave}),n.jsx(c.Typography,{sx:{color:d.palette.common.white,fontSize:12,fontWeight:700,fontFamily:"monospace"},children:x.valor})]},`${x.clave}-${m}`)})});return i?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${d.palette.divider}`,bgcolor:d.palette.background.paper,boxShadow:d.shadows[1]},children:[(o||a)&&n.jsxs(c.Box,{sx:{mb:2},children:[o&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:o}),a&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:a})]}),u]}):u},Me=150,Et=5,Ra=({ejes:e,series:r,variante:t="lineal",conPuntos:o=!1,conLeyenda:a=!1,alto:i=300,titulo:d,subtitulo:f,conPapel:y=!0})=>{const h=pe(),v=ce(),u=ne.useMemo(()=>{const p=e.length,s=Math.PI*2/Math.max(p,1),$=Math.max(1,...r.flatMap(b=>b.valores)),E=oe.scaleLinear().range([0,Me]).domain([0,$]),w=ue.lineRadial().radius(b=>E(b)).angle((b,g)=>g*s).curve(t==="redondeado"?ue.curveCardinalClosed:ue.curveLinearClosed);return{anguloPorEje:s,rScale:E,generarTrazo:w,vertice:(b,g)=>{const S=s*b-Math.PI/2;return{x:g*Math.cos(S),y:g*Math.sin(S)}}}},[e,r,t]),x=(p,s)=>p.color?v.color(p.color):v.serie(s),m=n.jsxs(c.Stack,{spacing:2,alignItems:"center",sx:{width:"100%"},children:[n.jsx(c.Box,{sx:{width:"100%",height:i,display:"flex",alignItems:"center",justifyContent:"center"},children:n.jsx(c.Box,{component:"svg",viewBox:`0 0 ${Me*2} ${Me*2}`,sx:{height:"100%",maxHeight:i,overflow:"visible"},children:n.jsxs("g",{transform:`translate(${Me}, ${Me})`,children:[Array.from({length:Et}).map((p,s)=>n.jsx("circle",{cx:0,cy:0,r:Me/Et*(s+1),fill:"none",stroke:v.cuadricula,strokeWidth:.5},`anillo-${s}`)),e.map((p,s)=>{const $=u.vertice(s,Me);return n.jsx("line",{x1:0,y1:0,x2:$.x,y2:$.y,stroke:v.cuadricula,strokeWidth:.5},`eje-${s}`)}),r.map((p,s)=>{const $=u.generarTrazo(p.valores);if(!$)return null;const E=x(p,s);return n.jsx("path",{d:$,fill:E,fillOpacity:.25,stroke:E,strokeWidth:1.5},`serie-${p.nombre}`)}),o&&r[0]?.valores.map((p,s)=>{const $=u.vertice(s,u.rScale(p));return n.jsxs("g",{children:[n.jsx("circle",{cx:$.x,cy:$.y,r:11,fill:v.superficie,stroke:x(r[0],0),strokeWidth:1}),n.jsx("text",{x:$.x,y:$.y,dy:"0.35em",textAnchor:"middle",fontSize:10,fill:v.ejeTexto,children:p})]},`punto-${s}`)}),e.map((p,s)=>{const $=u.vertice(s,Me+16);return n.jsx("text",{x:$.x,y:$.y,dy:"0.35em",textAnchor:"middle",fontSize:13,fill:v.ejeTexto,children:p},`etq-${s}`)})]})})}),a&&n.jsx(c.Stack,{direction:"row",spacing:2,flexWrap:"wrap",justifyContent:"center",children:r.map((p,s)=>n.jsxs(c.Stack,{direction:"row",spacing:1,alignItems:"center",children:[n.jsx(c.Box,{sx:{width:10,height:10,borderRadius:"3px",bgcolor:x(p,s),flexShrink:0}}),n.jsx(c.Typography,{variant:"caption",color:"text.secondary",children:p.nombre})]},p.nombre))})]});return y?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${h.palette.divider}`,bgcolor:h.palette.background.paper,boxShadow:h.shadows[1]},children:[(d||f)&&n.jsxs(c.Box,{sx:{mb:2},children:[d&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:d}),f&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:f})]}),m]}):m},kt=e=>{const r=new Set,t=[];for(const o of e)r.has(o)||(r.add(o),t.push(o));return t},Oa=({datos:e,color:r="exito",alto:t=280,conValores:o=!1,titulo:a,subtitulo:i,conPapel:d=!0})=>{const f=pe(),y=ce(),h=ne.useMemo(()=>{const x=kt(e.map(j=>j.fila)),m=kt(e.map(j=>j.columna)),p=e.map(j=>j.valor),s=p.length>0?Math.min(...p):0,$=p.length>0?Math.max(...p):0,E=oe.scaleLinear().domain([s,$===s?s+1:$]).range([.12,1]),w=new Map;for(const j of e)w.set(`${j.fila}__${j.columna}`,j);return{filas:x,columnas:m,escalaIntensidad:E,indice:w}},[e]),v=y.color(r),u=n.jsxs(c.Box,{sx:{display:"flex",flexDirection:"column",width:"100%",height:t},children:[n.jsxs(c.Box,{sx:{display:"flex",flex:1,minHeight:0},children:[n.jsx(c.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-around",pr:1,flexShrink:0},children:h.filas.map(x=>n.jsx(c.Typography,{variant:"caption",sx:{color:y.ejeTexto,whiteSpace:"nowrap",textAlign:"right"},children:x},x))}),n.jsx(c.Box,{sx:{flex:1,minWidth:0,display:"grid",gap:.5,gridTemplateColumns:`repeat(${h.columnas.length}, 1fr)`,gridTemplateRows:`repeat(${h.filas.length}, 1fr)`},children:h.filas.map(x=>h.columnas.map(m=>{const p=h.indice.get(`${x}__${m}`),s=p?h.escalaIntensidad(p.valor):0,$=p?Ye.alpha(v,s):Ye.alpha(y.cuadricula,.25),E=n.jsx(c.Box,{sx:{width:"100%",height:"100%",borderRadius:1,backgroundColor:$,display:"flex",alignItems:"center",justifyContent:"center",cursor:p?"default":"auto",transition:f.transitions.create("transform"),"&:hover":p?{transform:"scale(1.06)"}:void 0},children:o&&p&&n.jsx(c.Typography,{sx:{fontSize:11,fontVariantNumeric:"tabular-nums",color:s>.55?y.contraste(r):f.palette.text.primary},children:p.valor})});return p?n.jsx(c.Tooltip,{arrow:!0,placement:"top",title:n.jsxs(c.Box,{children:[n.jsxs(c.Typography,{variant:"caption",sx:{opacity:.7},children:[x," · ",m]}),n.jsx(c.Typography,{variant:"body2",fontWeight:700,children:p.valor.toLocaleString("es-ES")})]}),children:E},`${x}__${m}`):n.jsx(c.Box,{children:E},`${x}__${m}`)}))})]}),n.jsxs(c.Box,{sx:{display:"flex",pt:.75},children:[n.jsx(c.Box,{sx:{flexShrink:0,pr:1,visibility:"hidden"},children:h.filas.length>0&&n.jsx(c.Typography,{variant:"caption",children:h.filas.reduce((x,m)=>x.length>=m.length?x:m,"")})}),n.jsx(c.Box,{sx:{flex:1,minWidth:0,display:"grid",gap:.5,gridTemplateColumns:`repeat(${h.columnas.length}, 1fr)`},children:h.columnas.map(x=>n.jsx(c.Typography,{variant:"caption",sx:{color:y.ejeTexto,textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:x},x))})]})]});return d?n.jsxs(c.Paper,{elevation:0,sx:{p:3,borderRadius:4,border:`1px solid ${f.palette.divider}`,bgcolor:f.palette.background.paper,boxShadow:f.shadows[1]},children:[(a||i)&&n.jsxs(c.Box,{sx:{mb:2},children:[a&&n.jsx(c.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:a}),i&&n.jsx(c.Typography,{variant:"subtitle2",color:"text.secondary",children:i})]}),u]}):u};exports.CodeplexGraficoArea=ja;exports.CodeplexGraficoBarraLinea=ya;exports.CodeplexGraficoBarras=ua;exports.CodeplexGraficoBarrasApiladas=ha;exports.CodeplexGraficoBarrasDivergentes=ga;exports.CodeplexGraficoBarrasMultiples=ma;exports.CodeplexGraficoBurbujas=Ea;exports.CodeplexGraficoComparativa=xa;exports.CodeplexGraficoDesglose=fa;exports.CodeplexGraficoDispersion=Ta;exports.CodeplexGraficoEmbudo=Aa;exports.CodeplexGraficoLineas=pa;exports.CodeplexGraficoMapaCalor=Oa;exports.CodeplexGraficoMedidor=wa;exports.CodeplexGraficoPastel=$a;exports.CodeplexGraficoPuntosConectados=va;exports.CodeplexGraficoRadar=Ra;exports.CodeplexGraficoTooltip=ir;exports.CodeplexGraficoTreemap=Ca;exports.CodeplexGraficoVelas=ba;exports.GraficoTooltipContenido=sr;exports.GraficoTooltipDisparador=Ke;exports.agruparPorPeriodo=eo;exports.filtrarPorRango=Rt;exports.formatearFecha=Qt;exports.parsearFecha=Bt;
|