e?1:t>=e?0:NaN}function Fl(e){return e}const Hl=Math.abs,Bl=Math.atan2,Vl=Math.cos,Ul=Math.max,Yl=Math.min,Wl=Math.sin,Gl=Math.sqrt,Kl=1e-12,ql=Math.PI,Xl=ql/2,Zl=2*ql;function Jl(e){return e>=1?Xl:e<=-1?-Xl:Math.asin(e)}const Ql=(e,t)=>void 0===e?t:Math.PI*e/180;function ec(e,t){if("number"==typeof e)return e;if("100%"===e)return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw new Error(`MUI X Charts: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function tc(e,t){const{height:n,width:r}=t,{cx:i,cy:o}=e,a=Math.min(r,n)/2;return{cx:ec(i??"50%",r),cy:ec(o??"50%",n),availableRadius:a}}const nc=new Set(["pie"]),rc={bar:Ll,scatter:Dl,line:Nl,pie:{colorProcessor:e=>t=>e.data[t].color,seriesProcessor:e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(e=>{const t=function(){var e=Fl,t=_l,n=null,r=rl(0),i=rl(Zl),o=rl(0);function a(a){var s,l,c,u,d,p=(a=nl(a)).length,h=0,m=new Array(p),f=new Array(p),g=+r.apply(this,arguments),y=Math.min(Zl,Math.max(-Zl,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s0&&(h+=d);for(null!=t?m.sort(function(e,n){return t(f[e],f[n])}):null!=n&&m.sort(function(e,t){return n(a[e],a[t])}),s=0,c=h?(y-p*b)/h:0;s
0?d*c:0)+b,f[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:u,padAngle:v};return f}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:rl(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:rl(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:rl(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:rl(+e),a):o},a}().startAngle(Ql(n[e].startAngle??0)).endAngle(Ql(n[e].endAngle??360)).padAngle(Ql(n[e].paddingAngle??0)).sortValues(((e="none")=>{if("function"==typeof e)return e;switch(e){case"none":default:return null;case"desc":return(e,t)=>t-e;case"asc":return(e,t)=>e-t}})(n[e].sortingValues??"none"))(n[e].data.map(e=>e.value));r[e]=l({labelMarkType:"circle",valueFormatter:e=>e.value.toLocaleString()},n[e],{data:n[e].data.map((n,r)=>l({},n,{id:n.id??`auto-generated-pie-id-${e}-${r}`},t[r])).map((t,r)=>l({labelMarkType:"circle"},t,{formattedValue:n[e].valueFormatter?.(l({},t,{label:yl(t.label,"arc")}),{dataIndex:r})??t.value.toLocaleString()}))})}),{seriesOrder:t,series:r}},seriesLayout:(e,t)=>{const n={};for(const r of e.seriesOrder){const{innerRadius:i,outerRadius:o,arcLabelRadius:a,cx:s,cy:l}=e.series[r],{cx:c,cy:u,availableRadius:d}=tc({cx:s,cy:l},{width:t.width,height:t.height}),p=ec(o??d,d),h=ec(i??0,d),m=void 0===a?(h+p)/2:ec(a,d);n[r]={radius:{available:d,inner:h,outer:p,label:m},center:{x:t.left+c,y:t.top+u}}}return n},legendGetter:e=>{const{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>(n[t].data.forEach((r,i)=>{const o=yl(r.label,"legend");if(void 0===o)return;const a=r.id??i;e.push({type:"pie",markType:r.labelMarkType??n[t].labelMarkType,seriesId:t,id:a,itemId:a,dataIndex:i,color:r.color,label:o})}),e),[])},tooltipGetter:e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||void 0===r.dataIndex)return null;const i=t.data[r.dataIndex];if(null==i)return null;const o=yl(i.label,"tooltip"),a=l({},i,{label:o}),s=t.valueFormatter(a,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:o,value:a,formattedValue:s,markType:i.labelMarkType??t.labelMarkType}},tooltipItemPositionGetter:e=>{const{series:t,identifier:n,placement:r,seriesLayout:i}=e;if(!n||void 0===n.dataIndex)return null;const o=t.pie?.series[n.seriesId],a=i.pie?.[n.seriesId];if(null==o||null==a)return null;const{center:s,radius:l}=a,{data:c}=o,u=c[n.dataIndex];if(!u)return null;const d=[[l.inner,u.startAngle],[l.inner,u.endAngle],[l.outer,u.startAngle],[l.outer,u.endAngle]].map(([e,t])=>({x:s.x+e*Math.sin(t),y:s.y-e*Math.cos(t)})),[p,h]=Js(d.map(e=>e.x)),[m,f]=Js(d.map(e=>e.y));switch(r){case"bottom":return{x:(h+p)/2,y:f};case"left":return{x:p,y:(f+m)/2};case"right":return{x:h,y:(f+m)/2};default:return{x:(h+p)/2,y:m}}},getSeriesWithDefaultValues:(e,t,n)=>l({},e,{id:e.id??`auto-generated-id-${t}`,data:e.data.map((e,t)=>l({},e,{color:e.color??n[t%n.length]}))}),keyboardFocusHandler:e=>{switch(e.key){case"ArrowRight":return Ml(nc);case"ArrowLeft":return Cl(nc);case"ArrowDown":return El(nc);case"ArrowUp":return Pl(nc);default:return null}},identifierSerializer:jl}},ic=[Xs,Ys,Ws,Bs,Zs];function oc(t){const{children:n,plugins:r=ic,pluginParams:i={},seriesConfig:o=rc}=t,{contextValue:a}=function(t,n,r){const i=z(),o=e.useMemo(()=>[...et,...t],[t]),a=rt({plugins:o,props:n});a.id=a.id??i;const s=e.useRef({}).current,l=function(t){const n=e.useRef({});return t?function(e){return null==e.current&&(e.current={}),e}(t):n}(n.apiRef),c=e.useRef(null),u=e.useRef(null),d=e.useRef(null);if(null==d.current){it+=1;const e={cacheKey:{id:it}};o.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(a,e,r))}),d.current=new B(e)}return o.forEach(e=>{const t=e({instance:s,params:a,plugins:o,store:d.current,svgRef:u,chartRootRef:c,seriesConfig:r});t.publicAPI&&Object.assign(l.current,t.publicAPI),t.instance&&Object.assign(s,t.instance)}),{contextValue:e.useMemo(()=>({store:d.current,publicAPI:l.current,instance:s,svgRef:u,chartRootRef:c}),[s,l])}}(r,i,o);return(0,O.jsx)(ot.Provider,{value:a,children:n})}const ac=e.createContext(null);function sc(){const t=e.useContext(ac);if(null==t)throw new Error(["MUI X Charts: Could not find the Charts Slots 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("\n"));return t}function lc(t){const{slots:n,slotProps:r={},defaultSlots:i,children:o}=t,a=e.useMemo(()=>({slots:l({},i,n),slotProps:r}),[i,n,r]);return(0,O.jsx)(ac.Provider,{value:a,children:o})}function cc(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if("components"===i||"slots"===i)n[i]={...e[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const r=e[i],o=t[i];if(o)if(r){n[i]={...o};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[i][t]=cc(r[t],o[t])}}else n[i]=o;else n[i]=r||{}}else void 0===n[i]&&(n[i]=e[i])}return n}function uc(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?cc(t.components[n].defaultProps,r):r}var dc=a(4405);function pc(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function hc(t){if(e.isValidElement(t)||(0,dc.Hy)(t)||!pc(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=hc(t[e])}),n}function mc(t,n,r={clone:!0}){const i=r.clone?{...t}:t;return pc(t)&&pc(n)&&Object.keys(n).forEach(o=>{e.isValidElement(n[o])||(0,dc.Hy)(n[o])?i[o]=n[o]:pc(n[o])&&Object.prototype.hasOwnProperty.call(t,o)&&pc(t[o])?i[o]=mc(t[o],n[o],r):r.clone?i[o]=pc(n[o])?hc(n[o]):n[o]:i[o]=n[o]}),i}function fc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const yc={borderRadius:4},vc={xs:0,sm:600,md:900,lg:1200,xl:1536},bc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vc[e]}px)`},xc={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:vc[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ic(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||bc;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||bc;return Object.keys(t).reduce((i,o)=>{if(function(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}(e.keys,o)){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:xc,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||vc).includes(o))i[e.up(o)]=n(t[o],o);else{const e=o;i[e]=t[e]}return i},{})}return n(t)}function wc(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function kc(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Sc(e){if("string"!=typeof e)throw new Error(kc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Mc(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Cc(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Mc(e,n)||r,t&&(i=t(i,r,e)),i}const Pc=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=Mc(e.theme,r)||{};return Ic(e,o,e=>{let r=Cc(a,i,e);return e===r&&"string"==typeof e&&(r=Cc(a,i,`${t}${"default"===e?"":Sc(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o},Ec=function(e,t){return t?mc(e,t,{clone:!1}):e},Tc={m:"margin",p:"padding"},Ac={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Oc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jc=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!Oc[e])return[e];e=Oc[e]}const[t,n]=e.split(""),r=Tc[t],i=Ac[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]})(t)),e[t])}(),Lc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Dc=[...Lc,...Rc];function $c(e,t,n,r){const i=Mc(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=i[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof i?i:()=>{}}function zc(e){return $c(e,"spacing",8)}function Nc(e,t){return"string"==typeof t||null==t?t:e(t)}function _c(e,t){const n=zc(e.theme);return Object.keys(e).map(r=>function(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Nc(t,n),e),{})}(jc(n),r);return Ic(e,e[n],i)}(e,t,r,n)).reduce(Ec,{})}function Fc(e){return _c(e,Lc)}function Hc(e){return _c(e,Rc)}function Bc(e){return _c(e,Dc)}function Vc(e=8,t=zc({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}Fc.propTypes={},Fc.filterProps=Lc,Hc.propTypes={},Hc.filterProps=Rc,Bc.propTypes={},Bc.filterProps=Dc;const Uc=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Ec(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function Yc(e){return"number"!=typeof e?e:`${e}px solid`}function Wc(e,t){return Pc({prop:e,themeKey:"borders",transform:t})}const Gc=Wc("border",Yc),Kc=Wc("borderTop",Yc),qc=Wc("borderRight",Yc),Xc=Wc("borderBottom",Yc),Zc=Wc("borderLeft",Yc),Jc=Wc("borderColor"),Qc=Wc("borderTopColor"),eu=Wc("borderRightColor"),tu=Wc("borderBottomColor"),nu=Wc("borderLeftColor"),ru=Wc("outline",Yc),iu=Wc("outlineColor"),ou=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=$c(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Nc(t,e)});return Ic(e,e.borderRadius,n)}return null};ou.propTypes={},ou.filterProps=["borderRadius"],Uc(Gc,Kc,qc,Xc,Zc,Jc,Qc,eu,tu,nu,ou,ru,iu);const au=e=>{if(void 0!==e.gap&&null!==e.gap){const t=$c(e.theme,"spacing",8),n=e=>({gap:Nc(t,e)});return Ic(e,e.gap,n)}return null};au.propTypes={},au.filterProps=["gap"];const su=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=$c(e.theme,"spacing",8),n=e=>({columnGap:Nc(t,e)});return Ic(e,e.columnGap,n)}return null};su.propTypes={},su.filterProps=["columnGap"];const lu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=$c(e.theme,"spacing",8),n=e=>({rowGap:Nc(t,e)});return Ic(e,e.rowGap,n)}return null};function cu(e,t){return"grey"===t?t:e}function uu(e){return e<=1&&0!==e?100*e+"%":e}lu.propTypes={},lu.filterProps=["rowGap"],Uc(au,su,lu,Pc({prop:"gridColumn"}),Pc({prop:"gridRow"}),Pc({prop:"gridAutoFlow"}),Pc({prop:"gridAutoColumns"}),Pc({prop:"gridAutoRows"}),Pc({prop:"gridTemplateColumns"}),Pc({prop:"gridTemplateRows"}),Pc({prop:"gridTemplateAreas"}),Pc({prop:"gridArea"})),Uc(Pc({prop:"color",themeKey:"palette",transform:cu}),Pc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cu}),Pc({prop:"backgroundColor",themeKey:"palette",transform:cu}));const du=Pc({prop:"width",transform:uu}),pu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||vc[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:uu(t)}};return Ic(e,e.maxWidth,t)}return null};pu.filterProps=["maxWidth"];const hu=Pc({prop:"minWidth",transform:uu}),mu=Pc({prop:"height",transform:uu}),fu=Pc({prop:"maxHeight",transform:uu}),gu=Pc({prop:"minHeight",transform:uu}),yu=(Pc({prop:"size",cssProperty:"width",transform:uu}),Pc({prop:"size",cssProperty:"height",transform:uu}),Uc(du,pu,hu,mu,fu,gu,Pc({prop:"boxSizing"})),{border:{themeKey:"borders",transform:Yc},borderTop:{themeKey:"borders",transform:Yc},borderRight:{themeKey:"borders",transform:Yc},borderBottom:{themeKey:"borders",transform:Yc},borderLeft:{themeKey:"borders",transform:Yc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ou},color:{themeKey:"palette",transform:cu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cu},backgroundColor:{themeKey:"palette",transform:cu},p:{style:Hc},pt:{style:Hc},pr:{style:Hc},pb:{style:Hc},pl:{style:Hc},px:{style:Hc},py:{style:Hc},padding:{style:Hc},paddingTop:{style:Hc},paddingRight:{style:Hc},paddingBottom:{style:Hc},paddingLeft:{style:Hc},paddingX:{style:Hc},paddingY:{style:Hc},paddingInline:{style:Hc},paddingInlineStart:{style:Hc},paddingInlineEnd:{style:Hc},paddingBlock:{style:Hc},paddingBlockStart:{style:Hc},paddingBlockEnd:{style:Hc},m:{style:Fc},mt:{style:Fc},mr:{style:Fc},mb:{style:Fc},ml:{style:Fc},mx:{style:Fc},my:{style:Fc},margin:{style:Fc},marginTop:{style:Fc},marginRight:{style:Fc},marginBottom:{style:Fc},marginLeft:{style:Fc},marginX:{style:Fc},marginY:{style:Fc},marginInline:{style:Fc},marginInlineStart:{style:Fc},marginInlineEnd:{style:Fc},marginBlock:{style:Fc},marginBlockStart:{style:Fc},marginBlockEnd:{style:Fc},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:au},rowGap:{style:lu},columnGap:{style:su},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:uu},maxWidth:{style:pu},minWidth:{transform:uu},height:{transform:uu},maxHeight:{transform:uu},minHeight:{transform:uu},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"}}),vu=yu,bu=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Mc(n,s)||{};return c?c(i):Ic(i,t,t=>{let n=Cc(u,l,t);return t===n&&"string"==typeof t&&(n=Cc(u,l,`${e}${"default"===t?"":Sc(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const a=i.unstable_sxConfig??vu;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(i.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])c=Ec(c,e(n,o,i,a));else{const e=Ic({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=Ec(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=Ec(c,e(n,o,i,a))}),!o&&i.modularCssLayers?{"@layer sx":gc(i,wc(l,c))}:gc(i,wc(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();bu.filterProps=["sx"];const xu=bu;function Iu(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const wu=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e;let s=mc({breakpoints:fc(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Vc(i),shape:{...yc,...o}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(s),s.applyStyles=Iu,s=t.reduce((e,t)=>mc(e,t),s),s.unstable_sxConfig={...vu,...a?.unstable_sxConfig},s.unstable_sx=function(e){return xu({sx:e,theme:this})},s};var ku=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?Au(Fu,--Nu):0,$u--,10===_u&&($u=1,Du--),_u}function Uu(){return _u=Nu2||Ku(_u)>3?"":" "}function Qu(e,t){for(;--t&&Uu()&&!(_u<48||_u>102||_u>57&&_u<65||_u>70&&_u<97););return Gu(e,Wu()+(t<6&&32==Yu()&&32==Uu()))}function ed(e){for(;Uu();)switch(_u){case e:return Nu;case 34:case 39:34!==e&&39!==e&&ed(_u);break;case 40:41===e&&ed(e);break;case 92:Uu()}return Nu}function td(e,t){for(;Uu()&&e+_u!==57&&(e+_u!==84||47!==Yu()););return"/*"+Gu(t,Nu-1)+"*"+Mu(47===e?e:Uu())}function nd(e){for(;!Ku(Yu());)Uu();return Gu(e,Nu)}var rd="-ms-",id="-moz-",od="-webkit-",ad="comm",sd="rule",ld="decl",cd="@keyframes";function ud(e,t){for(var n="",r=Lu(e),i=0;i0&&ju(k)-d&&Ru(h>32?gd(k+";",r,n,d-1):gd(Eu(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ru(w=md(k,t,n,c,u,i,s,b,x=[],I=[],d),o),123===v)if(0===u)hd(k,t,w,w,x,o,d,s,I);else switch(99===p&&110===Au(k,3)?100:p){case 100:case 108:case 109:case 115:hd(e,w,w,r&&Ru(md(e,w,w,0,0,i,s,b,i,x=[],d),I),i,I,d,s,r?x:I);break;default:hd(k,w,w,w,[""],I,0,s,I)}}c=u=h=0,f=y=1,b=k="",d=a;break;case 58:d=1+ju(k),h=m;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Vu())continue;switch(k+=Mu(v),v*f){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ju(k)-1)*y,y=1;break;case 64:45===Yu()&&(k+=Zu(Uu())),p=Yu(),u=d=ju(b=k+=nd(Wu())),v++;break;case 45:45===m&&2==ju(k)&&(f=0)}}return o}function md(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],h=Lu(p),m=0,f=0,g=0;m0?p[y]+" "+v:Eu(v,/&\f/g,p[y])))&&(l[g++]=b);return Hu(e,t,n,0===i?sd:s,l,c,u)}function fd(e,t,n){return Hu(e,t,n,ad,Mu(_u),Ou(e,2,-2),0)}function gd(e,t,n,r){return Hu(e,t,n,ld,Ou(e,0,r),Ou(e,r+1,-1),r)}var yd=function(e,t,n){for(var r=0,i=0;r=i,i=Yu(),38===r&&12===i&&(t[n]=1),!Ku(i);)Uu();return Gu(e,Nu)},vd=new WeakMap,bd=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||vd.get(n))&&!r){vd.set(e,!0);for(var i=[],o=function(e,t){return Xu(function(e,t){var n=-1,r=44;do{switch(Ku(r)){case 0:38===r&&12===Yu()&&(t[n]=1),e[n]+=yd(Nu-1,t,n);break;case 2:e[n]+=Zu(r);break;case 4:if(44===r){e[++n]=58===Yu()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mu(r)}}while(r=Uu());return e}(qu(e),t))}(t,i),a=n.props,s=0,l=0;s6)switch(Au(e,t+1)){case 109:if(45!==Au(e,t+4))break;case 102:return Eu(e,/(.+:)(.+)-([^]+)/,"$1"+od+"$2-$3$1"+id+(108==Au(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Tu(e,"stretch")?Id(Eu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Au(e,t+1))break;case 6444:switch(Au(e,ju(e)-3-(~Tu(e,"!important")&&10))){case 107:return Eu(e,":",":"+od)+e;case 101:return Eu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+od+(45===Au(e,14)?"inline-":"")+"box$3$1"+od+"$2$3$1"+rd+"$2box$3")+e}break;case 5936:switch(Au(e,t+11)){case 114:return od+e+rd+Eu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return od+e+rd+Eu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return od+e+rd+Eu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return od+e+rd+e+e}return e}var wd=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ld:e.return=Id(e.value,e.length);break;case cd:return ud([Bu(e,{value:Eu(e.value,"@","@"+od)})],r);case sd:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ud([Bu(e,{props:[Eu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ud([Bu(e,{props:[Eu(t,/:(plac\w+)/,":"+od+"input-$1")]}),Bu(e,{props:[Eu(t,/:(plac\w+)/,":-moz-$1")]}),Bu(e,{props:[Eu(t,/:(plac\w+)/,rd+"input-$1")]})],r)}return""})}}],kd=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||wd,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:$d}}var _d=!!e.useInsertionEffect&&e.useInsertionEffect,Fd=_d||function(e){return e()},Hd=_d||e.useLayoutEffect,Bd=e.createContext("undefined"!=typeof HTMLElement?kd({key:"css"}):null),Vd=(Bd.Provider,function(t){return(0,e.forwardRef)(function(n,r){var i=(0,e.useContext)(Bd);return t(n,i,r)})}),Ud=e.createContext({}),Yd={}.hasOwnProperty,Wd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Md(t,n,r),Fd(function(){return Cd(t,n,r)}),null},Kd=Vd(function(t,n,r){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=t[Wd],a=[i],s="";"string"==typeof t.className?s=Sd(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var l=Nd(a,void 0,e.useContext(Ud));s+=n.key+"-"+l.name;var c={};for(var u in t)Yd.call(t,u)&&"css"!==u&&u!==Wd&&(c[u]=t[u]);return c.className=s,r&&(c.ref=r),e.createElement(e.Fragment,null,e.createElement(Gd,{cache:n,serialized:l,isStringTag:"string"==typeof o}),e.createElement(o,c))});const qd=function(t=null){const n=e.useContext(Ud);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r},Xd=wu(),Zd=function(e=Xd){return qd(e)},Jd=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))};function Qd(e,t=0,n=1){return Jd(e,t,n)}function ep(e){if(e.type)return e;if("#"===e.charAt(0))return ep(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(kc(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(kc(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}const tp=(e,t)=>{try{return(e=>{const t=ep(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function np(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function rp(e){e=ep(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),np({type:s,values:l})}function ip(e){let t="hsl"===(e=ep(e)).type||"hsla"===e.type?ep(rp(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function op(e,t){return e=ep(e),t=Qd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,np(e)}function ap(e,t,n){try{return op(e,t)}catch(t){return e}}function sp(e,t){if(e=ep(e),t=Qd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return np(e)}function lp(e,t,n){try{return sp(e,t)}catch(t){return e}}function cp(e,t){if(e=ep(e),t=Qd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return np(e)}function up(e,t,n){try{return cp(e,t)}catch(t){return e}}function dp(e,t,n){try{return function(e,t=.15){return ip(e)>.5?sp(e,t):cp(e,t)}(e,t)}catch(t){return e}}const pp={black:"#000",white:"#fff"},hp={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"},mp="#f3e5f5",fp="#ce93d8",gp="#ba68c8",yp="#ab47bc",vp="#9c27b0",bp="#7b1fa2",xp="#e57373",Ip="#ef5350",wp="#f44336",kp="#d32f2f",Sp="#c62828",Mp="#ffb74d",Cp="#ffa726",Pp="#ff9800",Ep="#f57c00",Tp="#e65100",Ap="#e3f2fd",Op="#90caf9",jp="#42a5f5",Lp="#1976d2",Rp="#1565c0",Dp="#4fc3f7",$p="#29b6f6",zp="#03a9f4",Np="#0288d1",_p="#01579b",Fp="#81c784",Hp="#66bb6a",Bp="#4caf50",Vp="#388e3c",Up="#2e7d32",Yp="#1b5e20";function Wp(){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:pp.white,default:pp.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 Gp=Wp();function Kp(){return{text:{primary:pp.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:pp.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 qp=Kp();function Xp(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=cp(e.main,i):"dark"===t&&(e.dark=sp(e.main,o)))}function Zp(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||function(e="light"){return"dark"===e?{main:Op,light:Ap,dark:jp}:{main:Lp,light:jp,dark:Rp}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:fp,light:mp,dark:yp}:{main:vp,light:gp,dark:bp}}(t),s=e.error||function(e="light"){return"dark"===e?{main:wp,light:xp,dark:kp}:{main:kp,light:Ip,dark:Sp}}(t),l=e.info||function(e="light"){return"dark"===e?{main:$p,light:Dp,dark:Np}:{main:Np,light:zp,dark:_p}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Hp,light:Fp,dark:Vp}:{main:Up,light:Bp,dark:Yp}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Cp,light:Mp,dark:Ep}:{main:"#ed6c02",light:Pp,dark:Tp}}(t);function d(e){const t=function(e,t){const n=ip(e),r=ip(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,qp.text.primary)>=n?qp.text.primary:Gp.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(kc(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(kc(12,t?` (${t})`:"",JSON.stringify(e.main)));return Xp(e,"light",i,r),Xp(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e};let h;return"light"===t?h=Wp():"dark"===t&&(h=Kp()),mc({common:{...pp},mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:hp,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...h},i)}function Jp(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}function Qp(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const eh=(e,t,n,r=[])=>{let i=e;t.forEach((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})};function th(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:l}),eh(o,e,`var(${r})`,s),eh(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,i])=>{(!l||l&&!l([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):s([...n,t],i,r))})}(e),{css:i,vars:o,varsWithDefaults:a}}function nh(e){return Math.round(1e5*e)/1e5}const rh={textTransform:"uppercase"},ih='"Roboto", "Helvetica", "Arial", sans-serif';function oh(e,t){const{fontFamily:n=ih,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,h=u||(e=>e/l*p+"rem"),m=(e,t,r,i,o)=>({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r,...n===ih?{letterSpacing:`${nh(i/t)}em`}:{},...o,...c}),f={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(a,14,1.75,.4,rh),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,rh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mc({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...f},d,{clone:!1})}function ah(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const sh=["none",ah(0,2,1,-1,0,1,1,0,0,1,3,0),ah(0,3,1,-2,0,2,2,0,0,1,5,0),ah(0,3,3,-2,0,3,4,0,0,1,8,0),ah(0,2,4,-1,0,4,5,0,0,1,10,0),ah(0,3,5,-1,0,5,8,0,0,1,14,0),ah(0,3,5,-1,0,6,10,0,0,1,18,0),ah(0,4,5,-2,0,7,10,1,0,2,16,1),ah(0,5,5,-3,0,8,10,1,0,3,14,2),ah(0,5,6,-3,0,9,12,1,0,3,16,2),ah(0,6,6,-3,0,10,14,1,0,4,18,3),ah(0,6,7,-4,0,11,15,1,0,4,20,3),ah(0,7,8,-4,0,12,17,2,0,5,22,4),ah(0,7,8,-4,0,13,19,2,0,5,24,4),ah(0,7,9,-4,0,14,21,2,0,5,26,4),ah(0,8,9,-5,0,15,22,2,0,6,28,5),ah(0,8,10,-5,0,16,24,2,0,6,30,5),ah(0,8,11,-5,0,17,26,2,0,6,32,5),ah(0,9,11,-5,0,18,28,2,0,7,34,6),ah(0,9,12,-6,0,19,29,2,0,7,36,6),ah(0,10,13,-6,0,20,31,3,0,8,38,7),ah(0,10,13,-6,0,21,33,3,0,8,40,7),ah(0,10,14,-6,0,22,35,3,0,8,42,7),ah(0,11,14,-7,0,23,36,3,0,9,44,8),ah(0,11,15,-7,0,24,38,3,0,9,46,8)],lh={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)"},ch={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uh(e){return`${Math.round(e)}ms`}function dh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function ph(e){const t={...lh,...e.easing},n={...ch,...e.duration};return{getAutoHeightDuration:dh,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:uh(i)} ${o} ${"string"==typeof a?a:uh(a)}`).join(",")},...e,easing:t,duration:n}}const hh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function mh(e){return pc(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function fh(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;rmc(e,t),p),p.unstable_sxConfig={...vu,...c?.unstable_sxConfig},p.unstable_sx=function(e){return xu({sx:e,theme:this})},p.toRuntimeSource=fh,p};function yh(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const vh=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=yh(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function bh(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function xh(e){return"dark"===e?vh:[]}function Ih(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const wh=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{i[e]=n[e],delete n[e]}),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",t)]:i,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}var a;return r};function kh(e,t,n){!e[t]&&n&&(e[t]=n)}function Sh(e){return"string"==typeof e&&e.startsWith("hsl")?rp(e):e}function Mh(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tp(Sh(e[t])))}const Ch=e=>{try{return e()}catch(e){}};function Ph(e,t,n,r){if(!t)return;t=!0===t?{}:t;const i="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=Zp(t);return{palette:o,opacity:{...bh(o.mode),...n},overlays:r||xh(o.mode),...i}}({...t,palette:{mode:i,...t?.palette}}));const{palette:o,...a}=gh({...n,palette:{mode:i,...t?.palette}});return e[r]={...t,palette:o,opacity:{...bh(i),...t?.opacity},overlays:t?.overlays||xh(i)},a}function Eh(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=Ih,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&"light"!==u?"light":u),p=((e="mui")=>Jp(e))(o),{[d]:h,light:m,dark:f,...g}=n,y={...g};let v=h;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(v=!0),!v)throw new Error(kc(21,d));const b=Ph(y,v,c,d);m&&!y.light&&Ph(y,m,void 0,"light"),f&&!y.dark&&Ph(y,f,void 0,"dark");let x={defaultColorScheme:d,...b,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:p,colorSchemes:y,font:{...Qp(b.typography),...b.font},spacing:(I=c.spacing,"number"==typeof I?`${I}px`:"string"==typeof I||"function"==typeof I||Array.isArray(I)?I:"8px")};var I;Object.keys(x.colorSchemes).forEach(e=>{const t=x.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return p(e,t[r][i])};var r;if("light"===t.mode&&(kh(t.common,"background","#fff"),kh(t.common,"onBackground","#000")),"dark"===t.mode&&(kh(t.common,"background","#000"),kh(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{r[e]||(r[e]={})}),"light"===t.mode){kh(t.Alert,"errorColor",lp(t.error.light,.6)),kh(t.Alert,"infoColor",lp(t.info.light,.6)),kh(t.Alert,"successColor",lp(t.success.light,.6)),kh(t.Alert,"warningColor",lp(t.warning.light,.6)),kh(t.Alert,"errorFilledBg",n("palette-error-main")),kh(t.Alert,"infoFilledBg",n("palette-info-main")),kh(t.Alert,"successFilledBg",n("palette-success-main")),kh(t.Alert,"warningFilledBg",n("palette-warning-main")),kh(t.Alert,"errorFilledColor",Ch(()=>t.getContrastText(t.error.main))),kh(t.Alert,"infoFilledColor",Ch(()=>t.getContrastText(t.info.main))),kh(t.Alert,"successFilledColor",Ch(()=>t.getContrastText(t.success.main))),kh(t.Alert,"warningFilledColor",Ch(()=>t.getContrastText(t.warning.main))),kh(t.Alert,"errorStandardBg",up(t.error.light,.9)),kh(t.Alert,"infoStandardBg",up(t.info.light,.9)),kh(t.Alert,"successStandardBg",up(t.success.light,.9)),kh(t.Alert,"warningStandardBg",up(t.warning.light,.9)),kh(t.Alert,"errorIconColor",n("palette-error-main")),kh(t.Alert,"infoIconColor",n("palette-info-main")),kh(t.Alert,"successIconColor",n("palette-success-main")),kh(t.Alert,"warningIconColor",n("palette-warning-main")),kh(t.AppBar,"defaultBg",n("palette-grey-100")),kh(t.Avatar,"defaultBg",n("palette-grey-400")),kh(t.Button,"inheritContainedBg",n("palette-grey-300")),kh(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),kh(t.Chip,"defaultBorder",n("palette-grey-400")),kh(t.Chip,"defaultAvatarColor",n("palette-grey-700")),kh(t.Chip,"defaultIconColor",n("palette-grey-700")),kh(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),kh(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),kh(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),kh(t.LinearProgress,"primaryBg",up(t.primary.main,.62)),kh(t.LinearProgress,"secondaryBg",up(t.secondary.main,.62)),kh(t.LinearProgress,"errorBg",up(t.error.main,.62)),kh(t.LinearProgress,"infoBg",up(t.info.main,.62)),kh(t.LinearProgress,"successBg",up(t.success.main,.62)),kh(t.LinearProgress,"warningBg",up(t.warning.main,.62)),kh(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),kh(t.Slider,"primaryTrack",up(t.primary.main,.62)),kh(t.Slider,"secondaryTrack",up(t.secondary.main,.62)),kh(t.Slider,"errorTrack",up(t.error.main,.62)),kh(t.Slider,"infoTrack",up(t.info.main,.62)),kh(t.Slider,"successTrack",up(t.success.main,.62)),kh(t.Slider,"warningTrack",up(t.warning.main,.62));const e=dp(t.background.default,.8);kh(t.SnackbarContent,"bg",e),kh(t.SnackbarContent,"color",Ch(()=>t.getContrastText(e))),kh(t.SpeedDialAction,"fabHoverBg",dp(t.background.paper,.15)),kh(t.StepConnector,"border",n("palette-grey-400")),kh(t.StepContent,"border",n("palette-grey-400")),kh(t.Switch,"defaultColor",n("palette-common-white")),kh(t.Switch,"defaultDisabledColor",n("palette-grey-100")),kh(t.Switch,"primaryDisabledColor",up(t.primary.main,.62)),kh(t.Switch,"secondaryDisabledColor",up(t.secondary.main,.62)),kh(t.Switch,"errorDisabledColor",up(t.error.main,.62)),kh(t.Switch,"infoDisabledColor",up(t.info.main,.62)),kh(t.Switch,"successDisabledColor",up(t.success.main,.62)),kh(t.Switch,"warningDisabledColor",up(t.warning.main,.62)),kh(t.TableCell,"border",up(ap(t.divider,1),.88)),kh(t.Tooltip,"bg",ap(t.grey[700],.92))}if("dark"===t.mode){kh(t.Alert,"errorColor",up(t.error.light,.6)),kh(t.Alert,"infoColor",up(t.info.light,.6)),kh(t.Alert,"successColor",up(t.success.light,.6)),kh(t.Alert,"warningColor",up(t.warning.light,.6)),kh(t.Alert,"errorFilledBg",n("palette-error-dark")),kh(t.Alert,"infoFilledBg",n("palette-info-dark")),kh(t.Alert,"successFilledBg",n("palette-success-dark")),kh(t.Alert,"warningFilledBg",n("palette-warning-dark")),kh(t.Alert,"errorFilledColor",Ch(()=>t.getContrastText(t.error.dark))),kh(t.Alert,"infoFilledColor",Ch(()=>t.getContrastText(t.info.dark))),kh(t.Alert,"successFilledColor",Ch(()=>t.getContrastText(t.success.dark))),kh(t.Alert,"warningFilledColor",Ch(()=>t.getContrastText(t.warning.dark))),kh(t.Alert,"errorStandardBg",lp(t.error.light,.9)),kh(t.Alert,"infoStandardBg",lp(t.info.light,.9)),kh(t.Alert,"successStandardBg",lp(t.success.light,.9)),kh(t.Alert,"warningStandardBg",lp(t.warning.light,.9)),kh(t.Alert,"errorIconColor",n("palette-error-main")),kh(t.Alert,"infoIconColor",n("palette-info-main")),kh(t.Alert,"successIconColor",n("palette-success-main")),kh(t.Alert,"warningIconColor",n("palette-warning-main")),kh(t.AppBar,"defaultBg",n("palette-grey-900")),kh(t.AppBar,"darkBg",n("palette-background-paper")),kh(t.AppBar,"darkColor",n("palette-text-primary")),kh(t.Avatar,"defaultBg",n("palette-grey-600")),kh(t.Button,"inheritContainedBg",n("palette-grey-800")),kh(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),kh(t.Chip,"defaultBorder",n("palette-grey-700")),kh(t.Chip,"defaultAvatarColor",n("palette-grey-300")),kh(t.Chip,"defaultIconColor",n("palette-grey-300")),kh(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),kh(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),kh(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),kh(t.LinearProgress,"primaryBg",lp(t.primary.main,.5)),kh(t.LinearProgress,"secondaryBg",lp(t.secondary.main,.5)),kh(t.LinearProgress,"errorBg",lp(t.error.main,.5)),kh(t.LinearProgress,"infoBg",lp(t.info.main,.5)),kh(t.LinearProgress,"successBg",lp(t.success.main,.5)),kh(t.LinearProgress,"warningBg",lp(t.warning.main,.5)),kh(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),kh(t.Slider,"primaryTrack",lp(t.primary.main,.5)),kh(t.Slider,"secondaryTrack",lp(t.secondary.main,.5)),kh(t.Slider,"errorTrack",lp(t.error.main,.5)),kh(t.Slider,"infoTrack",lp(t.info.main,.5)),kh(t.Slider,"successTrack",lp(t.success.main,.5)),kh(t.Slider,"warningTrack",lp(t.warning.main,.5));const e=dp(t.background.default,.98);kh(t.SnackbarContent,"bg",e),kh(t.SnackbarContent,"color",Ch(()=>t.getContrastText(e))),kh(t.SpeedDialAction,"fabHoverBg",dp(t.background.paper,.15)),kh(t.StepConnector,"border",n("palette-grey-600")),kh(t.StepContent,"border",n("palette-grey-600")),kh(t.Switch,"defaultColor",n("palette-grey-300")),kh(t.Switch,"defaultDisabledColor",n("palette-grey-600")),kh(t.Switch,"primaryDisabledColor",lp(t.primary.main,.55)),kh(t.Switch,"secondaryDisabledColor",lp(t.secondary.main,.55)),kh(t.Switch,"errorDisabledColor",lp(t.error.main,.55)),kh(t.Switch,"infoDisabledColor",lp(t.info.main,.55)),kh(t.Switch,"successDisabledColor",lp(t.success.main,.55)),kh(t.Switch,"warningDisabledColor",lp(t.warning.main,.55)),kh(t.TableCell,"border",lp(ap(t.divider,1),.68)),kh(t.Tooltip,"bg",ap(t.grey[700],.92))}Mh(t.background,"default"),Mh(t.background,"paper"),Mh(t.common,"background"),Mh(t.common,"onBackground"),Mh(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&kh(t[e],"mainChannel",tp(Sh(n.main))),n.light&&kh(t[e],"lightChannel",tp(Sh(n.light))),n.dark&&kh(t[e],"darkChannel",tp(Sh(n.dark))),n.contrastText&&kh(t[e],"contrastTextChannel",tp(Sh(n.contrastText))),"text"===e&&(Mh(t[e],"primary"),Mh(t[e],"secondary")),"action"===e&&(n.active&&Mh(t[e],"active"),n.selected&&Mh(t[e],"selected")))})}),x=t.reduce((e,t)=>mc(e,t),x);const w={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:wh(x)},{vars:k,generateThemeVars:S,generateStyleSheets:M}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=th(l,t);let p=d;const h={},{[s]:m,...f}=o;if(Object.entries(f||{}).forEach(([e,n])=>{const{vars:r,css:i,varsWithDefaults:o}=th(n,t);p=mc(p,o),h[e]={css:i,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=th(m,t);p=mc(p,r),h[s]={css:e,vars:n}}function g(t,n){let r=i;if("class"===i&&(r=".%s"),"data"===i&&(r="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(r=`[${i}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=o[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=mc(e,t)}),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...u}),u);const{[i]:s,...l}=h;if(s){const{css:e}=s,t=o[i]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(i,{...l}),l)}return Object.entries(l).forEach(([e,{css:t}])=>{const i=o[e]?.palette?.mode,s=!r&&i?{colorScheme:i,...t}:{...t};a(n(e,{...s}),s)}),t}}}(x,w);return x.vars=k,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([e,t])=>{x[e]=t}),x.generateThemeVars=S,x.generateStyleSheets=M,x.generateSpacing=function(){return Vc(c.spacing,zc(this))},x.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=a,x.unstable_sxConfig={...vu,...c?.unstable_sxConfig},x.unstable_sx=function(e){return xu({sx:e,theme:this})},x.toRuntimeSource=fh,x}function Th(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Zp({...!0===n?{}:n.palette,mode:t})})}function Ah(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return gh(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const i=gh({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=c,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==c.light&&c.light,palette:i.palette},Th(i,"dark",c.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:i.palette},Th(i,"light",c.light)),i}return n||"light"in c||"light"!==s||(c.light=!0),Eh({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Oh=Ah(),jh="$$material";function Lh({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let i=Zd(n);return r&&(i=i[r]||i),uc({theme:i,name:t,props:e})}({props:e,name:t,defaultTheme:Oh,themeId:jh})}const Rh={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},Dh={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:e=>`Export as ${Rh[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"},$h=Dh;l({},Dh);const zh=["localeText"],Nh=e.createContext(null);function _h(t){const{localeText:n}=t,r=tt(t,zh),{localeText:i}=e.useContext(Nh)??{localeText:void 0},o=Lh({props:r,name:"MuiChartsLocalizationProvider"}),{children:a,localeText:s}=o,c=e.useMemo(()=>l({},$h,s,i,n),[s,i,n]),u=e.useMemo(()=>({localeText:c}),[c]);return(0,O.jsx)(Nh.Provider,{value:u,children:a})}function Fh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Wh(){const t=Vh(Yh.create).current;var n;return n=t.disposeEffect,e.useEffect(n,Uh),t}function Gh(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let e=0;ee.useContext(Kh)??!1,Xh=function({value:e,...t}){return(0,O.jsx)(Kh.Provider,{value:e??!0,...t})};function Zh(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function Jh(t){return parseInt(e.version,10)>=19?t?.props?.ref||null:t?.ref||null}var Qh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,em=Ed(function(e){return Qh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),tm=function(e){return"theme"!==e},nm=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?em:tm},rm=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},im=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Md(t,n,r),Fd(function(){return Cd(t,n,r)}),null},om=function t(n,r){var i,o,a=n.__emotion_real===n,s=a&&n.__emotion_base||n;void 0!==r&&(i=r.label,o=r.target);var c=rm(n,r,a),u=c||nm(s),d=!u("as");return function(){var p=arguments,h=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==p[0]||void 0===p[0].raw)h.push.apply(h,p);else{var m=p[0];h.push(m[0]);for(var f=p.length,g=1;g{"function"!=typeof e.style&&(e.style=sm(e.style))}),r}const cm=wu();function um(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function dm(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function pm(e){return e?(t,n)=>n[e]:null}function hm(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>hm(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?dm(r.style,n):r.style;else{const{variants:e,...i}=r;t=n?dm(sm(i),n):i}return mm(e,r.variants,[t],n)}return r?.isProcessed?n?dm(sm(r.style),n):r.style:n?dm(sm(r),n):r}function mm(e,t,n=[],r=void 0){let i;e:for(let o=0;ogm(e)&&"classes"!==e,vm=function(e={}){const{themeId:t,defaultTheme:n=cm,rootShouldForwardProp:r=um,slotShouldForwardProp:i=um}=e;function o(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=(e=>e.filter(e=>e!==xu))(e.__emotion_styles))}(e);const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=pm(fm(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",p=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,h=l||!1;let m=um;"Root"===a||"root"===a?m=r:a?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const f=function(e,t){return om(e,t)}(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return hm(t,e,t.theme.modularCssLayers?d:void 0)};if(pc(e)){const t=lm(e);return function(e){return t.variants?hm(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?dm(t.style,d):t.style}}return e},y=(...t)=>{const r=[],i=t.map(g),a=[];if(r.push(o),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const i={};for(const t in r)i[t]=hm(e,r[t],e.theme.modularCssLayers?"theme":void 0);return c(e,i)}),n&&!p&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?mm(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),h||a.push(xu),Array.isArray(i[0])){const e=i.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let o;o=[...t,...e,...n],o.raw=[...t,...e.raw,...n],r.unshift(o)}const s=[...r,...i,...a],l=f(...s);return e.muiName&&(l.muiName=e.muiName),l};return f.withConfig&&(y.withConfig=f.withConfig),y}}({themeId:jh,defaultTheme:Oh,rootShouldForwardProp:ym}),bm=vm;function xm(){const e=Zd(Oh);return e[jh]||e}const Im={theme:void 0},wm=function(e){let t,n;return function(r){let i=t;return void 0!==i&&r.theme===n||(Im.theme=r.theme,i=lm(e(Im)),t=i,n=r.theme),i}},km=e.createContext(void 0);const Sm=function({value:e,children:t}){return(0,O.jsx)(km.Provider,{value:e,children:t})};function Mm(t){return function({props:t,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?cc(i.defaultProps,r):i.styleOverrides||i.variants?r:cc(i,r)}({props:t,name:n,theme:{components:e.useContext(km)}})}(t)}const Cm=Sc;function Pm(e,t){return Pm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pm(e,t)}function Em(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pm(e,t)}const Tm=window.ReactDOM;var Am=a.n(Tm);const Om=n().createContext(null);var jm="unmounted",Lm="exited",Rm="entering",Dm="entered",$m="exiting",zm=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Lm,r.appearStatus=Rm):i=Dm:i=t.unmountOnExit||t.mountOnEnter?jm:Lm,r.state={status:i},r.nextCallback=null,r}Em(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===jm?{status:Lm}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Rm&&n!==Dm&&(t=Rm):n!==Rm&&n!==Dm||(t=$m)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Rm){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Am().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lm&&this.setState({status:jm})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Am().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:Rm},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Dm},function(){t.props.onEntered(o,a)})})})):this.safeSetState({status:Dm},function(){t.props.onEntered(o)})},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Am().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:$m},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Lm},function(){e.props.onExited(r)})})})):this.safeSetState({status:Lm},function(){e.props.onExited(r)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Am().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===jm)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,tt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n().createElement(Om.Provider,{value:null},"function"==typeof r?r(e,i):n().cloneElement(n().Children.only(r),i))},t}(n().Component);function Nm(){}zm.contextType=Om,zm.propTypes={},zm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nm,onEntering:Nm,onEntered:Nm,onExit:Nm,onExiting:Nm,onExited:Nm},zm.UNMOUNTED=jm,zm.EXITED=Lm,zm.ENTERING=Rm,zm.ENTERED=Dm,zm.EXITING=$m;const _m=zm,Fm=e=>e.scrollTop;function Hm(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:i.transitionDelay}}function Bm(...t){const n=e.useRef(void 0),r=e.useCallback(e=>{const n=t.map(t=>{if(null==t)return null;if("function"==typeof t){const n=t,r=n(e);return"function"==typeof r?r:()=>{n(null)}}return t.current=e,()=>{t.current=null}});return()=>{n.forEach(e=>e?.())}},t);return e.useMemo(()=>t.every(e=>null==e)?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))},t)}const Vm=Bm;function Um(e){return`scale(${e}, ${e**2})`}const Ym={entering:{opacity:1,transform:Um(1)},entered:{opacity:1,transform:"none"}},Wm="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gm=e.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:m,timeout:f="auto",TransitionComponent:g=_m,...y}=t,v=Wh(),b=e.useRef(),x=xm(),I=e.useRef(null),w=Vm(I,Jh(o),n),k=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},S=k(u),M=k((e,t)=>{Fm(e);const{duration:n,delay:r,easing:i}=Hm({style:m,timeout:f,easing:a},{mode:"enter"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Wm?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)}),C=k(c),P=k(h),E=k(e=>{const{duration:t,delay:n,easing:r}=Hm({style:m,timeout:f,easing:a},{mode:"exit"});let i;"auto"===f?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:Wm?i:.666*i,delay:Wm?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=Um(.75),d&&d(e)}),T=k(p);return(0,O.jsx)(g,{appear:i,in:s,nodeRef:I,onEnter:M,onEntered:C,onEntering:S,onExit:E,onExited:T,onExiting:P,addEndListener:e=>{"auto"===f&&v.start(b.current||0,e),r&&r(I.current,e)},timeout:"auto"===f?null:f,...y,children:(t,{ownerState:n,...r})=>e.cloneElement(o,{style:{opacity:0,transform:Um(.75),visibility:"exited"!==t||s?void 0:"hidden",...Ym[t],...m,...o.props.style},ref:w,...r})})});Gm&&(Gm.muiSupportAuto=!0);const Km=Gm,qm="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function Xm(e){return e&&e.ownerDocument||document}function Zm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jm(e){return e instanceof Zm(e).Element||e instanceof Element}function Qm(e){return e instanceof Zm(e).HTMLElement||e instanceof HTMLElement}function ef(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Zm(e).ShadowRoot||e instanceof ShadowRoot)}var tf=Math.max,nf=Math.min,rf=Math.round;function of(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function af(){return!/^((?!chrome|android).)*safari/i.test(of())}function sf(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Qm(e)&&(i=e.offsetWidth>0&&rf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&rf(r.height)/e.offsetHeight||1);var a=(Jm(e)?Zm(e):window).visualViewport,s=!af()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function lf(e){var t=Zm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function cf(e){return e?(e.nodeName||"").toLowerCase():null}function uf(e){return((Jm(e)?e.ownerDocument:e.document)||window.document).documentElement}function df(e){return sf(uf(e)).left+lf(e).scrollLeft}function pf(e){return Zm(e).getComputedStyle(e)}function hf(e){var t=pf(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function mf(e,t,n){void 0===n&&(n=!1);var r=Qm(t),i=Qm(t)&&function(e){var t=e.getBoundingClientRect(),n=rf(t.width)/e.offsetWidth||1,r=rf(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=uf(t),a=sf(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==cf(t)||hf(o))&&(s=function(e){return e!==Zm(e)&&Qm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:lf(e);var t}(t)),Qm(t)?((l=sf(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=df(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ff(e){var t=sf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gf(e){return"html"===cf(e)?e:e.assignedSlot||e.parentNode||(ef(e)?e.host:null)||uf(e)}function yf(e){return["html","body","#document"].indexOf(cf(e))>=0?e.ownerDocument.body:Qm(e)&&hf(e)?e:yf(gf(e))}function vf(e,t){var n;void 0===t&&(t=[]);var r=yf(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Zm(r),a=i?[o].concat(o.visualViewport||[],hf(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(vf(gf(a)))}function bf(e){return["table","td","th"].indexOf(cf(e))>=0}function xf(e){return Qm(e)&&"fixed"!==pf(e).position?e.offsetParent:null}function If(e){for(var t=Zm(e),n=xf(e);n&&bf(n)&&"static"===pf(n).position;)n=xf(n);return n&&("html"===cf(n)||"body"===cf(n)&&"static"===pf(n).position)?t:n||function(e){var t=/firefox/i.test(of());if(/Trident/i.test(of())&&Qm(e)&&"fixed"===pf(e).position)return null;var n=gf(e);for(ef(n)&&(n=n.host);Qm(n)&&["html","body"].indexOf(cf(n))<0;){var r=pf(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var wf="top",kf="bottom",Sf="right",Mf="left",Cf="auto",Pf=[wf,kf,Sf,Mf],Ef="start",Tf="end",Af="viewport",Of="popper",jf=Pf.reduce(function(e,t){return e.concat([t+"-"+Ef,t+"-"+Tf])},[]),Lf=[].concat(Pf,[Cf]).reduce(function(e,t){return e.concat([t,t+"-"+Ef,t+"-"+Tf])},[]),Rf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Df(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}var $f={placement:"bottom",modifiers:[],strategy:"absolute"};function zf(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Vf(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Ff(i):null,a=i?Hf(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case wf:t={x:s,y:n.y-r.height};break;case kf:t={x:s,y:n.y+n.height};break;case Sf:t={x:n.x+n.width,y:l};break;case Mf:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Bf(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ef:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Tf:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Uf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yf(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,m=a.y,f=void 0===m?0:m,g="function"==typeof u?u({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Mf,x=wf,I=window;if(c){var w=If(n),k="clientHeight",S="clientWidth";w===Zm(n)&&"static"!==pf(w=uf(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(i===wf||(i===Mf||i===Sf)&&o===Tf)&&(x=kf,f-=(d&&w===I&&I.visualViewport?I.visualViewport.height:w[k])-r.height,f*=l?1:-1),i!==Mf&&(i!==wf&&i!==kf||o!==Tf)||(b=Sf,h-=(d&&w===I&&I.visualViewport?I.visualViewport.width:w[S])-r.width,h*=l?1:-1)}var M,C=Object.assign({position:s},c&&Uf),P=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:rf(n*i)/i||0,y:rf(r*i)/i||0}}({x:h,y:f},Zm(n)):{x:h,y:f};return h=P.x,f=P.y,l?Object.assign({},C,((M={})[x]=v?"0":"",M[b]=y?"0":"",M.transform=(I.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",M)):Object.assign({},C,((t={})[x]=v?f+"px":"",t[b]=y?h+"px":"",t.transform="",t))}const Wf={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Qm(i)&&cf(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Qm(r)&&cf(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};var Gf={left:"right",right:"left",bottom:"top",top:"bottom"};function Kf(e){return e.replace(/left|right|bottom|top/g,function(e){return Gf[e]})}var qf={start:"end",end:"start"};function Xf(e){return e.replace(/start|end/g,function(e){return qf[e]})}function Zf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ef(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qf(e,t,n){return t===Af?Jf(function(e,t){var n=Zm(e),r=uf(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=af();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+df(e),y:l}}(e,n)):Jm(t)?function(e,t){var n=sf(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Jf(function(e){var t,n=uf(e),r=lf(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=tf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=tf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+df(e),l=-r.scrollTop;return"rtl"===pf(i||n).direction&&(s+=tf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(uf(e)))}function eg(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function tg(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ng(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Af:c,d=n.elementContext,p=void 0===d?Of:d,h=n.altBoundary,m=void 0!==h&&h,f=n.padding,g=void 0===f?0:f,y=eg("number"!=typeof g?g:tg(g,Pf)),v=p===Of?"reference":Of,b=e.rects.popper,x=e.elements[m?v:p],I=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=vf(gf(e)),n=["absolute","fixed"].indexOf(pf(e).position)>=0&&Qm(e)?If(e):e;return Jm(n)?t.filter(function(e){return Jm(e)&&Zf(e,n)&&"body"!==cf(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(t,n){var i=Qf(e,n,r);return t.top=tf(i.top,t.top),t.right=nf(i.right,t.right),t.bottom=nf(i.bottom,t.bottom),t.left=tf(i.left,t.left),t},Qf(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Jm(x)?x:x.contextElement||uf(e.elements.popper),l,u,a),w=sf(e.elements.reference),k=Vf({reference:w,element:b,strategy:"absolute",placement:i}),S=Jf(Object.assign({},b,k)),M=p===Of?S:w,C={top:I.top-M.top+y.top,bottom:M.bottom-I.bottom+y.bottom,left:I.left-M.left+y.left,right:M.right-I.right+y.right},P=e.modifiersData.offset;if(p===Of&&P){var E=P[i];Object.keys(C).forEach(function(e){var t=[Sf,kf].indexOf(e)>=0?1:-1,n=[wf,kf].indexOf(e)>=0?"y":"x";C[e]+=E[n]*t})}return C}const rg={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=void 0===h||h,f=n.allowedAutoPlacements,g=t.options.placement,y=Ff(g),v=l||(y!==g&&m?function(e){if(Ff(e)===Cf)return[];var t=Kf(e);return[Xf(e),t,Xf(t)]}(g):[Kf(g)]),b=[g].concat(v).reduce(function(e,n){return e.concat(Ff(n)===Cf?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Lf:l,u=Hf(r),d=u?s?jf:jf.filter(function(e){return Hf(e)===u}):Pf,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var h=p.reduce(function(t,n){return t[n]=ng(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Ff(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:f}):n)},[]),x=t.rects.reference,I=t.rects.popper,w=new Map,k=!0,S=b[0],M=0;M=0,A=T?"width":"height",O=ng(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),j=T?E?Sf:Mf:E?kf:wf;x[A]>I[A]&&(j=Kf(j));var L=Kf(j),R=[];if(o&&R.push(O[P]<=0),s&&R.push(O[j]<=0,O[L]<=0),R.every(function(e){return e})){S=C,k=!1;break}w.set(C,R)}if(k)for(var D=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},$=m?3:1;$>0&&"break"!==D($);$--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ig(e,t,n){return tf(e,nf(t,n))}const og={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,m=n.tetherOffset,f=void 0===m?0:m,g=ng(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Ff(t.placement),v=Hf(t.placement),b=!v,x=Bf(y),I="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,M="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(o){var T,A="y"===x?wf:Mf,O="y"===x?kf:Sf,j="y"===x?"height":"width",L=w[x],R=L+g[A],D=L-g[O],$=h?-S[j]/2:0,z=v===Ef?k[j]:S[j],N=v===Ef?-S[j]:-k[j],_=t.elements.arrow,F=h&&_?ff(_):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[A],V=H[O],U=ig(0,k[j],F[j]),Y=b?k[j]/2-$-U-B-C.mainAxis:z-U-B-C.mainAxis,W=b?-k[j]/2+$+U+V+C.mainAxis:N+U+V+C.mainAxis,G=t.elements.arrow&&If(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,q=null!=(T=null==P?void 0:P[x])?T:0,X=L+W-q,Z=ig(h?nf(R,L+Y-q-K):R,L,h?tf(D,X):D);w[x]=Z,E[x]=Z-L}if(s){var J,Q="x"===x?wf:Mf,ee="x"===x?kf:Sf,te=w[I],ne="y"===I?"height":"width",re=te+g[Q],ie=te-g[ee],oe=-1!==[wf,Mf].indexOf(y),ae=null!=(J=null==P?void 0:P[I])?J:0,se=oe?re:te-k[ne]-S[ne]-ae+C.altAxis,le=oe?te+k[ne]+S[ne]-ae-C.altAxis:ie,ce=h&&oe?function(e,t,n){var r=ig(e,t,n);return r>n?n:r}(se,te,le):ig(h?se:re,te,h?le:ie);w[I]=ce,E[I]=ce-te}t.modifiersData[r]=E}},requiresIfExists:["offset"]},ag={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ff(n.placement),l=Bf(s),c=[Mf,Sf].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return eg("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:tg(e,Pf))}(i.padding,n),d=ff(o),p="y"===l?wf:Mf,h="y"===l?kf:Sf,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],f=a[l]-n.rects.reference[l],g=If(o),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=m/2-f/2,b=u[p],x=y-d[c]-u[h],I=y/2-d[c]/2+v,w=ig(b,I,x),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-I,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Zf(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sg(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lg(e){return[wf,Sf,kf,Mf].some(function(t){return e[t]>=0})}var cg=Nf({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Zm(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,_f)}),s&&l.addEventListener("resize",n.update,_f),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,_f)}),s&&l.removeEventListener("resize",n.update,_f)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Vf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Ff(t.placement),variation:Hf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yf(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yf(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Wf,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Lf.reduce(function(e,n){return e[n]=function(e,t,n){var r=Ff(e),i=[Mf,wf].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Mf,Sf].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},rg,og,ag,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ng(t,{elementContext:"reference"}),s=ng(t,{altBoundary:!0}),l=sg(a,r),c=sg(s,i,o),u=lg(l),d=lg(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const ug=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},dg=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n},pg=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},hg=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=Hh(n?.className,o,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=dg({...i,...r}),s=pg(r),l=pg(i),c=t(a),u=Hh(c?.className,n?.className,o,i?.className,r?.className),d={...c?.style,...n?.style,...i?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}},mg=function(e,t,n){return"function"==typeof e?e(t,n):e},fg=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:mg(n,r),{props:s,internalRef:l}=hg({...o,externalSlotProps:a}),c=Bm(l,a?.ref,e.additionalProps?.ref);return ug(t,{...s,ref:c},r)};function gg(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const yg=e.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=e.useState(null),l=Bm(e.isValidElement(r)?Jh(r):null,n);if(qm(()=>{o||s(function(e){return"function"==typeof e?e():e}(i)||document.body)},[i,o]),qm(()=>{if(a&&!o)return gg(n,a),()=>{gg(n,null)}},[n,a,o]),o){if(e.isValidElement(r)){const t={ref:l};return e.cloneElement(r,t)}return r}return a?Tm.createPortal(r,a):a}),vg=e=>e,bg=(()=>{let e=vg;return{configure(t){e=t},generate:t=>e(t),reset(){e=vg}}})(),xg={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 Ig(e,t,n="Mui"){const r=xg[t];return r?`${n}-${r}`:`${bg.generate(e)}-${t}`}function wg(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Ig(e,t,n)}),r}function kg(e){return Ig("MuiPopper",e)}function Sg(e){return"function"==typeof e?e():e}wg("MuiPopper",["root"]);const Mg={},Cg=e.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:h={},TransitionProps:m,ownerState:f,...g}=t,y=e.useRef(null),v=Bm(y,n),b=e.useRef(null),x=Bm(b,d),I=e.useRef(x);qm(()=>{I.current=x},[x]),e.useImperativeHandle(d,()=>b.current,[]);const w=function(e,t){if("ltr"===t)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}}(c,o),[k,S]=e.useState(w),[M,C]=e.useState(Sg(r));e.useEffect(()=>{b.current&&b.current.forceUpdate()}),e.useEffect(()=>{r&&C(Sg(r))},[r]),qm(()=>{if(!M||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{S(e.placement)}}];null!=s&&(e=e.concat(s)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=cg(M,y.current,{placement:w,...u,modifiers:e});return I.current(t),()=>{t.destroy(),I.current(null)}},[M,a,s,l,u,w]);const P={placement:k};null!==m&&(P.TransitionProps=m);const E=(e=>{const{classes:t}=e;return Gh({root:["root"]},kg,t)})(t),T=h.root??"div",A=fg({elementType:T,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:E.root});return(0,O.jsx)(T,{...A,children:"function"==typeof i?i(P):i})}),Pg=bm(e.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=Mg,popperRef:h,style:m,transition:f=!1,slotProps:g={},slots:y={},...v}=t,[b,x]=e.useState(!0);if(!l&&!u&&(!f||b))return null;let I;if(o)I=o;else if(r){const e=Sg(r);I=e&&void 0!==e.nodeType?Xm(e).body:Xm(null).body}const w=u||!l||f&&!b?void 0:"none",k=f?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,O.jsx)(yg,{disablePortal:s,container:I,children:(0,O.jsx)(Cg,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:f?!b:u,placement:d,popperOptions:p,popperRef:h,slotProps:g,slots:y,...v,style:{position:"fixed",top:0,left:0,display:w,...m},TransitionProps:k,children:i})})}),{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Eg=e.forwardRef(function(e,t){const n=qh(),r=Mm({props:e,name:"MuiPopper"}),{anchorEl:i,component:o,components:a,componentsProps:s,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:h,popperOptions:m,popperRef:f,transition:g,slots:y,slotProps:v,...b}=r,x=y?.root??a?.Root,I={anchorEl:i,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:h,popperOptions:m,popperRef:f,transition:g,...b};return(0,O.jsx)(Pg,{as:o,direction:n?"rtl":"ltr",slots:{root:x},slotProps:v??s,...I,ref:t})}),Tg=Eg,Ag=function(t){const n=e.useRef(t);return qm(()=>{n.current=t}),e.useRef((...e)=>(0,n.current)(...e)).current},Og=Ag;let jg=0;const Lg={...e}.useId;function Rg(t){if(void 0!==Lg){const e=Lg();return t??e}return function(t){const[n,r]=e.useState(t),i=t||n;return e.useEffect(()=>{null==n&&(jg+=1,r(`mui-${jg}`))},[n]),i}(t)}const Dg=Rg;function $g({controlled:t,default:n,name:r,state:i="value"}){const{current:o}=e.useRef(void 0!==t),[a,s]=e.useState(n);return[o?t:a,e.useCallback(e=>{o||s(e)},[])]}const zg=$g;function Ng(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=o,h=u[e]||r,m=mg(d[e],i),{props:{component:f,...g},internalRef:y}=hg({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m}),v=Bm(y,m?.ref,t.ref),b="root"===e?f||c:f;return[h,ug(h,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},i)]}function _g(e){return Ig("MuiTooltip",e)}const Fg=wg("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Hg(e){return Math.round(1e5*e)/1e5}const Bg=bm(Tg,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(wm(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Fg.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Fg.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Fg.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Fg.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Fg.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Fg.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Fg.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Fg.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Vg=bm("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Cm(n.placement.split("-")[0])}`]]}})(wm(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:op(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Fg.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Fg.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Fg.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Fg.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Hg(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Fg.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Fg.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Fg.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Fg.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Fg.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Fg.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Fg.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Fg.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Fg.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Fg.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Ug=bm("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(wm(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:op(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Yg=!1;const Wg=new Yh;let Gg={x:0,y:0};function Kg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const qg=e.forwardRef(function(t,n){const r=Mm({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:f=0,enterTouchDelay:g=700,followCursor:y=!1,id:v,leaveDelay:b=0,leaveTouchDelay:x=1500,onClose:I,onOpen:w,open:k,placement:S="bottom",PopperComponent:M,PopperProps:C={},slotProps:P={},slots:E={},title:T,TransitionComponent:A,TransitionProps:j,...L}=r,R=e.isValidElement(o)?o:(0,O.jsx)("span",{children:o}),D=xm(),$=qh(),[z,N]=e.useState(),[_,F]=e.useState(null),H=e.useRef(!1),B=p||y,V=Wh(),U=Wh(),Y=Wh(),W=Wh(),[G,K]=zg({controlled:k,default:!1,name:"Tooltip",state:"open"});let q=G;const X=Dg(v),Z=e.useRef(),J=Og(()=>{void 0!==Z.current&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),W.clear()});e.useEffect(()=>J,[J]);const Q=e=>{Wg.clear(),Yg=!0,K(!0),w&&!q&&w(e)},ee=Og(e=>{Wg.start(800+b,()=>{Yg=!1}),K(!1),I&&q&&I(e),V.start(D.transitions.duration.shortest,()=>{H.current=!1})}),te=e=>{H.current&&"touchstart"!==e.type||(z&&z.removeAttribute("title"),U.clear(),Y.clear(),m||Yg&&f?U.start(Yg?f:m,()=>{Q(e)}):Q(e))},ne=e=>{U.clear(),Y.start(b,()=>{ee(e)})},[,re]=e.useState(!1),ie=e=>{Zh(e.target)||(re(!1),ne(e))},oe=e=>{z||N(e.currentTarget),Zh(e.target)&&(re(!0),te(e))},ae=e=>{H.current=!0;const t=R.props;t.onTouchStart&&t.onTouchStart(e)};e.useEffect(()=>{if(q)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}},[ee,q]);const se=Vm(Jh(R),N,n);T||0===T||(q=!1);const le=e.useRef(),ce={},ue="string"==typeof T;c?(ce.title=q||!ue||d?null:T,ce["aria-describedby"]=q?X:null):(ce["aria-label"]=ue?T:null,ce["aria-labelledby"]=q&&!ue?X:null);const de={...ce,...L,...R.props,className:Hh(L.className,R.props.className),onTouchStart:ae,ref:se,...y?{onMouseMove:e=>{const t=R.props;t.onMouseMove&&t.onMouseMove(e),Gg={x:e.clientX,y:e.clientY},le.current&&le.current.update()}}:{}},pe={};h||(de.onTouchStart=e=>{ae(e),Y.clear(),V.clear(),J(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",W.start(g,()=>{document.body.style.WebkitUserSelect=Z.current,te(e)})},de.onTouchEnd=e=>{R.props.onTouchEnd&&R.props.onTouchEnd(e),J(),Y.start(x,()=>{ee(e)})}),d||(de.onMouseOver=Kg(te,de.onMouseOver),de.onMouseLeave=Kg(ne,de.onMouseLeave),B||(pe.onMouseOver=te,pe.onMouseLeave=ne)),u||(de.onFocus=Kg(oe,de.onFocus),de.onBlur=Kg(ie,de.onBlur),B||(pe.onFocus=oe,pe.onBlur=ie));const he={...r,isRtl:$,arrow:i,disableInteractive:B,placement:S,PopperComponentProp:M,touch:H.current},me="function"==typeof P.popper?P.popper(he):P.popper,fe=e.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(_),options:{element:_,padding:4}}];return C.popperOptions?.modifiers&&(e=e.concat(C.popperOptions.modifiers)),me?.popperOptions?.modifiers&&(e=e.concat(me.popperOptions.modifiers)),{...C.popperOptions,...me?.popperOptions,modifiers:e}},[_,C.popperOptions,me?.popperOptions]),ge=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e;return Gh({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Cm(o.split("-")[0])}`],arrow:["arrow"]},_g,t)})(he),ye="function"==typeof P.transition?P.transition(he):P.transition,ve={slots:{popper:s.Popper,transition:s.Transition??A,tooltip:s.Tooltip,arrow:s.Arrow,...E},slotProps:{arrow:P.arrow??l.arrow,popper:{...C,...me??l.popper},tooltip:P.tooltip??l.tooltip,transition:{...j,...ye??l.transition}}},[be,xe]=Ng("popper",{elementType:Bg,externalForwardedProps:ve,ownerState:he,className:Hh(ge.popper,C?.className)}),[Ie,we]=Ng("transition",{elementType:Km,externalForwardedProps:ve,ownerState:he}),[ke,Se]=Ng("tooltip",{elementType:Vg,className:ge.tooltip,externalForwardedProps:ve,ownerState:he}),[Me,Ce]=Ng("arrow",{elementType:Ug,className:ge.arrow,externalForwardedProps:ve,ownerState:he,ref:F});return(0,O.jsxs)(e.Fragment,{children:[e.cloneElement(R,de),(0,O.jsx)(be,{as:M??Tg,placement:S,anchorEl:y?{getBoundingClientRect:()=>({top:Gg.y,left:Gg.x,right:Gg.x,bottom:Gg.y,width:0,height:0})}:z,popperRef:le,open:!!z&&q,id:X,transition:!0,...pe,...xe,popperOptions:fe,children:({TransitionProps:e})=>(0,O.jsx)(Ie,{timeout:D.transitions.duration.shorter,...e,...we,children:(0,O.jsxs)(ke,{...Se,children:[T,i?(0,O.jsx)(Me,{...Ce}):null]})})})]})}),Xg=Xm,Zg=e.createContext({});function Jg(e){return Ig("MuiList",e)}wg("MuiList",["root","padding","dense","subheader"]);const Qg=bm("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ey=e.forwardRef(function(t,n){const r=Mm({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=e.useMemo(()=>({dense:s}),[s]),p={...r,component:a,dense:s,disablePadding:l},h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Gh({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Jg,t)})(p);return(0,O.jsx)(Zg.Provider,{value:d,children:(0,O.jsxs)(Qg,{as:a,className:Hh(h.root,o),ref:n,ownerState:p,...u,children:[c,i]})})}),ty=ey;function ny(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const ry=ny,iy=qm;function oy(e){return Xm(e).defaultView||window}const ay=oy;function sy(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ly(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function cy(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function uy(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&cy(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const dy=e.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=t,h=e.useRef(null),m=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iy(()=>{i&&h.current.focus()},[i]),e.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!h.current.style.width;if(e.clientHeight{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===n&&(g+=1,g>=a.length&&(g=-1))});const y=e.Children.map(a,(t,n)=>{if(n===g){const n={};return o&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t});return(0,O.jsx)(ty,{role:"menu",ref:f,className:s,onKeyDown:e=>{const t=h.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=Xg(t).activeElement;if("ArrowDown"===n)e.preventDefault(),uy(t,r,c,l,sy);else if("ArrowUp"===n)e.preventDefault(),uy(t,r,c,l,ly);else if("Home"===n)e.preventDefault(),uy(t,null,c,l,sy);else if("End"===n)e.preventDefault(),uy(t,null,c,l,ly);else if(1===n.length){const i=m.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&cy(r,i);i.previousKeyMatched&&(s||uy(t,r,!1,l,sy,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:i?0:-1,...p,children:y})});function py(e){return Ig("MuiDivider",e)}const hy=wg("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),my=bm("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(wm(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:op(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),fy=bm("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(wm(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),gy=e.forwardRef(function(e,t){const n=Mm({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,orientation:a="horizontal",component:s=(i||"vertical"===a?"div":"hr"),flexItem:l=!1,light:c=!1,role:u=("hr"!==s?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...h}=n,m={...n,absolute:r,component:s,flexItem:l,light:c,orientation:a,role:u,textAlign:d,variant:p},f=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Gh({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},py,r)})(m);return(0,O.jsx)(my,{as:s,className:Hh(f.root,o),role:u,ref:t,ownerState:m,"aria-orientation":"separator"!==u||"hr"===s&&"vertical"!==a?void 0:a,...h,children:i?(0,O.jsx)(fy,{className:f.wrapper,ownerState:m,children:i}):null})});gy&&(gy.muiSkipListHighlight=!0);const yy=gy;function vy(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}class by{static create(){return new by}static use(){const t=Vh(by.create).current,[n,r]=e.useState(!1);return t.shouldMount=n,t.setShouldMount=r,e.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function xy(t,n){var r=Object.create(null);return t&&e.Children.map(t,function(e){return e}).forEach(function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)}),r}function Iy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function wy(t,n,r){var i=xy(t.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Cm(n.color)}`]]}})(wm(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:qy||{animation:`${Gy} 1.4s linear infinite`}},...Object.entries(e.palette).filter(vy()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Jy=bm("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Qy=bm("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Cm(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(wm(({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:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Xy||{animation:`${Ky} 1.4s ease-in-out infinite`}}]}))),ev=e.forwardRef(function(e,t){const n=Mm({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate",...d}=n,p={...n,color:i,disableShrink:o,size:a,thickness:l,value:c,variant:u},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e;return Gh({root:["root",n,`color${Cm(r)}`],svg:["svg"],circle:["circle",`circle${Cm(n)}`,i&&"circleDisableShrink"]},Wy,t)})(p),m={},f={},g={};if("determinate"===u){const e=2*Math.PI*((44-l)/2);m.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,f.transform="rotate(-90deg)"}return(0,O.jsx)(Zy,{className:Hh(h.root,r),style:{width:a,height:a,...f,...s},ownerState:p,ref:t,role:"progressbar",...g,...d,children:(0,O.jsx)(Jy,{className:h.svg,ownerState:p,viewBox:"22 22 44 44",children:(0,O.jsx)(Qy,{className:h.circle,style:m,ownerState:p,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})})}),tv=ev;function nv(e){return Ig("MuiIconButton",e)}const rv=wg("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),iv=bm(Yy,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Cm(n.color)}`],n.edge&&t[`edge${Cm(n.edge)}`],t[`size${Cm(n.size)}`]]}})(wm(({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:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:op(e.palette.action.active,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}}]})),wm(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(vy()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(vy()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:op((e.vars||e).palette[t].main,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)}}],[`&.${rv.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${rv.loading}`]:{color:"transparent"}}))),ov=bm("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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"}}]})),av=e.forwardRef(function(e,t){const n=Mm({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium",id:u,loading:d=null,loadingIndicator:p,...h}=n,m=Dg(u),f=p??(0,O.jsx)(tv,{"aria-labelledby":m,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,loading:d,loadingIndicator:f,size:c},y=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o,loading:a}=e;return Gh({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${Cm(r)}`,i&&`edge${Cm(i)}`,`size${Cm(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},nv,t)})(g);return(0,O.jsxs)(iv,{id:d?m:u,className:Hh(y.root,o),centerRipple:!0,focusRipple:!l,disabled:s||d,ref:t,...h,ownerState:g,children:["boolean"==typeof d&&(0,O.jsx)("span",{className:y.loadingWrapper,style:{display:"contents"},children:(0,O.jsx)(ov,{className:y.loadingIndicator,ownerState:g,children:d&&f})}),i]})}),sv=av;function lv(e){return Ig("MuiButton",e)}const cv=wg("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"]),uv=e.createContext({}),dv=e.createContext(void 0),pv=[{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}}}],hv=bm(Yy,{shouldForwardProp:e=>ym(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Cm(n.color)}`],t[`size${Cm(n.size)}`],t[`${n.variant}Size${Cm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(wm(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?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"},[`&.${cv.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]},[`&.${cv.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${cv.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)",[`&.${cv.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(vy()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:op(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:op(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:op(e.palette[t].main,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:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:op(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:op(e.palette.text.primary,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"},[`&.${cv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cv.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}),[`&.${cv.loading}`]:{color:"transparent"}}}]}})),mv=bm("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Cm(n.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}},...pv]})),fv=bm("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Cm(n.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}},...pv]})),gv=bm("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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}}]})),yv=bm("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),vv=e.forwardRef(function(t,n){const r=e.useContext(uv),i=e.useContext(dv),o=Mm({props:cc(r,t),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:m,fullWidth:f=!1,id:g,loading:y=null,loadingIndicator:v,loadingPosition:b="center",size:x="medium",startIcon:I,type:w,variant:k="text",...S}=o,M=Dg(g),C=v??(0,O.jsx)(tv,{"aria-labelledby":M,color:"inherit",size:16}),P={...o,color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:f,loading:y,loadingIndicator:C,loadingPosition:b,size:x,type:w,variant:k},E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,c=Gh({root:["root",a&&"loading",o,`${o}${Cm(t)}`,`size${Cm(i)}`,`${o}Size${Cm(i)}`,`color${Cm(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Cm(s)}`],startIcon:["icon","startIcon",`iconSize${Cm(i)}`],endIcon:["icon","endIcon",`iconSize${Cm(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},lv,l);return{...l,...c}})(P),T=(I||y&&"start"===b)&&(0,O.jsx)(mv,{className:E.startIcon,ownerState:P,children:I||(0,O.jsx)(yv,{className:E.loadingIconPlaceholder,ownerState:P})}),A=(h||y&&"end"===b)&&(0,O.jsx)(fv,{className:E.endIcon,ownerState:P,children:h||(0,O.jsx)(yv,{className:E.loadingIconPlaceholder,ownerState:P})}),j=i||"",L="boolean"==typeof y?(0,O.jsx)("span",{className:E.loadingWrapper,style:{display:"contents"},children:y&&(0,O.jsx)(gv,{className:E.loadingIndicator,ownerState:P,children:C})}):null;return(0,O.jsxs)(hv,{ownerState:P,className:Hh(r.className,E.root,c,j),component:l,disabled:u||y,focusRipple:!p,focusVisibleClassName:Hh(E.focusVisible,m),ref:n,type:w,id:y?M:g,...S,classes:E,children:[T,"end"!==b&&L,a,"end"===b&&L,A]})}),bv=l({},{baseButton:vv,baseIconButton:sv},{});function xv(e){return Ig("MuiListItemIcon",e)}const Iv=wg("MuiListItemIcon",["root","alignItemsFlexStart"]);function wv(e){return Ig("MuiListItemText",e)}const kv=wg("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Sv(e){return Ig("MuiMenuItem",e)}const Mv=wg("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Cv=bm(Yy,{shouldForwardProp:e=>ym(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(wm(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:op(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:op(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:op(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:op(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hy.inset}`]:{marginLeft:52},[`& .${kv.root}`]:{marginTop:0,marginBottom:0},[`& .${kv.inset}`]:{paddingLeft:36},[`& .${Iv.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Iv.root} svg`]:{fontSize:"1.25rem"}}}]}))),Pv=e.forwardRef(function(t,n){const r=Mm({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...h}=r,m=e.useContext(Zg),f=e.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),g=e.useRef(null);iy(()=>{i&&g.current&&g.current.focus()},[i]);const y={...r,dense:f.dense,divider:s,disableGutters:l},v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s=Gh({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Sv,a);return{...a,...s}})(r),b=Vm(g,n);let x;return r.disabled||(x=void 0!==d?d:-1),(0,O.jsx)(Zg.Provider,{value:f,children:(0,O.jsx)(Cv,{ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:Hh(v.focusVisible,c),className:Hh(v.root,p),...h,ownerState:y,classes:v})})}),Ev=Pv,Tv=bm("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(wm(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Av=e.forwardRef(function(t,n){const r=Mm({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,a=e.useContext(Zg),s={...r,alignItems:a.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Gh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},xv,n)})(s);return(0,O.jsx)(Tv,{className:Hh(l.root,i),ownerState:s,ref:n,...o})});function Ov(e){return Ig("MuiTypography",e)}const jv=wg("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Rv=function(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??vu;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return pc(n)?{...r,...n}:r}:{...r,...t},{...i,sx:o}},Dv=bm("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Cm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(wm(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(vy()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Cm(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),$v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zv=e.forwardRef(function(e,t){const{color:n,...r}=Mm({props:e,name:"MuiTypography"}),i=Rv({...r,...!Lv[n]&&{color:n}}),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=$v,...h}=i,m={...i,align:o,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p},f=s||(u?"p":p[d]||$v[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Gh({root:["root",o,"inherit"!==e.align&&`align${Cm(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},Ov,a)})(m);return(0,O.jsx)(Dv,{as:f,ref:t,className:Hh(g.root,a),...h,ownerState:m,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...h.style}})}),Nv=zv,_v=bm("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kv.primary}`]:t.primary},{[`& .${kv.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${jv.root}:where(& .${kv.primary})`]:{display:"block"},[`.${jv.root}:where(& .${kv.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Fv=e.forwardRef(function(t,n){const r=Mm({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:h={},...m}=r,{dense:f}=e.useContext(Zg);let g=null!=l?l:i,y=u;const v={...r,disableTypography:a,inset:s,primary:!!g,secondary:!!y,dense:f},b=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Gh({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},wv,t)})(v),x={slots:p,slotProps:{primary:c,secondary:d,...h}},[I,w]=Ng("root",{className:Hh(b.root,o),elementType:_v,externalForwardedProps:{...x,...m},ownerState:v,ref:n}),[k,S]=Ng("primary",{className:b.primary,elementType:Nv,externalForwardedProps:x,ownerState:v}),[M,C]=Ng("secondary",{className:b.secondary,elementType:Nv,externalForwardedProps:x,ownerState:v});return null==g||g.type===Nv||a||(g=(0,O.jsx)(k,{variant:f?"body2":"body1",component:S?.variant?void 0:"span",...S,children:g})),null==y||y.type===Nv||a||(y=(0,O.jsx)(M,{variant:"body2",color:"textSecondary",...C,children:y})),(0,O.jsxs)(I,{...w,children:[g,y]})}),Hv=["inert","iconStart","iconEnd","children"],Bv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Vv(e){const t=[],n=[];return Array.from(e.querySelectorAll(Bv)).forEach((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Uv(){return!0}const Yv=function(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:a=Vv,isEnabled:s=Uv,open:l}=t,c=e.useRef(!1),u=e.useRef(null),d=e.useRef(null),p=e.useRef(null),h=e.useRef(null),m=e.useRef(!1),f=e.useRef(null),g=Bm(Jh(n),f),y=e.useRef(null);e.useEffect(()=>{l&&f.current&&(m.current=!r)},[r,l]),e.useEffect(()=>{if(!l||!f.current)return;const e=Xm(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),m.current&&f.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),e.useEffect(()=>{if(!l||!f.current)return;const e=Xm(f.current),t=t=>{y.current=t,!i&&s()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!m.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(f.current)),n.length>0){const e=Boolean(y.current?.shiftKey&&"Tab"===y.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[r,i,o,s,l,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,h.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,O.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})};function Wv(e){return e.substring(2).toLowerCase()}function Gv(t){const{children:n,disableReactTree:r=!1,mouseEvent:i="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),c=e.useRef(!1),u=e.useRef(!1);e.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=Bm(Jh(n),l),p=Ag(e=>{const t=u.current;u.current=!1;const n=Xm(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidtht=>{u.current=!0;const r=n.props[e];r&&r(t)},m={ref:d};return!1!==a&&(m[a]=h(a)),e.useEffect(()=>{if(!1!==a){const e=Wv(a),t=Xm(l.current),n=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}},[p,a]),!1!==i&&(m[i]=h(i)),e.useEffect(()=>{if(!1!==i){const e=Wv(i),t=Xm(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}},[p,i]),e.cloneElement(n,m)}function Kv(e){return Ig("MuiPaper",e)}wg("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qv=bm("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(wm(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Xv=e.forwardRef(function(e,t){const n=Mm({props:e,name:"MuiPaper"}),r=xm(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,u={...n,component:o,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Gh({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Kv,i)})(u);return(0,O.jsx)(qv,{as:o,ownerState:u,className:Hh(d.root,i),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${op("#fff",yh(a))}, ${op("#fff",yh(a))})`}},...c.style}})}),Zv=Xv,Jv=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement"];function Qv(e,t){return function(e,t){return void 0===e.focusTrap?t:(0,O.jsx)(Yv,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:(0,O.jsx)("div",{tabIndex:-1,children:t})})}(e,function(e,t){return void 0===e.onClickAway?t:(0,O.jsx)(Gv,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}(e,t))}const eb={"bottom-start":"top left","bottom-end":"top right"};function tb(e){return Ig("MuiSvgIcon",e)}wg("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nb=bm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Cm(n.color)}`],t[`fontSize${Cm(n.fontSize)}`]]}})(wm(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),rb=e.forwardRef(function(t,n){const r=Mm({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=r,m=e.isValidElement(i)&&"svg"===i.type,f={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:m},g={};u||(g.viewBox=p);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Gh({root:["root","inherit"!==t&&`color${Cm(t)}`,`fontSize${Cm(n)}`]},tb,r)})(f);return(0,O.jsxs)(nb,{as:s,className:Hh(y.root,o),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n,...g,...h,...m&&i.props,ownerState:f,children:[m?i.props.children:i,d?(0,O.jsx)("title",{children:d}):null]})});rb.muiName="SvgIcon";const ib=rb;function ob(t,n){function r(e,r){return(0,O.jsx)(ib,{"data-testid":`${n}Icon`,ref:r,...e,children:t})}return r.muiName=ib.muiName,e.memo(e.forwardRef(r))}const ab=ob,sb=ab((0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),(0,O.jsx)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"})]}),"ZoomIn"),lb=ab((0,O.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"}),"ZoomOut"),cb=ab((0,O.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"Export"),ub={baseTooltip:qg,basePopper:function(t){const{open:n,children:r,className:i,flip:o,onExited:a,onDidShow:s,onDidHide:c,id:u,target:d,transition:p,placement:h}=t,m=tt(t,Jv),f=e.useMemo(()=>{const e=[{name:"preventOverflow",options:{padding:8}}];return o&&e.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(s||c)&&e.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{s?.()},effect:()=>()=>{c?.()}}),e},[o,s,c]);let g;if(p){const e=e=>t=>{e&&e(),a&&a(t)};g=n=>Qv(t,(0,O.jsx)(Km,l({},n.TransitionProps,{style:{transformOrigin:eb[n.placement]},onExited:e(n.TransitionProps?.onExited),children:(0,O.jsx)(Zv,{children:r})})))}else g=Qv(t,r);return(0,O.jsx)(Tg,l({id:u,className:i,open:n,anchorEl:d,transition:p,placement:h,modifiers:f},m,{children:g}))},baseMenuList:dy,baseMenuItem:function(e){const{inert:t,iconStart:n,iconEnd:r,children:i}=e,o=tt(e,Hv);return(0,O.jsxs)(Ev,l({},o,{disableRipple:!!t||o.disableRipple,children:[n&&(0,O.jsx)(Av,{children:n},"1"),(0,O.jsx)(Fv,{children:i},"2"),r&&(0,O.jsx)(Av,{children:r},"3")]}))},baseDivider:yy},db=l({},bv,ub,{zoomInIcon:sb,zoomOutIcon:lb,exportIcon:cb}),pb=e=>e.brush,hb=(ae(pb,e=>e?.start),ae(pb,e=>e?.current),ae(pb,e=>e?.start?.x??null)),mb=ae(pb,e=>e?.start?.y??null),fb=ae(pb,e=>e?.current?.x??null),gb=ae(pb,e=>e?.current?.y??null),yb=le(hb,mb,fb,gb,(e,t,n,r)=>null===e||null===t||null===n||null===r?null:{start:{x:e,y:t},current:{x:n,y:r}}),vb=ae(ft,e=>{let t=!1,n=!1;return e&&Object.entries(e).forEach(([e,r])=>{Object.values(r.series).some(e=>"horizontal"===e.layout)&&(t=!0),"scatter"===e&&r.seriesOrder.length>0&&(n=!0)}),n?"xy":t?"y":"x"}),bb=ae(qa,function(e){let t=!1,n=!1;return Object.values(e).forEach(e=>{"y"===e.axisDirection&&(n=!0),"x"===e.axisDirection&&(t=!0)}),t&&n?"xy":n?"y":t?"x":null}),xb=ae(vb,bb,(e,t)=>t??e),Ib=ae(pb,e=>e?.enabled||e?.isZoomBrushEnabled),wb=ae(Ib,pb,(e,t)=>e&&null!==t?.start&&null!==t?.current),kb=ae(pb,wb,(e,t)=>t&&e?.preventHighlight),Sb=ae(pb,wb,(e,t)=>t&&e?.preventTooltip),Mb=({store:t,svgRef:n,instance:r,params:i})=>{const o=t.use(Ib);V(()=>{t.set("brush",l({},t.state.brush,{enabled:i.brushConfig.enabled,preventTooltip:i.brushConfig.preventTooltip,preventHighlight:i.brushConfig.preventHighlight}))},[t,i.brushConfig.enabled,i.brushConfig.preventTooltip,i.brushConfig.preventHighlight]);const a=ke(function(e){t.set("brush",l({},t.state.brush,{start:t.state.brush.start??e,current:e}))}),s=ke(function(){t.set("brush",l({},t.state.brush,{start:null,current:null}))}),c=ke(function(e){t.state.brush.isZoomBrushEnabled!==e&&t.set("brush",l({},t.state.brush,{isZoomBrushEnabled:e}))});return e.useEffect(()=>{const e=n.current;if(null===e||!o)return()=>{};const t=r.addInteractionListener("brushStart",t=>{if(t.detail.target?.closest("[data-charts-zoom-slider]"))return;const n=xs(e,{clientX:t.detail.initialCentroid.x,clientY:t.detail.initialCentroid.y});a(n)}),i=r.addInteractionListener("brush",t=>{const n=xs(e,{clientX:t.detail.centroid.x,clientY:t.detail.centroid.y});a(n)}),l=r.addInteractionListener("brushCancel",s),c=r.addInteractionListener("brushEnd",s);return()=>{t.cleanup(),i.cleanup(),c.cleanup(),l.cleanup()}},[n,r,t,s,a,o]),{instance:{setBrushCoordinates:a,clearBrush:s,setZoomBrushEnabled:c}}};function Cb(e,t,n){const r="rotation"===n?"DEFAULT_ROTATION_AXIS_KEY":"DEFAULT_RADIUS_AXIS_KEY";return(e&&e.length>0?e:[{id:r}]).map((e,r)=>{const i=`defaultized-${n}-axis-${r}`,o=e.dataKey;if(void 0===o||void 0!==e.data)return l({id:i},e);if(void 0===t)throw new Error(`MUI X Charts: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return l({id:i,data:t.map(e=>e[o])},e)})}function Pb(e){return pa.getTypes().has(e)}Mb.params={brushConfig:!0},Mb.getDefaultizedParams=({params:e})=>l({},e,{brushConfig:{enabled:e?.brushConfig?.enabled??!1,preventTooltip:e?.brushConfig?.preventTooltip??!0,preventHighlight:e?.brushConfig?.preventHighlight??!0}}),Mb.getInitialState=e=>({brush:{enabled:e.brushConfig.enabled,isZoomBrushEnabled:!1,preventTooltip:e.brushConfig.preventTooltip,preventHighlight:e.brushConfig.preventHighlight,start:null,current:null}});function Eb({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:i}){if(void 0===n)return{axis:{},axisIds:[]};const o=((e,t,n,r)=>{const i=new Set;return Object.keys(t).filter(Pb).forEach(o=>{const a=n[o]?.series??{},s=t[o].axisTooltipGetter?.(a);void 0!==s&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i})(i,r,t,n[0].id),a={};return n.forEach((n,s)=>{const c=n,u=function(e,t,n){if("rotation"===t){if("point"===n.scaleType){const e=[Ql(n.startAngle,0),Ql(n.endAngle,2*Math.PI)],t=e[1]-e[0];return t>2*Math.PI-.1&&(e[1]-=t/n.data.length),e}return[Ql(n.startAngle,0),Ql(n.endAngle,2*Math.PI)]}return[0,Math.min(e.height,e.width)/2]}(e,i,c),[d,p]=((e,t,n,r,i)=>{const o=Object.keys(n).filter(Pb).reduce((o,a)=>((e,t,n,r,i,o,a)=>{const s="rotation"===r?i[t].rotationExtremumGetter:i[t].radiusExtremumGetter,l=a[t]?.series??{},[c,u]=s?.({series:l,axis:n,axisIndex:o,isDefaultAxis:0===o})??[1/0,-1/0],[d,p]=e;return[Math.min(c,d),Math.max(u,p)]})(o,a,e,t,n,r,i),[1/0,-1/0]);return Number.isNaN(o[0])||Number.isNaN(o[1])?[1/0,-1/0]:o})(c,i,r,s,t),h=!c.ignoreTooltip&&o.has(c.id),m=c.data??[];if(Et(c)){const e=c.categoryGapRatio??.2,t=c.barGapRatio??.1;if(a[c.id]=l({offset:0,categoryGapRatio:e,barGapRatio:t,triggerTooltip:h},c,{data:m,scale:Sa(c.data,u).paddingInner(e).paddingOuter(e/2),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?wr(l({values:c.data},c.colorMap)):kr(c.colorMap))}),sa(c.data)){const e=la(c.data,u,c.tickNumber);a[c.id].valueFormatter=c.valueFormatter??e}}if(Tt(c)&&(a[c.id]=l({offset:0,triggerTooltip:h},c,{data:m,scale:Ma(c.data,u),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?wr(l({values:c.data},c.colorMap)):kr(c.colorMap))}),sa(c.data))){const e=la(c.data,u,c.tickNumber);a[c.id].valueFormatter=c.valueFormatter??e}if("point"===(f=c).scaleType||"band"===f.scaleType)return;var f;const g=c.scaleType??"linear",y=c.domainLimit??"nice",v=[c.min??d,c.max??p];if("function"==typeof y){const{min:e,max:t}=y(d,p);v[0]=e,v[1]=t}const b=Sr(c,v,Cr(Math.abs(u[1]-u[0]))),x=Mr(b,u),I=aa(g,v,u),w="nice"===y?I.nice(b):I,[k,S]=w.domain(),M=[c.min??k,c.max??S];a[c.id]=l({offset:0,triggerTooltip:h},c,{data:m,scaleType:g,scale:w.domain(M),tickNumber:x,colorScale:c.colorMap&&kr(c.colorMap)})}),{axis:a,axisIds:n.map(({id:e})=>e)}}const Tb=e=>e.polarAxis,Ab=ae(Tb,e=>e?.rotation),Ob=ae(Tb,e=>e?.radius),jb=le(Ab,he,ft,ht,(e,t,n,r)=>Eb({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"rotation"})),Lb=le(Ob,he,ft,ht,(e,t,n,r)=>Eb({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"radius"})),Rb=le(he,function(e){return{cx:e.left+e.width/2,cy:e.top+e.height/2}}),Db=e=>(t,n)=>Math.atan2(t-e.cx,e.cy-n);function $b(e){return(e%360+360)%360}const zb=2*Math.PI;function Nb(e,t){const{scale:n,data:r,reverse:i}=e;if(!fa(n))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!r)return-1;const o=((t-Math.min(...n.range()))%zb+zb)%zb,a=0===n.bandwidth()?Math.floor((o+n.step()/2)/n.step())%r.length:Math.floor(o/n.step());return a<0||a>=r.length?-1:i?r.length-1-a:a}const _b=({params:t,store:n,seriesConfig:r,svgRef:i,instance:o})=>{const{rotationAxis:a,radiusAxis:s,dataset:c}=t,u=n.use(he),d=n.use(ft),p=n.use(Rb),h=n.use(ws),{axis:m,axisIds:f}=n.use(jb),{axis:g,axisIds:y}=n.use(Lb),v=e.useRef(!0);e.useEffect(()=>{v.current?v.current=!1:n.set("polarAxis",l({},n.state.polarAxis,{rotation:Cb(a,c,"rotation"),radius:Cb(s,c,"radius")}))},[r,u,a,s,c,n]);const b=e.useMemo(()=>Db({cx:p.cx,cy:p.cy}),[p.cx,p.cy]),x=e.useMemo(()=>(e=>(t,n)=>{const r=Math.atan2(t-e.cx,e.cy-n);return[Math.sqrt((t-e.cx)**2+(e.cy-n)**2),r]})({cx:p.cx,cy:p.cy}),[p.cx,p.cy]),I=e.useMemo(()=>(e=>(t,n)=>[e.cx+t*Math.sin(n),e.cy-t*Math.cos(n)])({cx:p.cx,cy:p.cy}),[p.cx,p.cy]),w=f[0],k=y[0],S=e.useRef({isInChart:!1}),M=Fs(o);return e.useEffect(()=>{const e=i.current;if(!h||!M||null===e||t.disableAxisListener)return()=>{};const n=o.addInteractionListener("moveEnd",e=>{e.detail.activeGestures.pan||(S.current.isInChart=!1,o.cleanInteraction())}),r=o.addInteractionListener("panEnd",e=>{e.detail.activeGestures.move||(S.current.isInChart=!1,o.cleanInteraction?.())}),a=o.addInteractionListener("quickPressEnd",e=>{e.detail.activeGestures.move||e.detail.activeGestures.pan||(S.current.isInChart=!1,o.cleanInteraction?.())}),s=t=>{const n=t.detail.srcEvent;if("touch"===t.detail.srcEvent.pointerType){const t=e.getBoundingClientRect();if(n.clientXt.right||n.clientYt.bottom)return S.current.isInChart=!1,void o.cleanInteraction?.();const r=xs(e,n);return S.current.isInChart=!0,void o.setPointerCoordinate?.(r)}const r=xs(e,n);o.isPointInside(r.x,r.y,t.detail.target)?(p.cx-r.x)**2+(p.cy-r.y)**2>g[k].scale.range()[1]**2?S.current.isInChart&&(o.cleanInteraction?.(),S.current.isInChart=!1):(S.current.isInChart=!0,o.setPointerCoordinate?.(r)):S.current.isInChart&&(o.cleanInteraction?.(),S.current.isInChart=!1)},l=o.addInteractionListener("move",s),c=o.addInteractionListener("pan",s),u=o.addInteractionListener("quickPress",s);return()=>{l.cleanup(),n.cleanup(),c.cleanup(),r.cleanup(),u.cleanup(),a.cleanup()}},[i,n,p,g,k,m,w,o,t.disableAxisListener,h,b,M]),e.useEffect(()=>{const e=i.current,n=t.onAxisClick;if(null===e||!n)return()=>{};const r=o.addInteractionListener("tap",t=>{let r=null,i=!1;const o=xs(e,t.detail.srcEvent),a=Db(p)(o.x,o.y),s=Nb(m[w],a);if(i=-1!==s,r=i?s:null,null==r||-1===r)return;const l=(i?m:g)[i?w:k].data[r],c={};Object.keys(d).filter(e=>"radar"===e).forEach(e=>{d[e]?.seriesOrder.forEach(t=>{const n=d[e].series[t];c[t]=n.data[r]})}),n(t.detail.srcEvent,{dataIndex:r,axisValue:l,seriesValues:c})});return()=>{r.cleanup()}},[p,o,t.onAxisClick,d,g,m,i,k,w]),{instance:{svg2polar:x,svg2rotation:b,polar2svg:I}}};_b.params={rotationAxis:!0,radiusAxis:!0,dataset:!0,disableAxisListener:!0,onAxisClick:!0},_b.getInitialState=e=>({polarAxis:{rotation:Cb(e.rotationAxis,e.dataset,"rotation"),radius:Cb(e.radiusAxis,e.dataset,"radius")}});const Fb=new Map,Hb=(le(ae(e=>e.visibilityManager,e=>e?.visibilityMap??Fb),e=>(t,n)=>((e,t,n)=>{const r=Ee(n,t);return!e.has(r)})(e,n,t)),(e,t)=>{const n=new Map;return e&&e.forEach(e=>{const r=Ee(t,e);n.set(r,e)}),n}),Bb=({store:e,params:t,seriesConfig:n,instance:r})=>{Y(()=>{void 0!==t.hiddenItems&&e.set("visibilityManager",l({},e.state.visibilityManager,{visibilityMap:Hb(t.hiddenItems,n)}))},[e,t.hiddenItems,n]);const i=ke(n=>{const i=e.state.visibilityManager.visibilityMap,o=r.serializeIdentifier(n);if(i.has(o))return;const a=new Map(i);a.set(o,n),e.set("visibilityManager",l({},e.state.visibilityManager,{visibilityMap:a})),t.onHiddenItemsChange?.(Array.from(a.values()))}),o=ke(n=>{const i=e.state.visibilityManager.visibilityMap,o=r.serializeIdentifier(n);if(!i.has(o))return;const a=new Map(i);a.delete(o),e.set("visibilityManager",l({},e.state.visibilityManager,{visibilityMap:a})),t.onHiddenItemsChange?.(Array.from(a.values()))}),a=ke(t=>{const n=e.state.visibilityManager.visibilityMap,a=r.serializeIdentifier(t);n.has(a)?o(t):i(t)});return{instance:{hideItem:i,showItem:o,toggleItemVisibility:a}}};function Vb(e){return e&&e.ownerDocument||document}function Ub(e,t,n){const r=[],i=t.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t{a.addEventListener("load",()=>e())}))}n&&a.setAttribute("nonce",n),e.head.appendChild(a),n&&a.setAttribute("nonce",n)}return r}function Yb(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}function Wb(e,t){const n={};return Object.entries(t).forEach(([t,r])=>{const i=e.style.getPropertyValue(t);n[t]=i,e.style.setProperty(t,r)}),n}Bb.getInitialState=(e,t,n)=>({visibilityManager:{visibilityMap:e.hiddenItems?Hb(e.hiddenItems,n):Fb,isControlled:void 0!==e.hiddenItems}}),Bb.params={onHiddenItemsChange:!0,hiddenItems:!0};const Gb=e=>e,Kb=(()=>{let e=Gb;return{configure(t){e=t},generate:t=>e(t),reset(){e=Gb}}})(),qb={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 Xb(e,t,n="Mui"){const r=qb[t];return r?`${n}-${r}`:`${Kb.generate(e)}-${t}`}function Zb(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Xb(e,t,n)}),r}const Jb=Zb("MuiChartsToolbar",["root"]);function Qb(e){const t=e.contentDocument.querySelector(`.${Jb.root}`);t?.remove()}function ex(){let e;const t=new Promise(t=>{e=t});return window.requestAnimationFrame(()=>{e()}),t}const tx=({chartRootRef:e,svgRef:t,instance:n})=>{const r=async t=>{const r=e.current;if(r){const e=n.disableAnimation();try{await ex(),function(e,{fileName:t,onBeforeExport:n=Qb,copyStyles:r=!0,nonce:i}={}){const o=Yb(t),a=Vb(e);o.onload=async()=>{const t=o.contentDocument,s=e.cloneNode(!0);t.body.replaceChildren(s),t.body.style.margin="0px";const l=e.getRootNode(),c="ShadowRoot"===l.constructor.name?l:a;r&&await Promise.all(Ub(t,c,i)),o.contentWindow.matchMedia("print").addEventListener("change",e=>{!1===e.matches&&a.body.removeChild(o)}),await n(o),o.contentWindow.print()},a.body.appendChild(o)}(r,t)}catch(e){console.error("MUI X Charts: Error exporting chart as print:",e)}finally{e()}}},i=async r=>{const i=e.current,o=t.current;if(i&&o){const e=n.disableAnimation();try{await ex(),await async function(e,t,n){const{fileName:r,type:i="image/png",quality:o=.9,onBeforeExport:s=Qb,copyStyles:l=!0,nonce:c}=n??{},u=(async()=>{try{const e=await a.e(235).then(a.t.bind(a,3436,19));return(e.default||e).drawDocument}catch(e){throw new Error("MUI X Charts: Failed to import 'rasterizehtml' module. This dependency is mandatory when exporting a chart as an image. Make sure you have it installed as a dependency.",{cause:e})}})(),d=Vb(e),p=Yb(r),h=Wb(t,{width:`${t.getBoundingClientRect().width}px`});let m;const f=new Promise(e=>{m=e});p.onload=async()=>{const n=p.contentDocument,r=e.cloneNode(!0);Wb(t,h),n.body.replaceChildren(r),n.body.style.margin="0px",n.body.style.width="fit-content";const i=e.getRootNode(),o="ShadowRoot"===i.constructor.name?i:d;l&&await Promise.all(Ub(n,o,c)),m()},d.body.appendChild(p),await f,await s(p);const g=await u,y=p.contentDocument.body.getBoundingClientRect(),v=document.createElement("canvas"),b=window.devicePixelRatio||1;v.width=y.width*b,v.height=y.height*b,v.style.width=`${y.width}px`,v.style.height=`${y.height}px`;try{await g(p.contentDocument,v,{zoom:b,nonce:c})}finally{d.body.removeChild(p)}let x;const I=new Promise(e=>{x=e});let w;try{v.toBlob(e=>x(e),i,o),w=await I}catch(e){throw new Error("MUI X Charts: Failed to create blob from canvas.",{cause:e})}if(!w)throw new Error("MUI X Charts: Failed to create blob from canvas.");const k=URL.createObjectURL(w);!function(e,t){const n=document.createElement("a");n.href=e,n.download=t,n.click()}(k,r||document.title),URL.revokeObjectURL(k)}(i,o,r)}catch(e){console.error("MUI X Charts: Error exporting chart as image:",e)}finally{e()}}};return{publicAPI:{exportAsPrint:r,exportAsImage:i},instance:{exportAsPrint:r,exportAsImage:i}}};function nx(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r{n=null,e(...t)};function i(...e){t=e,n||(n=requestAnimationFrame(r))}return i.clear=()=>{n&&(cancelAnimationFrame(n),n=null)},i}tx.params={},tx.getDefaultizedParams=({params:e})=>l({},e),tx.getInitialState=()=>({export:{}});const ix=(e,t,n,r)=>{const i=r.minStart,o=r.maxEnd,a=r.minSpan,s=n.start,l=n.end,c=s+e*(l-s);let u=(s+c*(t-1))/t,d=(l+c*(t-1))/t,p=0,h=0;return uo&&(h=Math.abs(d-o),d=o),p>0&&h>0?[i,o]:(d+=p,u-=h,u=Math.min(o-a,Math.max(i,u)),d=Math.max(a,Math.min(o,d)),[u,d])};function ox(e,t,n,r){const i=t-e;return!(i<0||n&&ir.maxSpan||er.maxEnd)}function ax(e,t,n){const{left:r,width:i}=t,o=(e.x-r)/i;return n?1-o:o}function sx(e,t,n){const{top:r,height:i}=t,o=(r-e.y)/i+1;return n?1-o:o}function lx(e,t,n,r,i="xy"){return e.map(e=>{const o=r[e.axisId];if(!o||!o.panning||"x"===o.axisDirection&&"y"===i||"y"===o.axisDirection&&"x"===i)return e;const a=e.start,s=e.end,c=s-a,u=o.minStart,d=o.maxEnd,p="x"===o.axisDirection?t.x:t.y,h=o.reverse?-p:p,m="x"===o.axisDirection?n.width:n.height;let f=a-h/m*c,g=s-h/m*c;return fd&&(g=d,f=g-c),fd||co.maxSpan?e:l({},e,{start:f,end:g})})}ne({memoize:J,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const cx=(e,t,n,r,i,o,a,s,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let c;if(e&&t&&n&&r&&i&&o&&a&&s)c=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d),m=n(l,c,u,d),f=r(l,c,u,d),g=i(l,c,u,d),y=o(l,c,u,d),v=a(l,c,u,d);return s(p,h,m,f,g,y,v,c,u,d)};else if(e&&t&&n&&r&&i&&o&&a)c=(s,l,c,u)=>{const d=e(s,l,c,u),p=t(s,l,c,u),h=n(s,l,c,u),m=r(s,l,c,u),f=i(s,l,c,u),g=o(s,l,c,u);return a(d,p,h,m,f,g,l,c,u)};else if(e&&t&&n&&r&&i&&o)c=(a,s,l,c)=>{const u=e(a,s,l,c),d=t(a,s,l,c),p=n(a,s,l,c),h=r(a,s,l,c),m=i(a,s,l,c);return o(u,d,p,h,m,s,l,c)};else if(e&&t&&n&&r&&i)c=(o,a,s,l)=>{const c=e(o,a,s,l),u=t(o,a,s,l),d=n(o,a,s,l),p=r(o,a,s,l);return i(c,u,d,p,a,s,l)};else if(e&&t&&n&&r)c=(i,o,a,s)=>{const l=e(i,o,a,s),c=t(i,o,a,s),u=n(i,o,a,s);return r(l,c,u,o,a,s)};else if(e&&t&&n)c=(r,i,o,a)=>{const s=e(r,i,o,a),l=t(r,i,o,a);return n(s,l,i,o,a)};else if(e&&t)c=(n,r,i,o)=>{const a=e(n,r,i,o);return t(a,r,i,o)};else{if(!e)throw new Error("Missing arguments");c=e}return c},ux=e=>e.zoom,dx=(cx(ux,e=>e.isInteracting),cx(qa,e=>Object.keys(e).length>0)),px=cx(Ga,(e,t)=>e?.get(t)),hx=cx(ux,qa,(e,t)=>e.zoomData.every(e=>{const n=e.end-e.start,r=t[e.axisId];return e.start===r.minStart&&e.end===r.maxEnd||n===r.maxSpan})),mx=cx(ux,qa,(e,t)=>e.zoomData.every(e=>e.end-e.start===t[e.axisId].minSpan)),fx=cx(ux,(e,t)=>e.zoomInteractionConfig.zoom[t]??null),gx=cx(ux,(e,t)=>e.zoomInteractionConfig.pan[t]??null),yx=(cx(qa,e=>fx(e,"brush"),(e,t)=>Object.keys(e).length>0&&t||!1),({store:t,instance:n,svgRef:r},i)=>{const o=t.use(he),a=t.use(qa),s=e.useRef(!1),l=e.useRef(null),c=t.use(fx,"wheel"),u=Object.keys(a).length>0&&Boolean(c);e.useEffect(()=>{u&&n.updateZoomInteractionListeners("zoomTurnWheel",{requiredKeys:c.requiredKeys})},[c,u,n]),e.useEffect(()=>{const e=r.current;if(null===e||!u)return()=>{};const t=rx(i),c=n.addInteractionListener("zoomTurnWheel",r=>{const i=xs(e,{clientX:r.detail.centroid.x,clientY:r.detail.centroid.y});if(s.current||!n.isPointInside(i.x,i.y))return s.current=!0,l.current&&clearTimeout(l.current),void(l.current=setTimeout(()=>{s.current=!1,l.current=null},100));r.detail.srcEvent.preventDefault(),t(e=>e.map(e=>{const t=a[e.axisId];if(!t)return e;const n="x"===t.axisDirection?ax(i,o,t.reverse):sx(i,o,t.reverse),{scaleRatio:s,isZoomIn:l}=function(e,t){const n=-e.deltaY,r=function(e){const t=e.ctrlKey?3:1;return 1===e.deltaMode?1*t:e.deltaMode?10*t:.2*t}(e),i=t*r*n/1e3;return{scaleRatio:Math.min(Math.max(1+i,.1),1.9),isZoomIn:n>0}}(r.detail.srcEvent,t.step),[c,u]=ix(n,s,e,t);return ox(c,u,l,t)?{axisId:e.axisId,start:c,end:u}:e}))});return()=>{c.cleanup(),l.current&&(clearTimeout(l.current),l.current=null),s.current=!1,t.clear()}},[r,o,u,a,n,i,t])}),vx=(e,t)=>{const n={zoom:{},pan:{}};if(n.zoom=e?.zoom?bx("zoom",e.zoom):{wheel:{type:"wheel",requiredKeys:[],mouse:{},touch:{}},pinch:{type:"pinch",requiredKeys:[],mouse:{},touch:{}}},e?.pan)n.pan=bx("pan",e.pan);else{n.pan={drag:{type:"drag",requiredKeys:[],mouse:{},touch:{}}};let e=!1,r=!1;t&&Object.values(t).forEach(t=>{"x"===t.axisDirection&&(e=!0),"y"===t.axisDirection&&(r=!0)}),e&&!r&&(n.pan.wheel={type:"wheel",requiredKeys:[],allowedDirection:"x",mouse:{},touch:{}})}return n};function bx(e,t){const n=t.reduce((e,t)=>{if("string"==typeof t)return e[t]||(e[t]=[]),e[t].push({type:t,requiredKeys:[]}),e;const n=t.type;return e[n]||(e[n]=[]),e[n].push({type:n,pointerMode:t.pointerMode,requiredKeys:t.requiredKeys,allowedDirection:t.allowedDirection}),e},{}),r={};for(const[t,i]of Object.entries(n)){const n=i.findLast(e=>!e.pointerMode),o=i.findLast(e=>"mouse"===e.pointerMode),a=i.findLast(e=>"touch"===e.pointerMode);r[t]={type:t,pointerMode:n?[]:Array.from(new Set(i.filter(e=>e.pointerMode).map(e=>e.pointerMode))),requiredKeys:n?.requiredKeys??[],mouse:o?{requiredKeys:o?.requiredKeys??[]}:{},touch:a?{requiredKeys:a?.requiredKeys??[]}:{}},"wheel"===t&&"pan"===e&&(r[t].allowedDirection=n?.allowedDirection??"x")}return r}function xx(e,t){const n=new Map;return t?.forEach(t=>{e[t.axisId]&&n.set(t.axisId,t)}),Object.values(e).map(({axisId:e,minStart:t,maxEnd:r})=>n.has(e)?n.get(e):{axisId:e,start:t,end:r})}const Ix=t=>{const{store:n,params:r}=t,{zoomData:i,onZoomChange:o,zoomInteractionConfig:a}=r,s=Og(o??(()=>{})),c=n.use(qa);!function(t,r){const i=e.useRef(!0);e.useEffect(()=>{i.current?i.current=!1:n.set("zoom",l({},n.state.zoom,{zoomInteractionConfig:vx(a,c)}))},r)}(0,[n,a,c]);const u=e.useMemo(()=>function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>n.set("zoom",l({},n.state.zoom,{isInteracting:!1})),166),[n]);e.useEffect(()=>{void 0!==i&&(n.set("zoom",l({},n.state.zoom,{isInteracting:!0,zoomData:i})),u())},[n,i,u]);const d=e.useCallback(e=>{const t="function"==typeof e?e([...n.state.zoom.zoomData]):e;nx(n.state.zoom.zoomData,t)||(s(t),n.state.zoom.isControlled?n.set("zoom",l({},n.state.zoom,{isInteracting:!0})):(n.set("zoom",l({},n.state.zoom,{isInteracting:!0,zoomData:t})),u()))},[s,n,u]),p=e.useCallback((e,t)=>{d(n=>n.map(n=>n.axisId!==e?n:"function"==typeof t?t(n):t))},[d]),h=e.useCallback((e,t)=>{d(n=>n.map(n=>{if(n.axisId!==e)return n;const r=c[e];if(!r)return n;let i=n.start,o=n.end;if(t>0){const e=o-i;o=Math.min(o+t,r.maxEnd),i=o-e}else{const e=o-i;i=Math.max(i+t,r.minStart),o=i+e}return l({},n,{start:i,end:o})}))},[c,d]);e.useEffect(()=>()=>{u.clear()},[u]),(({store:t,instance:n,svgRef:r},i)=>{const o=t.use(he),a=t.use(qa),s=t.use(gx,"drag"),l=Object.values(a).some(e=>e.panning)&&Boolean(s);e.useEffect(()=>{l&&n.updateZoomInteractionListeners("zoomPan",{requiredKeys:s.requiredKeys,pointerMode:s.pointerMode,pointerOptions:{mouse:s.mouse,touch:s.touch}})},[l,s,n]),e.useEffect(()=>{const e=r.current;let t=!1;const s={x:0,y:0};if(null===e||!l)return()=>{};const c=rx(()=>{const e=s.x,t=s.y;s.x=0,s.y=0,i(n=>lx(n,{x:e,y:-t},{width:o.width,height:o.height},a))}),u=n.addInteractionListener("zoomPan",e=>{t&&(s.x+=e.detail.deltaX,s.y+=e.detail.deltaY,c())}),d=n.addInteractionListener("zoomPanStart",e=>{e.detail.target?.closest("[data-charts-zoom-slider]")||(t=!0)}),p=n.addInteractionListener("zoomPanEnd",()=>{t=!1});return()=>{d.cleanup(),u.cleanup(),p.cleanup(),c.clear()}},[n,r,l,a,o.width,o.height,i,t])})(t,d),(({store:t,instance:n,svgRef:r},i)=>{const o=t.use(he),a=t.use(qa),s=e.useRef(!1),l=e.useRef({x:0,y:0}),c=t.use(gx,"pressAndDrag"),u=Object.values(a).some(e=>e.panning)&&Boolean(c);e.useEffect(()=>{u&&n.updateZoomInteractionListeners("zoomPressAndDrag",{requiredKeys:c.requiredKeys,pointerMode:c.pointerMode,pointerOptions:{mouse:c.mouse,touch:c.touch}})},[u,c,n]),e.useEffect(()=>{if(null===r.current||!u)return()=>{};const e=rx(()=>{const e=l.current.x,t=l.current.y;l.current.x=0,l.current.y=0,i(n=>lx(n,{x:e,y:-t},{width:o.width,height:o.height},a))}),t=n.addInteractionListener("zoomPressAndDrag",t=>{s.current&&(l.current.x+=t.detail.deltaX,l.current.y+=t.detail.deltaY,e())}),c=n.addInteractionListener("zoomPressAndDragStart",e=>{e.detail.target?.closest("[data-charts-zoom-slider]")||(s.current=!0,l.current={x:0,y:0})}),d=n.addInteractionListener("zoomPressAndDragEnd",()=>{s.current=!1});return()=>{c.cleanup(),t.cleanup(),d.cleanup(),e.clear()}},[n,r,u,a,o.width,o.height,i,t,s])})(t,d),(({store:t,instance:n,svgRef:r},i)=>{const o=t.use(he),a=t.use(qa),s=e.useRef(!1),l=e.useRef(null),c=t.use(gx,"wheel"),u=Object.keys(a).length>0&&Boolean(c);e.useEffect(()=>{u&&n.updateZoomInteractionListeners("panTurnWheel",{requiredKeys:c.requiredKeys})},[c,u,n]),e.useEffect(()=>{const e=r.current,t={x:0,y:0};if(null===e||!u)return()=>{};const d=rx(i),p=n.addInteractionListener("panTurnWheel",r=>{const i=xs(e,{clientX:r.detail.centroid.x,clientY:r.detail.centroid.y});if(s.current||!n.isPointInside(i.x,i.y))return s.current=!0,l.current&&clearTimeout(l.current),void(l.current=setTimeout(()=>{s.current=!1,l.current=null},100));r.detail.srcEvent.preventDefault();const u=c?.allowedDirection??"x";0===r.detail.deltaX&&0===r.detail.deltaY||(t.x+=r.detail.deltaX,t.y+=r.detail.deltaY,d(e=>{const n=t.x,r=t.y;t.x=0,t.y=0;let i=0,s=0;return"x"!==u&&"xy"!==u||(i=-n),"y"!==u&&"xy"!==u||(s=r),0===i&&0===s?e:lx(e,{x:i,y:s},o,a,u)}))});return()=>{p.cleanup(),l.current&&(clearTimeout(l.current),l.current=null),s.current=!1,d.clear()}},[r,o,u,a,n,i,t,c])})(t,d),yx(t,d),(({store:t,instance:n,svgRef:r},i)=>{const o=t.use(he),a=t.use(qa),s=t.use(fx,"pinch"),l=Object.keys(a).length>0&&Boolean(s);e.useEffect(()=>{l&&n.updateZoomInteractionListeners("zoomPinch",{requiredKeys:s.requiredKeys})},[s,l,n]),e.useEffect(()=>{const e=r.current;if(null===e||!l)return()=>{};const t=rx(t=>{0!==t.detail.direction&&i(n=>n.map(n=>{const r=a[n.axisId];if(!r)return n;const i=t.detail.direction>0,s=1+t.detail.deltaScale,l=xs(e,{clientX:t.detail.centroid.x,clientY:t.detail.centroid.y}),c="x"===r.axisDirection?ax(l,o,r.reverse):sx(l,o,r.reverse),[u,d]=ix(c,s,n,r);return ox(u,d,i,r)?{axisId:n.axisId,start:u,end:d}:n}))}),s=n.addInteractionListener("zoomPinch",t);return()=>{s.cleanup(),t.clear()}},[r,o,l,a,t,n,i])})(t,d),(({store:t,instance:n,svgRef:r},i)=>{const o=t.use(he),a=t.use(qa),s=t.use(fx,"tapAndDrag"),l=Object.keys(a).length>0&&Boolean(s);e.useEffect(()=>{l&&n.updateZoomInteractionListeners("zoomTapAndDrag",{requiredKeys:s.requiredKeys,pointerMode:s.pointerMode,pointerOptions:{mouse:s.mouse,touch:s.touch}})},[s,l,n]),e.useEffect(()=>{const e=r.current;if(null===e||!l)return()=>{};const t=rx(t=>{0!==t.detail.deltaY&&i(n=>n.map(n=>{const r=a[n.axisId];if(!r)return n;const i=t.detail.deltaY>0,s=1+t.detail.deltaY/100,l=xs(e,{clientX:t.detail.initialCentroid.x,clientY:t.detail.initialCentroid.y}),c="x"===r.axisDirection?ax(l,o,r.reverse):sx(l,o,r.reverse),[u,d]=ix(c,s,n,r);return ox(u,d,i,r)?{axisId:n.axisId,start:u,end:d}:n}))}),s=n.addInteractionListener("zoomTapAndDrag",t);return()=>{s.cleanup(),t.clear()}},[r,o,l,a,t,n,i])})(t,d),(({store:t,instance:n,svgRef:r},i)=>{const o=t.use(he),a=t.use(qa),s=t.use(fx,"brush"),l=Object.keys(a).length>0&&Boolean(s);e.useEffect(()=>{n.setZoomBrushEnabled(l)},[l,n]),e.useEffect(()=>{const e=r.current;if(null===e||!l)return()=>{};const t=n.addInteractionListener("brushEnd",t=>{i(n=>{const r=xs(e,{clientX:t.detail.initialCentroid.x,clientY:t.detail.initialCentroid.y}),i=xs(e,{clientX:t.detail.centroid.x,clientY:t.detail.centroid.y}),s=Math.min(r.x,i.x),l=Math.max(r.x,i.x),c=Math.min(r.y,i.y),u=Math.max(r.y,i.y);return n.map(e=>{const t=a[e.axisId];if(!t)return e;let n,r;const i=t.reverse;"x"===t.axisDirection?(n=ax({x:s,y:0},o,i),r=ax({x:l,y:0},o,i)):(n=sx({x:0,y:u},o,i),r=sx({x:0,y:c},o,i));const d=Math.min(n,r),p=Math.max(n,r),h=e.start,m=e.end-h,f=h+d*m,g=h+p*m,y=Math.max(t.minStart,Math.min(t.maxEnd,f)),v=Math.max(t.minStart,Math.min(t.maxEnd,g));return ox(y,v,!0,t)?{axisId:e.axisId,start:y,end:v}:e})})});return()=>{t.cleanup()}},[r,o,l,a,n,i,t])})(t,d),(({store:t,instance:n,svgRef:r},i)=>{const o=t.use(qa),a=t.use(fx,"doubleTapReset"),s=Object.keys(o).length>0&&Boolean(a);e.useEffect(()=>{s&&n.updateZoomInteractionListeners("zoomDoubleTapReset",{requiredKeys:a.requiredKeys,pointerMode:a.pointerMode,pointerOptions:{mouse:a.mouse,touch:a.touch}})},[a,s,n]),e.useEffect(()=>{if(null===r.current||!s)return()=>{};const e=n.addInteractionListener("zoomDoubleTapReset",()=>{i(e=>e.map(e=>{const t=o[e.axisId];return t?{axisId:e.axisId,start:t.minStart,end:t.maxEnd}:e}))});return()=>{e.cleanup()}},[r,s,o,n,i,t])})(t,d);const m=e.useCallback(e=>{d(t=>t.map(t=>{const r=Xa(n.state,t.axisId);return function(e,t,{minSpan:n,maxSpan:r,minStart:i,maxEnd:o}){const a=e.end-e.start;let s=a*t/2;return s=s>0?Math.min(s,(a-n)/2):Math.max(s,(a-r)/2),l({},e,{start:Math.max(i,e.start+s),end:Math.min(o,e.end-s)})}(t,e,r)}))},[d,n]),f=e.useCallback(()=>m(.1),[m]),g=e.useCallback(()=>m(-.1),[m]);return{publicAPI:{setZoomData:d,setAxisZoomData:p,zoomIn:f,zoomOut:g},instance:{setZoomData:d,setAxisZoomData:p,moveZoomRange:h,zoomIn:f,zoomOut:g}}};Ix.params={initialZoom:!0,onZoomChange:!0,zoomData:!0,zoomInteractionConfig:!0},Ix.getInitialState=e=>{const{initialZoom:t,zoomData:n,defaultizedXAxis:r,defaultizedYAxis:i}=e,o=l({},Ia("x")(r),Ia("y")(i));return{zoom:{zoomData:xx(o,void 0!==n?n:void 0!==t?t:void 0),isInteracting:!1,isControlled:void 0!==n,zoomInteractionConfig:vx(e.zoomInteractionConfig,o)}}};const wx=[Xs,Mb,Ys,Ws,Bs,Zs,Bb,Ix,tx],kx=({params:t,store:n,svgRef:r})=>{const i=ke(function(){null!==n.state.keyboardNavigation.item&&n.set("keyboardNavigation",l({},n.state.keyboardNavigation,{item:null}))});return e.useEffect(()=>{const e=r.current;if(e&&t.enableKeyboardNavigation)return e.addEventListener("keydown",o),e.addEventListener("blur",i),()=>{e.removeEventListener("keydown",o),e.removeEventListener("blur",i)};function o(e){let t=n.state.keyboardNavigation.item,r=t?.type;if(!r&&(r=Object.keys(pt(n.state)).find(e=>void 0!==n.state.series.seriesConfig[e]),void 0===r))return;const i=n.state.series.seriesConfig[r]?.keyboardFocusHandler?.(e);i&&(t=i(t,n.state),t!==n.state.keyboardNavigation.item&&(e.preventDefault(),n.update(l({},n.state.highlight&&{highlight:l({},n.state.highlight,{lastUpdate:"keyboard"})},n.state.interaction&&{interaction:l({},n.state.interaction,{lastUpdate:"keyboard"})},{keyboardNavigation:l({},n.state.keyboardNavigation,{item:t})}))))}},[r,i,t.enableKeyboardNavigation,n]),V(()=>{n.state.keyboardNavigation.enableKeyboardNavigation!==t.enableKeyboardNavigation&&n.set("keyboardNavigation",l({},n.state.keyboardNavigation,{enableKeyboardNavigation:!!t.enableKeyboardNavigation}))},[n,t.enableKeyboardNavigation]),{}};function Sx(e,t,n,r,i,o,a,s,l,c,u=1/0,d=1){const p=n.copy(),h=r.copy();p.range([0,1]),h.range([0,1]);const m=n.range()[1]-n.range()[0],f=r.range()[1]-r.range()[0],g=m*m,y=f*f,v=p(Mx(n,l,e=>t[e]?.x)),b=h(Mx(r,c,e=>t[e]?.y));return e.neighbors(v,b,d,null!=u?u*u:1/0,function(e){const n=p(t[e].x),r=h(t[e].y);return n>=i&&n<=o&&r>=a&&r<=s},function(e,t){return g*e*e+y*t*t})}function Mx(e,t,n){return fa(e)?n(0===e.bandwidth()?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())):e.invert(t)}kx.getInitialState=e=>({keyboardNavigation:{item:null,enableKeyboardNavigation:!!e.enableKeyboardNavigation}}),kx.params={enableKeyboardNavigation:!0};const Cx=({svgRef:t,params:n,store:r,instance:i})=>{const{disableVoronoi:o,voronoiMaxRadius:a,onItemClick:s}=n,{axis:l,axisIds:c}=r.use(ls),{axis:u,axisIds:d}=r.use(cs),p=r.use(Wa),{series:h,seriesOrder:m}=r.use(ft)?.scatter??{},f=r.use(p?fs:gs),g=c[0],y=d[0];return V(()=>{r.set("voronoi",{isVoronoiEnabled:!o})},[r,o]),e.useEffect(()=>{if(null===t.current||o)return;const e=t.current;function n(t){const n=xs(e,t);if(!i.isPointInside(n.x,n.y))return"outside-chart";let o;for(const e of m??[]){const t=(h??{})[e],i=f.get(e);if(!i)continue;const s=t.xAxisId??g,c=t.yAxisId??y,d=Ka(r.state,s),p=Ka(r.state,c),m="item"===a?t.markerSize:a,v=(d?.start??0)/100,b=(d?.end??100)/100,x=(p?.start??0)/100,I=(p?.end??100)/100,w=l[s].scale,k=u[c].scale,S=Sx(i,t.data,w,k,v,b,x,I,n.x,n.y,m)[0];if(void 0===S)continue;const M=t.data[S],C=w(M.x),P=k(M.y),E=(C-n.x)**2+(P-n.y)**2;(void 0===o||E{e.detail.activeGestures.pan||(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),d=i.addInteractionListener("panEnd",e=>{e.detail.activeGestures.move||(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),p=i.addInteractionListener("quickPressEnd",e=>{e.detail.activeGestures.move||e.detail.activeGestures.pan||(i.cleanInteraction?.(),i.clearHighlight?.(),i.removeTooltipItem?.())}),v=e=>{const t=n(e.detail.srcEvent);if("outside-chart"===t)return i.cleanInteraction?.(),i.clearHighlight?.(),void i.removeTooltipItem?.();if("outside-voronoi-max-radius"===t||"no-point-found"===t)return i.removeTooltipItem?.(),i.clearHighlight?.(),void i.removeTooltipItem?.();const{seriesId:r,dataIndex:o}=t;i.setTooltipItem?.({type:"scatter",seriesId:r,dataIndex:o}),i.setLastUpdateSource?.("pointer"),i.setHighlight?.({seriesId:r,dataIndex:o})},b=i.addInteractionListener("tap",e=>{const t=n(e.detail.srcEvent);if("string"!=typeof t&&s){const{seriesId:n,dataIndex:r}=t;s(e.detail.srcEvent,{type:"scatter",seriesId:n,dataIndex:r})}}),x=i.addInteractionListener("move",v),I=i.addInteractionListener("pan",v),w=i.addInteractionListener("quickPress",v);return()=>{b.cleanup(),x.cleanup(),c.cleanup(),I.cleanup(),d.cleanup(),w.cleanup(),p.cleanup()}},[t,u,l,a,s,o,i,m,h,f,g,y,r]),{instance:{enableVoronoi:ke(()=>{r.set("voronoi",{isVoronoiEnabled:!0})}),disableVoronoi:ke(()=>{r.set("voronoi",{isVoronoiEnabled:!1})})}}};Cx.getDefaultizedParams=({params:e})=>l({},e,{disableVoronoi:e.disableVoronoi??!e.series.some(e=>"scatter"===e.type)}),Cx.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableVoronoi}}),Cx.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const Px=[Xs,Mb,Ys,Ws,Bs,Zs,Bb,Cx,kx],Ex=["children","localeText","plugins","seriesConfig","slots","slotProps"],Tx=e=>{const t=Lh({props:e,name:"MuiChartDataProvider"}),{children:n,localeText:r,plugins:i=Px,seriesConfig:o,slots:a,slotProps:s}=t,c=tt(t,Ex);return{children:n,localeText:r,chartProviderProps:{plugins:i,seriesConfig:o,pluginParams:l({theme:xm().palette.mode},c)},slots:a,slotProps:s}},Ax=e=>{const{chartProviderProps:t,localeText:n,slots:r,slotProps:i,children:o}=Tx(e);return{children:o,localeText:n,chartProviderProps:t,slots:r,slotProps:i}},Ox="MTc2NzgzMDQwMDAwMA==",jx="x-charts-pro",Lx=rc;function Rx(e){const{children:t,localeText:n,chartProviderProps:r,slots:i,slotProps:o}=Ax(l({},e,{seriesConfig:e.seriesConfig??Lx,plugins:e.plugins??wx}));return A(jx,Ox),(0,O.jsxs)(oc,l({},r,{children:[(0,O.jsx)(_h,{localeText:n,children:(0,O.jsx)(lc,{slots:i,slotProps:o,defaultSlots:db,children:t})}),(0,O.jsx)(L,{packageName:jx,releaseInfo:Ox})]}))}function Dx(...t){const n=e.useRef(void 0),r=e.useCallback(e=>{const n=t.map(t=>{if(null==t)return null;if("function"==typeof t){const n=t,r=n(e);return"function"==typeof r?r:()=>{n(null)}}return t.current=e,()=>{t.current=null}});return()=>{n.forEach(e=>e?.())}},t);return e.useMemo(()=>t.every(e=>null==e)?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))},t)}const $x=()=>{const t=e.useContext(ot);if(null==t)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("\n"));return t};function zx(){const e=$x();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("\n"));return e.store}function Nx(){return zx().use(he)}function _x(){const e=zx(),{axis:t,axisIds:n}=e.use(ls);return{xAxis:t,xAxisIds:n}}function Fx(){const e=zx(),{axis:t,axisIds:n}=e.use(cs);return{yAxis:t,yAxisIds:n}}function Hx(e){const t=zx(),{axis:n,axisIds:r}=t.use(ls);return n[e??r[0]]}function Bx(e){const t=zx(),{axis:n,axisIds:r}=t.use(cs);return n[e??r[0]]}function Vx(){const e=zx(),{axis:t,axisIds:n}=e.use(jb);return{rotationAxis:t,rotationAxisIds:n}}function Ux(t){const{isReversed:n,gradientId:r,size:i,direction:o,scale:a,colorMap:s}=t;return i<=0?null:(0,O.jsx)("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${n?1:2}`]:`${i}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((t,r)=>{const o=a(t);if(void 0===o)return null;const l=n?1-o/i:o/i;return Number.isNaN(l)?null:(0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)("stop",{offset:l,stopColor:s.colors[r],stopOpacity:1}),(0,O.jsx)("stop",{offset:l,stopColor:s.colors[r+1],stopOpacity:1})]},t.toString()+r)})})}function Yx(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:i,direction:o,scale:a,colorScale:s,colorMap:l}=e,c=[l.min??0,l.max??100],u=c.map(a).filter(e=>void 0!==e);if(2!==u.length)return null;const d="number"==typeof c[0]?Tn(c[0],c[1]):En(c[0],c[1]),p=Math.round((Math.max(...u)-Math.min(...u))/10),h=`${c[0]}-${c[1]}-`;return(0,O.jsx)("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${n?1:2}`]:"objectBoundingBox"===t?1:`${i}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:p+1},(e,t)=>{const r=d(t/p);if(void 0===r)return null;const o=a(r);if(void 0===o)return null;const l=n?1-o/i:o/i,c=s(r);return null===c?null:(0,O.jsx)("stop",{offset:l,stopColor:c,stopOpacity:1},h+t)})})}function Wx(e){const{isReversed:t,gradientId:n,colorScale:r,colorMap:i}=e,o=[i.min??0,i.max??100],a="number"==typeof o[0]?Tn(o[0],o[1]):En(o[0],o[1]),s=`${o[0]}-${o[1]}-`;return(0,O.jsx)("linearGradient",l({id:n},(e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"})(t),{gradientUnits:"objectBoundingBox",children:Array.from({length:11},(e,t)=>{const n=t/10,i=a(n);if(void 0===i)return null;const o=r(i);return null===o?null:(0,O.jsx)("stop",{offset:n,stopColor:o,stopOpacity:1},s+t)})}))}const Gx=ae(e=>e,e=>e.zAxis);function Kx(){const e=zx(),{axis:t,axisIds:n}=e.use(Gx)??{axis:{},axisIds:[]};return{zAxis:t,zAxisIds:n}}const qx=ae(e=>e.id,e=>e.chartId);function Xx(){return zx().use(qx)}function Zx(){const t=Xx();return e.useCallback(e=>`${t}-gradient-${e}`,[t])}function Jx(){const t=Xx();return e.useCallback(e=>`${t}-gradient-${e}-object-bound`,[t])}function Qx(){const{top:t,height:n,bottom:r,left:i,width:o,right:a}=Nx(),s=t+n+r,l=i+o+a,c=Zx(),u=Jx(),{xAxis:d,xAxisIds:p}=_x(),{yAxis:h,yAxisIds:m}=Fx(),{zAxis:f,zAxisIds:g}=Kx(),y=m.filter(e=>void 0!==h[e].colorMap),v=p.filter(e=>void 0!==d[e].colorMap),b=g.filter(e=>void 0!==f[e].colorMap);return 0===y.length&&0===v.length&&0===b.length?null:(0,O.jsxs)("defs",{children:[y.map(t=>{const n=c(t),r=u(t),{colorMap:i,scale:o,colorScale:a,reverse:l}=h[t];return"piecewise"===i?.type?(0,O.jsx)(Ux,{isReversed:!l,scale:o,colorMap:i,size:s,gradientId:n,direction:"y"},n):"continuous"===i?.type?(0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)(Yx,{isReversed:!l,scale:o,colorScale:a,colorMap:i,size:s,gradientId:n,direction:"y"}),(0,O.jsx)(Wx,{isReversed:l,colorScale:a,colorMap:i,gradientId:r})]},n):null}),v.map(t=>{const n=c(t),r=u(t),{colorMap:i,scale:o,reverse:a,colorScale:s}=d[t];return"piecewise"===i?.type?(0,O.jsx)(Ux,{isReversed:a,scale:o,colorMap:i,size:l,gradientId:n,direction:"x"},n):"continuous"===i?.type?(0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)(Yx,{isReversed:a,scale:o,colorScale:s,colorMap:i,size:l,gradientId:n,direction:"x"}),(0,O.jsx)(Wx,{isReversed:a,colorScale:s,colorMap:i,gradientId:r})]},n):null}),b.map(e=>{const t=u(e),{colorMap:n,colorScale:r}=f[e];return"continuous"===n?.type?(0,O.jsx)(Wx,{colorScale:r,colorMap:n,gradientId:t},t):null})]})}function eI(){const e=$x();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("\n"));return e.svgRef}const tI=e=>e.keyboardNavigation,nI=ae(tI,(e,t)=>null!=e?.item&&Us(e.item,t)),rI=ae(tI,e=>null!=e?.item),iI=ae(tI,e=>e?.item??null),oI=ae(tI,e=>!!e?.enableKeyboardNavigation),aI=e=>(t,n,r)=>{if(null==t||!("dataIndex"in t)||void 0===t.dataIndex)return;const i=r[t.type]?.series[t.seriesId];if(!i)return;let o="x"===e?"xAxisId"in i&&i.xAxisId:"yAxisId"in i&&i.yAxisId;return void 0!==o&&!1!==o||(o=n.axisIds[0]),{axisId:o,dataIndex:t.dataIndex}},sI=ae(iI,ls,ft,aI("x")),lI=ae(iI,cs,ft,aI("y")),cI=ae(tI,function(e){if(null==e?.item)return null;const{type:t,seriesId:n}=e.item;return void 0===t||void 0===n?null:e.item});function uI(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let e=0;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"}})),mI=e.forwardRef(function(e,t){const n=zx(),r=n.use(me),i=n.use(fe),o=n.use(ge),a=n.use(ye),s=n.use(oI),c=n.use(rI),u=n.use(Ya),d=Dx(eI(),t),p=Lh({props:e,name:"MuiChartsSurface"}),{children:h,className:m,title:f,desc:g}=p,y=tt(p,pI),v=uI({root:["root"]},dI),b=i>0&&r>0;return(0,O.jsxs)(hI,l({ownerState:{width:o,height:a,hasZoom:u},viewBox:`0 0 ${r} ${i}`,className:Hh(v.root,m),tabIndex:s?0:void 0,"data-has-focused-item":c||void 0},y,{ref:d,children:[f&&(0,O.jsx)("title",{children:f}),g&&(0,O.jsx)("desc",{children:g}),(0,O.jsx)(Qx,{}),b&&h]}))}),fI=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},gI=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=Hh(n?.className,o,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...i,...r}),s=fI(r),l=fI(i),c=t(a),u=Hh(c?.className,n?.className,o,i?.className,r?.className),d={...c?.style,...n?.style,...i?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}},yI=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(n,r),{props:s,internalRef:l}=gI({...o,externalSlotProps:a});return function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(t,{...s,ref:Dx(l,a?.ref,e.additionalProps?.ref)},r)};function vI(e){"hasPointerCapture"in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}const bI=(t,n)=>{const{instance:r}=$x(),i=e.useRef(!1),o=ke(()=>{i.current=!0,r.setLastUpdateSource("pointer"),r.setTooltipItem(t),r.setHighlight("sankey"===t.type?t:{seriesId:t.seriesId,dataIndex:t.dataIndex})}),a=ke(()=>{i.current=!1,r.removeTooltipItem(t),r.clearHighlight()});return e.useEffect(()=>()=>{i.current&&a()},[a]),e.useMemo(()=>n?{}:{onPointerEnter:o,onPointerLeave:a,onPointerDown:vI},[n,o,a])};function xI(){return!1}function II(e,t){return e&&t?function(n){return!!n&&("series"===e.highlight||"item"===e.highlight&&n.dataIndex===t.dataIndex)&&n.seriesId===t.seriesId}:xI}function wI(){return!1}function kI(e,t){return e&&t?function(n){return!!n&&("series"===e.fade?n.seriesId===t.seriesId&&n.dataIndex!==t.dataIndex:"global"===e.fade&&(n.seriesId!==t.seriesId||n.dataIndex!==t.dataIndex))}:wI}function SI(e,t,n){return"series"===e?.highlight&&t?.seriesId===n}function MI(e,t,n){return"item"===e?.highlight&&t?.seriesId===n?t.dataIndex:null}const CI=ae(ft,e=>{const t=new Map;return Object.keys(e).forEach(n=>{const r=e[n];r?.seriesOrder?.forEach(e=>{const n=r?.series[e];t.set(e,n?.highlightScope)})}),t}),PI=le(e=>e.highlight,cI,function(e,t){return e.isControlled||"pointer"===e.lastUpdate?e.item:t}),EI=ae(CI,PI,function(e,t){if(!t)return null;const n=e.get(t.seriesId);return void 0===n?null:n}),TI=le(EI,PI,II),AI=le(EI,PI,kI),OI=ae(EI,PI,function(e,t,n){return II(e,t)(n)}),jI=ae(EI,PI,SI),LI=ae(EI,PI,function(e,t,n){return!SI(e,t,n)&&("global"===e?.fade&&null!=t||"series"===e?.fade&&t?.seriesId===n)}),RI=ae(EI,PI,function(e,t,n){return SI(e,t,n)||MI(e,t,n)===t?.dataIndex||"series"!==e?.fade&&"global"!==e?.fade||t?.seriesId!==n?null:t.dataIndex}),DI=ae(EI,PI,MI),$I=ae(EI,PI,function(e,t,n){return kI(e,t)(n)});function zI(e){const t=zx(),n=t.use(OI,e),r=t.use($I,e);return{isHighlighted:n,isFaded:!n&&r}}var NI=a(9853);const _I=300,FI="cubic-bezier(0.66, 0, 0.34, 1)",HI=NI(.66,0,.34,1);var BI,VI,UI=0,YI=0,WI=0,GI=0,KI=0,qI=0,XI="object"==typeof performance&&performance.now?performance:Date,ZI="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function JI(){return KI||(ZI(QI),KI=XI.now()+qI)}function QI(){KI=0}function ew(){this._call=this._time=this._next=null}function tw(e,t,n){var r=new ew;return r.restart(e,t,n),r}function nw(){KI=(GI=XI.now())+qI,UI=YI=0;try{!function(){JI(),++UI;for(var e,t=BI;t;)(e=KI-t._time)>=0&&t._call.call(void 0,e),t=t._next;--UI}()}finally{UI=0,function(){for(var e,t,n=BI,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:BI=t);VI=e,iw(r)}(),KI=0}}function rw(){var e=XI.now(),t=e-GI;t>1e3&&(qI-=t,GI=e)}function iw(e){UI||(YI&&(YI=clearTimeout(YI)),e-KI>24?(e<1/0&&(YI=setTimeout(nw,e-XI.now()-qI)),WI&&(WI=clearInterval(WI))):(WI||(GI=XI.now(),WI=setInterval(rw,1e3)),UI=1,ZI(nw)))}ew.prototype=tw.prototype={constructor:ew,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?JI():+n)+(null==t?0:+t),this._next||VI===this||(VI?VI._next=this:BI=this,VI=this),this._call=e,this._time=n,iw()},stop:function(){this._call&&(this._call=null,this._time=1/0,iw())}};class ow{elapsed=0;timer=null;constructor(e,t,n){this.duration=e,this.easingFn=t,this.onTickCallback=n,this.resume()}get running(){return null!==this.timer}timerCallback(e){this.elapsed=Math.min(e,this.duration);const t=0===this.duration?1:this.elapsed/this.duration,n=this.easingFn(t);this.onTickCallback(n),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const e=JI()-this.elapsed;return this.timer=tw(e=>this.timerCallback(e),0,e),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),e=()=>this.timerCallback(this.duration),n=new ew,t=null==t?0:+t,n.restart(t=>{n.stop(),e()},t,void 0),this;var e,t,n}}function aw(t,{createInterpolator:n,transformProps:r,applyProps:i,skip:o,initialProps:a=t,ref:s}){const c=r??(e=>e),[u,d]=function(t,{createInterpolator:n,applyProps:r,skip:i,initialProps:o=t}){const a=e.useRef(o),s=e.useRef(null),l=e.useRef(null),c=e.useRef(t);V(()=>{c.current=t},[t]),V(()=>{i&&(s.current?.finish(),s.current=null,l.current=null,a.current=t)},[t,i]);const u=e.useCallback(e=>{const i=a.current,o=n(i,t);s.current=new ow(_I,HI,t=>{const n=o(t);a.current=n,r(e,n)})},[r,n,t]),d=e.useCallback(e=>{if(null===e)return void s.current?.stop();const n=l.current;if(n===e){if(function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;ri(e,c(t)),skip:o});return l({},r(o?t:d),{ref:Dx(u,s)})}function sw(e){return e.replace(" ","_")}const lw=Zb("MuiAppearingMask",["animate"]),cw=bm("rect",{slot:"internal",shouldForwardProp:void 0})({animationName:"animate-width",animationTimingFunction:FI,animationDuration:"0s",[`&.${lw.animate}`]:{animationDuration:`${_I}ms`},"@keyframes animate-width":{from:{width:0}}});function uw(t){const n=Nx(),r=sw(`${Xx()}-${t.id}`);return(0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)("clipPath",{id:r,children:(0,O.jsx)(cw,{className:t.skipAnimation?"":lw.animate,x:0,y:0,width:n.left+n.width+n.right,height:n.top+n.height+n.bottom})}),(0,O.jsx)("g",{clipPath:`url(#${r})`,children:t.children})]})}const dw=["skipAnimation","ownerState"];function pw(e){const{skipAnimation:t,ownerState:n}=e,r=tt(e,dw),i=function(e){return aw({d:e.d},{createInterpolator:(e,t)=>{const n=Ln(e.d,t.d);return e=>({d:n(e)})},applyProps:(e,{d:t})=>e.setAttribute("d",t),transformProps:e=>e,skip:e.skipAnimation,ref:e.ref})}(e);return(0,O.jsx)(uw,{skipAnimation:t,id:`${n.id}-area-clip`,children:(0,O.jsx)("path",l({fill:n.gradientId?`url(#${n.gradientId})`:n.color,filter:n.isHighlighted?"brightness(140%)":n.gradientId?void 0:"brightness(120%)",opacity:n.isFaded?.3:1,stroke:"none","data-series":n.id,"data-highlighted":n.isHighlighted||void 0,"data-faded":n.isFaded||void 0},r,i))})}const hw=["id","classes","color","gradientId","slots","slotProps","onClick"];function mw(e){return Xb("MuiAreaElement",e)}const fw=Zb("MuiAreaElement",["root","highlighted","faded","series"]),gw=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i}=e;return uI({root:["root",`series-${n}`,i&&"highlighted",r&&"faded"]},mw,t)};function yw(e){const{id:t,classes:n,color:r,gradientId:i,slots:o,slotProps:a,onClick:s}=e,c=tt(e,hw),u=bI({type:"line",seriesId:t}),{isFaded:d,isHighlighted:p}=zI({seriesId:t}),h={id:t,classes:n,color:r,gradientId:i,isFaded:d,isHighlighted:p},m=gw(h),f=o?.area??pw,g=yI({elementType:f,externalSlotProps:a?.area,additionalProps:l({},u,{onClick:s,cursor:s?"pointer":"unset"}),className:m.root,ownerState:h});return(0,O.jsx)(f,l({},c,g))}const vw=ae(e=>e.animation,e=>e.skip||e.skipAnimationRequests>0);function bw(e){const t=zx().use(vw);return e||t}function xw(){return zx().use(Wa)}function Iw(e){this._context=e}function ww(e){return new Iw(e)}Iw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}};const kw=Math.PI,Sw=2*kw,Mw=1e-6,Cw=Sw-Mw;function Pw(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Pw;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tMw)if(Math.abs(u*s-l*c)>Mw&&i){let p=n-o,h=r-a,m=s*s+l*l,f=p*p+h*h,g=Math.sqrt(m),y=Math.sqrt(d),v=i*Math.tan((kw-Math.acos((m+d-f)/(2*g*y)))/2),b=v/y,x=v/g;Math.abs(b-1)>Mw&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*p>c*h)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Mw||Math.abs(this._y1-c)>Mw)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Sw+Sw),d>Cw?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Mw&&this._append`A${n},${n},0,${+(d>=kw)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Tw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ew(t)}function Aw(e){return e[0]}function Ow(e){return e[1]}function jw(e,t){var n=rl(!0),r=null,i=ww,o=null,a=Tw(s);function s(s){var l,c,u,d=(s=nl(s)).length,p=!1;for(null==r&&(o=i(u=a())),l=0;l<=d;++l)!(l=d;--p)s.point(y[p],v[p]);s.lineEnd(),s.areaEnd()}g&&(y[u]=+e(h,u,c),v[u]=+t(h,u,c),s.point(r?+r(h,u,c):y[u],n?+n(h,u,c):v[u]))}if(m)return s=null,m+""||null}function u(){return jw().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?Aw:rl(+e),t="function"==typeof t?t:rl(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Ow:rl(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:rl(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:rl(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:rl(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:rl(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:rl(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:rl(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:rl(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),c):a},c.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),c):o},c}function Rw(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Dw(e,t){this._context=e,this._k=(1-t)/6}function $w(e,t){this._context=e,this._alpha=t}Ew.prototype,Dw.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:Rw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Rw(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return new Dw(e,t)}return n.tension=function(t){return e(+t)},n}(0),$w.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Kl){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Kl){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}(this,e,t)}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 zw=function e(t){function n(e){return t?new $w(e,t):new Dw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Nw(e){return e<0?-1:1}function _w(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Nw(o)+Nw(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Fw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Hw(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Bw(e){this._context=e}function Vw(e){this._context=new Uw(e)}function Uw(e){this._context=e}function Yw(e){return new Bw(e)}function Ww(e){return new Vw(e)}function Gw(e){this._context=e}function Kw(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};class ek{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function tk(e){return new ek(e,!0)}function nk(e){return new ek(e,!1)}function rk(e){switch(e){case"catmullRom":return zw.alpha(.5);case"linear":return ww;case"monotoneX":default:return Yw;case"monotoneY":return Ww;case"natural":return qw;case"step":return Zw;case"stepBefore":return Jw;case"stepAfter":return Qw;case"bumpY":return nk;case"bumpX":return tk}}const ik=ae(ft,(e,t)=>e[t]),ok=le(ft,(e,t,n)=>{if(void 0===n||Array.isArray(n)&&0===n.length)return e[t]?.seriesOrder?.map(n=>e[t]?.series[n])??[];if(!Array.isArray(n))return e[t]?.series?.[n];const r=[],i=[];for(const o of n){const n=e[t]?.series?.[o];n?r.push(n):i.push(o)}return r}),ak=e=>zx().use(ik,e),sk=(e,t)=>zx().use(ok,e,t);function lk(){return ak("line")}function ck(e){if(fa(e))return t=>(e(t)??0)+e.bandwidth()/2;const t=e.domain();return t[0]===t[1]?n=>n===t[0]?e(n):NaN:t=>e(t)}function uk(e){return Hx(e).scale}function dk(e){return Bx(e).scale}function pk(t,n){const r=lk(),i=_x().xAxisIds[0],o=Fx().yAxisIds[0],a=Zx(),s=e.useMemo(()=>{if(void 0===r)return[];const{series:e,stackingGroups:s}=r,l=[];for(const r of s){const s=r.ids;for(let r=s.length-1;r>=0;r-=1){const c=s[r],{xAxisId:u=i,yAxisId:d=o,stackedData:p,data:h,connectNulls:m,baseline:f,curve:g,strictStepCurve:y,area:v}=e[c];if(!v||!(u in t)||!(d in n))continue;const b=t[u].scale,x=ck(b),I=n[d].scale,w=t[u].data,k=n[d].colorScale&&a(d)||t[u].colorScale&&a(u)||void 0,S=g?.includes("step")&&!y&&fa(b),M=w?.flatMap((e,t)=>{const n=null==h[t];if(S){const r=[{x:e,y:p[t],nullData:n,isExtension:!1}];return n||0!==t&&null!=h[t-1]||r.unshift({x:(b(e)??0)-(b.step()-b.bandwidth())/2,y:p[t],nullData:n,isExtension:!0}),n||t!==h.length-1&&null!=h[t+1]||r.push({x:(b(e)??0)+(b.step()+b.bandwidth())/2,y:p[t],nullData:n,isExtension:!0}),r}return{x:e,y:p[t],nullData:n}})??[],C=m?M.filter(e=>!e.nullData):M,P=Lw().x(e=>e.isExtension?e.x:x(e.x)).defined(e=>m||!e.nullData||!!e.isExtension).y0(e=>{if("number"==typeof f)return I(f);if("max"===f)return I.range()[1];if("min"===f)return I.range()[0];const t=e.y&&I(e.y[0]);return Number.isNaN(t)?I.range()[0]:t}).y1(e=>e.y&&I(e.y[1])),E=P.curve(rk(g))(C)||"";l.push({area:e[c].area,color:e[c].color,gradientId:k,d:E,seriesId:c})}}return l},[r,i,o,t,n,a]);return s}const hk=["slots","slotProps","onItemClick","skipAnimation"],mk=bm("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${fw.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${_I}ms`,transitionTimingFunction:FI}}),fk=()=>{const{xAxis:e}=_x(),{yAxis:t}=Fx();return pk(e,t)};function gk(e){const{slots:t,slotProps:n,onItemClick:r,skipAnimation:i}=e,o=tt(e,hk),a=bw(xw()||i),s=fk();return(0,O.jsx)(mk,l({},o,{children:s.map(({d:e,seriesId:i,color:o,area:s,gradientId:l})=>!!s&&(0,O.jsx)(yw,{id:i,d:e,color:o,gradientId:l,slots:t,slotProps:n,onClick:r&&(e=>r(e,{type:"line",seriesId:i})),skipAnimation:a},i))}))}const yk=["skipAnimation","ownerState"],vk=e.forwardRef(function(e,t){const{skipAnimation:n,ownerState:r}=e,i=tt(e,yk),o=function(e){return aw({d:e.d},{createInterpolator:(e,t)=>{const n=Ln(e.d,t.d);return e=>({d:n(e)})},applyProps:(e,{d:t})=>e.setAttribute("d",t),skip:e.skipAnimation,transformProps:e=>e,ref:e.ref})}({d:e.d,skipAnimation:n,ref:t}),a=r.isFaded?.3:1;return(0,O.jsx)(uw,{skipAnimation:n,id:`${r.id}-line-clip`,children:(0,O.jsx)("path",l({stroke:r.gradientId?`url(#${r.gradientId})`:r.color,strokeWidth:2,strokeLinejoin:"round",fill:"none",filter:r.isHighlighted?"brightness(120%)":void 0,opacity:r.hidden?0:a,"data-series":r.id,"data-highlighted":r.isHighlighted||void 0,"data-faded":r.isFaded||void 0},i,o))})}),bk=["id","classes","color","gradientId","slots","slotProps","onClick","hidden"];function xk(e){return Xb("MuiLineElement",e)}const Ik=Zb("MuiLineElement",["root","highlighted","faded","series"]),wk=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i}=e;return uI({root:["root",`series-${n}`,i&&"highlighted",r&&"faded"]},xk,t)};function kk(e){const{id:t,classes:n,color:r,gradientId:i,slots:o,slotProps:a,onClick:s,hidden:c}=e,u=tt(e,bk),d=bI({type:"line",seriesId:t}),{isFaded:p,isHighlighted:h}=zI({seriesId:t}),m={id:t,classes:n,color:r,gradientId:i,isFaded:p,isHighlighted:h,hidden:c},f=wk(m),g=o?.line??vk,y=yI({elementType:g,externalSlotProps:a?.line,additionalProps:l({},d,{onClick:s,cursor:s?"pointer":"unset"}),className:f.root,ownerState:m});return(0,O.jsx)(g,l({},u,y))}function Sk(t,n){const r=lk(),i=_x().xAxisIds[0],o=Fx().yAxisIds[0],a=Zx();return e.useMemo(()=>{if(void 0===r)return[];const{series:e,stackingGroups:s}=r,l=[];for(const r of s){const s=r.ids;for(const r of s){const{xAxisId:s=i,yAxisId:c=o,stackedData:u,data:d,connectNulls:p,curve:h,strictStepCurve:m}=e[r];if(!(s in t)||!(c in n))continue;const f=t[s].scale,g=ck(f),y=n[c].scale,v=t[s].data,b=n[c].colorScale&&a(c)||t[s].colorScale&&a(s)||void 0,x=h?.includes("step")&&!m&&fa(f),I=v?.flatMap((e,t)=>{const n=null==d[t];if(x){const r=[{x:e,y:u[t],nullData:n,isExtension:!1}];return n||0!==t&&null!=d[t-1]||r.unshift({x:(f(e)??0)-(f.step()-f.bandwidth())/2,y:u[t],nullData:n,isExtension:!0}),n||t!==d.length-1&&null!=d[t+1]||r.push({x:(f(e)??0)+(f.step()+f.bandwidth())/2,y:u[t],nullData:n,isExtension:!0}),r}return{x:e,y:u[t],nullData:n}})??[],w=p?I.filter(e=>!e.nullData):I,k=jw().x(e=>e.isExtension?e.x:g(e.x)).defined(e=>p||!e.nullData||!!e.isExtension).y(e=>y(e.y[1])),S=k.curve(rk(h))(w)||"";l.push({color:e[r].color,gradientId:b,d:S,seriesId:r})}}return l},[r,i,o,t,n,a])}const Mk=["slots","slotProps","skipAnimation","onItemClick"],Ck=bm("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${Ik.root}`]:{transitionProperty:"opacity, fill",transitionDuration:`${_I}ms`,transitionTimingFunction:FI}}),Pk=()=>{const{xAxis:e}=_x(),{yAxis:t}=Fx();return Sk(e,t)};function Ek(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:i}=e,o=tt(e,Mk),a=bw(xw()||r),s=Pk();return(0,O.jsx)(Ck,l({},o,{children:s.map(({d:e,seriesId:r,color:o,gradientId:s})=>(0,O.jsx)(kk,{id:r,d:e,color:o,gradientId:s,skipAnimation:a,slots:t,slotProps:n,onClick:i&&(e=>i(e,{type:"line",seriesId:r}))},r))}))}function Tk(e){return Xb("MuiMarkElement",e)}const Ak=Zb("MuiMarkElement",["root","highlighted","faded","animate","series"]),Ok=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i,skipAnimation:o}=e;return uI({root:["root",`series-${n}`,i&&"highlighted",r&&"faded",o?void 0:"animate"]},Tk,t)},jk=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","isFaded","isHighlighted","shape","hidden"],Lk=bm("circle",{slot:"internal",shouldForwardProp:void 0})({[`&.${Ak.animate}`]:{transitionDuration:`${_I}ms`,transitionProperty:"cx, cy, opacity",transitionTimingFunction:FI}});function Rk(e){const{x:t,y:n,id:r,classes:i,color:o,dataIndex:a,onClick:s,skipAnimation:c,isFaded:u=!1,isHighlighted:d=!1,hidden:p}=e,h=tt(e,jk),m=xm(),f=bI({type:"line",seriesId:r,dataIndex:a}),g=Ok({id:r,classes:i,isHighlighted:d,isFaded:u,skipAnimation:c});return(0,O.jsx)(Lk,l({},h,{cx:t,cy:n,r:5,fill:(m.vars||m).palette.background.paper,stroke:o,strokeWidth:2,className:g.root,onClick:s,cursor:s?"pointer":"unset",pointerEvents:p?"none":void 0},f,{"data-highlighted":d||void 0,"data-faded":u||void 0,opacity:p?0:1}))}Gl(3);const Dk={draw(e,t){const n=Gl(t/ql);e.moveTo(n,0),e.arc(0,0,n,0,Zl)}},$k={draw(e,t){const n=Gl(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},zk=Gl(1/3),Nk=2*zk,_k={draw(e,t){const n=Gl(t/Nk),r=n*zk;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Fk={draw(e,t){const n=Gl(t),r=-n/2;e.rect(r,r,n,n)}},Hk=Wl(ql/10)/Wl(7*ql/10),Bk=Wl(Zl/10)*Hk,Vk=-Vl(Zl/10)*Hk,Uk={draw(e,t){const n=Gl(.8908130915292852*t),r=Bk*n,i=Vk*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){const o=Zl*t/5,a=Vl(o),s=Wl(o);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*i,s*r+a*i)}e.closePath()}},Yk=Gl(3),Wk={draw(e,t){const n=-Gl(t/(3*Yk));e.moveTo(0,2*n),e.lineTo(-Yk*n,-n),e.lineTo(Yk*n,-n),e.closePath()}},Gk=(Gl(3),-.5),Kk=Gl(3)/2,qk=1/Gl(12),Xk=3*(qk/2+1),Zk={draw(e,t){const n=Gl(t/Xk),r=n/2,i=n*qk,o=r,a=n*qk+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Gk*r-Kk*i,Kk*r+Gk*i),e.lineTo(Gk*o-Kk*a,Kk*o+Gk*a),e.lineTo(Gk*s-Kk*l,Kk*s+Gk*l),e.lineTo(Gk*r+Kk*i,Gk*i-Kk*r),e.lineTo(Gk*o+Kk*a,Gk*a-Kk*o),e.lineTo(Gk*s+Kk*l,Gk*l-Kk*s),e.closePath()}},Jk=[Dk,$k,_k,Fk,Uk,Wk,Zk];function Qk(e,t){let n=null,r=Tw(i);function i(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"==typeof e?e:rl(e||Dk),t="function"==typeof t?t:rl(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:rl(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:rl(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i}function eS(e){switch(e){case"circle":default: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}}const tS=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation","isFaded","isHighlighted","hidden","style"],nS=bm("path",{name:"MuiMarkElement",slot:"Root"})(({theme:e})=>({fill:(e.vars||e).palette.background.paper,[`&.${Ak.animate}`]:{transitionDuration:`${_I}ms`,transitionProperty:"transform, transform-origin, opacity",transitionTimingFunction:FI}}));function rS(e){const{x:t,y:n,id:r,classes:i,color:o,shape:a,dataIndex:s,onClick:c,skipAnimation:u,isFaded:d=!1,isHighlighted:p=!1,hidden:h,style:m}=e,f=tt(e,tS),g=bI({type:"line",seriesId:r,dataIndex:s}),y={id:r,classes:i,isHighlighted:p,isFaded:d,skipAnimation:u},v=Ok(y);return(0,O.jsx)(nS,l({},f,{style:l({},m,{transform:`translate(${t}px, ${n}px)`,transformOrigin:`${t}px ${n}px`}),ownerState:y,className:v.root,d:Qk(Jk[eS(a)])(),onClick:c,cursor:c?"pointer":"unset",pointerEvents:h?"none":void 0},g,{"data-highlighted":p||void 0,"data-faded":d||void 0,opacity:h?0:1,strokeWidth:2,stroke:o}))}function iS(){const e=zx();return{isHighlighted:e.use(TI),isFaded:e.use(AI)}}const oS=e=>e.controlledCartesianAxisHighlight,aS=(e,t,n,r)=>r?[]:void 0!==n?n.filter(e=>void 0!==t.axis[e.axisId]).map(e=>e):null===e?[]:[{axisId:t.axisIds[0],dataIndex:e}],sS=le(As,ls,oS,kb,aS),lS=(le(Os,cs,oS,kb,aS),(e,t,n,r,i,o,a)=>{if(a)return[];if(void 0!==r)return r.map(e=>l({},e,{value:n.axis[e.axisId]?.data?.[e.dataIndex]})).filter(({value:e})=>void 0!==e);const s=null!==t&&{axisId:n.axisIds[0],dataIndex:e,value:t},c=i&&n.axis[i.axisId]?.data?.[i.dataIndex],u=i&&null!=c&&l({},i,{value:c});if("pointer"===o){if(s)return[s];if(u)return[u]}if("keyboard"===o){if(u)return[u];if(s)return[s]}return[]}),cS=le(As,Rs,ls,oS,sI,Cs,kb,lS),uS=le(Os,Ds,cs,oS,lI,Cs,kb,lS),dS=(e,t)=>void 0===e?[t.axis[t.axisIds[0]]]:e.map(e=>t.axis[e.axisId]??null).filter(e=>null!==e);ae(oS,ls,dS),ae(oS,cs,dS);const pS=["slots","slotProps","skipAnimation","onItemClick"];function hS(t){const{slots:n,slotProps:r,skipAnimation:i,onItemClick:o}=t,a=tt(t,pS),s=bw(xw()||i),{xAxis:c}=_x(),{yAxis:u}=Fx(),{store:d}=$x(),{isFaded:p,isHighlighted:h}=iS(),m=d.use(sS),f=e.useMemo(()=>{const e={};for(const{dataIndex:t,axisId:n}of m)void 0===e[n]?e[n]=new Set([t]):e[n].add(t);return e},[m]),g=function(t,n){const r=lk(),i=_x().xAxisIds[0],o=Fx().yAxisIds[0],a=Xx(),{instance:s}=$x(),l=e.useMemo(()=>{if(void 0===r)return[];const{series:e,stackingGroups:l}=r,c=[];for(const r of l){const l=r.ids;for(const r of l){const{xAxisId:l=i,yAxisId:u=o,stackedData:d,data:p,showMark:h=!0,shape:m="circle"}=e[r];if(!1===h)continue;if(!(l in t)||!(u in n))continue;const f=ck(t[l].scale),g=n[u].scale,y=t[l].data,v=sw(`${a}-${r}-line-clip`),b=$l(e[r],t[l],n[u]),x=[];if(y)for(let e=0;e{const u=n?.mark??("circle"===i?Rk:rS),d=h({seriesId:e}),m=!d&&p({seriesId:e});return(0,O.jsx)("g",{clipPath:`url(#${t})`,"data-series":e,children:c.map(({x:t,y:n,index:c,color:p})=>(0,O.jsx)(u,l({id:e,dataIndex:c,shape:i,color:p,x:t,y:n,skipAnimation:s,onClick:o&&(t=>o(t,{type:"line",seriesId:e,dataIndex:c})),isHighlighted:f[a]?.has(c)||d,isFaded:m},r?.mark),`${e}-${c}`))},e)})}))}new Set;const mS=e.createContext(),fS=()=>e.useContext(mS)??!1;function gS(){const[t,n]=e.useState(!1);return e.useEffect(()=>{n(!0)},[]),t}function yS(e){return"number"==typeof e&&!Number.isFinite(e)}function vS(e,t){return Math.abs(12*t.getFullYear()+t.getMonth()-12*e.getFullYear()-e.getMonth())}function bS(e,t){return Math.abs(t.getTime()-e.getTime())/864e5}const xS={years:{getTickNumber:function(e,t){return Math.abs(t.getFullYear()-e.getFullYear())},isTick:(e,t)=>t.getFullYear()!==e.getFullYear(),format:e=>e.getFullYear().toString()},quarterly:{getTickNumber:(e,t)=>Math.floor(vS(e,t)/3),isTick:(e,t)=>t.getMonth()!==e.getMonth()&&t.getMonth()%3==0,format:new Intl.DateTimeFormat("default",{month:"short"}).format},months:{getTickNumber:vS,isTick:(e,t)=>t.getMonth()!==e.getMonth(),format:new Intl.DateTimeFormat("default",{month:"short"}).format},biweekly:{getTickNumber:(e,t)=>bS(e,t)/14,isTick:(e,t)=>(t.getDay()7)&&Math.floor(t.getDate()/7)%2==1,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},weeks:{getTickNumber:(e,t)=>bS(e,t)/7,isTick:(e,t)=>t.getDay()=7,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},days:{getTickNumber:bS,isTick:(e,t)=>t.getDate()!==e.getDate(),format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},hours:{getTickNumber:function(e,t){return Math.abs(t.getTime()-e.getTime())/36e5},isTick:(e,t)=>t.getHours()!==e.getHours(),format:new Intl.DateTimeFormat("default",{hour:"2-digit",minute:"2-digit"}).format}},IS={start:0,extremities:0,end:1,middle:.5};function wS(e,t,n){return e(t)-(e.step()-e.bandwidth())/2+IS[n]*e.step()}function kS(t){const{scale:n,tickNumber:r,valueFormatter:i,tickInterval:o,tickPlacement:a="extremities",tickLabelPlacement:s,tickSpacing:l,direction:c,ordinalTimeTicks:u}=t,{instance:d}=$x(),p="x"===c?d.isXInside:d.isYInside;return e.useMemo(()=>function(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:i,tickPlacement:o,tickLabelPlacement:a,tickSpacing:s,isInside:l,ordinalTimeTicks:c}=e;if(void 0!==c&&sa(t.domain())&&fa(t)){const e=t.domain();if(0===e.length||1===e.length)return[];const r="middle",i=function(e,t,n,r,i){if(0===n.length)return[];const o=r.range()[0]>r.range()[1],a=e.findIndex(e=>i(wS(r,e,o?"start":"end"))),s=e.findLastIndex(e=>i(wS(r,e,o?"end":"start"))),l=e[0],c=e[e.length-1];if(!(l instanceof Date&&c instanceof Date))return[];let u=0;for(let e=0;et||t/r"string"==typeof e?xS[e]:e),t,l);return i.map(({index:n,formatter:i})=>{const o=e[n];return{value:o,formattedValue:i(o),offset:wS(t,o,r),labelOffset:0}})}const u=o??"extremities";if(fa(t)){const e=t.domain(),o=a??"middle";let c=e;if("object"==typeof i&&null!=i?c=i:("function"==typeof i&&(c=c.filter(i)),void 0!==s&&s>0&&(c=function(e,t,n){const r=Math.abs(t[1]-t[0]),i=Math.ceil(e.length/(r/n));return Number.isNaN(i)||i<=1?e:e.filter((e,t)=>t%i===0)}(c,t.range(),s))),0===c.length)return[];if(t.bandwidth()>0){const i=t.range()[0]>t.range()[1],a=c.findIndex(e=>l(wS(t,e,i?"start":"end"))),s=c.findLastIndex(e=>l(wS(t,e,i?"end":"start")));return[...c.slice(a,s+1).map(e=>{const i=`${e}`;return{value:e,formattedValue:r?.(e,{location:"tick",scale:t,tickNumber:n,defaultTickLabel:i})??i,offset:wS(t,e,u),labelOffset:"tick"===o?0:t.step()*(IS[o]-IS[u])}}),..."extremities"===u&&s===e.length-1&&l(t.range()[1])?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]}return c.map(e=>{const i=`${e}`;return{value:e,formattedValue:r?.(e,{location:"tick",scale:t,tickNumber:n,defaultTickLabel:i})??i,offset:t(e),labelOffset:0}})}if(t.domain().some(yS))return[];const d=a,p="object"==typeof i?i:function(e,t){const n=e.domain();return n[0]===n[1]?[n[0]]:e.ticks(t)}(t,n),h=[];for(let e=0;e=t)break;return r}:function(e,t){return e.slice(0,t)},ES="…";function TS(e,t){const{width:n,height:r,measureText:i}=t,o=t.angle*(Math.PI/180),a=i(e),s=Math.abs(a.width*Math.cos(o))+Math.abs(a.height*Math.sin(o)),l=Math.abs(a.width*Math.sin(o))+Math.abs(a.height*Math.cos(o));return s<=n&&l<=r}function AS(e,t){if(t(e))return e;let n=e,r=1,i=.5;const o=MS(e);let a=o,s=o,l=null;do{if(s=a,a=Math.floor(o*i),0===a)break;n=PS(e,a).trim(),r+=1,t(n+ES)?(l=n,i+=1/2**r):i-=1/2**r}while(1!==Math.abs(a-s));return l?l+ES:""}function OS(){return"undefined"==typeof window}const jS=new Map,LS=2e3,RS=new Set(["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"]);function DS(e,t){return RS.has(e)&&t===+t?`${t}px`:t}const $S=/([A-Z])/g;function zS(e){return String(e).replace($S,e=>`-${e.toLowerCase()}`)}function NS(e){let t="";for(const n in e)if(Object.hasOwn(e,n)){const r=n,i=e[r];if(void 0===i)continue;t+=`${zS(r)}:${DS(r,i)};`}return t}const _S=(e,t={})=>{if(null==e||OS())return{width:0,height:0};const n=String(e),r=`${n}-${NS(t)}`,i=jS.get(r);if(i)return i;try{const e=BS(),i=document.createElementNS("http://www.w3.org/2000/svg","text");Object.keys(t).map(e=>(i.style[zS(e)]=DS(e,t[e]),e)),i.textContent=n,e.replaceChildren(i);const o=FS(i);return jS.set(r,o),jS.size+1>LS&&jS.clear(),o}catch{return{width:0,height:0}}};function FS(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 HS=null;function BS(){return null===HS&&(HS=document.createElementNS("http://www.w3.org/2000/svg","svg"),HS.setAttribute("aria-hidden","true"),HS.style.position="absolute",HS.style.top="-20000px",HS.style.left="0",HS.style.padding="0",HS.style.margin="0",HS.style.border="none",HS.style.pointerEvents="none",HS.style.visibility="hidden",HS.style.contain="strict",document.body.appendChild(HS)),HS}const VS=5;function US(e){return Xb("MuiChartsAxis",e)}const YS=Zb("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]),WS=e=>{const{classes:t,position:n,id:r}=e;return uI({root:["root","directionX",n,`id-${r}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},US,t)},GS=3,KS=4,qS={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4},XS=["x","y","style","text","ownerState"],ZS=["angle","textAnchor","dominantBaseline"];function JS(t){const{x:n,y:r,style:i,text:o}=t,a=tt(t,XS),s=i??{},{angle:c,textAnchor:u,dominantBaseline:d}=s,p=tt(s,ZS),h=gS(),m=e.useMemo(()=>function({style:e,needsComputation:t,text:n}){return n.split("\n").map(n=>l({text:n},t?_S(n,e):{width:0,height:0}))}({style:p,needsComputation:h&&o.includes("\n"),text:o}),[p,o,h]);let f;switch(d){case"hanging":case"text-before-edge":f=0;break;case"central":f=(m.length-1)/2*-m[0].height;break;default:f=(m.length-1)*-m[0].height}return(0,O.jsx)("text",l({},a,{transform:c?`rotate(${c}, ${n}, ${r})`:void 0,x:n,y:r,textAnchor:u,dominantBaseline:d,style:p,children:m.map((e,t)=>(0,O.jsx)("tspan",{x:n,dy:`${0===t?f:m[0].height}px`,dominantBaseline:d,children:e.text},t))}))}function QS(e){const t=$b(e);return t<=30||t>=330||t<=210&&t>=150?"middle":t<=180?"end":"start"}function eM(e){const t=$b(e);return t<=30||t>=330?"hanging":t<=210&&t>=150?"auto":"central"}function tM(e){switch(e){case"start":return"end";case"end":return"start";default:return e}}const nM=["scale","tickNumber","reverse"];function rM(e){const{xAxis:t,xAxisIds:n}=_x(),r=t[e.axisId??n[0]],{scale:i,tickNumber:o,reverse:a}=r,s=Lh({props:l({},tt(r,nM),e),name:"MuiChartsXAxis"}),c=l({},qS,s),{position:u,tickLabelStyle:d,slots:p,slotProps:h}=c,m=xm(),f=fS(),g=WS(c),y="bottom"===u?1:-1,v=p?.axisTick??"line",b=p?.axisTickLabel??JS,x=QS(("bottom"===u?0:180)-(d?.angle??0)),I=eM(("bottom"===u?0:180)-(d?.angle??0));return{xScale:i,defaultizedProps:c,tickNumber:o,positionSign:y,classes:g,Tick:v,TickLabel:b,axisTickLabelProps:yI({elementType:b,externalSlotProps:h?.axisTickLabel,additionalProps:{style:l({},m.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:f?tM(x):x,dominantBaseline:I},d)},className:g.tickLabel,ownerState:{}}),reverse:a}}function iM(t){const{axisLabelHeight:n,ordinalTimeTicks:r}=t,{xScale:i,defaultizedProps:o,tickNumber:a,positionSign:s,classes:c,Tick:u,TickLabel:d,axisTickLabelProps:p,reverse:h}=rM(t),m=fS(),f=function(t=!1){const[n,r]=e.useState(!1);return V(()=>{t||r(!0)},[t]),e.useEffect(()=>{t&&r(!0)},[t]),n}(),{disableTicks:g,tickSize:y,valueFormatter:v,slotProps:b,tickInterval:x,tickLabelInterval:I,tickPlacement:w,tickLabelPlacement:k,tickLabelMinGap:S,tickSpacing:M,height:C}=o,P=Nx(),{instance:E}=$x(),T=gS(),A=g?4:y,j=kS({scale:i,tickNumber:a,valueFormatter:v,tickInterval:x,tickPlacement:w,tickLabelPlacement:k,tickSpacing:M,direction:"x",ordinalTimeTicks:r}),L=function(e,{tickLabelStyle:t,tickLabelInterval:n,tickLabelMinGap:r,reverse:i,isMounted:o,isXInside:a}){if("function"==typeof n)return new Set(e.filter((e,t)=>n(e.value,t)));let s=0;const c=i?-1:1,u=e.filter(e=>{const{offset:t,labelOffset:n,formattedValue:r}=e;return""!==r&&a(t+n)}),d=function(e,t){const n=new Set;for(const t of e)t.formattedValue&&t.formattedValue.split("\n").forEach(e=>n.add(e));return function(e,t={}){if(OS())return new Map(Array.from(e).map(e=>[e,{width:0,height:0}]));const n=new Map,r=[],i=NS(t);for(const t of e){const e=`${t}-${i}`,o=jS.get(e);o?n.set(t,o):r.push(t)}const o=BS(),a=l({},t);Object.keys(a).map(e=>(o.style[zS(e)]=DS(e,a[e]),e));const s=[];for(const e of r){const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.textContent=`${e}`,s.push(t)}o.replaceChildren(...s);for(let e=0;eLS&&jS.clear(),n}(n,t)}(u,t);return new Set(u.filter((e,n)=>{const{offset:i,labelOffset:a}=e,l=i+a;if(n>0&&c*l90-VS)return t;const i=Ql(r);return i0&&c*(l-c*h/2)0?n+KS:0)-A-GS),D=T?function(e,t,n,r,i){const o=new Map,a=$b(i?.angle??0);let s=1,l=1;"start"===i?.textAnchor?(s=1/0,l=1):"end"===i?.textAnchor?(s=1,l=1/0):(s=2,l=2),a>90&&a<270&&([s,l]=[l,s]),r&&([s,l]=[l,s]);for(const r of e)if(r.formattedValue){const e=Math.min((r.offset+r.labelOffset)*s,(t.left+t.width+t.right-r.offset-r.labelOffset)*l),c=t=>TS(t,{width:e,height:n,angle:a,measureText:e=>_S(e,i)});o.set(r,AS(r.formattedValue.toString(),c))}return o}(L,P,R,m,p.style):new Map(Array.from(L).map(e=>[e,e.formattedValue]));return(0,O.jsx)(e.Fragment,{children:j.map((e,t)=>{const{offset:n,labelOffset:r}=e,i=r??0,o=s*(A+GS),a=E.isXInside(n),h=D.get(e),m=L.has(e);return(0,O.jsxs)("g",{transform:`translate(${n}, 0)`,className:c.tickContainer,children:[!g&&a&&(0,O.jsx)(u,l({y2:s*A,className:c.tick},b?.axisTick)),void 0!==h&&m&&(0,O.jsx)(d,l({x:i,y:o},p,{text:h}))]},t)})})}const oM={start:0,extremities:0,end:1,middle:.5,tick:0};function aM(t){const{scale:n,tickInterval:r,tickLabelPlacement:i="middle",tickPlacement:o="extremities",groups:a}=t;return e.useMemo(()=>{const e=n.domain(),t="function"==typeof r&&e.filter(r)||"object"==typeof r&&r||e;if(n.bandwidth()>0){const e=sM(t,a,o,i,n);return e[0]&&(e[0].ignoreTick=!0),[{formattedValue:void 0,offset:n.range()[0],labelOffset:0,groupIndex:a.length-1},...e,{formattedValue:void 0,offset:n.range()[1],labelOffset:0,groupIndex:a.length-1}]}return sM(t,a,o,i,n)},[n,r,a,o,i])}function sM(e,t,n,r,i){const o=[],a=new Map;let s=0;for(let l=0;l{const r=e[t]??{},i=n??lM.tickSize,o=i*t*2+i;return l({},lM,r,{tickSize:r.tickSize??o})};function uM(t){const{xScale:n,defaultizedProps:r,tickNumber:i,positionSign:o,classes:a,Tick:s,TickLabel:c,axisTickLabelProps:u}=rM(t);if(!fa(n))throw new Error("MUI X Charts: ChartsGroupedXAxis only supports the `band` and `point` scale types.");const{disableTicks:d,tickSize:p,valueFormatter:h,slotProps:m,tickInterval:f,tickPlacement:g,tickLabelPlacement:y}=r,v=r.groups,{instance:b}=$x(),x=aM({scale:n,tickNumber:i,valueFormatter:h,tickInterval:f,tickPlacement:g,tickLabelPlacement:y,direction:"x",groups:v});return(0,O.jsx)(e.Fragment,{children:x.map((e,t)=>{const{offset:n,labelOffset:r}=e,i=r??0,h=b.isXInside(n),f=e.formattedValue,g=e.ignoreTick??!1,y=e.groupIndex??0,x=cM(v,y,p),I=o*x.tickSize,w=o*(x.tickSize+GS);return(0,O.jsxs)("g",{transform:`translate(${n}, 0)`,className:a.tickContainer,"data-group-index":y,children:[!d&&!g&&h&&(0,O.jsx)(s,l({y2:I,className:a.tick},m?.axisTick)),void 0!==f&&(0,O.jsx)(c,l({x:i,y:w},u,{style:l({},u.style,x.tickLabelStyle),text:f}))]},t)})})}const dM=bm("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:e})=>({[`& .${YS.tickLabel}`]:l({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${YS.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${YS.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${YS.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),pM=["axis"],hM=["scale","tickNumber","reverse","ordinalTimeTicks"],mM=bm(dM,{name:"MuiChartsXAxis",slot:"Root"})({});function fM(e){let{axis:t}=e,n=tt(e,pM);const{scale:r,ordinalTimeTicks:i}=t,o=Lh({props:l({},tt(t,hM),n),name:"MuiChartsXAxis"}),a=l({},qS,o),{position:s,labelStyle:c,offset:u,slots:d,slotProps:p,sx:h,disableLine:m,label:f,height:g}=a,y=xm(),v=WS(a),{left:b,top:x,width:I,height:w}=Nx(),k="bottom"===s?1:-1,S=d?.axisLine??"line",M=d?.axisLabel??JS,C=yI({elementType:M,externalSlotProps:p?.axisLabel,additionalProps:{style:l({},y.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:"bottom"===s?"text-after-edge":"text-before-edge"},c)},ownerState:{}});if("none"===s)return null;const P=f?_S(f,C.style).height:0,E=r.domain();let T=null;(fa(r)?0===E.length:E.some(yS))||(T="groups"in t&&Array.isArray(t.groups)?(0,O.jsx)(uM,l({},n)):(0,O.jsx)(iM,l({},n,{axisLabelHeight:P,ordinalTimeTicks:i})));const A={x:b+I/2,y:k*g};return(0,O.jsxs)(mM,{transform:`translate(0, ${"bottom"===s?x+w+u:x-u})`,className:v.root,sx:h,children:[!m&&(0,O.jsx)(S,l({x1:b,x2:b+I,className:v.line},p?.axisLine)),T,f&&(0,O.jsx)("g",{className:v.label,children:(0,O.jsx)(M,l({},A,C,{text:f}))})]})}function gM(e){const{xAxis:t,xAxisIds:n}=_x(),r=t[e.axisId??n[0]];return r?(0,O.jsx)(fM,l({},e,{axis:r})):(e.axisId,null)}const yM=e=>{const{classes:t,position:n,id:r}=e;return uI({root:["root","directionY",n,`id-${r}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},US,t)},vM=2,bM=2,xM={disableLine:!1,disableTicks:!1,tickSize:6},IM=["scale","tickNumber","reverse"];function wM(e){const{yAxis:t,yAxisIds:n}=Fx(),r=t[e.axisId??n[0]],{scale:i,tickNumber:o}=r,a=Lh({props:l({},tt(r,IM),e),name:"MuiChartsYAxis"}),s=l({},xM,a),{position:c,tickLabelStyle:u,slots:d,slotProps:p}=s,h=xm(),m=fS(),f=yM(s),g="right"===c?1:-1,y="number"==typeof u?.fontSize?u.fontSize:12,v=d?.axisTick??"line",b=d?.axisTickLabel??JS,x=QS(("right"===c?-90:90)-(u?.angle??0)),I=eM(("right"===c?-90:90)-(u?.angle??0));return{yScale:i,defaultizedProps:s,tickNumber:o,positionSign:g,classes:f,Tick:v,TickLabel:b,axisTickLabelProps:yI({elementType:b,externalSlotProps:p?.axisTickLabel,additionalProps:{style:l({},h.typography.caption,{fontSize:y,textAnchor:m?tM(x):x,dominantBaseline:I},u)},className:f.tickLabel,ownerState:{}})}}function kM(t){const{axisLabelHeight:n,ordinalTimeTicks:r}=t,{yScale:i,defaultizedProps:o,tickNumber:a,positionSign:s,classes:c,Tick:u,TickLabel:d,axisTickLabelProps:p}=wM(t),h=fS(),{disableTicks:m,tickSize:f,valueFormatter:g,slotProps:y,tickPlacement:v,tickLabelPlacement:b,tickInterval:x,tickLabelInterval:I,tickSpacing:w,width:k}=o,S=Nx(),{instance:M}=$x(),C=gS(),P=m?4:f,E=kS({scale:i,tickNumber:a,valueFormatter:g,tickPlacement:v,tickLabelPlacement:b,tickInterval:x,tickSpacing:w,direction:"y",ordinalTimeTicks:r}),T=Math.max(0,k-(n>0?n+bM:0)-P-vM),A=C?function(e,t,n,r,i){const o=new Map,a=$b(i?.angle??0);let s=1,l=1;"start"===i?.textAnchor?(s=1/0,l=1):"end"===i?.textAnchor?(s=1,l=1/0):(s=2,l=2),a>180&&([s,l]=[l,s]),r&&([s,l]=[l,s]);for(const r of e)if(r.formattedValue){const e=Math.min((r.offset+r.labelOffset)*s,(t.top+t.height+t.bottom-r.offset-r.labelOffset)*l),c=t=>TS(t,{width:n,height:e,angle:a,measureText:e=>_S(e,i)});o.set(r,AS(r.formattedValue.toString(),c))}return o}(E,S,T,h,p.style):new Map(Array.from(E).map(e=>[e,e.formattedValue]));return(0,O.jsx)(e.Fragment,{children:E.map((e,t)=>{const{offset:n,labelOffset:r,value:i}=e,o=s*(P+vM),a=r,h="function"==typeof I&&!I?.(i,t),f=M.isYInside(n),g=A.get(e);return f?(0,O.jsxs)("g",{transform:`translate(0, ${n})`,className:c.tickContainer,children:[!m&&(0,O.jsx)(u,l({x2:s*P,className:c.tick},y?.axisTick)),void 0!==g&&!h&&(0,O.jsx)(d,l({x:o,y:a,text:g},p))]},t):null})})}const SM={tickSize:6},MM=(e,t,n)=>{const r=e[t]??{},i=n??SM.tickSize,o=i*t*2+i;return l({},SM,r,{tickSize:r.tickSize??o})};function CM(t){const{yScale:n,defaultizedProps:r,tickNumber:i,positionSign:o,classes:a,Tick:s,TickLabel:c,axisTickLabelProps:u}=wM(t);if(!fa(n))throw new Error("MUI X Charts: ChartsGroupedYAxis only supports the `band` and `point` scale types.");const{disableTicks:d,tickSize:p,valueFormatter:h,slotProps:m,tickInterval:f,tickPlacement:g,tickLabelPlacement:y}=r,v=r.groups,{instance:b}=$x(),x=aM({scale:n,tickNumber:i,valueFormatter:h,tickInterval:f,tickPlacement:g,tickLabelPlacement:y,direction:"y",groups:v});return(0,O.jsx)(e.Fragment,{children:x.map((e,t)=>{const{offset:n,labelOffset:r}=e,i=r??0,h=b.isYInside(n),f=e.formattedValue,g=e.ignoreTick??!1,y=e.groupIndex??0,x=MM(v,y,p),I=o*x.tickSize,w=o*(x.tickSize+vM);return(0,O.jsxs)("g",{transform:`translate(0, ${n})`,className:a.tickContainer,"data-group-index":y,children:[!d&&!g&&h&&(0,O.jsx)(s,l({x2:I,className:a.tick},m?.axisTick)),void 0!==f&&(0,O.jsx)(c,l({x:w,y:i},u,{style:l({},u.style,x.tickLabelStyle),text:f}))]},t)})})}const PM=["axis"],EM=["scale","tickNumber","reverse","ordinalTimeTicks"],TM=bm(dM,{name:"MuiChartsYAxis",slot:"Root"})({});function AM(e){let{axis:t}=e,n=tt(e,PM);const{scale:r,ordinalTimeTicks:i}=t,o=tt(t,EM),a=gS(),s=Lh({props:l({},o,n),name:"MuiChartsYAxis"}),c=l({},xM,s),{position:u,disableLine:d,label:p,labelStyle:h,offset:m,width:f,sx:g,slots:y,slotProps:v}=c,b=xm(),x=yM(c),{left:I,top:w,width:k,height:S}=Nx(),M="right"===u?1:-1,C=y?.axisLine??"line",P=y?.axisLabel??JS,E=yI({elementType:C,externalSlotProps:v?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),T=yI({elementType:P,externalSlotProps:v?.axisLabel,additionalProps:{style:l({},b.typography.body1,{lineHeight:1,fontSize:14,angle:90*M,textAnchor:"middle",dominantBaseline:"text-before-edge"},h)},ownerState:{}});if("none"===u)return null;const A={x:M*f,y:w+S/2},j=null==p?0:_S(p,T.style).height,L=r.domain();let R=null;return(fa(r)?0===L.length:L.some(yS))||(R="groups"in t&&Array.isArray(t.groups)?(0,O.jsx)(CM,l({},n)):(0,O.jsx)(kM,l({},n,{axisLabelHeight:j,ordinalTimeTicks:i}))),(0,O.jsxs)(TM,{transform:`translate(${"right"===u?I+k+m:I-m}, 0)`,className:x.root,sx:g,children:[!d&&(0,O.jsx)(C,l({y1:w,y2:w+S,className:x.line},E)),R,p&&a&&(0,O.jsx)("g",{className:x.label,children:(0,O.jsx)(P,l({},A,T,{text:p}))})]})}function OM(e){const{yAxis:t,yAxisIds:n}=Fx(),r=t[e.axisId??n[0]];return r?(0,O.jsx)(AM,l({},e,{axis:r})):(e.axisId,null)}function jM(e){return Xb("MuiChartsGrid",e)}const LM=Zb("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),RM=bm("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${LM.verticalLine}`]:t.verticalLine},{[`&.${LM.horizontalLine}`]:t.horizontalLine},t.root]})({}),DM=bm("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function $M(t){const{instance:n}=$x(),{axis:r,start:i,end:o,classes:a}=t,{scale:s,tickNumber:l,tickInterval:c,tickSpacing:u}=r,d=kS({scale:s,tickNumber:l,tickInterval:c,tickSpacing:u,direction:"x",ordinalTimeTicks:"ordinalTimeTicks"in r?r.ordinalTimeTicks:void 0});return(0,O.jsx)(e.Fragment,{children:d.map(({value:e,offset:t})=>n.isXInside(t)?(0,O.jsx)(DM,{y1:i,y2:o,x1:t,x2:t,className:a.verticalLine},`vertical-${e?.getTime?.()??e}`):null)})}function zM(t){const{instance:n}=$x(),{axis:r,start:i,end:o,classes:a}=t,{scale:s,tickNumber:l,tickInterval:c,tickSpacing:u}=r,d=kS({scale:s,tickNumber:l,tickInterval:c,tickSpacing:u,direction:"y",ordinalTimeTicks:"ordinalTimeTicks"in r?r.ordinalTimeTicks:void 0});return(0,O.jsx)(e.Fragment,{children:d.map(({value:e,offset:t})=>n.isYInside(t)?(0,O.jsx)(DM,{y1:t,y2:t,x1:i,x2:o,className:a.horizontalLine},`horizontal-${e?.getTime?.()??e}`):null)})}const NM=["vertical","horizontal"],_M=({classes:e})=>uI({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},jM,e);function FM(e){const t=Lh({props:e,name:"MuiChartsGrid"}),n=Nx(),{vertical:r,horizontal:i}=t,o=tt(t,NM),{xAxis:a,xAxisIds:s}=_x(),{yAxis:c,yAxisIds:u}=Fx(),d=_M(t),p=c[u[0]],h=a[s[0]];return(0,O.jsxs)(RM,l({},o,{className:d.root,children:[r&&(0,O.jsx)($M,{axis:h,start:n.top,end:n.height+n.top,classes:d}),i&&(0,O.jsx)(zM,{axis:p,start:n.left,end:n.width+n.left,classes:d})]}))}function HM(e){return Xb("MuiChartsTooltip",e)}const BM=Zb("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),VM=e=>uI({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},HM,e);function UM(){return zx().use(ft)}const YM=ae(e=>e.tooltip,e=>e?.item??null),WM=ae(YM,e=>null!==e),GM=ae(Cs,YM,cI,(e,t,n)=>"keyboard"===e?n:t??null),KM=ae(Cs,WM,rI,(e,t,n)=>"keyboard"===e?n:t),qM=le(GM,ls,cs,jb,Lb,ft,function(e,{axis:t,axisIds:n},{axis:r,axisIds:i},o,a,s){if(!e)return{};const l=s[e.type]?.series[e.seriesId];if(!l)return{};const c={rotationAxes:o,radiusAxes:a},u=ma(l)?l.xAxisId??n[0]:void 0,d=ma(l)?l.yAxisId??i[0]:void 0;return void 0!==u&&(c.x=t[u]),void 0!==d&&(c.y=r[d]),c}),XM=le(GM,he,ht,ft,gt,qM,function(e,t,n,r,i,o,a="top"){if(!e)return null;const s=r[e.type]?.series[e.seriesId];return s?n[s.type].tooltipItemPositionGetter?.({series:r,seriesLayout:i,drawingArea:t,axesConfig:o,identifier:e,placement:a})??null:null});function ZM(){const e=zx(),t=e.use(GM),n=e.use(ht),r=UM(),{xAxis:i,xAxisIds:o}=_x(),{yAxis:a,yAxisIds:s}=Fx(),{zAxis:l,zAxisIds:c}=Kx(),{rotationAxis:u,rotationAxisIds:d}=Vx();if(!t)return null;const p=r[t.type]?.series[t.seriesId];if(!p)return null;const h=ma(p)?p.xAxisId??o[0]:void 0,m=ma(p)?p.yAxisId??s[0]:void 0,f="zAxisId"in p?p.zAxisId??c[0]:c[0],g=d[0],y=n[p.type].colorProcessor?.(p,void 0!==h?i[h]:void 0,void 0!==m?a[m]:void 0,void 0!==f?l[f]:void 0)??(()=>""),v={};return void 0!==h&&(v.x=i[h]),void 0!==m&&(v.y=a[m]),void 0!==g&&(v.rotation=u[g]),n[p.type].tooltipGetter({series:p,axesConfig:v,getColor:y,identifier:t})}const JM=bm("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`})),QM=bm("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,[`& .${BM.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)}}})),eC=bm("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)}})),tC=bm(Nv,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,textAlign:"start",[`&.${BM.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${BM.labelCell}`]:{whiteSpace:"nowrap",fontWeight:e.typography.fontWeightRegular},[`&.${BM.valueCell}, &.${BM.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${BM.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 nC(e){return Xb("MuiChartsLabelMark",e)}const rC=Zb("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]);function iC(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if("components"===o||"slots"===o)r[o]={...e[o],...r[o]};else if("componentsProps"===o||"slotProps"===o){const i=e[o],a=t[o];if(a)if(i){r[o]={...a};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=e;r[o][t]=iC(i[t],a[t],n)}}else r[o]=a;else r[o]=i||{}}else"className"===o&&n&&t.className?r.className=Hh(e?.className,t?.className):"style"===o&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[o]&&(r[o]=e[o])}return r}const oC=(t,n,r)=>e.forwardRef(function(i,o){const a=Lh({props:i,name:t}),s=iC("function"==typeof n.defaultProps?n.defaultProps(a):n.defaultProps??{},a),c=xm(),u=n.classesResolver?.(s,c),d=e.forwardRef(r);return(0,O.jsx)(d,l({},s,{classes:u,ref:o}))}),aC=["type","color","className","classes"],sC=bm("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${rC.line}`]:{width:16,height:"unset",alignItems:"center",[`.${rC.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${rC.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${rC.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${rC.mask} > *`]:{height:"100%",width:"100%"},[`& .${rC.mask}`]:{height:"100%",width:"100%"}})),lC=oC("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:e=>{const{type:t}=e;return uI({root:"function"==typeof t?["root"]:["root",t],mask:["mask"],fill:["fill"]},nC,e.classes)}},function(e,t){const{type:n,color:r,className:i,classes:o}=e,a=tt(e,aC),s=n;return(0,O.jsx)(sC,l({className:Hh(o?.root,i),ownerState:e,"aria-hidden":"true",ref:t},a,{children:(0,O.jsx)("div",{className:o?.mask,children:"function"==typeof s?(0,O.jsx)(s,{className:o?.fill,color:r}):(0,O.jsx)("svg",{viewBox:"0 0 24 24",preserveAspectRatio:"line"===n?"none":void 0,children:"circle"===n?(0,O.jsx)("circle",{className:o?.fill,r:"12",cx:"12",cy:"12",fill:r}):(0,O.jsx)("rect",{className:o?.fill,width:"24",height:"24",fill:r})})})}))});function cC(e){const{classes:t,sx:n}=e,r=ZM(),i=VM(t);if(!r)return null;if("values"in r){const{label:e,color:t,markType:o}=r;return(0,O.jsx)(JM,{sx:n,className:i.paper,children:(0,O.jsxs)(QM,{className:i.table,children:[(0,O.jsxs)(Nv,{component:"caption",children:[(0,O.jsx)("div",{className:i.markContainer,children:(0,O.jsx)(lC,{type:o,color:t,className:i.mark})}),e]}),(0,O.jsx)("tbody",{children:r.values.map(({formattedValue:e,label:t})=>(0,O.jsxs)(eC,{className:i.row,children:[(0,O.jsx)(tC,{className:Hh(i.labelCell,i.cell),component:"th",children:t}),(0,O.jsx)(tC,{className:Hh(i.valueCell,i.cell),component:"td",children:e})]},t))})]})})}const{color:o,label:a,formattedValue:s,markType:l}=r;return(0,O.jsx)(JM,{sx:n,className:i.paper,children:(0,O.jsx)(QM,{className:i.table,children:(0,O.jsx)("tbody",{children:(0,O.jsxs)(eC,{className:i.row,children:[(0,O.jsxs)(tC,{className:Hh(i.labelCell,i.cell),component:"th",children:[(0,O.jsx)("div",{className:i.markContainer,children:(0,O.jsx)(lC,{type:l,color:o,className:i.mark})}),a]}),(0,O.jsx)(tC,{className:Hh(i.valueCell,i.cell),component:"td",children:s})]})})})})}function uC(t,n,r,i,o){const[a,s]=e.useState(()=>o&&r?r(t).matches:i?i(t).matches:n);return qm(()=>{if(!r)return;const e=r(t),n=()=>{s(e.matches)};return n(),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[t,r]),a}const dC={...e}.useSyncExternalStore;function pC(t,n,r,i,o){const a=e.useCallback(()=>n,[n]),s=e.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(null!==i){const{matches:e}=i(t);return()=>e}return a},[a,t,i,o,r]),[l,c]=e.useMemo(()=>{if(null===r)return[a,()=>()=>{}];const e=r(t);return[()=>e.matches,t=>(e.addEventListener("change",t),()=>{e.removeEventListener("change",t)})]},[a,r,t]);return dC(c,l,s)}function hC(e={}){const{themeId:t}=e;return function(e,n={}){let r=qd();r&&t&&(r=r[t]||r);const i="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(i?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:l=!1}=uc({name:"MuiUseMediaQuery",props:n,theme:r});let c="function"==typeof e?e(r):e;return c=c.replace(/^@media( ?)/m,""),c.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("\n")),(void 0!==dC?pC:uC)(c,o,a,s,l)}}hC();const mC=hC({themeId:jh}),fC=()=>mC("@media (pointer: fine)",{defaultMatches:!0}),gC=(e,t)=>t,yC=(e,t)=>t;function vC(e,t,n){return Array.isArray(n)?n.map(n=>Nb(t.axis[n],e)):Nb(t.axis[n],e)}const bC=ae(Ss,Ms,Rb,(e,t,n)=>null===e||null===t?null:Db(n)(e,t)),xC=ae(bC,jb,gC,(e,t,n=t.axisIds[0])=>null===e?null:vC(e,t,n)),IC=ae(bC,jb,yC,(e,t,n=t.axisIds)=>null===e?null:vC(e,t,n)),wC=(ae(jb,xC,gC,(e,t,n=e.axisIds[0])=>{if(null===t||-1===t||0===e.axisIds.length)return null;const r=e.axis[n]?.data;return r?r[t]:null}),ae(jb,IC,yC,(e,t,n=e.axisIds)=>null===t?null:n.map((n,r)=>{const i=t[r];return-1===i?null:e.axis[n].data?.[i]})),se({memoizeOptions:{resultEqualityCheck:Ps}})(IC,jb,(e,t)=>null===e?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0))),kC=ae(wC,e=>e.length>0);function SC(e,t,n){const r=e.data?.[t]??null,i=(e.valueFormatter??(t=>"utc"===e.scaleType?function(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}(t):t.toLocaleString()))(r,{location:"tooltip",scale:e.scale});return{axisDirection:n,axisId:e.id,mainAxis:e,dataIndex:t,axisValue:r,axisFormattedValue:i,seriesItems:[]}}function MC(t){return function(t={}){const{multipleAxes:n,directions:r}=t,i=Hx(),o=Bx(),a=function(){const e=zx(),{axis:t,axisIds:n}=e.use(jb);return t[n[0]]}(),s=zx(),l=s.use(zs),c=s.use(Ns),u=s.use(wC),d=UM(),{xAxis:p}=_x(),{yAxis:h}=Fx(),{zAxis:m,zAxisIds:f}=Kx(),{rotationAxis:g}=Vx(),y=function(){const t=zx().use(ht);return e.useMemo(()=>{const e={};return Object.keys(t).forEach(n=>{e[n]=t[n].colorProcessor}),e},[t])}();if(0===l.length&&0===c.length&&0===u.length)return null;const v=[];return(void 0===r||r.includes("x"))&&l.forEach(({axisId:e,dataIndex:t})=>{!n&&v.length>1||v.push(SC(p[e],t,"x"))}),(void 0===r||r.includes("y"))&&c.forEach(({axisId:e,dataIndex:t})=>{!n&&v.length>1||v.push(SC(h[e],t,"y"))}),(void 0===r||r.includes("rotation"))&&u.forEach(({axisId:e,dataIndex:t})=>{!n&&v.length>1||v.push(SC(g[e],t,"rotation"))}),Object.keys(d).filter(ha).forEach(e=>{const t=d[e];return t?t.seriesOrder.forEach(n=>{const r=t.series[n],a=r.xAxisId??i.id,s=r.yAxisId??o.id,l=v.findIndex(({axisDirection:e,axisId:t})=>"x"===e&&t===a||"y"===e&&t===s);if(l>=0){const t="zAxisId"in r?r.zAxisId:f[0],{dataIndex:i}=v[l],o=y[e]?.(r,p[a],h[s],t?m[t]:void 0)(i)??"",c=r.data[i]??null,u=r.valueFormatter(c,{dataIndex:i}),d=yl(r.label,"tooltip")??null;v[l].seriesItems.push({seriesId:n,color:o,value:c,formattedValue:u,formattedLabel:d,markType:r.labelMarkType})}}):[]}),Object.keys(d).filter(Pb).forEach(e=>{const t=d[e];return t?t.seriesOrder.forEach(n=>{const r=t.series[n],i=r.rotationAxisId??a?.id,o=v.findIndex(({axisDirection:e,axisId:t})=>"rotation"===e&&t===i);if(o>=0){const{dataIndex:t}=v[o],i=y[e]?.(r)(t)??"",a=r.data[t]??null,s=r.valueFormatter(a,{dataIndex:t}),l=yl(r.label,"tooltip")??null;v[o].seriesItems.push({seriesId:n,color:i,value:a,formattedValue:s,formattedLabel:l,markType:r.labelMarkType})}}):[]}),n?v:0===v.length?v[0]:null}(l({},t,{multipleAxes:!0}))}function CC(e){const t=VM(e.classes),n=MC();return null===n?null:(0,O.jsx)(JM,{sx:e.sx,className:t.paper,children:n.map(({axisId:e,mainAxis:n,axisValue:r,axisFormattedValue:i,seriesItems:o})=>(0,O.jsxs)(QM,{className:t.table,children:[null!=r&&!n.hideTooltip&&(0,O.jsx)(Nv,{component:"caption",children:i}),(0,O.jsx)("tbody",{children:o.map(({seriesId:e,color:n,formattedValue:r,formattedLabel:i,markType:o})=>null==r?null:(0,O.jsxs)(eC,{className:t.row,children:[(0,O.jsxs)(tC,{className:Hh(t.labelCell,t.cell),component:"th",children:[(0,O.jsx)("div",{className:t.markContainer,children:(0,O.jsx)(lC,{type:o,color:n,className:t.mark})}),i||null]}),(0,O.jsx)(tC,{className:Hh(t.valueCell,t.cell),component:"td",children:r})]},e))})]},e))})}const PC=function(t){const{children:n,defer:r=!1,fallback:i=null}=t,[o,a]=e.useState(!1);return qm(()=>{r||a(!0)},[r]),e.useEffect(()=>{r&&a(!0)},[r]),o?n:i},EC=["trigger","position","anchor","classes","children"],TC=()=>!1,AC=()=>null,OC=bm(Tg,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function jC(t){const n=Lh({props:t,name:"MuiChartsTooltipContainer"}),{trigger:r="axis",position:i,anchor:o="pointer",classes:a,children:s}=n,c=tt(n,EC),u=eI(),d=e.useRef(null),p=VM(a),h=function(){const t=eI(),[n,r]=e.useState(null);return e.useEffect(()=>{const e=t.current;if(null===e)return()=>{};const n=e=>{"mouse"!==e.pointerType&&r(null)},i=e=>{r({pointerType:e.pointerType})};return e.addEventListener("pointerenter",i),e.addEventListener("pointerup",n),()=>{e.removeEventListener("pointerenter",i),e.removeEventListener("pointerup",n)}},[t]),n}(),m=fC(),f=e.useRef(null),g=st(()=>({x:0,y:0})),y=function(){const e=zx(),t=e.use(Ab),n=e.use(ce);return void 0!==t?"polar":void 0!==n?"cartesian":"none"}(),v=zx(),b=v.use(Sb),x=v.use(function(e,t,n){return n?TC:"item"===e?KM:"polar"===t?kC:"cartesian"===t?_s:TC}(r,y,b)),I="keyboard"===v.use(Cs)?"node":o,w=v.use("item"===r&&"node"===I?XM:AC,i);e.useEffect(()=>{const e=u.current;if(null===e)return()=>{};if(null!==w)return;const t=function(){let e,t;const n=()=>{t=null,((e,t)=>{g.current={x:e,y:t},f.current?.update()})(...e)};function r(...r){e=r,t||(t=requestAnimationFrame(n))}return r.clear=()=>{t&&(cancelAnimationFrame(t),t=null)},r}(),n=e=>{t(e.clientX,e.clientY)};return e.addEventListener("pointerdown",n),e.addEventListener("pointermove",n),e.addEventListener("pointerenter",n),()=>{e.removeEventListener("pointerdown",n),e.removeEventListener("pointermove",n),e.removeEventListener("pointerenter",n),t.clear()}},[u,g,w]);const k=e.useMemo(()=>({getBoundingClientRect:()=>({x:g.current.x,y:g.current.y,top:g.current.y,left:g.current.x,right:g.current.x,bottom:g.current.y,width:0,height:0,toJSON:()=>""})}),[g]),S="mouse"===h?.pointerType||m,M="touch"===h?.pointerType||!m,C=e.useMemo(()=>[{name:"offset",options:{offset:()=>M?[0,64]:[0,8]}},...S?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[S,M]);return"none"===r?null:(null!==w&&d.current&&(d.current.setAttribute("x",String(w.x)),d.current.setAttribute("y",String(w.y))),(0,O.jsxs)(e.Fragment,{children:[u.current&&Tm.createPortal((0,O.jsx)("rect",{ref:d,display:"hidden"}),u.current),(0,O.jsx)(PC,{children:x&&(0,O.jsx)(OC,l({},c,{className:p?.root,open:x,placement:c.placement??i??(null!==h&&S?"right-start":"top"),popperRef:f,anchorEl:w?d.current:k,modifiers:C,children:s}))})]}))}function LC(e){const{classes:t,trigger:n="axis"}=e,r=VM(t);return(0,O.jsx)(jC,l({},e,{classes:t,children:"axis"===n?(0,O.jsx)(CC,{classes:r}):(0,O.jsx)(cC,{classes:r})}))}function RC(e){return Xb("MuiChartsAxisHighlight",e)}Zb("MuiChartsAxisHighlight",["root"]);const DC=bm("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:l({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:l({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function $C(t){const{type:n,classes:r}=t,{left:i,width:o}=Nx(),a=zx(),s=a.use(uS),l=a.use(cs);return 0===s.length?null:s.map(({axisId:t,value:a})=>{const s=l.axis[t].scale,c=ck(s),u="band"===n&&null!==a&&fa(s);return(0,O.jsxs)(e.Fragment,{children:[u&&void 0!==s(a)&&(0,O.jsx)(DC,{d:`M ${i} ${s(a)-(s.step()-s.bandwidth())/2} l 0 ${s.step()} l ${o} 0 l 0 ${-s.step()} Z`,className:r.root,ownerState:{axisHighlight:"band"}}),"line"===n&&null!==a&&(0,O.jsx)(DC,{d:`M ${i} ${c(a)} L ${i+o} ${c(a)}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${t}-${a}`)})}function zC(t){const{type:n,classes:r}=t,{top:i,height:o}=Nx(),a=zx(),s=a.use(cS),l=a.use(ls);return 0===s.length?null:s.map(({axisId:t,value:a})=>{const s=l.axis[t].scale,c=ck(s),u="band"===n&&null!==a&&fa(s);return(0,O.jsxs)(e.Fragment,{children:[u&&void 0!==s(a)&&(0,O.jsx)(DC,{d:`M ${s(a)-(s.step()-s.bandwidth())/2} ${i} l ${s.step()} 0 l 0 ${o} l ${-s.step()} 0 Z`,className:r.root,ownerState:{axisHighlight:"band"}}),"line"===n&&null!==a&&(0,O.jsx)(DC,{d:`M ${c(a)} ${i} L ${c(a)} ${i+o}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${t}-${a}`)})}const NC=()=>uI({root:["root"]},RC);function _C(t){const{x:n,y:r}=t,i=NC();return(0,O.jsxs)(e.Fragment,{children:[n&&"none"!==n&&(0,O.jsx)(zC,{type:n,classes:i}),r&&"none"!==r&&(0,O.jsx)($C,{type:r,classes:i})]})}function FC(e,t){return Object.keys(e).flatMap(n=>{const r=t[n].legendGetter;return void 0===r?[]:r(e[n])})}function HC(e){return Xb("MuiChartsLegend",e)}const BC=Zb("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]),VC=["slots","slotProps"],UC=["ownerState"];function YC(e){return Xb("MuiChartsLabel",e)}Zb("MuiChartsLabel",["root"]);const WC=["children","className","classes"],GC=oC("MuiChartsLabel",{classesResolver:e=>uI({root:["root"]},YC,e.classes)},function(e,t){const{children:n,className:r,classes:i}=e,o=tt(e,WC);return(0,O.jsx)("span",l({className:Hh(i?.root,r),ref:t},o,{children:n}))}),KC=["direction","onItemClick","className","classes"],qC=bm("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:e,theme:t})=>l({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:"vertical"===e.direction?"column":"row",alignItems:"vertical"===e.direction?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:"horizontal"===e.direction?"inline-flex":void 0},[`button.${BC.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${BC.series}`]:{display:"vertical"===e.direction?"flex":"inline-flex",alignItems:"center",gap:t.spacing(1)},gridArea:"legend"})),XC=((t,n,r,i)=>{function o(e,t){const o=Lh({props:e,name:"MuiChartsLegend"}),a=iC("function"==typeof r.defaultProps?r.defaultProps(o):r.defaultProps??{},o),s=a,{slots:c,slotProps:u}=s,d=tt(s,VC),p=xm(),h=r.classesResolver?.(a,p),m=c?.[n]??i,f=r.propagateSlots&&!c?.[n],g=yI({elementType:m,externalSlotProps:u?.[n],additionalProps:l({},d,{classes:h},f&&{slots:c,slotProps:u}),ownerState:{}}),y=l({},tt(g,UC));for(const e of r.omitProps??[])delete y[e];return(0,O.jsx)(m,l({},y,{ref:t}))}return e.forwardRef(o)})(0,"legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:e=>{const{classes:t,direction:n}=e;return uI({root:["root",n],item:["item"],mark:["mark"],label:["label"],series:["series"]},HC,t)}},e.forwardRef(function(e,t){const n={items:FC(UM(),zx().use(ht))},{onItemClick:r,className:i,classes:o}=e,a=tt(e,KC);if(0===n.items.length)return null;const s=r?"button":"div";return(0,O.jsx)(qC,l({className:Hh(o?.root,i),ref:t},a,{ownerState:e,children:n.items.map((e,t)=>(0,O.jsx)("li",{className:o?.item,"data-series":e.seriesId,children:(0,O.jsxs)(s,{className:o?.series,role:r?"button":void 0,type:r?"button":void 0,onClick:r?n=>{return r(n,{type:"series",color:(i=e).color,label:i.label,seriesId:i.seriesId,itemId:i.itemId,dataIndex:i.dataIndex},t);var i}:void 0,children:[(0,O.jsx)(lC,{className:o?.mark,color:e.color,type:e.markType}),(0,O.jsx)(GC,{className:o?.label,children:e.label})]})},`${e.seriesId}-${e.dataIndex}`))}))}));function ZC(e){const{id:t,offset:n}=e,{left:r,top:i,width:o,height:a}=Nx(),s=l({top:0,right:0,bottom:0,left:0},n);return(0,O.jsx)("clipPath",{id:t,children:(0,O.jsx)("rect",{x:r-s.left,y:i-s.top,width:o+s.left+s.right,height:a+s.top+s.bottom})})}function JC(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function QC(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function eP(e){if(e.type)return e;if("#"===e.charAt(0))return eP(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(JC(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(JC(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}function tP(e,t){return e=eP(e),t=QC(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}let nP=0;const rP={...t}.useId;function iP(t){if(void 0!==rP){const e=rP();return t??e}return function(t){const[n,r]=e.useState(t),i=t||n;return e.useEffect(()=>{null==n&&(nP+=1,r(`mui-${nP}`))},[n]),i}(t)}function oP(e,t){return"x"===e?{left:0,top:0,width:t.width,height:vt,right:t.width,bottom:vt}:{left:0,top:0,width:vt,height:t.height,right:vt,bottom:t.height}}const aP=le(ce,he,qa,is,function(e,t,n,r,i){const o=e?.some(e=>e.id===i),a=oP(o?"x":"y",t),s=n[i],l={};return e?.forEach(e=>{const t=e,n=r[t.id].copy(),i=Ca(a,"x",t),o=Ea(i,[s.minStart,s.maxEnd]);n.range(o),l[t.id]=n}),l}),sP=le(ft,ht,qa,he,aP,Qa,(e,t,n,r,i,{axes:o,domains:a},s)=>{const l=o?.some(e=>e.id===s),c=oP(l?"x":"y",r),u=n[s],d=ya({scales:i,drawingArea:c,formattedSeries:e,axis:o,seriesConfig:t,axisDirection:"x",zoomMap:new Map([[s,{axisId:s,start:u.minStart,end:u.maxEnd}]]),domains:a});return d.axis[s]?{[s]:d.axis[s]}:d.axis}),lP=le(ue,he,qa,os,function(e,t,n,r,i){const o=e?.some(e=>e.id===i),a=oP(o?"y":"x",t),s=n[i],l={};return e?.forEach(e=>{const t=e,n=r[t.id].copy();let i=Ca(a,"y",t);fa(n)&&(i=i.reverse());const o=Ea(i,[s.minStart,s.maxEnd]);n.range(o),l[t.id]=n}),l}),cP=le(ft,ht,qa,he,lP,es,(e,t,n,r,i,{axes:o,domains:a},s)=>{const l=o?.some(e=>e.id===s),c=oP(l?"y":"x",r),u=n[s],d=ya({scales:i,drawingArea:c,formattedSeries:e,axis:o,seriesConfig:t,axisDirection:"y",zoomMap:new Map([[s,{axisId:s,start:u.minStart,end:u.maxEnd}]]),domains:a});return d.axis[s]?{[s]:d.axis[s]}:d.axis}),uP=(e,t)=>t===("x"===e?W:G)?`The first \`${e}Axis\``:`The ${e}-axis with id "${t}"`;function dP(){return ak("bar")}function pP(e,t,n){const r=dP()??{series:{},stackingGroups:[],seriesOrder:[]},i=_x().xAxisIds[0],o=Fx().yAxisIds[0],a=Xx(),{series:s,stackingGroups:c}=r,u={},d=c.flatMap(({ids:r},d)=>{const p=e.left,h=e.left+e.width,m=e.top,f=e.top+e.height,g=new Map,y=new Map;return r.map(e=>{const r=s[e].xAxisId??i,v=s[e].yAxisId??o,b=s[e].layout,x=t[r],I=n[v],w="vertical"===s[e].layout,k=(w?I.reverse:x.reverse)??!1;!function(e,t,n,r,i,o,a){const s=i[r],l=a[o],c=e?s:l,u=e?l:s,d=e?r:o,p=e?o:r,h=e?"x":"y",m=e?"y":"x";if("band"!==c.scaleType)throw new Error(`MUI X Charts: ${uP(h,d)} should be of type "band" to display the bar series of id "${t}".`);if(void 0===c.data)throw new Error(`MUI X Charts: ${uP(h,d)} should have data property.`);if("band"===u.scaleType||"point"===u.scaleType)throw new Error(`MUI X Charts: ${uP(m,p)} should be a continuous type to display the bar series of id "${t}".`)}(w,e,s[e].stackedData.length,r,t,v,n);const S=w?x:I,M=x.scale,C=I.scale,P=Math.round(M(0)??0),E=Math.round(C(0)??0),T=bl(s[e],t[r],n[v]),A=[];for(let t=0;th||i.x+i.widthf||i.y+i.height0?(v&&delete v.borderRadiusSide,i.borderRadiusSide=w?"top":"right",y.set(t,i)):S<0&&(o&&delete o.borderRadiusSide,i.borderRadiusSide=w?"bottom":"left",g.set(t,i)),u[i.maskId]||(u[i.maskId]={id:i.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:b,xOrigin:P,yOrigin:E,x:0,y:0});const M=u[i.maskId];M.width="vertical"===b?i.width:M.width+i.width,M.height="vertical"===b?M.height+i.height:i.height,M.x=Math.min(0===M.x?1/0:M.x,i.x),M.y=Math.min(0===M.y?1/0:M.y,i.y);const C=i.value??0;M.hasNegative=M.hasNegative||(k?C>0:C<0),M.hasPositive=M.hasPositive||(k?C<0:C>0),A.push(i)}return{seriesId:e,barLabel:s[e].barLabel,barLabelPlacement:s[e].barLabelPlacement,data:A,layout:b,xOrigin:P,yOrigin:E}})});return{completedData:d,masksData:Object.values(u)}}function hP(e){return Xb("MuiBarElement",e)}const mP=Zb("MuiBarElement",["root","highlighted","faded","series"]);function fP(e,t){const n=Tn(e.x,t.x),r=Tn(e.y,t.y),i=Tn(e.width,t.width),o=Tn(e.height,t.height);return e=>({x:n(e),y:r(e),width:i(e),height:o(e)})}const gP=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function yP(e){const{ownerState:t}=e,n=tt(e,gP),r=function(e){const t={x:"vertical"===e.layout?e.x:e.xOrigin,y:"vertical"===e.layout?e.yOrigin:e.y,width:"vertical"===e.layout?e.width:0,height:"vertical"===e.layout?0:e.height};return aw({x:e.x,y:e.y,width:e.width,height:e.height},{createInterpolator:fP,applyProps(e,t){e.setAttribute("x",t.x.toString()),e.setAttribute("y",t.y.toString()),e.setAttribute("width",t.width.toString()),e.setAttribute("height",t.height.toString())},transformProps:e=>e,initialProps:t,skip:e.skipAnimation,ref:e.ref})}(e);return(0,O.jsx)("rect",l({},n,{filter:t.isHighlighted?"brightness(120%)":void 0,opacity:t.isFaded?.3:1,"data-highlighted":t.isHighlighted||void 0,"data-faded":t.isFaded||void 0},r))}const vP=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function bP(t){const{id:n,dataIndex:r,classes:i,color:o,slots:a,slotProps:s,style:c,onClick:u,skipAnimation:d,layout:p,x:h,xOrigin:m,y:f,yOrigin:g,width:y,height:v}=t,b=tt(t,vP),x=e.useMemo(()=>({type:"bar",seriesId:n,dataIndex:r}),[n,r]),I=bI(x),{isFaded:w,isHighlighted:k}=zI(x),S=(M=e.useMemo(()=>({type:"bar",seriesId:n,dataIndex:r}),[n,r]),zx().use(nI,M));var M;const C={id:n,dataIndex:r,classes:i,color:o,isFaded:w,isHighlighted:k,isFocused:S},P=(e=>{const{classes:t,id:n,isHighlighted:r,isFaded:i}=e;return uI({root:["root",`series-${n}`,r&&"highlighted",i&&"faded"]},hP,t)})(C),E=a?.bar??yP,T=yI({elementType:E,externalSlotProps:s?.bar,externalForwardedProps:b,additionalProps:l({},I,{id:n,dataIndex:r,color:o,x:h,xOrigin:m,y:f,yOrigin:g,width:y,height:v,style:c,onClick:u,cursor:u?"pointer":"unset",stroke:"none",fill:o,skipAnimation:d,layout:p}),className:P.root,ownerState:C});return(0,O.jsx)(E,l({},T))}function xP(t,n,r,i){return e.useMemo(()=>{const e=ck(n),o=ck(r),a=[];for(let n=0;ne>=s&&e<=s+c&&t>=l&&t<=l+u,[u,c,s,l]),p=xP(n,r,i,d);return(0,O.jsx)("g",{"data-series":n.id,children:p.map((e,t)=>(0,O.jsx)(kP,{dataIndex:e.dataIndex,color:a?a(t):o,x:e.x,y:e.y,seriesId:n.id,size:n.preview.markerSize,isHighlighted:!1,isFaded:!1},e.id??e.dataIndex))})}const MP=["id","color","gradientId","onClick"],CP=bm("g",{name:"MuiAreaPlot",slot:"Root"})({});function PP({axisId:e}){const t=function(e){const t=zx();return pk(t.use(sP,e),t.use(cP,e))}(e);return(0,O.jsx)(CP,{children:t.map(({d:e,seriesId:t,color:n,area:r,gradientId:i})=>!!r&&(0,O.jsx)(EP,{id:t,d:e,color:n,gradientId:i},t))})}function EP(e){let{id:t,color:n,gradientId:r}=e,i=tt(e,MP);return(0,O.jsx)("path",l({fill:r?`url(#${r})`:n,stroke:"none","data-series":t},i))}const TP=["id","color","gradientId","onClick"];function AP({axisId:e}){const t=function(e){const t=zx();return Sk(t.use(sP,e),t.use(cP,e))}(e);return(0,O.jsx)("g",{children:t.map(({d:e,seriesId:t,color:n,gradientId:r})=>(0,O.jsx)(OP,{id:t,d:e,color:n,gradientId:r},t))})}function OP(e){let{id:t,color:n,gradientId:r}=e,i=tt(e,TP);return(0,O.jsx)("path",l({stroke:r?`url(#${r})`:n,strokeWidth:2,strokeLinejoin:"round",fill:"none","data-series":t},i))}const jP=new Map([["bar",function(e){const t={left:e.x,top:e.y,width:e.width,height:e.height,right:e.x+e.width,bottom:e.y+e.height},{completedData:n}=function(e,t){const n=zx();return pP(t,n.use(sP,e),n.use(cP,e))}(e.axisId,t);return(0,O.jsx)("g",{children:n.map(({seriesId:e,layout:t,xOrigin:n,yOrigin:r,data:i})=>(0,O.jsx)("g",{children:i.map(({dataIndex:i,color:o,x:a,y:s,width:l,height:c})=>(0,O.jsx)(bP,{id:e,dataIndex:i,color:o,skipAnimation:!0,layout:t??"vertical",x:a,xOrigin:n,y:s,yOrigin:r,width:l,height:c},i))},e))})}],["line",function({axisId:t}){return(0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)(PP,{axisId:t}),(0,O.jsx)(AP,{axisId:t})]})}],["scatter",function({axisId:t,x:n,y:r,height:i,width:o}){const a=zx(),s=IP(),l=a.use(sP,t),c=a.use(cP,t),u=_x().xAxisIds[0],d=Fx().yAxisIds[0],{zAxis:p,zAxisIds:h}=Kx(),m=h[0];if(void 0===s)return null;const{series:f,seriesOrder:g}=s;return(0,O.jsx)(e.Fragment,{children:g.map(e=>{const{id:t,xAxisId:a,yAxisId:s,zAxisId:h,color:g}=f[e],y=Dl.colorProcessor(f[e],l[a??u],c[s??d],p[h??m]),v=l[a??u].scale,b=c[s??d].scale;return(0,O.jsx)(SP,{xScale:v,yScale:b,color:g,colorGetter:y,series:f[e],x:n,y:r,height:i,width:o},t)})})}]]);function LP(t){const{axisId:n,x:r,y:i,width:o,height:a}=t,s=zx().use(ft),c=[],u=`zoom-preview-mask-${n}`;for(const[e,n]of jP)(s[e]?.seriesOrder?.length??0)>0&&c.push((0,O.jsx)(n,l({},t),e));return(0,O.jsxs)(e.Fragment,{children:[(0,O.jsx)("clipPath",{id:u,children:(0,O.jsx)("rect",{x:r,y:i,width:o,height:a})}),(0,O.jsx)("g",{clipPath:`url(#${u})`,children:c})]})}const RP=["axisId","axisDirection","reverse"],DP=bm("rect",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({rx:4,ry:4,stroke:e.palette.grey[700],fill:tP(e.palette.grey[700],.4)}));function $P(e){let{axisId:t,axisDirection:n}=e,r=tt(e,RP);return(0,O.jsxs)("g",l({},r,{children:[(0,O.jsx)(zP,l({},r,{axisId:t,axisDirection:n})),(0,O.jsx)("rect",l({},r,{fill:"transparent",rx:4,ry:4})),(0,O.jsx)(LP,l({axisId:t},r))]}))}function zP(t){const{axisId:n,axisDirection:r}=t,i=zx(),o=i.use(px,n),a=i.use(Xa,n),s=iP();if(!o)return null;const l=`zoom-preview-mask-${n}-${s}`;let c,u,d,p;const h=a.maxEnd-a.minStart;return"x"===r?(c=t.x+(o.start-a.minStart)/h*t.width,u=t.y,d=(o.end-o.start)/h*t.width,p=t.height):(c=t.x,u=t.y+(1-o.end/h)*t.height,d=t.width,p=(o.end-o.start)/h*t.height),(0,O.jsxs)(e.Fragment,{children:[(0,O.jsxs)("mask",{id:l,children:[(0,O.jsx)("rect",{x:t.x,y:t.y,width:t.width,height:t.height,fill:"white"}),(0,O.jsx)("rect",{x:c,y:u,width:d,height:p,fill:"black",rx:4,ry:4})]}),(0,O.jsx)(DP,{x:t.x,y:t.y,width:t.width,height:t.height,mask:`url(#${l})`})]})}const NP=8,_P=10,FP=20,HP=10,BP=Math.max(NP,_P,FP,HP);const VP=[];function UP(e){return VP[0]=e,Nd(VP)}function YP(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function WP(t){if(e.isValidElement(t)||(0,dc.Hy)(t)||!YP(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=WP(t[e])}),n}function GP(t,n,r={clone:!0}){const i=r.clone?{...t}:t;return YP(t)&&YP(n)&&Object.keys(n).forEach(o=>{e.isValidElement(n[o])||(0,dc.Hy)(n[o])?i[o]=n[o]:YP(n[o])&&Object.prototype.hasOwnProperty.call(t,o)&&YP(t[o])?i[o]=GP(t[o],n[o],r):r.clone?i[o]=YP(n[o])?WP(n[o]):n[o]:i[o]=n[o]}),i}function KP(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const qP={borderRadius:4},XP={xs:0,sm:600,md:900,lg:1200,xl:1536},ZP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${XP[e]}px)`},JP={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:XP[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function QP(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ZP;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||ZP;return Object.keys(t).reduce((i,o)=>{if(function(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}(e.keys,o)){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:JP,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||XP).includes(o))i[e.up(o)]=n(t[o],o);else{const e=o;i[e]=t[e]}return i},{})}return n(t)}function eE(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function tE(e){if("string"!=typeof e)throw new Error(JC(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nE(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function rE(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:nE(e,n)||r,t&&(i=t(i,r,e)),i}const iE=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=nE(e.theme,r)||{};return QP(e,o,e=>{let r=rE(a,i,e);return e===r&&"string"==typeof e&&(r=rE(a,i,`${t}${"default"===e?"":tE(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o},oE=function(e,t){return t?GP(e,t,{clone:!1}):e},aE={m:"margin",p:"padding"},sE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cE=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!lE[e])return[e];e=lE[e]}const[t,n]=e.split(""),r=aE[t],i=sE[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]})(t)),e[t])}(),uE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pE=[...uE,...dE];function hE(e,t,n,r){const i=nE(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?i.startsWith("var(")&&0===e?0:i.startsWith("var(")&&1===e?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=i[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof i?i:()=>{}}function mE(e){return hE(e,"spacing",8)}function fE(e,t){return"string"==typeof t||null==t?t:e(t)}function gE(e,t){const n=mE(e.theme);return Object.keys(e).map(r=>function(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=fE(t,n),e),{})}(cE(n),r);return QP(e,e[n],i)}(e,t,r,n)).reduce(oE,{})}function yE(e){return gE(e,uE)}function vE(e){return gE(e,dE)}function bE(e){return gE(e,pE)}yE.propTypes={},yE.filterProps=uE,vE.propTypes={},vE.filterProps=dE,bE.propTypes={},bE.filterProps=pE;const xE=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?oE(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function IE(e){return"number"!=typeof e?e:`${e}px solid`}function wE(e,t){return iE({prop:e,themeKey:"borders",transform:t})}const kE=wE("border",IE),SE=wE("borderTop",IE),ME=wE("borderRight",IE),CE=wE("borderBottom",IE),PE=wE("borderLeft",IE),EE=wE("borderColor"),TE=wE("borderTopColor"),AE=wE("borderRightColor"),OE=wE("borderBottomColor"),jE=wE("borderLeftColor"),LE=wE("outline",IE),RE=wE("outlineColor"),DE=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hE(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:fE(t,e)});return QP(e,e.borderRadius,n)}return null};DE.propTypes={},DE.filterProps=["borderRadius"],xE(kE,SE,ME,CE,PE,EE,TE,AE,OE,jE,DE,LE,RE);const $E=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hE(e.theme,"spacing",8),n=e=>({gap:fE(t,e)});return QP(e,e.gap,n)}return null};$E.propTypes={},$E.filterProps=["gap"];const zE=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hE(e.theme,"spacing",8),n=e=>({columnGap:fE(t,e)});return QP(e,e.columnGap,n)}return null};zE.propTypes={},zE.filterProps=["columnGap"];const NE=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hE(e.theme,"spacing",8),n=e=>({rowGap:fE(t,e)});return QP(e,e.rowGap,n)}return null};function _E(e,t){return"grey"===t?t:e}function FE(e){return e<=1&&0!==e?100*e+"%":e}NE.propTypes={},NE.filterProps=["rowGap"],xE($E,zE,NE,iE({prop:"gridColumn"}),iE({prop:"gridRow"}),iE({prop:"gridAutoFlow"}),iE({prop:"gridAutoColumns"}),iE({prop:"gridAutoRows"}),iE({prop:"gridTemplateColumns"}),iE({prop:"gridTemplateRows"}),iE({prop:"gridTemplateAreas"}),iE({prop:"gridArea"})),xE(iE({prop:"color",themeKey:"palette",transform:_E}),iE({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_E}),iE({prop:"backgroundColor",themeKey:"palette",transform:_E}));const HE=iE({prop:"width",transform:FE}),BE=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||XP[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:FE(t)}};return QP(e,e.maxWidth,t)}return null};BE.filterProps=["maxWidth"];const VE=iE({prop:"minWidth",transform:FE}),UE=iE({prop:"height",transform:FE}),YE=iE({prop:"maxHeight",transform:FE}),WE=iE({prop:"minHeight",transform:FE}),GE=(iE({prop:"size",cssProperty:"width",transform:FE}),iE({prop:"size",cssProperty:"height",transform:FE}),xE(HE,BE,VE,UE,YE,WE,iE({prop:"boxSizing"})),{border:{themeKey:"borders",transform:IE},borderTop:{themeKey:"borders",transform:IE},borderRight:{themeKey:"borders",transform:IE},borderBottom:{themeKey:"borders",transform:IE},borderLeft:{themeKey:"borders",transform:IE},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:IE},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:DE},color:{themeKey:"palette",transform:_E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_E},backgroundColor:{themeKey:"palette",transform:_E},p:{style:vE},pt:{style:vE},pr:{style:vE},pb:{style:vE},pl:{style:vE},px:{style:vE},py:{style:vE},padding:{style:vE},paddingTop:{style:vE},paddingRight:{style:vE},paddingBottom:{style:vE},paddingLeft:{style:vE},paddingX:{style:vE},paddingY:{style:vE},paddingInline:{style:vE},paddingInlineStart:{style:vE},paddingInlineEnd:{style:vE},paddingBlock:{style:vE},paddingBlockStart:{style:vE},paddingBlockEnd:{style:vE},m:{style:yE},mt:{style:yE},mr:{style:yE},mb:{style:yE},ml:{style:yE},mx:{style:yE},my:{style:yE},margin:{style:yE},marginTop:{style:yE},marginRight:{style:yE},marginBottom:{style:yE},marginLeft:{style:yE},marginX:{style:yE},marginY:{style:yE},marginInline:{style:yE},marginInlineStart:{style:yE},marginInlineEnd:{style:yE},marginBlock:{style:yE},marginBlockStart:{style:yE},marginBlockEnd:{style:yE},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:$E},rowGap:{style:NE},columnGap:{style:zE},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:FE},maxWidth:{style:BE},minWidth:{transform:FE},height:{transform:FE},maxHeight:{transform:FE},minHeight:{transform:FE},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"}}),KE=GE,qE=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=nE(n,s)||{};return c?c(i):QP(i,t,t=>{let n=rE(u,l,t);return t===n&&"string"==typeof t&&(n=rE(u,l,`${e}${"default"===t?"":tE(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const a=i.unstable_sxConfig??KE;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(i.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])c=oE(c,e(n,o,i,a));else{const e=QP({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=oE(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=oE(c,e(n,o,i,a))}),!o&&i.modularCssLayers?{"@layer sx":KP(i,eE(l,c))}:KP(i,eE(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();qE.filterProps=["sx"];const XE=qE;function ZE(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const JE=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e,s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(i);let c=GP({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...qP,...o}},a);return c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(c),c.applyStyles=ZE,c=t.reduce((e,t)=>GP(e,t),c),c.unstable_sxConfig={...KE,...a?.unstable_sxConfig},c.unstable_sx=function(e){return XE({sx:e,theme:this})},c}();function QE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function eT(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function tT(e){return e?(t,n)=>n[e]:null}function nT(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>nT(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?eT(r.style,n):r.style;else{const{variants:e,...i}=r;t=n?eT(UP(i),n):i}return rT(e,r.variants,[t],n)}return r?.isProcessed?n?eT(UP(r.style),n):r.style:n?eT(UP(r),n):r}function rT(e,t,n=[],r=void 0){let i;e:for(let o=0;oe,uT=(()=>{let e=cT;return{configure(t){e=t},generate:t=>e(t),reset(){e=cT}}})();function dT(e){return`${uT.generate("MuiChartAxisZoomSliderTrack")}-${e}`}["horizontal","vertical","background","active"].reduce((e,t)=>(e[t]=dT(t),e),{});const pT=e=>{const{axisDirection:t}=e;return lT({background:["x"===t?"horizontal":"vertical","background"],active:["x"===t?"horizontal":"vertical","active"]},dT)},hT=["axisId","axisDirection","reverse","onSelectStart","onSelectEnd"],mT=bm("rect",{slot:"internal",shouldForwardProp:e=>QE(e)&&"axisDirection"!==e&&"isSelecting"!==e})(({theme:e})=>l({fill:(e.vars||e).palette.grey[300]},e.applyStyles("dark",{fill:(e.vars||e).palette.grey[800]}),{cursor:"pointer",variants:[{props:{axisDirection:"x",isSelecting:!0},style:{cursor:"ew-resize"}},{props:{axisDirection:"y",isSelecting:!0},style:{cursor:"ns-resize"}}]}));function fT(t){let{axisId:n,axisDirection:r,onSelectStart:i,onSelectEnd:o}=t,a=tt(t,hT);const s=e.useRef(null),{instance:c,svgRef:u}=$x(),d=zx(),[p,h]=e.useState(!1),m=pT({axisDirection:r});return(0,O.jsx)(mT,l({ref:s,onPointerDown:function(e){const t=s.current,r=u.current;if(!t||!r)return;const a=xs(r,e),p=oT(d.state,n,a);if(null===p)return;const m=rx(function(e){const t=xs(r,e),i=oT(d.state,n,t);if(null===i)return;const o=Xa(d.state,n);c.setAxisZoomData(n,e=>{if(i>p){const t=sT(i,l({},e,{start:p}),o),n=aT(p,l({},e,{start:p,end:t}),o);return l({},e,{start:n,end:t})}const t=aT(i,l({},e,{end:p}),o),n=sT(p,l({},e,{start:t,end:p}),o);return l({},e,{start:t,end:n})})});e.preventDefault(),e.stopPropagation(),t.setPointerCapture(e.pointerId),document.addEventListener("pointerup",function e(n){t.releasePointerCapture(n.pointerId),t.removeEventListener("pointermove",m),document.removeEventListener("pointerup",e),h(!1),o?.()}),t.addEventListener("pointermove",m),i?.(),h(!0)},axisDirection:r,isSelecting:p},a,{className:Hh(m.background,a.className)}))}function gT(e,t,n){return fa(e)?t[yT(e,n)]:e.invert(n)}function yT(e,t){return 0===e.bandwidth()?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())}function vT(...t){const n=e.useRef(void 0),r=e.useCallback(e=>{const n=t.map(t=>{if(null==t)return null;if("function"==typeof t){const n=t,r=n(e);return"function"==typeof r?r:()=>{n(null)}}return t.current=e,()=>{t.current=null}});return()=>{n.forEach(e=>e?.())}},t);return e.useMemo(()=>t.every(e=>null==e)?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))},t)}const bT="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,xT={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 IT(e,t,n="Mui"){const r=xT[t];return r?`${n}-${r}`:`${uT.generate(e)}-${t}`}function wT(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=IT(e,t,n)}),r}const kT=wT("MuiChartAxisZoomSliderThumb",["root","horizontal","vertical","start","end"]);function ST(e){return IT("MuiChartAxisZoomSliderThumb",e)}const MT=["className","onMove","orientation","placement","rx","ry"],CT=bm("rect",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({[`&.${kT.root}`]:l({fill:(e.vars||e).palette.common.white,stroke:(e.vars||e).palette.grey[500]},e.applyStyles("dark",{fill:(e.vars||e).palette.grey[300],stroke:(e.vars||e).palette.grey[600]})),[`&.${kT.horizontal}`]:{cursor:"ew-resize"},[`&.${kT.vertical}`]:{cursor:"ns-resize"}}));function PT(e){e.preventDefault()}const ET=e.forwardRef(function(t,n){let{className:r,onMove:i,orientation:o,placement:a,rx:s=4,ry:c=4}=t,u=tt(t,MT);const d=(e=>{const{orientation:t,placement:n}=e;return lT({root:["root","horizontal"===t?"horizontal":"vertical","start"===n?"start":"end"]},ST)})({onMove:i,orientation:o,placement:a}),p=e.useRef(null),h=vT(p,n),m=function(t){const n=e.useRef(t);return bT(()=>{n.current=t}),e.useRef((...e)=>(0,n.current)(...e)).current}(i);return e.useEffect(()=>{const e=p.current;if(!e)return()=>{};e.addEventListener("touchmove",PT,{passive:!1});const t=rx(e=>{m(e)}),n=r=>{e.removeEventListener("pointermove",t),e.removeEventListener("pointerup",n),e.removeEventListener("pointercancel",n),e.releasePointerCapture(r.pointerId)},r=r=>{r.preventDefault(),r.stopPropagation(),e.setPointerCapture(r.pointerId),e.addEventListener("pointermove",t),e.addEventListener("pointercancel",n),e.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",r),()=>{e.removeEventListener("pointerdown",r),e.removeEventListener("pointermove",t),e.removeEventListener("pointercancel",n),e.removeEventListener("pointerup",n),e.removeEventListener("touchmove",PT),t.clear()}},[m,o]),(0,O.jsx)(CT,l({className:Hh(d.root,r),ref:h,rx:s,ry:c},u))}),TT=bm(Tg,{name:"MuiChartsZoomSliderTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal})),AT=[{name:"offset",options:{offset:[0,4]}}];function OT({anchorEl:e,open:t,placement:n,modifiers:r=AT,children:i}){return(0,O.jsx)(PC,{children:t?(0,O.jsx)(TT,{open:t,anchorEl:e,placement:n,modifiers:r,children:(0,O.jsx)(JM,{sx:{paddingX:.5},children:(0,O.jsx)(Nv,{variant:"caption",children:i})})}):null})}const jT=bm("rect",{slot:"internal",shouldForwardProp:e=>QE(e)&&"preview"!==e})(({theme:e})=>l({fill:(e.vars||e).palette.grey[600]},e.applyStyles("dark",{fill:(e.vars||e).palette.grey[500]}),{cursor:"grab",variants:[{props:{preview:!0},style:l({fill:"transparent"},e.applyStyles("dark",{fill:"transparent"}),{rx:4,ry:4,stroke:e.palette.grey[500]})}]}));function LT({axisId:t,axisDirection:n,axisPosition:r,size:i,preview:o,zoomData:a,reverse:s,showTooltip:c,onPointerEnter:u,onPointerLeave:d}){const{instance:p,svgRef:h}=$x(),m=zx(),f=m.use(us,t),g=Nx(),y=e.useRef(null),[v,b]=e.useState(null),[x,I]=e.useState(null),{tooltipStart:w,tooltipEnd:k}=function(e,t){const n=t=>e.valueFormatter?e.valueFormatter(t,{location:"zoom-slider-tooltip",scale:e.scale}):`${t}`,r="top"===e.position||"bottom"===e.position?"x":"y";let i="x"===r?t.left:t.top;let o=i+("x"===r?t.width:t.height);"y"===r&&([i,o]=[o,i]),e.reverse&&([i,o]=[o,i]);const a=gT(e.scale,e.data??[],i)??e.data?.at(0),s=gT(e.scale,e.data??[],o)??e.data?.at(-1);return{tooltipStart:n(a),tooltipEnd:n(s)}}(f,g),S=pT({axisDirection:n}),M="x"===n?HP:FP,C="x"===n?FP:HP;let P,E,T,A,j,L,R,D;e.useEffect(()=>{const e=y.current;if(!e)return;let n=0;const r=rx(e=>{const r=h.current;if(!r)return;const i=xs(r,e),o=oT(m.state,t,i);if(null===o)return;const a=o-n;n=o,p.moveZoomRange(t,a)}),i=()=>{e.removeEventListener("pointermove",r),document.removeEventListener("pointerup",i)},o=o=>{o.preventDefault(),e.setPointerCapture(o.pointerId);const a=px(m.state,t),s=h.current;if(!a||!s)return;const l=xs(s,o),c=oT(m.state,t,l);null!==c&&(n=c,document.addEventListener("pointerup",i),e.addEventListener("pointermove",r))};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),r.clear()}},[n,t,p,s,m,h]);const{minStart:$,maxEnd:z}=Xa(m.state,t),N=z-$,_=Math.max($,a.start),F=Math.min(a.end,z);"x"===n?(P=(_-$)/N*g.width,E=0,T=g.width*(F-_)/N,A=i,j=(_-$)/N*g.width,L=FP