PageSourceSearch

https://yourmover.ai/assets/vendor-mui-ColX2hcO.js

js yourmover.ai collected 2026-10-05 15:05:31 UTC 447,545 bytes, 138 lines download raw bytes

vendor: 19,176 bytes, lines 1-28
1import{a as e}from"./rolldown-runtime-BYbx6iT9.js";import{$ as t,$t as n,At as r,B as i,Bt as a,Cn as o,Ct as s,Dt as c,Et as l,F as u,Ft as d,G as f,Gt as p,H as m,Ht as h,I as g,It as _,J as v,Jt as y,K as b,Kt as x,L as S,Lt as C,Mt as w,Nt as T,Ot as E,P as D,Pt as O,Q as k,Qt as A,R as j,Rt as M,S as N,Sn as P,Tt as F,U as I,Ut as L,V as R,Vt as z,W as B,Wt as ee,X as te,Xt as V,Y as ne,Yt as H,Z as re,Zt as U,_n as ie,_t as ae,a as oe,an as W,at as se,bn as ce,bt as G,c as le,cn as ue,ct as de,d as fe,dn as pe,dt as me,en as he,et as ge,fn as _e,ft as ve,g as ye,gn as be,gt as xe,h as Se,hn as Ce,ht as we,in as Te,jt as Ee,kt as K,l as De,ln as Oe,lt as ke,mn as Ae,mt as je,nn as Me,on as Ne,ot as Pe,p as Fe,pn as Ie,pt as Le,q as Re,qt as ze,rn as Be,rt as Ve,s as He,sn as Ue,st as We,tn as Ge,u as Ke,un as qe,ut as Je,vn as Ye,vt as Xe,wn as Ze,wt as Qe,xn as $e,yn as et,yt as tt,zt as nt}from"./mui-pickers-BHRk3wA-.js";import{$ as rt,At as it,Bt as at,Ct as ot,Dt as st,Et as ct,Ft as lt,Gt as ut,Ht as dt,It as ft,J as pt,Lt as mt,Mt as ht,Nt as gt,Ot as _t,Pt as vt,Q as yt,Rt as bt,St as xt,Tt as St,Ut as Ct,Vt as wt,Wt as Tt,X as Et,Y as Dt,Z as Ot,_t as kt,at as At,bt as jt,ct as Mt,dt as Nt,et as Pt,ft as Ft,gt as It,ht as Lt,it as Rt,jt as zt,kt as Bt,lt as Vt,mt as Ht,nt as Ut,ot as Wt,pt as Gt,q as Kt,rt as qt,st as Jt,tt as Yt,ut as Xt,vt as Zt,wt as Qt,xt as $t,yt as en,zt as tn}from"./vendor-DXupcCiS.js";var q=e(Ze(),1),J=Ae(),nn=new Map,rn={insert:void 0},an=(e,t)=>{let n=et(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},on;if(typeof document==`object`&&(on=document.querySelector(`[name="emotion-insertion-point"]`),!on)){on=document.createElement(`meta`),on.setAttribute(`name`,`emotion-insertion-point`),on.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(on)}function sn(e,t){if(e||t){class n extends ce{insert(e,t){return rn.insert?rn.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=on),super.insert(e,t))}}let r=an({key:`css`,insertionPoint:e?on:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function cn(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=q.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&nn.has(e))return nn.get(e);let r=sn(t,n);return nn.set(e,r),r},[t,n]);return i?(0,J.jsx)(ie,{value:i,children:r}):r}function ln(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=_e(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(Te);return q.forwardRef(function(e,o){let s=Ge(n),{className:c,component:l=`div`,...u}=e;return(0,J.jsx)(a,{as:l,ref:o,className:A(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var un=y(),dn=q.createContext(null);function fn(){return q.useContext(dn)}var pn=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function mn(e,t){return typeof t==`function`?t(e):{...e,...t}}function hn(e){let{children:t,theme:n}=e,r=fn(),i=q.useMemo(()=>{let e=r===null?{...n}:mn(r,n);return e!=null&&(e[pn]=r!==null),e},[n,r]);return(0,J.jsx)(dn.Provider,{value:i,children:t})}function gn(e){let t=Me(),n=M()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,p(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,J.jsx)(he,{styles:i}):null}var _n={};function vn(e,t,n,r=!1){return q.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function yn(e){let{children:t,theme:n,themeId:r}=e,i=Me(_n),o=fn()||_n,s=vn(r,i,n),c=vn(r,o,n,!0),l=(r?s[r]:s).direction===`rtl`,u=gn(s);return(0,J.jsx)(hn,{theme:c,children:(0,J.jsx)(Ye.Provider,{value:s,children:(0,J.jsx)(a,{value:l,children:(0,J.jsxs)(nt,{value:r?s[r].components:s.components,children:[u,t]})})})})}var bn=`mode`,xn=`color-scheme`,Sn=`data-color-scheme`;function Cn(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=bn,colorSchemeStorageKey:a=xn,attribute:o=Sn,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
2      ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
3      ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
4      ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,J.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
5try {
6  let colorScheme = '';
7  const mode = localStorage.getItem('${i}') || '${t}';
8  const dark = localStorage.getItem('${a}-dark') || '${r}';
9  const light = localStorage.getItem('${a}-light') || '${n}';
10  if (mode === 'system') {
11    // handle system mode
12    const mql = window.matchMedia('(prefers-color-scheme: dark)');
13    if (mql.matches) {
14      colorScheme = dark
15    } else {
16      colorScheme = light
17    }
18  }
19  if (mode === 'light') {
20    colorScheme = light;
21  }
22  if (mode === 'dark') {
23    colorScheme = dark;
24  }
25  if (colorScheme) {
26    ${l}
27  }
28} catch(e){}})();`}},`mui-color-scheme-init`)}function wn(){}var Tn=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return wn;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function En(){}function Dn(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function On(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function kn(e){return On(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function An(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=bn,colorSchemeStorageKey:o=xn,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Tn,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=q.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=q.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=q.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=q.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Dn(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=q.useState(l||!d);q.useEffect(()=>{v(!0)},[]);let y=kn(h),b=q.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Dn(r)}})},[f,t]),x=q.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return On(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=q.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=q.useRef(S);return C.current=S,q.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),q.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||En,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||En,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||En;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var jn=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Mn(e){let{themeId:t,theme:n={},modeStorageKey:r=bn,colorSchemeStorageKey:i=xn,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=q.createContext(void 0),u=()=>q.useContext(l)||c,d={},f={};function m(e){let{children:c,theme:u,modeStorageKey:m=r,colorSchemeStorageKey:h=i,disableTransitionOnChange:g=a,storageManager:_,storageWindow:v=typeof window>`u`?void 0:window,documentNode:y=typeof document>`u`?void 0:document,colorSchemeNode:b=typeof document>`u`?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:S=!1,defaultMode:C=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=q.useRef(!1),D=fn(),O=q.useContext(l),k=!!O&&!x,A=q.useMemo(()=>u||(typeof n==`function`?n():n),[u]),j=A[t],M=j||A,{colorSchemes:N=d,components:P=f,cssVarPrefix:F}=M,I=Object.keys(N).filter(e=>!!N[e]).join(`,`),L=q.useMemo(()=>I.split(`,`),[I]),R=typeof o==`string`?o:o.light,z=typeof o==`string`?o:o.dark,{mode:B,setMode:ee,systemMode:te,lightColorScheme:V,darkColorScheme:ne,colorScheme:H,setColorScheme:re}=An({supportedColorSchemes:L,defaultLightColorScheme:R,defaultDarkColorScheme:z,modeStorageKey:m,colorSchemeStorageKey:h,defaultMode:N[R]&&N[z]?C:N[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,storageManager:_,storageWindow:v,noSsr:T}),U=B,ie=H;k&&(U=O.mode,ie=O.colorScheme);let ae=ie||M.defaultColorScheme;M.vars&&!w&&(ae=M.defaultColorScheme);let oe=q.useMemo(()=>{let e=M.generateThemeVars?.()||M.vars,t={...M,components:P,colorSchemes:N,cssVarPrefix:F,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),ae){let e=N[ae];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[M,ae,P,N,F]),W=M.colorSchemeSelector;p(()=>{if(ie&&b&&W&&W!==`media`){let e=W,t=W;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))b.classList.remove(...L.map(e=>t.substring(1).replace(`%s`,e))),b.classList.add(t.substring(1).replace(`%s`,ie));else{let e=t.replace(`%s`,ie).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||L.forEach(e=>{b.removeAttribute(t.replace(ie,e))}),b.setAttribute(t,n?n.replace(/"|'/g,``):``)}else b.setAttribute(t,ie)}}},[ie,W,b,L]),q.useEffect(()=>{let e;if(g&&E.current&&y){let t=y.createElement(`style`);t.appendChild(y.createTextNode(jn)),y.head.appendChild(t),window.getComputedStyle(y.body),e=setTimeout(()=>{y.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ie,g,y]),q.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let se=q.useMemo(()=>({allColorSchemes:L,colorScheme:ie,darkColorScheme:ne,lightColorScheme:V,mode:U,setColorScheme:re,setMode:ee,systemMode:te}),[L,ie,ne,V,U,re,ee,te,oe.colorSchemeSelector]),ce=!0;(S||M.cssVariables===!1||k&&D?.cssVarPrefix===F)&&(ce=!1);let G=(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(yn,{themeId:j?t:void 0,theme:oe,children:c}),ce&&(0,J.jsx)(Ie,{styles:oe.generateStyleSheets?.()||[]})]});return k?G:(0,J.jsx)(l.Provider,{value:se,children:G})}let h=typeof o==`string`?o:o.light,g=typeof o==`string`?o:o.dark;return{CssVarsProvider:m,useColorScheme:u,getInitColorSchemeScript:e=>Cn({colorSchemeStorageKey:i,defaultLightColorScheme:h,defaultDarkColorScheme:g,modeStorageKey:r,...e})}}var Nn=(e,t)=>e.filter(e=>t.includes(e)),Pn=(e,t,n)=>{let r=e.keys[0];Array.isArray(t)?t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(r===0?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)}):t&&typeof t==`object`?(Object.keys(t).length>e.keys.length?e.keys:Nn(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){let a=t[i];a!==void 0&&n((t,n)=>{r===i?Object.assign(t,n):t[e.up(i)]=n},a)}}):(typeof t==`number`||typeof t==`string`)&&n((e,t)=>{Object.assign(e,t)},t)};function Fn(e){return`--Grid-${e}Spacing`}function In(e){return`--Grid-parent-${e}Spacing`}var Ln=`--Grid-columns`,Rn=`--Grid-parent-columns`,zn=({theme:e,ownerState:t})=>{let n={};return Pn(e.breakpoints,t.size,(e,t)=>{let r={};t===`grow`&&(r={flexBasis:0,flexGrow:1,maxWidth:`100%`}),t===`auto`&&(r={flexBasis:`auto`,flexGrow:0,flexShrink:0,maxWidth:`none`,width:`auto`}),typeof t==`number`&&(r={flexGrow:0,flexBasis:`auto`,width:`calc(100% * ${t} / var(${Rn}) - (var(${Rn}) - ${t}) * (var(${In(`column`)}) / var(${Rn})))`}),e(n,r)}),n},Bn=({theme:e,ownerState:t})=>{let n={};return Pn(e.breakpoints,t.offset,(e,t)=>{let r={};t===`auto`&&(r={marginLeft:`auto`}),typeof t==`number`&&(r={marginLeft:t===0?`0px`:`calc(100% * ${t} / var(${Rn}) + var(${In(`column`)}) * ${t} / var(${Rn}))`}),e(n,r)}),n},Vn=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[Ln]:12};return Pn(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[Ln]:r,"> *":{[Rn]:r}})}),n},Hn=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Pn(e.breakpoints,t.rowSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Fn(`row`)]:i,"> *":{[In(`row`)]:i}})}),n},Un=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Pn(e.breakpoints,t.columnSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Fn(`column`)]:i,"> *":{[In(`column`)]:i}})}),n},Wn=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Pn(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},Gn=({ownerState:e})=>({minWidth:0,boxSizing:`border-box`,...e.container&&{display:`flex`,flexWrap:`wrap`,...e.wrap&&e.wrap!==`wrap`&&{flexWrap:e.wrap},gap:`var(${Fn(`row`)}) var(${Fn(`column`)})`}}),Kn=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${e}-${String(n)}`)}),t},qn=(e,t=`xs`)=>{function n(e){return e===void 0?!1:typeof e==`string`&&!Number.isNaN(Number(e))||typeof e==`number`&&e>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e==`object`&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},Jn=e=>e===void 0?[]:typeof e==`object`?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],Yn=Be(),Xn=un(`div`,{name:`MuiGrid`,slot:`Root`});function Zn(e){return x({props:e,name:`MuiGrid`,defaultTheme:Yn})}function Qn(e={}){let{createStyledComponent:t=Xn,useThemeProps:n=Zn,useTheme:r=Ge,componentName:i=`MuiGrid`}=e,a=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:o,size:s}=e;return C({root:[`root`,n&&`container`,o!==`wrap`&&`wrap-xs-${String(o)}`,...Jn(r),...Kn(s),...n?qn(a,t.breakpoints.keys[0]):[]]},e=>U(i,e),{})};function o(e,t,n=()=>!0){let r={};return e===null||(Array.isArray(e)?e.forEach((e,i)=>{e!==null&&n(e)&&t.keys[i]&&(r[t.keys[i]]=e)}):typeof e==`object`?Object.keys(e).forEach(t=>{let i=e[t];i!=null&&n(i)&&(r[t]=i)}):r[t.keys[0]]=e),r}let s=t(Vn,Un,Hn,zn,Wn,Gn,Bn),c=q.forwardRef(function(e,t){let i=r(),c=n(e),{className:l,children:u,columns:d=12,container:f=!1,component:p=`div`,direction:m=`row`,wrap:h=`wrap`,size:g={},offset:v={},spacing:y=0,rowSpacing:b=y,columnSpacing:x=y,unstable_level:S=0,...C}=c,w=o(g,i.breakpoints,e=>e!==!1),T=o(v,i.breakpoints),E=e.columns??(S?void 0:d),D=e.spacing??(S?void 0:y),O=e.rowSpacing??e.spacing??(S?void 0:b),k=e.columnSpacing??e.spacing??(S?void 0:x),j={...c,level:S,columns:E,container:f,direction:m,wrap:h,spacing:D,rowSpacing:O,columnSpacing:k,size:w,offset:T};return(0,J.jsx)(s,{ref:t,as:p,ownerState:j,className:A(a(j,i).root,l),...C,children:q.Children.map(u,e=>q.isValidElement(e)&&_(e,[`Grid`])&&f&&e.props.container?q.cloneElement(e,{unstable_level:e.props?.unstable_level??S+1}):e)})});return c.muiName=`Grid`,c}var $n=Be(),er=un(`div`,{name:`MuiStack`,slot:`Root`});function tr(e){return x({props:e,name:`MuiStack`,defaultTheme:$n})}function nr(e,t){let n=q.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(q.cloneElement(t,{key:`separator-${i}`})),e),[])}var rr=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],ir=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...ue({theme:t},qe({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=W(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=qe({values:e.direction,base:i}),o=qe({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{a[e]||(a[e]=t>0?a[n[t-1]]:`column`)}),n=pe(n,ue({theme:t},o,(t,n)=>e.useFlexGap?{gap:Ne(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rr(n?a[n]:e.direction)}`]:Ne(r,t)}}))}return n=Oe(t.breakpoints,n),n};function ar(e={}){let{createStyledComponent:t=er,useThemeProps:n=tr,componentName:r=`MuiStack`}=e,i=()=>C({root:[`root`]},e=>U(r,e),{}),a=t(ir);return q.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=n(e);return(0,J.jsx)(a,{as:r,ownerState:{direction:o,spacing:s,useFlexGap:d},ref:t,className:A(i().root,u),...f,children:c?nr(l,c):l})})}function or(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||``}function sr(e){return parseFloat(e)}function cr({theme:e,...t}){let n=`$$material`in e?e[$e]:void 0;return(0,J.jsx)(yn,{...t,themeId:n?$e:void 0,theme:n||e})}var lr={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:ur,useColorScheme:dr,getInitColorSchemeScript:fr}=Mn({themeId:$e,theme:()=>O({cssVariables:!0}),colorSchemeStorageKey:lr.colorSchemeStorageKey,modeStorageKey:lr.modeStorageKey,defaultColorScheme:{light:lr.defaultLightColorScheme,dark:lr.defaultDar
28kColorScheme},resolveTheme:e=>{let t={...e,typography:d(e.palette,e.typography)};return t.unstable_sx=function(e){return Te({sx:e,theme:this})},t}}),pr=ur;function mr({theme:e,...t}){let n=q.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[$e]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,J.jsx)(cr,{theme:n,...t}):(0,J.jsx)(pr,{theme:e,...t})}var hr=typeof E({})==`function`,gr=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),_r=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),vr=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:gr(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,..._r(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},yr=`mui-ecs`,br=e=>{let t=vr(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${yr})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${yr}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${yr}))`]:{colorScheme:r.palette?.mode}}}),t},xr=E(hr?({theme:e,enableColorScheme:t})=>vr(e,t):({theme:e})=>br(e));function Sr(e){let{children:t,enableColorScheme:n=!1}=c({props:e,name:`MuiCssBaseline`});return(0,J.jsxs)(q.Fragment,{children:[hr&&(0,J.jsx)(xr,{enableColorScheme:n}),!hr&&!n&&(0,J.jsx)(`span`,{className:yr,style:{display:`none`}}),t]})}var Cr=V(`MuiBox`,[`root`]),wr=ln({themeId:$e,defaultTheme:O(),defaultClassName:Cr.root,generateClassName:n.generate});function Tr(e){return U(`MuiAppBar`,e)}V(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var Er=e=>{let{color:t,position:n,classes:r}=e;return C({root:[`root`,`color${F(t)}`,`position${F(n)}`]},Tr,r)},Dr=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,Or=K(s,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${F(n.position)}`],t[`color${F(n.color)}`]]}})(l(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Qe([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?Dr(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?Dr(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),kr=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,l={...n,color:i,position:o,enableColorOnDark:a};return(0,J.jsx)(Or,{square:!0,component:`header`,ownerState:l,elevation:4,className:A(Er(l).root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})}),Ar=ar({createStyledComponent:K(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>c({props:e,name:`MuiStack`})});function jr(e){return U(`MuiToolbar`,e)}V(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var Mr=e=>{let{classes:t,disableGutters:n,variant:r}=e;return C({root:[`root`,!n&&`gutters`,r]},jr,t)},Nr=K(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(l(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),Pr=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,l={...n,component:i,disableGutters:a,variant:o};return(0,J.jsx)(Nr,{as:i,className:A(Mr(l).root,r),ref:t,ownerState:l,...s})}),Fr=G((0,J.jsx)(`path`,{d:`M11.01 3.05C6.51 3.54 3 7.36 3 12c0 4.97 4.03 9 9 9 4.63 0 8.45-3.5 8.95-8 .09-.79-.78-1.42-1.54-.95-.84.54-1.84.85-2.91.85-2.98 0-5.4-2.42-5.4-5.4 0-1.06.31-2.06.84-2.89.45-.67-.04-1.63-.93-1.56`}),`DarkModeRounded`),Ir=G((0,J.jsx)(`path`,{d:`M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z`}),`LightModeRounded`),Lr=G((0,J.jsx)(`path`,{d:`M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-2.85 8.35L16 13.5v2c0 .28-.22.5-.5.5h-2l-1.15 1.15c-.2.2-.51.2-.71 0L10.5 16h-2c-.28 0-.5-.22-.5-.5v-2l-1.
2815-1.15c-.2-.2-.2-.51 0-.71L8 10.5v-2c0-.28.22-.5.5-.5h2l1.15-1.15c.2-.2.51-.2.71 0L13.5 8h2c.28 0 .5.22.5.5v2l1.15 1.15c.19.19.19.51 0 .7M12 9v6c1.66 0 3-1.34 3-3s-1.34-3-3-3`}),`SettingsBrightnessRounded`),Rr=e(o(),1),zr=tt;function Br(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Vr=Br,Hr=xe,Ur=we,Wr=p;function Gr(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=q.useRef(t!==void 0),[o,s]=q.useState(n);return[a?t:o,q.useCallback(e=>{a||s(e)},[])]}var Kr=Gr;function qr(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Jr(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{qr(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=A(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=A(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Yr(e){return U(`MuiListItemIcon`,e)}var Xr=V(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),Zr=e=>{let{alignItems:t,classes:n}=e;return C({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},Yr,n)},Qr=K(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(l(({theme:e})=>({minWidth:e.spacing(4.5),color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),$r=q.forwardRef(function(e,n){let r=c({props:e,name:`MuiListItemIcon`}),{className:i,...a}=r,o=q.useContext(t),s={...r,alignItems:o.alignItems};return(0,J.jsx)(Qr,{className:A(Zr(s).root,i),ownerState:s,ref:n,...a})});function ei(e){return U(`MuiListItemText`,e)}var ti=V(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),ni=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return C({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},ei,t)},ri=K(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${ti.primary}`]:t.primary},{[`& .${ti.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,[`.${k.root}:where(& .${ti.primary})`]:{display:`block`},[`.${k.root}:where(& .${ti.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ii=q.forwardRef(function(e,n){let r=c({props:e,name:`MuiListItemText`}),{children:i,className:a,disableTypography:o=!1,inset:s=!1,primary:l,secondary:u,slots:d={},slotProps:f={},...p}=r,{dense:m}=q.useContext(t),h=l??i,g=u,_={...r,disableTypography:o,inset:s,primary:!!h,secondary:!!g,dense:m},y=ni(_),b={slots:d,slotProps:f},[x,S]=v(`root`,{className:A(y.root,a),elementType:ri,externalForwardedProps:{...b,...p},ownerState:_,ref:n}),[C,w]=v(`primary`,{className:y.primary,elementType:re,externalForwardedProps:b,ownerState:_}),[T,E]=v(`secondary`,{className:y.secondary,elementType:re,externalForwardedProps:b,ownerState:_});return h!=null&&h.type!==re&&!o&&(h=(0,J.jsx)(C,{variant:m?`body2`:`body1`,component:w?.variant?void 0:`span`,...w,children:h})),g!=null&&g.type!==re&&!o&&(g=(0,J.jsx)(T,{variant:`body2`,color:`textSecondary`,...E,children:g})),(0,J.jsxs)(x,{...S,children:[h,g]})}),ai=q.createContext(void 0);function oi(){let e=q.useContext(ai);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var si=Object.is;function ci(e,t){if(e===t)return!0;
28if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!si(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var li=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function ui(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=wi,wrap:o=!0}=e,[s,c]=q.useState(t),l=q.useRef(t),u=s;t!==l.current&&(l.current=t,t!==void 0&&t!==s&&(u=t,c(t)));let d=q.useRef(null),f=q.useRef(new Map),[p,m]=q.useState(0),h=q.useMemo(()=>xi(f.current),[p]),g=fi(u,h,a,n),_=q.useRef(g);_.current=g;let v=q.useCallback(()=>{let e=xi(f.current);return vi(e,fi(_.current,e,a,n))},[n,a]),y=q.useCallback(()=>f.current,[]),b=ve(e=>{ci(f.current.get(e.id)??null,e)||(f.current.set(e.id,e),m(e=>e+1))}),x=ve(e=>{f.current.delete(e)&&m(e=>e+1)}),S=ve(e=>{c(e)}),C=q.useCallback(e=>_.current===e,[]),w=q.useCallback((e,t,n,r)=>{let i=gi(Si(f.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),T=q.useCallback(e=>({onFocus:e=>{let t=Si(f.current),n=bi(t,e.target);n!==-1&&c(t[n].id)},onKeyDown:e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!li.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,n=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,n=`ArrowLeft`);let a=Si(f.current),s=Xe(xe(d.current)),c=s===d.current,l=hi(a,s,_.current),u=`next`;switch(e.key){case t:u=`previous`,e.preventDefault(),c&&(l=a.length);break;case n:e.preventDefault(),c&&(l=-1);break;case`Home`:e.preventDefault(),l=-1;break;case`End`:e.preventDefault(),u=`previous`,l=a.length;break;default:return}w(l,u,o)},ref:Di(e,e=>{d.current=e})}),[w,i,r,o]),E=q.useCallback(e=>{let t=Si(f.current),n=Xe(xe(d.current));return w(n===d.current?-1:hi(t,n,_.current),`next`,!0,e)?.id??null},[w]);return q.useMemo(()=>({activeItemId:g,focusNext:E,getActiveItem:v,getContainerProps:T,getItemMap:y,isItemActive:C,registerItem:b,setActiveItemId:S,unregisterItem:x}),[g,E,v,T,y,C,b,S,x])}function di(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=oi(),i=q.useRef(null),a=q.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=q.useRef(a);o.current=a;let s=q.useCallback(t=>{if(i.current=t,t==null){queueMicrotask(()=>{i.current??r(e.id)});return}n({...o.current,element:t})},[e.id,n,r]),c=Je(e.ref,s);return p(()=>{i.current&&n({...a,element:i.current})},[a,n]),p(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function fi(e,t,n,r){return e==null?mi(t,n,r):pi(e,t,n)}function pi(e,t,n){let r=yi(t,e);return r===-1?_i(t,n):n(t[r])?t[r].id:gi(t,r,`next`,!1,n)?.id??null}function mi(e,t,n){let r=n?.(e);if(r!=null){let n=vi(e,r);if(n&&t(n))return n.id}return _i(e,t)}function hi(e,t,n){if(t){let n=bi(e,t);if(n!==-1)return n}return yi(e,n)}function gi(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=Ci(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=Ci(s,a,n,r);else return t}return null}function _i(e,t){return e.find(e=>t(e))?.id??null}function vi(e,t){return t==null?null:e.find(e=>e.id===t)??null}function yi(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function bi(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function xi(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(Ti).sort((e,t)=>Ei(e.element,t.element)),r=t.filter(e=>!Ti(e));return[...n,...r]}function Si(e){return xi(e).filter(Ti)}function Ci(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function wi(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function Ti(e){return e.element!=null&&e.element.isConnected}function Ei(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Di(...e){return t=>
28{e.forEach(e=>{je(e??null,t)})}}var Oi=b;function ki(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function Ai(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function ji(e){return e==null||typeof e==`string`&&!e.trim()}function Mi(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var Ni=q.createContext(null);function Pi(){return q.useContext(Ni)}var Fi=Ni.Provider,Ii=q.createContext(void 0);function Li(){let e=q.useContext(Ii);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function Ri(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function zi(e,t){if(t===void 0)return!0;let n=Ri(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function Bi(e,t){return zi(e,t)?wi(e):!1}function Vi(e,t){ki(e,t)}var Hi=q.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,p=q.useRef(null),m=q.useRef(!1),[h,g]=q.useState(!1),_=Pi(),v=q.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),y=ui({activeItemId:void 0,getDefaultActiveItemId:q.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&wi(e))?.id??e.find(e=>wi(e))?.id??null:e.find(e=>wi(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:b,focusNext:x,getActiveItem:S,getContainerProps:C,getItemMap:w}=y,T=me((e=!1)=>{if(!p.current||!e&&m.current)return null;if(i){let e=S();if(e?.element){let t=Array.from(w().values()).some(e=>e.selected);return g(u===`menu`&&t&&!e.selected&&_==null),Vi(e.element,_),m.current=!0,e.element}return r?(g(!1),p.current.focus(),p.current):null}return r?(g(!1),p.current.focus(),m.current=!0,p.current):(g(!1),null)});Wr(()=>{if(!r&&!i){m.current=!1,g(!1);return}T()},[b,i,r,T]),q.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){let n=`${Oi(Ur(e))}px`;p.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,p.current.style.width=`calc(100% + ${n})`}return p.current},focusInitialTarget:()=>{if(!p.current)return null;let e=ae(Hr(p.current));return e&&p.current.contains(e)?e:T(!0)}}),[T]);let E=C(),D=ke(p,E.ref,t),O=q.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:h,variant:u}),[s,h,u]);return(0,J.jsx)(f,{role:`menu`,ref:D,className:o,onKeyDown:me(e=>{if(h&&g(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l){l(e);return}if(E.onKeyDown(e),e.key.length===1){let t=v.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=ae(Hr(p.current)),a=i&&!t.repeating&&zi(i,t);t.previousKeyMatched&&(a||x(e=>Bi(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)}),onFocus:E.onFocus,tabIndex:-1,...d,children:(0,J.jsx)(Ii.Provider,{value:O,children:(0,J.jsx)(ai.Provider,{value:y,children:a})})})});function Ui(e){return U(`MuiPopover`,e)}V(`MuiPopover`,[`root`,`paper`]);function Wi(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Gi(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Ki(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function qi(e){return typeof e==`function`?e():e}var Ji=e=>{let{classes:t}=e;return C({root:[`root`],paper:[`paper`]},Ui,t)},Yi=K(j,{name:`MuiPopover`,slot:`Root`})({}),Xi=K(s,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Zi=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiPopover`}),{action:r,anchorEl:a,anchorOrigin:o={vertical:`top`,horizontal:`left`}
vendor: 13,058 bytes, line 28
28,anchorPosition:s,anchorReference:l=`anchorEl`,children:u,className:d,container:f,disableAutoFocus:p=!1,elevation:m=8,marginThreshold:h=16,open:g,slots:_={},slotProps:y={},transformOrigin:b={vertical:`top`,horizontal:`left`},transitionDuration:x=`auto`,disableScrollLock:S=!1,...C}=n,w=q.useRef(),T={...n,anchorOrigin:o,anchorReference:l,elevation:m,marginThreshold:h,transformOrigin:b,transitionDuration:x},E=Ji(T),D=q.useCallback(()=>{if(l===`anchorPosition`)return s;let e=qi(a),t=(e&&e.nodeType===1?e:Hr(w.current).body).getBoundingClientRect();return{top:t.top+Wi(t,o.vertical),left:t.left+Gi(t,o.horizontal)}},[a,o.horizontal,o.vertical,s,l]),O=q.useCallback(e=>({vertical:Wi(e,b.vertical),horizontal:Gi(e,b.horizontal)}),[b.horizontal,b.vertical]),k=q.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if(l===`none`)return{top:null,left:null,transformOrigin:Ki(n)};let r=D(),i=r.top-n.vertical,o=r.left-n.horizontal,s=i+t.height,c=o+t.width,u=Ur(qi(a)),d=u.innerHeight-h,f=u.innerWidth-h;if(h!=null&&i<h){let e=i-h;i-=e,n.vertical+=e}else if(h!=null&&s>d){let e=s-d;i-=e,n.vertical+=e}if(h!=null&&o<h){let e=o-h;o-=e,n.horizontal+=e}else if(c>f){let e=c-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:Ki(n)}},[a,l,D,O,h]),[j,M]=q.useState(g),N=q.useCallback(()=>{let e=w.current;if(!e)return;let t=k(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[k]);q.useEffect(()=>(S&&window.addEventListener(`scroll`,N),()=>window.removeEventListener(`scroll`,N)),[a,S,N]);let P=()=>{N()},F=()=>{M(!1)};q.useEffect(()=>{g&&N()}),q.useImperativeHandle(r,()=>g?{updatePosition:()=>{N()}}:null,[g,N]),q.useEffect(()=>{if(!g)return;let e=Vr(()=>{N()}),t=Ur(qi(a));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[a,g,N]);let I=x,L={slots:_,slotProps:y},[R,z]=v(`transition`,{elementType:i,externalForwardedProps:L,ownerState:T,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),P()},onExited:t=>{e.onExited?.(t),F()}}),additionalProps:{appear:!0,in:g}});x===`auto`&&!R.muiSupportAuto&&(I=void 0);let B=f||(a?Hr(qi(a)).body:void 0),[ee,{slots:V,slotProps:ne,...H}]=v(`root`,{ref:t,elementType:Yi,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:_.backdrop},slotProps:{backdrop:Jr(typeof y.backdrop==`function`?y.backdrop(T):y.backdrop,{invisible:!0})},container:B,open:g},ownerState:T,className:A(E.root,d)}),[re,U]=v(`paper`,{ref:w,className:E.paper,elementType:Xi,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:T});return(0,J.jsx)(ee,{...H,...!te(ee)&&{slots:V,slotProps:ne,disableAutoFocus:p,disableScrollLock:S},children:(0,J.jsx)(R,{...z,timeout:I,children:(0,J.jsx)(re,{...U,children:u})})})});function Qi(e){return U(`MuiMenu`,e)}V(`MuiMenu`,[`root`,`paper`,`list`]);var $i={vertical:`top`,horizontal:`right`},ea={vertical:`top`,horizontal:`left`},ta=e=>{let{classes:t}=e;return C({root:[`root`],paper:[`paper`],list:[`list`]},Qi,t)},na=K(Zi,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),ra=K(Xi,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),ia=K(Hi,{name:`MuiMenu`,slot:`List`})({outline:0}),aa=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:l,PopoverClasses:u,transitionDuration:d=`auto`,variant:f=`selectedMenu`,slots:p={},slotProps:m={},...h}=n,g=z(),_={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:d,variant:f},y=ta(_),b=r&&l,x=b&&!o,S=q.useRef(null),C=(e,t)=>{S.current&&(S.current.adjustStyleForScrollbar(e,{direction:g?`rtl`:`ltr`}),b&&S.current.focusInitialTarget?.())},w=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},T={slots:p,slotProps:m},E=Re({elementType:p.root,externalSlotProps:m.root,ownerState:_,className:[y.root,a]}),[D,O]=v(`paper`,{className:y.paper,elementType:ra,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:_}),[k,A]=v(`list`,{className:y.list,elementType:ia,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:e=>({...e,onKeyDown:t=>{w(t),e.onKeyDown?.(t)}}),ownerState:_}),j=typeof m.transition==`function`?m.transition(_):m.transition;return(0,J.jsx)(na,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:g?`right`:`left`},transformOrigin:g?$i:ea,slots:{root:p.root,paper:D,backdrop:p.backdrop,transition:p.transition},slotProps:{root:E,paper:O,backdrop:typeof m.backdrop==`function`?m.backdrop(_):m.backdrop,transition:{...j,onEntering:(...e)=>{C(...e),j?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:d,ownerState:_,...h,classes:u,children:(0,J.jsx)(k,{actions:S,autoFocus:b,autoFocusItem:x,variant:f,...A,children:i})})});function oa(e){return U(`MuiDivider`,e)}var sa=V(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),ca=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return C({root:[`root`,t&&`absolute`,s,a===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,o===`right`&&a!==`vertical`&&`textAlignRight`,o===`left`&&a!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,a===`vertical`&&`wrapperVertical`]},oa,r)},la=K(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(l(({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:{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&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),ua=K(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(l(({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)`}}]}))),da=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:l=!1,role:u=s===`hr`?void 0:`separator`,textAlign:d=`center`,variant:f=`fullWidth`,...p}=n,m={...n,absolute:r,component:s,flexItem:l,orientation:o,role:u,textAlign:d,variant:f},h=ca(m);return(0,J.jsx)(la,{as:s,className:A(h.root,a),role:u,ref:t,ownerState:m,"aria-orientation":u===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...p,children:i?(0,J.jsx)(ua,{className:h.wrapper,ownerState:m,children:i}):null})});function fa(e){return U(`MuiMenuItem`,e)}var pa=V(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]),ma=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ha=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=C({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},fa,o);return{...o,...s}},ga=K(Ve,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:ma})(l(({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`}},[`&.${pa.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${pa.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${pa.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${pa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sa.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sa.inset}`]:{marginLeft:52},[`& .${ti.root}`]:{marginTop:0,marginBottom:0},[`& .${ti.inset}`]:{paddingLeft:36},[`& .${Xr.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,[`& .${Xr.root} svg`]:{fontSize:`1.25rem`}}}]}))),_a=q.forwardRef(function(e,n){let r=c({props:e,name:`MuiMenuItem`}),{autoFocus:i=!1,component:a=`li`,dense:o=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d=`menuitem`,tabIndex:f,className:p,...m}=r,h=Pi(),g=q.useContext(t),_=q.useMemo(()=>({dense:o||g.dense||!1,disableGutters:l}),[g.dense,o,l]),v=Li(),y=Le(),b=v.suppressInitialFocusVisible,x=v.itemsFocusableWhenDisabled,S=q.useRef(null);Wr(()=>{i&&S.current&&ki(S.current,h)},[i]);let C={...r,dense:_.dense,divider:s,disableGutters:l},w=ha(r),T=di({id:y,ref:n,disabled:r.disabled,focusableWhenDisabled:x,selected:r.selected}),E=ke(S,T.ref),D;return f===void 0?v.variant===`selectedMenu`?D=T.tabIndex:(!r.disabled||x)&&(D=-1):D=f,(0,J.jsx)(t.Provider,{value:_,children:(0,J.jsx)(ga,{ref:E,role:d,tabIndex:D,component:a,internalNativeButton:!1,focusableWhenDisabled:x,suppressFocusVisible:b,focusVisibleClassName:A(w.focusVisible,u),className:A(w.root,p),...m,ownerState:C,classes:w})})});function va(e){return U(`MuiTooltip`,e)}var ya=V(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function ba(e){return Math.round(e*1e5)/1e5}var xa=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return C({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${F(a.split(`-`)[0])}`],arrow:[`arrow`]},va,t)},Sa=K(S,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(l(({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"] .${ya.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${ya.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${ya.arrow}
28`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${ya.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ya.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ya.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ya.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ya.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),Ca=K(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${F(n.placement.split(`-`)[0])}`]]}})(l(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${ya.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${ya.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${ya.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${ya.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:`${ba(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${ya.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${ya.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${ya.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${ya.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${ya.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${ya.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${ya.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${ya.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${ya.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${ya.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),wa=K(`span`,{name:`MuiTooltip`,slot:`Arrow`})(l(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),Ta=!1,Ea=new se,Da={x:0,y:0};function Oa(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var ka=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:a,classes:o,describeChild:s=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:y=0,leaveTouchDelay:b=1500,onClose:x,onOpen:C,open:w,placement:E=`bottom`,slotProps:D={},slots:O={},title:k,...j}=n,M=q.isValidElement(a)?a:(0,J.jsx)(`span`,{children:a}),N=T(),P=z(),[F,I]=q.useState(),[L,R]=q.useState(null),ee=q.useRef(!1),te=d||g,V=Pe(),ne=Pe(),H=Pe(),re=Pe(),[U,ie]=Kr({controlled:w,default:!1,name:`Tooltip`,state:`open`}),ae=U,oe=Le(_),W=q.useRef(),se=me(()=>{W.current!==void 0&&(document.body.style.WebkitUserSelect=W.current,W.current=void 0),re.clear()});q.useEffect(()=>se,[se]);let ce=e=>{Ea.clear(),Ta=!0,ie(!0),C&&!ae&&C(e)},G=me(e=>
vendor: 23,163 bytes, lines 28-64
28{Ea.start(800+y,()=>{Ta=!1}),ie(!1),x&&ae&&x(e),V.start(N.transitions.duration.shortest,()=>{ee.current=!1})}),le=e=>{ee.current&&e.type!==`touchstart`||(F&&F.removeAttribute(`title`),ne.clear(),H.clear(),p||Ta&&m?ne.start(Ta?m:p,()=>{ce(e)}):ce(e))},ue=e=>{ne.clear(),H.start(y,()=>{G(e)})},[,fe]=q.useState(!1),pe=e=>{let t=e?.target??F;if(!t||!de(t)){fe(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,`target`,{value:t}),Object.defineProperty(n,`currentTarget`,{value:t})),ue(n)}},he=e=>{F||I(e.currentTarget),de(e.target)&&(fe(!0),le(e))},ge=e=>{ee.current=!0;let t=M.props;t.onTouchStart&&t.onTouchStart(e)},_e=e=>{ge(e),H.clear(),V.clear(),se(),W.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,re.start(h,()=>{document.body.style.WebkitUserSelect=W.current,le(e)})},ve=e=>{M.props.onTouchEnd&&M.props.onTouchEnd(e),se(),H.start(b,()=>{G(e)})};q.useEffect(()=>{if(!ae)return;function e(e){e.key===`Escape`&&G(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[G,ae]);let ye=ke(B(M),I,t);!k&&k!==0&&(ae=!1);let be=q.useRef(),xe=e=>{let t=M.props;t.onMouseMove&&t.onMouseMove(e),Da={x:e.clientX,y:e.clientY},be.current&&be.current.update()},Se={},Ce=typeof k==`string`;s?(Se.title=!ae&&Ce&&!u?k:null,Se[`aria-describedby`]=ae?oe:null):(Se[`aria-label`]=Ce?k:null,Se[`aria-labelledby`]=ae&&!Ce?oe:null);let we={...Se,...j,...M.props,className:A(j.className,M.props.className),onTouchStart:ge,ref:ye,...g?{onMouseMove:xe}:{}},Te={};f||(we.onTouchStart=_e,we.onTouchEnd=ve),u||(we.onMouseOver=Oa(le,we.onMouseOver),we.onMouseLeave=Oa(ue,we.onMouseLeave),te||(Te.onMouseOver=le,Te.onMouseLeave=ue)),l||(we.onFocus=Oa(he,we.onFocus),we.onBlur=Oa(pe,we.onBlur),te||(Te.onFocus=he,Te.onBlur=pe));let Ee={...n,isRtl:P,arrow:r,disableInteractive:te,placement:E,touch:ee.current},K=typeof D.popper==`function`?D.popper(Ee):D.popper,De=q.useMemo(()=>{let e=[{name:`arrow`,enabled:!!L,options:{element:L,padding:4}}];return K?.popperOptions?.modifiers&&(e=e.concat(K.popperOptions.modifiers)),{...K?.popperOptions,modifiers:e}},[L,K?.popperOptions]),Oe=xa(Ee),Ae={slots:O,slotProps:{arrow:D.arrow,popper:K,tooltip:D.tooltip,transition:D.transition}},[je,Me]=v(`popper`,{elementType:Sa,externalForwardedProps:Ae,ownerState:Ee,className:Oe.popper}),[Ne,Fe]=v(`transition`,{elementType:i,externalForwardedProps:Ae,ownerState:Ee}),[Ie,Re]=v(`tooltip`,{elementType:Ca,className:Oe.tooltip,externalForwardedProps:Ae,ownerState:Ee}),[ze,Be]=v(`arrow`,{elementType:wa,className:Oe.arrow,externalForwardedProps:Ae,ownerState:Ee,ref:R});return(0,J.jsxs)(q.Fragment,{children:[q.cloneElement(M,we),(0,J.jsx)(je,{as:S,placement:E,anchorEl:g?{getBoundingClientRect:()=>({top:Da.y,left:Da.x,right:Da.x,bottom:Da.y,width:0,height:0})}:F,popperRef:be,open:F?ae:!1,id:oe,transition:!0,...Te,...Me,popperOptions:De,children:({TransitionProps:e})=>(0,J.jsx)(Ne,{timeout:N.transitions.duration.shorter,...e,...Fe,children:(0,J.jsxs)(Ie,{...Re,children:[k,r?(0,J.jsx)(ze,{...Be}):null]})})})]})}),Aa=G((0,J.jsx)(`path`,{d:`M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1`}),`MenuRounded`),ja=G([(0,J.jsx)(`path`,{d:`M5 5h6c.55 0 1-.45 1-1s-.45-1-1-1H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h6c.55 0 1-.45 1-1s-.45-1-1-1H5z`},`0`),(0,J.jsx)(`path`,{d:`m20.65 11.65-2.79-2.79c-.32-.32-.86-.1-.86.35V11h-7c-.55 0-1 .45-1 1s.45 1 1 1h7v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.19.2-.51.01-.7`},`1`)],`LogoutRounded`),Ma=G((0,J.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`}),`Person`);function Na(e){return U(`MuiAvatar`,e)}V(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]);var Pa=e=>{let{classes:t,variant:n,colorDefault:r}=e;return C({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},Na,t)},Fa=K(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(l(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:`50%`,overflow:`hidden`,userSelect:`none`,variants:[{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`square`},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles(`dark`,{backgroundColor:e.palette.grey[600]})}}}]}))),Ia=K(`img`,{name:`MuiAvatar`,slot:`Img`})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),La=K(Ma,{name:`MuiAvatar`,slot:`Fallback`})({width:`75%`,height:`75%`});function Ra(e,t,n,r){let[i,a]=q.useState(!1);return q.useEffect(()=>{if(!e&&!t)return;a(!1);let i=!0,o=new Image;return o.onload=()=>{i&&a(`loaded`)},o.onerror=()=>{i&&a(`error`)},o.crossOrigin=n,o.referrerPolicy=r,o.src=e,t&&(o.srcset=t),()=>{i=!1}},[n,r,e,t]),i}var za=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiAvatar`}),{alt:r,children:i,className:a,component:o=`div`,slots:s={},slotProps:l={},sizes:u,src:d,srcSet:f,variant:p=`circular`,...m}=n,h=null,g={...n,component:o,variant:p},{crossOrigin:_,referrerPolicy:y}=(typeof l.img==`function`?l.img(g):l.img)??{},b=Ra(d,f,_,y),x=d||f,S=x&&b!==`error`;g.colorDefault=!S,delete g.ownerState;let C=Pa(g),w={slots:s,slotProps:l},[T,E]=v(`root`,{ref:t,className:A(C.root,a),elementType:Fa,externalForwardedProps:{...w,component:o,...m},ownerState:g}),[D,O]=v(`img`,{className:C.img,elementType:Ia,externalForwardedProps:w,additionalProps:{alt:r,src:d,srcSet:f,sizes:u},ownerState:g}),[k,j]=v(`fallback`,{className:C.fallback,elementType:La,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g});return h=S?(0,J.jsx)(D,{...O}):i||i===0?i:x&&r?r[0]:(0,J.jsx)(k,{...j}),(0,J.jsx)(T,{...E,children:h})}),Ba={visibility:`hidden`};function Va(e,t,n){let r=n&&n.getBoundingClientRect(),i=Ur(t),a=t.style.transform,o=t.style.transition;t.style.transition=``,t.style.transform=``;let s=t.getBoundingClientRect(),c=i.getComputedStyle(t).getPropertyValue(`transform`);t.style.transform=a,t.style.transition=o;let l=0,u=0;if(c&&c!==`none`&&typeof c==`string`){let e=c.split(`(`)[1].split(`)`)[0].split(`,`);l=parseInt(e[4],10),u=parseInt(e[5],10)}return e===`left`?r?`translateX(${r.right+l-s.left}px)`:`translateX(${i.innerWidth+l-s.left}px)`:e===`right`?r?`translateX(-${s.right-r.left-l}px)`:`translateX(-${s.left+s.width-l}px)`:e===`up`?r?`translateY(${r.bottom+u-s.top}px)`:`translateY(${i.innerHeight+u-s.top}px)`:r?`translateY(-${s.top-r.top+s.height-u}px)`:`translateY(-${s.top+s.height-u}px)`}function Ha(e){return typeof e==`function`?e():e}function Ua(e,t,n){let r=Va(e,t,Ha(n));r&&(t.style.transform=r)}var Wa=q.forwardRef(function(e,t){let n=T(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,container:c,direction:l=`down`,easing:u=r,in:d,onEnter:f,onEntered:p,onEntering:h,onExit:g,onExited:_,onExiting:v,style:y,timeout:b=i,...x}=e,S=q.useRef(null),C=ke(B(s),S,t),w=m(S,(e,t)=>{Ua(l,e,c),I(e),f&&f(e,t)}),E=m(S,(e,t)=>{let r=R({timeout:b,style:y,easing:u},{mode:`enter`});e.style.transition=n.transitions.create(`transform`,r),e.style.transform=`none`,h&&h(e,t)}),D=m(S,p),O=m(S,v),k=m(S,e=>{let t=R({timeout:b,style:y,easing:u},{mode:`exit`});e.style.transition=n.transitions.create(`transform`,t),Ua(l,e,c),g&&g(e)}),A=m(S,e=>{e.style.transition=``,_&&_(e)}),j=e=>{a&&a(S.current,e)},M=q.useCallback(()=>{S.current&&Ua(l,S.current,c)},[l,c]);return q.useEffect(()=>{if(d||l===`down`||l===`right`)return;let e=Vr(()=>{S.current&&Ua(l,S.current,c)}),t=Ur(S.current);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[l,d,c]),q.useEffect(()=>{d||M()},[d,M]),(0,J.jsx)(We,{nodeRef:S,onEnter:w,onEntered:D,onEntering:E,onExit:k,onExited:A,onExiting:O,addEndListener:j,appear:o,in:d,timeout:b,...x,children:(e,{ownerState:t,...n})=>{let r;return r=e===`exited`&&!d?y||s.props.style?{visibility:`hidden`,...y,...s.props.style}:Ba:y&&s.props.style?{...y,...s.props.style}:y||s.props.style,q.cloneElement(s,{ref:C,style:r,...n})}})});function Ga(e){return U(`MuiDrawer`,e)}var Ka=V(`MuiDrawer`,[`root`,`docked`,`paper`,`anchorLeft`,`anchorRight`,`anchorTop`,`anchorBottom`,`modal`]),qa=(e,t)=>{let{ownerState:n}=e;return[t.root,(n.variant===`permanent`||n.variant===`persistent`)&&t.docked,n.variant===`temporary`&&t.modal]},Ja=e=>{let{classes:t,anchor:n,variant:r}=e;return C({root:[`root`,`anchor${F(n)}`],docked:[(r===`permanent`||r===`persistent`)&&`docked`],modal:[`modal`],paper:[`paper`]},Ga,t)},Ya=K(j,{name:`MuiDrawer`,slot:`Root`,overridesResolver:qa})(l(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Xa=K(`div`,{shouldForwardProp:r,name:`MuiDrawer`,slot:`Docked`,skipVariantsResolver:!1,overridesResolver:qa})({flex:`0 0 auto`}),Za=K(s,{name:`MuiDrawer`,slot:`Paper`})(l(({theme:e})=>({overflowY:`auto`,display:`flex`,flexDirection:`column`,height:`100%`,flex:`1 0 auto`,zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:`touch`,position:`fixed`,top:0,outline:0,variants:[{props:{anchor:`left`},style:{left:0}},{props:{anchor:`top`},style:{top:0,left:0,right:0,height:`auto`,maxHeight:`100%`}},{props:{anchor:`right`},style:{right:0}},{props:{anchor:`bottom`},style:{top:`auto`,left:0,bottom:0,right:0,height:`auto`,maxHeight:`100%`}},{props:({ownerState:e})=>e.anchor===`left`&&e.variant!==`temporary`,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`top`&&e.variant!==`temporary`,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`right`&&e.variant!==`temporary`,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`bottom`&&e.variant!==`temporary`,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Qa={left:`right`,right:`left`,top:`down`,bottom:`up`};function $a(e){return[`left`,`right`].includes(e)}function eo({direction:e},t){return e===`rtl`&&$a(t)?Qa[t]:t}var to=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiDrawer`}),r=T(),i=z(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:o=`left`,children:s,className:l,elevation:u=16,hideBackdrop:d=!1,ModalProps:f={},onClose:p,open:m=!1,transitionDuration:h=a,variant:g=`temporary`,slots:_={},slotProps:y={},...b}=n,x=q.useRef(!1);q.useEffect(()=>{x.current=!0},[]);let S=eo({direction:i?`rtl`:`ltr`},o),C=o,w={...n,anchor:C,elevation:u,open:m,variant:g,...b},E=Ja(w),D={slots:_,slotProps:{...y,backdrop:Jr(y.backdrop,{transitionDuration:h})}},[O,k]=v(`root`,{ref:t,elementType:Ya,className:A(E.root,E.modal,l),shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{...D,...b,...f},additionalProps:{open:m,onClose:p,hideBackdrop:d,slots:{backdrop:D.slots.backdrop},slotProps:{backdrop:D.slotProps.backdrop}}}),[j,M]=v(`paper`,{elementType:Za,shouldForwardComponentProp:!0,className:E.paper,ownerState:w,externalForwardedProps:D,additionalProps:{elevation:g===`temporary`?u:0,square:!0,...g===`temporary`&&{role:`dialog`,"aria-modal":`true`}}}),[N,P]=v(`docked`,{elementType:Xa,ref:t,className:A(E.root,E.docked,l),ownerState:w,externalForwardedProps:D,additionalProps:b}),[F,I]=v(`transition`,{elementType:Wa,ownerState:w,externalForwardedProps:D,additionalProps:{in:m,direction:Qa[S],timeout:h,appear:x.current}}),L=(0,J.jsx)(j,{...M,children:s});if(g===`permanent`)return(0,J.jsx)(N,{...P,children:L});let R=(0,J.jsx)(F,{...I,children:L});return g===`persistent`?(0,J.jsx)(N,{...P,children:R}):(0,J.jsx)(O,{...k,children:R})});function no(e){return U(`MuiSkeleton`,e)}V(`MuiSkeleton`,[`root`,`text`,`rectangular`,`rounded`,`circular`,`pulse`,`wave`,`withChildren`,`fitContent`,`heightAuto`]);var ro=e=>{let{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:o}=e;return C({root:[`root`,n,r,i&&`withChildren`,i&&!a&&`fitContent`,i&&!o&&`heightAuto`]},no,t)},io=be`
29  0% {
30    opacity: 1;
31  }
32
33  50% {
34    opacity: 0.4;
35  }
36
37  100% {
38    opacity: 1;
39  }
40`,ao=be`
41  0% {
42    transform: translateX(-100%);
43  }
44
45  50% {
46    /* +0.5s of delay between each loop */
47    transform: translateX(100%);
48  }
49
50  100% {
51    transform: translateX(100%);
52  }
53`,oo=typeof io==`string`?null:Ce`
54        animation: ${io} 2s ease-in-out 0.5s infinite;
55      `,so=typeof ao==`string`?null:Ce`
56        &::after {
57          animation: ${ao} 2s linear 0.5s infinite;
58        }
59      `,co=K(`span`,{name:`MuiSkeleton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(l(({theme:e})=>{let t=or(e.shape.borderRadius)||`px`,n=sr(e.shape.borderRadius);return{display:`block`,backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode===`light`?.11:.13),height:`1.2em`,variants:[{props:{variant:`text`},style:{marginTop:0,marginBottom:0,height:`auto`,transformOrigin:`0 55%`,transform:`scale(1, 0.60)`,borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:`"\\00a0"`}}},{props:{variant:`circular`},style:{borderRadius:`50%`}},{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:`hidden`}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:`fit-content`}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:`auto`}},{props:{animation:`pulse`},style:oo||{animation:`${io} 2s ease-in-out 0.5s infinite`}},{props:{animation:`wave`},style:{position:`relative`,overflow:`hidden`,WebkitMaskImage:`-webkit-radial-gradient(white, black)`,"&::after":{background:`linear-gradient(
60                90deg,
61                transparent,
62                ${(e.vars||e).palette.action.hover},
63                transparent
64              )`,content:`""`,position:`absolute`,transform:`translateX(-100%)`,bottom:0,left:0,right:0,top:0}}},{props:{animation:`wave`},style:so||{"&::after":{animation:`${ao} 2s linear 0.5s infinite`}}}]}})),lo=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiSkeleton`}),{animation:r=`pulse`,className:i,component:a=`span`,height:o,style:s,variant:l=`text`,width:u,...d}=n,f={...n,animation:r,component:a,variant:l,hasChildren:!!d.children};return(0,J.jsx)(co,{as:a,ref:t,className:A(ro(f).root,i),ownerState:f,...d,style:{width:u,height:o,...s}})}),uo=G((0,J.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1`}),`AnalyticsRounded`),fo=G((0,J.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-5c0-.55.45-1 1-1s1 .45 1 1v5c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1`}),`AssessmentRounded`),po=G((0,J.jsx)(`path`,{d:`M4 13h6c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1m0 8h6c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1m10 0h6c.55 0 1-.45 1-1v-8c0-.55-.45-1-1-1h-6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1M13 4v4c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1h-6c-.55 0-1 .45-1 1`}),`DashboardRounded`),mo=G((0,J.jsx)(`path`,{d:`M5 11h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2m0 10h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2m8-16v4c0 1.1.9 2 2 2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2m2 16h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2`}),`GridViewRounded`),ho=G((0,J.jsx)(`path`,{d:`M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V18c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-1.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05.02.01.03.03.04.04 1.14.83 1.93 1.94 1.93 3.41V18c0 .35-.07.69-.18 1H22c.55 0 1-.45 1-1v-1.5c0-2.33-4.67-3.5-7-3.5`}),`PeopleRounded`),go=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_o=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=C({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},D,n);return{...n,...c}},vo=K(Ve,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:go})(l(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${u.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${u.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${u.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),yo=q.forwardRef(function(e,n){let r=c({props:e,name:`MuiListItemButton`}),{alignItems:i=`center`,autoFocus:a=!1,component:o=`div`,children:s,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:p=!1,className:m,...h}=r,g=q.useContext(t),_=q.useMemo(()=>({dense:l||g.dense||!1,alignItems:i,disableGutters:u}),[i,g.dense,l,u]),v=q.useRef(null);Wr(()=>{a&&v.current&&v.current.focus()},[a]);let y={...r,alignItems:i,dense:_.dense,disableGutters:u,divider:d,selected:p},b=_o(y),x=ke(v,n);return(0,J.jsx)(t.Provider,{value:_,children:(0,J.jsx)(vo,{ref:x,href:h.href||h.to,component:(h.href||h.to)&&o===`div`?`button`:o,internalNativeButton:!1,focusVisibleClassName:A(b.focusVisible,f),ownerState:y,className:A(b.root,m),...h,classes:b,children:s})})}),bo=G((0,J.jsx)(`path`,{d:`M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01`}),`NavigateNextRounded`);function xo(e){return U(`MuiLink`,e)}var So=V(`MuiLink`,[`root`,`underlineNone`,`underlineHover`,`underlineAlways`,`button`,`focusVisible`]),Co=({theme:e,ownerState:t})=>{let n=t.color;if(`colorSpace`in e&&e.colorSpace){let r=Ue(e,`palette.${n}.main`)||Ue(e,`palette.${n}`)||t.color;return e.alpha(r,.4)}let r=Ue(e,`palette.${n}.main`,!1)||Ue(e,`palette.${n}`,!1)||t.color,i=Ue(e,`palette.${n}.mainChannel`)||Ue(e,`palette.${n}Channel`);return`vars`in e&&i?`rgba(${i} / 0.4)`:h(r,.4)},wo={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},To=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return C({root:[`root`,`underline${F(i)}`,n===`button`&&`button`,r&&`focusVisible`]},xo,t)},Eo=K(re,{name:`MuiLink`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${F(n.underline)}`],n.component===`button`&&t.button]}})(l(({theme:e})=>({variants:[{props:{underline:`none`},style:{textDecoration:`none`}},{props:{underline:`hover`},style:{textDecoration:`none`,"&:hover":{textDecoration:`underline`}}},{props:{underline:`always`},style:{textDecoration:`underline`,"&:hover":{textDecorationColor:`inherit`}}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color!==`inherit`,style:{textDecorationColor:`var(--Link-underlineColor)`}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color===`inherit`,style:e.colorSpace?{textDecorationColor:e.alpha(`currentColor`,.4)}:null},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{underline:`always`,color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:`always`,color:`textPrimary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:`always`,color:`textSecondary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:`always`,color:`textDisabled`},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:`button`},style:{position:`relative`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${So.focusVisible}`]:{outline:`auto`}}}]}))),Do=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiLink`}),r=T(),{className:i,color:a=`primary`,component:o=`a`,onBlur:s,onFocus:l,TypographyClasses:u,underline:d=`always`,variant:f=`inherit`,sx:p,...m}=n,[h,g]=q.useState(!1),_=e=>{de(e.target)||g(!1),s&&s(e)},v=e=>{de(e.target)&&g(!0),l&&l(e)},y={...n,color:a,component:o,focusVisible:h,underline:d,variant:f};return(0,J.jsx)(Eo,{color:a,className:A(To(y).root,i),classes:u,component:o,onBlur:_,onFocus:v,ref:t,ownerState:y,variant:f,...m,sx:[...wo[a]===void 0?[{color:a}]:[],...Array.isArray(p)?p:[p]],style:{...m.style,...d===`always`&&a!==`inherit`&&!wo[a]&&{"--Link-underlineColor":Co({theme:r,ownerState:y})}}})}),Oo=G((0,J.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`}
64),`MoreHoriz`),ko=K(Ve,{name:`MuiBreadcrumbCollapsed`})(l(({theme:e})=>({display:`flex`,marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode===`light`?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode===`light`?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode===`light`?{backgroundColor:L(e.palette.grey[200],.12)}:{backgroundColor:L(e.palette.grey[600],.12)}}}))),Ao=K(Oo)({width:24,height:16});function jo(e){let{slots:t={},slotProps:n={},...r}=e,{nativeButton:i,...a}=r,o=e;return(0,J.jsx)(`li`,{children:(0,J.jsx)(ko,{focusRipple:!0,...a,ownerState:o,children:(0,J.jsx)(Ao,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function Mo(e){return U(`MuiBreadcrumbs`,e)}var No=V(`MuiBreadcrumbs`,[`root`,`ol`,`li`,`separator`]),Po=e=>{let{classes:t}=e;return C({root:[`root`],li:[`li`],ol:[`ol`],separator:[`separator`]},Mo,t)},Fo=K(re,{name:`MuiBreadcrumbs`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${No.li}`]:t.li},t.root]})({}),Io=K(`ol`,{name:`MuiBreadcrumbs`,slot:`Ol`})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`}),Lo=K(`li`,{name:`MuiBreadcrumbs`,slot:`Separator`})({display:`flex`,userSelect:`none`,marginLeft:8,marginRight:8});function Ro(e,t,n,r){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,(0,J.jsx)(Lo,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)):i.push(a),i),[])}var zo=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiBreadcrumbs`}),{children:r,className:i,component:a=`nav`,slots:o={},slotProps:s={},expandText:l=`Show path`,itemsAfterCollapse:u=1,itemsBeforeCollapse:d=1,maxItems:f=8,separator:p=`/`,...m}=n,[h,g]=q.useState(!1),_={...n,component:a,expanded:h,expandText:l,itemsAfterCollapse:u,itemsBeforeCollapse:d,maxItems:f,separator:p},v=Po(_),y=Re({elementType:o.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:_}),b=q.useRef(null),x=e=>{let t=()=>{g(!0);let e=b.current.querySelector(`a[href],button,[tabindex]`);e&&e.focus()};return d+u>=e.length?e:[...e.slice(0,d),(0,J.jsx)(jo,{"aria-label":l,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:t},`ellipsis`),...e.slice(e.length-u,e.length)]},S=q.Children.toArray(r).filter(e=>q.isValidElement(e)).map((e,t)=>(0,J.jsx)(`li`,{className:v.li,children:e},`child-${t}`));return(0,J.jsx)(Fo,{ref:t,component:a,color:`textSecondary`,className:A(v.root,i),ownerState:_,...m,children:(0,J.jsx)(Io,{className:v.ol,ref:b,ownerState:_,children:Ro(h||f&&S.length<=f?S:x(S),v.separator,p,_)})})}),Bo=G((0,J.jsx)(`path`,{d:`M12 2c-4.2 0-8 3.22-8 8.2 0 3.18 2.45 6.92 7.34 11.23.38.33.95.33 1.33 0C17.55 17.12 20 13.38 20 10.2 20 5.22 16.2 2 12 2m0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2`}),`PlaceRounded`),Vo=G((0,J.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39`}),`PublicRounded`),Ho=G((0,J.jsx)(`path`,{d:`M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1`}),`CalendarTodayRounded`);function Uo(e){return U(`MuiTab`,e)}var Wo=V(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`icon`]),Go=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return C({root:[`root`,a&&o&&`labelIcon`,`textColor${F(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`icon`]},Uo,t)},Ko=K(Ve,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${F(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Wo.icon}`]:t.icon}]}})(l(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition===`top`||e.iconPosition===`bottom`),style:{flexDirection:`column`}},{props:({ownerState:e})=>e.label&&e.iconPosition!==`top`&&e.iconPosition!==`bottom`,style:{flexDirection:`row`}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${Wo.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${Wo.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${Wo.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${Wo.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${Wo.selected}`]:{opacity:1},[`&.${Wo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${Wo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${Wo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),qo=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:l=`top`,indicator:u,label:d,onChange:f,onClick:p,onFocus:m,selected:h,selectionFollowsFocus:g,textColor:_=`inherit`,value:v,wrapped:y=!1,...b}=n,x=oi(),S=di({id:v,ref:t,disabled:i,selected:h}),C=x.getItemMap().size===0&&h?0:S.tabIndex,w={...n,disabled:i,disableFocusRipple:a,selected:h,icon:!!s,iconPosition:l,label:!!d,fullWidth:o,textColor:_,wrapped:y},T=Go(w),E=s&&d&&q.isValidElement(s)?q.cloneElement(s,{className:A(T.icon,s.props.className)}):s;return(0,J.jsxs)(Ko,{internalNativeButton:!0,focusRipple:!a,className:A(T.root,r),ref:S.ref,role:`tab`,"aria-selected":h,disabled:i,onClick:e=>{!h&&f&&f(e,v),p&&p(e)},onFocus:e=>{g&&!h&&f&&f(e,v),m&&m(e)},tabIndex:C,ownerState:w,...b,children:[l===`top`||l===`start`?(0,J.jsxs)(q.Fragment,{children:[E,d]}):(0,J.jsxs)(q.Fragment,{children:[d,E]}),u]})});function Jo(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Yo(e,t,n,r={},i=()=>{}){let{ease:a=Jo,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);if(t[e]=a(u)*(n-c)+c,u>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var Xo={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`};function Zo(e){let{onChange:t,...n}=e,r=q.useRef(),i=q.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Wr(()=>{let e=Vr(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=Ur(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),q.useEffect(()=>{a(),t(r.current)},[t]),(0,J.jsx)(`div`,{style:Xo,...n,ref:i})}var Qo=G((0,J.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),$o=G((0,J.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function es(e){return U(`MuiTabScrollButton`,e)}var ts=V(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),ns=e=>{let{classes:t,orientation:n,disabled:r}=e;
vendor: 39,675 bytes, lines 64-66
64return C({root:[`root`,n,r&&`disabled`]},es,t)},rs=K(Ve,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${ts.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),is=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:l,...u}=n,{nativeButton:d,...f}=u,p=z(),m={isRtl:p,...n},h=ns(m),g=i.StartScrollButtonIcon??Qo,_=i.EndScrollButtonIcon??$o,v=Re({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:m}),y=Re({elementType:_,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:m});return(0,J.jsx)(rs,{component:`div`,className:A(h.root,r),ref:t,role:null,ownerState:m,tabIndex:null,...f,style:{...f.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:o===`left`?(0,J.jsx)(g,{...v}):(0,J.jsx)(_,{...y})})});function as(e){return U(`MuiTabs`,e)}var os=V(`MuiTabs`,[`root`,`vertical`,`list`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),ss=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return C({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},as,c)},cs=K(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${os.scrollButtons}`]:t.scrollButtons},{[`& .${os.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(l(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${os.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),ls=K(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),us=K(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),ds=K(`span`,{name:`MuiTabs`,slot:`Indicator`})(l(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,transition:e.transitions.create(),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),fs=K(Zo)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),ps={},ms=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTabs`}),r=T(),i=z(),{"aria-label":a,"aria-labelledby":o,action:s,centered:l=!1,children:u,className:d,component:f=`div`,allowScrollButtonsMobile:p=!1,indicatorColor:m=`primary`,onChange:h,orientation:g=`horizontal`,scrollButtons:_=`auto`,selectionFollowsFocus:y,slots:b={},slotProps:x={},textColor:S=`primary`,value:C,variant:w=`standard`,visibleScrollbar:E=!1,...D}=n,O=w===`scrollable`,k=g===`vertical`,j=k?`scrollTop`:`scrollLeft`,M=k?`top`:`left`,N=k?`bottom`:`right`,P=k?`clientHeight`:`clientWidth`,F=k?`height`:`width`,I={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:g,vertical:k,scrollButtons:_,textColor:S,variant:w,visibleScrollbar:E,fixed:!O,hideScrollbar:O&&!E,scrollableX:O&&!k,scrollableY:O&&k,centered:l&&!O,scrollButtonsHideMobile:!p},L=ss(I),R=Re({elementType:b.startScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:I}),B=Re({elementType:b.endScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:I}),[ee,te]=q.useState(!1),[V,ne]=q.useState(ps),[H,re]=q.useState(!1),[U,ie]=q.useState(!1),[oe,W]=q.useState(!1),se=C===!1?null:C,[ce,G]=q.useState(!1),[le,ue]=q.useState({overflow:`hidden`,scrollbarWidth:0}),de=new Map,fe=q.useRef(null),pe=q.useRef(null),he={slots:b,slotProps:x},ge=()=>{let e=fe.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&C!==!1){let e=pe.current.children;if(e.length>0){let t=e[de.get(C)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},_e=me(()=>{let{tabsMeta:e,tabMeta:t}=ge(),n=0,r;k?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[F]:t?t[F]:0};if(typeof V[r]!=`number`||typeof V[F]!=`number`)ne(a);else{let e=Math.abs(V[r]-a[r]),t=Math.abs(V[F]-a[F]);(e>=1||t>=1)&&ne(a)}}),ve=(e,{animation:t=!0}={})=>{t?Yo(j,fe.current,e,{duration:r.transitions.duration.standard}):fe.current[j]=e},ye=e=>{let t=fe.current[j];k?t+=e:t+=e*(i?-1:1),ve(t)},be=()=>{let e=fe.current[P],t=0,n=Array.from(pe.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[P]>e){r===0&&(t=e);break}t+=i[P]}return t},xe=()=>{ye(-1*be())},Se=()=>{ye(be())},[Ce,{onChange:we,...Te}]=v(`scrollbar`,{className:A(L.scrollableX,L.hideScrollbar),elementType:fs,shouldForwardComponentProp:!0,externalForwardedProps:he,ownerState:I}),Ee=q.useCallback(e=>{we?.(e),ue({overflow:null,scrollbarWidth:e})},[we]),[K,De]=v(`scrollButtons`,{className:L.scrollButtons,elementType:is,externalForwardedProps:he,ownerState:I,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:b.startScrollButtonIcon,EndScrollButtonIcon:b.endScrollButtonIcon},slotProps:{startScrollButtonIcon:R,endScrollButtonIcon:B}}}),Oe=()=>{let e={};e.scrollbarSizeListener=O?(0,J.jsx)(Ce,{...Te,onChange:Ee}):null;let t=O&&(_===`auto`&&(H||U)||_===!0);return e.scrollButtonStart=t?(0,J.jsx)(K,{direction:i?`right`:`left`,onClick:xe,disabled:!H,...De}):null,e.scrollButtonEnd=t?(0,J.jsx)(K,{direction:i?`left`:`right`,onClick:Se,disabled:!U,...De}):null,e},Ae=me(e=>{let{tabsMeta:t,tabMeta:n}=ge();!n||!t||(n[M]<t[M]?ve(t[j]+(n[M]-t[M]),{animation:e}):n[N]>t[N]&&ve(t[j]+(n[N]-t[N]),{animation:e}))}),je=me(()=>{O&&_!==!1&&W(!oe)});q.useEffect(()=>{let e=Vr(()=>{fe.current&&_e()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),je()},r=Ur(fe.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(pe.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(pe.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[_e,je]),q.useEffect(()=>{let e=Array.from(pe.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&O&&_!==!1){let n=e[0],r=e[t-1],i={root:fe.current,threshold:.99},a=new IntersectionObserver(e=>{re(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{ie(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[O,_,oe,u?.length]),q.useEffect(()=>{te(!0)},[]),q.useEffect(()=>{_e()}),q.useEffect(()=>{Ae(ps!==V)},[Ae,V]),q.useImperativeHandle(s,()=>({updateIndicator:_e,updateScrollButtons:je}),[_e,je]);let[Me,Ne]=v(`indicator`,{className:L.indicator,elementType:ds,externalForwardedProps:he,ownerState:I,additionalProps:{style:V}}),Pe=(0,J.jsx)(Me,{...Ne}),Fe=ui({activeItemId:ce?void 0:se,orientation:g,isRtl:i}),Ie=Fe.getContainerProps(),Le=q.Children.toArray(u).filter(q.isValidElement).map((e,t)=>{let n=e.props.value===void 0?t:e.props.value;return de.set(n,t),{child:e,index:t,childValue:n}}).map(({child:e,childValue:t})=>{let n=t===C;return q.cloneElement(e,{fullWidth:w===`fullWidth`,indicator:n&&!ee&&Pe,selected:n,selectionFollowsFocus:y,onChange:h,textColor:S,value:t})}),ze=Oe(),[Be,Ve]=v(`root`,{ref:t,className:A(L.root,d),elementType:cs,externalForwardedProps:{...he,...D,component:f},ownerState:I}),[He,Ue]=v(`scroller`,{ref:fe,className:L.scroller,elementType:ls,externalForwardedProps:he,ownerState:I,additionalProps:{style:{overflow:le.overflow,[k?`margin${i?`Left`:`Right`}`:`marginBottom`]:E?void 0:-le.scrollbarWidth}}}),We=ke(Ie.ref,pe),Ge=e=>{let t=pe.current;ae(Hr(t))?.getAttribute(`role`)===`tab`&&Ie.onKeyDown(e)},[Ke,qe]=v(`list`,{ref:We,className:L.list,elementType:us,externalForwardedProps:he,ownerState:I,getSlotProps:e=>({...e,onBlur:t=>{t.currentTarget.contains(t.relatedTarget)||G(!1),e.onBlur?.(t)},onKeyDown:t=>{Ge(t),e.onKeyDown?.(t)},onFocus:t=>{G(!0),Ie.onFocus(t),e.onFocus?.(t)}})});return(0,J.jsxs)(Be,{...Ve,children:[ze.scrollButtonStart,ze.scrollbarSizeListener,(0,J.jsxs)(He,{...Ue,children:[(0,J.jsx)(Ke,{"aria-label":a,"aria-labelledby":o,"aria-orientation":g===`vertical`?`vertical`:null,role:`tablist`,...qe,children:(0,J.jsx)(ai.Provider,{value:Fe,children:Le})}),ee&&Pe]}),ze.scrollButtonEnd]})});function hs(e){return U(`MuiNativeSelect`,e)}var gs=V(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),_s=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return C({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${F(n)}`,a&&`iconOpen`,r&&`disabled`]},hs,t)},vs=K(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${gs.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:`filled`},style:{"&&&":{paddingRight:32}}},{props:{variant:`outlined`},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ys=K(vs,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:r,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${gs.multiple}`]:t.multiple}]}})({}),bs=K(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${gs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),xs=K(bs,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${F(n.variant)}`],n.open&&t.iconOpen]}})({}),Ss=q.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=_s(l);return(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(ys,{ownerState:l,className:A(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,J.jsx)(xs,{as:a,ownerState:l,className:u.icon})]})});function Cs(e){return U(`MuiSelect`,e)}var ws=V(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),Ts,Es=K(vs,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${ws.select}`]:t.select},{[`&.${ws.select}`]:t[n.variant]},{[`&.${ws.error}`]:t.error},{[`&.${ws.multiple}`]:t.multiple}]}})({[`&.${ws.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),Ds=K(bs,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),Os=K(`input`,{shouldForwardProp:e=>Ee(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),ks=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return C({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},Cs,t)},As=q.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:C,onMouseDown:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:k,SelectDisplayProps:j={},tabIndex:N,type:F,value:I,variant:L=`standard`,...R}=e,[z,B]=Kr({controlled:I,default:l,name:`Select`}),[ee,te]=Kr({controlled:E,default:c,name:`Select`}),V=q.useRef(null),ne=q.useRef(null),[H,re]=q.useState(null),{current:U}=q.useRef(E!=null),[ie,ae]=q.useState(),[oe,W]=q.useState(null),se=ke(t,m),ce=q.useCallback(e=>{ne.current=e,e&&re(e)},[]),G=H?.parentNode;q.useImperativeHandle(se,()=>({focus:()=>{ne.current.focus()},node:V.current,value:z}),[z]);let ue=H!==null&&ee;q.useEffect(()=>{if(!ue||!G||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{ae(G.clientWidth)});return e.observe(G),()=>{e.disconnect()}},[ue,G,a]),q.useEffect(()=>{c&&ee&&H&&!U&&(ae(a?null:G.clientWidth),ne.current.focus())},[H,a]),q.useEffect(()=>{i&&ne.current.focus()},[i]),q.useEffect(()=>{if(!h)return;let e=Hr(ne.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&ne.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let de=(e,t)=>{e?(W(Ai(t)),T&&T(t)):(W(null),x&&x(t)),U||(ae(a?null:G.clientWidth),te(e))},fe=e=>{w?.(e),e.button===0&&(e.preventDefault(),ne.current.focus(),de(!0,e))},pe=e=>{de(!1,e)},me=q.Children.toArray(o),he=e=>{let t=me.find(t=>t.props.value===e.target.value);t!==void 0&&(B(t.props.value),b&&b(e,t))},ge=e=>t=>{let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(z)?z.slice():[];let t=z.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),z!==n&&(B(n),b)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,`target`,{writable:!0,value:{value:n,name:v}}),b(i,e)}_||de(!1,t)}},_e=e=>{D||([` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),de(!0,e)),C?.(e))},ve=e=>{!ue&&y&&(Object.defineProperty(e,`target`,{writable:!0,value:{value:z,name:v}}),y(e))};delete R[`aria-invalid`];let ye,be,xe=[],Se=!1;(le({value:z})||d)&&(O?ye=O(z):Se=!0);let Ce=me.map(e=>{if(!q.isValidElement(e))return null;let t;if(_){if(!Array.isArray(z))throw Error(P(2));t=z.some(t=>Mi(t,e.props.value)),t&&Se&&xe.push(e.props.children)}else t=Mi(z,e.props.value),t&&Se&&(be=e.props.children);return q.cloneElement(e,{"aria-selected":t?`true`:`false`,onClick:ge(e),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Se&&(ye=_?xe.length===0?null:xe.reduce((e,t,n)=>(e.push(t),n<xe.length-1&&e.push(`, `),e),[]):be);let we=ie;!a&&U&&H&&(we=G.clientWidth);let Te;Te=N===void 0?u?null:0:N;let Ee=j.id||(v?`mui-component-select-${v}`:void 0),K={...e,variant:L,value:z,open:ue,error:f},De=ks(K),Oe=typeof g.slotProps?.paper==`function`?g.slotProps.paper(K):g.slotProps?.paper,Ae=typeof g.slotProps?.list==`function`?g.slotProps.list(K):g.slotProps?.list,je=M(),Me=M();return(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(Es,{as:`div`,ref:ce,tabIndex:Te,role:`combobox`,"aria-controls":ue?je:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":ue?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":r,"aria-labelledby":[h,Ee].filter(Boolean).join(` `)||void 0,"aria-describedby":n,"aria-required":k?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:_e,onMouseDown:u||D?null:fe,onBlur:ve,onFocus:S,...j,ownerState:K,className:A(j.className,De.select,s),id:Ee,children:ji(ye)?Ts||=(0,J.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):ye}),(0,J.jsx)(Os,{"aria-invalid":f,value:Array.isArray(z)?z.join(`,`):z,name:v,ref:V,"aria-hidden":!0,onChange:he,tabIndex:-1,disabled:u,className:De.nativeInput,autoFocus:i,required:k,...R,id:R.id??Me,ownerState:K}),(0,J.jsx)(Ds,{as:p,className:De.icon,ownerState:K}),(0,J.jsx)(Fi,{value:oe,children:(0,J.jsx)(aa,{id:`menu-${v||``}`,anchorEl:G,open:ue,onClose:pe,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:je,...Ae},paper:{...Oe,style:{minWidth:we,...Oe?.style}}},children:Ce})})]})}),js=G((0,J.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`);function Ms(e){return parseInt(e,10)||0}var Ns={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function Ps(e){for(let t in e)return!1;return!0}function Fs(e){return Ps(e)||e.outerHeightStyle===0&&!e.overflowing}var Is=q.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=q.useRef(o!=null),l=q.useRef(null),u=Je(t,l),d=q.useRef(null),f=q.useRef(null),m=q.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=we(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
65`&&(n.value+=` `);let o=a.boxSizing,s=Ms(a.paddingBottom)+Ms(a.paddingTop),c=Ms(a.borderBottomWidth)+Ms(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),h=ve(()=>{let e=l.current,t=m();if(!e||!t||Fs(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),g=q.useCallback(()=>{let e=l.current,t=m();if(!e||!t||Fs(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[m]),_=q.useRef(-1);return p(()=>{let e=Br(g),t=l?.current;if(!t)return;let n=we(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(_.current),g(),_.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(_.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[m,g,h]),p(()=>{g()}),(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(`textarea`,{value:o,onChange:e=>{c||g();let t=e.target,r=t.value.length,i=t.value.endsWith(`
66`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,J.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Ns.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Ls(e){return U(`MuiInputBase`,e)}var Rs=V(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),zs,Bs=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${F(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vs=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},Hs=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return C({root:[`root`,`color${F(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${F(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},Ls,t)},Us=K(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:Bs})(l(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${Rs.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),Ws=K(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Vs})(l(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${Rs.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Rs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:`mui-auto-fill-cancel`,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:`mui-auto-fill`}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),Gs=E({"@keyframes mui-auto-fill":{from:{display:`block`}},"@keyframes mui-auto-fill-cancel":{from:{display:`block`}}}),Ks=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_={},inputRef:v,margin:y,maxRows:b,minRows:x,multiline:S=!1,name:C,onBlur:w,onChange:T,onClick:E,onFocus:D,onKeyDown:O,onKeyUp:k,placeholder:j,readOnly:M,renderSuffix:N,rows:F,size:I,slotProps:L={},slots:R={},startAdornment:z,type:B=`text`,value:ee,...V}=n,ne=_.value==null?ee:_.value,{current:H}=q.useRef(ne!=null),re=q.useRef(),U=q.useCallback(e=>{},[]),ie=ke(re,v,_.ref,U),[ae,oe]=q.useState(!1),W=Se(),se=Fe({props:n,muiFormControl:W,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});se.focused=W?W.focused:ae,q.useEffect(()=>{!W&&u&&ae&&(oe(!1),w&&w())},[W,u,ae,w]);let ce=W&&W.onFilled,G=W&&W.onEmpty,ue=q.useCallback(e=>{le(e)?ce&&ce():G&&G()},[ce,G]);Wr(()=>{H&&ue({value:ne})},[ne,ue,H]);let de=e=>{D&&D(e),_.onFocus&&_.onFocus(e),W&&W.onFocus?W.onFocus(e):oe(!0)},fe=e=>{w&&w(e),_.onBlur&&_.onBlur(e),W&&W.onBlur?W.onBlur(e):oe(!1)},pe=(e,...t)=>{if(!H){let t=e.target||re.current;if(t==null)throw Error(P(1));ue({value:t.value})}_.onChange&&_.onChange(e,...t),T&&T(e,...t)};q.useEffect(()=>{ue(re.current)},[]);let me=e=>{re.current&&e.currentTarget===e.target&&re.current.focus(),E&&E(e)},he=g,ge=_;S&&he===`input`&&(ge=F?{type:void 0,minRows:F,maxRows:F,...ge}:{type:void 0,maxRows:b,minRows:x,...ge},he=Is);let _e=e=>{ue(e.animationName===`mui-auto-fill-cancel`?re.current:{value:`x`})};q.useEffect(()=>{W&&W.setAdornedStart(!!z)},[W,z]);let ve={...n,color:se.color||`primary`,disabled:se.disabled,endAdornment:f,error:se.error,focused:se.focused,formControl:W,fullWidth:m,hiddenLabel:se.hiddenLabel,multiline:S,size:se.size,startAdornment:z,type:B},be=Hs(ve),xe=R.root||Us,Ce=L.root||{},we=R.input||Ws;return ge={...ge,...L.input},(0,J.jsxs)(q.Fragment,{children:[!d&&typeof Gs==`function`&&(zs||=(0,J.jsx)(Gs,{})),(0,J.jsxs)(xe,{...Ce,ref:t,onClick:me,...V,...!te(xe)&&{ownerState:{...ve,...Ce.ownerState}},className:A(be.root,Ce.className,o,M&&`MuiInputBase-readOnly`),children:[z,(0,J.jsx)(ye.Provider,{value:null,children:(0,J.jsx)(we,{"aria-invalid":se.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:l,disabled:se.disabled,id:h,onAnimationStart:_e,name:C,placeholder:j,readOnly:M,required:se.required,rows:F,value:ne,onKeyDown:O,onKeyUp:k,type:B,...ge,...!te(we)&&{as:he,ownerState:{...ve,...ge.ownerState}},ref:ie,className:A(be.input,ge.className,M&&`MuiInputBase-readOnly`),onBlur:fe,onChange:pe,onFocus:de})}),f,N?N({...se,startAdornment:z}):null]})]})});function qs(e){return U(`MuiInput`,e)}var Js={...Rs,...V(`MuiInput`,[`root`,`underline`,`input`])},Ys=e=>{let{classes:t,disableUnderline:n}=e,r=C({root:[`root`,!n&&`underline`],input:[`input`]},qs,t);return{...t,...r}},Xs=K(Us,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Bs(e,t),!n.disableUnderline&&t.underline]}})(l(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${fe.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Js.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Js.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Js.disabled}, .${Js.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Js.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),Zs=K(Ws,{name:`MuiInput`,slot:`Input`,overridesResolver:Vs})({}),Qs=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,slotProps:s,slots:l={},type:u=`text`,...d}=n,f=Ys(n),p={root:{ownerState:{disableUnderline:r}}},m=s?pe(s,p):p;return(0,J.jsx)(Ks,{slots:{root:l.root??Xs,input:l.input??Zs},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});Qs.muiName=`Input`;function $s(e){return U(`MuiFilledInput`,e)}var ec={...Rs,...V(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])},tc=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=C({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${F(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},$s,t);return{...t,...c}},nc=K(Us,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Bs(e,t),!n.disableUnderline&&t.underline]}})(l(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ec.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ec.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${ec.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${ec.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${ec.disabled}, .${ec.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ec.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),rc=K(Ws,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Vs})(l(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ic=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=tc(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?pe(h,l):h;return(0,J.jsx)(Ks,{slots:{root:u.root??nc,input:u.input??rc},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});ic.muiName=`Input`;var ac,oc=K(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:r})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),sc=K(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:r})(l(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,transition:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function cc(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,J.jsx)(oc,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,J.jsx)(sc,{ownerState:c,children:s?(0,J.jsx)(`span`,{children:i}):ac||=(0,J.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}function lc(e){return U(`MuiOutlinedInput`,e)}var uc={...Rs,...V(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])},dc=e=>{let{classes:t}=e,n=C({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},lc,t);return{...t,...n}},fc=K(Us,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:Bs})(l(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${uc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${uc.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${uc.focused} .${uc.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{[`&.${uc.focused} .${uc.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${uc.error} .${uc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${uc.disabled} .${uc.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),pc=K(cc,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(l(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),mc=K(Ws,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:Vs})(l(({theme:e})=>({padding:`16.5px 14px`,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),hc=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:l={},slotProps:u={},type:d=`text`,...f}=n,p=dc(n),m=Se(),h=Fe({props:n,muiFormControl:m,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),g={...n,color:h.color||`primary`,disabled:h.disabled,error:h.error,focused:h.focused,formControl:m,fullWidth:r,hiddenLabel:h.hiddenLabel,multiline:o,size:h.size,type:d},_=l.root??fc,y=l.input??mc,[b,x]=v(`notchedOutline`,{elementType:pc,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:l,slotProps:u},additionalProps:{label:a!=null&&a!==``&&h.required?(0,J.jsxs)(q.Fragment,{children:[a,` `,`*`]}):a}});return(0,J.jsx)(Ks,{slots:{root:_,input:y},slotProps:u,renderSuffix:e=>(0,J.jsx)(b,{...x,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:d,...f,classes:{...p,notchedOutline:null}})});hc.muiName=`Input`;var gc=e=>{let{classes:t}=e,n=C({root:[`root`]},Cs,t);return{...t,...n}},_c={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>r(e)&&e!==`variant`},vc=K(Qs,_c)(``),yc=K(hc,_c)(``),bc=K(ic,_c)(``),xc=q.forwardRef(function(e,t){let n=c({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=js,id:d,input:f,inputProps:p,label:m,labelId:h,MenuProps:g,multiple:_=!1,native:v=!1,onClose:y,onOpen:b,open:x,renderValue:S,SelectDisplayProps:C,variant:w=`outlined`,...T}=n,E=v?Ss:As,D=Fe({props:n,muiFormControl:Se(),states:[`variant`,`error`]}),O=D.variant||w,k={...n,variant:O,classes:a},j=gc(k),{root:M,...N}=j,P=f||{standard:(0,J.jsx)(vc,{ownerState:k}),outlined:(0,J.jsx)(yc,{label:m,ownerState:k}),filled:(0,J.jsx)(bc,{ownerState:k})}[O],F=ke(t,B(P));return(0,J.jsx)(q.Fragment,{children:q.cloneElement(P,{inputComponent:E,inputProps:{children:i,error:D.error,IconComponent:u,variant:O,type:void 0,multiple:_,...v?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:g,onClose:y,onOpen:b,open:x,renderValue:S,SelectDisplayProps:{id:d,...C}},...p,classes:p?pe(N,p.classes):N,...f?f.props.inputProps:{}},...(_&&v||l)&&O===`outlined`?{notched:!0}:{},ref:F,className:A(P.props.className,o,j.root),...!f&&{variant:O},...T})})});xc.muiName=`Select`;function Sc(e){return U(`MuiCard`,e)}V(`MuiCard`,[`root`]);
66var Cc=e=>{let{classes:t}=e;return C({root:[`root`]},Sc,t)},wc=K(s,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),Tc=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i};return(0,J.jsx)(wc,{className:A(Cc(o).root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function Ec(e){return U(`MuiCardContent`,e)}V(`MuiCardContent`,[`root`]);var Dc=e=>{let{classes:t}=e;return C({root:[`root`]},Ec,t)},Oc=K(`div`,{name:`MuiCardContent`,slot:`Root`})({padding:16,"&:last-child":{paddingBottom:24}}),kc=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i};return(0,J.jsx)(Oc,{as:i,className:A(Dc(o).root,r),ownerState:o,ref:t,...a})});function Ac(e){return U(`MuiToggleButton`,e)}var jc=V(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]),Mc=q.createContext({}),Nc=q.createContext(void 0);function Pc(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}var Fc=e=>{let{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:o}=e;return C({root:[`root`,r&&`selected`,i&&`disabled`,n&&`fullWidth`,`size${F(a)}`,o]},Ac,t)},Ic=K(Ve,{name:`MuiToggleButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`size${F(n.size)}`]]}})(l(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${jc.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:`none`,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[{props:{color:`standard`},style:{[`&.${jc.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{[`&.${jc.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),Lc=q.forwardRef(function(e,t){let{value:n,...r}=q.useContext(Mc),i=q.useContext(Nc),a=c({props:ze({...r,selected:Pc(e.value,n)},e),name:`MuiToggleButton`}),{children:o,className:s,color:l=`standard`,disabled:u=!1,disableFocusRipple:d=!1,fullWidth:f=!1,onChange:p,onClick:m,selected:h,size:g=`medium`,value:_,...v}=a,y={...a,color:l,disabled:u,disableFocusRipple:d,fullWidth:f,size:g},b=Fc(y),x=e=>{m&&(m(e,_),e.defaultPrevented)||p&&p(e,_)},S=i||``;return(0,J.jsx)(Ic,{className:A(r.className,b.root,s,S),internalNativeButton:!0,disabled:u,focusRipple:!d,ref:t,onClick:x,onChange:p,value:_,ownerState:y,"aria-pressed":h,...v,children:o})});function Rc(e){return q.Children.toArray(e).filter(e=>q.isValidElement(e))}function zc(e){return U(`MuiToggleButtonGroup`,e)}var Bc=V(`MuiToggleButtonGroup`,[`root`,`selected`,`horizontal`,`vertical`,`disabled`,`grouped`,`fullWidth`,`firstButton`,`lastButton`,`middleButton`]),Vc=e=>{let{classes:t,orientation:n,fullWidth:r,disabled:i}=e;
66return C({root:[`root`,n,r&&`fullWidth`],grouped:[`grouped`,i&&`disabled`],firstButton:[`firstButton`],lastButton:[`lastButton`],middleButton:[`middleButton`]},zc,t)},Hc=K(`div`,{name:`MuiToggleButtonGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Bc.grouped}`]:t.grouped},{[`& .${Bc.firstButton}`]:t.firstButton},{[`& .${Bc.lastButton}`]:t.lastButton},{[`& .${Bc.middleButton}`]:t.middleButton},t.root,n.orientation===`vertical`&&t.vertical,n.fullWidth&&t.fullWidth]}})(l(({theme:e})=>({display:`inline-flex`,borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:`vertical`},style:{flexDirection:`column`,[`& .${Bc.grouped}`]:{[`&.${Bc.selected} + .${Bc.grouped}.${Bc.selected}`]:{borderTop:0,marginTop:0}},[`& .${Bc.firstButton},& .${Bc.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Bc.lastButton},& .${Bc.middleButton}`]:{marginTop:-1,borderTop:`1px solid transparent`,borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Bc.lastButton}.${jc.disabled},& .${Bc.middleButton}.${jc.disabled}`]:{borderTop:`1px solid transparent`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{orientation:`horizontal`},style:{[`& .${Bc.grouped}`]:{[`&.${Bc.selected} + .${Bc.grouped}.${Bc.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Bc.firstButton},& .${Bc.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Bc.lastButton},& .${Bc.middleButton}`]:{marginLeft:-1,borderLeft:`1px solid transparent`,borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Bc.lastButton}.${jc.disabled},& .${Bc.middleButton}.${jc.disabled}`]:{borderLeft:`1px solid transparent`}}}]}))),Uc=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiToggleButtonGroup`}),{children:r,className:i,color:a=`standard`,disabled:o=!1,exclusive:s=!1,fullWidth:l=!1,onChange:u,orientation:d=`horizontal`,size:f=`medium`,value:p,...m}=n,h={...n,disabled:o,fullWidth:l,orientation:d,size:f},g=Vc(h),_=q.useCallback((e,t)=>{if(!u)return;let n=p&&p.indexOf(t),r;p&&n>=0?(r=p.slice(),r.splice(n,1)):r=p?p.concat(t):[t],u(e,r)},[u,p]),v=q.useCallback((e,t)=>{u&&u(e,p===t?null:t)},[u,p]),y=q.useMemo(()=>({className:g.grouped,onChange:s?v:_,value:p,size:f,fullWidth:l,color:a,disabled:o}),[g.grouped,s,v,_,p,f,l,a,o]),b=Rc(r),x=b.length,S=e=>{let t=e===0,n=e===x-1;return t&&n?``:t?g.firstButton:n?g.lastButton:g.middleButton};return(0,J.jsx)(Hc,{role:`group`,className:A(g.root,i),ref:t,ownerState:h,...m,children:(0,J.jsx)(Mc.Provider,{value:y,children:b.map((e,t)=>(0,J.jsx)(Nc.Provider,{value:S(t),children:e},t))})})});function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function X(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Wc(...e){let t=q.useRef(void 0),n=q.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return q.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function Gc(e){return typeof e==`string`}function Kc(e,t,n){return e===void 0||Gc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qc(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Jc(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))qc(n,e[n])&&(t[n]=e[n]);return t}function Yc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Xc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=A(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Jc({...i,...r}),s=Yc(r),c=Yc(i),l=t(o),u=A(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Zc(e,t,n){return typeof e==`function`?e(t,n):e}function Qc(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Zc(n,r),{props:s,internalRef:c}=Xc({...a,externalSlotProps:o}),l=Wc(c,o?.ref,e.additionalProps?.ref);return Kc(t,{...s,ref:l},r)}var $c=typeof window<`u`?q.useLayoutEffect:q.useEffect;function el(e){let t=q.useRef(e);return $c(()=>{t.current=e}),q.useRef((...e)=>(0,t.current)(...e)).current}var tl=0;function nl(e){let[t,n]=q.useState(e),r=e||t;return q.useEffect(()=>{t??(tl+=1,n(`mui-${tl}`))},[t]),r}var rl={...q}.useId;function il(e){if(rl!==void 0){let t=rl();return e??t}return nl(e)}var al=Tt({memoize:ut,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Z=(e,t,n,r,i,a,o,s,...c)=>{if(c.length>0)throw Error(N(179));let l;if(e&&t&&n&&r&&i&&a&&o&&s)l=(c,l,u,d)=>s(e(c,l,u,d),t(c,l,u,d),n(c,l,u,d),r(c,l,u,d),i(c,l,u,d),a(c,l,u,d),o(c,l,u,d),l,u,d);else if(e&&t&&n&&r&&i&&a&&o)l=(s,c,l,u)=>
66o(e(s,c,l,u),t(s,c,l,u),n(s,c,l,u),r(s,c,l,u),i(s,c,l,u),a(s,c,l,u),c,l,u);else if(e&&t&&n&&r&&i&&a)l=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)l=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)l=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)l=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)l=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)l=e;else throw Error(N(180));return l},ol=e=>(...t)=>{let n=new WeakMap,r=1,i=t[t.length-1],a=t.length-1||1,o=Math.max(i.length-a,0);if(o>3)throw Error(N(181));return(a,s,c,l)=>{let u=a.__cacheKey__;u||(u={id:r},a.__cacheKey__=u,r+=1);let d=n.get(u);if(!d){let r=t.length===1?[e=>e,i]:t,a=t,s=[void 0,void 0,void 0];switch(o){case 0:break;case 1:a=[...r.slice(0,-1),()=>s[0],i];break;case 2:a=[...r.slice(0,-1),()=>s[0],()=>s[1],i];break;case 3:a=[...r.slice(0,-1),()=>s[0],()=>s[1],()=>s[2],i];break;default:throw Error(N(182))}e&&(a=[...a,e]),d=al(...a),d.selectorArgs=s,n.set(u,d)}switch(o){case 3:d.selectorArgs[2]=l;case 2:d.selectorArgs[1]=c;case 1:d.selectorArgs[0]=s;default:}switch(o){case 0:return d(a);case 1:return d(a,s);case 2:return d(a,s,c);case 3:return d(a,s,c,l);default:throw Error(`unreachable`)}}},Q=ol(),sl=Ct(),cl=dt(),ll=19,ul=ll>=19?fl:pl;function dl(e,t,n,r,i){return ul(e,t,n,r,i)}function fl(e,t,n,r,i){let a=q.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,sl.useSyncExternalStore)(e.subscribe,a,a)}function pl(e,t,n,r,i){return(0,cl.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ml={};function hl(e,t){let n=q.useRef(ml);return n.current===ml&&(n.current=e(t)),n}var gl=[];function _l(e){q.useEffect(e,gl)}var vl=()=>{};function yl(e,t,n){let r=hl(bl,{store:e,selector:t}).current;r.effect=n,_l(r.onMount)}function bl(e){let{store:t,selector:n}=e,r=n(t.state),i={effect:vl,dispose:null,subscribe:()=>{i.dispose??=t.subscribe(e=>{let t=n(e);if(!Object.is(r,t)){let e=r;r=t,i.effect(e,t)}})},onMount:()=>(i.subscribe(),()=>{i.dispose?.(),i.dispose=null})};return i.subscribe(),i}function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(null,arguments)}var Sl=class e{static create(t){return new e(t)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){this.state=e,this.updateTick+=1;let t=this.updateTick,n=this.listeners.values(),r;for(;r=n.next(),!r.done;){if(t!==this.updateTick)return;let n=r.value;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState(xl({},this.state,e));return}}set(e,t){Object.is(this.state[e],t)||this.setState(xl({},this.state,{[e]:t}))}use=(e,t,n,r)=>dl(this,e,t,n,r)},Cl=({params:e,store:t})=>{q.useEffect(()=>{t.set(`animation`,Y({},t.state.animation,{skip:e.skipAnimation}))},[t,e.skipAnimation]);let n=q.useCallback(()=>{let e=!1;return t.set(`animation`,Y({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests+1})),()=>{e||(e=!0,t.set(`animation`,Y({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests-1})))}},[t]);return $c(()=>{if(typeof window>`u`||!window?.matchMedia)return;let e,t=t=>{t.matches?e=n():e?.()},r=window.matchMedia(`(prefers-reduced-motion)`);return t(r),r.addEventListener(`change`,t),()=>{r.removeEventListener(`change`,t)}},[n,t]),{instance:{disableAnimation:n}}};Cl.params={skipAnimation:!0},Cl.getDefaultizedParams=({params:e})=>Y({},e,{skipAnimation:e.skipAnimation??!1}),Cl.getInitialState=({skipAnimation:e})=>(typeof window>`u`||window?.matchMedia,{animation:{skip:e,skipAnimationRequests:0}});var wl=Z(e=>e.animation,e=>e.skip||e.skipAnimationRequests>0);function Tl(e,t){let n=q.useRef(!0);q.useEffect(()=>{if(n.current){n.current=!1;return}return e()},t)}function El(e){return e&&e.ownerDocument||document}function Dl(e){return El(e).defaultView||window}var Ol=`DEFAULT_X_AXIS_KEY`,kl=`DEFAULT_Y_AXIS_KEY`,Al={top:20,bottom:20,left
66:20,right:20},jl=e=>e.cartesianAxis?.x,Ml=e=>e.cartesianAxis?.y,Nl=e=>e.cartesianAxis?.axesGap??0;function Pl(){return typeof window>`u`}var Fl=new Map,Il=2e3,Ll=new Set([`minWidth`,`maxWidth`,`width`,`minHeight`,`maxHeight`,`height`,`top`,`left`,`fontSize`,`padding`,`margin`,`paddingLeft`,`paddingRight`,`paddingTop`,`paddingBottom`,`marginLeft`,`marginRight`,`marginTop`,`marginBottom`]);function Rl(e,t){return Ll.has(e)&&t===+t?`${t}px`:t}var zl=/([A-Z])/g;function Bl(e){return String(e).replace(zl,e=>`-${e.toLowerCase()}`)}function Vl(e){let t=``;for(let n in e)if(Object.hasOwn(e,n)){let r=n,i=e[r];if(i===void 0)continue;t+=`${Bl(r)}:${Rl(r,i)};`}return t}var Hl=(e,t={})=>{if(e==null||Pl())return{width:0,height:0};let n=String(e),r=`${n}-${Vl(t)}`,i=Fl.get(r);if(i)return i;try{let e=Kl(),i=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);Object.keys(t).map(e=>(i.style[Bl(e)]=Rl(e,t[e]),e)),i.textContent=n,e.replaceChildren(i);let a=Wl(i);return Fl.set(r,a),Fl.size+1>Il&&Fl.clear(),a}catch{return{width:0,height:0}}};function Ul(e,t={}){if(Pl())return new Map(Array.from(e).map(e=>[e,{width:0,height:0}]));let n=new Map,r=[],i=Vl(t);for(let t of e){let e=`${t}-${i}`,a=Fl.get(e);a?n.set(t,a):r.push(t)}let a=Kl(),o=Y({},t);Object.keys(o).map(e=>(a.style[Bl(e)]=Rl(e,o[e]),e));let s=[];for(let e of r){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);t.textContent=`${e}`,s.push(t)}a.replaceChildren(...s);for(let e=0;e<r.length;e+=1){let t=r[e],o=a.children[e],s=Wl(o),c=`${t}-${i}`;Fl.set(c,s),n.set(t,s)}return Fl.size+1>Il&&Fl.clear(),n}function Wl(e){try{let t=e.getBBox();return{width:t.width,height:t.height}}catch{let t=e.getBoundingClientRect();return{width:t.width,height:t.height}}}var Gl=null;function Kl(){return Gl===null&&(Gl=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),Gl.setAttribute(`aria-hidden`,`true`),Gl.style.position=`absolute`,Gl.style.top=`-20000px`,Gl.style.left=`0`,Gl.style.padding=`0`,Gl.style.margin=`0`,Gl.style.border=`none`,Gl.style.pointerEvents=`none`,Gl.style.visibility=`hidden`,Gl.style.contain=`strict`,document.body.appendChild(Gl)),Gl}var ql=(e,t)=>e===void 0?t:Math.PI*e/180,Jl=typeof window<`u`&&`Intl`in window&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function Yl(e){return e.length}function Xl(e){let t=Jl.segment(e),n=0;for(let e of t)n+=1;return n}var Zl=Jl?Xl:Yl;function Ql(e){return Array.isArray(e)?JSON.stringify(e):typeof e==`object`&&e?e.valueOf():e}function $l(e){let t=e?e.index:new wt(void 0,Ql),n=e?e.domain:[],r=e?e.r0:0,i=e?e.r1:1,a=e?e.isRound:!1,o=e?e.paddingInner:0,s=e?e.paddingOuter:0,c=e?e.align:.5,l,u,d=!1,f=0,p=e=>{let r=t.get(e);if(r===void 0)return;let i=n.length;if(i===0)return;let a=d?i-1-r%i:r%i;return f+l*a},m=()=>{let e=n.length;d=i<r;let t=d?i:r,m=d?r:i;l=(m-t)/Math.max(1,e-o+s*2),a&&(l=Math.floor(l));let h=t+(m-t-l*(e-o))*c;return u=l*(1-o),a&&(h=Math.round(h),u=Math.round(u)),f=h,p};return p.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new wt(void 0,Ql);for(let r of e)t.has(r)||t.set(r,n.push(r)-1);return m()},p.range=function(e){if(!arguments.length)return[r,i];let[t,n]=e;return r=+t,i=+n,m()},p.rangeRound=function(e){let[t,n]=e;return r=+t,i=+n,a=!0,m()},p.bandwidth=function(){return u},p.step=function(){return l},p.round=function(e){return arguments.length?(a=!!e,m()):a},p.padding=function(e){return arguments.length?(o=Math.min(1,s=+e),m()):o},p.paddingInner=function(e){return arguments.length?(o=Math.min(1,e),m()):o},p.paddingOuter=function(e){return arguments.length?(s=+e,m()):s},p.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),m()):c},p.copy=()=>$l({index:t,domain:n,r0:r,r1:i,isRound:a,paddingInner:o,paddingOuter:s,align:c}),m(),p}function eu(...e){let t=$l(),[n,r]=e;return e.length>1?(t.domain(n),t.range(r)):n&&t.range(n),t}function tu(...e){let t=eu(...e).paddingInner(1),n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=()=>{let e=n();return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=t.copy,e},t}function nu(...e){let t=vt(...e),n=t.ticks,{negativeScale:r,linearScale:i,positiveScale:a}=ru(t);return t.ticks=e=>{let o=n(e),s=t.constant(),c=0,l=0,u=0;
66o.forEach(e=>{e>-s&&e<s&&(l+=1),e<=-s&&(c+=1),e>=s&&(u+=1)});let d=[];if(c>0&&d.push(...r.ticks(c)),l>0){let e=i.ticks(l);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}if(u>0){let e=a.ticks(u);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}return d},t.tickFormat=(e=10,n)=>{let o=t.constant(),[s,c]=t.domain(),l=c-s,u=r.domain(),d=u[1]-u[0],f=(l===0?0:d/l)*e,p=i.domain(),m=p[1]-p[0],h=(l===0?0:m/l)*e,g=a.domain(),_=g[1]-g[0],v=(l===0?0:_/l)*e,y=r.tickFormat(f,n),b=i.tickFormat(h,n),x=a.tickFormat(v,n);return e=>(e.valueOf()<=-o?y:e.valueOf()>=o?x:b)(e)},t.copy=()=>nu(t.domain(),t.range()).constant(t.constant()),t}function ru(e){let t=e.constant(),n=e.domain();return{negativeScale:lt([n[0],Math.min(n[1],-t)],e.range()),linearScale:ft([Math.max(n[0],-t),Math.min(n[1],t)],e.range()),positiveScale:lt([Math.max(n[0],t),n[1]],e.range())}}function iu(e,t,n){switch(e){case`log`:return lt(t,n);case`pow`:return ht(t,n);case`sqrt`:return gt(t,n);case`time`:return it(t,n);case`utc`:return Bt(t,n);case`symlog`:return nu(t,n);default:return ft(t,n)}}function au(e){return`groups`in e&&Array.isArray(e.groups)&&e.groups.length>0}function ou(e,t){let n=new Set;for(let r=0;r<e.length;r+=1){let i=e[r],a=t.getValue(i,r);n.add(`${a}`)}return Array.from(n)}var su=5;function cu(e){let t=e.split(`
67`);return Math.max(...t.map(e=>Zl(e)))}function lu(e){if(e.length<=su)return e;let t=[],n=1,r=null;for(let i of e){let e=i.split(`
68`).length;e>n&&(n=e,r=i);let a=cu(i);if(t.length<su||a>t[0].length){let e=t.findIndex(e=>e.length>a);t.splice(e===-1?t.length:e,0,{label:i,length:a}),t.length>su&&t.shift()}}return r!==null&&t.find(e=>e.label===r)===void 0&&t.push({label:r,length:cu(r)}),t.map(e=>e.label)}function uu(e,t){let{valueFormatter:n,scaleType:r,data:i}=e;if(r===`band`||r===`point`){if(!i||i.length===0)return[];let e=r===`band`?eu(i,[0,1]):tu(i,[0,1]);return lu(i.map(t=>n?n(t,{location:`tick`,scale:e,defaultTickLabel:`${t}`}):`${t}`))}let a=t?t.domain[0]:0,o=t?t.domain[1]:100,s=t?.tickNumber??2,c=iu(r??`linear`,[a,o],[0,1]),l=a===o?[a]:[a,o],u=c.tickFormat(s);return l.map(e=>{let t=u(e);return n?n(e,{location:`tick`,scale:c,defaultTickLabel:t}):t})}function du(e,t){if(e.length===0)return{maxWidth:0,maxHeight:0};let n=new Set;for(let t of e){let e=t.split(`
69`);for(let t of e)n.add(t)}let r=Ul(n,t),i=0,a=0;for(let t of e){let e=t.split(`
70`),n=0,o=0;for(let t of e){let e=r.get(t)??{width:0,height:0};n=Math.max(n,e.width),o+=e.height}i=Math.max(i,n),a=Math.max(a,o)}return{maxWidth:i,maxHeight:a}}function fu(e,t,n,r){if(!n||n%180==0)return r===`x`?t:e;if(n%90==0)return r===`x`?e:t;let i=ql(Math.abs(n)),a=Math.cos(i),o=Math.sin(i);return r===`x`?Math.abs(e*o)+Math.abs(t*a):Math.abs(e*a)+Math.abs(t*o)}function pu(e,t){let{groups:n,data:r,tickSize:i,tickLabelStyle:a}=e,o=!!e.label;if(!r||r.length===0)return{size:20};let s=[],c=[],l=i??6;for(let e=0;e<n.length;e+=1){let i=n[e],o=lu(ou(r,i)),u=Y({},a,i.tickLabelStyle),d=u?.angle,{maxWidth:f,maxHeight:p}=du(o,u);if(f===0&&p===0)return;let m=fu(f,p,d,t);c.push(m);let h=i.tickSize;if(h!==void 0)s.push(h);else if(e===0)s.push(l);else{let t=s[e-1]+2+c[e-1]+4;s.push(t+l)}}let u=n.length-1,d=s[u]+2+c[u];return o&&(d+=20),d+=4,{size:Math.max(Math.ceil(d),20),groupTickSizes:s}}function mu(e){let{axis:t,direction:n,domain:r}=e;if(au(t))return pu(t,n);let i=t.tickLabelStyle,a=t.tickSize??6,o=!!t.label,s=i?.angle,c=uu(t,r);
70if(c.length===0)return{size:20};let{maxWidth:l,maxHeight:u}=du(c,i);if(l===0&&u===0)return;let d=fu(l,u,s,n),f=a+2+d;return o&&(f+=20),f+=4,{size:Math.max(Math.ceil(f),20)}}var hu=({series:e,colors:t,theme:n,seriesConfig:r})=>{let i={},a=new Map;return e.forEach((e,o)=>{let s=r[e.type].getSeriesWithDefaultValues(e,o,t,n),c=s.id;if(i[e.type]===void 0&&(i[e.type]={series:{},seriesOrder:[]}),i[e.type]?.series[c]!==void 0)throw Error(N(34,c));if(i[e.type].series[c]=s,i[e.type].seriesOrder.push(c),a.has(c))throw Error(N(35,c));a.set(c,e.type)}),{defaultizedSeries:i,idToType:a}},gu=(e,t,n,r)=>{let i={};return Object.keys(t).forEach(a=>{let o=e[a];o!==void 0&&(i[a]=t[a]?.seriesProcessor?.(o,n,r)??o)}),i},_u=(e,t,n)=>{let r=!1,i={};return Object.keys(e).forEach(a=>{let o=t[a]?.seriesLayout,s=e[a];if(o!==void 0&&s!==void 0){let t=o(s,n);t&&t!==e[a]&&(r=!0,i[a]=t)}}),r?i:{}},vu=(e,t)=>{let n=e[t.type]?.identifierSerializer;if(!n)throw Error(N(43,t.type));return n(t)},yu=(e,t)=>{let n=e[t.type]?.identifierCleaner;if(!n)throw Error(N(42,t.type));return n(t)},bu=({store:e})=>({instance:{serializeIdentifier:el(t=>vu(e.state.seriesConfig.config,t)),cleanIdentifier:el(function(t){return yu(e.state.seriesConfig.config,t)})}});bu.params={seriesConfig:!0},bu.getDefaultizedParams=({params:e})=>Y({},e,{seriesConfig:e.seriesConfig??{}}),bu.getInitialState=({seriesConfig:e})=>({seriesConfig:{config:e}});var xu=Z(e=>e.seriesConfig,e=>e.config),Su=e=>e.visibilityManager,Cu=new Map,wu=Q(Z(Su,e=>e?.visibilityMap??Cu),xu,(e,t)=>n=>{let r=vu(t,n);return!e.has(r)}),Tu=(e,t)=>{let n=new Map;return e&&e.forEach(e=>{let r=vu(t,e);n.set(r,e)}),n},Eu=[`#4254FB`,`#FFB422`,`#FA4F58`,`#0DBEFF`,`#22BF75`,`#FA83B4`,`#FF7511`],Du=[`#495AFB`,`#FFC758`,`#F35865`,`#30C8FF`,`#44CE8D`,`#F286B3`,`#FF8C39`],Ou=e=>e===`dark`?Du:Eu;function ku(e){function t(t){if(t.type!==void 0)return t;let n=e.series.idToType.get(t.seriesId);if(n===void 0)throw Error(N(36,t.seriesId));return Y({},t,{type:n})}return t}var Au=({params:e,store:t})=>{let{series:n,dataset:r,theme:i,colors:a}=e;return Tl(()=>{let{defaultizedSeries:e,idToType:o}=hu({series:n,colors:typeof a==`function`?a(i):a,theme:i,seriesConfig:t.state.seriesConfig.config});t.set(`series`,Y({},t.state.series,{defaultizedSeries:e,idToType:o,dataset:r}))},[a,r,n,i,t]),{instance:{identifierWithType:ku(t.state)}}};Au.params={dataset:!0,series:!0,colors:!0,theme:!0};var ju=[];Au.getDefaultizedParams=({params:e})=>Y({},e,{series:e.series?.length?e.series:ju,colors:e.colors??Ou,theme:e.theme??`light`}),Au.getInitialState=({series:e=[],colors:t,theme:n,dataset:r},i)=>{let a=i.seriesConfig.config,{defaultizedSeries:o,idToType:s}=hu({series:e,colors:typeof t==`function`?t(n):t,theme:n,seriesConfig:a});return{series:{defaultizedSeries:o,idToType:s,dataset:r}}};var Mu=({store:e,params:t,instance:n})=>{Tl(()=>{t.hiddenItems!==void 0&&e.set(`visibilityManager`,Y({},e.state.visibilityManager,{visibilityMap:Tu(t.hiddenItems.map(e=>n.identifierWithType(e,`visibility`)),e.state.seriesConfig.config)}))},[e,n,t.hiddenItems]);let r=el(r=>{let i=e.state.visibilityManager.visibilityMap,a=n.identifierWithType(r,`visibility`),o=n.serializeIdentifier(a);if(i.has(o))return;let s=new Map(i);s.set(o,a),e.set(`visibilityManager`,Y({},e.state.visibilityManager,{visibilityMap:s}));let c=Array.from(s.values());t.onHiddenItemsChange?.(c)}),i=el(r=>{let i=e.state.visibilityManager.visibilityMap,a=n.identifierWithType(r,`visibility`),o=n.serializeIdentifier(a);if(!i.has(o))return;let s=new Map(i);s.delete(o),e.set(`visibilityManager`,Y({},e.state.visibilityManager,{visibilityMap:s})),t.onHiddenItemsChange?.(Array.from(s.values()))});return{instance:{hideItem:r,showItem:i,toggleItemVisibility:el(t=>{let a=e.state.visibilityManager.visibilityMap,o=n.identifierWithType(t,`visibility`),s=n.serializeIdentifier(o);a.has(s)?i(o):r(o)})}}};Mu.getInitialState=(e,t)=>{let n=t.seriesConfig.config,r=e.hiddenItems??e.initialHiddenItems;return{visibilityManager:{visibilityMap:r?Tu(r.map(e=>ku(t)(e)),n):Cu,isControlled:e.hiddenItems!==void 0}}},Mu.params={onHiddenItemsChange:!0,hiddenItems:!0,initialHiddenItems:!0};var Nu=e=>e.series,Pu=Z(Nu,e=>
70e.defaultizedSeries),Fu=Q(Pu,xu,Z(Nu,e=>e.dataset),wu,function(e,t,n,r){return gu(e,t,n,r)}),Iu=Q(xu,Fu,(e,t)=>function(n){for(let r in t){if(!Object.hasOwn(t,r))continue;let i=t[r];if(i?.series&&i.series[n])return e[r]}return null});function Lu(e){return e.scaleType===`band`}function Ru(e){return e.scaleType===`point`}function zu(e){return e.scaleType!==`point`&&e.scaleType!==`band`}function Bu(e){return e.scaleType===`symlog`}var Vu,Hu,Uu=class{types=new Set;constructor(){if(Vu)throw Error(N(24));Vu=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}},Wu=class{types=new Set;constructor(){if(Hu)throw Error(N(25));Hu=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}},Gu=new Uu;Gu.addType(`bar`),Gu.addType(`line`),Gu.addType(`scatter`);var Ku=new Wu;Ku.addType(`radar`);function qu(e){return Gu.getTypes().has(e)}function Ju(e){return qu(e.type)}var Yu=(e,t,n,r,i,a,o)=>{let s=n===`x`?r[e].xExtremumGetter:r[e].yExtremumGetter,c=a[e]?.series??{};return s?.({series:c,axis:t,axisIndex:i,isDefaultAxis:i===0,getFilters:o})??[1/0,-1/0]};function Xu(e,t,n,r,i,a){let o=Object.keys(n).filter(qu),s=[1/0,-1/0];for(let c of o){let[o,l]=Yu(c,e,t,n,r,i,a);s=[Math.min(s[0],o),Math.max(s[1],l)]}return Number.isNaN(s[0])||Number.isNaN(s[1])?[1/0,-1/0]:s}var Zu={},Qu=Q(jl,Fu,xu,function(e,t,n){let r={},i=!1;return e?.forEach((e,a)=>{!Lu(e)&&!Ru(e)&&(r[e.id]=Xu(e,`x`,n,a,t),i=!0)}),i?r:Zu}),$u=Q(Ml,Fu,xu,function(e,t,n){let r={},i=!1;return e?.forEach((e,a)=>{!Lu(e)&&!Ru(e)&&(r[e.id]=Xu(e,`y`,n,a,t),i=!0)}),i?r:Zu}),ed=(e,t,n,r)=>{if(e.domainLimit!==void 0)return e.domainLimit;if(t===`x`)for(let t of r.line?.seriesOrder??[]){let i=r.line.series[t];if(i.xAxisId===e.id||i.xAxisId===void 0&&n===0)return`strict`}return`nice`};function td(e,t,n){let{tickMaxStep:r,tickMinStep:i,tickNumber:a}=e,o=i===void 0?999:Math.floor(Math.abs(t[1]-t[0])/i),s=r===void 0?2:Math.ceil(Math.abs(t[1]-t[0])/r);return Math.min(o,Math.max(s,a??n))}function nd(e,t){return t[1]-t[0]===0?1:e/((t[1]-t[0])/100)}function rd(e){return Math.floor(Math.abs(e)/50)}function id(e,t,n){return iu(e??`linear`,t,[0,1]).nice(n).domain()}function ad(e,t,n,r,[i,a],o){let s=ed(e,t,n,r),c=sd(e,i,a);if(typeof s==`function`){let{min:e,max:t}=s(i.valueOf(),a.valueOf());c[0]=e,c[1]=t}let l=td(e,c,o);return s===`nice`&&(c=id(e.scaleType,c,l)),c=[`min`in e?e.min??c[0]:c[0],`max`in e?e.max??c[1]:c[1]],{domain:c,tickNumber:l}}function od(e,t,n,r,[i,a],o){let s=ed(e,t,n,r),c=sd(e,i,a);if(typeof s==`function`){let{min:e,max:t}=s(i.valueOf(),a.valueOf());c[0]=e,c[1]=t}return s===`nice`&&(c=id(e.scaleType,c,o)),[e.min??c[0],e.max??c[1]]}function sd(e,t,n){let r=t,i=n;return`max`in e&&e.max!=null&&e.max<t&&(r=e.max),`min`in e&&e.min!=null&&e.min>n&&(i=e.min),!(`min`in e)&&!(`max`in e)?[r,i]:[e.min??r,e.max??i]}function cd(e,t,n,r,i){let a={};return e?.forEach((e,o)=>{let s=e;if(Lu(s)||Ru(s)){a[s.id]={domain:s.data},s.ordinalTimeTicks!==void 0&&(a[s.id].tickNumber=td(s,[s.data?.find(e=>e!==null),s.data?.findLast(e=>e!==null)],n));return}let c=r[s.id];c&&(a[s.id]=ad(s,i,o,t,c,n))}),a}var ld=8,ud={},dd=Q(jl,Fu,Qu,function(e,t,n){let r=cd(e,t,ld,n,`x`);return Object.keys(r).length>0?r:ud}),fd=Q(Ml,Fu,$u,function(e,t,n){let r=cd(e,t,ld,n,`y`);return Object.keys(r).length>0?r:ud}),pd=e=>e.dimensions.width&&e.dimensions.height,md={},hd={},gd=Q(jl,pd,dd,function(e,t,n){if(!e?.some(e=>e.height===`auto`)||!t)return hd;let r={};for(let t=0;t<(e?.length??0);t+=1){let i=e[t];if(i.height===`auto`){let e=mu({axis:i,direction:`x`,domain:n[i.id]});e!==void 0&&(r[i.id]=e)}}return r}),_d=Q(gd,function(e){if(e===hd)return md;let t={};for(let[n,r]of Object.entries(e))t[n]=r.size;return t}),vd=Q(Ml,pd,fd,function(e,t,n){if(!e?.some(e=>e.width===`auto`)||!t)return hd;let r={};for(let t=0;t<(e?.length??0);t+=1){let i=e[t];if(i.width===`auto`){let e=mu({axis:i,direction:`y`,domain:n[i.id]});e!==void 0&&(r[i.id]=e)}}return r}),yd=Q(vd,function(e){if(e===hd)return md;let t={};for(let[n,r]of Object.entries(e))t[n]=r.size;return t});function bd(e){return 25+(e.label?20:0)}function xd(e){return 45+(e.label?20:0)}function Sd(e,t,n,r){let i=0,a=0;for(let t of e??[]){if(t.position!==n)continue;let e;e=t.height===`auto`?r[t.id]??bd(t):t.height??0,i+=e+(t.zoom?.slider.enabled?t.zoom.slider.size:0),a+=1}return i+t*Math.max(0,a-1)}function Cd(e,t,n,r){let i=0,a=0;for(let t of e??[]){if(t.position!==n)continue;let e;e=t.width===`auto`?r[t.id]??xd(t):t.width??0,i+=e+(t.zoom?.slider.enabled?t.zoom.slider.size:0),a+=1}return i+t*Math.max(0,a-1)}var wd=Q(Z(Ml,Nl,yd,function(e,t,n){return Cd(e,t,`left`,n)}),Z(Ml,Nl,yd,function(e,t,n){return Cd(e,t,`right`,n)}),Z(jl,Nl,_d,function(e,t,n){return Sd(e,t,`top`,n)}),Z(jl,Nl,_d,function(e,t,n){return Sd(e,t,`bottom`,n)}),function(e,t,n,r){return{left:e,right:t,top:n,bottom:r}}),Td=e=>e.dimensions,Ed=Q(Td,e=>e.dimensions.margin,wd,function({width:e,height:t}
70,{top:n,right:r,bottom:i,left:a},{left:o,right:s,top:c,bottom:l}){return{width:e-a-r-o-s,left:a+o,right:r+s,height:t-n-i-c-l,top:n+c,bottom:i+l}}),Dd=Z(Td,e=>e.width),Od=Z(Td,e=>e.height),kd=Z(Td,e=>e.propsWidth),Ad=Z(Td,e=>e.propsHeight);function jd(e,t){return typeof e==`number`?{top:e,bottom:e,left:e,right:e}:t?Y({},t,e):e}var Md=10,Nd=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,i=e.width!==void 0&&e.height!==void 0,a=q.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[o,s]=q.useState(0),[c,l]=q.useState(0),u=q.useCallback(()=>{let n=r?.current;if(!n)return{};let i=Dl(n).getComputedStyle(n),a=Math.floor(parseFloat(i.height))||0,o=Math.floor(parseFloat(i.width))||0;return(t.state.dimensions.width!==o||t.state.dimensions.height!==a)&&t.set(`dimensions`,{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:e.width??o,height:e.height??a,propsWidth:e.width,propsHeight:e.height}),{height:a,width:o}},[t,r,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]);Tl(()=>{let n=e.width??t.state.dimensions.width,r=e.height??t.state.dimensions.height;t.set(`dimensions`,{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:n,height:r,propsHeight:e.height,propsWidth:e.width})},[t,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]),q.useEffect(()=>{a.current.displayError=!0},[]),$c(()=>{if(i||!a.current.initialCompute||a.current.computeRun>Md)return;let e=u();e.width!==o||e.height!==c?(a.current.computeRun+=1,e.width!==void 0&&s(e.width),e.height!==void 0&&l(e.height)):a.current.initialCompute&&(a.current.initialCompute=!1)},[c,o,u,i]),$c(()=>{if(i)return()=>{};u();let e=r.current;if(typeof ResizeObserver>`u`)return()=>{};let t,n=new ResizeObserver(()=>{t=requestAnimationFrame(()=>{u()})});return e&&n.observe(e),()=>{t&&cancelAnimationFrame(t),e&&n.unobserve(e)}},[u,i,r]);let d=t.use(Ed),f=q.useCallback(e=>e>=d.left-1&&e<=d.left+d.width,[d.left,d.width]),p=q.useCallback(e=>e>=d.top-1&&e<=d.top+d.height,[d.height,d.top]);return{instance:{isPointInside:q.useCallback((e,t,n)=>n&&`closest`in n&&n.closest(`[data-drawing-container]`)?!0:f(e)&&p(t),[f,p]),isXInside:f,isYInside:p}}};Nd.params={width:!0,height:!0,margin:!0},Nd.getDefaultizedParams=({params:e})=>Y({},e,{margin:jd(e.margin,Al)}),Nd.getInitialState=({width:e,height:t,margin:n})=>({dimensions:{margin:n,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});var Pd=()=>({instance:{chartsLayerContainerRef:q.useRef(null),chartRootRef:q.useRef(null)}});Pd.params={};var Fd=({params:e,store:t})=>($c(()=>{t.set(`experimentalFeatures`,e.experimentalFeatures)},[t,e.experimentalFeatures]),{});Fd.params={experimentalFeatures:!0},Fd.getInitialState=({experimentalFeatures:e})=>({experimentalFeatures:e});var Id=(e,t)=>e.experimentalFeatures?.[t],Ld=0,Rd=()=>(Ld+=1,`mui-chart-${Ld}`),zd=({params:e,store:t})=>(q.useEffect(()=>{e.id===void 0||e.id===t.state.id.providedChartId&&t.state.id.chartId!==void 0||t.set(`id`,Y({},t.state.id,{chartId:e.id??Rd()}))},[t,e.id]),{});zd.params={id:!0},zd.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});var Bd=Z(e=>e.id,e=>e.chartId),Vd=Q(Fu,xu,Ed,function(e,t,n){return _u(e,t,n)});function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(null,arguments)}function Ud(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var Wd={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,command:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mou
70seleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0},Gd=class{customData={};constructor(e){if(!e||!e.name)throw Error(Ud(164));if(e.name in Wd)throw Error(Ud(165,e.name));this.name=e.name,this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.preventIf=e.preventIf??[],this.requiredKeys=e.requiredKeys??[],this.pointerMode=e.pointerMode??[],this.pointerOptions=e.pointerOptions??{}}init(e,t,n,r){this.element=e,this.pointerManager=t,this.gesturesRegistry=n,this.keyboardManager=r;let i=`${this.name}ChangeOptions`;this.element.addEventListener(i,this.handleOptionsChange);let a=`${this.name}ChangeState`;this.element.addEventListener(a,this.handleStateChange)}handleOptionsChange=e=>{e&&e.detail&&this.updateOptions(e.detail)};updateOptions(e){this.preventDefault=e.preventDefault??this.preventDefault,this.stopPropagation=e.stopPropagation??this.stopPropagation,this.preventIf=e.preventIf??this.preventIf,this.requiredKeys=e.requiredKeys??this.requiredKeys,this.pointerMode=e.pointerMode??this.pointerMode,this.pointerOptions=e.pointerOptions??this.pointerOptions}getBaseConfig(){return{requiredKeys:this.requiredKeys}}getEffectiveConfig(e,t){if(e!==`mouse`&&e!==`touch`&&e!==`pen`)return t;let n=this.pointerOptions[e];return n?Hd({},t,n):t}handleStateChange=e=>{e&&e.detail&&this.updateState(e.detail)};updateState(e){Object.assign(this.state,e)}getTargetElement(e){return this.isActive||this.element===e.target||`contains`in this.element&&this.element.contains(e.target)||`getRootNode`in this.element&&this.element.getRootNode()instanceof ShadowRoot&&e.composedPath().includes(this.element)?this.element:null}set isActive(e){e?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(e,t){let n=this.getEffectiveConfig(t,this.getBaseConfig());if(!this.keyboardManager.areKeysPressed(n.requiredKeys))return!0;if(this.preventIf.length===0)return!1;let r=this.gesturesRegistry.getActiveGestures(e);return this.preventIf.some(e=>r[e])}isPointerTypeAllowed(e){return!this.pointerMode||this.pointerMode.length===0?!0:this.pointerMode.includes(e)}destroy(){let e=`${this.name}ChangeOptions`;this.element.removeEventListener(e,this.handleOptionsChange);let t=`${this.name}ChangeState`;this.element.removeEventListener(t,this.handleStateChange)}},Kd=class{activeGestures=new Map;registerActiveGesture(e,t){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);let n=this.activeGestures.get(e),r={gesture:t,element:e};n.add(r)}unregisterActiveGesture(e,t){let n=this.activeGestures.get(e);n&&(n.forEach(e=>{e.gesture===t&&n.delete(e)}),n.size===0&&this.activeGestures.delete(e))}getActiveGestures(e){let t=this.activeGestures.get(e);return t?Array.from(t).reduce((e,t)=>(e[t.gesture.name]=!0,e),{}):{}}isGestureActive(e,t){let n=this.activeGestures.get(e);return n?Array.from(n).some(e=>e.gesture===t):!1}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}},qd=class{pressedKeys=new Set;constructor(){this.initialize()}initialize(){typeof window>`u`||(window.addEventListener(`keydown`,this.handleKeyDown),window.addEventListener(`keyup`,this.handleKeyUp),window.addEventListener(`blur`,this.clearKeys))}handleKeyDown=e=>{this.pressedKeys.add(e.key)};handleKeyUp=e=>{this.pressedKeys.delete(e.key)};clearKeys=()=>{this.pressedKeys.clear()};areKeysPressed(e){return!e||e.length===0?!0:e.every(e=>e===`ControlOrMeta`?St?this.pressedKeys.has(`Meta`):this.pressedKeys.has(`Control`):this.pressedKeys.has(e))}
70destroy(){typeof window<`u`&&(window.removeEventListener(`keydown`,this.handleKeyDown),window.removeEventListener(`keyup`,this.handleKeyUp),window.removeEventListener(`blur`,this.clearKeys)),this.clearKeys()}},Jd=class{preventEventInterruption=!0;pointers=new Map;gestureHandlers=new Set;constructor(e){this.root=e.root??document.getRootNode({composed:!0})??document.body,this.touchAction=e.touchAction||`auto`,this.passive=e.passive??!1,this.preventEventInterruption=e.preventEventInterruption??!0,this.setupEventListeners()}registerGestureHandler(e){return this.gestureHandlers.add(e),()=>{this.gestureHandlers.delete(e)}}getPointers(){return this.pointers}setupEventListeners(){this.touchAction!==`auto`&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener(`pointerdown`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointermove`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointerup`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointercancel`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`forceCancel`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`blur`,this.handleInterruptEvents),this.root.addEventListener(`contextmenu`,this.handleInterruptEvents)}handleInterruptEvents=e=>{if(this.preventEventInterruption&&`pointerType`in e&&e.pointerType===`touch`){e.preventDefault();return}let t=new PointerEvent(`forceCancel`,{bubbles:!1,cancelable:!1}),n=this.pointers.values().next().value;if(this.pointers.size>0&&n){Object.defineProperties(t,{clientX:{value:n.clientX},clientY:{value:n.clientY},pointerId:{value:n.pointerId},pointerType:{value:n.pointerType}});for(let[e,t]of this.pointers.entries()){let n=Hd({},t,{type:`forceCancel`});this.pointers.set(e,n)}}this.notifyHandlers(t),this.pointers.clear()};handlePointerEvent=e=>{let{type:t,pointerId:n}=e;if(t===`pointerdown`||t===`pointermove`)this.pointers.set(n,this.createPointerData(e));else if(t===`pointerup`||t===`pointercancel`||t===`forceCancel`){this.pointers.set(n,this.createPointerData(e)),this.notifyHandlers(e),this.pointers.delete(n);return}this.notifyHandlers(e)};notifyHandlers(e){this.gestureHandlers.forEach(t=>t(this.pointers,e))}createPointerData(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,target:e.target,timeStamp:e.timeStamp,type:e.type,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height,pointerType:e.pointerType,srcEvent:e}}destroy(){this.root.removeEventListener(`pointerdown`,this.handlePointerEvent),this.root.removeEventListener(`pointermove`,this.handlePointerEvent),this.root.removeEventListener(`pointerup`,this.handlePointerEvent),this.root.removeEventListener(`pointercancel`,this.handlePointerEvent),this.root.removeEventListener(`forceCancel`,this.handlePointerEvent),this.root.removeEventListener(`blur`,this.handleInterruptEvents),this.root.removeEventListener(`contextmenu`,this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}},Yd=class{gestureTemplates=new Map;elementGestureMap=new Map;activeGesturesRegistry=new Kd;keyboardManager=new qd;constructor(e){this.pointerManager=new Jd({root:e.root,touchAction:e.touchAction,passive:e.passive}),e.gestures&&e.gestures.length>0&&e.gestures.forEach(e=>{this.addGestureTemplate(e)})}addGestureTemplate(e){this.gestureTemplates.set(e.name,e)}addGestures(e){e.forEach(e=>{this.addGestureTemplate(e)})}removeGestures(e){e.forEach(e=>{this.elementGestureMap.forEach((t,n)=>{this.unregisterElement(e,n)}),this.gestureTemplates.delete(e)})}setGestureOptions(e,t,n){let r=this.elementGestureMap.get(t);if(!r||!r.has(e))return;let i=new CustomEvent(`${e}ChangeOptions`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}setGestureState(e,t,n){let r=this.elementGestureMap.get(t);if(!r||!r.has(e))return;let i=new CustomEvent(`${e}ChangeState`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}registerElement(e,t,n){return Array.isArray(e)||(e=[e]),e.forEach(e
70=>{let r=n?.[e];this.registerSingleGesture(e,t,r)}),t}registerSingleGesture(e,t,n){let r=this.gestureTemplates.get(e);if(!r)return!1;this.elementGestureMap.has(t)||this.elementGestureMap.set(t,new Map);let i=this.elementGestureMap.get(t);i.has(e)&&this.unregisterElement(e,t);let a=r.clone(n);return a.init(t,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),i.set(e,a),!0}unregisterElement(e,t){let n=this.elementGestureMap.get(t);return!n||!n.has(e)?!1:(n.get(e).destroy(),n.delete(e),this.activeGesturesRegistry.unregisterElement(t),n.size===0&&this.elementGestureMap.delete(t),!0)}unregisterAllGestures(e){let t=this.elementGestureMap.get(e);if(t){for(let[,n]of t)n.destroy(),this.activeGesturesRegistry.unregisterElement(e);this.elementGestureMap.delete(e)}}destroy(){for(let[e]of this.elementGestureMap)this.unregisterAllGestures(e);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}},Xd=class extends Gd{unregisterHandler=null;originalTarget=null;constructor(e){super(e),this.minPointers=e.minPointers??1,this.maxPointers=e.maxPointers??1/0}init(e,t,n,r){super.init(e,t,n,r),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent)}updateOptions(e){super.updateOptions(e),this.minPointers=e.minPointers??this.minPointers,this.maxPointers=e.maxPointers??this.maxPointers}getBaseConfig(){return{requiredKeys:this.requiredKeys,minPointers:this.minPointers,maxPointers:this.maxPointers}}isWithinPointerCount(e,t){let n=this.getEffectiveConfig(t,this.getBaseConfig());return e.length>=n.minPointers&&e.length<=n.maxPointers}getRelevantPointers(e,t){return e.filter(e=>{if(!this.isPointerTypeAllowed(e.pointerType))return!1;let n=t===e.target||e.target===this.originalTarget||t===this.originalTarget||`contains`in t&&t.contains(e.target),r=`getRootNode`in t&&t.getRootNode()instanceof ShadowRoot&&e.srcEvent.composedPath().includes(t);return n||r})}destroy(){this.unregisterHandler&&=(this.unregisterHandler(),null),super.destroy()}};function Zd(e){if(e.length===0)return{x:0,y:0};let t=e.reduce((e,t)=>(e.x+=t.clientX,e.y+=t.clientY,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}}function Qd(e,t){return`${e}${t===`ongoing`?``:t.charAt(0).toUpperCase()+t.slice(1)}`}var $d=1e-5,ef=1e-5,tf=.15;function nf(e,t){let n=t.x-e.x,r=t.y-e.y,i={vertical:null,horizontal:null,mainAxis:null},a=rf(t,e),o=Math.abs(n)>Math.abs(r)?`horizontal`:`vertical`,s=a||o===`horizontal`?$d:tf,c=a?$d:o===`horizontal`?tf:$d;return Math.abs(n)>s&&(i.horizontal=n>0?`right`:`left`),Math.abs(r)>c&&(i.vertical=r>0?`down`:`up`),i.mainAxis=a?`diagonal`:o,i}function rf(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n)*180/Math.PI;return i>=-45+ef&&i<=-22.5+ef||i>=22.5+ef&&i<=45+ef||i>=135+ef&&i<=157.5+ef||i>=-157.5+ef&&i<=-135+ef}function af(e,t){if(!e.vertical&&!e.horizontal)return!1;if(t.length===0)return!0;let n=e.vertical===null||t.includes(e.vertical),r=e.horizontal===null||t.includes(e.horizontal);return n&&r}var of=class e extends Xd{state={lastPosition:null};constructor(e){super(e),this.threshold=e.threshold||0}clone(t){return new e(Hd({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}init(e,t,n,r){super.init(e,t,n,r),this.element.addEventListener(`pointerenter`,this.handleElementEnter),this.element.addEventListener(`pointerleave`,this.handleElementLeave)}destroy(){this.element.removeEventListener(`pointerenter`,this.handleElementEnter),this.element.removeEventListener(`pointerleave`,this.handleElementLeave),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter=e=>{if(e.pointerType!==`mouse`&&e.pointerType!==`pen`)return;let t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());if(this.isWithinPointerCount(n,e.pointerType)){this.isActive=!0;let t={x:e.clientX,y:e.clientY};this.state.lastPosition=t,this.emitMoveEvent(this.element,`start`,n,e),this.emitMoveEvent(this.element,`ongoing`,n,e)}};handleElementLeave=e=>{if(e.pointerType!==`mouse`&&e.pointerType!==`pen`||!this.isActive)return;let t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());this.emitMoveEvent(this.element,`end`,n,e),this.resetState()};handlePointerEvent=(e,t)=>
70{if(t.type!==`pointermove`||t.pointerType!==`mouse`&&t.pointerType!==`pen`)return;this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation();let n=Array.from(e.values()),r=this.getTargetElement(t);if(!r||!this.isWithinPointerCount(n,t.pointerType))return;if(this.shouldPreventGesture(r,t.pointerType)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(r,`end`,n,t);return}let i={x:t.clientX,y:t.clientY};this.state.lastPosition=i,this.isActive||(this.isActive=!0,this.emitMoveEvent(r,`start`,n,t)),this.emitMoveEvent(r,`ongoing`,n,t)};emitMoveEvent(e,t,n,r){let i=this.state.lastPosition||Zd(n),a=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,activeGestures:a,customData:this.customData},s=Qd(this.name,t),c=new CustomEvent(s,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(c)}},sf=class e extends Xd{state={startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null};constructor(e){super(e),this.direction=e.direction||[`up`,`down`,`left`,`right`],this.threshold=e.threshold||0}clone(t){return new e(Hd({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.direction=e.direction||this.direction,this.threshold=e.threshold??this.threshold}resetState(){this.isActive=!1,this.state=Hd({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent=(e,t)=>{let n=Array.from(e.values());if(t.type===`forceCancel`){this.cancel(t.target,n,t);return}let r=this.getTargetElement(t);if(!r)return;if(this.shouldPreventGesture(r,t.pointerType)){this.cancel(r,n,t);return}let i=this.getRelevantPointers(n,r);if(!this.isWithinPointerCount(i,t.pointerType)){this.cancel(r,i,t);return}switch(t.type){case`pointerdown`:if(!this.isActive&&!this.state.startCentroid)i.forEach(e=>{this.state.startPointers.set(e.pointerId,e)}),this.originalTarget=r,this.state.startCentroid=Zd(i),this.state.lastCentroid=Hd({},this.state.startCentroid);else if(this.state.startCentroid&&this.state.lastCentroid){let e=this.state.lastCentroid,t=Zd(i),n=t.x-e.x,r=t.y-e.y;this.state.startCentroid={x:this.state.startCentroid.x+n,y:this.state.startCentroid.y+r},this.state.lastCentroid=t,i.forEach(e=>{this.state.startPointers.has(e.pointerId)||this.state.startPointers.set(e.pointerId,e)})}break;case`pointermove`:if(this.state.startCentroid&&this.isWithinPointerCount(n,t.pointerType)){let e=Zd(i),n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y,o=Math.sqrt(n*n+a*a),s=nf(this.state.lastCentroid??this.state.startCentroid,e),c=this.state.lastCentroid?e.x-this.state.lastCentroid.x:0,l=this.state.lastCentroid?e.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&o>=this.threshold&&af(s,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:c,y:l},this.state.totalDeltaX+=c,this.state.totalDeltaY+=l,this.state.activeDeltaX+=c,this.state.activeDeltaY+=l,this.emitPanEvent(r,`start`,i,t,e),this.emitPanEvent(r,`ongoing`,i,t,e)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:c,y:l},this.state.totalDeltaX+=c,this.state.totalDeltaY+=l,this.state.activeDeltaX+=c,this.state.activeDeltaY+=l,this.emitPanEvent(r,`ongoing`,i,t,e)),this.state.lastCentroid=e,this.state.lastDirection=s}break;case`pointerup`:case`pointercancel`:case`forceCancel`:if(this.isActive&&this.state.movementThresholdReached){let e=i.filter(e=>e.type!==`pointerup`&&e.type!==`pointercancel`);if(!this.isWithinPointerCount(e,t.pointerType)){let e=this.state.lastCentroid||this.state.startCentroid;t.type===`pointercancel`&&this.emitPanEvent(r,`cancel`,i,t,e),this.emitPanEvent(r,`end`,i,t,e),this.resetState()}else if(e.length>=1&&this.state.lastCentroid){let t=Zd(e),n=t.x-this.state.lastCentroid.x,r=t.y-this.state.lastCentroid.y;this.state.startCentroid={x:this.state.startCentroid.x+n,y:this.state.startCentroid.y+r},this.state.lastCentroid=t;let a=i.find(e=>e.type===`pointerup`||e.type===`pointercancel`)?.pointerId;a!==void 0&&this.state.startPointers.delete(a)}}else this.resetState();break;default:break}};emitPanEvent(e,t,n,r,i){if(!this.state.startCentroid)return;let a=this.state.lastDeltas?.x??0,o=this.state.lastDeltas?.y??0,s=this.state.startPointers.values().next().value,c=s?(r.timeStamp-s.timeStamp)/1e3:0,l=c>0?a/c:0,u=c>0?o/c:0,d=Math.sqrt(l*l+u*u),f=this.gesturesRegistry.getActiveGestures(e),p={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,deltaX:a,deltaY:o,direction:this.state.lastDirection,velocityX:l,velocityY:u,velocity:d,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:f,customData:this.customData},m=Qd(this.name,t),h=new CustomEvent(m,{bubbles:!0,cancelable:!0,composed:!0,detail:p});e.dispatchEvent(h),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancel(e,t,n){if(this.isActive){let r=e??this.element;this.emitPanEvent(r,`cancel`,t,n,this.state.lastCentroid),this.emitPanEvent(r,`end`,t,n,this.state.lastCentroid)}this.resetState()}},cf=class e extends Xd{state={startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1};constructor(e){super(e),this.duration=e.duration??500,this.maxDistance=e.maxDistance??10}clone(t){return new e(Hd({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:stru
70cturedClone(this.pointerOptions)},t))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.duration=e.duration??this.duration,this.maxDistance=e.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=Hd({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){this.state.timerId!==null&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent=(e,t)=>{let n=Array.from(e.values());if(t.type===`forceCancel`){this.cancelPress(t.target,n,t);return}let r=this.getTargetElement(t);if(!r)return;if(this.shouldPreventGesture(r,t.pointerType)){this.isActive&&this.cancelPress(r,n,t);return}let i=this.getRelevantPointers(n,r);if(!this.isWithinPointerCount(i,t.pointerType)){this.isActive&&this.cancelPress(r,i,t);return}switch(t.type){case`pointerdown`:!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=Zd(i),this.state.lastPosition=Hd({},this.state.startCentroid),this.state.startTime=t.timeStamp,this.isActive=!0,this.originalTarget=r,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;let e=this.state.lastPosition;this.emitPressEvent(r,`start`,i,t,e),this.emitPressEvent(r,`ongoing`,i,t,e)}},this.duration));break;case`pointermove`:if(this.isActive&&this.state.startCentroid){let e=Zd(i);this.state.lastPosition=e;let n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y;Math.sqrt(n*n+a*a)>this.maxDistance&&this.cancelPress(r,i,t)}break;case`pointerup`:if(this.isActive){if(this.state.pressThresholdReached){let e=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(r,`end`,i,t,e)}this.resetState()}break;case`pointercancel`:case`forceCancel`:this.cancelPress(r,i,t);break;default:break}};emitPressEvent(e,t,n,r,i){let a=this.gesturesRegistry.getActiveGestures(e),o=r.timeStamp-this.state.startTime,s={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,x:i.x,y:i.y,duration:o,activeGestures:a,customData:this.customData},c=Qd(this.name,t),l=new CustomEvent(c,{bubbles:!0,cancelable:!0,composed:!0,detail:s});e.dispatchEvent(l),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancelPress(e,t,n){if(this.isActive&&this.state.pressThresholdReached){let r=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(e??this.element,`cancel`,t,n,r),this.emitPressEvent(e??this.element,`end`,t,n,r)}this.resetState()}},lf=class e extends Xd{state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null,multiTapResetTimeoutId:null};constructor(e){super(e),this.maxDistance=e.maxDistance??10,this.taps=e.taps??1}clone(t){return new e(Hd({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.maxDistance=e.maxDistance??this.maxDistance,this.taps=e.taps??this.taps}resetState(){this.isActive=!1,this.state.multiTapResetTimeoutId!==null&&clearTimeout(this.state.multiTapResetTimeoutId),this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null,multiTapResetTimeoutId:null}}handlePointerEvent=(e,t)=>{let n=Array.from(e.values()),r=this.getTargetElement(t);if(!r)return;let i=this.getRelevantPointers(n,r);if(this.shouldPreventGesture(r,t.pointerType)||!this.isWithinPointerCount(i,t.pointerType)){this.isActive&&this.cancelTap(r,i,t);return}switch(t.type){case`pointerdown`:this.isActive||(this.state.startCentroid=Zd(i),this.state.lastPosition=Hd({},this.state.startCentroid),this.isActive=!0,this.originalTarget=r);break;case`pointermove`:if(this.isActive&&this.state.startCentroid){let e=Zd(i);this.state.lastPosition=e;let n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y;Math.sqrt(n*n+a*a)>this.maxDistance&&this.cancelTap(r,i,t)}break;case`pointerup`:if(this.isActive){this.state.currentTapCount+=1;let e=this.state.lastPosition||this.state.startCentroid;if(!e){this.cancelTap(r,i,t);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(r,i,t,e),this.resetState()):(this.state.lastTapTime=t.timeStamp,this.isActive=!1,this.state.startCentroid=null,this.state.multiTapResetTimeoutId!==null&&clearTimeout(this.state.multiTapResetTimeoutId),this.state.multiTapResetTimeoutId=setTimeout(()=>{this.state.multiTapResetTimeoutId=null,this.state.currentTapCount>0&&this.state.currentTapCount<this.taps&&(this.state.currentTapCount=0)},300))}break;case`pointercancel`:case`forceCancel`:this.cancelTap(r,i,t);break;default:break}};fireTapEvent(e,t,n,r){let i=this.gesturesRegistry.getActiveGestures(e),a={gestureName:this.name,centroid:r,target:n.target,srcEvent:n,phase:`end`,pointers:t,timeStamp:n.timeStamp,x:r.x,y:r.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},o=new CustomEvent(this.name,{bubbles:!0,cancelable:!0,composed:!0,detail:a});e.dispatchEvent(o),this.preventDefault&&n.preventDefault(),this.stopPropagation&&n.stopPropagation()}cancelTap(e,t,n){if(this.state.startCentroid||this.state.lastPosition){let r=this.state.lastPosition||this.state.startCentroid,i=this.gesturesRegistry.getActiveGestures(e),a={gestureName:this.name,centroid:r,target:n.target,srcEvent:n,phase:`cancel`,pointers:t,timeStamp:n.timeStamp,x:r.x,y:r.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},o=Qd(this.name,`cancel`),s=new CustomEvent(o,{bubbles:!0,cancelable:!0,composed:!0,detail:a});e.dispatchEvent(s)}this.resetState()}},uf=e=>e.preventDefault(),df=({instance:e})=>{let{chartsLayerContainerRef:t}=e,n=q.useRef(null);q.useEffect(()=>{let e=t.current;n.current||=new Yd({gestures:[new sf({name:`pan`,threshold:0,maxPointers:1}),new of({name:`move`,preventIf:[`pan`,`zoomPinch`,`zoomPan`]}),new lf({name:`tap`,preventIf:[`pan`,`zoomPinch`,`zoomPan`]}),new cf({name:`quickPress`,duration:50}),new sf({name:`brush`,threshold:0,maxPointers:1})]});let r=n.current;if(!(!e||!r))return r.registerElement([`pan`,`move`,`tap`,`quickPress`,`brush`],e),()=>{r.unregisterAllGestures(e)}},[t,n]);let r=q.useCallback((e,n,r)=>{let i=t.current;return i?.addEventListener(e,n,r),{cleanup:()=>i?.removeEventListener(e,n,r)}},[t]),i=q.useCallback((e,r)=>{let i=t.current,a=n.current;!a||!i||a.setGestureOptions(e,i,r??{})},[t,n]);return q.useEffect(()=>{let e=t.current;return e?.addEventListener(`gesturestart`,uf),e?.addEventListener(`gesturechange`,uf),e?.addEventListener(`gestureend`,uf),()=>{e?.removeEventListener(`gesturestart`,uf),e?.removeEventListener(`gesturechange`,uf),e?.removeEventListener(`gestureend`,uf)}},[t]),{instance:{addInteractionListener:r,updateZoomInteractionListeners:i,registerGestures:q.useCallback(e=>{let r=t.current,i=n.current;if(!i||!r)return()=>{};let a=e.map(e=>e.name);return i.addGestures(e),i.registerElement(a,r),()=>{i.removeGestures(a)}},[t,n])}}};df.params={},df.getInitialState=()=>({});var ff=[Pd,zd,bu,Fd,Nd,Au,df,Cl],pf=[`apiRef`],mf=e=>{let{plugins:t}=e,n=X(e.props,pf),r={};
70t.forEach(e=>{Object.assign(r,e.params)});let i={};return Object.keys(n).forEach(e=>{let t=n[e];r[e]&&(i[e]=t)}),t.reduce((e,t)=>t.getDefaultizedParams?t.getDefaultizedParams({params:e}):e,i)},hf=0;function gf(e,t){let n=il(),r=q.useMemo(()=>[...ff,...e],[e]),i=mf({plugins:r,props:t});i.id=i.id??n;let a=q.useRef({}).current,o=vf(t.apiRef),s=q.useRef(null);if(s.current==null){hf+=1;let e={cacheKey:{id:hf}};r.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(i,e))}),s.current=new Sl(e)}return r.forEach(e=>{let t=e({instance:a,params:i,plugins:r,store:s.current});t.publicAPI&&Object.assign(o.current,t.publicAPI),t.instance&&Object.assign(a,t.instance)}),{contextValue:q.useMemo(()=>({store:s.current,publicAPI:o.current,instance:a}),[a,o])}}function _f(e){return e.current??={},e}function vf(e){let t=q.useRef({});return e?_f(e):t}var yf=q.createContext(null),bf=`hover`,xf={top:5,bottom:5,left:5,right:5},Sf=(e,t,n)=>{let r=n??!1;return e===`y`&&(t===`band`||t===`point`)?!r:r},Cf={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:`keep`,reverse:!1,slider:{enabled:!1,preview:!1,size:28,showTooltip:bf}},wf=(e,t,n,r)=>{if(e)return e===!0?Y({axisId:t,axisDirection:n},Cf,{reverse:r??!1}):Y({axisId:t,axisDirection:n},Cf,{reverse:r??!1},e,{slider:Y({},Cf.slider,{size:e.slider?.preview??Cf.slider.preview?48:28},e.slider)})};function Tf(e,t,n){let r={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:Ol,scaleType:`linear`}]).map((e,i)=>{let a=e.dataKey,o=i===0?`bottom`:`none`,s=e.position??o,c=25+(e.label?20:0),l=e.id??`defaultized-x-axis-${i}`,u=e.height??c,d=Y({offset:r[s]},e,{id:l,position:s,height:u,zoom:wf(e.zoom,l,`x`,Sf(`x`,e.scaleType,e.reverse))});if(s!==`none`&&(r[s]+=(u===`auto`?c:u)+n,d.zoom?.slider.enabled&&(r[s]+=d.zoom.slider.size)),e.data!==void 0||a===void 0&&!e.valueGetter)return d;if(t===void 0)throw Error(N(37));return Y({},d,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])})})}function Ef(e,t,n){let r={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:kl,scaleType:`linear`}]).map((e,i)=>{let a=e.dataKey,o=i===0?`left`:`none`,s=e.position??o,c=45+(e.label?20:0),l=e.id??`defaultized-y-axis-${i}`,u=e.width??c,d=Y({offset:r[s]},e,{id:l,position:s,width:u,zoom:wf(e.zoom,l,`y`,Sf(`y`,e.scaleType,e.reverse))});if(s!==`none`&&(r[s]+=(u===`auto`?c:u)+n,d.zoom?.slider.enabled&&(r[s]+=d.zoom.slider.size)),e.data!==void 0||a===void 0&&!e.valueGetter)return d;if(t===void 0)throw Error(N(38));return Y({},d,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])})})}function Df(e,t){return function(n,r){if(r.location===`tick`){let t=r.scale.domain();return t[0]===t[1]?r.scale.tickFormat(1)(n):r.scale.tickFormat(e)(n)}return r.location===`zoom-slider-tooltip`?t.tickFormat(2)(n):`${n}`}}function Of(e){return e.type===`piecewise`?zt(e.thresholds,e.colors).unknown(e.unknownColor??null):ct([e.min??0,e.max??100],e.color).unknown(e.unknownColor??null)}function kf(e){return e.values?at(e.values,e.colors).unknown(e.unknownColor??null):at(e.colors.map((e,t)=>t),e.colors).unknown(e.unknownColor??null)}function Af(e){return e.type===`ordinal`?kf(e):Of(e)}var jf=e=>e?.[0]instanceof Date;function Mf(e,t,n){let r=it(e,t);return(e,{location:t})=>t===`tick`?r.tickFormat(n)(e):`${e.toLocaleString()}`}var Nf=(e,t,n,r)=>{let i=new Set;return Object.keys(t).filter(qu).forEach(a=>{let o=n[a]?.series??{},s=t[a].axisTooltipGetter?.(o);s!==void 0&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i};function Pf(e){return e.bandwidth!==void 0}function Ff(e){return Pf(e)&&e.paddingOuter!==void 0}function If(e,t,n){let r=t===`x`?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n?[r[1],r[0]]:r}function Lf(e,t){return e.step()*t<.1}function Rf(e,t,n){let r=n===`x`?e.height:e.width;if(r===`auto`){let r=t?.[e.id];return r===void 0?(n===`x`?25:45)+(e.label?20:0):r}return r??0}var zf=.2,Bf=.1;function Vf(e,t,n,r){let i={},a={};for(let o of e){let e=o.position;if(e&&(i[e]??=0,a[o.id]=i[e],e!==`none`)){let a=Rf(o,t,n);i[e]+=a+r;let s=o.zoom;s?.slider.enabled&&(i[e]+=s.slider.size)}}return a}function Hf({scales:e,drawingArea:t,formattedSeries:n,axis:r,seriesConfig:i,axisDirection:a,zoomMap:o,domains:s,autoSizes:c,axesGap:l=0}){if(r===void 0)return{axis:{},axisIds:[]};let u=Nf(a,i,n,r[0].id),d=Vf(r,c,a,l),f={};return r.forEach(n=>{let r=n,i=e[r.id],l=o?.get(r.id),p=l?[l.start,l.end]:[0,100],m=If(t,a,r.reverse??!1),h=s[r.id].tickNumber,g=!r.ignoreTooltip&&u.has(r.id),_=nd(h,p),v=Rf(r,c,a),y=r.data??[],b=d[r.id]??r.offset??0;if(Pf(i)){let e=a===`y`?[m[1],m[0]]:m;if(Ff(i)&&Lu(r)){let e=r.categoryGapRatio??zf,t=Lf(i,e),n=t?0:e,o=t?0:r.barGapRatio??Bf;
70f[r.id]=Y({categoryGapRatio:n,barGapRatio:o,triggerTooltip:g},r,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scale:t?i.copy().padding(0):i,tickNumber:_,colorScale:r.colorMap&&(r.colorMap.type===`ordinal`?kf(Y({values:r.data},r.colorMap)):Af(r.colorMap))})}if(Ru(r)&&(f[r.id]=Y({triggerTooltip:g},r,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scale:i,tickNumber:_,colorScale:r.colorMap&&(r.colorMap.type===`ordinal`?kf(Y({values:r.data},r.colorMap)):Af(r.colorMap))})),jf(r.data)){let t=Mf(r.data,e,r.tickNumber);f[r.id].valueFormatter=r.valueFormatter??t}return}if(r.scaleType===`band`||r.scaleType===`point`)return;let x=r,S=x.scaleType??`linear`;f[r.id]=Y({triggerTooltip:g},x,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scaleType:S,scale:i,tickNumber:_,colorScale:x.colorMap&&Of(x.colorMap),valueFormatter:r.valueFormatter??Df(_,iu(S,m.map(e=>i.invert(e)),m))})}),{axis:f,axisIds:r.map(({id:e})=>e)}}function Uf(e){return e!=null}function Wf(e,t,n,r){let i=e?.length??0,a=Math.floor(t*i/100),o=Math.ceil(n*i/100);return function(t,n){return(t[r]??e?.[n])==null?!0:n>=a&&n<o}}function Gf(e,t,n,r,i){let a=e[0].valueOf(),o=e[1].valueOf(),s=a+t*(o-a)/100,c=a+n*(o-a)/100;return function(e,t){let n=e[r]??i?.[t];return n==null?!0:n>=s&&n<=c}}var Kf=e=>({currentAxisId:t,seriesXAxisId:n,seriesYAxisId:r,isDefaultAxis:i})=>(a,o)=>!(t===n?r:n)||i?Object.values(e??{})[0]?.(a,o)??!0:[r,n].filter(e=>e!==t).map(t=>e[t??``]).filter(Uf).every(e=>e(a,o)),qf=e=>(t=[])=>t.reduce((t,n)=>{let{zoom:r,id:i,reverse:a,scaleType:o}=n,s=wf(r,i,e,Sf(e,o,a));return s&&(t[i]=s),t},{}),Jf=.2;function Yf(e,t,n){let r=t===`x`?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}var Xf=new WeakMap;function Zf(e,t,n){let r=Xf.get(e);r||(r=new Map,Xf.set(e,r));let i=r.get(t);return i||(i=n(),r.set(t,i)),i}function Qf(e,t){let n=[0,1];if(Lu(e)){let r=e.categoryGapRatio??Jf;return Zf(t,`band:${r}`,()=>eu(t,n).paddingInner(r).paddingOuter(r/2))}if(Ru(e))return Zf(t,`point`,()=>tu(t,n));let r=iu(e.scaleType??`linear`,t,n);return Bu(e)&&e.constant!=null&&r.constant(e.constant),r}var $f=(e,t)=>{let n=e[1]-e[0],r=t[1]-t[0];return[e[0]-t[0]*n/r,e[1]+(100-t[1])*n/r]},ep=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],tp=3,np=class e{static from(t,n=0){if(n%8!=0)throw Error(N(13));if(!t||t.byteLength===void 0||t.buffer)throw Error(N(14));let[r,i]=new Uint8Array(t,n+0,2);if(r!==251)throw Error(N(15));let a=i>>4;if(a!==tp)throw Error(N(16,a,tp));let o=ep[i&15];if(!o)throw Error(N(17));let[s]=new Uint16Array(t,n+2,1),[c]=new Uint32Array(t,n+4,1);return new e(c,s,o,void 0,t,n)}constructor(e,t=16,n=Float64Array,r=ArrayBuffer,i,a=0){if(e===void 0)throw Error(N(18));if(isNaN(e)||e<=0)throw Error(N(19,e));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.byteOffset=a;let o=e,s=o;this._levelBounds=[o*4];do o=Math.ceil(o/this.nodeSize),s+=o,this._levelBounds.push(s*4);while(o!==1);this.ArrayType=n,this.IndexArrayType=s<16384?Uint16Array:Uint32Array;let c=ep.indexOf(n),l=s*4*n.BYTES_PER_ELEMENT;if(c<0)throw Error(N(20,n));if(i)this.data=i,this._boxes=new n(i,a+8,s*4),this._indices=new this.IndexArrayType(i,a+8+l,s),this._pos=s*4,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{let i=this.data=new r(8+l+s*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new n(i,8,s*4),this._indices=new this.IndexArrayType(i,8+l,s),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(i,0,2).set([251,(tp<<4)+c]),new Uint16Array(i,2,1)[0]=t,new Uint32Array(i,4,1)[0]=e}this._queue=new Qt}add(e,t,n=e,r=t){let i=this._pos>>2,a=this._boxes;return this._indices[i]=i,a[this._pos++]=e,a[this._pos++]=t,a[this._pos++]=n,a[this._pos++]=r,e<this.minX&&(this.minX=e),t<this.minY&&(this.minY=t),n>this.maxX&&(this.maxX=n),r>this.maxY&&(this.maxY=r),i}finish(){if(this._pos>>2!==this.numItems)throw Error(N(21,this._pos>>2,this.numItems));let e=this._boxes;if(this.numItems<=this.nodeSize){e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,e[this._pos++]=this.maxY;return}
70let t=this.maxX-this.minX||1,n=this.maxY-this.minY||1,r=new Uint32Array(this.numItems),i=65535;for(let a=0,o=0;a<this.numItems;a++){let s=e[o++],c=e[o++],l=e[o++],u=e[o++];r[a]=sp(Math.floor(i*((s+l)/2-this.minX)/t),Math.floor(i*((c+u)/2-this.minY)/n))}ap(r,e,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,n=0;t<this._levelBounds.length-1;t++){let r=this._levelBounds[t];for(;n<r;){let t=n,i=e[n++],a=e[n++],o=e[n++],s=e[n++];for(let t=1;t<this.nodeSize&&n<r;t++)i=Math.min(i,e[n++]),a=Math.min(a,e[n++]),o=Math.max(o,e[n++]),s=Math.max(s,e[n++]);this._indices[this._pos>>2]=t,e[this._pos++]=i,e[this._pos++]=a,e[this._pos++]=o,e[this._pos++]=s}}}search(e,t,n,r,i){if(this._pos!==this._boxes.length)throw Error(N(22));let a=this._boxes.length-4,o=[],s=[];for(;a!==void 0;){let c=Math.min(a+this.nodeSize*4,ip(a,this._levelBounds));for(let l=a;l<c;l+=4){if(n<this._boxes[l]||r<this._boxes[l+1]||e>this._boxes[l+2]||t>this._boxes[l+3])continue;let c=this._indices[l>>2]|0;a>=this.numItems*4?o.push(c):(i===void 0||i(c))&&(s.push(c),s.push(this._boxes[l]),s.push(this._boxes[l+1]))}a=o.pop()}return s}neighbors(e,t,n=1/0,r=1/0,i,a=rp){if(this._pos!==this._boxes.length)throw Error(N(23));let o=this._boxes.length-4,s=this._queue,c=[];outer:for(;o!==void 0;){let l=Math.min(o+this.nodeSize*4,ip(o,this._levelBounds));for(let n=o;n<l;n+=4){let c=this._indices[n>>2]|0,l=this._boxes[n],u=this._boxes[n+1],d=this._boxes[n+2],f=this._boxes[n+3],p=a(e<l?l-e:e>d?e-d:0,t<u?u-t:t>f?t-f:0);p>r||(o>=this.numItems*4?s.push(c<<1,p):(i===void 0||i(c))&&s.push((c<<1)+1,p))}for(;s.length&&s.peek()&1;)if(s.peekValue()>r||(c.push(s.pop()>>1),c.length===n))break outer;o=s.length?s.pop()>>1:void 0}return s.clear(),c}};function rp(e,t){return e*e+t*t}function ip(e,t){let n=0,r=t.length-1;for(;n<r;){let i=n+r>>1;t[i]>e?r=i:n=i+1}return t[n]}function ap(e,t,n,r,i,a){if(Math.floor(r/a)>=Math.floor(i/a))return;let o=e[r],s=e[r+i>>1],c=e[i],l=c,u=Math.max(o,s);c>u?l=u:u===o?l=Math.max(s,c):u===s&&(l=Math.max(o,c));let d=r-1,f=i+1;for(;;){do d++;while(e[d]<l);do f--;while(e[f]>l);if(d>=f)break;op(e,t,n,d,f)}ap(e,t,n,r,f,a),ap(e,t,n,f+1,i,a)}function op(e,t,n,r,i){let a=e[r];e[r]=e[i],e[i]=a;let o=4*r,s=4*i,c=t[o],l=t[o+1],u=t[o+2],d=t[o+3];t[o]=t[s],t[o+1]=t[s+1],t[o+2]=t[s+2],t[o+3]=t[s+3],t[s]=c,t[s+1]=l,t[s+2]=u,t[s+3]=d;let f=n[r];n[r]=n[i],n[i]=f}function sp(e,t){let n=e^t,r=65535^n,i=65535^(e|t),a=e&(t^65535),o=n|r>>1,s=n>>1^n,c=i>>1^r&a>>1^i,l=n&i>>1^a>>1^a;n=o,r=s,i=c,a=l,o=n&n>>2^r&r>>2,s=n&r>>2^r&(n^r)>>2,c^=n&i>>2^r&a>>2,l^=r&i>>2^(n^r)&a>>2,n=o,r=s,i=c,a=l,o=n&n>>4^r&r>>4,s=n&r>>4^r&(n^r)>>4,c^=n&i>>4^r&a>>4,l^=r&i>>4^(n^r)&a>>4,n=o,r=s,i=c,a=l,c^=n&i>>8^r&a>>8,l^=r&i>>8^(n^r)&a>>8,n=c^c>>1,r=l^l>>1;let u=e^t,d=r|65535^(u|n);return u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,d=(d|d<<8)&16711935,d=(d|d<<4)&252645135,d=(d|d<<2)&858993459,d=(d|d<<1)&1431655765,(d<<1|u)>>>0}var cp=e=>typeof e.size==`function`;function lp(e){let[t,n]=e;return e=>t+Math.max(Math.min(e,1),0)*(n-t)}function up(e){if(e.type===`piecewise`)return zt(e.thresholds,e.sizes);if(cp(e))return ct([e.min??0,e.max??100],e.size);switch(e.interpolator??`sqrt`){case`log`:return st([e.min??0,e.max??100],lp(e.size));case`linear`:return ct([e.min??0,e.max??100],lp(e.size));default:return _t([e.min??0,e.max??100],lp(e.size))}}function dp(e){return e.values?at(e.values,e.sizes).unknown(e.unknownSize??null):at(e.sizes.map((e,t)=>t),e.sizes).unknown(e.unknownSize??null)}function fp(e){return e.type===`ordinal`?dp(e):up(e)}function pp(e,t){return e.id===void 0?Y({id:t},e):e}function mp(e){return e.colorMap?Y({},e,{colorScale:e.colorMap.type===`ordinal`&&e.data?kf(Y({values:e.data},e.colorMap)):Af(e.colorMap.type===`continuous`?Y({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function hp(e){return e.sizeMap?Y({},e,{sizeScale:e.sizeMap.type===`ordinal`?dp(Y({values:e.data},e.sizeMap)):fp(e.sizeMap.type===`continuous`?Y({min:e.min,max:e.max},e.sizeMap):e.sizeMap)}):e}function gp(e,t){if(!e||e.length===0)return{axis:{},axisIds:[]};let n={},r=[];return e.forEach((e,i)=>{let a=e.dataKey,o=e.id??`defaultized-z-axis-${i}`;if(e.data!==void 0||a===void 0&&!e.valueGetter){n[o]=hp(mp(pp(e,o))),r.push(o);return}if(t===void 0)throw Error(N(41));n[o]=hp(mp(pp(Y({},e,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])}),o))),r.push(o)}),{axis:n,axisIds:r}}var _p=({params:e,store:t})=>{let{zAxis:n,dataset:r}=e,i=q.useRef(!0);return q.useEffect(()=>{if(i.current){i.current=!1;return}t.set(`zAxis`,gp(n,r))},[n,r,t]),{}};_p.params={zAxis:!0,dataset:!0},_p.getInitialState=e=>({zAxis:gp(e.zAxis,e.dataset)});var vp=Z(e=>e,e=>e.zAxis),yp=(e,t)=>{let n=t?.sizeScale;return n?r=>{if(t?.data?.[r]!==void 0){let e=n(t.data[r]);if(e!=null&&!Number.isNaN(e))return e}let i=e.data[r];if(i!=null){let e=n(i.sizeValue);if(e!=null&&!Number.isNaN(e))return e}return e.markerSize}:()=>e.markerSize},bp=e=>{let t=new Map;
70return e.forEach(e=>{t.set(e.axisId,e)}),t},xp=e=>e.zoom,Sp=Z(xp,e=>e?.isInteracting),Cp=Q(xp,function(e){return e?.zoomData&&bp(e?.zoomData)}),wp=Z(Cp,(e,t)=>e?.get(t)),Tp=Q(jl,Ml,function(e,t){return Y({},qf(`x`)(e),qf(`y`)(t))});Z(Tp,(e,t)=>e[t]);var Ep=Z(Ed,function(e){return rd(e.width)}),Dp=Z(Ed,function(e){return rd(e.height)}),Op=Q(jl,Fu,Ep,Qu,function(e,t,n,r){return{axes:e,domains:cd(e,t,n,r,`x`)}}),kp=Q(Ml,Fu,Dp,$u,function(e,t,n,r){return{axes:e,domains:cd(e,t,n,r,`y`)}}),Ap=Q(Cp,Tp,Op,kp,function(e,t,{axes:n,domains:r},{axes:i,domains:a}){if(!e||!t)return;let o=!1,s={},c=[...n??[],...i??[]];for(let i=0;i<c.length;i+=1){let l=c[i];if(!t[l.id]||t[l.id].filterMode!==`discard`)continue;let u=e.get(l.id);if(u===void 0||u.start<=0&&u.end>=100)continue;let d=i<(n?.length??0)?`x`:`y`;if(l.scaleType===`band`||l.scaleType===`point`)s[l.id]=Wf(l.data,u.start,u.end,d);else{let{domain:e}=d===`x`?r[l.id]:a[l.id];s[l.id]=Gf(e,u.start,u.end,d,l.data)}o=!0}if(o)return Kf(s)}),jp=Q(Fu,xu,Cp,Tp,Ap,Op,function(e,t,n,r,i,{axes:a,domains:o}){let s={};return a?.forEach((a,c)=>{let l=o[a.id].domain;if(Lu(a)||Ru(a)){s[a.id]=l;return}let u=n?.get(a.id),d=r?.[a.id],f=u===void 0&&!d?i:void 0;if(!f){s[a.id]=l;return}let p=o[a.id].tickNumber,m=Xu(a,`x`,t,c,e,f);s[a.id]=od(a,`x`,c,e,m,p)}),s}),Mp=Q(Fu,xu,Cp,Tp,Ap,kp,function(e,t,n,r,i,{axes:a,domains:o}){let s={};return a?.forEach((a,c)=>{let l=o[a.id].domain;if(Lu(a)||Ru(a)){s[a.id]=l;return}let u=n?.get(a.id),d=r?.[a.id],f=u===void 0&&!d?i:void 0;if(!f){s[a.id]=l;return}let p=o[a.id].tickNumber,m=Xu(a,`y`,t,c,e,f);s[a.id]=od(a,`y`,c,e,m,p)}),s}),Np=Q(jl,jp,function(e,t){let n={};return e?.forEach(e=>{let r=e,i=t[r.id];n[r.id]=Qf(r,i)}),n}),Pp=Q(Ml,Mp,function(e,t){let n={};return e?.forEach(e=>{let r=e,i=t[r.id];n[r.id]=Qf(r,i)}),n}),Fp=Q(jl,Np,Ed,Cp,function(e,t,n,r){let i={};return e?.forEach(e=>{let a=e,o=r?.get(a.id),s=o?[o.start,o.end]:[0,100],c=Yf(n,`x`,a),l=t[a.id].copy(),u=$f(c,s);l.range(u),i[a.id]=l}),i}),Ip=Q(Ml,Pp,Ed,Cp,function(e,t,n,r){let i={};return e?.forEach(e=>{let a=e,o=r?.get(a.id),s=o?[o.start,o.end]:[0,100],c=Yf(n,`y`,a),l=t[a.id].copy(),u=$f(Pf(l)?c.reverse():c,s);l.range(u),i[a.id]=l}),i}),Lp=Q(Ed,Fu,xu,Cp,Op,Fp,_d,Nl,function(e,t,n,r,{axes:i,domains:a},o,s,c){return Hf({scales:o,drawingArea:e,formattedSeries:t,axis:i,seriesConfig:n,axisDirection:`x`,zoomMap:r,domains:a,autoSizes:s,axesGap:c})}),Rp=Q(Ed,Fu,xu,Cp,kp,Ip,yd,Nl,function(e,t,n,r,{axes:i,domains:a},o,s,c){return Hf({scales:o,drawingArea:e,formattedSeries:t,axis:i,seriesConfig:n,axisDirection:`y`,zoomMap:r,domains:a,autoSizes:s,axesGap:c})});Z(Lp,Rp,(e,t,n)=>e?.axis[n]??t?.axis[n]),Z(jl,Ml,(e,t,n)=>{let r=e?.find(e=>e.id===n)??t?.find(e=>e.id===n)??null;if(r)return r});var zp=Z(jl,e=>e[0].id),Bp=Z(Ml,e=>e[0].id),Vp=new Map,Hp=()=>Vp,Up=Q(Fu,Np,Pp,zp,Bp,vp,function(e,t,n,r,i,a){let o=e.scatter,s=new Map;if(!o)return s;let c=a?.axis??{},l=a?.axisIds??[];return o.seriesOrder.forEach(e=>{let a=o.series[e],{data:u,xAxisId:d=r,yAxisId:f=i}=a;if(u.length===0)return;let p=new np(u.length),m=c[a.sizeAxisId??l[0]],h=!m||!m.sizeScale,g=h?a.markerSize??0:yp(a,m),_=h?g:0,v=t[d],y=n[f];for(let e=0;e<u.length;e+=1)h||(_=Math.max(_,g(e))),p.add(v(u[e].x),y(u[e].y));p.finish(),s.set(e,{flatbush:p,getItemRadius:g,maxItemRadius:_})}),s});function Wp(e){return e instanceof Date?e.getTime():e}function Gp(e,t){return e.findIndex((n,r)=>{let i=Wp(n);return i>t&&(r===0||Math.abs(t-i)<=Math.abs(t-Wp(e[r-1])))||i<=t&&(r===e.length-1||Math.abs(t-i)<Math.abs(t-Wp(e[r+1])))})}function Kp(e,t){let{scale:n,data:r,reverse:i}=e;if(!Pf(n))return r===void 0?-1:Gp(r,Wp(n.invert(t)));let a=n.bandwidth()===0?Math.floor((t-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((t-Math.min(...n.range()))/n.step());return a<0||a>=r.length?-1:i?r.length-1-a:a}function qp(e,t,n,r){if(!Pf(e)){if(r===null){let t=e.invert(n);return Number.isNaN(t)?null:t}return t[r]}return r===null||r<0||r>=t.length?null:t[r]}function Jp(e,t){let n=e.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top;if(typeof DOMMatrix>`u`)return{x:r,y:i,z:0,w:1,matrixTransform:()=>({x:r,y:i,z:0,w:1})};let a=getComputedStyle(e),o=new DOMMatrix(a.transform);return new DOMPoint(r,i).matrixTransform(o.inverse())}var Yp=({store:e})=>({instance:{cleanInteraction:el(function(){e.update({interaction:Y({},e.state.interaction,{pointer:null})})}),setLastUpdateSource:el(function(t){e.state.interaction.lastUpdate!==t&&e.set(`interaction`,Y({},e.state.interaction,{lastUpdate:t}))}),setPointerCoordinate:el(function(t){e.set(`interaction`,Y({},e.state.interaction,{pointer:t,lastUpdate:t===null?e.state.interaction.lastUpdate:`pointer`}))}),handlePointerEnter:el(function(t){e.set(`interaction`,Y({},e.state.interaction,{pointerType:t.pointerType}))}),handlePointerLeave:el(function(){e.set(`interaction`,Y({},e.state.interaction,{pointerType:null}))})}});Yp.getInitialState=()=>({interaction:{item:null,pointer:null,lastUpdate:`pointer`,pointerType:null}}),Yp.params={};var Xp=e=>e.interaction,Zp=Z(Xp,e=>e!==void 0),Qp=Z(Xp,e=>e?.pointer??null),$p=Z(Qp,e=>e&&e.x),em=Z(Qp,e=>e&&e.y),tm=Z(Xp,e=>e?.lastUpdate),nm=Z(Xp,e=>e?.pointerType??null);function rm(e,t,n=t.axisIds[0]){return Array.isArray(n)?n.map(n=>Kp(t.axis[n],e)):Kp(t.axis[n],e)}var im=(e,t,n)=>{if(e===null)return null;let r=rm(e,t,n);return r===-1?null:r},am=Z($p,Lp,im),om=Z(em,Rp,im),sm=Z($p,em,Lp,Rp,(e,t,n,r)=>[...e===null?[]:n.axisIds.map(t=>({axisId:t,dataIndex:rm(e,n,t)})),...t===null?[]:r.axisIds.map(e=>({axisId:e,dataIndex:rm(t,r,e)}))].filter(e=>e.dataIndex!==null&&e.dataIndex>=0));function cm(e,t,n,r=t.axisIds[0]){return Array.isArray(r)?r.map((r,i)=>{let a=t.axis[r];return qp(a.scale,a.data,e,n[i])}):qp(t.axis[r].scale,t.axis[r].data,e,n)}var lm=Z($p,Lp,am,(e,t,n,r)=>e===null||t.axisIds.length===0?null:cm(e,t,n,r)),um=Z(em,Rp,om,(e,t,n,r)=>e===null||t.axisIds.length===0?null:cm(e,t,n,r));function dm(e){return e.setPointerCoordinate!==void 0}
70var fm=new Set([`bar`,`rangeBar`,`line`]),pm=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,{xAxis:i,yAxis:a,dataset:o,onHighlightedAxisChange:s,onTooltipAxisChange:c,axesGap:l}=e,u=t.use(Fu),d=t.use(Zp),{axis:f,axisIds:p}=t.use(Lp),{axis:m,axisIds:h}=t.use(Rp);e.highlightedAxis,e.tooltipAxis,$c(()=>{e.highlightedAxis!==void 0&&t.set(`controlledCartesianAxisHighlight`,e.highlightedAxis)},[t,e.highlightedAxis]),$c(()=>{e.tooltipAxis!==void 0&&t.set(`controlledCartesianAxisTooltip`,e.tooltipAxis)},[t,e.tooltipAxis]);let g=q.useRef(!0);q.useEffect(()=>{if(g.current){g.current=!1;return}t.set(`cartesianAxis`,{axesGap:l,x:Tf(i,o,l),y:Ef(a,o,l)})},[i,a,o,l,t]);let _=p[0],v=h[0];yl(t,sm,(e,t)=>{if(!(!s&&!c)&&!Object.is(e,t)){if(e.length!==t.length){s?.(t),c?.(t);return}e?.some(({axisId:e,dataIndex:n},r)=>t[r].axisId!==e||t[r].dataIndex!==n)&&(s?.(t),c?.(t))}});let y=dm(n);return q.useEffect(()=>{let t=r.current;if(!d||!y||!t||e.disableAxisListener)return()=>{};let i=n.addInteractionListener(`moveEnd`,e=>{e.detail.activeGestures.pan||n.cleanInteraction()}),a=n.addInteractionListener(`panEnd`,e=>{e.detail.activeGestures.move||n.cleanInteraction()}),o=n.addInteractionListener(`quickPressEnd`,e=>{!e.detail.activeGestures.move&&!e.detail.activeGestures.pan&&n.cleanInteraction()}),s=e=>{let r=e.detail.srcEvent,i=e.detail.target,a=Jp(t,r);if(e.detail.srcEvent.buttons>=1&&i?.hasPointerCapture(e.detail.srcEvent.pointerId)&&!i?.closest(`[data-charts-zoom-slider]`)&&i?.releasePointerCapture(e.detail.srcEvent.pointerId),!n.isPointInside(a.x,a.y,i)){n.cleanInteraction?.();return}n.setPointerCoordinate(a)},c=n.addInteractionListener(`move`,s),l=n.addInteractionListener(`pan`,s),u=n.addInteractionListener(`quickPress`,s);return()=>{c.cleanup(),i.cleanup(),l.cleanup(),a.cleanup(),u.cleanup(),o.cleanup()}},[r,t,f,_,m,v,n,e.disableAxisListener,d,y]),q.useEffect(()=>{let t=r.current,i=e.onAxisClick;if(t===null||!i)return()=>{};let a=n.addInteractionListener(`tap`,e=>{let n=null,r=!1,a=Jp(t,e.detail.srcEvent),o=Kp(f[_],a.x);r=o!==-1,n=r?o:Kp(m[v],a.y);let s=r?p[0]:h[0];if(n==null||n===-1)return;let c=(r?f:m)[s].data[n],l={};Object.keys(u).filter(e=>fm.has(e)).forEach(e=>{let t=u[e];t?.seriesOrder.forEach(e=>{let i=t.series[e],a=i.xAxisId,o=i.yAxisId,c=r?a:o;(c===void 0||c===s)&&(l[e]=i.data[n])})}),i(e.detail.srcEvent,{dataIndex:n,axisValue:c,seriesValues:l})});return()=>{a.cleanup()}},[e.onAxisClick,u,r,f,p,m,h,_,v,n]),{}};pm.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0,onTooltipAxisChange:!0,tooltipAxis:!0,axesGap:!0},pm.getDefaultizedParams=({params:e})=>Y({},e,{axesGap:e.axesGap??0,colors:e.colors??Ou,theme:e.theme??`light`,defaultizedXAxis:Tf(e.xAxis,e.dataset,e.axesGap??0),defaultizedYAxis:Ef(e.yAxis,e.dataset,e.axesGap??0)}),pm.getInitialState=e=>Y({cartesianAxis:{axesGap:e.axesGap,x:e.defaultizedXAxis,y:e.defaultizedYAxis}},e.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:e.highlightedAxis});var mm=Object.is;function hm(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!mm(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var gm=e=>e.keyboardNavigation,_m=Z(gm,(e,t)=>e?.isFocused===!0&&e?.item!=null&&hm(e.item,t)),vm=Z(gm,e=>e?.isFocused===!0&&e?.item!=null),ym=Z(gm,e=>e?.isFocused===!0?e?.item??null:null),bm=Z(gm,e=>e?.item??null),xm=Z(gm,e=>!!e?.enabled),Sm=e=>(t,n,r)=>{if(t==null||!(`dataIndex`in t)||t.dataIndex===void 0)return;let i=r[t.type]?.series[t.seriesId];if(!i)return;let a=e===`x`?`xAxisId`in i&&i.xAxisId:`yAxisId`in i&&i.yAxisId;return(a===void 0||a===!1)&&(a=n.axisIds[0]),{axisId:a,dataIndex:t.dataIndex}},Cm=Z(ym,Lp,Fu,Sm(`x`)),wm=Z(ym,Rp,Fu,Sm(`y`)),Tm=Q(gm,function(e){if(e?.isFocused!==!0||e?.item==null)return null;let{type:t,seriesId:n}=e.item;return t===void 0||n===void 0?null:e.item}),Em=e=>e.brush;Z(Em,e=>e?.start),Z(Em,e=>e?.current),Q(Z(Em,e=>e?.start?.x??null),Z(Em,e=>e?.start?.y??null),Z(Em,e=>e?.current?.x??null),Z(Em,e=>e?.current?.y??null),(e,t,n,r)=>e===null||t===null||n===null||r===null?null:{start:{x:e,y:t},current:{x:n,y:r}}),Z(Z(Fu,e=>{let t=!1,n=!1;return e&&Object.entries(e).forEach(([e,r])=>{Object.values(r.series).some(e=>e.layout===`horizontal`)&&(t=!0),e===`scatter`&&r.seriesOrder.length>0&&(n=!0)}),n?`xy`:t?`y`:`x`}),Z(Tp,function(e){let t=!1,n=!1;
70return Object.values(e).forEach(e=>{e.axisDirection===`y`&&(n=!0),e.axisDirection===`x`&&(t=!0)}),t&&n?`xy`:n?`y`:t?`x`:null}),(e,t)=>t??e);var Dm=Z(Em,e=>e?.enabled||e?.isZoomBrushEnabled),Om=Z(Dm,Em,(e,t)=>e&&t?.start!==null&&t?.current!==null),km=Z(Em,Om,(e,t)=>t&&e?.preventHighlight),Am=Z(Em,Om,(e,t)=>t&&e?.preventTooltip),jm=({store:e,instance:t,params:n})=>{let{chartsLayerContainerRef:r}=t,i=e.use(Dm);$c(()=>{e.set(`brush`,Y({},e.state.brush,{enabled:n.brushConfig.enabled,preventTooltip:n.brushConfig.preventTooltip,preventHighlight:n.brushConfig.preventHighlight}))},[e,n.brushConfig.enabled,n.brushConfig.preventTooltip,n.brushConfig.preventHighlight]);let a=el(function(t){e.set(`brush`,Y({},e.state.brush,{start:e.state.brush.start??t,current:t}))}),o=el(function(){e.set(`brush`,Y({},e.state.brush,{start:null,current:null}))}),s=el(function(t){e.state.brush.isZoomBrushEnabled!==t&&e.set(`brush`,Y({},e.state.brush,{isZoomBrushEnabled:t}))});return q.useEffect(()=>{let e=r.current;if(e===null||!i)return()=>{};let n=t=>{t.detail.target?.closest(`[data-charts-zoom-slider]`)||a(Jp(e,{clientX:t.detail.initialCentroid.x,clientY:t.detail.initialCentroid.y}))},s=t=>{a(Jp(e,{clientX:t.detail.centroid.x,clientY:t.detail.centroid.y}))},c=t.addInteractionListener(`brushStart`,n),l=t.addInteractionListener(`brush`,s),u=t.addInteractionListener(`brushCancel`,o),d=t.addInteractionListener(`brushEnd`,o);return()=>{c.cleanup(),l.cleanup(),d.cleanup(),u.cleanup()}},[r,t,e,o,a,i]),{instance:{setBrushCoordinates:a,clearBrush:o,setZoomBrushEnabled:s}}};jm.params={brushConfig:!0},jm.getDefaultizedParams=({params:e})=>Y({},e,{brushConfig:{enabled:e?.brushConfig?.enabled??!1,preventTooltip:e?.brushConfig?.preventTooltip??!0,preventHighlight:e?.brushConfig?.preventHighlight??!0}}),jm.getInitialState=e=>({brush:{enabled:e.brushConfig.enabled,isZoomBrushEnabled:!1,preventTooltip:e.brushConfig.preventTooltip,preventHighlight:e.brushConfig.preventHighlight,start:null,current:null}});function Mm(e,t,n){if(e===`pointer`){if(t)return[t];if(n)return[n]}if(e===`keyboard`){if(n)return[n];if(t)return[t]}return[]}var Nm=e=>e.controlledCartesianAxisHighlight,Pm=(e,t,n,r,i,a)=>a?[]:n===void 0?Mm(i,e!==null&&{axisId:t.axisIds[0],dataIndex:e},r!=null&&r):n.filter(e=>t.axis[e.axisId]!==void 0).map(e=>e),Fm=Q(am,Lp,Nm,Cm,tm,km,Pm);Q(om,Rp,Nm,wm,tm,km,Pm);var Im=(e,t,n,r,i,a,o)=>{if(o)return[];if(r!==void 0)return r.map(e=>Y({},e,{value:n.axis[e.axisId]?.data?.[e.dataIndex]})).filter(({value:e})=>e!==void 0);let s=t!=null&&{axisId:n.axisIds[0],value:t};s&&e!=null&&(s.dataIndex=e);let c=i!=null&&n.axis[i.axisId]?.data?.[i.dataIndex];return Mm(a,s,i!=null&&c!=null&&Y({},i,{value:c}))},Lm=Q(am,lm,Lp,Nm,Cm,tm,km,Im),Rm=Q(om,um,Rp,Nm,wm,tm,km,Im),zm=(e,t)=>e===void 0?[t.axis[t.axisIds[0]]]:e.map(e=>t.axis[e.axisId]??null).filter(e=>e!==null);Z(Nm,Lp,zm),Z(Nm,Rp,zm);function Bm(e,t,n){if(n===0)return{barWidth:e/t,offset:0};let r=e/(t+(t-1)*n);return{barWidth:r,offset:n*r}}function Vm(e,t){return e.bandwidth()===0?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())}function Hm(e,t,n){if(!Ff(e.scale))return-1;let r=Vm(e.scale,n),{barWidth:i,offset:a}=Bm(e.scale.bandwidth(),t.groupNumber,e.barGapRatio),o=t.groupIndex*(i+a),s=e.data?.[r];if(s==null)return-1;let c=e.scale(s);if(c==null)return-1;let l=c+o,u=l+i;return n>=Math.min(l,u)&&n<=Math.max(l,u)?r:-1}var Um=Z(Lp,Rp,Fu,function({axis:e,axisIds:t},{axis:n,axisIds:r},i,a){let{series:o,stackingGroups:s=[]}=i?.bar??{},c=t[0],l=r[0],u;for(let t=0;t<s.length;t+=1){let r=s[t].ids;for(let i of r){let r=(o??{})[i],d=r.xAxisId??c,f=r.yAxisId??l,p=e[d],m=n[f],h=r.layout===`horizontal`?m:p,g=r.layout===`horizontal`?p:m,_=r.layout===`horizontal`?a.y:a.x,v=r.layout===`horizontal`?a.x:a.y,y=Hm(h,{groupNumber:s.length,groupIndex:t},_);if(y===-1)continue;let b=r.visibleStackedData[y],x=g.scale(b[0]),S=g.scale(b[1]);x==null||S==null||v>=Math.min(x,S)&&v<=Math.max(x,S)&&(u={seriesId:i,dataIndex:y})}}if(u)return{type:`bar`,seriesId:u.seriesId,dataIndex:u.dataIndex}});function Wm(e,t){if(e===t)return!0;
70if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!Wm(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;let n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;for(let e=0;e<n.length;e+=1){let r=n[e];if(!Wm(r[1],t.get(r[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;let n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let e=0;e<r;e+=1)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let i=0;i<r;i+=1){let r=n[i];if(!Wm(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function Gm(e){if(Pf(e))return t=>(e(t)??0)+e.bandwidth()/2;let t=e.domain();return t[0]===t[1]?n=>n===t[0]?e(n):NaN:t=>e(t)}var Km=e=>e.controlledCartesianAxisTooltip,qm=[];function Jm(e,t){return e===void 0||!t.axis[e.axisId]?.triggerTooltip?qm:[e]}var Ym=ol({memoizeOptions:{resultEqualityCheck:Wm}})(Km,$p,Lp,tm,Cm,(e,t,n,r,i)=>{if(e!==void 0){if(e.length===0)return qm;let t=new Set(n.axisIds),r=e.filter(({axisId:e})=>t.has(e));return r.length===e.length?e:r}return r===`keyboard`?Jm(i,n):t===null?qm:n.axisIds.filter(e=>n.axis[e].triggerTooltip).map(e=>({axisId:e,dataIndex:Kp(n.axis[e],t)})).filter(({dataIndex:e})=>e>=0)}),Xm=ol({memoizeOptions:{resultEqualityCheck:Wm}})(Km,em,Rp,tm,wm,(e,t,n,r,i)=>{if(e!==void 0){if(e.length===0)return qm;let t=new Set(n.axisIds),r=e.filter(({axisId:e})=>t.has(e));return r.length===e.length?e:r}return r===`keyboard`?Jm(i,n):t===null?qm:n.axisIds.filter(e=>n.axis[e].triggerTooltip).map(e=>({axisId:e,dataIndex:Kp(n.axis[e],t)})).filter(({dataIndex:e})=>e>=0)}),Zm=Z(Ym,Xm,(e,t)=>e.length>0||t.length>0);function Qm(e,t){let n=t.axis[e.axisId];if(!n)return null;let r=n.data?.[e.dataIndex];if(r==null)return null;let i=Gm(n.scale)(r);return i===void 0?null:i}var $m=Q(Ym,Xm,Lp,Rp,Ed,function(e,t,n,r,i,a){if(e.length===0&&t.length===0)return null;if(e.length>0){let t=Qm(e[0],n);if(t===null)return null;switch(a){case`left`:case`right`:return{x:t,y:i.top+i.height/2};case`bottom`:return{x:t,y:i.top+i.height};default:return{x:t,y:i.top}}}if(t.length>0){let e=Qm(t[0],r);if(e===null)return null;switch(a){case`right`:return{x:i.left+i.width/2,y:e};case`bottom`:case`top`:return{x:i.left+i.width/2,y:e};default:return{x:i.left+i.width/2,y:e}}}return null}),eh={},th=new Map;function nh(e){return{axisId:e,start:0,end:100}}var rh=e=>e.sampling,ih=Q(rh,Fu,xu,function(e,t,n){if(!e?.enabled)return eh;let r;return Object.keys(t).forEach(i=>{let a=e.methods[i];if(!a||a===`none`)return;let o=n[i]?.sampler,s=t[i];if(!(!o||!s))for(let e of s.seriesOrder){let t=o.build(s.series[e]);t&&(r??={},r[e]=t)}}),r??eh}),ah=Q(rh,Cp,Lp,Rp,Ed,Tp,xu,function(e,t,n,r,i,a,o){if(!e?.enabled)return th;let s=o.bar?.sampler?.bucketSizeAt??o.line?.sampler?.bucketSizeAt;if(!s)return th;let c=new Map;return[[n,i.width],[r,i.height]].forEach(([e,n])=>{e.axisIds.forEach(r=>{let i=e.axis[r].data,o=t?.get(r)??nh(r),l=a[r]?.minSpan??0;i&&c.set(r,s(o.end-o.start,{dataLength:i.length,availableSize:n,minSpan:l}))})}),c}),oh=({store:e,params:t,instance:n})=>{t.tooltipItem,$c(()=>{if(e.state.tooltip.item!==t.tooltipItem){let r=t.tooltipItem?n.identifierWithType(t.tooltipItem,`seriesItem`):null;(e.state.tooltip.item===null||r===null?r!==e.state.tooltip.item:n.serializeIdentifier(e.state.tooltip.item)!==n.serializeIdentifier(r))&&e.set(`tooltip`,Y({},e.state.tooltip,{item:r}))}},[e,n,t.tooltipItem]);let r=el(function(r){let i=e.state.tooltip.item;if(i!==null&&(!r||n.serializeIdentifier(i)===n.serializeIdentifier(n.identifierWithType(r,`seriesItem`)))){t.onTooltipItemChange?.(null),e.state.tooltip.itemIsControlled||e.set(`tooltip`,Y({},e.state.tooltip,{item:null}));return}});return{instance:{setTooltipItem:el(function(n){hm(e.state.tooltip.item,n)||(t.onTooltipItemChange?.(n),e.state.tooltip.itemIsControlled||e.set(`tooltip`,Y({},e.state.tooltip,{item:n})))}),removeTooltipItem:r}}};oh.getInitialState=(e,t)=>
70({tooltip:{itemIsControlled:e.tooltipItem!==void 0,item:e.tooltipItem==null?null:ku(t)(e.tooltipItem)}}),oh.params={tooltipItem:!0,onTooltipItemChange:!0};var sh=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n;return q.useEffect(()=>{let n=r.current;if(!n||e.disableKeyboardNavigation)return;function i(e){let n=e.currentTarget,r=e.relatedTarget;n&&r instanceof Node&&!n.contains(r)&&t.state.keyboardNavigation.isFocused&&t.set(`keyboardNavigation`,Y({},t.state.keyboardNavigation,{isFocused:!1}))}function a(){t.state.keyboardNavigation.isFocused||t.update(Y({},t.state.highlight&&{highlight:Y({},t.state.highlight,{lastUpdate:`keyboard`})},t.state.interaction&&{interaction:Y({},t.state.interaction,{lastUpdate:`keyboard`})},{keyboardNavigation:Y({},t.state.keyboardNavigation,{isFocused:!0})}))}function o(e){let n=t.state.keyboardNavigation.item,r=xu(t.state),i=n?.type;if(!i&&(i=Object.keys(Pu(t.state)).find(e=>r[e]!==void 0),i===void 0))return;let a=r[i]?.keyboardFocusHandler?.(e);a&&(n=a(n,t.state),n!==t.state.keyboardNavigation.item&&(e.preventDefault(),t.update(Y({},t.state.highlight&&{highlight:Y({},t.state.highlight,{lastUpdate:`keyboard`})},t.state.interaction&&{interaction:Y({},t.state.interaction,{lastUpdate:`keyboard`})},{keyboardNavigation:Y({},t.state.keyboardNavigation,{item:n})}))))}return n.addEventListener(`keydown`,o),n.addEventListener(`focusout`,i),n.addEventListener(`focusin`,a),()=>{n.removeEventListener(`keydown`,o),n.removeEventListener(`focusout`,i),n.removeEventListener(`focusin`,a)}},[r,e.disableKeyboardNavigation,t]),$c(()=>{t.set(`keyboardNavigation`,Y({},t.state.keyboardNavigation,{enabled:!e.disableKeyboardNavigation}))},[t,e.disableKeyboardNavigation]),{}};sh.getInitialState=e=>({keyboardNavigation:{item:null,isFocused:!1,enabled:!e.disableKeyboardNavigation}}),sh.params={disableKeyboardNavigation:!0};var ch=Z(e=>e.tooltip,e=>e?.item??null),lh=Z(ch,e=>e!==null),uh=Z(tm,ch,Tm,(e,t,n)=>e===`keyboard`?n:t??null),dh=Z(tm,lh,vm,(e,t,n)=>e===`keyboard`?n:t),fh=({store:e,params:t,instance:n})=>(t.highlightedItem,$c(()=>{if(t.highlightedItem!==void 0&&e.state.highlight.item!==t.highlightedItem){if(t.highlightedItem===null){e.set(`highlight`,Y({},e.state.highlight,{item:null}));return}let r=n.identifierWithType(t.highlightedItem,`highlightItem`),i=n.cleanIdentifier(r,`highlightItem`);e.set(`highlight`,Y({},e.state.highlight,{item:i}))}},[e,t.highlightedItem,n]),{instance:{clearHighlight:el(()=>{t.onHighlightChange?.(null);let n=e.state.highlight;n.item===null||n.isControlled||e.set(`highlight`,{item:null,lastUpdate:`pointer`,isControlled:!1})}),setHighlight:el(r=>{let i=e.state.highlight,a=n.identifierWithType(r,`highlightItem`),o=n.cleanIdentifier(a,`highlightItem`);hm(i.item,o)||(t.onHighlightChange?.(o),!i.isControlled&&e.set(`highlight`,{item:o,lastUpdate:`pointer`,isControlled:!1}))})}});fh.getInitialState=(e,t)=>({highlight:{item:e.highlightedItem==null?e.highlightedItem:yu(t.seriesConfig.config,ku(t)(e.highlightedItem)),lastUpdate:`pointer`,isControlled:e.highlightedItem!==void 0}}),fh.params={highlightedItem:!0,onHighlightChange:!0};var ph=[_p,oh,Yp,pm,fh];function mh(e){let{children:t,plugins:n=ph,pluginParams:r={}}=e,{contextValue:i}=gf(n,r);return(0,J.jsx)(yf.Provider,{value:i,children:t})}var hh=()=>{let e=q.useContext(yf);if(e==null)throw Error(N(30));return e};function gh(e){`hasPointerCapture`in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}var _h=e=>{let{instance:t}=hh(),n=q.useRef(!1),r=el(()=>{n.current=!0,t.setLastUpdateSource(`pointer`),t.setTooltipItem(e),t.setHighlight(e)}),i=el(()=>{n.current=!1,t.removeTooltipItem(e),t.clearHighlight()});return q.useEffect(()=>()=>{n.current&&i()},[i]),q.useMemo(()=>({onPointerEnter:r,onPointerLeave:i,onPointerDown:gh}),[r,i])};function $(){let e=hh();if(!e)throw Error(N(32));return e.store}function vh(e,t,n){return e?.highlight===`series`&&t?.seriesId===n}function yh(e,t,n){return vh(e,t,n)?!1:e?.fade===`global`&&t!=null||e?.fade===`series`&&t?.seriesId===n}function bh(e,t,n){return e?.highlight===`item`&&t?.seriesId===n?t.dataIndex:null}function xh(e,t,n){return vh(e,t,n)||bh(e,t,n)===t?.dataIndex?null:(e?.fade===`series`||e?.fade===`global`)&&t?.seriesId===n?t.dataIndex:null}var Sh=e=>e.highlight,Ch=Q(Fu,e=>{let t={};return Object.keys(e).forEach(n=>{t[n]=new Map;let r=e[n];
70r?.seriesOrder?.forEach(e=>{let i=r?.series[e];i?.highlightScope!==void 0&&t[n]?.set(e,i.highlightScope)})}),t}),wh=Q(Sh,Tm,function(e,t){return e.isControlled||e.lastUpdate===`pointer`?e.item:t}),Th=Z(Ch,wh,function(e,t){if(!t)return null;let n=e[t.type]?.get(t.seriesId);return n===void 0?null:n}),Eh=()=>`none`,Dh=Q(Th,wh,xu,function(e,t,n){if(t===null||e===null)return Eh;let r=n[t.type],i=r.isHighlightedCreator(e,t),a=r.isFadedCreator(e,t);return e=>i(e)?`highlighted`:a(e)?`faded`:`none`});function Oh(e){return Dh(e)}var kh=Q(Oh,function(e,t){return e(t)});function Ah(e,t){return kh(e,t)}var jh=Z(Th,wh,function(e,t,n){return vh(e,t,n)}),Mh=Z(Th,wh,function(e,t,n){return yh(e,t,n)}),Nh=Z(Th,wh,function(e,t,n){return xh(e,t,n)}),Ph=Z(Th,wh,function(e,t,n){return bh(e,t,n)});function Fh(){return!1}function Ih(e,t){return!e||!t?Fh:function(n){return n?e.highlight===`series`?n.seriesId===t.seriesId:e.highlight===`item`?n.dataIndex===t.dataIndex&&n.seriesId===t.seriesId:!1:!1}}function Lh(){return!1}function Rh(e,t){return!e||!t?Lh:function(n){return n?e.fade===`series`?n.seriesId===t.seriesId&&n.dataIndex!==t.dataIndex:e.fade===`global`?n.seriesId!==t.seriesId||n.dataIndex!==t.dataIndex:!1:!1}}function zh(e){return $().use(Ah,e)}var Bh=`cubic-bezier(0.66, 0, 0.34, 1)`,Vh=ot(.66,0,.34,1),Hh=class{elapsed=0;transitionTimer=null;constructor(e,t,n){this.duration=e,this.easingFn=t,this.onTickCallback=n,this.resume()}get running(){return this.transitionTimer!==null}timerCallback(e){this.elapsed=Math.min(e,this.duration);let t=this.duration===0?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;let e=$t()-this.elapsed;return this.transitionTimer=xt(e=>this.timerCallback(e),0,e),this}stop(){return this.running&&(this.transitionTimer&&=(this.transitionTimer.stop(),null)),this}finish(){return this.stop(),jt(()=>this.timerCallback(this.duration)),this}};function Uh(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r+=1){let i=n[r];if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1}return!0}function Wh(e,{createInterpolator:t,applyProps:n,skip:r,initialProps:i=e}){let a=q.useRef(i),o=q.useRef(null),s=q.useRef(null),c=q.useRef(e);$c(()=>{c.current=e},[e]),$c(()=>{r&&(o.current?.finish(),o.current=null,s.current=null,a.current=e)},[e,r]);let l=q.useCallback(r=>{let i=a.current,s=t(i,e);o.current=new Hh(300,Vh,e=>{let t=s(e);a.current=t,n(r,t)})},[n,t,e]);return[q.useCallback(t=>{if(t===null){o.current?.stop();return}let n=s.current;if(n===t){if(Uh(c.current,e)){o.current?.resume();return}o.current?.stop()}n&&o.current?.stop(),s.current=t,(o.current||!r)&&l(t)},[l,e,r]),a.current]}function Gh(e,{createInterpolator:t,transformProps:n,applyProps:r,skip:i,initialProps:a=e,ref:o}){let s=n??(e=>e),[c,l]=Wh(e,{initialProps:a,createInterpolator:t,applyProps:(e,t)=>r(e,s(t)),skip:i});return Y({},n(i?e:l),{ref:Wc(c,o)})}function Kh(e){return Gh({d:e.d},{createInterpolator:(e,t)=>{let n=mt(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})}var qh=e=>e,Jh=(()=>{let e=qh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qh}}})(),Yh={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 Xh(e,t,n=`Mui`){let r=Yh[t];return r?`${n}-${r}`:`${Jh.generate(e)}-${t}`}function Zh(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Xh(e,t,n)}),r}function Qh(e){return e.replace(` `,`_`)}function $h(){return $().use(Ed)}function eg(){return $().use(Bd)}function tg(e){return Ku.getTypes().has(e)}function ng(e){return tg(e.type)}var rg=(e,t,n,r,i,a,o)=>{let s=r===`rotation`?i[t].rotationExtremumGetter:i[t].radiusExtremumGetter,c=o[t]?.series??{},[l,u]=s?.({series:c,axis:n,axisIndex:a,isDefaultAxis:a===0})??[1/0,-1/0],[d,f]=e;return[Math.min(l,d),Math.max(u,f)]},ig=(e,t,n,r,i)=>{let a=Object.keys(n).filter(tg).reduce((a,o)=>rg(a,o,e,t,n,r,i),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a},ag=(e,t,n,r)=>{let i=new Set;return Object.keys(t).filter(tg).forEach(a=>{let o=n[a]?.series??{},s=t[a].axisTooltipGetter?.(o);
70s!==void 0&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i};function og(e,t){if(typeof e==`number`)return e;if(e===`100%`)return t;if(e.endsWith(`%`)){let n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith(`px`)){let t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw Error(N(26,e))}var sg=.001;function cg(e,t,n){if(t===`rotation`){let e=[ql(n.startAngle,0),ql(n.endAngle,2*Math.PI)],t=e[1]-e[0],r=t>=Math.PI*2-sg;return n.scaleType===`point`&&r&&(e[1]-=t/n.data.length),{range:e,isFullCircle:r}}let r=Math.min(e.height,e.width)/2,{minRadius:i,maxRadius:a}=n;return{range:[i===void 0?0:og(i,r),a===void 0?r:og(a,r)],isFullCircle:!1}}var lg=.2,ug=.1;function dg({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:i}){if(n===void 0)return{axis:{},axisIds:[]};let a=ag(i,r,t,n[0].id),o={};return n.forEach((n,s)=>{let c=n,{range:l,isFullCircle:u}=cg(e,i,c),[d,f]=ig(c,i,r,s,t),p=!c.ignoreTooltip&&a.has(c.id),m=c.data??[];if(Lu(c)){let e=c.categoryGapRatio??lg,t=c.barGapRatio??ug;if(o[c.id]=Y({offset:0,categoryGapRatio:e,barGapRatio:t,triggerTooltip:p},c,{data:m,scale:eu(c.data,l).paddingInner(e).paddingOuter(e/2),tickNumber:c.data.length,colorScale:c.colorMap&&(c.colorMap.type===`ordinal`?kf(Y({values:c.data},c.colorMap)):Af(c.colorMap)),isFullCircle:u}),jf(c.data)){let e=Mf(c.data,l,c.tickNumber);o[c.id].valueFormatter=c.valueFormatter??e}}if(Ru(c)&&(o[c.id]=Y({offset:0,triggerTooltip:p},c,{data:m,scale:tu(c.data,l),tickNumber:c.data.length,colorScale:c.colorMap&&(c.colorMap.type===`ordinal`?kf(Y({values:c.data},c.colorMap)):Af(c.colorMap)),isFullCircle:u}),jf(c.data))){let e=Mf(c.data,l,c.tickNumber);o[c.id].valueFormatter=c.valueFormatter??e}if(!zu(c))return;let h=c.scaleType??`linear`,g=c.domainLimit??`nice`,_=[c.min??d,c.max??f];if(typeof g==`function`){let{min:e,max:t}=g(d,f);_[0]=e,_[1]=t}let v=i===`rotation`?180/3:1,y=c.tickNumber??td(c,_,rd(v*Math.abs(l[1]-l[0]))),b=iu(h,_,l),x=g===`nice`?b.nice(y):b,[S,C]=x.domain(),w=[c.min??S,c.max??C];o[c.id]=Y({offset:0,triggerTooltip:p},c,{data:m,scaleType:h,scale:x.domain(w),tickNumber:y,colorScale:c.colorMap&&Af(c.colorMap),isFullCircle:u})}),{axis:o,axisIds:n.map(({id:e})=>e)}}var fg=e=>e.polarAxis,pg=Z(fg,e=>e?.rotation),mg=Z(fg,e=>e?.radius),hg=Q(pg,Ed,Fu,xu,(e,t,n,r)=>dg({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:`rotation`})),gg=Q(mg,Ed,Fu,xu,(e,t,n,r)=>dg({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:`radius`}));function _g(e){return{cx:e.left+e.width/2,cy:e.top+e.height/2}}var vg=Q(Ed,_g),yg=e=>(t,n)=>Math.atan2(t-e.cx,e.cy-n);function bg(e){return(e%360+360)%360}var xg=2*Math.PI;function Sg(e){return(e%xg+xg)%xg}function Cg(e,t){let{scale:n,data:r,reverse:i,isFullCircle:a}=e,[o,s]=n.range(),c=Sg(t-o),l=Sg(s-o);if(!a&&c>l)return-1;if(!Pf(n)){if(r===void 0)return-1;let e=o+Sg(t-o);return Gp(r,Wp(n.invert(e)))}if(!r)return-1;let u;return n.bandwidth()===0?(u=Math.floor((c+n.step()/2)/n.step()),a&&(u%=r.length)):u=Math.floor(c/n.step()),u<0||u>=r.length?-1:i?r.length-1-u:u}function wg(e,t){let{scale:n,data:r,reverse:i}=e;if(!Pf(n))return r===void 0?-1:Gp(r,Wp(n.invert(t)));if(!r)return-1;let a,o=t-Math.min(...n.range());return a=n.bandwidth()===0?Math.floor((o+n.step()/2)/n.step()):Math.floor(o/n.step()),a<0||a>=r.length?-1:i?r.length-1-a:a}var Tg=(e,t)=>t,Eg=(e,t)=>t;function Dg(e,t,n,r){if(r===`rotation`){let r=t;return Array.isArray(n)?n.map(t=>Cg(r.axis[t],e)):Cg(r.axis[n],e)}let i=t;return Array.isArray(n)?n.map(t=>wg(i.axis[t],e)):wg(i.axis[n],e)}var Og=Z($p,em,vg,(e,t,n)=>e===null||t===null?null:yg(n)(e,t)),kg=Z(Og,hg,Tg,(e,t,n)=>e===null?null:Dg(e,t,n??t.axisIds[0],`rotation`)),Ag=Z(Og,hg,Eg,(e,t,n)=>e===null?null:Dg(e,t,n??t.axisIds,`rotation`));Z(hg,kg,Tg,(e,t,n)=>{if(n??=e.axisIds[0],t===null||t===-1||e.axisIds.length===0)return null;let r=e.axis[n]?.data;return r?r[t]:null}),Z(hg,Ag,Eg,(e,t,n)=>(n??=e.axisIds,t===null?null:n.map((n,r)=>{let i=t[r];return i===-1?null:e.axis[n].data?.[i]})));var jg=ol({memoizeOptions:{resultEqualityCheck:Wm}})(Ag,hg,(e,t)=>e===null?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0)),Mg=Z($p,em,vg,(e,t,n)=>e===null||t===null?null:Math.sqrt((e-n.cx)**2+(t-n.cy)**2)),Ng=Z(Mg,gg,Tg,(e,t,n)=>e===null?null:Dg(e,t,n??t.axisIds[0],`radius`)),Pg=Z(Mg,gg,Eg,(e,t,n)=>e===null?null:Dg(e,t,n??t.axisIds,`radius`));Z(gg,Ng,Tg,(e,t,n)=>{if(n??=e.axisIds[0],t===null||t===-1||e.axisIds.length===0)return null;let r=e.axis[n]?.data;return r?r[t]:null}),Z(gg,Pg,Eg,(e,t,n)=>(n??=e.axisIds,t===null?null:n.map((n,r)=>{let i=t[r];return i===-1?null:e.axis[n].data?.[i]})));var Fg=ol({memoizeOptions:{resultEqualityCheck:Wm}})(Pg,gg,(e,t)=>e===null?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0)),Ig=Z(jg,Fg,(e,t)=>e.length>0||t.length>0);function Lg(){let{axis:e,axisIds:t}=$().use(Lp);return{xAxis:e,xAxisIds:t}}function Rg(){let{axis:e,axisIds:t}=$().use(Rp);return{yAxis:e,yAxisIds:t}}function zg(e){let{axis:t,axisIds:n}=$().use(Lp);return t[e??n[0]]}function Bg(e){let{axis:t,axisIds:n}=$().use(Rp);return t[e??n[0]]}function Vg(){let{axis:e,axisIds:t}=$().use(hg);return{rotationAxis:e,rotationAxisIds:t}}function Hg(){let{axis:e,axisIds:t}=$().use(gg);
70return{radiusAxis:e,radiusAxisIds:t}}function Ug(e){let{axis:t,axisIds:n}=$().use(hg);return t[e??n[0]]}function Wg(e){let{axis:t,axisIds:n}=$().use(gg);return t[e??n[0]]}function Gg(){let{axis:e,axisIds:t}=$().use(vp)??{axis:{},axisIds:[]};return{zAxis:e,zAxisIds:t}}function Kg(){let{instance:e}=hh();return e.chartsLayerContainerRef}function qg(){return $().use(Fu)}var Jg=Z(Fu,(e,t)=>e[t]);Q(Fu,(e,t,n)=>{if(n===void 0)return e[t]?.seriesOrder?.map(n=>e[t]?.series[n])??[];if(!Array.isArray(n))return e[t]?.series?.[n];let r=[],i=[];for(let a of n){let n=e[t]?.series?.[a];n?r.push(n):i.push(a)}return r});var Yg=e=>$().use(Jg,e);function Xg(){return Yg(`pie`)}function Zg(){return $().use(Vd).pie??{}}function Qg(){return Yg(`bar`)}function $g(){return Yg(`line`)}function e_(){return $().use(Oh)}function t_(e,t){return Object.keys(e).flatMap(n=>{let r=t[n].legendGetter;return r===void 0?[]:r(e[n])})}function n_(){return{items:t_(qg(),$().use(xu))}}function r_(){let e=eg();return q.useCallback(t=>`${e}-gradient-${t}`,[e])}function i_(){let e=eg();return q.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}function a_(e,t){let n=bt(e.x,t.x),r=bt(e.y,t.y),i=bt(e.width,t.width),a=bt(e.height,t.height);return e=>({x:n(e),y:r(e),width:i(e),height:a(e)})}function o_(e){let t={x:e.layout===`vertical`?e.x:e.xOrigin,y:e.layout===`vertical`?e.yOrigin:e.y,width:e.layout===`vertical`?e.width:0,height:e.layout===`vertical`?0:e.height};return Gh({x:e.x,y:e.y,width:e.width,height:e.height},{createInterpolator:a_,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})}function s_(e,t){let n=bt(e.x,t.x),r=bt(e.y,t.y),i=bt(e.width,t.width),a=bt(e.height,t.height);return e=>({x:n(e),y:r(e),width:i(e),height:a(e)})}function c_(e){let{initialX:t,currentX:n,initialY:r,currentY:i}=e.placement===`outside`?d_(e):u_(e),a={x:t,y:r,width:e.width,height:e.height};return Gh({x:n,y:i,width:e.width,height:e.height},{createInterpolator:s_,transformProps:e=>e,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())},initialProps:a,skip:e.skipAnimation,ref:e.ref})}var l_=4;function u_(e){return{initialX:e.layout===`vertical`?e.x+e.width/2:e.xOrigin,initialY:e.layout===`vertical`?e.yOrigin:e.y+e.height/2,currentX:e.x+e.width/2,currentY:e.y+e.height/2}}function d_(e){let t=0,n=0,r=0,i=0;return e.layout===`vertical`?(e.y<e.yOrigin?(t=e.yOrigin-l_,n=e.y-l_):(t=e.yOrigin+l_,n=e.y+e.height+l_),{initialX:e.x+e.width/2,currentX:e.x+e.width/2,initialY:t,currentY:n}):(e.x<e.xOrigin?(r=e.xOrigin,i=e.x-l_):(r=e.xOrigin,i=e.x+e.width+l_),{initialX:r,currentX:i,initialY:e.y+e.height/2,currentY:e.y+e.height/2})}function f_(e){return Gh({d:e.d},{createInterpolator:(e,t)=>{let n=mt(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})}var p_=2*Math.PI,m_=2*.001;function h_(e,t,n,r=0){let i=Math.abs(t-e);return i===0||i>=p_||(p_-i+Math.abs(r))*n>=m_?t:e+Math.sign(t-e)*p_}function g_(e,t){let n=bt(e.startAngle,t.startAngle),r=bt(e.endAngle,t.endAngle),i=bt(e.innerRadius,t.innerRadius),a=bt(e.outerRadius,t.outerRadius),o=bt(e.paddingAngle,t.paddingAngle),s=bt(e.cornerRadius,t.cornerRadius);return e=>({startAngle:n(e),endAngle:r(e),innerRadius:i(e),outerRadius:a(e),paddingAngle:o(e),cornerRadius:s(e)})}function __(e){let t={startAngle:(e.startAngle+e.endAngle)/2,endAngle:(e.startAngle+e.endAngle)/2,innerRadius:e.innerRadius,outerRadius:e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius};return Gh({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:g_,transformProps:e=>({d:en().cornerRadius(e.cornerRadius)({padAngle:e.paddingAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:h_(e.startAngle,e.endAngle,e.outerRadius,e.paddingAngle)}),visibility:e.startAngle===e.endAngle?`hidden`:`visible`}),applyProps(e,t){e.setAttribute(`d`,t.d),e.setAttribute(`visibility`,t.visibility)}
70,initialProps:t,skip:e.skipAnimation,ref:e.ref})}function v_(e,t){let n=bt(e.startAngle,t.startAngle),r=bt(e.endAngle,t.endAngle),i=bt(e.arcLabelRadius,t.arcLabelRadius),a=bt(e.paddingAngle,t.paddingAngle),o=bt(e.cornerRadius,t.cornerRadius);return e=>({startAngle:n(e),endAngle:r(e),arcLabelRadius:i(e),paddingAngle:a(e),cornerRadius:o(e)})}function y_(e){let t={startAngle:(e.startAngle+e.endAngle)/2,endAngle:(e.startAngle+e.endAngle)/2,arcLabelRadius:e.arcLabelRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius};return Gh({startAngle:e.startAngle,endAngle:e.endAngle,arcLabelRadius:e.arcLabelRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:v_,transformProps:e=>{let[t,n]=en().cornerRadius(e.cornerRadius).centroid({padAngle:e.paddingAngle,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.arcLabelRadius,outerRadius:e.arcLabelRadius});return{x:t,y:n}},applyProps(e,{x:t,y:n}){e.setAttribute(`x`,t.toString()),e.setAttribute(`y`,n.toString())},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function b_(){let{instance:e}=hh();return e.chartRootRef}var x_={"image/png":`PNG`,"image/jpeg":`JPEG`,"image/webp":`WebP`},S_=e=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:Y({},e)}}}}),C_={loading:`Loading data…`,noData:`No data to display`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,toolbarExport:`Export`,toolbarExportPrint:`Print`,toolbarExportImage:e=>`Export as ${x_[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`,open:`Open`,high:`High`,low:`Low`,close:`Close`,a11yNoValue:`no value`,a11yConnector:`; `,barDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}
70){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},lineDescription:function({y:e,formattedXValue:t,formattedYValue:n,seriesLabel:r}){return[t,r,e===null?this.a11yNoValue:n].filter(Boolean).join(this.a11yConnector)},scatterDescription:function({formattedXValue:e,formattedYValue:t,seriesLabel:n}){return[n,e,t].filter(Boolean).join(this.a11yConnector)},pieDescription:function({value:e,formattedValue:t,seriesLabel:n}){return[n,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},radarDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},funnelDescription:function({value:e,formattedValue:t,seriesLabel:n}){return[n,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},heatmapDescription:function({value:e,formattedValue:t,formattedXValue:n,formattedYValue:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},sankeyNodeDescription:function({formattedValue:e,nodeLabel:t}){return[t,e].filter(Boolean).join(this.a11yConnector)},sankeyLinkDescription:function({formattedValue:e,sourceLabel:t,targetLabel:n}){return[t&&n?`${t} to ${n}`:t??n,e].filter(Boolean).join(this.a11yConnector)},rangeBarDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}
70){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},ohlcDescription:function({open:e,high:t,low:n,close:r,formattedOpen:i,formattedHigh:a,formattedLow:o,formattedClose:s,formattedDate:c,seriesLabel:l}){return[c,l,e!==null&&t!==null&&n!==null&&r!==null?`Open: ${i??e}, High: ${a??t}, Low: ${o??n}, Close: ${s??r}`:this.a11yNoValue].filter(Boolean).join(this.a11yConnector)}},w_=C_;S_(C_);var T_=[`localeText`],E_=q.createContext(null);function D_(e){let{localeText:t}=e,n=X(e,T_),{localeText:r}=q.useContext(E_)??{localeText:void 0},{children:i,localeText:a}=w({props:n,name:`MuiChartsLocalizationProvider`}),o=q.useMemo(()=>Y({},w_,a,r,t),[a,r,t]),s=q.useMemo(()=>({localeText:o}),[o]);return(0,J.jsx)(E_.Provider,{value:s,children:i})}var O_=()=>{let e=q.useContext(E_);if(e===null)throw Error(N(12));return e};function k_(){return $().use(ym)}function A_(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function j_(e){return Xh(`MuiChartsAxis`,e)}var M_=Zh(`MuiChartsAxis`,[`root`,`line`,`tickContainer`,`tick`,`tickLabel`,`label`,`directionX`,`directionY`,`top`,`bottom`,`left`,`right`]),N_=e=>{let{classes:t,position:n}=e;return A_({root:[`root`,`directionX`,n],line:[`line`],tickContainer:[`tickContainer`],tick:[`tick`],tickLabel:[`tickLabel`],label:[`label`]},j_,t)},P_={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function F_(e){return typeof e==`number`&&!Number.isFinite(e)}function I_(e,t){return Math.abs(t.getFullYear()-e.getFullYear())}function L_(e,t){return Math.abs(t.getFullYear()*12+t.getMonth()-12*e.getFullYear()-e.getMonth())}function R_(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60*24)}function z_(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60)}var B_={years:{getTickNumber:I_,isTick:(e,t)=>t.getFullYear()!==e.getFullYear(),format:e=>e.getFullYear().toString()},quarterly:{getTickNumber:(e,t)=>Math.floor(L_(e,t)/3),isTick:(e,t)=>t.getMonth()!==e.getMonth()&&t.getMonth()%3==0,format:new Intl.DateTimeFormat(`default`,{month:`short`}).format},months:{getTickNumber:L_,isTick:(e,t)=>t.getMonth()!==e.getMonth(),format:new Intl.DateTimeFormat(`default`,{month:`short`}).format},biweekly:{getTickNumber:(e,t)=>R_(e,t)/14,isTick:(e,t)=>(t.getDay()<e.getDay()||R_(t,e)>7)&&Math.floor(t.getDate()/7)%2==1,format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},weeks:{getTickNumber:(e,t)=>R_(e,t)/7,isTick:(e,t)=>t.getDay()<e.getDay()||R_(t,e)>=7,format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},days:{getTickNumber:R_,isTick:(e,t)=>t.getDate()!==e.getDate(),format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},hours:{getTickNumber:z_,isTick:(e,t)=>t.getHours()!==e.getHours(),format:new Intl.DateTimeFormat(`default`,{hour:`2-digit`,minute:`2-digit`}).format}},V_={start:0,extremities:0,end:1,middle:.5};function H_(e,t,n){return e(t)-(e.step()-e.bandwidth())/2+V_[n]*e.step()}function U_(e,t,n){let 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)}function W_(e,t,n,r,i){if(n.length===0)return[];let a=r.range()[0]>r.range()[1],o=e.findIndex(e=>i(H_(r,e,a?`start`:`end`))),s=e.findLastIndex(e=>i(H_(r,e,a?`end`:`start`))),c=e[0],l=e[e.length-1];if(!(c instanceof Date)||!(l instanceof Date))return[];let u=0;for(let e=0;e<n.length;e+=1)if(n[e].getTickNumber(c,l)!==0){u=e;break}let d=u;for(let e=u;e<n.length;e+=1){if(e===n.length-1){d=e;break}let r=n[e].getTickNumber(c,l),i=n[e+1].getTickNumber(c,l);if(i>t||t/r<i/t){d=e;break}}let f=[];for(let t=Math.max(1,o);t<=s;t+=1)for(let r=u;r<=d;r+=1){let i=e[t-1],a=e[t];if(i instanceof Date&&a instanceof Date&&n[r].isTick(i,a)){f.push({index:t,formatter:n[r].format});break}}return f}function G_(e){let{scale:t,tickNumber:n,valueFormatter:r,tickInterval:i,tickPlacement:a,tickLabelPlacement:o,tickSpacing:s,isInside:c,ordinalTimeTicks:l}=e;if(l!==void 0&&jf(t.domain())&&Pf(t)){let e=t.domain();return e.length===0||e.length===1?[]:W_(e,n,l.map(e=>typeof e==`string`?B_[e]:e),t,c).map(({index:n,formatter:r})=>{let i=e[n];return{value:i,formattedValue:r(i),offset:H_(t,i,`middle`),labelOffset:0}})}let u=a??`extremities`;if(Pf(t)){let e=t.domain(),a=o??`middle`,l=e;if(typeof i==`object`&&i?l=i:(typeof i==`function`&&(l=l.filter(i)),s!==void 0&&s>0&&(l=U_(l,t.range(),s))),l.length===0)return[];if(t.bandwidth()>0){let i=t.range()[0]>t.range()[1],o=l.findIndex(e=>c(H_(t,e,i?`start`:`end`))),s=l.findLastIndex(e=>c(H_(t,e,i?`end`:`start`)));return[...l.slice(o,s+1).map(e=>{let i=`${e}`;return{value:e,formattedValue:r?.(e,{location:`tick`,scale:t,tickNumber:n,defaultTickLabel:i})??i,offset:H_(t,e,u),labelOffset:a===`tick`?0:t.step()*(V_[a]-V_[u])}}
70),...u===`extremities`&&s===e.length-1&&c(t.range()[1])?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]}return l.map(e=>{let 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(F_))return[];let d=o,f=typeof i==`object`?i:K_(t,n),p=[];for(let e=0;e<f.length;e+=1){let i=f[e],a=t(i);if(c(a)){let o=t.tickFormat(n)(i);p.push({value:i,formattedValue:r?.(i,{location:`tick`,scale:t,tickNumber:n,defaultTickLabel:o})??o,offset:a,labelOffset:d===`middle`?t(f[e-1]??0)-(a+t(f[e-1]??0))/2:0})}}return p}function K_(e,t){let n=e.domain();return n[0]===n[1]?[n[0]]:e.ticks(t)}var q_=()=>!0,J_=e=>t=>Math.abs(e.range()[0]-t)<Math.PI*2-sg;function Y_(e,t,n){switch(t){case`rotation`:return J_(e);case`radius`:return e=>e>=1;case`x`:return n.isXInside;case`y`:return n.isYInside;default:return q_}}function X_(e){let{scale:t,tickNumber:n,valueFormatter:r,tickInterval:i,tickPlacement:a=`extremities`,tickLabelPlacement:o,tickSpacing:s,direction:c,ordinalTimeTicks:l}=e,{instance:u}=hh();return q.useMemo(()=>G_({scale:t,tickNumber:n,tickPlacement:a,tickInterval:i,tickLabelPlacement:o,tickSpacing:s,valueFormatter:r,isInside:Y_(t,c,u),ordinalTimeTicks:l}),[t,n,a,i,o,s,r,c,u,l])}var Z_=Zh(`MuiAppearingMask`,[`animate`]),Q_=K(`rect`,{slot:`internal`,shouldForwardProp:void 0})({animationName:`animate-width`,animationTimingFunction:Bh,animationDuration:`0s`,[`&.${Z_.animate}`]:{animationDuration:`300ms`},"@keyframes animate-width":{from:{width:0}}});function $_(e){let t=$h(),n=Qh(`${eg()}-${e.seriesId}`);return(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(`clipPath`,{id:n,children:(0,J.jsx)(Q_,{className:e.skipAnimation?``:Z_.animate,x:0,y:0,width:t.left+t.width+t.right,height:t.top+t.height+t.bottom})}),(0,J.jsx)(`g`,{clipPath:`url(#${n})`,children:e.children})]})}var ev=[`skipAnimation`,`ownerState`];function tv(e){let{skipAnimation:t,ownerState:n}=e,r=X(e,ev),i=Kh(e);return(0,J.jsx)($_,{skipAnimation:t,seriesId:`${n.seriesId}-area-clip`,children:(0,J.jsx)(`path`,Y({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.seriesId,"data-highlighted":n.isHighlighted||void 0,"data-faded":n.isFaded||void 0},r,i))})}function nv(e){return Xh(`MuiLineChart`,e)}var rv=Zh(`MuiLineChart`,[`area`,`line`,`mark`,`markAnimate`,`highlight`,`areaPlot`,`linePlot`,`markPlot`]),iv=e=>{let{skipAnimation:t,classes:n}=e??{};return A_({area:[`area`],line:[`line`],mark:[`mark`,!t&&`markAnimate`],highlight:[`highlight`],areaPlot:[`areaPlot`],linePlot:[`linePlot`],markPlot:[`markPlot`]},nv,n)},av=[`seriesId`,`classes`,`color`,`gradientId`,`slots`,`slotProps`,`onClick`];function ov(e){let{seriesId:t,classes:n,color:r,gradientId:i,slots:a,slotProps:o,onClick:s}=e,c=X(e,av),l=$().use(Id,`enablePositionBasedPointerInteraction`),u=q.useMemo(()=>({type:`line`,seriesId:t}),[t]),d=_h(u),f=zh(u),p=f===`highlighted`,m=f===`faded`,h={seriesId:t,classes:n,color:r,gradientId:i,isFaded:m,isHighlighted:p},g=iv(h),_=a?.area??tv;return(0,J.jsx)(_,Y({},c,Qc({elementType:_,externalSlotProps:o?.area,additionalProps:Y({},l?{}:d,{onClick:s,cursor:s?`pointer`:`unset`,"data-highlighted":p||void 0,"data-faded":m||void 0,"data-series-id":t,"data-series":t}),className:g.area,ownerState:h})))}function sv(e){let t=$().use(wl);return e||t}function cv(){return $().use(Sp)}function lv(e){switch(e){case`catmullRom`:return Xt.alpha(.5);case`linear`:return Zt;case`monotoneX`:return Mt;case`monotoneY`:return Vt;case`natural`:return Jt;case`step`:return Wt;case`stepBefore`:return At;case`stepAfter`:return Rt;case`bumpY`:return Ht;case`bumpX`:return Gt;default:return Mt}}function uv(e,t){let n=$g(),r=Lg().xAxisIds[0],i=Rg().yAxisIds[0],a=r_();return q.useMemo(()=>{if(n===void 0)return[];let{series:o,stackingGroups:s}=n,c=[];for(let n of s){let s=n.ids;for(let n=s.length-1;n>=0;--n){let l=s[n],{xAxisId:u=r,yAxisId:d=i,visibleStackedData:f,stackedData:p,data:m,connectNulls:h,baseline:g,curve:_,strictStepCurve:v,area:y}=o[l];if(!y||!(u in e)||!(d in t))continue;let b=e[u].scale,x=Gm(b),S=t[d].scale,C=e[u].data,w=t[d].colorScale&&a(d)||e[u].colorScale&&a(u)||void 0,T=_?.includes(`step`)&&!v&&Pf(b),E=C?.flatMap((e,t)=>{let n=m[t]==null;if(T){let r=[{x:e,y:f[t],nullData:n,isExtension:!1}];return!n&&(t===0||m[t-1]==null)&&r.unshift({x:(b(e)??0)-(b.step()-b.bandwidth())/2,y:f[t],nullData:n,isExtension:!0}),!n&&(t===m.length-1||m[t+1]==null)&&r.push({x:(b(e)??0)+(b.step()+b.bandwidth())/2,y:f[t],nullData:n,isExtension:!0}),r}return{x:e,y:f[t],nullData:n}})??[],D=h?E.filter(e=>!e.nullData):E,O=It().x(e=>e.isExtension?e.x:x(e.x)).defined(e=>h||!e.nullData||!!e.isExtension).y0(e=>{if(typeof g==`number`)return S(g);if(g===`max`)return S.range()[1];if(g===`min`)return S.range()[0];let t=e.y&&S(e.y[0]);return Number.isNaN(t)?S.range()[0]:t}).y1(e=>e.y&&S(e.y[1])).curve(lv(_))(D)||``;
70c.push({area:o[l].area,color:o[l].color,gradientId:w,d:O,seriesId:l})}}return c},[n,r,i,e,t,a])}function dv(e){let t=Kg(),{xAxis:n,xAxisIds:r}=Lg(),i=$g(),a=r[0];return q.useMemo(()=>{if(e)return(r,o)=>{let s=t.current,c=i?.series[o]?.xAxisId??a,l=c===void 0?void 0:n[c];if(s===null||l===void 0)return;let u=Kp(l,Jp(s,r).x);u!==-1&&e(r,{type:`line`,seriesId:o,dataIndex:u})}},[e,t,i,a,n])}var fv=[`slots`,`slotProps`,`onItemClick`,`skipAnimation`,`className`],pv=K(`g`,{name:`MuiAreaPlot`,slot:`Root`})({[`& .${rv.area}`]:{transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:Bh}}),mv=()=>{let{xAxis:e}=Lg(),{yAxis:t}=Rg();return uv(e,t)};function hv(e){let{slots:t,slotProps:n,onItemClick:r,skipAnimation:i,className:a}=e,o=X(e,fv),s=sv(cv()||i),c=mv(),l=iv(),u=dv(r);return(0,J.jsx)(pv,Y({className:A(l.areaPlot,a)},o,{children:c.map(({d:e,seriesId:r,color:i,area:a,gradientId:o})=>!!a&&(0,J.jsx)(ov,{seriesId:r,d:e,color:i,gradientId:o,slots:t,slotProps:n,onClick:u&&(e=>u(e,r)),skipAnimation:s},r))}))}var gv=[`skipAnimation`,`ownerState`],_v=q.forwardRef(function(e,t){let{skipAnimation:n,ownerState:r}=e,i=X(e,gv),a=f_({d:e.d,skipAnimation:n,ref:t}),o=r.isFaded?.3:1;return(0,J.jsx)($_,{skipAnimation:n,seriesId:`${r.seriesId}-line-clip`,children:(0,J.jsx)(`path`,Y({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:o,"data-series":r.seriesId,"data-highlighted":r.isHighlighted||void 0,"data-faded":r.isFaded||void 0},i,a))})}),vv=[`seriesId`,`classes`,`color`,`gradientId`,`slots`,`slotProps`,`onClick`,`hidden`];function yv(e){let{seriesId:t,classes:n,color:r,gradientId:i,slots:a,slotProps:o,onClick:s,hidden:c}=e,l=X(e,vv),u=$().use(Id,`enablePositionBasedPointerInteraction`),d=q.useMemo(()=>({type:`line`,seriesId:t}),[t]),f=_h(d),p=zh(d),m=p===`highlighted`,h=p===`faded`,g={seriesId:t,classes:n,color:r,gradientId:i,isFaded:h,isHighlighted:m,hidden:c},_=iv(),v=a?.line??_v;return(0,J.jsx)(v,Y({},l,Qc({elementType:v,externalSlotProps:o?.line,additionalProps:Y({},u?{}:f,{onClick:s,cursor:s?`pointer`:`unset`,"data-highlighted":m||void 0,"data-faded":h||void 0,"data-series-id":t,"data-series":t}),className:_.line,ownerState:g})))}function bv(e,t,n){let r=$g(),i=Lg().xAxisIds[0],a=Rg().yAxisIds[0],o=r_(),s=$h(),c=$(),l=c.use(rh),u=c.use(ih),d=c.use(Cp),f=c.use(Tp),p=c.use(xu).line?.sampler,m=n?.zoomMap??d,h=n?.availableSize??s.width,g=l?.methods.line,_=g!=null&&g!==`none`,v=q.useRef(_),y=_||v.current;return q.useEffect(()=>{v.current=_},[_]),q.useMemo(()=>{if(r===void 0)return[];let{series:n,stackingGroups:s}=r,c=[];for(let r of s){let s=r.ids;for(let r of s){let{xAxisId:s=i,yAxisId:l=a,stackedData:d,visibleStackedData:v,data:b,connectNulls:x,curve:S,strictStepCurve:C}=n[r];if(!(s in e)||!(l in t))continue;let w=e[s].scale,T=Gm(w),E=t[l].scale,D=e[s].data,O=t[l].colorScale&&o(l)||e[s].colorScale&&o(s)||void 0,k=S?.includes(`step`)&&!C&&Pf(w),A=u[r],j=m?.get(s)??(A?nh(s):void 0),M=null;_&&A&&j&&!k&&D&&(M=p?.sample?.({built:A,zoom:j,availableSize:h,minSpan:f[s]?.minSpan??0,algorithm:g,getValues:()=>Float64Array.from(v,e=>e[1])})??null);let N;N=M?M.flatMap(e=>Array.from(e.indices,e=>({x:D[e],y:v[e],nullData:b[e]==null}))):D?.flatMap((e,t)=>{let n=b[t]==null;if(k){let r=[{x:e,y:v[t],nullData:n,isExtension:!1}];return!n&&(t===0||b[t-1]==null)&&r.unshift({x:(w(e)??0)-(w.step()-w.bandwidth())/2,y:v[t],nullData:n,isExtension:!0}),!n&&(t===b.length-1||b[t+1]==null)&&r.push({x:(w(e)??0)+(w.step()+w.bandwidth())/2,y:v[t],nullData:n,isExtension:!0}),r}return{x:e,y:v[t],nullData:n}})??[];let P=x?N.filter(e=>!e.nullData):N,F=n[r].hidden,I=kt().x(e=>e.isExtension?e.x:T(e.x)).defined(e=>x||!e.nullData||!!e.isExtension).y(e=>E(F?e.y[0]:e.y[1])).curve(lv(S))(P)||``;c.push({color:n[r].color,gradientId:O,d:I,seriesId:r,hidden:n[r].hidden,isSampled:y})}}return c},[r,i,a,e,t,o,_,g,u,m,h,f,p,y])}var xv=[`slots`,`slotProps`,`skipAnimation`,`onItemClick`,`className`],Sv=K(`g`,{name:`MuiLinePlot`,slot:`Root`})({[`& .${rv.line}`]:{transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:Bh}}),Cv=()=>{let{xAxis:e}=Lg(),{yAxis:t}=Rg();return bv(e,t)};function wv(e){let{slots:t,slotProps:n,skipAnimation:r,onItemClick:i,className:a}=e,o=X(e,xv),s=sv(cv()||r),c=Cv(),l=iv(),u=dv(i);return(0,J.jsx)(Sv,Y({className:A(l.linePlot,a)},o,{children:c.map(({d:e,seriesId:r,color:i,gradientId:a,hidden:o,isSampled:c})=>(0,J.jsx)(yv,{seriesId:r,d:e,color:i,gradientId:a,hidden:o,skipAnimation:s||c,slots:t,slotProps:n,onClick:u&&(e=>u(e,r))},r))}))}var Tv=[`x`,`y`,`seriesId`,`classes`,`color`,`dataIndex`,`onClick`,`skipAnimation`,`isFaded`,`isHighlighted`,`shape`,`hidden`],Ev=K(`circle`,{slot:`internal`,shouldForwardProp:void 0})({[`&.${rv.markAnimate}`]:{transitionDuration:`300ms`,transitionProperty:`cx, cy, opacity`,transitionTimingFunction:Bh}});function Dv(e){let{x:t,y:n,seriesId:r,classes:i,color:a,dataIndex:o,onClick:s,skipAnimation:c,isFaded:l=!1,isHighlighted:u=!1,hidden:d}=e,f=X(e,Tv),p=$().use(Id,`enablePositionBasedPointerInteraction`),m=_h({type:`line`,seriesId:r,dataIndex:o}),h=T(),g=iv({skipAnimation:c,classes:i}
70);return(0,J.jsx)(Ev,Y({},f,p?{}:m,{cx:t,cy:n,r:5,fill:(h.vars||h).palette.background.paper,stroke:a,strokeWidth:2,className:g.mark,onClick:s,cursor:s?`pointer`:`unset`,pointerEvents:d?`none`:void 0,"data-highlighted":u||void 0,"data-faded":l||void 0,"data-series-id":r,"data-series":r,"data-index":o,opacity:+!d}))}function Ov(e){switch(e){case`circle`:return 0;case`cross`:return 1;case`diamond`:return 2;case`square`:return 3;case`star`:return 4;case`triangle`:return 5;case`wye`:return 6;default:return 0}}var kv=[`x`,`y`,`seriesId`,`classes`,`color`,`shape`,`dataIndex`,`onClick`,`skipAnimation`,`isFaded`,`isHighlighted`,`hidden`,`style`],Av=K(`path`,{name:`MuiMarkElement`,slot:`Root`})(({theme:e})=>({fill:(e.vars||e).palette.background.paper,[`&.${rv.markAnimate}`]:{transitionDuration:`300ms`,transitionProperty:`transform, transform-origin, opacity`,transitionTimingFunction:Bh}}));function jv(e){let{x:t,y:n,seriesId:r,classes:i,color:a,shape:o,dataIndex:s,onClick:c,skipAnimation:l,isFaded:u=!1,isHighlighted:d=!1,hidden:f,style:p}=e,m=X(e,kv),h=$().use(Id,`enablePositionBasedPointerInteraction`),g=_h({type:`line`,seriesId:r,dataIndex:s}),_={seriesId:r,classes:i,isHighlighted:d,isFaded:u,skipAnimation:l},v=iv({skipAnimation:l,classes:i});return(0,J.jsx)(Av,Y({},m,h?{}:g,{style:Y({},p,{transform:`translate(${t}px, ${n}px)`,transformOrigin:`${t}px ${n}px`}),ownerState:_,className:v.mark,d:Nt(Ft[Ov(o)])(),onClick:c,cursor:c?`pointer`:`unset`,pointerEvents:f?`none`:void 0,"data-highlighted":d||void 0,"data-faded":u||void 0,"data-series-id":r,"data-series":r,"data-index":s,opacity:+!f,strokeWidth:2,stroke:a}))}function Mv(e){return e.colorGetter?e.colorGetter:()=>e.color}function Nv(e){let{series:t,valueColorScale:n,categoryColorScale:r,categoryValues:i}=e,a=Mv(t);return n?e=>{if(e===void 0)return t.color;let r=t.data[e],i=n(r);return typeof i==`string`?i:a({value:r,dataIndex:e})}:r&&i?e=>{if(e===void 0)return t.color;let n=i[e],o={value:t.data[e],dataIndex:e},s=r(n);return typeof s==`string`?s:a(o)}:e=>{if(e===void 0)return t.color;let n=t.data[e];return a({value:n,dataIndex:e})}}var Pv=(e,t,n)=>Nv({series:e,valueColorScale:n?.colorScale,categoryColorScale:t?.colorScale,categoryValues:t?.data});function Fv(e,t){let n=$g(),r=Lg().xAxisIds[0],i=Rg().yAxisIds[0],a=eg(),{instance:o}=hh();return q.useMemo(()=>{if(n===void 0)return[];let{series:s,stackingGroups:c}=n,l=[];for(let n of c){let c=n.ids;for(let n of c){let{xAxisId:c=r,yAxisId:u=i,visibleStackedData:d,data:f,showMark:p,shape:m=`circle`,hidden:h}=s[n];if(!p||p===`start`||p===`end`||!(c in e)||!(u in t))continue;let g=Gm(e[c].scale),_=t[u].scale,v=e[c].data,y=Qh(`${a}-${n}-line-clip`),b=Pv(s[n],e[c],t[u]),x=[];if(v)for(let e=0;e<v.length;e+=1){let t=v[e],n=f[e]==null?null:d[e][1];if(n===null)continue;let r=_(h?d[e][0]:n),i=g(t);o.isPointInside(i,r)&&(p!==!0&&!p({x:i,y:r,index:e,position:t,value:n})||x.push({x:i,y:r,index:e,color:b(e)}))}l.push({seriesId:n,clipId:y,shape:m,xAxisId:c,marks:x,hidden:h})}}return l},[n,r,i,a,e,t,o])}var Iv=[`slots`,`slotProps`,`skipAnimation`,`onItemClick`,`className`],Lv=K(`g`,{name:`MuiMarkPlot`,slot:`Root`})({});function Rv(e){let{slots:t,slotProps:n,skipAnimation:r,onItemClick:i,className:a}=e,o=X(e,Iv),s=sv(cv()||r),{xAxis:c}=Lg(),{yAxis:l}=Rg(),{store:u}=hh(),d=e_(),f=u.use(Fm),p=q.useMemo(()=>{let e={};for(let{dataIndex:t,axisId:n}of f)e[n]===void 0?e[n]=new Set([t]):e[n].add(t);return e},[f]),m=Fv(c,l);return(0,J.jsx)(Lv,Y({className:A(iv().markPlot,a)},o,{children:m.map(({seriesId:e,clipId:r,shape:a,xAxisId:o,marks:c,hidden:l})=>{let u=t?.mark??(a===`circle`?Dv:jv),f=d({type:`line`,seriesId:e}),m=f===`highlighted`,h=f===`faded`;return(0,J.jsx)(`g`,{clipPath:`url(#${r})`,"data-series":e,children:c.map(({x:t,y:r,index:c,color:d})=>(0,J.jsx)(u,Y({seriesId:e,dataIndex:c,shape:a,color:d,x:t,y:r,skipAnimation:s,onClick:i&&(t=>i(t,{type:`line`,seriesId:e,dataIndex:c})),isHighlighted:p[o]?.has(c)||m,isFaded:h,hidden:l},n?.mark),`${e}-${c}`))},e)})}))}var zv=()=>()=>{},Bv=()=>!0,Vv=()=>!1;function Hv(){return q.useSyncExternalStore(zv,Bv,Vv)}function Uv(e=!1){let[t,n]=q.useState(!1);return $c(()=>{e||n(!0)},[e]),q.useEffect(()=>{e&&n(!0)},[e]),t}function Wv(e){return Math.PI/180*e}var Gv=typeof window<`u`&&`Intl`in window&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function Kv(e,t){return e.slice(0,t)}function qv(e,t){let n=Gv.segment(e),r=``,i=0;for(let e of n)if(r+=e.segment,i+=1,i>=t)break;return r}var Jv=Gv?qv:Kv,Yv=`…`;function Xv(e,t){let{width:n,height:r,measureText:i}=t,a=Wv(t.angle),o=i(e),s=Math.abs(o.width*Math.cos(a))+Math.abs(o.height*Math.sin(a)),c=Math.abs(o.width*Math.sin(a))+Math.abs(o.height*Math.cos(a));return s<=n&&c<=r}function Zv(e,t){if(t(e))return e;let n=e,r=1,i=1/2,a=Zl(e),o=a,s=a,c=null;do{if(s=o,o=Math.floor(a*i),o===0)break;n=Jv(e,o).trim();let l=t(n+Yv);r+=1,l?(c=n,i+=1/2**r):i-=1/2**r}while(Math.abs(o-s)!==1);return c?c+Yv:``}function Qv(e,t,n,r,i){let a=new Map,o=bg(i?.angle??0),s=1,c=1;i?.textAnchor===`start`?(s=1/0,c=1):i?.textAnchor===`end`?(s=1,c=1/0):(s=2,c=2),o>90&&o<270&&([s,c]=[c,s]),r&&([s,c]=[c,s]);for(let r of e)if(r.formattedValue){let e=Math.min((r.offset+r.labelOffset)*s,(t.left+t.width+t.right-r.offset-r.labelOffset)*c);a.set(r,Zv(r.formattedValue.toString(),t=>Xv(t,{width:e,height:n,angle:o,measureText:e=>Hl(e,i)})))}return a}var $v=5;function ey(e,t,n=0){let r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<$v)return e;if(r>90-$v)return t;let i=ql(r);return i<Math.atan2(t,e)?e/Math.cos(i):t/Math.sin(i)}function ty(e,{tickLabelStyle:t,tickLabelInterval:n,tickLabelMinGap:r,reverse:i,isMounted:a,isXInside:o}){if(typeof n==`function`)return new Set(e.filter((e,t)=>
70n(e.value,t)));let s=0,c=i?-1:1,l=e.filter(e=>{let{offset:t,labelOffset:n,formattedValue:r}=e;return r===``?!1:o(t+n)}),u=ry(l,t);return new Set(l.filter((e,n)=>{let{offset:i,labelOffset:o}=e,l=i+o;if(n>0&&c*l<c*(s+r))return!1;let{width:d,height:f}=a?ny(u,e):{width:0,height:0},p=ey(d,f,t?.angle),m=l-c*p/2;return n>0&&c*m<c*(s+r)?!1:(s=l+c*p/2,!0)}))}function ny(e,t){if(t.formattedValue===void 0)return{width:0,height:0};let n=0,r=0;for(let i of t.formattedValue.split(`
71`)){let t=e.get(i);t&&(n=Math.max(n,t.width),r+=t.height)}return{width:n,height:r}}function ry(e,t){let n=new Set;for(let t of e)t.formattedValue&&t.formattedValue.split(`
72`).forEach(e=>n.add(e));return Ul(n,t)}function iy({style:e,needsComputation:t,text:n}){return n.split(`
73`).map(n=>Y({text:n},t?Hl(n,e):{width:0,height:0}))}var ay=[`x`,`y`,`style`,`text`,`ownerState`],oy=[`angle`,`textAnchor`,`dominantBaseline`];function sy(e){let{x:t,y:n,style:r,text:i}=e,a=X(e,ay),o=r??{},{angle:s,textAnchor:c,dominantBaseline:l}=o,u=X(o,oy),d=Hv(),f=q.useMemo(()=>iy({style:u,needsComputation:d&&i.includes(`
74`),text:i}),[u,i,d]),p;switch(l){case`hanging`:case`text-before-edge`:p=0;break;case`central`:p=(f.length-1)/2*-f[0].height;break;default:p=(f.length-1)*-f[0].height;break}return(0,J.jsx)(`text`,Y({},a,{transform:s?`rotate(${s}, ${t}, ${n})`:void 0,x:t,y:n,textAnchor:c,dominantBaseline:l,style:u,children:f.map((e,n)=>(0,J.jsx)(`tspan`,{x:t,dy:`${n===0?p:f[0].height}px`,dominantBaseline:l,children:e.text},n))}))}function cy(e){let t=bg(e);return t<=30||t>=330||t<=210&&t>=150?`middle`:t<=180?`end`:`start`}function ly(e){let t=bg(e);return t<=30||t>=330?`hanging`:t<=210&&t>=150?`auto`:`central`}function uy(e){switch(e){case`start`:return`end`;case`end`:return`start`;default:return e}}var dy=[`scale`,`tickNumber`,`reverse`];function fy(e){let{xAxis:t,xAxisIds:n}=Lg(),r=t[e.axisId??n[0]],{scale:i,tickNumber:a,reverse:o}=r,s=Y({},P_,w({props:Y({},X(r,dy),e),name:`MuiChartsXAxis`})),{position:c,tickLabelStyle:l,slots:u,slotProps:d}=s,f=T(),p=z(),m=N_(s),h=c===`bottom`?1:-1,g=u?.axisTick??`line`,_=u?.axisTickLabel??sy,v=cy((c===`bottom`?0:180)-(l?.angle??0)),y=ly((c===`bottom`?0:180)-(l?.angle??0));return{xScale:i,defaultizedProps:s,tickNumber:a,positionSign:h,classes:m,Tick:g,TickLabel:_,axisTickLabelProps:Qc({elementType:_,externalSlotProps:d?.axisTickLabel,additionalProps:{style:Y({},f.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:p?uy(v):v,dominantBaseline:y},l)},className:m.tickLabel,ownerState:{}}),reverse:o}}function py(e){let{axisLabelHeight:t,ordinalTimeTicks:n}=e,{xScale:r,defaultizedProps:i,tickNumber:a,positionSign:o,classes:s,Tick:c,TickLabel:l,axisTickLabelProps:u,reverse:d}=fy(e),f=z(),p=Uv(),{disableTicks:m,tickSize:h,valueFormatter:g,slotProps:_,tickInterval:v,tickLabelInterval:y,tickPlacement:b,tickLabelPlacement:x,tickLabelMinGap:S,tickSpacing:C,height:w}=i,T=$h(),{instance:E}=hh(),D=Hv(),O=m?4:h,k=X_({scale:r,tickNumber:a,valueFormatter:g,tickInterval:v,tickPlacement:b,tickLabelPlacement:x,tickSpacing:C,direction:`x`,ordinalTimeTicks:n}),A=ty(k,{tickLabelStyle:u.style,tickLabelInterval:y,tickLabelMinGap:S,reverse:d,isMounted:p,isXInside:E.isXInside}),j=Math.max(0,w-(t>0?t+4:0)-O-3),M=D?Qv(A,T,j,f,u.style):new Map(Array.from(A).map(e=>[e,e.formattedValue]));return(0,J.jsx)(q.Fragment,{children:k.map((e,t)=>{let{offset:n,labelOffset:r}=e,i=r??0,a=o*(O+3),d=E.isXInside(n),f=M.get(e),p=A.has(e);return(0,J.jsxs)(`g`,{transform:`translate(${n}, 0)`,className:s.tickContainer,children:[!m&&d&&(0,J.jsx)(c,Y({y2:o*O,className:s.tick},_?.axisTick)),f!==void 0&&p&&(0,J.jsx)(l,Y({x:i,y:a},u,{text:f}))]},t)})})}var my={start:0,extremities:0,end:1,middle:.5,tick:0};function hy(e){let{scale:t,tickInterval:n,tickLabelPlacement:r=`middle`,tickPlacement:i=`extremities`,groups:a}=e;return q.useMemo(()=>{let e=t.domain(),o=typeof n==`function`&&e.filter(n)||typeof n==`object`&&n||e;if(t.bandwidth()>0){let e=gy(o,a,i,r,t);return e[0]&&(e[0].ignoreTick=!0),[{formattedValue:void 0,offset:t.range()[0],labelOffset:0,groupIndex:a.length-1},...e,{formattedValue:void 0,offset:t.range()[1],labelOffset:0,groupIndex:a.length-1}]}return gy(o,a,i,r,t)},[t,n,a,i,r])}function gy(e,t,n,r,i){let a=[],o=new Map,s=0;for(let c=0;c<t.length;c+=1)for(let l=0;l<e.length;l+=1){let u=e[l],d=t[c].getValue(u,l),f=a[a.length-1];if(f?.value!==d||f?.groupIndex!==c){s=1;let e=Pf(i)?i(u)-(i.step()-i.bandwidth())/2+my[n]*i.step():i(u),t=i.step()*s*(my[r]-my[n]);a.push({value:d,formattedValue:`${d}`,offset:e,groupIndex:c,dataIndex:l,ignoreTick:!1,labelOffset:t}),o.has(l)||o.set(l,new Set);let f=o.get(l);for(let e of f.values())a[e].ignoreTick=!0;f.add(a.length-1)}else s+=1,f.labelOffset=i.step()*s*(my[r]-my[n])}return a}var _y={tickSize:6},vy=(e,t,n,r)=>{let i=e[t]??{},a=n??_y.tickSize,o=a*t*2+a;return Y({},_y,i,{tickSize:r?.[t]??i.tickSize??o})};function yy(e){let{xScale:t,defaultizedProps:n,tickNumber:r,positionSign:i,classes:a,Tick:o,TickLabel:s,axisTickLabelProps:c}=fy(e);if(!Pf(t))throw Error(N(8));let{disableTicks:l,tickSize:u,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:m,tickLabelPlacement:h}=n,g=n.groups,_=n.id,{instance:v}=hh(),y=$().use(gd),b=(_?y[_]:void 0)?.groupTickSizes,x=hy({scale:t,tickNumber:r,valueFormatter:d,tickInterval:p,tickPlacement:m,tickLabelPlacement:h,direction:`x`,groups:g});return(0,J.jsx)(q.Fragment,{children:x.map((e,t)=>{let{offset:n,labelOffset:r}=e,d=r??0,p=v.isXInside(n),m=e.formattedValue,h=e.ignoreTick??!1,_=e.groupIndex??0,y=vy(g,_,u,b),x=i*y.tickSize,S=i*(y.tickSize+3);return(0,J.jsxs)(`g`,{transform:`translate(${n}, 0)`,className:a.tickContainer,"data-group-index":_,children:[!l&&!h&&p&&(0,J.jsx)(o,Y({y2:x,className:a.tick},f?.axisTick)),m!==void 0&&(0,J.jsx)(s,Y({x:d,y:S},c,{style:Y({},c.style,y.tickLabelStyle),text:m}))]},t)})})}var by=K(`g`,{name:`MuiChartsAxis`,slot:`Root`})(({theme:e})=>({[`& .${M_.tickLabel}`]:Y({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${M_.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${M_.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`,strokeWidth:1},[`& .${M_.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`}})),xy=[`axis`],Sy=[`scale`,`tickNumber`,`reverse`,`ordinalTimeTicks`],Cy=K(by,{name:`MuiChartsXAxis`,slot:`Root`})({});function wy(e){let{axis:t}=e,n=X(e,xy),{scale:r,ordinalTimeTicks:i}=t,a=Y({},P_,w({props:Y({},X(t,Sy),n),name:`MuiChartsXAxis`})),{position:o,className:s,labelStyle:c,offset:l,slots:u,slotProps:d,sx:f,disableLine:p,label:m,height:h}=a,g=T(),_=N_(a),{left:v,top:y,width:b,height:x}=$h(),S=o===`bottom`?1:-1,C=u?.axisLine??`line`,E=u?.axisLabel??sy,D=Qc({elementType:E,externalSlotProps:d?.axisLabel,additionalProps:{style:Y({},g.typography.body1,{lineHeight:1,fontSize:14,textAnchor:`middle`,dominantBaseline:o===`bottom`?`text-after-edge`:`text-before-edge`},c)},ownerState:{}});if(o===`none`)return null;let O=m?Hl(m,D.style).height:0,k=r.domain(),j=Pf(r)?k.length===0:k.some(F_),M=null;j||(M=`groups`in t&&Array.isArray(t.groups)?(0,J.jsx)(yy,Y({},n)):(0,J.jsx)(py,Y({},n,{axisLabelHeight:O,ordinalTimeTicks:i})));let N={x:v+b/2,y:S*h};return(0,J.jsxs)(Cy,{transform:`translate(0, ${o===`bottom`?y+x+l
74:y-l})`,className:A(_.root,s),"data-axis-id":a.id,sx:f,children:[!p&&(0,J.jsx)(C,Y({x1:v,x2:v+b,className:_.line},d?.axisLine)),M,m&&(0,J.jsx)(`g`,{className:_.label,children:(0,J.jsx)(E,Y({},N,D,{text:m}))})]})}function Ty(e){let{xAxis:t,xAxisIds:n}=Lg(),r=t[e.axisId??n[0]];return r?(0,J.jsx)(wy,Y({},e,{axis:r})):null}function Ey(e,t,n,r,i){let a=new Map,o=bg(i?.angle??0),s=1,c=1;i?.textAnchor===`start`?(s=1/0,c=1):i?.textAnchor===`end`?(s=1,c=1/0):(s=2,c=2),o>180&&([s,c]=[c,s]),r&&([s,c]=[c,s]);for(let r of e)if(r.formattedValue){let e=Math.min((r.offset+r.labelOffset)*s,(t.top+t.height+t.bottom-r.offset-r.labelOffset)*c);a.set(r,Zv(r.formattedValue.toString(),t=>Xv(t,{width:n,height:e,angle:o,measureText:e=>Hl(e,i)})))}return a}var Dy=e=>{let{classes:t,position:n}=e;return A_({root:[`root`,`directionY`,n],line:[`line`],tickContainer:[`tickContainer`],tick:[`tick`],tickLabel:[`tickLabel`],label:[`label`]},j_,t)},Oy={disableLine:!1,disableTicks:!1,tickSize:6},ky=[`scale`,`tickNumber`,`reverse`];function Ay(e){let{yAxis:t,yAxisIds:n}=Rg(),r=t[e.axisId??n[0]],{scale:i,tickNumber:a}=r,o=Y({},Oy,w({props:Y({},X(r,ky),e),name:`MuiChartsYAxis`})),{position:s,tickLabelStyle:c,slots:l,slotProps:u}=o,d=T(),f=z(),p=Dy(o),m=s===`right`?1:-1,h=typeof c?.fontSize==`number`?c.fontSize:12,g=l?.axisTick??`line`,_=l?.axisTickLabel??sy,v=cy((s===`right`?-90:90)-(c?.angle??0)),y=ly((s===`right`?-90:90)-(c?.angle??0));return{yScale:i,defaultizedProps:o,tickNumber:a,positionSign:m,classes:p,Tick:g,TickLabel:_,axisTickLabelProps:Qc({elementType:_,externalSlotProps:u?.axisTickLabel,additionalProps:{style:Y({},d.typography.caption,{fontSize:h,textAnchor:f?uy(v):v,dominantBaseline:y},c)},className:p.tickLabel,ownerState:{}})}}function jy(e){let{axisLabelHeight:t,ordinalTimeTicks:n}=e,{yScale:r,defaultizedProps:i,tickNumber:a,positionSign:o,classes:s,Tick:c,TickLabel:l,axisTickLabelProps:u}=Ay(e),d=z(),{disableTicks:f,tickSize:p,valueFormatter:m,slotProps:h,tickPlacement:g,tickLabelPlacement:_,tickInterval:v,tickLabelInterval:y,tickSpacing:b,width:x}=i,S=$h(),{instance:C}=hh(),w=Hv(),T=f?4:p,E=X_({scale:r,tickNumber:a,valueFormatter:m,tickPlacement:g,tickLabelPlacement:_,tickInterval:v,tickSpacing:b,direction:`y`,ordinalTimeTicks:n}),D=Math.max(0,x-(t>0?t+2:0)-T-2),O=w?Ey(E,S,D,d,u.style):new Map(Array.from(E).map(e=>[e,e.formattedValue]));return(0,J.jsx)(q.Fragment,{children:E.map((e,t)=>{let{offset:n,labelOffset:r,value:i}=e,a=o*(T+2),d=r,p=typeof y==`function`&&!y?.(i,t),m=C.isYInside(n),g=O.get(e);return m?(0,J.jsxs)(`g`,{transform:`translate(0, ${n})`,className:s.tickContainer,children:[!f&&(0,J.jsx)(c,Y({x2:o*T,className:s.tick},h?.axisTick)),g!==void 0&&!p&&(0,J.jsx)(l,Y({x:a,y:d,text:g},u))]},t):null})})}function My(e){let{yScale:t,defaultizedProps:n,tickNumber:r,positionSign:i,classes:a,Tick:o,TickLabel:s,axisTickLabelProps:c}=Ay(e);if(!Pf(t))throw Error(N(9));let{disableTicks:l,tickSize:u,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:m,tickLabelPlacement:h}=n,g=n.groups,_=n.id,{instance:v}=hh(),y=$().use(vd),b=(_?y[_]:void 0)?.groupTickSizes,x=hy({scale:t,tickNumber:r,valueFormatter:d,tickInterval:p,tickPlacement:m,tickLabelPlacement:h,direction:`y`,groups:g});return(0,J.jsx)(q.Fragment,{children:x.map((e,t)=>{let{offset:n,labelOffset:r}=e,d=r??0,p=v.isYInside(n),m=e.formattedValue,h=e.ignoreTick??!1,_=e.groupIndex??0,y=vy(g,_,u,b),x=i*y.tickSize,S=i*(y.tickSize+2);return(0,J.jsxs)(`g`,{transform:`translate(0, ${n})`,className:a.tickContainer,"data-group-index":_,children:[!l&&!h&&p&&(0,J.jsx)(o,Y({x2:x,className:a.tick},f?.axisTick)),m!==void 0&&(0,J.jsx)(s,Y({x:S,y:d},c,{style:Y({},c.style,y.tickLabelStyle),text:m}))]},t)})})}var Ny=[`axis`],Py=[`scale`,`tickNumber`,`reverse`,`ordinalTimeTicks`],Fy=K(by,{name:`MuiChartsYAxis`,slot:`Root`})({});function Iy(e){let{axis:t}=e,n=X(e,Ny),{scale:r,ordinalTimeTicks:i}=t,a=X(t,Py),o=Hv(),s=Y({},Oy,w({props:Y({},a,n),name:`MuiChartsYAxis`})),{position:c,className:l,disableLine:u,label:d,labelStyle:f,offset:p,width:m,sx:h,slots:g,slotProps:_}=s,v=T(),y=Dy(s),{left:b,top:x,width:S,height:C}=$h(),E=c===`right`?1:-1,D=g?.axisLine??`line`,O=g?.axisLabel??sy,k=Qc({elementType:D,externalSlotProps:_?.axisLine,additionalProps:{strokeLinecap:`square`},ownerState:{}}),j=Qc({elementType:O,externalSlotProps:_?.axisLabel,additionalProps:{style:Y({},v.typography.body1,{lineHeight:1,fontSize:14,angle:E*90,textAnchor:`middle`,dominantBaseline:`text-before-edge`},f)},ownerState:{}});if(c===`none`)return null;let M={x:E*m,y:x+C/2},N=d==null?0:Hl(d,j.style).height,P=r.domain(),F=Pf(r)?P.length===0:P.some(F_),I=null;return F||(I=`groups`in t&&Array.isArray(t.groups)?(0,J.jsx)(My,Y({},n)):(0,J.jsx)(jy,Y({},n,{axisLabelHeight:N,ordinalTimeTicks:i}))),(0,J.jsxs)(Fy,{transform:`translate(${c===`right`?b+S+p:b-p}, 0)`,className:A(y.root,l),"data-axis-id":s.id,sx:h,children:[!u&&(0,J.jsx)(D,Y({y1:x,y2:x+C,className:y.line},k)),I,d&&o&&(0,J.jsx)(`g`,{className:y.label,children:(0,J.jsx)(O,Y({},M,j,{text:d}))})]})}function Ly(e){let{yAxis:t,yAxisIds:n}=Rg(),r=t[e.axisId??n[0]];return r?(0,J.jsx)(Iy,Y({},e,{axis:r})):null}function Ry(e){let{slots:t,slotProps:n}=e,{xAxisIds:r,xAxis:i}=Lg(),{yAxisIds:a,yAxis:o}=Rg(),s=t?.xAxis??Ty,c=t?.yAxis??Ly;return(0,J.jsxs)(q.Fragment,{children:[r.map(e=>!i[e].position||i[e].position===`none`?null:(0,J.jsx)(s,{slots:t,slotProps:n,axisId:e},e)),a.map(e=>!o[e].position||o[e].position===`none`?null:(0,J.jsx)(c,{slots:t,slotProps:n,axisId:e},e))]})}function zy(e){return Xh(`MuiChartsTooltip`,e)}var By=Zh(`MuiChartsTooltip`,[`root`,`paper`,`table`,`row`,`cell`,`mark`,`markContainer`,`labelCell`,`valueCell`,`axisValueCell`]),Vy=e=>A_({root:[`root`],paper:[`paper`],table:[`table`],row:[`row`],cell:[`cell`],mark:[`mark`],markContainer:[`markContainer`],labelCell:[`labelCell`],valueCell:[`valueCell`],axisValueCell:[`axisValueCell`]},zy,e);function Hy(){let e=$(),t=e.use(uh),n=e.use(xu),r=qg(),{xAxis:i,xAxisIds:a}=Lg(),{yAxis:o,yAxisIds:s}=Rg(),{zAxis:c,zAxisIds:l}=Gg(),{rotationAxis:u,rotationAxisIds:d}=Vg(),{radiusAxis:f,radiusAxisIds:p}=Hg();if(!t)return null;let m=r[t.type]?.series[t.seriesId];if(!m)return null;let h=Ju(m)?m.xAxisId??a[0]:void 0,g=Ju(m)?m.yAxisId??s[0]:void 0,_=ng(m)?(`radiusAxisId`in m?m.radiusAxisId:void 0)??p[0]:void 0,v=ng(m)?(`rotationAxisId`in m?m.rotationAxisId:void 0)??d[0]:void 0,y=(`colorAxisId`in m?m.colorAxisId:void 0)??(`zAxisId`in m?m.zAxisId:void 0)??l[0],b=v===void 0?h===void 0?void 0:i[h]:u[v],x=_===void 0?g===void 0?void 0:o[g]:f[_],S=n[m.type].colorProcessor(m,b,x,y===void 0?void 0:c[y]),C={};return h!==void 0&&(C.x=i[h]),g!==void 0&&(C.y=o[g]),v!==void 0&&(C.rotation=u[v]),_!==void 0&&(C.radius=f[_]),n[m.type].tooltipGetter({series:m,axesConfig:C,getColor:S,identifier:t})}var Uy=K(`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}
74 1px`})),Wy=K(`table`,{name:`MuiChartsTooltip`,slot:`Table`})(({theme:e})=>({borderSpacing:0,[`& .${By.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)}}})),Gy=K(`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)}})),Ky=K(re,{name:`MuiChartsTooltip`,slot:`Cell`})(({theme:e})=>({verticalAlign:`middle`,color:(e.vars||e).palette.text.secondary,textAlign:`start`,[`&.${By.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${By.labelCell}`]:{whiteSpace:`nowrap`,fontWeight:e.typography.fontWeightRegular},[`&.${By.valueCell}, &.${By.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${By.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 qy(e){return Xh(`MuiChartsLabelMark`,e)}var Jy=Zh(`MuiChartsLabelMark`,[`root`,`line`,`lineAndMark`,`square`,`circle`,`fill`]),Yy=e=>{let{type:t}=e;return A_({root:typeof t==`function`?[`root`]:[`root`,t===`line+mark`?`lineAndMark`:t],fill:[`fill`]},qy,e.classes)};function Xy(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=Xy(i[t],o[t],n)}}}else a===`className`&&n&&t.className!==void 0?r.className=A(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var Zy=(e,t,n)=>q.forwardRef(function(r,i){let a=w({props:r,name:e}),o=Xy(typeof t.defaultProps==`function`?t.defaultProps(a):t.defaultProps??{},a),s=T(),c=t.classesResolver?.(o,s);return(0,J.jsx)(q.forwardRef(n),Y({},o,{classes:c,ref:i}))}),Qy=[`type`,`markShape`,`color`,`className`,`classes`],$y=K(`div`,{name:`MuiChartsLabelMark`,slot:`Root`})(()=>({display:`flex`,width:14,height:14,"& > *":{width:`100%`,height:`100%`},[`&.${Jy.line}`]:{width:16,height:8,alignItems:`center`},[`&.${Jy.lineAndMark}`]:{alignItems:`center`},[`&.${Jy.square}`]:{height:13,width:13,borderRadius:2,overflow:`hidden`},[`&.${Jy.circle}`]:{height:15,width:15},svg:{display:`block`}})),eb=Zy(`MuiChartsLabelMark`,{defaultProps:{type:`square`},classesResolver:Yy},function(e,t){let{type:n,markShape:r,color:i,className:a,classes:o}=e,s=X(e,Qy),c=n,l=T();return(0,J.jsx)($y,Y({className:A(o?.root,a),ownerState:e,"aria-hidden":`true`,ref:t},s,{children:typeof c==`function`?(0,J.jsx)(c,{className:o?.fill,color:i}):(0,J.jsxs)(q.Fragment,{children:[n===`circle`&&(0,J.jsx)(`svg`,{viewBox:`0 0 15 15`,children:(0,J.jsx)(`circle`,{className:o?.fill,r:`7.5`,cx:`7.5`,cy:`7.5`,fill:i})}),n===`line`&&(0,J.jsx)(`svg`,{viewBox:`0 0 16 8`,preserveAspectRatio:`none`,children:(0,J.jsx)(`path`,{className:o?.fill,d:`M 2 4 L 14 4`,stroke:i,strokeWidth:`4`,strokeLinecap:`round`,vectorEffect:`non-scaling-stroke`})}),n===`line+mark`&&(0,J.jsxs)(`svg`,{viewBox:`0 0 16 16`,preserveAspectRatio:`none`,children:[(0,J.jsx)(`path`,{className:o?.fill,d:`M 1 8 L 15 8`,stroke:i,strokeWidth:2,strokeLinecap:`round`,vectorEffect:`non-scaling-stroke`}),r&&(0,J.jsx)(`path`,{d:Nt(Ft[Ov(r)],32)(),transform:`translate(8, 8) `,stroke:i,strokeWidth:2,fill:(l.vars||l).palette.background.paper})]}),n!==`line`&&n!==`circle`&&n!==`line+mark`&&(0,J.jsx)(`svg`,{viewBox:`0 0 13 13`,children:(0,J.jsx)(`rect`,{className:o?.fill,width:`13`,height:`13`,fill:i})})]})}))});function tb(e){let{classes:t,sx:n}=e,r=Hy(),i=$().use(xu),a=Vy(t);if(!r)return null;let o=i[r.identifier.type],s=o&&`ItemTooltipContent`in o?o.ItemTooltipContent:null;if(`values`in r){let{label:e,color:i,markType:o,markShape:c}=r,l=s??nb;return(0,J.jsx)(Uy,{sx:n,className:a.paper,children:(0,J.jsxs)(Wy,{className:a.table,children:[(0,J.jsxs)(re,{component:`caption`,children:[(0,J.jsx)(`div`,{className:a.markContainer,children:(0,J.jsx)(eb,{type:o,markShape:c,color:i,className:a.mark})}),e]}),(0,J.jsx)(`tbody`,{children:(0,J.jsx)(l,{classes:t,item:r})})]})})}let c=s??rb;return(0,J.jsx)(Uy,{sx:n,className:a.paper,children:(0,J.jsx)(Wy,{className:a.table,children:(0,J.jsx)(`tbody`,{children:(0,J.jsx)(c,{classes:t,item:r})})})})}function nb({classes:e,item:t}){let n=Vy(e);return(0,J.jsx)(q.Fragment,{children:t.values.map(e=>(0,J.jsxs)(Gy,{className:n.row,"data-series":t.identifier.seriesId,"data-index":t.identifier.dataIndex,children:[(0,J.jsx)(Ky,{className:A(n.labelCell,n.cell),
74component:`th`,children:e.label}),(0,J.jsx)(Ky,{className:A(n.valueCell,n.cell),component:`td`,children:e.formattedValue})]},e.label))})}function rb({classes:e,item:t}){let{color:n,label:r,formattedValue:i,markType:a,markShape:o}=t,s=Vy(e);return i==null||typeof i!=`string`?null:(0,J.jsxs)(Gy,{className:s.row,"data-series":t.identifier.seriesId,"data-index":`dataIndex`in t.identifier?t.identifier.dataIndex:void 0,children:[(0,J.jsxs)(Ky,{className:A(s.labelCell,s.cell),component:`th`,children:[(0,J.jsx)(`div`,{className:s.markContainer,children:(0,J.jsx)(eb,{type:a,markShape:o,color:n,className:s.mark})}),r]}),(0,J.jsx)(Ky,{className:A(s.valueCell,s.cell),component:`td`,children:i})]})}function ib(e){let t=$().use(xu),n=q.useMemo(()=>{let e={};return Object.keys(t).forEach(n=>{e[n]=t[n].colorProcessor}),e},[t]);return e?n[e]:n}function ab(e,t){return typeof e==`function`?e(t):e}function ob(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}var sb=`@media (pointer: fine)`,cb=()=>oe(sb,{defaultMatches:!0}),lb=new Set([`bar`,`line`,`scatter`,`rangeBar`,`ohlc`]);function ub(e,t,n){let r=e.data?.[t]??null,i=(e.valueFormatter??(t=>e.scaleType===`utc`?ob(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 db(e){if(!(!(`showMark`in e)||!e.showMark))return`shape`in e&&e.shape?e.shape:`circle`}function fb(e){let{directions:t}=e??{},n=zg(),r=Bg(),i=Ug(),a=Wg(),o=$(),s=o.use(Ym),c=o.use(Xm),l=o.use(jg),u=o.use(Fg),d=qg(),{xAxis:f}=Lg(),{yAxis:p}=Rg(),{zAxis:m,zAxisIds:h}=Gg(),{rotationAxis:g}=Vg(),{radiusAxis:_}=Hg(),v=ib(),y=o.use(wu);if(s.length===0&&c.length===0&&l.length===0&&u.length===0)return null;let b=[];return(t===void 0||t.includes(`x`))&&s.forEach(({axisId:e,dataIndex:t})=>{b.push(ub(f[e],t,`x`))}),(t===void 0||t.includes(`y`))&&c.forEach(({axisId:e,dataIndex:t})=>{b.push(ub(p[e],t,`y`))}),(t===void 0||t.includes(`rotation`))&&l.forEach(({axisId:e,dataIndex:t})=>{b.push(ub(g[e],t,`rotation`))}),(t===void 0||t.includes(`radius`))&&u.forEach(({axisId:e,dataIndex:t})=>{b.push(ub(_[e],t,`radius`))}),Object.keys(d).filter(e=>lb.has(e)).forEach(e=>{let t=d[e];return t?t.seriesOrder.forEach(i=>{let a=t.series[i];if(y&&!y({type:e,seriesId:i}))return;let o=a.xAxisId??n.id,s=a.yAxisId??r.id,c=b.findIndex(({axisDirection:e,axisId:t})=>e===`x`&&t===o||e===`y`&&t===s);if(c>=0){let t=`colorAxisId`in a&&a.colorAxisId||`zAxisId`in a&&a.zAxisId||h[0],{dataIndex:n}=b[c],r=v[e]?.(a,f[o],p[s],t?m[t]:void 0)(n)??``,l=a.data[n]??null,u=ab(a.label,`tooltip`)??null,d,g;if(e===`ohlc`&&Array.isArray(l)){let[e,t,r,i]=l,o=a.valueFormatter;d={open:e,high:t,low:r,close:i},g={open:o(e,{dataIndex:n,field:`open`}),high:o(t,{dataIndex:n,field:`high`}),low:o(r,{dataIndex:n,field:`low`}),close:o(i,{dataIndex:n,field:`close`})}}else d=l,g=a.valueFormatter(l,{dataIndex:n});b[c].seriesItems.push({seriesId:i,color:r,value:d,formattedValue:g,formattedLabel:u,markType:a.labelMarkType,markShape:db(a)})}}):[]}),Object.keys(d).filter(tg).forEach(e=>{let t=d[e];return t?t.seriesOrder.forEach(n=>{let r=t.series[n];if(y&&!y({type:e,seriesId:n}))return;let o=(`rotationAxisId`in r?r.rotationAxisId:void 0)??i?.id,s=(`radiusAxisId`in r?r.radiusAxisId:void 0)??a?.id,c=b.findIndex(({axisDirection:e,axisId:t})=>e===`rotation`&&t===o||e===`radius`&&t===s);if(c>=0){let{dataIndex:t}=b[c],i=v[e]?.(r,o===void 0?void 0:g[o],s===void 0?void 0:_[s])(t)??``,a=r.data[t]??null,l=r.valueFormatter(a,{dataIndex:t}),u=ab(r.label,`tooltip`)??null;b[c].seriesItems.push({seriesId:n,color:i,value:a,formattedValue:l,formattedLabel:u,markType:r.labelMarkType,markShape:db(r)})}}):[]}),b}function pb(e){let{sort:t}=e,n=Vy(e.classes),r=$().use(Iu),i=fb();return i===null?null:(0,J.jsx)(Uy,{sx:e.sx,className:n.paper,children:i.map(({axisId:i,mainAxis:a,axisValue:o,axisFormattedValue:s,seriesItems:c})=>{let l=t&&t!==`none`?[...c].sort((e,n)=>{let r=e.value?.valueOf(),i=n.value?.valueOf();return typeof r==`number`?typeof i==`number`?t===`asc`?r-i:i-r:-1:1}):c;return(0,J.jsxs)(Wy,{className:n.table,children:[o!=null&&!a.hideTooltip&&(0,J.jsx)(re,{component:`caption`,children:s}),(0,J.jsx)(`tbody`,{children:l.map(t=>{let n=r(t.seriesId);return(0,J.jsx)(n&&`AxisTooltipContent`in n?n.AxisTooltipContent??mb:mb,{classes:e.classes,item:t},t.seriesId)})})]},i)})})}function mb(e){let t=Vy(e.classes),{item:n}=e;return n.formattedValue==null||typeof n.formattedValue!=`string`?null:(0,J.jsxs)(Gy,{className:t.row,"data-series":n.seriesId,"data-index":`dataIndex`in n?n.dataIndex:void 0,children:[(0,J.jsxs)(Ky,{className:A(t.labelCell,t.cell),component:`th`,children:[(0,J.jsx)(`div`,{className:t.markContainer,children:(0,J.jsx)(eb,{type:n.markType,markShape:n.markShape,color:n.color,className:t.mark})}),n.formattedLabel||null]}),(0,J.jsx)(Ky,{className:A(t.valueCell,t.cell),component:`td`,children:n.formattedValue})]})}var hb={};function gb(e,t){let n=q.useRef(hb);return n.current===hb&&(n.current=e(t)),n}function _b(e){let{children:t,defer:n=!1,fallback:r=null}=e,[i,a]=q.useState(!1);return p(()=>{n||a(!0)},[n]),q.useEffect(()=>{n&&a(!0)},[n]),i?t:r}function vb(e){let t,n,r=()=>{n=null,e(...t)};function i(...e){t=e,n||=requestAnimationFrame(r)}return i.clear=()=>{n&&=(cancelAnimationFrame(n),null)},i}function yb(){let e=$(),t=e.use(pg),n=e.use(jl);return t===void 0?n===void 0?`none`:`cartesian`:`polar`}var bb=[`trigger`,`position`,`anchor`,`classes`,`children`],xb=()=>!1,Sb=()=>null;function Cb(e,t,n){return n?xb:e===`item`?dh:t===`polar`?Ig:t===`cartesian`?Zm:xb}var wb={item:`node`,axis:`chart`,none:`pointer`},Tb=(e,t)=>{switch(e){case`node`:return t;case`chart`:return $m;default:return Sb}},Eb=K(S,{name:`MuiChartsTooltip`,slot:`Root`})(({theme:e})=>({pointerEvents:`none`,zIndex:e.zIndex.modal}));function Db(e){let t=w({props:e,name:`MuiChartsTooltipContainer`}),{trigger:n=`axis`,position:r,anchor:i=`pointer`,classes:a,children:o}=t,s=X(t,bb),c=$(),l=Kg(),[u,d]=q.useState(null),f=Vy(a),p=c.use(nm),m=cb(),h=q.useRef(null),g=gb(()=>({x:0,y:0})),_=yb(),v=c.use(Am),y=c.use(Cb(n,_,v)),b=c.use(tm)===`keyboard`||p===null?wb[n]:i,x=c.use(uh),S=c.use(xu),C=x&&S[x.type]?.selectorTooltipItemPosition||Sb,T=c.use(Tb(b,C),t.position),E=T!==null;q.useEffect(()=>{let e=l.current;if(e===null)return()=>{};if(E)return;let t=vb((e,t)=>
74{g.current={x:e,y:t},h.current?.update()}),n=e=>{t(e.clientX,e.clientY)};return e.addEventListener(`pointermove`,n),e.addEventListener(`pointerenter`,n),()=>{e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerenter`,n),t.clear()}},[l,g,E]),$c(()=>{E&&h.current?.update()},[E,T?.x,T?.y]);let D=q.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]),O=p===`mouse`||m,k=p===`touch`||!m,A=q.useMemo(()=>[{name:`offset`,options:{offset:()=>k&&!E?[0,64]:[0,8]}},...O?[]:[{name:`flip`,options:{fallbackPlacements:[`top-end`,`top-start`,`bottom-end`,`bottom`]}}],{name:`preventOverflow`,options:{altAxis:!0}}],[O,E,k]);return n===`none`?null:(0,J.jsxs)(q.Fragment,{children:[l.current&&Rr.createPortal((0,J.jsx)(`div`,{ref:d,style:{position:`absolute`,display:`hidden`,left:T?.x??0,top:T?.y??0,pointerEvents:`none`,opacity:0,width:1,height:1}}),l.current),(0,J.jsx)(_b,{children:y&&(0,q.createElement)(Eb,Y({},s,{key:T?`charts-anchored`:`charts-pointer`,className:f?.root,open:y,placement:s.placement??r??(!E&&O?`right-start`:`top`),popperRef:h,anchorEl:T?u:D,modifiers:A,container:s.container??l.current,popperOptions:Y({},s.popperOptions,{strategy:`fixed`})}),o)})]})}var Ob=[`classes`,`trigger`,`sort`];function kb(e){let{classes:t,trigger:n=`axis`,sort:r}=e,i=X(e,Ob),a=Vy(t);return(0,J.jsx)(Db,Y({},i,{trigger:n,classes:t,children:n===`axis`?(0,J.jsx)(pb,{classes:a,sort:r}):(0,J.jsx)(tb,{classes:a})}))}var Ab=e=>({type:`series`,color:e.color,label:e.label,seriesId:e.seriesId,dataIndex:e.dataIndex});function jb(e){return Xh(`MuiChartsLegend`,e)}var Mb=e=>{let{classes:t,direction:n}=e;return A_({root:[`root`,n],item:[`item`],mark:[`mark`],label:[`label`],series:[`series`],hidden:[`hidden`]},jb,t)},Nb=Zh(`MuiChartsLegend`,[`root`,`item`,`series`,`mark`,`label`,`vertical`,`horizontal`,`hidden`]),Pb=[`slots`,`slotProps`],Fb=[`ownerState`],Ib=(e,t,n,r)=>{function i(i,a){let o=w({props:i,name:e}),s=Xy(typeof n.defaultProps==`function`?n.defaultProps(o):n.defaultProps??{},o),c=s,{slots:l,slotProps:u}=c,d=X(c,Pb),f=T(),p=n.classesResolver?.(s,f),m=l?.[t]??r,h=n.propagateSlots&&!l?.[t],g=Y({},X(Qc({elementType:m,externalSlotProps:u?.[t],additionalProps:Y({},d,{classes:p},h&&{slots:l,slotProps:u}),ownerState:{}}),Fb));for(let e of n.omitProps??[])delete g[e];return(0,J.jsx)(m,Y({},g,{ref:a}))}return q.forwardRef(i)};
74function Lb(e){return Xh(`MuiChartsLabel`,e)}Zh(`MuiChartsLabel`,[`root`]);var Rb=e=>A_({root:[`root`]},Lb,e.classes),zb=[`children`,`className`,`classes`],Bb=Zy(`MuiChartsLabel`,{classesResolver:Rb},function(e,t){let{children:n,className:r,classes:i}=e,a=X(e,zb);return(0,J.jsx)(`span`,Y({className:A(i?.root,r),ref:t},a,{children:n}))}),Vb=[`direction`,`onItemClick`,`className`,`classes`,`toggleVisibilityOnClick`],Hb=K(`ul`,{name:`MuiChartsLegend`,slot:`Root`})(({ownerState:e,theme:t})=>Y({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:`100%`,display:`flex`,flexDirection:e.direction===`vertical`?`column`:`row`,alignItems:e.direction===`vertical`?void 0:`center`,flexShrink:0,gap:t.spacing(2),listStyleType:`none`,paddingInlineStart:0,marginBlock:t.spacing(1),marginInline:t.spacing(1),flexWrap:`wrap`,li:{display:e.direction===`horizontal`?`inline-flex`:void 0},[`button.${Nb.series}`]:{background:`none`,border:`none`,padding:0,fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,letterSpacing:`inherit`,color:`inherit`},[`& .${Nb.series}`]:{display:e.direction===`vertical`?`flex`:`inline-flex`,alignItems:`center`,gap:t.spacing(1),cursor:e.onItemClick||e.toggleVisibilityOnClick?`pointer`:`default`,[`&.${Nb.hidden}`]:{opacity:.5}},gridArea:`legend`})),Ub=Ib(`MuiChartsLegend`,`legend`,{defaultProps:{direction:`horizontal`},omitProps:[`position`],classesResolver:Mb},q.forwardRef(function(e,t){let n=n_(),{instance:r}=hh(),i=$().use(wu),{onItemClick:a,className:o,classes:s,toggleVisibilityOnClick:c}=e,l=X(e,Vb),u=!!(a||c),d=el((e,t)=>n=>{a&&e&&a(n,Ab(e),t),c&&r.toggleItemVisibility({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex})});return n.items.length===0?null:(0,J.jsx)(Hb,Y({className:A(s?.root,o),ref:t},l,{ownerState:e,children:n.items.map((e,t)=>{let n=i({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex});return(0,J.jsx)(`li`,{className:s?.item,"data-series":e.seriesId,"data-index":e.dataIndex,children:u?(0,J.jsxs)(`button`,{className:A(s?.series,!n&&s?.hidden),onClick:d(e,t),type:`button`,children:[(0,J.jsx)(eb,{className:s?.mark,color:e.color,type:e.markType,markShape:e.markShape}),(0,J.jsx)(Bb,{className:s?.label,children:e.label})]}):(0,J.jsxs)(`div`,{className:A(s?.series,!n&&s?.hidden),children:[(0,J.jsx)(eb,{className:s?.mark,color:e.color,type:e.markType,markShape:e.markShape}),(0,J.jsx)(Bb,{className:s?.label,children:e.label})]})},`${e.seriesId}-${e.dataIndex}`)})}))}));function Wb(e){return Xh(`MuiChartsAxisHighlight`,e)}Zh(`MuiChartsAxisHighlight`,[`root`]);var Gb=K(`path`,{name:`MuiChartsAxisHighlight`,slot:`Root`})(({theme:e})=>({pointerEvents:`none`,variants:[{props:{axisHighlight:`band`},style:Y({fill:`white`,fillOpacity:.1},e.applyStyles(`light`,{fill:`gray`}))},{props:{axisHighlight:`line`},style:Y({strokeDasharray:`5 2`,stroke:`#ffffff`},e.applyStyles(`light`,{stroke:`#000000`}))}]}));function Kb(e,t,n,r){let i=e.step(),a=(i-e.bandwidth())/2,o=e(t[n]),s=e(t[r]);return{regionStart:Math.min(o,s)-a,regionSize:(r-n+1)*i}}function qb(e,t){if(t instanceof Date){let n=t.getTime();return e.findIndex(e=>e instanceof Date&&e.getTime()===n)}return e.indexOf(t)}function Jb({scale:e,value:t,dataIndex:n,data:r,bucketSize:i}){let a=e.step(),o=(a-e.bandwidth())/2,s=e(t)-o,c=a;if(i>1&&r){let a=n??qb(r,t);if(a>=0){let t=Math.floor(a/i)*i,{regionStart:n,regionSize:o}=Kb(e,r,t,Math.min(t+i-1,r.length-1));s=n,c=o}}return{bandStart:s,bandSize:c}}function Yb(e){let{type:t,classes:n}=e,{left:r,width:i}=$h(),a=$(),o=a.use(Rm),s=a.use(Rp),c=a.use(ah);return o.length===0?null:o.map(e=>{let{axisId:a,value:o}=e,l=s.axis[a],u=l.scale,d=Gm(u),f=t===`band`&&o!==null&&Pf(u),p=0,m=0;return f&&({bandStart:p,bandSize:m}=Jb({scale:u,value:o,dataIndex:e.dataIndex,data:l.data,bucketSize:c.get(a)??1})),(0,J.jsxs)(q.Fragment,{children:[f&&u(o)!==void 0&&(0,J.jsx)(Gb,{d:`M ${r} ${p} l 0 ${m} l ${i} 0 l 0 ${-m} Z`,className:n.root,ownerState:{axisHighlight:`band`}}),t===`line`&&o!==null&&(0,J.jsx)(Gb,{d:`M ${r} ${d(o)} L ${r+i} ${d(o)}`,className:n.root,ownerState:{axisHighlight:`line`}})]},`${a}-${o}`)})}function Xb(e){let{type:t,classes:n}=e,{top:r,height:i}
74=$h(),a=$(),o=a.use(Lm),s=a.use(Lp),c=a.use(ah);return o.length===0?null:o.map(e=>{let{axisId:a,value:o}=e,l=s.axis[a],u=l.scale,d=Gm(u),f=t===`band`&&o!==null&&Pf(u),p=0,m=0;return f&&({bandStart:p,bandSize:m}=Jb({scale:u,value:o,dataIndex:e.dataIndex,data:l.data,bucketSize:c.get(a)??1})),(0,J.jsxs)(q.Fragment,{children:[f&&u(o)!==void 0&&(0,J.jsx)(Gb,{d:`M ${p} ${r} l ${m} 0 l 0 ${i} l ${-m} 0 Z`,className:n.root,ownerState:{axisHighlight:`band`}}),t===`line`&&o!==null&&(0,J.jsx)(Gb,{d:`M ${d(o)} ${r} L ${d(o)} ${r+i}`,className:n.root,ownerState:{axisHighlight:`line`}})]},`${a}-${o}`)})}var Zb=()=>A_({root:[`root`]},Wb);function Qb(e){let{x:t,y:n}=e,r=Zb();return(0,J.jsxs)(q.Fragment,{children:[t&&t!==`none`&&(0,J.jsx)(Xb,{type:t,classes:r}),n&&n!==`none`&&(0,J.jsx)(Yb,{type:n,classes:r})]})}function $b(e){let{id:t,offset:n}=e,{left:r,top:i,width:a,height:o}=$h(),s=Y({top:0,right:0,bottom:0,left:0},n);return(0,J.jsx)(`clipPath`,{id:t,children:(0,J.jsx)(`rect`,{x:r-s.left,y:i-s.top,width:a+s.left+s.right,height:o+s.top+s.bottom})})}var ex=[`x`,`y`,`seriesId`,`color`,`shape`];function tx(e){let{x:t,y:n,color:r,shape:i}=e,a=X(e,ex),o=iv(),s=i===`circle`?`circle`:`path`,c=i===`circle`?{cx:0,cy:0,r:a.r===void 0?5:a.r}:{d:Nt(Ft[Ov(i)])()},l=ll>18?{transformOrigin:`${t} ${n}`}:{"transform-origin":`${t} ${n}`};return(0,J.jsx)(s,Y({pointerEvents:`none`,className:o.highlight,transform:`translate(${t} ${n})`,fill:r},l,c,a))}var nx=[`slots`,`slotProps`];function rx(e){let{slots:t,slotProps:n}=e,r=X(e,nx),i=$g(),{xAxis:a,xAxisIds:o}=Lg(),{yAxis:s,yAxisIds:c}=Rg(),{instance:l}=hh(),u=$().use(Fm);if(i===void 0)return null;let{series:d,stackingGroups:f}=i,p=o[0],m=c[0],h=f.some(({ids:e})=>e.some(e=>d[e].showMark===`start`||d[e].showMark===`end`));if(u.length===0&&!h)return null;let g=new Map;u.forEach(({axisId:e,dataIndex:t})=>{g.set(e,t)});let _=t?.lineHighlight??tx;return(0,J.jsx)(`g`,Y({},r,{children:f.flatMap(({ids:e})=>e.flatMap(e=>{let{xAxisId:t=p,yAxisId:r=m,visibleStackedData:i,data:o,disableHighlight:c,showMark:u,shape:f=`circle`,hidden:h}=d[e];if(h)return null;let v=c?void 0:g.get(t),y=u===`start`||u===`end`?ix(o,u):void 0,b=v??y;if(b===void 0||o[b]==null)return null;let x=Gm(a[t].scale),S=s[r].scale,C=a[t].data;if(C===void 0)throw Error(N(10,t===`DEFAULT_X_AXIS_KEY`?"The first `xAxis`":`The x-axis with id "${t}"`));let w=x(C[b]),T=S(i[b][1]);return l.isPointInside(w,T)?(0,J.jsx)(_,Y({seriesId:e,color:Pv(d[e],a[t],s[r])(b),x:w,y:T,shape:f},n?.lineHighlight),`${e}`):null}))}))}function ix(e,t){if(t===`start`){let t=e.findIndex(e=>e!=null);return t<0?void 0:t}let n=e.findLastIndex(e=>e!=null);return n<0?void 0:n}function ax(e){return Xh(`MuiChartsGrid`,e)}var ox=Zh(`MuiChartsGrid`,[`root`,`line`,`horizontalLine`,`verticalLine`]),sx=K(`g`,{name:`MuiChartsGrid`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${ox.verticalLine}`]:t.verticalLine},{[`& .${ox.horizontalLine}`]:t.horizontalLine},t.root]})({}),cx=K(`line`,{name:`MuiChartsGrid`,slot:`Line`})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:`crispEdges`,strokeWidth:1}));function lx(e){let{instance:t}=hh(),{axis:n,start:r,end:i,classes:a}=e,{scale:o,tickNumber:s,tickInterval:c,tickSpacing:l}=n,u=X_({scale:o,tickNumber:s,tickInterval:c,tickSpacing:l,direction:`x`,ordinalTimeTicks:`ordinalTimeTicks`in n?n.ordinalTimeTicks:void 0});return(0,J.jsx)(q.Fragment,{children:u.map(({value:e,offset:n})=>t.isXInside(n)?(0,J.jsx)(cx,{y1:r,y2:i,x1:n,x2:n,className:a.verticalLine},`vertical-${e?.getTime?.()??e}`):null)})}function ux(e){let{instance:t}=hh(),{axis:n,start:r,end:i,classes:a}=e,{scale:o,tickNumber:s,tickInterval:c,tickSpacing:l}=n,u=X_({scale:o,tickNumber:s,tickInterval:c,tickSpacing:l,direction:`y`,ordinalTimeTicks:`ordinalTimeTicks`in n?n.ordinalTimeTicks:void 0});return(0,J.jsx)(q.Fragment,{children:u.map(({value:e,offset:n})=>t.isYInside(n)?(0,J.jsx)(cx,{y1:n,y2:n,x1:r,x2:i,className:a.horizontalLine},`horizontal-${e?.getTime?.()??e}`):null)})}var dx=[`className`,`vertical`,`horizontal`],fx=({classes:e})=>A_({root:[`root`],verticalLine:[`line`,`verticalLine`],horizontalLine:[`line`,`horizontalLine`]},ax,e);function px(e){let t=w({props:e,name:`MuiChartsGrid`}),n=$h(),{className:r,vertical:i,horizontal:a}=t,o=X(t,dx),{xAxis:s,xAxisIds:c}=Lg(),{yAxis:l,yAxisIds:u}=Rg(),d=fx(t),f=l[u[0]],p=s[c[0]];return(0,J.jsxs)(sx,Y({},o,{className:A(d.root,r),children:[i&&(0,J.jsx)(lx,{axis:p,start:n.top,end:n.height+n.top,classes:d}),a&&(0,J.jsx)(ux,{axis:f,start:n.left,end:n.width+n.left,classes:d})]}))}var mx=K(`text`,{slot:`internal`,shouldForwardProp:void 0})(({theme:e})=>Y({},e.typography.body2,{stroke:`none`,fill:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`,textAnchor:`middle`,dominantBaseline:`middle`}));function hx(e){let{top:t,left:n,height:r,width:i}=$h(),{localeText:a}=O_();return(0,J.jsx)(mx,Y({x:n+i/2,y:t+r/2},e,{children:a.loading}))}function gx(e){let{top:t,left:n,height:r,width:i}=$h(),{localeText:a}=O_();return(0,J.jsx)(mx,Y({x:n+i/2,y:t+r/2},e,{children:a.noData}))}function _x(){let e=qg();return Object.values(e).every(e=>{if(!e)return!0;let{series:t,seriesOrder:n}=e;return n.every(e=>{let n=t[e];return n.type===`sankey`?n.data.links.length===0:n.data.length===0})})}function vx(e){let t=_x();return e.loading?(0,J.jsx)(e.slots?.loadingOverlay??hx,Y({},e.slotProps?.loadingOverlay)):t?(0,J.jsx)(e.slots?.noDataOverlay??gx,Y({},e.slotProps?.noDataOverlay)):null}var yx=[_p,jm,oh,Yp,pm,fh,Mu,sh],bx=`xAxis.yAxis.series.width.height.margin.colors.dataset.sx.onAreaClick.onLineClick.onMarkClick.axisHighlight.disableLineItemHighlight.hideLegend.grid.children.slots.slotProps.skipAnimation.loading.highlightedItem.onHighlightChange.className.showToolbar.brushConfig`.split(`.`),xx=e=>{let{xAxis:t,yAxis:n,series:r,width:i,height:a,margin:o,colors:s,dataset:c,sx:l,onAreaClick:u,onLineClick:d,onMarkClick:f,axisHighlight:p,disableLineItemHighlight:m,grid:h,children:g,slots:_,slotProps:v,skipAnimation:y,loading:b,highlightedItem:x,onHighlightChange:S,className:C,brushConfig:w}=e,T=X(e,bx),E=`${il()}-clip-path`,D=Y({},T,{series:q.useMemo(()=>r.map(e=>Y({disableHighlight:!!m,type:`line`},e)),[m,r]),width:i,height:a,margin:o,colors:s,dataset:c,xAxis:t??[{id:`DEFAULT_X_AXIS_KEY`,scaleType:`point`,data:Array.from({length:Math.max(...r.map(e=>(e.data??c??[]).length))},(e,t)=>t)}],yAxis:n,highlightedItem:x,onHighlightChange:S,disableAxisListener:v?.tooltip?.trigger!==`axis`&&p?.x===`none`&&p?.y===`none`,skipAnimation:y,brushConfig:w,plugins:yx}),O={vertical:h?.vertical,horizontal:h?.horizontal},k={clipPath:`url(#${E})`},A={id:E},j={slots:_,slotProps:v,onItemClick:u},M={slots:_,slotProps:v,onItemClick:d},N={slots:_,slotProps:v,onItemClick:f,skipAnimation:y},P={slots:_,slotProps:v,loading:b},F={slots:_,slotProps:v},I=Y({x:`line`},p),L={slots:_,slotProps:v},R={slots:_,slotProps:v};return{chartsWrapperProps:{sx:l,legendPosition:e.slotProps?.legend?.position,legendDirection:e.slotProps?.legend?.direction,hideLegend:e.hideLegend??!1,className:C},chartsContainerProps:D,gridProps:O,clipPathProps:A,clipPathGroupProps:k,areaPlotProps:j,linePlotProps:M,markPlotProps:N,overlayProps:P,chartsAxisProps:F,axisHighlightProps:I,lineHighlightPlotProps:L,legendProps:R,children:g}},Sx=50;function Cx(e,t,n,r,i,a,o,s,c,l,u=1/0,d=1,f=0){let p=n.copy(),m=r.copy();p.range([0,1]),m.range([0,1]);let h=function(e){let n=p(t[e].x),r=m(t[e].y);return n>=i&&n<=a&&r>=o&&r<=s},g=n.range()[1]-n.range()[0],_=r.range()[1]-r.range()[0],v=g*g,y=_*_;function b(e,t){return v*e*e+y*t*t}let x=p(wx(n,c,e=>t[e]?.x)),S=m(wx(r,l,e=>
74t[e]?.y));if(x===void 0||S===void 0)return[];let C=typeof f==`number`,w=Number.isFinite(u)?u*u:1/0,T=e.neighbors(x,S,C?d:Sx,w,h,b);if(C)return T;let E=[];for(let e of T){let n=p(t[e].x),r=m(t[e].y),i=b(n-x,r-S);if(i>w)continue;let a=Math.sqrt(i)-f(e);E.push({index:e,edge:a,centerDistSq:i})}E.sort((e,t)=>e.edge-t.edge);let D=E.findLastIndex(e=>e.edge<0);return D!==-1&&(E=[...E.slice(0,D+1).sort((e,t)=>e.centerDistSq-t.centerDistSq),...E.slice(D+1)]),E.slice(0,Math.min(E.length,d)).map(e=>e.index)}function wx(e,t,n){return Pf(e)?n(e.bandwidth()===0?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())):e.invert(t)}function Tx(e,t){return t===void 0?!0:e.edgeDistance<=0?t.edgeDistance>0?!0:e.edgeDistance+e.radius<t.edgeDistance+t.radius:t.edgeDistance<=0?!1:e.edgeDistance<t.edgeDistance}var Ex=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,{disableHitArea:i,hitAreaRadius:a,onItemClick:o}=e,s=i,c=a,{axis:l,axisIds:u}=t.use(Lp),{axis:d,axisIds:f}=t.use(Rp),p=t.use(Sp),{series:m,seriesOrder:h}=t.use(Fu)?.scatter??{},g=t.use(p?Hp:Up),_=u[0],v=f[0];return $c(()=>{t.set(`voronoi`,{isVoronoiEnabled:!s})},[t,s]),q.useEffect(()=>{if(r.current===null||s)return;let e=r.current;function i(r){let i=Jp(e,r);if(!n.isPointInside(i.x,i.y))return`outside-chart`;let a;for(let e of h??[]){let n=(m??{})[e],r=g.get(e);if(!r||n.hidden)continue;let{flatbush:o,getItemRadius:s,maxItemRadius:u}=r,f=n.xAxisId??_,p=n.yAxisId??v,h=wp(t.state,f),y=wp(t.state,p),b=c===`item`?u:c,x=(h?.start??0)/100,S=(h?.end??100)/100,C=(y?.start??0)/100,w=(y?.end??100)/100,T=l[f].scale,E=d[p].scale,D=Cx(o,n.data,T,E,x,S,C,w,i.x,i.y,b,1,s)[0];if(D===void 0)continue;let O=n.data[D],k=T(O.x),A=E(O.y),j=Math.hypot(k-i.x,A-i.y),M=typeof s==`number`?s:s(D),N=j-M;if(c===`item`&&N>0)continue;let P={dataIndex:D,seriesId:e,edgeDistance:N,radius:M};Tx(P,a)&&(a=P)}return a===void 0?`no-point-found`:{seriesId:a.seriesId,dataIndex:a.dataIndex}}let a=n.addInteractionListener(`moveEnd`,e=>{e.detail.activeGestures.pan||(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),u=n.addInteractionListener(`panEnd`,e=>{e.detail.activeGestures.move||(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),f=n.addInteractionListener(`quickPressEnd`,e=>{!e.detail.activeGestures.move&&!e.detail.activeGestures.pan&&(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),p=e=>{let t=i(e.detail.srcEvent);if(t===`outside-chart`){n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.();return}if(t===`outside-voronoi-max-radius`||t===`no-point-found`){n.removeTooltipItem?.(),n.clearHighlight?.(),n.removeTooltipItem?.();return}let{seriesId:r,dataIndex:a}=t;n.setTooltipItem?.({type:`scatter`,seriesId:r,dataIndex:a}),n.setLastUpdateSource?.(`pointer`),n.setHighlight?.({type:`scatter`,seriesId:r,dataIndex:a})},y=n.addInteractionListener(`tap`,e=>{let t=i(e.detail.srcEvent);if(typeof t!=`string`&&o){let{seriesId:n,dataIndex:r}=t;o(e.detail.srcEvent,{type:`scatter`,seriesId:n,dataIndex:r})}}),b=n.addInteractionListener(`move`,p),x=n.addInteractionListener(`pan`,p),S=n.addInteractionListener(`quickPress`,p);return()=>{y.cleanup(),b.cleanup(),a.cleanup(),x.cleanup(),u.cleanup(),S.cleanup(),f.cleanup()}},[r,d,l,c,o,s,n,h,m,g,_,v,t]),{instance:{enableVoronoi:el(()=>{t.set(`voronoi`,{isVoronoiEnabled:!0})}),disableVoronoi:el(()=>{t.set(`voronoi`,{isVoronoiEnabled:!1})})}}};Ex.getDefaultizedParams=({params:e})=>Y({},e,{disableHitArea:e.disableHitArea??!e.series.some(e=>e.type===`scatter`)}),Ex.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableHitArea}}),Ex.params={disableHitArea:!0,hitAreaRadius:!0,onItemClick:!0};var Dx=2e4,Ox=5,kx=1e3,Ax=1e4,jx=(e,t)=>{let n=Math.max(1,e),r=Math.min(Ax,Math.max(kx,Math.ceil(Math.max(1,t)/Ox)));return Math.max(1,Math.floor(r/n))},Mx=e=>e.progressiveRendering,Nx=Z(Mx,e=>e?.plans),Px=Z(Mx,e=>e?.revealedRounds??0);function Fx(e,t){for(let n in e){if(!Object.hasOwn(e,n))continue;let r=e[n]?.series[t];if(r)return Array.isArray(r.data)?r.data.length:0}return 0}var Ix=Q(Nx,Fu,function(e,t){let n=new Map;if(!e||e.size===0)return{nBatchesBySeries:n,totalRounds:0,batchSize:kx};let r=0,i=0,a=new Map;
74e.forEach(e=>{e.forEach(e=>{let n=Fx(t,e);a.set(e,n),r+=1,i+=n})});let o=jx(r,i),s=0;return a.forEach((e,t)=>{let r=Math.max(1,Math.ceil(e/o));n.set(t,r),r>s&&(s=r)}),{nBatchesBySeries:n,totalRounds:s,batchSize:o}});Z(Ix,e=>e.batchSize);var Lx=Z(Ix,e=>e.totalRounds);function Rx(e,t,n){return Math.min(n?1:t,e)}Z(Ix,Px,Sp,function(e,t,n,r){return Rx(e.nBatchesBySeries.get(r)??0,t,n)});var zx=Z(Fu,e=>Id(e,`progressiveRendering`),(e,t,n,r)=>{if(r===`svg-single`||r===`svg-batch`)return!1;if(r===`svg-progressive`)return!0;if(!t)return!1;let i=0;for(let t of n)i+=Fx(e,t);return i>Dx});function Bx(e,t){if(!e||e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}var Vx=new Map,Hx=1,Ux=0,Wx=1,Gx=200,Kx=({store:e})=>{let t=el((t,n,r)=>{if(zx(e.state,n,r)){if(!Bx(e.state.progressiveRendering.plans.get(t),n)){let r=new Map(e.state.progressiveRendering.plans);r.set(t,n),e.set(`progressiveRendering`,{plans:r,revealedRounds:0})}return()=>{if(!e.state.progressiveRendering.plans.has(t))return;let n=new Map(e.state.progressiveRendering.plans);n.delete(t),e.set(`progressiveRendering`,Y({},e.state.progressiveRendering,{plans:n}))}}}),n=e.use(Nx)??Vx,r=e.use(Sp);return q.useEffect(()=>{let t=Lx(e.state);if(t===0)return;if(r){let n=Math.min(Wx,t);Px(e.state)!==n&&e.set(`progressiveRendering`,Y({},e.state.progressiveRendering,{revealedRounds:n}));return}if(typeof requestAnimationFrame!=`function`){e.set(`progressiveRendering`,Y({},e.state.progressiveRendering,{revealedRounds:t}));return}let n=0,i,a=!1,o=Px(e.state);function s(){let e=Ux,t=()=>{if(!a){if(e>0){--e,n=requestAnimationFrame(t);return}c()}};n=requestAnimationFrame(t)}function c(){if(a)return;let t=Lx(e.state);o=Math.min(t,o+Hx),e.set(`progressiveRendering`,Y({},e.state.progressiveRendering,{revealedRounds:o})),o<t&&s()}if(!(o>=t))return o>0?i=setTimeout(()=>{n=requestAnimationFrame(c)},Gx):n=requestAnimationFrame(c),()=>{a=!0,cancelAnimationFrame(n),i!==void 0&&clearTimeout(i)}},[n,r,e]),{instance:{registerProgressivePlan:t}}};Kx.params={},Kx.getInitialState=()=>({progressiveRendering:{plans:Vx,revealedRounds:0}});var qx=[_p,jm,oh,Yp,pm,fh,Mu,Ex,sh,Kx],Jx=`width.height.margin.children.series.colors.dataset.desc.onAxisClick.highlightedAxis.onHighlightedAxisChange.tooltipAxis.onTooltipAxisChange.tooltipItem.onTooltipItemChange.disableHitArea.hitAreaRadius.onItemClick.disableAxisListener.highlightedItem.onHighlightChange.sx.title.axesGap.xAxis.yAxis.zAxis.rotationAxis.radiusAxis.skipAnimation.seriesConfig.experimentalFeatures.plugins.localeText.slots.slotProps.disableKeyboardNavigation.brushConfig.onHiddenItemsChange.hiddenItems.initialHiddenItems`.split(`.`),Yx=e=>{let t=e,{width:n,height:r,margin:i,children:a,series:o,colors:s,dataset:c,desc:l,onAxisClick:u,highlightedAxis:d,onHighlightedAxisChange:f,tooltipAxis:p,onTooltipAxisChange:m,tooltipItem:h,onTooltipItemChange:g,disableHitArea:_,hitAreaRadius:v,onItemClick:y,disableAxisListener:b,highlightedItem:x,onHighlightChange:S,sx:C,title:w,axesGap:T,xAxis:E,yAxis:D,zAxis:O,rotationAxis:k,radiusAxis:A,skipAnimation:j,seriesConfig:M,experimentalFeatures:N,plugins:P,localeText:F,slots:I,slotProps:L,disableKeyboardNavigation:R,brushConfig:z,onHiddenItemsChange:B,hiddenItems:ee,initialHiddenItems:te}=t,V=X(t,Jx),ne=Y({title:w,desc:l,sx:C},V);return{chartsDataProviderProps:{margin:i,series:o,colors:s,dataset:c,disableAxisListener:b,highlightedItem:x,onHighlightChange:S,onAxisClick:u,highlightedAxis:d,onHighlightedAxisChange:f,tooltipAxis:p,onTooltipAxisChange:m,tooltipItem:h,onTooltipItemChange:g,disableHitArea:_,hitAreaRadius:v,onItemClick:y,axesGap:T,xAxis:E,yAxis:D,zAxis:O,rotationAxis:k,radiusAxis:A,skipAnimation:j,width:n,height:r,localeText:F,seriesConfig:M,experimentalFeatures:N,disableKeyboardNavigation:R,brushConfig:z,onHiddenItemsChange:B,hiddenItems:ee,initialHiddenItems:te,plugins:P??qx,slots:I,slotProps:L},chartsSurfaceProps:ne,children:a}},Xx=Y({},{baseButton:g,baseIconButton:ge,baseToggleButton:Lc,baseToggleButtonGroup:Uc},{}),Zx=q.createContext(null);function Qx(e){let{slots:t,slotProps:n={},defaultSlots:r,children:i}=e,a=q.useMemo(()=>({slots:Y({},r,t),slotProps:n}),[r,t,n]);return(0,J.jsx)(Zx.Provider,{value:a,children:i})}function $x(e){let t=1/0,n=-1/0;for(let r of e??[])r<t&&(t=r),r>n&&(n=r);return[t,n]}var eS=(e,t)=>t===`x`?{x:e,y:null}:{x:null,y:e},tS=e=>{let{axis:t,getFilters:n,isDefaultAxis:r}=e,i=n?.({currentAxisId:t.id,isDefaultAxis:r});
74return $x((i?t.data?.filter((e,t)=>i({x:null,y:null},t)):t.data)??[])},nS=e=>t=>{let{series:n,axis:r,getFilters:i,isDefaultAxis:a}=t;return Object.keys(n).filter(t=>{let i=e===`x`?n[t].xAxisId:n[t].yAxisId;return r.domainSeries===`visible`&&n[t].hidden?!1:i===r.id||a&&i===void 0}).reduce((t,o)=>{let{stackedData:s,visibleStackedData:c}=n[o],l=i?.({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:n[o].xAxisId,seriesYAxisId:n[o].yAxisId}),[u,d]=(r.domainSeries===`visible`?c:s)?.reduce((t,n,r)=>l&&(!l(eS(n[0],e),r)||!l(eS(n[1],e),r))?t:[Math.min(...n,t[0]),Math.max(...n,t[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(u,t[0]),Math.max(d,t[1])]},[1/0,-1/0])},rS=e=>Object.keys(e.series).some(t=>e.series[t].layout===`horizontal`)?nS(`x`)(e):tS(e),iS=e=>Object.keys(e.series).some(t=>e.series[t].layout===`horizontal`)?tS(e):nS(`y`)(e);function aS(e,t){if(e.length===0)return;let n=e.length,r=t,i=e[r[0]].length;for(let t=0;t<i;t+=1){let i=0,a=0;for(let o=0;o<n;o+=1){let n=e[r[o]],s=n[t],c=s[1]-s[0];c>0?(s[0]=i,i+=c,s[1]=i):c<0?(s[1]=a,a+=c,s[0]=a):s.data[n.key]>0?(s[0]=i,s[1]=i):s.data[n.key]<0?(s[1]=a,s[0]=a):(s[0]=0,s[1]=0)}}}var oS={appearance:Ot,ascending:Et,descending:Dt,insideOut:pt,none:Ut,reverse:Kt},sS={expand:Pt,diverging:aS,none:qt,silhouette:rt,wiggle:yt},cS=e=>{let{series:t,seriesOrder:n,defaultStrategy:r}=e,i=[],a={};return n.forEach(e=>{let{stack:n,stackOrder:o,stackOffset:s}=t[e];n===void 0?i.push({ids:[e],stackingOrder:oS.none,stackingOffset:sS.none}):a[n]===void 0?(a[n]=i.length,i.push({ids:[e],stackingOrder:oS[o??r?.stackOrder??`none`],stackingOffset:sS[s??r?.stackOffset??`diverging`]})):(i[a[n]].ids.push(e),o!==void 0&&(i[a[n]].stackingOrder=oS[o]),s!==void 0&&(i[a[n]].stackingOffset=sS[s]))}),i},lS=e=>e==null?``:e.toLocaleString(),uS=(e,t,n)=>{let{seriesOrder:r,series:i}=e,a=cS(e),o=t??[];r.forEach(e=>{let n=i[e].data;n===void 0?i[e].valueGetter&&t&&t.forEach((t,n)=>{let r=i[e].valueGetter(t);o.length<=n?o.push({[e]:r}):o[n][e]=r}):n.forEach((t,n)=>{o.length<=n?o.push({[e]:t}):o[n][e]=t})});let s={};return a.forEach(e=>{let{ids:r,stackingOffset:a,stackingOrder:c}=e,l=r.map(e=>{let t=i[e].dataKey;return i[e].data===void 0&&t!==void 0?t:e}),u=Yt().keys(l).value((e,t)=>e[t]??0).order(c).offset(a)(o),d=u.map(e=>e.index),f=Yt().keys(l).value((e,t)=>{let i=r[l.indexOf(t)];return n?.({type:`bar`,seriesId:i})?e[t]??0:0}).order(()=>d).offset(a)(o);r.forEach((e,r)=>{let{dataKey:a,valueGetter:o}=i[e],c;c=o?t.map(e=>o(e)):a?t.map(e=>{let t=e[a];return typeof t==`number`?t:null}):i[e].data;let l=!n?.({type:`bar`,seriesId:e});s[e]=Y({layout:`vertical`,labelMarkType:`square`,minBarSize:0,valueFormatter:i[e].valueFormatter??lS},i[e],{data:c,hidden:l,stackedData:u[r],visibleStackedData:f[r]})})}),{seriesOrder:r,stackingGroups:a,series:s}};function dS(e,t,n){let{seriesOrder:r,series:i}=t;return r.reduce((t,r)=>{let a=ab(i[r].label,`legend`);return a===void 0||t.push({type:e,markType:i[r].labelMarkType??n,seriesId:r,color:i[r].color,label:a}),t},[])}var fS=e=>dS(`bar`,e),pS=(e,t,n)=>{let r=e.layout===`vertical`;return Nv({series:e,valueColorScale:r?n?.colorScale:t?.colorScale,categoryColorScale:r?t?.colorScale:n?.colorScale,categoryValues:r?t?.data:n?.data})};function mS(e,t){return Object.keys(e).filter(e=>t.has(e)).flatMap(t=>{let n=e[t];return n.seriesOrder.filter(e=>{let t=n.series[e];return`hidden`in t&&t.hidden?!1:t.data.length>0&&t.data.some(e=>e!=null)}).map(e=>({type:t,seriesId:e}))})}function hS(e,t,n,r){let i=mS(e,t);if(i.length===0)return null;let a=n!==void 0&&r!==void 0?i.findIndex(e=>e.type===n&&e.seriesId===r):-1;return a<=0?i[i.length-1]:i[(a-1+i.length)%i.length]}function gS(e,t){return Object.keys(e).filter(e=>t.has(e)).flatMap(t=>{let n=e[t];return n.seriesOrder.filter(e=>{let t=n.series[e];return`hidden`in t&&t.hidden?!1:t.data.length>0&&t.data.some(e=>e!=null&&!(typeof e==`object`&&`hidden`in e&&e.hidden))}).map(e=>n.series[e].data.length)}).reduce((e,t)=>Math.max(e,t),0)}function _S(e,t,n,r){let i=mS(e,t);return i.length===0?null:i[((n!==void 0&&r!==void 0?i.findIndex(e=>e.type===n&&e.seriesId===r):-1)+1)%i.length]}function vS({processedSeries:e,type:t,seriesId:n,startIndex:r,dataLength:i,direction:a,allowCycles:o}){if(i<=0)return null;let s=e[t]?.series[n];if(s&&`hidden`in s&&s.hidden)return null;
74let c=s?.data,l=e=>{if(!c)return!1;let t=c[e];return typeof t==`object`&&!!t&&`hidden`in t&&!!t.hidden},u=r;for(let e=0;e<i;e+=1){if(u>=0&&u<i&&!l(u))return u;if(o)u=(u+a+i)%i;else{let e=u+a;if(e<0||e>=i)return null;u=e}}return null}function yS(e,t,n){if(t===`sankey`)return!1;let r=e[t]?.series[n]?.data;return r!=null&&r.length>0}function bS(e,t,n){let r=e[t]?.series[n];return!!(r&&`hidden`in r&&r.hidden)}function xS(e,t=!1,n=!0){return function(r,i){let a=Fu(i),o=r?.seriesId,s=r?.type;if(!s||o==null||!yS(a,s,o)||bS(a,s,o)){let t=_S(a,e,s,o);if(t===null)return null;s=t.type,o=t.seriesId}let c=n?a[s]?.series[o]?.data.length??0:gS(a,e),l=r?.dataIndex==null?0:r.dataIndex+1;t?l%=c:l=Math.min(c-1,l);let u=vS({processedSeries:a,type:s,seriesId:o,startIndex:l,dataLength:c,direction:1,allowCycles:t});return u===null?null:{type:s,seriesId:o,dataIndex:u}}}function SS(e,t=!1,n=!0){return function(r,i){let a=Fu(i),o=r?.seriesId,s=r?.type;if(!s||o==null||!yS(a,s,o)||bS(a,s,o)){let t=hS(a,e,s,o);if(t===null)return null;s=t.type,o=t.seriesId}let c=n?a[s]?.series[o]?.data.length??0:gS(a,e),l=r?.dataIndex==null?c-1:r.dataIndex-1;l=t?(c+l)%c:Math.max(0,l);let u=vS({processedSeries:a,type:s,seriesId:o,startIndex:l,dataLength:c,direction:-1,allowCycles:t});return u===null?null:{type:s,seriesId:o,dataIndex:u}}}function CS(e){return function(t,n){let r=Fu(n),i=t?.seriesId,a=t?.type,o=_S(r,e,a,i);if(o===null)return null;a=o.type,i=o.seriesId;let s=r[a].series[i].data,c=t?.dataIndex==null?0:Math.min(t.dataIndex,s.length-1),l=vS({processedSeries:r,type:a,seriesId:i,startIndex:c,dataLength:s.length,direction:1,allowCycles:!0});return l===null?null:{type:a,seriesId:i,dataIndex:l}}}function wS(e){return function(t,n){let r=Fu(n),i=t?.seriesId,a=t?.type,o=hS(r,e,a,i);if(o===null)return null;a=o.type,i=o.seriesId;let s=r[a].series[i].data,c=t?.dataIndex==null?s.length-1:Math.min(t.dataIndex,s.length-1),l=vS({processedSeries:r,type:a,seriesId:i,startIndex:c,dataLength:s.length,direction:-1,allowCycles:!0});return l===null?null:{type:a,seriesId:i,dataIndex:l}}}function TS(e,t,n){return r=>{switch(r.key){case`ArrowRight`:return xS(e,t,n);case`ArrowLeft`:return SS(e,t,n);case`ArrowDown`:return wS(e);case`ArrowUp`:return CS(e);default:return null}}}var ES=TS(lb,!1,!1);function DS(e,t={}){let{series:n,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;let a=ab(n.label,`tooltip`),o=n.data[i.dataIndex];if(t.skipNullValues&&o==null)return null;let s=n.valueFormatter(o,{dataIndex:i.dataIndex});return Y({identifier:i,color:r(i.dataIndex),label:a,value:o,formattedValue:s,markType:n.labelMarkType},t.includeMarkShape&&`showMark`in n&&{markShape:n.showMark?n.shape:void 0})}var OS=e=>DS(e,{skipNullValues:!0}),kS=e=>Object.values(e).map(e=>e.layout===`horizontal`?{direction:`y`,axisId:e.yAxisId}:{direction:`x`,axisId:e.xAxisId}),AS=2;function jS(e,t,n){let r=e&&t>0||!e&&t<0;return n?!r:r}function MS(e){let{verticalLayout:t,xAxisConfig:n,yAxisConfig:r,series:i,numberOfGroups:a}=e,o=t?n:r,s=(t?r.reverse:n.reverse)??!1,{barWidth:c,offset:l}=Bm(o.scale.bandwidth(),a,o.barGapRatio),u=n.scale,d=r.scale;return function(e,n){let r=n*(c+l),a=o.data[e],f=i.data[e];if(f==null)return null;let[p,m]=$x(i.visibleStackedData[e].map(e=>t?d(e):u(e))).map(e=>Math.round(e)),h=0;f!==0&&(i.hidden||(h=Math.max(i.minBarSize,m-p)));let g=jS(t,f,s),_=0;return _=g?m-h:p,{x:t?u(a)+r:_,y:t?_:d(a)+r,height:t?h:c,width:t?c:h}}}function NS(e){let{verticalLayout:t,xAxisConfig:n,yAxisConfig:r,series:i,numberOfGroups:a}=e,o=t?n:r,s=o.scale,c=s.bandwidth(),l=s.step(),u=t?r.scale:n.scale;return function(e,n,r,d,f){let{regionStart:p,regionSize:m}=Kb(s,o.data,e,n),h=n-e+1,g=Math.min(m/2,Math.max(h*(l-c),AS)),{barWidth:_,offset:v}=Bm(m-g,a,o.barGapRatio),y=g/2+f*(_+v),[b,x]=$x([u(r),u(d)]).map(e=>Math.round(e)),S=x-b;return!i.hidden&&S>0&&(S=Math.max(i.minBarSize,S)),{x:t?p+y:b,y:t?b:p+y,height:t?S:_,width:t?_:S}}}var PS=Q(uh,Fu,Lp,Rp,function(e,t,n,r,i){if(!e||e.type!==`bar`||e.dataIndex===void 0)return null;let a=t.bar?.series[e.seriesId];if(!t.bar||!a)return null;let o=n.axis[a.xAxisId??n.axisIds[0]],s=r.axis[a.yAxisId??r.axisIds[0]];if(!o||!s)return null;
74let c=t.bar.stackingGroups.findIndex(e=>e.ids.includes(a.id)),l=MS({verticalLayout:a.layout===`vertical`,xAxisConfig:o,yAxisConfig:s,series:a,numberOfGroups:t.bar.stackingGroups.length})(e.dataIndex,c);if(l==null)return null;let{x:u,y:d,width:f,height:p}=l;switch(i){case`right`:return{x:u+f,y:d+p/2};case`bottom`:return{x:u+f/2,y:d+p};case`left`:return{x:u,y:d+p/2};default:return{x:u+f/2,y:d}}});function FS(e,t,n){return Y({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length]})}var IS=e=>`Type(${e})`,LS=e=>`Series(${e})`,RS=e=>e===void 0?``:`Index(${e})`,zS=e=>`${IS(e.type)}${LS(e.seriesId)}${RS(e.dataIndex)}`,BS=e=>({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex}),VS={seriesProcessor:uS,colorProcessor:pS,legendGetter:fS,tooltipGetter:OS,selectorTooltipItemPosition:PS,axisTooltipGetter:kS,xExtremumGetter:rS,yExtremumGetter:iS,getSeriesWithDefaultValues:FS,getItemAtPosition:Um,identifierSerializer:zS,identifierCleaner:BS,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,yAxis:i,localeText:a}=e,o=ab(n.label,`tooltip`),s=n.data[t.dataIndex]??null,c=n.layout===`horizontal`?i:r,l=c.data?.[t.dataIndex]??null,u=n.valueFormatter(s,{dataIndex:t.dataIndex}),d=c.valueFormatter?.(l,{location:`tooltip`,scale:c.scale});return a.barDescription({value:s,formattedValue:u??``,categoryValue:l,formattedCategoryValue:d??``,seriesLabel:o})},keyboardFocusHandler:ES,isHighlightedCreator:Ih,isFadedCreator:Rh},HS=e=>{let{axis:t}=e;return $x(t.data??[])};function US(e,t,n,r){return n.reduce((n,i,a)=>{if(t[a]===null)return n;let[o,s]=e(i);return r&&(!r({y:o,x:null},a)||!r({y:s,x:null},a))?n:[Math.min(o,s,n[0]),Math.max(o,s,n[1])]},[1/0,-1/0])}var WS=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e;return Object.keys(t).filter(e=>{if(n.domainSeries===`visible`&&t[e].hidden)return!1;let i=t[e].yAxisId;return i===n.id||r&&i===void 0}).reduce((e,a)=>{let{area:o,stackedData:s,visibleStackedData:c,data:l}=t[a],u=o!==void 0,d=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),[f,p]=US(u&&n.scaleType!==`log`&&typeof t[a].baseline!=`string`?e=>e:e=>[e[1],e[1]],l,n.domainSeries===`visible`?c:s,d);return[Math.min(f,e[0]),Math.max(p,e[1])]},[1/0,-1/0])},GS=[`circle`,`square`,`diamond`,`cross`,`star`,`triangle`,`wye`],KS=e=>e==null?``:e.toLocaleString();function qS(e,t,n,r){let{seriesOrder:i,series:a}=e,o=cS(Y({},e,{defaultStrategy:{stackOffset:`none`}})),s=new Map,c=t??[];i.forEach((e,n)=>{s.set(e,n);let r=a[e].data;r===void 0?a[e].valueGetter&&t&&t.forEach((t,n)=>{let r=a[e].valueGetter(t);c.length<=n?c.push({[e]:r}):c[n][e]=r}):r.forEach((t,n)=>{c.length<=n?c.push({[e]:t}):c[n][e]=t})});let l={};return o.forEach(e=>{let{ids:i,stackingOffset:o,stackingOrder:u}=e,d=i.map(e=>{let t=a[e].dataKey;return a[e].data===void 0&&t!==void 0?t:e}),f=Yt().keys(d).value((e,t)=>e[t]??0).order(u).offset(o)(c),p=f.map(e=>e.index),m=Yt().keys(d).value((e,t)=>{let a=i[d.indexOf(t)];return n?.({type:r,seriesId:a})?e[t]??0:0}).order(()=>p).offset(o)(c);i.forEach((e,i)=>{let{dataKey:o,valueGetter:c}=a[e],u;u=c?t.map(e=>c(e)):o?t.map(e=>{let t=e[o];return typeof t==`number`?t:null}):a[e].data;let d=!n?.({type:r,seriesId:e});l[e]=Y({labelMarkType:`line+mark`},a[e],{shape:a[e].shape??GS[(s.get(e)??0)%GS.length],data:u,valueFormatter:a[e].valueFormatter??KS,hidden:d,stackedData:f[i],visibleStackedData:m[i]})})}),{seriesOrder:i,stackingGroups:o,series:l}}var JS=(e,t,n)=>qS(e,t,n,`line`),YS=e=>{let{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>{let r=ab(n[t].label,`legend`);return r===void 0||e.push({type:`line`,markType:n[t].labelMarkType,markShape:n[t].showMark?n[t].shape??`circle`:void 0,seriesId:t,color:n[t].color,label:r}),e},[])},XS=e=>DS(e,{includeMarkShape:!0}),ZS=e=>Object.values(e).map(e=>({direction:`x`,axisId:e.xAxisId})),QS=(e,t,n)=>Y({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length],curve:e.curve??`monotoneX`}),$S=Q(uh,Fu,Lp,Rp,function(e,t,n,r){if(!e||e.type!==`line`||e.dataIndex===void 0)return null;let i=t.line?.series[e.seriesId];if(i==null)return null;let a=n.axis[i.xAxisId??n.axisIds[0]],o=r.axis[i.yAxisId??r.axisIds[0]];if(a===void 0||o===void 0)return null;let s=a.data?.[e.dataIndex],c=i.data[e.dataIndex]==null?null:i.visibleStackedData[e.dataIndex][1];return s==null||c==null?null:{x:a.scale(s),y:o.scale(c)}});function eC(e){return`cpx1`in e}var tC=class{segments=[];cx=0;cy=0;moveTo(e,t){this.cx=e,this.cy=t}lineTo(e,t){this.segments.push({x0:this.cx,y0:this.cy,x1:e,y1:t}),this.cx=e,this.cy=t}bezierCurveTo(e,t,n,r,i,a){this.segments.push({x0:this.cx,y0:this.cy,cpx1:e,cpy1:t,cpx2:n,cpy2:r,x1:i,y1:a}),this.cx=i,this.cy=a}closePath(){}};function nC(e,t){let n=e.x1-e.x0;
74if(n===0)return e.y0;let r=e.y1-e.y0;if(!eC(e))return e.y0+r*(t-e.x0)/n;let i=(e.cpx1-e.x0)/n,a=(e.cpx2-e.x0)/n,o=ot(i,r===0?0:(e.cpy1-e.y0)/r,a,r===0?0:(e.cpy2-e.y0)/r),s=(t-e.x0)/n;return e.y0+r*o(s)}function rC(e,t,n){if(e.length===0)return null;if(e.length===1)return e[0].y;let r=new tC,i=lv(n)(r),a=e[0].x>t,o=0,s=!1;i.lineStart();for(let n of e)!s&&n.x>t!==a&&(o=Math.max(0,r.segments.length-1),s=!0),i.point(n.x,n.y);i.lineEnd();for(let e=o;e<r.segments.length;e+=1){let n=r.segments[e];if(t<n.x0+.5&&t>n.x0-.5)return n.y0;if(t<n.x1+.5&&t>n.x1-.5)return n.y1;let i=Math.min(n.x0,n.x1),a=Math.max(n.x0,n.x1);if(t>=i&&t<=a)return nC(n,t)}return null}function iC(e,t){let{scale:n,data:r}=e;if(!r||r.length===0)return null;if(Pf(n)){let n=Kp(e,t);return n===-1?null:Gm(e.scale)(r[n])<=t?n===r.length-1?null:{left:n,right:n+1}:n===0?null:{left:n-1,right:n}}let i=Wp(n.invert(t)),a=-1;for(let e=0;e<r.length&&Wp(r[e])<=i;e+=1)a=e;return a===-1?null:a===r.length-1?Wp(r[a])<i?null:{left:a,right:a}:{left:a,right:a+1}}function aC(e,t,n){if(typeof e==`number`)return t(e);if(e===`max`)return t.range()[1];if(e===`min`)return t.range()[0];let r=t(n);return Number.isNaN(r)?t.range()[0]:r}function oC(e,t,n,r,i,a){let o=[];if(a){for(let r=0;r<e.length;r+=1)if(e[r]!=null){let e=n(r);e!=null&&!Number.isNaN(e)&&o.push({x:t(r),y:e})}return o}let s=r;for(;s>0&&e[s-1]!=null;)--s;let c=i;for(;c<e.length-1&&e[c+1]!=null;)c+=1;for(let e=s;e<=c;e+=1){let r=n(e);r!=null&&!Number.isNaN(r)&&o.push({x:t(e),y:r})}return o}var sC=15;function cC(e,t){if(!e.experimentalFeatures?.enablePositionBasedPointerInteraction)return;let{axis:n,axisIds:r}=Lp(e),{axis:i,axisIds:a}=Rp(e),o=Jg(e,`line`);if(!o||o.seriesOrder.length===0)return;let s=r[0],c=a[0],l=1/0,u;for(let e of o.seriesOrder){let r=o.series[e];if(r.hidden)continue;let a=r.xAxisId??s,d=r.yAxisId??c,f=n[a],p=i[d],m=iC(f,t.x);if(!m)continue;let{left:h,right:g}=m,{visibleStackedData:_,data:v,connectNulls:y,curve:b}=r;if(!y&&(v[h]==null||v[g]==null))continue;let x=Kp(f,t.x);if(x===-1)continue;if(h===g){let n=_[h]?.[1];if(n==null)continue;let r=p.scale(n);if(r==null)continue;let i=Math.abs(t.y-r);i<l&&(l=i,u={type:`line`,seriesId:e,dataIndex:x});continue}let S=f.data;if(!S)continue;let C=Gm(f.scale),w=oC(v,e=>C(S[e]),e=>{let t=_[e];return t?p.scale(t[1]):null},h,g,y);if(w.length<2)continue;let T=rC(w,t.x,b);if(T==null)continue;let E=Math.abs(t.y-T);E<l&&(l=E,u={type:`line`,seriesId:e,dataIndex:x})}if(u&&l<=sC&&!o.series[u.seriesId].area)return u;let{stackingGroups:d}=o;for(let e=d.length-1;e>=0;--e){let r=d[e].ids;for(let e=0;e<r.length;e+=1){let a=r[e],l=o.series[a];if(l.hidden||!l.area)continue;let u=l.xAxisId??s,d=l.yAxisId??c,f=n[u],p=i[d];if(!f||!p)continue;let m=iC(f,t.x);if(!m)continue;let{left:h,right:g}=m,{visibleStackedData:_,data:v,connectNulls:y,baseline:b,curve:x}=l;if((v[h]==null||v[g]==null)&&!y)continue;let S=f.scale,C=p.scale,w=Gm(S),T=f.data;if(!T)continue;let E=e=>w(T[e]),D=oC(v,E,e=>{let t=_[e];return t?C(t[1]):null},h,g,y),O=oC(v,E,e=>{let t=_[e];return t?aC(b,C,t[0]):null},h,g,y);if(D.length<2||O.length<2)continue;let k=rC(D,t.x,x),A=rC(O,t.x,x);if(k==null||A==null)continue;let j=Math.min(A,k),M=Math.max(A,k);if(t.y>=j&&t.y<=M){let e=Kp(f,t.x);return{type:`line`,seriesId:a,dataIndex:e===-1?h:e}}}}return u}var lC={colorProcessor:Pv,seriesProcessor:JS,legendGetter:YS,tooltipGetter:XS,selectorTooltipItemPosition:$S,axisTooltipGetter:ZS,xExtremumGetter:HS,yExtremumGetter:WS,getSeriesWithDefaultValues:QS,getItemAtPosition:cC,keyboardFocusHandler:TS(lb,!1,!1),identifierSerializer:zS,identifierCleaner:BS,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,localeText:i}=e,a=ab(n.label,`tooltip`),o=t.dataIndex;if(o===void 0)return``;let s=r.data?.[o]??null,c=n.data[o]??null,l=r.valueFormatter?.(s,{location:`tooltip`,scale:r.scale}),u=n.valueFormatter(c,{dataIndex:o});return i.lineDescription({x:s,y:c,formattedXValue:l??``,formattedYValue:u??``,seriesLabel:a})},isHighlightedCreator:Ih,isFadedCreator:Rh},uC=(e=`none`)=>{if(typeof e==`function`)return e;switch(e){case`none`:return null;case`desc`:return(e,t)=>t-e;case`asc`:return(e,t)=>e-t;default:return null}},dC=(e,t,n)=>{let{seriesOrder:r,series:i}=e,a={};
74return r.forEach(e=>{let t=i[e].data.filter((t,r)=>n?.({type:`pie`,seriesId:e,dataIndex:r})),r=Lt().startAngle(ql(i[e].startAngle??0)).endAngle(ql(i[e].endAngle??360)).padAngle(ql(i[e].paddingAngle??0)).sortValues(uC(i[e].sortingValues??`none`))(t.map(e=>e.value)),o=0;a[e]=Y({labelMarkType:`circle`,valueFormatter:e=>e.value.toLocaleString()},i[e],{data:i[e].data.map((t,a)=>{let s=t.id??`auto-generated-pie-id-${e}-${a}`,c=!n?.({type:`pie`,seriesId:e,dataIndex:a}),l;if(c){let n=o>0?r[o-1].endAngle:ql(i[e].startAngle??0);l={startAngle:n,endAngle:n,padAngle:0,value:t.value,index:a}}else l=r[o],o+=1;let u=Y({},t,{id:s,hidden:c},l);return Y({labelMarkType:`circle`},u,{formattedValue:i[e].valueFormatter?.(Y({},u,{label:ab(u.label,`arc`)}),{dataIndex:a})??u.value.toLocaleString()})})})}),{seriesOrder:r,series:a}},fC=e=>t=>e.data[t].color,pC=e=>{let{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>(n[t].data.forEach((r,i)=>{let a=ab(r.label,`legend`);a!==void 0&&e.push({type:`pie`,markType:r.labelMarkType??n[t].labelMarkType,seriesId:t,dataIndex:i,color:r.color,label:a})}),e),[])},mC=e=>{let{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;let i=t.data[r.dataIndex];if(i==null)return null;let a=ab(i.label,`tooltip`),o=Y({},i,{label:a}),s=t.valueFormatter(o,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:a,value:o,formattedValue:s,markType:i.labelMarkType??t.labelMarkType}};function hC(e,t){let{height:n,width:r}=t,{cx:i,cy:a}=e,o=Math.min(r,n)/2;return{cx:og(i??`50%`,r),cy:og(a??`50%`,n),availableRadius:o}}var gC={colorProcessor:fC,seriesProcessor:dC,seriesLayout:(e,t)=>{let n={};for(let r of e.seriesOrder){let{innerRadius:i,outerRadius:a,arcLabelRadius:o,cx:s,cy:c}=e.series[r],{cx:l,cy:u,availableRadius:d}=hC({cx:s,cy:c},{width:t.width,height:t.height}),f=og(a??d,d),p=og(i??0,d);n[r]={radius:{available:d,inner:p,outer:f,label:o===void 0?(p+f)/2:og(o,d)},center:{x:t.left+l,y:t.top+u}}}return n},legendGetter:pC,tooltipGetter:mC,selectorTooltipItemPosition:Q(uh,Fu,Vd,function(e,t,n,r){if(!e||e.type!==`pie`||e.dataIndex===void 0)return null;let i=t.pie?.series[e.seriesId],a=n.pie?.[e.seriesId];if(i==null||a==null)return null;let{center:o,radius:s}=a,{data:c}=i,l=c[e.dataIndex];if(!l)return null;let u=[[s.inner,l.startAngle],[s.inner,l.endAngle],[s.outer,l.startAngle],[s.outer,l.endAngle]].map(([e,t])=>({x:o.x+e*Math.sin(t),y:o.y-e*Math.cos(t)})),[d,f]=$x(u.map(e=>e.x)),[p,m]=$x(u.map(e=>e.y));switch(r){case`bottom`:return{x:(f+d)/2,y:m};case`left`:return{x:d,y:(m+p)/2};case`right`:return{x:f,y:(m+p)/2};default:return{x:(f+d)/2,y:p}}}),getSeriesWithDefaultValues:(e,t,n)=>Y({},e,{id:e.id??`auto-generated-id-${t}`,data:e.data.map((e,t)=>Y({},e,{color:e.color??n[t%n.length]}))}),keyboardFocusHandler:TS(new Set([`pie`])),identifierSerializer:zS,identifierCleaner:BS,descriptionGetter:e=>{let{identifier:t,series:n,localeText:r}=e,i=n.data[t.dataIndex],a=ab(i?.label,`tooltip`),o=i?.value??null,s=i?.formattedValue??``,c=n.data.reduce((e,t)=>e+(t?.value??0),0);return r.pieDescription({value:o,totalValue:c,formattedValue:s,seriesLabel:a})},isHighlightedCreator:Ih,isFadedCreator:Rh},_C=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e,a=1/0,o=-1/0;for(let e in t){if(!Object.hasOwn(t,e)||n.domainSeries===`visible`&&t[e].hidden)continue;let s=t[e].xAxisId;if(!(s===n.id||s===void 0&&r))continue;let c=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),l=t[e].data??[];for(let e=0;e<l.length;e+=1){let t=l[e];c&&!c(t,e)||t.x!==null&&(t.x<a&&(a=t.x),t.x>o&&(o=t.x))}}return[a,o]},vC=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e,a=1/0,o=-1/0;for(let e in t){if(!Object.hasOwn(t,e)||n.domainSeries===`visible`&&t[e].hidden)continue;let s=t[e].yAxisId;if(!(s===n.id||s===void 0&&r))continue;let c=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),l=t[e].data??[];for(let e=0;e<l.length;e+=1){let t=l[e];c&&!c(t,e)||t.y!==null&&(t.y<a&&(a=t.y),t.y>o&&(o=t.y))}}return[a,o]};function yC(e,t,n){throw Error(N(279,e,t,n.map(e=>`"${e}"`).join(`, `)))}
74var bC={bar:VS,scatter:{seriesProcessor:({series:e,seriesOrder:t},n,r)=>({series:Object.fromEntries(Object.entries(e).map(([e,t])=>{let i=t?.datasetKeys,a=[`x`,`y`].filter(e=>typeof i?.[e]!=`string`);t?.datasetKeys&&a.length>0&&yC(`Scatter`,e,a);let o;return o=t.valueGetter?n?.map(t.valueGetter)??[]:i?n?.map(e=>{let t={x:e[i.x],y:e[i.y]};return i.colorValue!==void 0&&(t.colorValue=e[i.colorValue]),i.sizeValue!==void 0&&(t.sizeValue=e[i.sizeValue]),i.z!==void 0&&(t.z=e[i.z]),i.id!==void 0&&(t.id=e[i.id]),t})??[]:t.data??[],[e,Y({labelMarkType:`circle`,markerSize:4},t,{preview:Y({markerSize:1},t?.preview),data:o,hidden:!r?.({type:`scatter`,seriesId:e}),valueFormatter:t.valueFormatter??(e=>e&&`(${e.x}, ${e.y})`)})]})),seriesOrder:t}),colorProcessor:(e,t,n,r)=>{let i=r?.colorScale,a=n?.colorScale,o=t?.colorScale,s=Mv(e);return i?t=>{if(t===void 0)return e.color;if(r?.data?.[t]!==void 0){let e=i(r?.data?.[t]);if(e!==null)return e}let n=e.data[t],a=i(n.colorValue??n.z);return typeof a==`string`?a:s({value:n,dataIndex:t})}:a?t=>{if(t===void 0)return e.color;let n=e.data[t],r=a(n.y);return typeof r==`string`?r:s({value:n,dataIndex:t})}:o?t=>{if(t===void 0)return e.color;let n=e.data[t],r=o(n.x);return typeof r==`string`?r:s({value:n,dataIndex:t})}:t=>{if(t===void 0)return e.color;let n=e.data[t];return s({value:n,dataIndex:t})}},legendGetter:e=>dS(`scatter`,e),tooltipGetter:e=>DS(e),selectorTooltipItemPosition:Q(uh,Fu,Lp,Rp,function(e,t,n,r){if(!e||e.type!==`scatter`||e.dataIndex===void 0)return null;let i=t.scatter?.series[e.seriesId];if(i==null)return null;let a=n.axis[i.xAxisId??n.axisIds[0]],o=r.axis[i.yAxisId??r.axisIds[0]];if(a===void 0||o===void 0)return null;let s=i.data?.[e.dataIndex].x,c=i.data?.[e.dataIndex].y;return s==null||c==null?null:{x:a.scale(s),y:o.scale(c)}}),xExtremumGetter:_C,yExtremumGetter:vC,getSeriesWithDefaultValues:(e,t,n)=>Y({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length]}),keyboardFocusHandler:TS(lb),identifierSerializer:zS,identifierCleaner:BS,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,yAxis:i,localeText:a}=e,o=ab(n.label,`tooltip`),s=n.data[t.dataIndex],c=r.valueFormatter?.(s?.x,{location:`tooltip`,scale:r.scale})??``,l=i.valueFormatter?.(s?.y,{location:`tooltip`,scale:i.scale})??``;return a.scatterDescription({x:s?.x??null,y:s?.y??null,formattedXValue:c,formattedYValue:l,seriesLabel:o})},isHighlightedCreator:Ih,isFadedCreator:Rh},line:lC,pie:gC},xC=[`children`,`localeText`,`plugins`,`slots`,`slotProps`,`seriesConfig`],SC=e=>{let t=w({props:e,name:`MuiChartsDataProvider`}),{children:n,localeText:r,plugins:i=qx,slots:a,slotProps:o,seriesConfig:s=bC}=t,c=X(t,xC);return{children:n,localeText:r,chartProviderProps:{plugins:i,pluginParams:Y({theme:T().palette.mode,seriesConfig:s},c)},slots:a,slotProps:o}};function CC(e){let{children:t,localeText:n,chartProviderProps:r,slots:i,slotProps:a}=SC(e);return(0,J.jsx)(mh,Y({},r,{children:(0,J.jsx)(D_,{localeText:n,children:(0,J.jsx)(Qx,{slots:i,slotProps:a,defaultSlots:Xx,children:t})})}))}function wC(e){return Xh(`MuiChartsSurface`,e)}var TC=()=>A_({root:[`root`]},wC);Zh(`MuiChartsSurface`,[`root`]);function EC(e){let{isReversed:t,gradientId:n,size:r,direction:i,scale:a,colorMap:o}=e;return r<=0?null:(0,J.jsx)(`linearGradient`,{id:n,x1:`0`,x2:`0`,y1:`0`,y2:`0`,[`${i}${t?1:2}`]:`${r}px`,gradientUnits:`userSpaceOnUse`,children:o.thresholds.map((e,n)=>{let i=a(e);if(i===void 0)return null;let s=t?1-i/r:i/r;return Number.isNaN(s)?null:(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(`stop`,{offset:s,stopColor:o.colors[n],stopOpacity:1}),(0,J.jsx)(`stop`,{offset:s,stopColor:o.colors[n+1],stopOpacity:1})]},e.toString()+n)})})}var DC=10;function OC(e){let{gradientUnits:t,isReversed:n,gradientId:r,size:i,direction:a,scale:o,colorScale:s,colorMap:c}=e,l=[c.min??0,c.max??100],u=l.map(o).filter(e=>e!==void 0);if(u.length!==2)return null;let d=typeof l[0]==`number`?bt(l[0],l[1]):tn(l[0],l[1]),f=Math.round((Math.max(...u)-Math.min(...u))/DC),p=`${l[0]}-${l[1]}-`;return(0,J.jsx)(`linearGradient`,{id:r,x1:`0`,x2:`0`,y1:`0`,y2:`0`,[`${a}${n?1:2}`]:t===`objectBoundingBox`?1:`${i}px`,gradientUnits:t??`userSpaceOnUse`,children:Array.from({length:f+1},(e,t)=>{let r=d(t/f);if(r===void 0)return null;let a=o(r);if(a===void 0)return null;
74let c=n?1-a/i:a/i,l=s(r);return l===null?null:(0,J.jsx)(`stop`,{offset:c,stopColor:l,stopOpacity:1},p+t)})})}var kC=10,AC=e=>e?{x1:`1`,x2:`0`,y1:`0`,y2:`0`}:{x1:`0`,x2:`1`,y1:`0`,y2:`0`};function jC(e){let{isReversed:t,gradientId:n,colorScale:r,colorMap:i}=e,a=[i.min??0,i.max??100],o=typeof a[0]==`number`?bt(a[0],a[1]):tn(a[0],a[1]),s=kC,c=`${a[0]}-${a[1]}-`;return(0,J.jsx)(`linearGradient`,Y({id:n},AC(t),{gradientUnits:`objectBoundingBox`,children:Array.from({length:s+1},(e,t)=>{let n=t/s,i=o(n);if(i===void 0)return null;let a=r(i);return a===null?null:(0,J.jsx)(`stop`,{offset:n,stopColor:a,stopOpacity:1},c+t)})}))}function MC(){let{top:e,height:t,bottom:n,left:r,width:i,right:a}=$h(),o=e+t+n,s=r+i+a,c=r_(),l=i_(),{xAxis:u,xAxisIds:d}=Lg(),{yAxis:f,yAxisIds:p}=Rg(),{zAxis:m,zAxisIds:h}=Gg(),g=p.filter(e=>f[e].colorMap!==void 0),_=d.filter(e=>u[e].colorMap!==void 0),v=h.filter(e=>m[e].colorMap!==void 0);return g.length===0&&_.length===0&&v.length===0?null:(0,J.jsxs)(`defs`,{children:[g.map(e=>{let t=c(e),n=l(e),{colorMap:r,scale:i,colorScale:a,reverse:s}=f[e];return r?.type===`piecewise`?(0,J.jsx)(EC,{isReversed:!s,scale:i,colorMap:r,size:o,gradientId:t,direction:`y`},t):r?.type===`continuous`?(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(OC,{isReversed:!s,scale:i,colorScale:a,colorMap:r,size:o,gradientId:t,direction:`y`}),(0,J.jsx)(jC,{isReversed:s,colorScale:a,colorMap:r,gradientId:n})]},t):null}),_.map(e=>{let t=c(e),n=l(e),{colorMap:r,scale:i,reverse:a,colorScale:o}=u[e];return r?.type===`piecewise`?(0,J.jsx)(EC,{isReversed:a,scale:i,colorMap:r,size:s,gradientId:t,direction:`x`},t):r?.type===`continuous`?(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(OC,{isReversed:a,scale:i,colorScale:o,colorMap:r,size:s,gradientId:t,direction:`x`}),(0,J.jsx)(jC,{isReversed:a,colorScale:o,colorMap:r,gradientId:n})]},t):null}),v.map(e=>{let t=l(e),{colorMap:n,colorScale:r}=m[e];return n?.type===`continuous`?(0,J.jsx)(jC,{colorScale:r,colorMap:n,gradientId:t},t):null})]})}function NC(e){return Xh(`MuiChartsSvgLayer`,e)}var PC=()=>A_({root:[`root`]},NC);Zh(`MuiChartsSvgLayer`,[`root`]);var FC=[`children`,`className`],IC=K(`svg`,{name:`MuiChartsSvgLayer`,slot:`Root`})({width:`100%`,height:`100%`,position:`absolute`,inset:0}),LC=q.forwardRef(function(e,t){let{store:n}=hh(),r=n.use(Dd),i=n.use(Od),a=w({props:e,name:`MuiChartsSvgLayer`}),{children:o,className:s}=a,c=X(a,FC),l=PC(),u=i>0&&r>0;return(0,J.jsxs)(IC,Y({viewBox:`0 0 ${r} ${i}`,className:A(l.root,s)},c,{ref:t,"aria-hidden":!0,children:[(0,J.jsx)(MC,{}),u&&o]}))});function RC(){let{instance:e}=hh(),t=Kg(),n=$(),r=q.useRef(!1),i=q.useRef(void 0);q.useEffect(()=>{let a=t.current;if(!a||!Object.values(n.state.seriesConfig.config).some(e=>e.getItemAtPosition!=null))return;function o(){r.current=!0}function s(){let t=i.current;t&&(i.current=void 0,e.removeTooltipItem(t),e.clearHighlight())}function c(){r.current=!1,s()}let l=function(t){let r=Jp(a,t);if(!e.isPointInside(r.x,r.y)){s();return}let o;for(let e of Object.keys(n.state.seriesConfig.config))if(o=n.state.seriesConfig.config[e].getItemAtPosition?.(n.state,{x:r.x,y:r.y}),o)break;o?(e.setLastUpdateSource(`pointer`),e.setTooltipItem(o),e.setHighlight(o),i.current=o):s()};return a.addEventListener(`pointerleave`,c),a.addEventListener(`pointermove`,l),a.addEventListener(`pointerenter`,o),()=>{a.removeEventListener(`pointerenter`,o),a.removeEventListener(`pointermove`,l),a.removeEventListener(`pointerleave`,c),r.current&&c()}},[e,n,t,n.state.seriesConfig.config])}function zC(){let e=$(),t=e.use(bm),n=e.use(xu),r=qg(),{localeText:i}=O_(),{xAxis:a,xAxisIds:o}=Lg(),{yAxis:s,yAxisIds:c}=Rg(),{rotationAxis:l,rotationAxisIds:u}=Vg(),{radiusAxis:d,radiusAxisIds:f}=Hg();if(t===null)return null;let{type:p,seriesId:m}=t,h=r[p]?.series[m];if(!h)return null;let g=n[p]?.descriptionGetter;if(!g)return null;let _={identifier:t,series:h,localeText:i};if(Ju(h)){let e=h.xAxisId??o[0],t=h.yAxisId??c[0];_.xAxis=a[e],_.yAxis=s[t]}else tg(p)&&(_.rotationAxis=l[u[0]],_.radiusAxis=d[f[0]]);return g(_)}var BC={borderWidth:0,width:`100%`,height:`100%`,overflow:`hidden`,position:`absolute`,inset:0,padding:0,outline:`none`,pointerEvents:`none`};function VC(){let e=zC(),t=eg(),n=q.useRef(null),r=q.useRef(0),i=q.useRef(null);return q.useEffect(()=>{let a=i.current;if(a){if(a.children.length===0){for(let e=0;e<2;e+=1){let n=document.createElement(`div`);n.setAttribute(`id`,e===0?`voiceover-${t}-1`:`voiceover-${t}-2`),n.style.display=`none`,a.appendChild(n)}for(let n=0;n<2;n+=1){let i=document.createElement(`div`);n===(r.current+1)%2&&e&&i.setAttribute(`tabindex`,`0`),i.setAttribute(`role`,`img`),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`aria-labelledby`,n===0?`voiceover-${t}-1`:`voiceover-${t}-2`),i.style.width=`100%`,i.style.height=`100%`,i.style.outline=`none`,a.appendChild(i)}}if(e&&e!==n.current){n.current=e;let i=r.current;r.current=(r.current+1)%2;let o=r.current,s=a.children[2+o],c=a.children[2+i],l=a.children[o],u=a.children[i];l.textContent=e??``,u.textContent=e??``,s.setAttribute(`aria-hidden`,`false`),s.setAttribute(`aria-labelledby`,o===0?`voiceover-${t}-1`:`voiceover-${t}-2`),e&&s.setAttribute(`tabindex`,`0`),c.setAttribute(`aria-hidden`,`true`),c.setAttribute(`aria-labelledby`,o===0?`voiceover-${t}-1`:`voiceover-${t}-2`),c.removeAttribute(`tabindex`),s.focus()}}},[e,t]),(0,J.jsx)(`div`,{role:`none`,tabIndex:e?void 0:0,ref:i,style:BC})}var HC=[`children`,`title`,`desc`,`className`],UC=K(`div`,{name:`MuiChartsLayerContainer`,slot:`Root`})(({ownerState:e})=>
74({width:e.width??`100%`,height:e.height??`100%`,display:`flex`,position:`relative`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,touchAction:`pan-y`,userSelect:`none`,gridArea:`chart`,"&:focus":{outline:`none`}})),WC=q.forwardRef(function(e,t){let{store:n,instance:r}=hh(),i=n.use(kd),a=n.use(Ad),o=n.use(xm);RC();let s=w({props:e,name:`MuiChartsLayerContainer`}),{children:c,title:l,desc:u,className:d}=s,f=X(s,HC),p=TC(),m=Wc(Kg(),t),h=il();return(0,J.jsxs)(UC,Y({ref:m,ownerState:{width:i,height:a},role:`none`,"aria-label":l,"aria-describedby":u?h:void 0,className:A(p.root,d)},f,{onPointerEnter:e=>{f.onPointerEnter?.(e),r.handlePointerEnter?.(e)},onPointerLeave:e=>{f.onPointerLeave?.(e),r.handlePointerLeave?.(e)},onClick:e=>{f.onClick?.(e),r.handleClick?.(e)},children:[o&&(0,J.jsx)(VC,{}),u&&(0,J.jsx)(`span`,{id:h,style:{display:`none`},children:u}),c]}))}),GC=[`children`,`className`,`title`,`desc`],KC=q.forwardRef(function(e,t){let n=w({props:e,name:`MuiChartsSurface`}),{children:r,className:i,title:a,desc:o}=n,s=X(n,GC);return(0,J.jsx)(WC,{className:A(TC().root,i),ref:t,title:a,desc:o,children:(0,J.jsx)(LC,Y({},s,{children:r}))})}),qC=Zh(`MuiChartsToolbar`,[`root`]),JC=[`children`,`sx`,`extendVertically`,`hideLegend`,`legendDirection`,`legendPosition`],YC=e=>e?.horizontal===`start`?`start`:e?.horizontal===`end`?`end`:`center`,XC=e=>e?.vertical===`top`?`flex-start`:e?.vertical===`bottom`?`flex-end`:`center`,ZC=(e,t,n)=>e?`"chart"`:t===`vertical`?n?.horizontal===`start`?`"legend chart"`:`"chart legend"`:n?.vertical===`bottom`?`"chart"
75            "legend"`:`"legend"
76          "chart"`,QC=(e=!1,t=`horizontal`,n=`end`,r=void 0)=>{let i=r?`auto`:`1fr`;return t===`horizontal`||e?i:n===`start`?`auto ${i}`:`${i} auto`},$C=(e=!1,t=`horizontal`,n=`top`)=>t===`vertical`||e?`1fr`:n===`bottom`?`1fr auto`:`auto 1fr`,ew=K(`div`,{name:`MuiChartsWrapper`,slot:`Root`,shouldForwardProp:e=>H(e)&&e!==`extendVertically`&&e!==`width`})(({ownerState:e,width:t})=>{let n=QC(e.hideLegend,e.legendDirection,e.legendPosition?.horizontal,t),r=$C(e.hideLegend,e.legendDirection,e.legendPosition?.vertical),i=ZC(e.hideLegend,e.legendDirection,e.legendPosition);return{variants:[{props:{extendVertically:!0},style:{height:`100%`,minHeight:0}}],flex:1,display:`grid`,gridTemplateColumns:n,gridTemplateRows:r,gridTemplateAreas:i,[`&:has(.${qC.root})`]:{gridTemplateRows:`auto ${r}`,gridTemplateAreas:`"${n.split(` `).map(()=>`toolbar`).join(` `)}"
77        ${i}`},[`& .${qC.root}`]:{gridArea:`toolbar`,justifySelf:`center`},justifyContent:`safe center`,justifyItems:YC(e.legendPosition),alignItems:XC(e.legendPosition)}}),tw=q.forwardRef(function(e,t){let{children:n,sx:r,extendVertically:i,hideLegend:a,legendDirection:o,legendPosition:s}=e,c=X(e,JC),l=Wc(b_(),t),u=$(),d=u.use(kd),f=u.use(Ad);return(0,J.jsx)(ew,Y({ref:l,ownerState:q.useMemo(()=>({hideLegend:a,legendDirection:o,legendPosition:s}),[a,o,s]),sx:r,extendVertically:i??f===void 0,width:d},c,{children:n}))}),nw=6;function rw(){let e=T(),t=k_(),n=$g(),{xAxis:r,xAxisIds:i}=Lg(),{yAxis:a,yAxisIds:o}=Rg();if(t===null||t.type!==`line`||!n)return null;let s=n.series[t.seriesId];if(!s||s.hidden||s.data[t.dataIndex]==null)return null;let c=s.xAxisId??i[0],l=s.yAxisId??o[0];return(0,J.jsx)(`rect`,{fill:`none`,stroke:(e.vars??e).palette.text.primary,strokeWidth:2,x:r[c].scale(r[c].data[t.dataIndex])-nw,y:a[l].scale(s.visibleStackedData[t.dataIndex][1])-nw,width:2*nw,height:2*nw,rx:3,ry:3})}var iw=q.forwardRef(function(e,t){let n=w({props:e,name:`MuiLineChart`}),{chartsWrapperProps:r,chartsContainerProps:i,gridProps:a,clipPathProps:o,clipPathGroupProps:s,areaPlotProps:c,linePlotProps:l,markPlotProps:u,overlayProps:d,chartsAxisProps:f,axisHighlightProps:p,lineHighlightPlotProps:m,legendProps:h,children:g}=xx(n),{chartsDataProviderProps:_,chartsSurfaceProps:v}=Yx(i),y=n.slots?.tooltip??kb,b=n.slots?.toolbar;return(0,J.jsx)(CC,Y({},_,{children:(0,J.jsxs)(tw,Y({},r,{ref:t,children:[n.showToolbar&&b?(0,J.jsx)(b,Y({},n.slotProps?.toolbar)):null,!n.hideLegend&&(0,J.jsx)(Ub,Y({},h)),(0,J.jsxs)(KC,Y({},v,{children:[(0,J.jsx)(px,Y({},a)),(0,J.jsxs)(`g`,Y({},s,{children:[(0,J.jsx)(hv,Y({},c)),(0,J.jsx)(wv,Y({},l)),(0,J.jsx)(vx,Y({},d)),(0,J.jsx)(Qb,Y({},p))]})),(0,J.jsx)(rw,{}),(0,J.jsx)(Ry,Y({},f)),(0,J.jsx)(`g`,{"data-drawing-container":!0,children:(0,J.jsx)(Rv,Y({},u))}),(0,J.jsx)(rx,Y({},m)),(0,J.jsx)($b,Y({},o)),g]})),!n.loading&&(0,J.jsx)(y,Y({},n.slotProps?.tooltip))]}))}))});function aw(e){return U(`MuiAlert`,e)}var ow=V(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),sw=G((0,J.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),cw=G((0,J.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),lw=G((0,J.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),uw=G((0,J.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),dw=G((0,J.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),fw=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return C({root:[`root`,`color${F(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},aw,i)},pw=K(s,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(l(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(Qe([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${ow.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Qe([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${ow.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Qe([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),mw=K(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}
77),hw=K(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),gw=K(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),_w={success:(0,J.jsx)(sw,{fontSize:`inherit`}),warning:(0,J.jsx)(cw,{fontSize:`inherit`}),error:(0,J.jsx)(lw,{fontSize:`inherit`}),info:(0,J.jsx)(uw,{fontSize:`inherit`})},vw=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:l,iconMapping:u=_w,onClose:d,role:f=`alert`,severity:p=`success`,slotProps:m={},slots:h={},variant:g=`standard`,..._}=n,y={...n,color:s,severity:p,variant:g,colorSeverity:s||p},b=fw(y),x={slots:h,slotProps:m},[S,C]=v(`root`,{ref:t,shouldForwardComponentProp:!0,className:A(b.root,a),elementType:pw,externalForwardedProps:{...x,..._},ownerState:y,additionalProps:{role:f,elevation:0}}),[w,T]=v(`icon`,{className:b.icon,elementType:mw,externalForwardedProps:x,ownerState:y}),[E,D]=v(`message`,{className:b.message,elementType:hw,externalForwardedProps:x,ownerState:y}),[O,k]=v(`action`,{className:b.action,elementType:gw,externalForwardedProps:x,ownerState:y}),[j,M]=v(`closeButton`,{elementType:ge,externalForwardedProps:x,ownerState:y}),[N,P]=v(`closeIcon`,{elementType:dw,externalForwardedProps:x,ownerState:y});return(0,J.jsxs)(S,{...C,children:[l===!1?null:(0,J.jsx)(w,{...T,children:l||u[p]||_w[p]}),(0,J.jsx)(E,{...D,children:i}),r==null?null:(0,J.jsx)(O,{...k,children:r}),r==null&&d?(0,J.jsx)(O,{...k,children:(0,J.jsx)(j,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:d,...M,children:(0,J.jsx)(N,{fontSize:`small`,...P})})}):null]})}),yw=Qn({createStyledComponent:K(`div`,{name:`MuiGrid`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:`MuiGrid`,useThemeProps:e=>c({props:e,name:`MuiGrid`}),useTheme:T});function bw(e){return Xh(`MuiPieChart`,e)}var xw=Zh(`MuiPieChart`,[`root`,`series`,`seriesLabels`,`arc`,`arcLabel`,`animate`,`focusIndicator`]),Sw=e=>{let{classes:t,skipAnimation:n}=e??{};return A_({root:[`root`],series:[`series`],seriesLabels:[`seriesLabels`],arc:[`arc`],arcLabel:[`arcLabel`,!n&&`animate`],focusIndicator:[`focusIndicator`]},bw,t)},Cw=[`className`,`classes`,`color`,`dataIndex`,`seriesId`,`isFaded`,`isHighlighted`,`isFocused`,`onClick`,`cornerRadius`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`paddingAngle`,`skipAnimation`,`stroke`,`skipInteraction`],ww=K(`path`,{name:`MuiPieArc`,slot:`Root`})({transitionProperty:`opacity, fill, filter`,transitionDuration:`300ms`,transitionTimingFunction:Bh}),Tw=q.forwardRef(function(e,t){let{className:n,classes:r,color:i,dataIndex:a,seriesId:o,isFaded:s,isHighlighted:c,isFocused:l,onClick:u,cornerRadius:d,startAngle:f,endAngle:p,innerRadius:m,outerRadius:h,paddingAngle:g,skipAnimation:_,stroke:v}=e,y=X(e,Cw),b=T(),x=v??(b.vars||b).palette.background.paper,S={seriesId:o,dataIndex:a,classes:r,color:i,isFaded:s,isHighlighted:c,isFocused:l},C=Sw(S),w=_h({type:`pie`,seriesId:o,dataIndex:a}),E=__({cornerRadius:d,startAngle:f,endAngle:p,innerRadius:m,outerRadius:h,paddingAngle:g,skipAnimation:_,ref:t});return(0,J.jsx)(ww,Y({onClick:u,cursor:u?`pointer`:`unset`,ownerState:S,className:A(C.arc,n),fill:i,opacity:s?.3:1,filter:c?`brightness(120%)`:`none`,stroke:x,strokeWidth:1,strokeLinejoin:`round`,"data-highlighted":c||void 0,"data-faded":s||void 0,"data-index":a},y,w,E))});function Ew(){let e=k_();return t=>e!==null&&hm(e,t)}function Dw(e,t,n,r){let{faded:i,highlighted:a,paddingAngle:o=0,cornerRadius:s=0}=e,{radius:{inner:c=0,label:l,outer:u}}=t,d=Y({additionalRadius:0},r&&i||n&&a||{}),f=Math.max(0,ql(d.paddingAngle??o)),p=Math.max(0,d.innerRadius??c),m=Math.max(0,d.outerRadius??u+d.additionalRadius);return{paddingAngle:f,innerRadius:p,outerRadius:m,cornerRadius:d.cornerRadius??s,arcLabelRadius:d.arcLabelRadius??l??(p+m)/2}}function Ow(e){let{id:t,data:n,faded:r,highlighted:i}=e,a=e_(),o=Ew();return q.useMemo(()=>n.map((n,s)=>{let c={type:`pie`,seriesId:t,dataIndex:s},l=a(c),u=l===`highlighted`,d=l===`faded`,f=o(c),p=Dw(e,{radius:{inner:e.innerRadius??0,outer:e.outerRadius,label:e.arcLabelRadius??0,available:0}},u,d);return Y({},n,Y({additionalRadius:0},d&&r||u&&i||{}
77),{dataIndex:s,isFaded:d,isHighlighted:u,isFocused:f},p)}),[n,t,a,o,e,r,i])}var kw=[`slots`,`slotProps`,`innerRadius`,`outerRadius`,`cornerRadius`,`paddingAngle`,`seriesId`,`highlighted`,`faded`,`data`,`onItemClick`,`skipAnimation`],Aw=K(`g`,{name:`MuiPieArcPlot`,slot:`Root`})();function jw(e){let{slots:t,slotProps:n,innerRadius:r=0,outerRadius:i,cornerRadius:a=0,paddingAngle:o=0,seriesId:s,highlighted:c,faded:l={additionalRadius:-5},data:u,onItemClick:d,skipAnimation:f}=e,p=X(e,kw),m=Ow({innerRadius:r,outerRadius:i,cornerRadius:a,paddingAngle:o,id:s,highlighted:c,faded:l,data:u});if(u.length===0)return null;let h=t?.pieArc??Tw;return(0,J.jsx)(Aw,Y({},p,{children:m.map((e,t)=>(0,J.jsx)(h,Y({startAngle:e.startAngle,endAngle:e.endAngle,paddingAngle:e.paddingAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius,skipAnimation:f??!1,seriesId:s,color:e.color,dataIndex:t,isFaded:e.isFaded,isHighlighted:e.isHighlighted,isFocused:e.isFocused,onClick:d&&(n=>{d(n,{type:`pie`,seriesId:s,dataIndex:t},e)})},n?.pieArc),e.dataIndex))}))}var Mw=[`seriesId`,`classes`,`color`,`startAngle`,`endAngle`,`paddingAngle`,`arcLabelRadius`,`cornerRadius`,`formattedArcLabel`,`isHighlighted`,`isFaded`,`skipAnimation`,`hidden`,`className`],Nw=K(`text`,{name:`MuiPieArcLabel`,slot:`Root`})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:`middle`,dominantBaseline:`middle`,pointerEvents:`none`,animationName:`animate-opacity`,animationDuration:`0s`,animationTimingFunction:Bh,transitionDuration:`300ms`,transitionProperty:`opacity`,transitionTimingFunction:Bh,[`&.${xw.animate}`]:{animationDuration:`300ms`},"@keyframes animate-opacity":{from:{opacity:0}
77}})),Pw=q.forwardRef(function(e,t){let{seriesId:n,classes:r,color:i,startAngle:a,endAngle:o,paddingAngle:s,arcLabelRadius:c,cornerRadius:l,formattedArcLabel:u,isHighlighted:d,isFaded:f,skipAnimation:p,hidden:m,className:h}=e,g=X(e,Mw),_=Sw({seriesId:n,classes:r,color:i,isFaded:f,isHighlighted:d,skipAnimation:p}),v=y_({cornerRadius:l,startAngle:a,endAngle:o,arcLabelRadius:c,paddingAngle:s,skipAnimation:p,ref:t});return(0,J.jsx)(Nw,Y({className:A(_.arcLabel,h),"data-highlighted":d||void 0,"data-faded":f||void 0},g,v,{opacity:+!m,children:u}))}),Fw=[`arcLabel`,`arcLabelMinAngle`,`arcLabelRadius`,`cornerRadius`,`data`,`faded`,`highlighted`,`seriesId`,`innerRadius`,`outerRadius`,`paddingAngle`,`skipAnimation`,`slotProps`,`slots`],Iw=180/Math.PI;function Lw(e,t,n){if(!e||(n.endAngle-n.startAngle)*Iw<t)return null;switch(e){case`label`:return ab(n.label,`arc`);case`value`:return n.value?.toString();case`formattedValue`:return n.formattedValue;default:return e(Y({},n,{label:ab(n.label,`arc`)}))}}var Rw=K(`g`,{name:`MuiPieArcLabelPlot`,slot:`Root`})();function zw(e){let{arcLabel:t,arcLabelMinAngle:n=0,arcLabelRadius:r,cornerRadius:i=0,data:a,faded:o={additionalRadius:-5},highlighted:s,seriesId:c,innerRadius:l,outerRadius:u,paddingAngle:d=0,skipAnimation:f,slotProps:p,slots:m}=e,h=X(e,Fw),g=Ow({innerRadius:l,outerRadius:u,arcLabelRadius:r,cornerRadius:i,paddingAngle:d,id:c,highlighted:s,faded:o,data:a});if(a.length===0)return null;let _=m?.pieArcLabel??Pw;return(0,J.jsx)(Rw,Y({},h,{children:g.map(e=>(0,J.jsx)(_,Y({startAngle:e.startAngle,endAngle:e.endAngle,paddingAngle:e.paddingAngle,arcLabelRadius:e.arcLabelRadius,cornerRadius:e.cornerRadius,hidden:e.hidden,seriesId:c,color:e.color,isFaded:e.isFaded,isHighlighted:e.isHighlighted,formattedArcLabel:Lw(t,n,e),skipAnimation:f??!1},p?.pieArcLabel),e.id??e.dataIndex))}))}function Bw(e){let{skipAnimation:t,slots:n,slotProps:r,onItemClick:i,className:a}=e,o=Xg(),s=Zg(),c=sv(t),l=Sw();if(o===void 0)return null;let{series:u,seriesOrder:d}=o;return(0,J.jsxs)(`g`,{className:A(l.root,a),children:[d.map(e=>{let{cornerRadius:t,paddingAngle:a,data:o,highlighted:d,faded:f}=u[e];return(0,J.jsx)(`g`,{className:l.series,transform:`translate(${s[e].center.x}, ${s[e].center.y})`,"data-series":e,children:(0,J.jsx)(jw,{innerRadius:s[e].radius.inner,outerRadius:s[e].radius.outer,cornerRadius:t,paddingAngle:a,seriesId:e,data:o,skipAnimation:c,highlighted:d,faded:f,onItemClick:i,slots:n,slotProps:r})},e)}),d.map(e=>{let{cornerRadius:t,paddingAngle:i,arcLabel:a,arcLabelMinAngle:o,data:d}=u[e];return(0,J.jsx)(`g`,{className:l.seriesLabels,transform:`translate(${s[e].center.x}, ${s[e].center.y})`,"data-series":e,children:(0,J.jsx)(zw,{innerRadius:s[e].radius.inner,outerRadius:s[e].radius.outer,arcLabelRadius:s[e].radius.label,cornerRadius:t,paddingAngle:i,seriesId:e,data:d,skipAnimation:c,arcLabel:a,arcLabelMinAngle:o,slots:n,slotProps:r})},e)})]})}var Vw=[oh,Yp,fh,Mu,sh],Hw=[`arcLabelRadius`];function Uw(e){let t=T(),n=k_(),r=Zg(),i=zh(n),a=i===`highlighted`,o=i===`faded`,s=Xg(),c=Sw();if(n===null||n.type!==`pie`||!s)return null;let l=s?.series[n.seriesId],{center:u,radius:d}=r[n.seriesId];if(!l||!u||!d)return null;let f=l.data[n.dataIndex];if(!f||f.hidden)return null;let p=X(Dw(l,r[n.seriesId],a,o),Hw);return(0,J.jsx)(Tw,Y({transform:`translate(${r[l.id].center.x}, ${r[l.id].center.y})`,startAngle:f.startAngle,endAngle:f.endAngle,color:`transparent`,pointerEvents:`none`,skipInteraction:!0,skipAnimation:!0,stroke:(t.vars??t).palette.text.primary,seriesId:l.id,className:c.focusIndicator,dataIndex:n.dataIndex,isFaded:!1,isHighlighted:!1,isFocused:!1,strokeWidth:3},p,e))}var Ww=[`series`,`width`,`height`,`margin`,`colors`,`sx`,`skipAnimation`,`hideLegend`,`children`,`slots`,`slotProps`,`onItemClick`,`loading`,`highlightedItem`,`onHighlightChange`,`className`,`showToolbar`],Gw=q.forwardRef(function(e,t){let n=w({props:e,name:`MuiPieChart`}),{series:r,width:i,height:a,margin:o,colors:s,sx:c,skipAnimation:l,hideLegend:u,children:d,slots:f,slotProps:p,onItemClick:m,loading:h,highlightedItem:g,onHighlightChange:_,className:v,showToolbar:y}=n,b=X(n,Ww),x=jd(o,xf),{chartsDataProviderProps:S,chartsSurfaceProps:C}=Yx(Y({},b,{series:r.map(e=>Y({type:`pie`},e)),width:i,height:a,margin:x,colors:s,highlightedItem:g,onHighlightChange:_,ski
77pAnimation:l,plugins:Vw})),T=f?.tooltip??kb,E=f?.toolbar;return(0,J.jsx)(CC,Y({},S,{children:(0,J.jsxs)(tw,{legendPosition:p?.legend?.position,legendDirection:p?.legend?.direction??`vertical`,sx:c,hideLegend:u??!1,className:v,ref:t,children:[y&&E?(0,J.jsx)(E,Y({},p?.toolbar)):null,!u&&(0,J.jsx)(Ub,{direction:p?.legend?.direction??`vertical`,slots:f,slotProps:p}),(0,J.jsxs)(KC,Y({},C,{children:[(0,J.jsx)(Bw,{slots:f,slotProps:p,onItemClick:m}),(0,J.jsx)(Uw,{}),(0,J.jsx)(vx,{loading:h,slots:f,slotProps:p}),d]})),!h&&(0,J.jsx)(T,Y({trigger:`item`},p?.tooltip))]})}))});function Kw(e){return Xh(`MuiBarChart`,e)}var qw=Zh(`MuiBarChart`,[`root`,`series`,`seriesLabels`,`element`,`label`,`labelAnimate`]),Jw=e=>{let{skipAnimation:t,classes:n}=e??{};return A_({root:[`root`],series:[`series`],seriesLabels:[`seriesLabels`],element:[`element`],label:[`label`,!t&&`labelAnimate`]},Kw,n)};function Yw(e){let{barLabel:t,value:n,dataIndex:r,seriesId:i,height:a,width:o}=e;return t===`value`?n?n?.toString():null:t({seriesId:i,dataIndex:r,value:n},{bar:{height:a,width:o}})}
77var Xw=[`seriesId`,`dataIndex`,`color`,`isFaded`,`isHighlighted`,`classes`,`skipAnimation`,`layout`,`xOrigin`,`yOrigin`,`placement`,`hidden`],Zw=K(`text`,{name:`MuiBarLabel`,slot:`Root`})(({theme:e})=>Y({},e?.typography?.body2,{stroke:`none`,fill:(e.vars||e)?.palette?.text?.primary,transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:Bh,pointerEvents:`none`}));function Qw(e){let t=w({props:e,name:`MuiBarLabel`}),{isFaded:n,hidden:r}=t,i=X(t,Xw),a=c_(t);return(0,J.jsx)(Zw,Y({textAnchor:$w(t),dominantBaseline:eT(t),opacity:r?0:n?.3:1},i,a))}function $w({placement:e,layout:t,xOrigin:n,x:r}){return e===`outside`&&t===`horizontal`?r<n?`end`:`start`:`middle`}function eT({placement:e,layout:t,yOrigin:n,y:r}){return e===`outside`?t===`horizontal`?`central`:r<n?`auto`:`hanging`:`central`}var tT=[`seriesId`,`classes`,`color`,`dataIndex`,`barLabel`,`slots`,`slotProps`,`xOrigin`,`yOrigin`,`x`,`y`,`width`,`height`,`value`,`skipAnimation`,`layout`,`barLabelPlacement`,`hidden`],nT=[`ownerState`];function rT(e){let{seriesId:t,classes:n,color:r,dataIndex:i,barLabel:a,slots:o,slotProps:s,xOrigin:c,yOrigin:l,x:u,y:d,width:f,height:p,value:m,skipAnimation:h,layout:g,barLabelPlacement:_,hidden:v}=e,y=X(e,tT),b=zh({type:`bar`,seriesId:t,dataIndex:i}),x=b===`highlighted`,S=b===`faded`,C={seriesId:t,classes:n,color:r,isFaded:S,isHighlighted:x,dataIndex:i,skipAnimation:h,layout:g},w=Jw(C),T=o?.barLabel??Qw,E=Qc({elementType:T,externalSlotProps:s?.barLabel,additionalProps:Y({},y,{xOrigin:c,yOrigin:l,x:u,y:d,width:f,height:p,placement:_,className:w.label,"data-highlighted":x||void 0,"data-faded":S||void 0}),ownerState:C}),{ownerState:D}=E,O=X(E,nT);if(!a)return null;let k=Yw({barLabel:a,value:m,dataIndex:i,seriesId:t,height:p,width:f});return k?(0,J.jsx)(T,Y({},O,D,{hidden:v,children:k})):null}var iT=[`processedSeries`,`className`,`skipAnimation`];function aT(e){let{processedSeries:t,className:n,skipAnimation:r}=e,i=X(e,iT),{seriesId:a,data:o,layout:s,xOrigin:c,yOrigin:l}=t;return t.barLabel?(0,J.jsx)(`g`,{className:n,"data-series":a,children:o.map(({x:e,y:n,dataIndex:o,color:u,value:d,width:f,height:p,hidden:m})=>(0,J.jsx)(rT,Y({seriesId:a,dataIndex:o,value:d,color:u,xOrigin:c,yOrigin:l,x:e,y:n,width:f,height:p,skipAnimation:r??!1,layout:s??`vertical`,hidden:m},i,{barLabel:t.barLabel,barLabelPlacement:t.barLabelPlacement||`center`}),o))},a):null}var oT=(e,t)=>{let n=`${e}-axis`,r=`${e}Axis`;return t===(e===`x`?`DEFAULT_X_AXIS_KEY`:`DEFAULT_Y_AXIS_KEY`)?`The first \`${r}\``:`The ${n} with id "${t}"`};function sT(e,t,n,r,i,a,o){let s=i[r],c=o[a],l=e?s:c,u=e?c:s,d=e?r:a,f=e?a:r,p=e?`x`:`y`,m=e?`y`:`x`;if(l.scaleType!==`band`)throw Error(N(1,oT(p,d),t));if(l.data===void 0)throw Error(N(2,oT(p,d)));if(u.scaleType===`band`||u.scaleType===`point`)throw Error(N(3,oT(m,f),t))}function cT(e,t,n){let r=Qg()??{series:{},stackingGroups:[],seriesOrder:[]},i=Lg().xAxisIds[0],a=Rg().yAxisIds[0],o=eg(),s=$(),c=s.use(ih),l=s.use(Cp),u=s.use(Tp),d=s.use(xu).bar?.sampler;return q.useMemo(()=>lT(e,o,r.stackingGroups,r.series,t,n,i,a,c,l,d,u),[e,o,r.stackingGroups,r.series,t,n,i,a,c,l,d,u])}function lT(e,t,n,r,i,a,o,s,c={},l,u,d){let f={};return{completedData:n.flatMap(({ids:p},m)=>{let h=e.left,g=e.left+e.width,_=e.top,v=e.top+e.height,y=new Map,b=new Map;return p.map(p=>{let x=r[p].xAxisId??o,S=r[p].yAxisId??s,C=r[p].layout,w=i[x],T=a[S],E=r[p].layout===`vertical`,D=(E?T.reverse:w.reverse)??!1;sT(E,p,r[p].stackedData.length,x,i,S,a);let O=E?w:T,k=w.scale,A=T.scale,j=Math.round(k(0)??0),M=Math.round(A(0)??0),N=pS(r[p],i[x],a[S]),P=r[p].stack,F=[],I=(e,t)=>{if(e.x>g||e.x+e.width<h||e.y>v||e.y+e.height<_)return;let n=y.get(t),r=b.get(t),i=(D?-1:1)*Math.sign(e.value??0);i>0?(r&&delete r.borderRadiusSide,e.borderRadiusSide=E?`top`:`right`,b.set(t,e)):i<0&&(n&&delete n.borderRadiusSide,e.borderRadiusSide=E?`bottom`:`left`,y.set(t,e)),f[e.maskId]||(f[e.maskId]={id:e.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:C,xOrigin:j,yOrigin:M,x:0,y:0});let a=f[e.maskId];a.width=C===`vertical`?e.width:a.width+e.width,a.height=C===`vertical`?a.height+e.height:e.height,a.x=Math.min(a.x===0?1/0:a.x,e.x),a.y=Math.min(a.y===0?1/0:a.y,e.y);let o=e.value??0;a.hasNegative=a.hasNegative||(D?o>0:o<0),a.hasPositive=a.hasPositive||(D?o<0:o>0),F.push(e)},L=(e,n)=>Y({seriesId:p,dataIndex:e,hidden:r[p].hidden},n,{color:N(e),value:r[p].data[e],maskId:`${t}_${P||p}_${m}_${e}`}),R=c[p],z=E?x:S,B=l?.get(z)??(R?nh(z):void 0),ee=E?e.width:e.height,te=d?.[z]?.minSpan??0,V=R&&B&&u?.sample?u.sample({built:R,zoom:B,availableSize:ee,minSpan:te}):null;if(V){let e=NS({verticalLayout:E,xAxisConfig:w,yAxisConfig:T,series:r[p],numberOfGroups:n.length}),t=r[p].visibleStackedData;for(let{startIndex:n,endIndex:r,indices:i}of V){let a=1/0,o=-1/0;for(let e=0;e<i.length;e+=1){let n=t[i[e]];a=Math.min(a,n[0],n[1]),o=Math.max(o,n[0],n[1])}I(L(n,e(n,r,a,o,m)),n)}}else{let e=MS({verticalLayout:E,xAxisConfig:w,yAxisConfig:T,series:r[p],numberOfGroups:n.length}),t=O.data,i=t.length,a=0,o=i-1;if(i>1){let e=O.scale,n=e(t[0]),r=e(t[1])-n;if(r!==0){let e=E?h:_,t=E?g:v,s=(e-n)/r,c=(t-n)/r;a=Math.max(0,Math.floor(Math.min(s,c))-1),o=Math.min(i-1,Math.ceil(Math.max(s,c))+1)}}for(let t=a;t<=o;t+=1){let n=e(t,m);n!=null&&I(L(t,n),t)}}return{seriesId:p,barLabel:r[p].barLabel,barLabelPlacement:r[p].barLabelPlacement,data:F,layout:C,xOrigin:j,yOrigin:M}})}),masksData:Object.values(f)}}var uT=[`ownerState`,`skipAnimation`,`seriesId`,`dataIndex`,`xOrigin`,`yOrigin`];function dT(e){let{ownerState:t}=e,n=X(e,uT),r=o_(e);return(0,J.jsx)(`rect`,Y({},n,{filter:t.isHighlighted?`brightness(120%)`:void 0,opacity:t.isFaded?.3:1,"data-highlighted":t.isHighlighted||void 0,"data-faded":t.is
77Faded||void 0},r))}function fT(e){return $().use(_m,e)}var pT=[`seriesId`,`dataIndex`,`classes`,`color`,`slots`,`slotProps`,`style`,`onClick`,`skipAnimation`,`layout`,`x`,`xOrigin`,`y`,`yOrigin`,`width`,`height`,`hidden`];function mT(e){let{seriesId:t,dataIndex:n,classes:r,color:i,slots:a,slotProps:o,style:s,onClick:c,skipAnimation:l,layout:u,x:d,xOrigin:f,y:p,yOrigin:m,width:h,height:g,hidden:_}=e,v=X(e,pT),y=q.useMemo(()=>({type:`bar`,seriesId:t,dataIndex:n}),[t,n]),b=zh(y),x={seriesId:t,dataIndex:n,classes:r,color:i,isFaded:b===`faded`,isHighlighted:b===`highlighted`,isFocused:fT(y)},S=Jw(x),C=a?.bar??dT;return(0,J.jsx)(C,Y({},Qc({elementType:C,externalSlotProps:o?.bar,externalForwardedProps:v,additionalProps:{seriesId:t,dataIndex:n,color:i,x:d,xOrigin:f,y:p,yOrigin:m,width:h,height:g,style:s,onClick:c,cursor:c?`pointer`:void 0,stroke:`none`,fill:i,skipAnimation:l,layout:u,hidden:_},className:S.element,ownerState:x})))}function hT(e,t){let n=bt(e.x,t.x),r=bt(e.y,t.y),i=bt(e.width,t.width),a=bt(e.height,t.height),o=bt(e.borderRadius,t.borderRadius);return e=>({x:n(e),y:r(e),width:i(e),height:a(e),borderRadius:o(e)})}function gT(e){let t={x:e.layout===`vertical`?e.x:e.xOrigin,y:e.layout===`vertical`?e.yOrigin:e.y,width:e.layout===`vertical`?e.width:0,height:e.layout===`vertical`?0:e.height,borderRadius:e.borderRadius};return Gh({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius},{createInterpolator:hT,transformProps:t=>({d:vT(e.hasNegative,e.hasPositive,e.layout,t.x,t.y,t.width,t.height,e.xOrigin,e.yOrigin,t.borderRadius)}),applyProps(e,{d:t}){t&&e.setAttribute(`d`,t)},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function _T(e){let{maskId:t,x:n,y:r,width:i,height:a,skipAnimation:o}=e,{ref:s,d:c}=gT({layout:e.layout??`vertical`,hasNegative:e.hasNegative,hasPositive:e.hasPositive,xOrigin:e.xOrigin,yOrigin:e.yOrigin,x:n,y:r,width:i,height:a,borderRadius:e.borderRadius??0,skipAnimation:o});return!e.borderRadius||e.borderRadius<=0?null:(0,J.jsx)(`clipPath`,{id:t,children:(0,J.jsx)(`path`,{ref:s,d:c})})}function vT(e,t,n,r,i,a,o,s,c,l){if(n===`vertical`){if(t&&e){let e=Math.min(l,a/2,o/2);return`M${r},${i+o/2} v${-(o/2-e)} a${e},${e} 0 0 1 ${e},${-e} h${a-e*2} a${e},${e} 0 0 1 ${e},${e} v${o-2*e} a${e},${e} 0 0 1 ${-e},${e} h${-(a-e*2)} a${e},${e} 0 0 1 ${-e},${-e} v${-(o/2-e)}`}let n=Math.min(l,a/2);if(t)return`M${r},${Math.max(c,i+n)} v${Math.min(0,-(c-i-n))} a${n},${n} 0 0 1 ${n},${-n} h${a-n*2} a${n},${n} 0 0 1 ${n},${n} v${Math.max(0,c-i-n)} Z`;if(e)return`M${r},${Math.min(c,i+o-n)} v${Math.max(0,o-n)} a${n},${n} 0 0 0 ${n},${n} h${a-n*2} a${n},${n} 0 0 0 ${n},${-n} v${-Math.max(0,o-n)} Z`}if(n===`horizontal`){if(t&&e){let e=Math.min(l,a/2,o/2);return`M${r+a/2},${i} h${a/2-e} a${e},${e} 0 0 1 ${e},${e} v${o-e*2} a${e},${e} 0 0 1 ${-e},${e} h${-(a-2*e)} a${e},${e} 0 0 1 ${-e},${-e} v${-(o-e*2)} a${e},${e} 0 0 1 ${e},${-e} h${a/2-e}`}let n=Math.min(l,o/2);if(t)return`M${Math.min(s,r-n)},${i} h${a} a${n},${n} 0 0 1 ${n},${n} v${o-n*2} a${n},${n} 0 0 1 ${-n},${n} h${-a} Z`;if(e)return`M${Math.max(s,r+a+n)},${i} h${-a} a${n},${n} 0 0 0 ${-n},${n} v${o-n*2} a${n},${n} 0 0 0 ${n},${n} h${a} Z`}}function yT(e){let{instance:t}=hh(),n=Kg(),r=$();q.useEffect(()=>{let i=n.current;if(!i||!e)return;let a=null,o=function(n){let o=n;a&&Math.abs(n.clientX-a.clientX)<=1&&Math.abs(n.clientY-a.clientY)<=1&&(o={clientX:a.clientX,clientY:a.clientY}),a=null;let s=Jp(i,o);if(!t.isPointInside(s.x,s.y))return;let c=Um(r.state,s);c&&e(n,{type:`bar`,seriesId:c.seriesId,dataIndex:c.dataIndex})},s=function(e){a=e};return i.addEventListener(`click`,o),i.addEventListener(`pointerup`,s),()=>{i.removeEventListener(`click`,o),i.removeEventListener(`pointerup`,s)}},[t,e,r,n])}var bT=[`completedData`,`masksData`,`borderRadius`,`onItemClick`,`skipAnimation`];function xT(e){let{completedData:t,masksData:n,borderRadius:r,onItemClick:i,skipAnimation:a}=e,o=X(e,bT);yT(i);let s=Jw(),c=!r||r<=0;return(0,J.jsxs)(q.Fragment,{children:[!c&&n.map(({id:e,x:t,y:n,xOrigin:i,yOrigin:o,width:s,height:c,hasPositive:l,hasNegative:u,layout:d})=>(0,J.jsx)(_T,{maskId:e,borderRadius:r,hasNegative:u,hasPositive:l,layout:d,x:t,y:n,xOrigin:i,yOrigin:o,width:s,height:c,skipAnimation:a??!1},e)),t.map(({seriesId:e,layout:t,xOrigin:n,yOrigin:r,data:l})=>(0,J.jsx)(`g`,{"data-series":e,className:s.series,children:l.map(({dataIndex:s,color:l,maskId:u,x:d,y:f,width:p,height:m})=>{let h=(0,J.jsx)(mT,Y({seriesId:e,dataIndex:s,color:l,skipAnimation:a??!1,layout:t??`vertical`,x:d,xOrigin:n,y:f,yOrigin:r,width:p,height:m,curs
77or:i?`pointer`:void 0},o),s);return c?h:(0,J.jsx)(`g`,{clipPath:`url(#${u})`,children:h},s)})},e))]})}function ST(e,t,n){let r=e.get(t);return r?r.push(n):(r=[n],e.set(t,r)),r}var CT=1e3;function wT(e,t,n,r,i,a,o,s){let c=Math.min(i,n/2,r/2),l=Math.min(a,n/2,r/2),u=Math.min(o,n/2,r/2),d=Math.min(s,n/2,r/2);return`M${e+c},${t}
78   h${n-c-l}
79   a${l},${l} 0 0 1 ${l},${l}
80   v${r-l-u}
81   a${u},${u} 0 0 1 -${u},${u}
82   h-${n-u-d}
83   a${d},${d} 0 0 1 -${d},-${d}
84   v-${r-d-c}
85   a${c},${c} 0 0 1 ${c},-${c}
86   Z`}function TT(e,t){return wT(e.x,e.y,e.width,e.height,e.borderRadiusSide===`left`||e.borderRadiusSide===`top`?t:0,e.borderRadiusSide===`right`||e.borderRadiusSide===`top`?t:0,e.borderRadiusSide===`right`||e.borderRadiusSide===`bottom`?t:0,e.borderRadiusSide===`left`||e.borderRadiusSide===`bottom`?t:0)}function ET(e,t){let n=new Map,r=new Map;for(let i=0;i<e.data.length;i+=1){let a=e.data[i],o=TT(a,t),s=ST(r,a.color,o);s.length>=CT&&(ST(n,a.color,s.join(``)),r.delete(a.color))}for(let[e,t]of r.entries())t.length>0&&ST(n,e,t.join(``));return n}var DT=[`skipAnimation`,`layout`,`xOrigin`,`yOrigin`],OT=[`children`,`layout`,`xOrigin`,`yOrigin`],kT=K(`g`)({'&[data-faded="true"]':{opacity:.3},"& path":{pointerEvents:`none`}});function AT(e){let{skipAnimation:t,layout:n,xOrigin:r,yOrigin:i}=e,a=X(e,DT);return t?(0,J.jsx)(kT,Y({},a)):(0,J.jsx)(MT,Y({},a,{layout:n,xOrigin:r,yOrigin:i}))}var jT=K(`rect`)({"@keyframes scaleInX":{from:{transform:`scaleX(0)`},to:{transform:`scaleX(1)`}},"@keyframes scaleInY":{from:{transform:`scaleY(0)`},to:{transform:`scaleY(1)`}},animationDuration:`300ms`,animationFillMode:`forwards`,'&[data-orientation="horizontal"]':{animationName:`scaleInX`},'&[data-orientation="vertical"]':{animationName:`scaleInY`}});function MT(e){let{children:t,layout:n,xOrigin:r,yOrigin:i}=e,a=X(e,OT),o=$().use(Ed),s=il(),c=[];return n===`horizontal`?(c.push((0,J.jsx)(jT,{"data-orientation":`horizontal`,x:o.left,width:r-o.left,y:o.top,height:o.height,style:{transformOrigin:`${r}px ${o.top+o.height/2}px`}},`left`)),c.push((0,J.jsx)(jT,{"data-orientation":`horizontal`,x:r,width:o.left+o.width-r,y:o.top,height:o.height,style:{transformOrigin:`${r}px ${o.top+o.height/2}px`}},`right`))):(c.push((0,J.jsx)(jT,{"data-orientation":`vertical`,x:o.left,width:o.width,y:o.top,height:i-o.top,style:{transformOrigin:`${o.left+o.width/2}px ${i}px`}},`top`)),c.push((0,J.jsx)(jT,{"data-orientation":`vertical`,x:o.left,width:o.width,y:i,height:o.top+o.height-i,style:{transformOrigin:`${o.left+o.width/2}px ${i}px`}},`bottom`))),(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(`clipPath`,{id:s,children:c}),(0,J.jsx)(kT,Y({clipPath:`url(#${s})`},a,{children:t}))]})}function NT({completedData:e,borderRadius:t=0,onItemClick:n,skipAnimation:r=!1}){return yT(n),(0,J.jsx)(q.Fragment,{children:e.map(e=>(0,J.jsx)(FT,{series:e,borderRadius:t,skipAnimation:r},e.seriesId))})}var PT=q.memo(LT);function FT({series:e,borderRadius:t,skipAnimation:n}){let r=Jw(),{store:i}=hh(),a=i.use(jh,e.seriesId),o=i.use(Mh,e.seriesId);return(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(AT,{className:r.series,"data-series":e.seriesId,layout:e.layout,xOrigin:e.xOrigin,yOrigin:e.yOrigin,skipAnimation:n,"data-faded":o||void 0,"data-highlighted":a||void 0,children:(0,J.jsx)(IT,{processedSeries:e,borderRadius:t})}),(0,J.jsx)(PT,{processedSeries:e,borderRadius:t})]})}function IT({processedSeries:e,borderRadius:t}){let n=ET(e,t),r=[],i=0;for(let[e,t]of n.entries())for(let n of t)r.push((0,J.jsx)(`path`,{fill:e,d:n},i)),i+=1;return(0,J.jsx)(q.Fragment,{children:r})}function LT({processedSeries:e,borderRadius:t}){let{store:n}=hh(),r=n.use(Ph,e.seriesId),i=n.use(Nh,e.seriesId),a=r==null?null:e.data.find(e=>e.dataIndex===r)||null,o=i==null?null:e.data.find(e=>e.dataIndex===i)||null,s=[];return a!=null&&s.push((0,J.jsx)(`path`,{fill:a.color,filter:`brightness(120%)`,"data-highlighted":!0,d:TT(a,t)},`highlighted-${e.seriesId}`)),o!=null&&s.push((0,J.jsx)(`path`,{fill:o.color,d:TT(o,t)},`unfaded-${o.seriesId}`)),(0,J.jsx)(q.Fragment,{children:s})}var RT=[`className`,`skipAnimation`,`onItemClick`,`borderRadius`,`renderer`],zT=K(`g`,{name:`MuiBarPlot`,slot:`Root`})({[`& .${qw.element}`]:{transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:Bh}});function BT(e){let{className:t,skipAnimation:n,onItemClick:r,borderRadius:i,renderer:a}=e,o=X(e,RT),s=sv(cv()||n),c=sv(n),{xAxis:l}=Lg(),{yAxis:u}=Rg(),{completedData:d,masksData:f}=cT($h(),l,u),p=Jw(),m=a===`svg-batch`?NT:xT;return(0,J.jsxs)(zT,{className:A(p.root,t),children:[(0,J.jsx)(m,Y({completedData:d,masksData:f,skipAnimation:a===`svg-batch`?c:s,onItemClick:r,borderRadius:i},o)),d.map(e=>(0,J.jsx)(aT,Y({className:p.seriesLabels,processedSeries:e,skipAnimation:s},o),e.seriesId))]})}var VT=[_p,jm,oh,Yp,pm,fh,Mu,sh],HT=`xAxis.yAxis.series.width.height.margin.colors.dataset.sx.axisHighlight.grid.children.slots.slotProps.skipAnimation.loading.layout.onItemClick.highlightedItem.onHighlightChange.borderRadius.className.hideLegend.showToolbar.brushConfig.renderer`.split(`.`),UT=e=>{let{xAxis:t,yAxis:n,series:r,width:i,height:a,margin:o,colors:s,dataset:c,sx:l,axisHighlight:u,grid:d,children:f,slots:p,slotProps:m,skipAnimation:h,loading:g,layout:_,onItemClick:v,highlightedItem:y,onHighlightChange:b,borderRadius:x,className:S,brushConfig:C,renderer:w}=e,T=X(e,HT),E=`${il()}-clip-path`,D=_===`horizontal`||_===void 0&&r.some(e=>e.layout===`horizontal`),O=q.useMemo(()=>[{id:Ol,scaleType:`band`,data:Array.from({length:Math.max(...r.map(e=>(e.data??c??[]).length))},(e,t)=>t)}],[c,r]),k=q.useMemo(()=>[{id:kl,scaleType:`band`,data:Array.from({length:Math.max(...r.map(e=>(e.data??c??[]).length))},(e,t)=>t)}],[c,r]),A=q.useMemo(()=>r.map(e=>Y({type:`bar`},e,{layout:D?`horizontal`:`vertical`})),[D,r]),j=D?void 0:O,M=q.useMemo(()=>t?D?t:t.map(e=>Y({scaleType:`band`},e)):j,[j,D,t]),N=D?k:void 0,P=Y({},T,{series:A,width:i,height:a,margin:o,colors:s,dataset:c,xAxis:M,yAxis:q.useMemo(()=>n?D?n.map(e=>Y({scaleType:`band`},e)):n:N,[N,D,n]),highlightedItem:y,onHighlightChange:b,disableAxisListener:m?.tooltip?.trigger!==`axis`&&u?.x===`none`&&u?.y===`none`,skipAnimation:h,brushConfig:C,plugins:VT}),F={onItemClick:v,slots:p,slotProps:m,borderRadius:x,renderer:w},I={vertical:d?.vertical,horizontal:d?.horizontal},L={clipPath:`url(#${E})`},R={id:E},z={slots:p,slotProps:m,loading:g},B={slots:p,slotProps:m},ee=Y({},D?{y:`band`}:{x:`band`},u),te={slots:p,slotProps:m};return{chartsWrapperProps:{sx:l,legendPosition:e.slotProps?.legend?.position,legendDirection:e.slotProps?.legend?.direction,hideLegend:e.hideLegend??!1,className:S},chartsContainerProps:P,barPlotProps:F,gridProps:I,clipPathProps:R,clipPathGroupProps:L,overlayProps:z,chartsAxisProps:B,axisHighlightProps:ee,legendProps:te,children:f}};function WT(e){let t=T(),n=k_(),r=Qg(),{xAxis:i,xAxisIds:a}=Lg(),{yAxis:o,yAxisIds:s}=Rg();if(n===null||n.type!==`bar`||!r)return null;
86let c=r.series[n.seriesId];if(!c||c.hidden||c.data[n.dataIndex]==null)return null;let l=c.xAxisId??a[0],u=c.yAxisId??s[0],d=i[l],f=o[u],p=r.series[n.seriesId].layout===`vertical`,m=r.stackingGroups.findIndex(e=>e.ids.includes(n.seriesId)),h=MS({verticalLayout:p,xAxisConfig:d,yAxisConfig:f,series:c,numberOfGroups:r.stackingGroups.length})(n.dataIndex,m);if(h===null)return null;let{x:g,y:_,height:v,width:y}=h;return(0,J.jsx)(`rect`,Y({fill:`none`,stroke:(t.vars??t).palette.text.primary,strokeWidth:2,x:g-3,y:_-3,width:y+6,height:v+6,rx:3,ry:3},e))}var GT=q.forwardRef(function(e,t){let n=w({props:e,name:`MuiBarChart`}),{chartsWrapperProps:r,chartsContainerProps:i,barPlotProps:a,gridProps:o,clipPathProps:s,clipPathGroupProps:c,overlayProps:l,chartsAxisProps:u,axisHighlightProps:d,legendProps:f,children:p}=UT(n),{chartsDataProviderProps:m,chartsSurfaceProps:h}=Yx(i),g=n.slots?.tooltip??kb,_=n.slots?.toolbar;return(0,J.jsx)(CC,Y({},m,{children:(0,J.jsxs)(tw,Y({},r,{ref:t,children:[n.showToolbar&&_?(0,J.jsx)(_,Y({},n.slotProps?.toolbar)):null,!n.hideLegend&&(0,J.jsx)(Ub,Y({},f)),(0,J.jsxs)(KC,Y({},h,{children:[(0,J.jsx)(px,Y({},o)),(0,J.jsxs)(`g`,Y({},c,{children:[(0,J.jsx)(BT,Y({},a)),(0,J.jsx)(vx,Y({},l)),(0,J.jsx)(Qb,Y({},d)),(0,J.jsx)(WT,{})]})),(0,J.jsx)(Ry,Y({},u)),(0,J.jsx)($b,Y({},s)),p]})),!n.loading&&(0,J.jsx)(g,Y({},n.slotProps?.tooltip))]}))}))}),KT=q.createContext();function qT(e){return U(`MuiTable`,e)}V(`MuiTable`,[`root`,`stickyHeader`]);var JT=e=>{let{classes:t,stickyHeader:n}=e;return C({root:[`root`,n&&`stickyHeader`]},qT,t)},YT=K(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(l(({theme:e})=>({display:`table`,width:`100%`,borderCollapse:`collapse`,borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:`left`,captionSide:`bottom`},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),XT=`table`,ZT=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTable`}),{className:r,component:i=XT,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...l}=n,u={...n,component:i,padding:a,size:o,stickyHeader:s},d=JT(u),f=q.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,J.jsx)(KT.Provider,{value:f,children:(0,J.jsx)(YT,{as:i,role:i===XT?null:`table`,ref:t,className:A(d.root,r),ownerState:u,...l})})}),QT=q.createContext();function $T(e){return U(`MuiTableBody`,e)}V(`MuiTableBody`,[`root`]);var eE=e=>{let{classes:t}=e;return C({root:[`root`]},$T,t)},tE=K(`tbody`,{name:`MuiTableBody`,slot:`Root`})({display:`table-row-group`}),nE={variant:`body`},rE=`tbody`,iE=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableBody`}),{className:r,component:i=rE,...a}=n,o={...n,component:i},s=eE(o);return(0,J.jsx)(QT.Provider,{value:nE,children:(0,J.jsx)(tE,{className:A(s.root,r),as:i,ref:t,role:i===rE?null:`rowgroup`,ownerState:o,...a})})});function aE(e){return U(`MuiTableCell`,e)}var oE=V(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),sE=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return C({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${F(r)}`,i!==`normal`&&`padding${F(i)}`,`size${F(a)}`]},aE,t)},cE=K(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${F(n.size)}`],n.padding!==`normal`&&t[`padding${F(n.padding)}`],n.align!==`inherit`&&t[`align${F(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(l(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
87    ${e.palette.mode===`light`?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${oE.paddingCheckbox}`]:{width:24,padding:`0 12px 0 16px`,"& > *":{padding:0}}}},{props:{padding:`checkbox`},style:{width:48,padding:`0 0 0 4px`}},{props:{padding:`none`},style:{padding:0}},{props:{align:`left`},style:{textAlign:`left`}},{props:{align:`center`},style:{textAlign:`center`}},{props:{align:`right`},style:{textAlign:`right`,flexDirection:`row-reverse`}},{props:{align:`justify`},style:{textAlign:`justify`}},{props:({ownerState:e})=>e.stickyHeader,style:{position:`sticky`,top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),lE=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:o,scope:s,size:l,sortDirection:u,variant:d,...f}=n,p=q.useContext(KT),m=q.useContext(QT),h=m&&m.variant===`head`,g;g=a||(h?`th`:`td`);let _=s;g===`td`?_=void 0:!_&&h&&(_=`col`);let v=d||m&&m.variant,y={...n,align:r,component:g,padding:o||(p&&p.padding?p.padding:`normal`),size:l||(p&&p.size?p.size:`medium`),sortDirection:u,stickyHeader:v===`head`&&p&&p.stickyHeader,variant:v},b=sE(y),x=null;
87return u&&(x=u===`asc`?`ascending`:`descending`),(0,J.jsx)(cE,{as:g,ref:t,className:A(b.root,i),"aria-sort":x,scope:_,ownerState:y,...f})});function uE(e){return U(`MuiTableContainer`,e)}V(`MuiTableContainer`,[`root`]);var dE=e=>{let{classes:t}=e;return C({root:[`root`]},uE,t)},fE=K(`div`,{name:`MuiTableContainer`,slot:`Root`})({width:`100%`,overflowX:`auto`}),pE=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableContainer`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i};return(0,J.jsx)(fE,{ref:t,as:i,className:A(dE(o).root,r),ownerState:o,...a})});function mE(e){return U(`MuiTableHead`,e)}V(`MuiTableHead`,[`root`]);var hE=e=>{let{classes:t}=e;return C({root:[`root`]},mE,t)},gE=K(`thead`,{name:`MuiTableHead`,slot:`Root`})({display:`table-header-group`}),_E={variant:`head`},vE=`thead`,yE=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableHead`}),{className:r,component:i=vE,...a}=n,o={...n,component:i},s=hE(o);return(0,J.jsx)(QT.Provider,{value:_E,children:(0,J.jsx)(gE,{as:i,className:A(s.root,r),ref:t,role:i===vE?null:`rowgroup`,ownerState:o,...a})})});function bE(e){return U(`MuiTableRow`,e)}var xE=V(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),SE=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return C({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},bE,t)},CE=K(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(l(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${xE.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${xE.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),wE=`tr`,TE=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableRow`}),{className:r,component:i=wE,hover:a=!1,selected:o=!1,...s}=n,l=q.useContext(QT),u={...n,component:i,hover:a,selected:o,head:l&&l.variant===`head`,footer:l&&l.variant===`footer`};return(0,J.jsx)(CE,{as:i,ref:t,className:A(SE(u).root,r),role:i===wE?null:`row`,ownerState:u,...s})});function EE(e){return U(`MuiLinearProgress`,e)}V(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`bar`,`bar1`,`bar2`]);var DE=4,OE=be`
88  0% {
89    left: -35%;
90    right: 100%;
91  }
92
93  60% {
94    left: 100%;
95    right: -90%;
96  }
97
98  100% {
99    left: 100%;
100    right: -90%;
101  }
102`,kE=typeof OE==`string`?null:Ce`
103        animation: ${OE} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
104      `,AE=be`
105  0% {
106    left: -200%;
107    right: 100%;
108  }
109
110  60% {
111    left: 107%;
112    right: -8%;
113  }
114
115  100% {
116    left: 107%;
117    right: -8%;
118  }
119`,jE=typeof AE==`string`?null:Ce`
120        animation: ${AE} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
121      `,ME=be`
122  0% {
123    opacity: 1;
124    background-position: 0 -23px;
125  }
126
127  60% {
128    opacity: 0;
129    background-position: 0 -23px;
130  }
131
132  100% {
133    opacity: 1;
134    background-position: -200px -23px;
135  }
136`,NE=typeof ME==`string`?null:Ce`
137        animation: ${ME} 3s infinite linear;
138      `,PE=e=>{let{classes:t,variant:n,color:r}=e;return C({root:[`root`,`color${F(r)}`,n],dashed:[`dashed`],bar1:[`bar`,`bar1`],bar2:[`bar`,`bar2`,n===`buffer`&&`color${F(r)}`]},EE,t)},FE=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),IE=K(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${F(n.color)}`],t[n.variant]]}})(l(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{backgroundColor:FE(e,t)}})),{props:({ownerState:e})=>e.color===`inherit`&&e.variant!==`buffer`,style:{"&::before":{content:`""`,position:`absolute`,left:0,top:0,right:0,bottom:0,backgroundColor:`currentColor`,opacity:.3}}},{props:{variant:`buffer`},style:{backgroundColor:`transparent`}},{props:{variant:`query`},style:{transform:`rotate(180deg)`}}]}))),LE=K(`span`,{name:`MuiLinearProgress`,slot:`Dashed`})(l(({theme:e})=>({position:`absolute`,marginTop:0,height:`100%`,width:`100%`,backgroundSize:`10px 10px`,backgroundPosition:`0 -23px`,variants:[{props:{color:`inherit`},style:{opacity:.3,backgroundImage:`radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`}},...Object.entries(e.palette).filter(Qe()).map(([t])=>{let n=FE(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),NE||{animation:`${ME} 3s infinite linear`}),RE=K(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>[t.bar,t.bar1]})(l(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{transition:`transform .${DE}s linear`}},{props:{variant:`buffer`},style:{zIndex:1,transition:`transform .${DE}s linear`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:kE||{animation:`${OE} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),zE=K(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>[t.bar,t.bar2]})(l(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>e.variant!==`buffer`&&e.color!==`inherit`,style:{backgroundColor:`var(--LinearProgressBar2-barColor, currentColor)`}},{props:({ownerState:e})=>e.variant!==`buffer`&&e.color===`inherit`,style:{backgroundColor:`currentColor`}},{props:{color:`inherit`},style:{opacity:.3}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:FE(e,t),transition:`transform .${DE}s linear`}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:jE||{animation:`${AE} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),BE=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,value:a,valueBuffer:o,variant:s=`indeterminate`,...l}=n,u={...n,color:i,variant:s},d=PE(u),f=z(),p={},m={bar1:{},bar2:{}};if((s===`determinate`||s===`buffer`)&&a!==void 0){p[`aria-valuenow`]=Math.round(a),p[`aria-valuemin`]=0,p[`aria-valuemax`]=100;let e=a-100;f&&(e=-e),m.bar1.transform=`translateX(${e}%)`}if(s===`buffer`&&o!==void 0){let e=(o||0)-100;f&&(e=-e),m.bar2.transform=`translateX(${e}%)`}return(0,J.jsxs)(IE,{className:A(d.root,r),ownerState:u,role:`progressbar`,...p,ref:t,...l,children:[s===`buffer`?(0,J.jsx)(LE,{className:d.dashed,ownerState:u}):null,(0,J.jsx)(RE,{className:d.bar1,ownerState:u,style:m.bar1}),s===`determinate`?null:(0,J.jsx)(zE,{className:d.bar2,ownerState:u,style:m.bar2})]})}),VE=G((0,J.jsx)(`path`,{d:`M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.42 0 2.13.54 2.39 1.4.12.4.45.7.87.7h.3c.66 0 1.13-.65.9-1.27-.42-1.18-1.4-2.16-2.96-2.54
138V4.5c0-.83-.67-1.5-1.5-1.5S10 3.67 10 4.5v.66c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-1.65 0-2.5-.59-2.83-1.43-.15-.39-.49-.67-.9-.67h-.28c-.67 0-1.14.68-.89 1.3.57 1.39 1.9 2.21 3.4 2.53v.67c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-.65c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4`}),`AttachMoneyRounded`),HE=G((0,J.jsx)(`path`,{d:`M12 6v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V4c-4.42 0-8 3.58-8 8 0 1.04.2 2.04.57 2.95.27.67 1.13.85 1.64.34.27-.27.38-.68.23-1.04C6.15 13.56 6 12.79 6 12c0-3.31 2.69-6 6-6m5.79 2.71c-.27.27-.38.69-.23 1.04.28.7.44 1.46.44 2.25 0 3.31-2.69 6-6 6v-1.79c0-.45-.54-.67-.85-.35l-2.79 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.31.31.85.09.85-.35V20c4.42 0 8-3.58 8-8 0-1.04-.2-2.04-.57-2.95-.27-.67-1.13-.85-1.64-.34`}),`AutorenewRounded`),UE=G((0,J.jsx)(`path`,{d:`M12 5.99 19.53 19H4.47zM2.74 18c-.77 1.33.19 3 1.73 3h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0zM11 11v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1m0 5h2v2h-2z`}),`WarningAmberRounded`);function WE(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=Pe();q.useEffect(()=>{if(!i)return;function e(e){e.defaultPrevented||e.key===`Escape`&&r?.(e,`escapeKeyDown`)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,r]);let s=ve((e,t)=>{r?.(e,t)}),c=ve(e=>{!r||e==null||o.start(e,()=>{s(null,`timeout`)})});q.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=q.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),f=e=>t=>{let n=e.onBlur;n?.(t),d()},p=e=>t=>{let n=e.onFocus;n?.(t),u()},m=e=>t=>{let n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{let n=e.onMouseLeave;n?.(t),d()};return q.useEffect(()=>{if(!n&&i)return window.addEventListener(`focus`,d),window.addEventListener(`blur`,u),()=>{window.removeEventListener(`focus`,d),window.removeEventListener(`blur`,u)}},[n,i,d,u]),{getRootProps:(t={})=>{let n={...ne(e),...ne(t)};return{role:`presentation`,...t,...n,onBlur:f(n),onFocus:p(n),onMouseEnter:m(n),onMouseLeave:h(n)}},onClickAway:l}}function GE(e){return e.substring(2).toLowerCase()}function KE(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function qE(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=q.useRef(!1),s=q.useRef(null),c=q.useRef(!1),l=q.useRef(!1);q.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=Je(B(t),s),d=ve(e=>{let t=l.current;l.current=!1;let r=xe(s.current);if(!c.current||!s.current||`clientX`in e&&KE(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!r.documentElement.contains(e.target)||s.current.contains(e.target),!a&&(n||!t)&&i(e)}),f=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},p={ref:u};return a!==!1&&(p[a]=f(a)),q.useEffect(()=>{if(a!==!1){let e=GE(a),t=xe(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(p[r]=f(r)),q.useEffect(()=>{if(r!==!1){let e=GE(r),t=xe(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),q.cloneElement(t,p)}function JE(e){return U(`MuiSnackbarContent`,e)}V(`MuiSnackbarContent`,[`root`,`message`,`action`]);var YE=e=>{let{classes:t}=e;return C({root:[`root`],action:[`action`],message:[`message`]},JE,t)},XE=K(s,{name:`MuiSnackbarContent`,slot:`Root`})(l(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(L(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:L(e.palette.background.default,t),display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}}
vendor: 4,220 bytes, line 138
138)),ZE=K(`div`,{name:`MuiSnackbarContent`,slot:`Message`})({padding:`8px 0`}),QE=K(`div`,{name:`MuiSnackbarContent`,slot:`Action`})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),$E=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiSnackbarContent`}),{action:r,className:i,message:a,role:o=`alert`,...s}=n,l=n,u=YE(l);return(0,J.jsxs)(XE,{role:o,elevation:6,className:A(u.root,i),ownerState:l,ref:t,...s,children:[(0,J.jsx)(ZE,{className:u.message,ownerState:l,children:a}),r?(0,J.jsx)(QE,{className:u.action,ownerState:l,children:r}):null]})});function eD(e){return U(`MuiSnackbar`,e)}V(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var tD=e=>{let{classes:t,anchorOrigin:n}=e;return C({root:[`root`,`anchorOrigin${F(n.vertical)}${F(n.horizontal)}`]},eD,t)},nD=K(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${F(n.anchorOrigin.vertical)}${F(n.anchorOrigin.horizontal)}`]]}})(l(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:`fixed`,display:`flex`,left:8,right:8,justifyContent:`center`,alignItems:`center`,variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`,style:{top:8,[e.breakpoints.up(`sm`)]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!==`top`,style:{bottom:8,[e.breakpoints.up(`sm`)]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`left`,style:{justifyContent:`flex-start`,[e.breakpoints.up(`sm`)]:{left:24,right:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`right`,style:{justifyContent:`flex-end`,[e.breakpoints.up(`sm`)]:{right:24,left:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`center`,style:{[e.breakpoints.up(`sm`)]:{left:`50%`,right:`auto`,transform:`translateX(-50%)`}}}]}))),rD=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiSnackbar`}),r=T(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:s,horizontal:l}={vertical:`bottom`,horizontal:`left`},autoHideDuration:u=null,children:d,className:f,disableWindowBlurListener:p=!1,message:m,onBlur:h,onClose:g,onFocus:_,onMouseEnter:y,onMouseLeave:b,open:x,resumeHideDuration:S,slots:C={},slotProps:w={},transitionDuration:E=a,...D}=n,O={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:u,disableWindowBlurListener:p,transitionDuration:E},k=tD(O),{getRootProps:A,onClickAway:j}=WE(O),[M,N]=q.useState(!0),P={slots:C,slotProps:w},[F,I]=v(`root`,{ref:t,className:[k.root,f],elementType:nD,getSlotProps:A,externalForwardedProps:{...P,...D},ownerState:O}),[L,{ownerState:R,...z}]=v(`clickAwayListener`,{elementType:qE,externalForwardedProps:P,getSlotProps:e=>({onClickAway:(...t)=>{let n=t[0];e.onClickAway?.(...t),!n?.defaultMuiPrevented&&j(...t)}}),ownerState:O}),[B,ee]=v(`content`,{elementType:$E,shouldForwardComponentProp:!0,externalForwardedProps:P,additionalProps:{message:m,action:o},ownerState:O}),[te,V]=v(`transition`,{elementType:i,externalForwardedProps:P,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),N(!1)},onExited:(...t)=>{e.onExited?.(...t),N(!0)}}),additionalProps:{appear:!0,in:x,timeout:E,direction:s===`top`?`down`:`up`},ownerState:O});return!x&&M?null:(0,J.jsx)(L,{...z,...C.clickAwayListener&&{ownerState:R},children:(0,J.jsx)(F,{...I,children:(0,J.jsx)(te,{...V,children:d||(0,J.jsx)(B,{...ee})})})})}),iD=G([(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3.2`},`0`),(0,J.jsx)(`path`,{d:`M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5`},`1`)],`PhotoCamera`);function aD(e){let t=q.useRef({});return q.useEffect(()=>{t.current=e}),t.current}function oD(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=aD({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function sD(e){return U(`MuiBadge`,e)}var cD=V(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anch
138orOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),lD=10,uD=4,dD=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return C({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${F(n.vertical)}${F(n.horizontal)}`,`anchorOrigin${F(n.vertical)}${F(n.horizontal)}${F(i)}`,`overlap${F(i)}`,t!==`default`&&`color${F(t)}`]},sD,o)},fD=K(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),pD=K(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${F(n.anchorOrigin.vertical)}${F(n.anchorOrigin.horizontal)}${F(n.overlap)}`],n.color!==`default`&&t[`color${F(n.color)}`],n.invisible&&t.invisible]}})(l(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:lD*2,lineHeight:1,padding:`0 6px`,height:lD*2,borderRadius:lD,zIndex:1,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Qe([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:uD,height:uD*2,minWidth:uD*2,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{let{vertical:t,horizontal:n}=e.anchorOrigin,r=e.overlap===`circular`?`14%`:0;return{"--Badge-translateX":n===`right`?`50%`:`-50%`,"--Badge-translateY":t===`top`?`-50%`:`50%`,top:t===`top`?r:`initial`,bottom:t===`bottom`?r:`initial`,right:n===`right`?r:`initial`,left:n===`left`?r:`initial`,transform:`scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))`,transformOrigin:`${n===`right`?`100%`:`0%`} ${t===`top`?`0%`:`100%`}`,[`&.${cD.invisible}`]:{transform:`scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))`}}}}]})));function mD(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var hD=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,children:s,overlap:l=`rectangular`,color:u=`default`,invisible:d=!1,max:f=99,badgeContent:p,slots:m,slotProps:h,showZero:g=!1,variant:_=`standard`,...y}
vendor: 10,690 bytes, line 138
138=n,{badgeContent:b,invisible:x,max:S,displayValue:C}=oD({max:f,invisible:d,badgeContent:p,showZero:g}),w=aD({anchorOrigin:mD(r),color:u,overlap:l,variant:_,badgeContent:p}),T=x||b==null&&_!==`dot`,{color:E=u,overlap:D=l,anchorOrigin:O,variant:k=_}=T?w:n,j=mD(O),M=k===`dot`?void 0:C,N={...n,badgeContent:b,invisible:T,max:S,displayValue:M,showZero:g,anchorOrigin:j,color:E,overlap:D,variant:k},P=dD(N),F={slots:m,slotProps:h},[I,L]=v(`root`,{elementType:fD,externalForwardedProps:{...F,...y},ownerState:N,className:A(P.root,i),ref:t,additionalProps:{as:o}}),[R,z]=v(`badge`,{elementType:pD,externalForwardedProps:F,ownerState:N,className:P.badge});return(0,J.jsxs)(I,{...L,children:[s,(0,J.jsx)(R,{...z,children:M})]})}),gD=G((0,J.jsx)(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z`}),`Add`);function _D(e){return U(`MuiTextField`,e)}V(`MuiTextField`,[`root`]);var vD={standard:Qs,filled:ic,outlined:hc},yD=e=>{let{classes:t}=e;return C({root:[`root`]},_D,t)},bD=K(He,{name:`MuiTextField`,slot:`Root`})({}),xD=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:l,disabled:u=!1,error:d=!1,fullWidth:f=!1,helperText:p,id:m,inputRef:h,label:g,maxRows:_,minRows:y,multiline:b=!1,name:x,onBlur:S,onChange:C,onFocus:w,placeholder:T,required:E=!1,rows:D,select:O=!1,slots:k={},slotProps:j={},type:N,value:P,variant:F=`outlined`,...I}=n,L={...n,autoFocus:i,color:s,disabled:u,error:d,fullWidth:f,multiline:b,required:E,select:O,variant:F},R=yD(L),z=M(m),B=p&&z?`${z}-helper-text`:void 0,ee=g&&z?`${z}-label`:void 0,te=vD[F],V={slots:k,slotProps:j},[ne,H]=v(`select`,{elementType:xc,externalForwardedProps:V,ownerState:L}),re=O&&H.native,U={},ie=V.slotProps.inputLabel;F===`outlined`&&(ie&&ie.shrink!==void 0&&(U.notched=ie.shrink),U.label=g),O&&(re||(U.id=void 0),U[`aria-describedby`]=void 0);let[ae,oe]=v(`root`,{elementType:bD,shouldForwardComponentProp:!0,externalForwardedProps:{...V,...I},ownerState:L,className:A(R.root,o),ref:t,additionalProps:{disabled:u,error:d,fullWidth:f,required:E,color:s,variant:F}}),[W,se]=v(`input`,{elementType:te,externalForwardedProps:V,additionalProps:U,ownerState:L}),[ce,G]=v(`inputLabel`,{elementType:Ke,externalForwardedProps:V,ownerState:L}),[le,ue]=v(`htmlInput`,{elementType:`input`,externalForwardedProps:V,ownerState:L}),[de,fe]=v(`formHelperText`,{elementType:De,externalForwardedProps:V,ownerState:L}),pe=(0,J.jsx)(W,{"aria-describedby":B,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:f,multiline:b,name:x,rows:D,maxRows:_,minRows:y,type:N,value:P,id:z,inputRef:h,onBlur:S,onChange:C,onFocus:w,placeholder:T,inputProps:ue,slots:{input:k.htmlInput?le:void 0},...se});return(0,J.jsxs)(ae,{...oe,children:[g!=null&&g!==``&&(0,J.jsx)(ce,{htmlFor:O&&!re?void 0:z,id:ee,...O&&!re&&{component:`div`},...G,children:g}),O?(0,J.jsx)(ne,{"aria-describedby":B,id:z,labelId:ee,value:P,input:pe,...H,children:a}):pe,p&&(0,J.jsx)(de,{id:B,...fe,children:p})]})}),SD=G((0,J.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`Error`),CD=G((0,J.jsx)(`path`,{d:`m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z`}),`ArrowDownward`),wD=G((0,J.jsx)(`path`,{d:`m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z`}),`ArrowUpward`),TD=G((0,J.jsx)(`path`,{d:`M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z`}),`ContentCopy`),ED=G((0,J.jsx)(`path`,{d:`M19 13H5v-2h14z`}),`Remove`),DD=G((0,J.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Clear`);function OD(e){return U(`PrivateSwitchBase`,e)}V(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);var kD=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return C({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${F(i)}`],input:[`input`]},OD,t)},AD=K(Ve,{name:`MuiSwitchBase`})({padding:9,borderRadius:`50%`,variants:[{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e===`start`&&t.size!==`small`,style:{marginLeft:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e===`end`&&t.size!==`small`,style:{marginRight:-12}}]}),jD=K(`input`,{name:`MuiSwitchBase`,shouldForwardProp:r})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),MD=q.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:a,disabled:o,disableFocusRipple:s=!1,edge:c=!1,icon:l,id:u,name:d,onBlur:f,onChange:p,onFocus:m,readOnly:h,required:g=!1,tabIndex:_,type:y,value:b,slots:x={},slotProps:S={},...C}=e,{nativeButton:w,...T}=C,[E,D]=Kr({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),O=Se(),k=e=>{m&&m(e),O&&O.onFocus&&O.onFocus(e)},A=e=>{f&&f(e),O&&O.onBlur&&O.onBlur(e)},j=e=>{if(e.nativeEvent.defaultPrevented||h)return;let t=e.target.checked;D(t),p&&p(e,t)},M=o;O&&M===void 0&&(M=O.disabled);let N=y===`checkbox`||y===`radio`,P={...e,checked:E,disabled:M,disableFocusRipple:s,edge:c},F=kD(P),I={slots:x,slotProps:S},[L,R]=v(`root`,{ref:t,elementType:AD,className:F.root,shouldForwardComponentProp:!0,externalForwardedProps:{...I,component:`span`,...T},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),k(t)},onBlur:t=>{e.onBlur?.(t),A(t)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null}}),[z,B]=v(`input`,{elementType:jD,className:F.input,externalForwardedProps:I,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),j(t)}}),ownerState:P,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:M,id:N?u:void 0,name:d,readOnly:h,required:g,tabIndex:_,type:y,...y===`checkbox`&&b===void 0?{}:{value:b}}});return(0,J.jsxs)(L,{...R,children:[(0,J.jsx)(z,{...B}),E?i:l]})}),ND=G((0,J.jsx)(`path`,{d:`M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`}),`CheckBoxOutlineBlank`),PD=G((0,J.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z`}),`CheckBox`),FD=G((0,J.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z`}),`IndeterminateCheckBox`);function ID(e){return U(`MuiCheckbox`,e)}var LD=V(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]),RD=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=C({root:[`root`,n&&`indeterminate`,`color${F(r)}`,`size${F(i)}`]},ID,t);return{...t,...a}},zD=K(MD,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${F(n.size)}`],n.color!==`default`&&t[`color${F(n.color)}`]]}})(l(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:`default`,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{[`&.${LD.checked}, &.${LD.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${LD.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),BD=(0,J.jsx)(PD,{}),VD=(0,J.jsx)(ND,{}),HD=(0,J.jsx)(FD,{}),UD=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiCheckbox`}),{checkedIcon:r=BD,color:i=`primary`,icon:a=VD,indeterminate:o=!1,indeterminateIcon:s=HD,size:l=`medium`,disableRipple:u=!1,className:d,slots:f={},slotProps:p={},...m}=n,h=o?s:a,g=o?s:r,_={...n,disableRipple:u,color:i,indeterminate:o,size:l},y=RD(_),b=p.input,[x,S]=v(`root`,{ref:t,elementType:zD,className:A(y.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:p,...m},ownerState:_,additionalProps:{type:`checkbox`,icon:q.cloneElement(h,{fontSize:h.props.fontSize??l}),checkedIcon:q.cloneElement(g,{fontSize:g.props.fontSize??l}),disableRipple:u,slots:f,slotProps:{input:Jr(typeof b==`function`?b(_):b,{"data-indeterminate":o})}}});return(0,J.jsx)(x,{...S,classes:y})});function WD(e){return U(`MuiFormControlLabel`,e)}var GD=V(`MuiFormControlLabel`,[`root`,`labelPlacementStart`,`labelPlacementTop`,`labelPlacementBottom`,`disabled`,`label`,`error`,`required`,`asterisk`]),KD=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e;return C({root:[`root`,n&&`disabled`,`labelPlacement${F(r)}`,i&&`error`,a&&`required`],label:[`label`,n&&`disabled`],asterisk:[`asterisk`,i&&`error`]},WD,t)},qD=K(`label`,{name:`MuiFormControlLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${GD.label}`]:t.label},t.root,t[`labelPlacement${F(n.labelPlacement)}`]]}})(l(({theme:e})=>({display:`inline-flex`,alignItems:`center`,cursor:`pointer`,verticalAlign:`middle`,WebkitTapHighlightColor:`transparent`,marginLeft:-11,marginRight:16,[`&.${GD.disabled}`]:{cursor:`default`},[`& .${GD.label}`]:{[`&.${GD.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:`start`},style:{flexDirection:`row-reverse`,marginRight:-11}},{props:{labelPlacement:`top`},style:{flexDirection:`column-reverse`}},{props:{labelPlacement:`bottom`},style:{flexDirection:`column`}},{props:({labelPlacement:e})=>e===`start`||e===`top`||e===`bottom`,style:{marginLeft:16}}]}))),JD=K(`span`,{name:`MuiFormControlLabel`,slot:`Asterisk`})(l(({theme:e})=>({[`&.${GD.error}`]:{color:(e.vars||e).palette.error.main}}))),YD=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiFormControlLabel`}),{checked:r,className:i,control:a,disabled:o,disableTypography:s,inputRef:l,label:u,labelPlacement:d=`end`,name:f,onChange:p,required:m,slots:h={},slotProps:g={},value:_,...y}=n,b=Se(),x=o??a.props.disabled??b?.disabled,S=m??a.props.required,C={disabled:x,required:S};[`checked`,`name`,`onChange`,`value`,`inputRef`].forEach(e=>{a.props[e]===void 0&&n[e]!==void 0&&(C[e]=n[e])});let w=Fe({props:n,muiFormControl:b,states:[`error`]}),T={...n,disabled:x,labelPlacement:d,required:S,error:w.error},E=KD(T),[D,O]=v(`typography`,{elementType:re,externalForwardedProps:{slots:h,slotProps:g},ownerState:T}),k=u;return k!=null&&k.type!==re&&!s&&(k=(0,J.jsx)(D,{component:`span`,...O,className:A(E.label,O?.className),children:k}
138)),(0,J.jsxs)(qD,{className:A(E.root,i),ownerState:T,ref:t,...y,children:[q.cloneElement(a,C),S?(0,J.jsxs)(`div`,{children:[k,(0,J.jsxs)(JD,{ownerState:T,"aria-hidden":!0,className:E.asterisk,children:[` `,`*`]})]}):k]})});function XD(e){return U(`MuiFormGroup`,e)}V(`MuiFormGroup`,[`root`,`row`,`error`]);var ZD=e=>{let{classes:t,row:n,error:r}=e;return C({root:[`root`,n&&`row`,r&&`error`]},XD,t)},QD=K(`div`,{name:`MuiFormGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,variants:[{props:{row:!0},style:{flexDirection:`row`}}]}),$D=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiFormGroup`}),{className:r,row:i=!1,...a}=n,o=Fe({props:n,muiFormControl:Se(),states:[`error`]}),s={...n,row:i,error:o.error};return(0,J.jsx)(QD,{className:A(ZD(s).root,r),ownerState:s,ref:t,...a})}),eO=G((0,J.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`RadioButtonUnchecked`),tO=G((0,J.jsx)(`path`,{d:`M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z`}),`RadioButtonChecked`),nO=K(`span`,{name:`MuiRadioButtonIcon`,shouldForwardProp:r})({position:`relative`,display:`flex`}),rO=K(eO,{name:`MuiRadioButtonIcon`})({transform:`scale(1)`}),iO=K(tO,{name:`MuiRadioButtonIcon`})(l(({theme:e})=>({left:0,position:`absolute`,transform:`scale(0)`,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:`scale(1)`,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function aO(e){let{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return(0,J.jsxs)(nO,{className:n.root,ownerState:i,children:[(0,J.jsx)(rO,{fontSize:r,className:n.background,ownerState:i}),(0,J.jsx)(iO,{fontSize:r,className:n.dot,ownerState:i})]})}var oO=q.createContext(void 0);function sO(){return q.useContext(oO)}function cO(e){return U(`MuiRadio`,e)}var lO=V(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]),uO=e=>{let{classes:t,color:n,size:r}=e,i={root:[`root`,`color${F(n)}`,r!==`medium`&&`size${F(r)}`]};return{...t,...C(i,cO,t)}},dO=K(MD,{shouldForwardProp:e=>r(e)||e===`classes`,name:`MuiRadio`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size!==`medium`&&t[`size${F(n.size)}`],t[`color${F(n.color)}`]]}})(l(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${lO.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:`default`,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${lO.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]})));function fO(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var pO=(0,J.jsx)(aO,{checked:!0}),mO=(0,J.jsx)(aO,{}),hO=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiRadio`}),{checked:r,checkedIcon:i=pO,color:a=`primary`,icon:o=mO,name:s,onChange:l,size:u=`medium`,className:d,disabled:f,disableRipple:p=!1,slots:m={},slotProps:h={},...g}=n,_=Se(),y=f;_&&y===void 0&&(y=_.disabled),y??=!1;let b={...n,disabled:y,disableRipple:p,color:a,size:u},x=uO(b),S=sO(),C=r,w=zr(l,S&&S.onChange),T=s;S&&(C===void 0&&(C=fO(S.value,n.value)),T===void 0&&(T=S.name));let E=h.input,[D,O]=v(`root`,{ref:t,elementType:dO,className:A(x.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:h,...g},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),w(t,...n)}}),ownerState:b,additionalProps:{type:`radio`,icon:q.cloneElement(o,{fontSize:o.props.fontSize??u}),checkedIcon:q.cloneElement(i,{fontSize:i.props.fontSize??u}),disabled:y,name:T,checked:C,slots:m,slotProps:{input:typeof E==`function`?E(b):E}}});return(0,J.jsx)(D,{...O,classes:x})});function gO(e){return U(`MuiRadioGroup`,e)}V(`MuiRadioGroup`,[`root`,`row`,`error`]);var _O=e=>{let{classes:t,row:n,error:r}=e;
138return C({root:[`root`,n&&`row`,r&&`error`]},gO,t)},vO=q.forwardRef(function(e,t){let{actions:n,children:r,className:i,defaultValue:a,name:o,onChange:s,value:c,...l}=e,u=q.useRef(null),d=_O(e),[f,p]=Kr({controlled:c,default:a,name:`RadioGroup`});q.useImperativeHandle(n,()=>({focus:()=>{let e=u.current.querySelector(`input:not(:disabled):checked`);e||=u.current.querySelector(`input:not(:disabled)`),e&&e.focus()}}),[]);let m=ke(t,u),h=Le(o),g=q.useMemo(()=>({name:h,onChange(e){p(e.target.value),s&&s(e,e.target.value)},value:f}),[h,s,p,f]);return(0,J.jsx)(oO.Provider,{value:g,children:(0,J.jsx)($D,{role:`radiogroup`,ref:m,className:A(d.root,i),...l,children:r})})}),yO={border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,whiteSpace:`nowrap`,width:`1px`};function bO(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var xO=2,SO=[],CO={};function wO(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function TO(e,t){return e-t}function EO(e,t,n=-1){let{index:r}=e.reduce((e,n,r)=>{let i=Math.abs(t-n);return e==null||i<=e.distance?{distance:i,index:r}:e},null)??CO;return r==null?r:n>=0&&e[n]===e[r]?n:r}function DO(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function OO(e,t,n){return(e-t)*100/(n-t)}function kO(e,t,n){return(n-t)*e+t}function AO(e){if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function jO(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(AO(t)))}function MO(e,t,n){let r=e.slice();return r[n]=t,r.sort(TO)}function NO(e,t,n,r){let i=ae(xe(e.current));if(!e.current?.contains(i)||Number(i?.getAttribute(`data-index`))!==t){let n=e.current?.querySelector(`[type="range"][data-index="${t}"]`);n!=null&&(r==null?n.focus({preventScroll:!0}):n.focus({preventScroll:!0,focusVisible:r}))}n&&n(t)}function PO(e,t){return typeof e==`number`&&typeof t==`number`?e===t:typeof e==`object`&&typeof t==`object`?bO(e,t):!1}var FO={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},IO=e=>e;function LO(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:c=0,name:l,onChange:u,onChangeCommitted:d,orientation:f=`horizontal`,rootRef:m,scale:h=IO,step:g=1,shiftStep:_=10,tabIndex:v,value:y}=e,b=q.useRef(void 0),x=q.useRef(null),[S,C]=q.useState(-1),[w,T]=q.useState(-1),[E,D]=q.useState(!1),O=q.useRef(0),k=q.useRef(-1),A=q.useRef(!1),j=q.useRef(-1),M=ve(()=>{x.current!=null&&(cancelAnimationFrame(x.current),x.current=null)}),N=q.useRef(null),[P,F]=Gr({controlled:y,default:n??c,name:`Slider`}),I=ve((e,t,n)=>{let r=`nativeEvent`in e?e.nativeEvent:e,i=new r.constructor(r.type,r);Object.defineProperty(i,`target`,{writable:!0,value:{value:t,name:l}}),N.current=t,u?.(i,t,n)}),L=Array.isArray(P),R=q.useMemo(()=>{if(typeof P==`number`)return[ee(P,c,s)];if(P==null)return[c];let e=P.slice().sort(TO);for(let t=0;t<e.length;t+=1){let n=e[t];e[t]=n==null?c:ee(n,c,s)}return e},[P,c,s]),z=q.useMemo(()=>{if(o===!0&&g!=null){let e=Array(Math.floor((s-c)/g)+1);for(let t=0;t<e.length;t+=1)e[t]={value:c+g*t};return e}return Array.isArray(o)?o:SO},[o,g,c,s]),B=q.useMemo(()=>{let e=Array(z.length);for(let t=0;t<z.length;t+=1)e[t]=z[t].value;return e},[z]),[te,V]=q.useState(-1),H=q.useRef(null),re=Je(m,H),U=e=>t=>{let n=Number(t.currentTarget.getAttribute(`data-index`));de(t.target)&&V(n),T(n),e?.onFocus?.(t)},ie=e=>t=>{de(t.target)||V(-1),T(-1),e?.onBlur?.(t)},oe=(e,t)=>{let n=Number(e.currentTarget.getAttribute(`data-index`)),r=R[n],a=B.indexOf(r),o=t;if(z&&g==null){let e=B[B.length-1];o=o>=e?e:o<=B[0]?B[0]:o<r?B[a-1]:B[a+1]}if(o=ee(o,c,s),L){i&&(o=ee(o,R[n-1]||-1/0,R[n+1]||1/0));let e=o;o=MO(R,o,n);let t=n;i||(t=o.indexOf(e)),NO(H,t)}F(o),V(n),u&&!PO(o,P)&&I(e,o,n),d&&d(e,N.current??o)},W=e=>t=>{if([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`].includes(t.key)){t.preventDefault();let e=R[Number(t.currentTarget.getAttribute(`data-index`))],n=null;if(g!=null){let r=t.shiftKey?_:g;switch(t.key){case`ArrowUp`:n=wO(e,r,1,c,s);break;
138case`ArrowRight`:n=wO(e,r,a?-1:1,c,s);break;case`ArrowDown`:n=wO(e,r,-1,c,s);break;case`ArrowLeft`:n=wO(e,r,a?1:-1,c,s);break;case`PageUp`:n=wO(e,_,1,c,s);break;case`PageDown`:n=wO(e,_,-1,c,s);break;case`Home`:n=c;break;case`End`:n=s;break;default:break}}else if(z){let r=B[B.length-1],i=B.indexOf(e),o=[a?`ArrowRight`:`ArrowLeft`,`ArrowDown`,`PageDown`,`Home`],s=[a?`ArrowLeft`:`ArrowRight`,`ArrowUp`,`PageUp`,`End`];o.includes(t.key)?n=i===0?B[0]:B[i-1]:s.includes(t.key)&&(n=i===B.length-1?r:B[i+1])}n!=null&&oe(t,n)}e?.onKeyDown?.(t)};p(()=>{let e=ae(xe(H.current));r&&H.current?.contains(e)&&e!=null&&`blur`in e&&e.blur()},[r]),r&&S!==-1&&C(-1),r&&te!==-1&&V(-1);let se=e=>t=>{e.onChange?.(t),oe(t,t.currentTarget.valueAsNumber)},ce=q.useRef(void 0),G=f;a&&f===`horizontal`&&(G+=`-reverse`);let le=e=>{let{current:t}=H;if(!t)return null;let{width:n,height:r,bottom:a,left:o}=t.getBoundingClientRect(),l;l=G.startsWith(`vertical`)?(a-e.y)/r:(e.x-o)/n,G.includes(`-reverse`)&&(l=1-l);let u;u=kO(l,c,s),u=g?jO(u,g,c):B[EO(B,u)],u=ee(u,c,s);let d=0;if(L){let e=ce.current!==-1;d=e?ce.current:EO(R,u,k.current),i&&(u=ee(u,R[d-1]||-1/0,R[d+1]||1/0));let t=u;u=MO(R,u,d),i&&e||(d=u.indexOf(t),ce.current=d)}return{newValue:u,activeIndex:d}},ue=ve(e=>{if(`pointerId`in e&&e.pointerId!==j.current)return;let t=DO(e,b);if(!t)return;if(O.current+=1,e.type===`pointermove`&&e.buttons===0){fe(e);return}let n=le(t);n&&(NO(H,n.activeIndex,C,!1),k.current=n.activeIndex,F(n.newValue),!E&&O.current>xO&&D(!0),u&&!PO(n.newValue,P)&&I(e,n.newValue,n.activeIndex))}),fe=ve(e=>{if(`pointerId`in e&&e.pointerId!==j.current)return;let t=DO(e,b);if(D(!1),!t)return;let n=le(t);C(-1),e.type===`touchend`&&T(-1),n&&d&&d(e,N.current??n.newValue),`pointerType`in e&&H.current?.hasPointerCapture(e.pointerId)&&H.current.releasePointerCapture(e.pointerId),b.current=void 0,j.current=-1,me()}),pe=ve(e=>{if(r)return;if(A.current){A.current=!1;let t=e.changedTouches[0];t!=null&&(b.current=t.identifier);return}let t=e.changedTouches[0];t!=null&&(b.current=t.identifier);let n=DO(e,b);if(n!==!1){ce.current=-1;let t=le(n);t&&(NO(H,t.activeIndex,C,!1),k.current=t.activeIndex,F(t.newValue),u&&!PO(t.newValue,P)&&I(e,t.newValue,t.activeIndex))}O.current=0;let i=xe(H.current);i.addEventListener(`touchmove`,ue,{passive:!0}),i.addEventListener(`touchend`,fe,{passive:!0})}),me=q.useCallback(()=>{let e=xe(H.current);e.removeEventListener(`pointermove`,ue),e.removeEventListener(`pointerup`,fe),e.removeEventListener(`touchmove`,ue),e.removeEventListener(`touchend`,fe)},[fe,ue]);q.useEffect(()=>{let e=H.current;if(e)return e.addEventListener(`touchstart`,pe,{passive:!0}),()=>{e.removeEventListener(`touchstart`,pe),M(),me()}},[me,pe,M]),q.useEffect(()=>{r&&(me(),M())},[r,me,M]);let he=e=>t=>{if(e.onPointerDown?.(t),t.pointerType===`touch`&&(A.current=!0),r||t.defaultPrevented||t.button!==0)return;let n=DO(t,b);if(n!==!1){ce.current=-1;let e=le(n);if(e){let n=H.current?.querySelector(`input[type="range"][data-index="${e.activeIndex}"]`),r=xe(H.current),i=n!=null&&n===ae(r);C(e.activeIndex),k.current=e.activeIndex,i?t.preventDefault():(M(),x.current=requestAnimationFrame(()=>{x.current=null,NO(H,e.activeIndex,void 0,!1)})),F(e.newValue),u&&!PO(e.newValue,P)&&I(t,e.newValue,e.activeIndex)}}O.current=0,j.current=t.pointerId;let i=xe(H.current);try{t.currentTarget.setPointerCapture(t.pointerId)}catch{}i.addEventListener(`pointermove`,ue,{passive:!0}),i.addEventListener(`pointerup`,fe)},ge=OO(L?R[0]:c,c,s),_e=OO(R[R.length-1],c,s)-ge,ye=(e=CO)=>{let t=ne(e),n={onPointerDown:he(t)},r={...t,...n};return{...e,ref:re,...r}},be=e=>t=>{e.onMouseOver?.(t),T(Number(t.currentTarget.getAttribute(`data-index`)))},Se=e=>t=>{e.onMouseLeave?.(t),T(-1)},Ce=(e=CO)=>{let t=ne(e),n={onMouseOver:be(t),onMouseLeave:Se(t)};return{...e,...t,...n}},we=e=>{let t;return L?S===e?t=2:k.current===e&&(t=1):S===e&&(t=1),{pointerEvents:S!==-1&&S!==e?`none`:void 0,zIndex:t}},Te;return f===`vertical`&&(Te=a?`vertical-rl`:`vertical-lr`),{active:S,axis:G,axisProps:FO,dragging:E,focusedThumbIndex:te,getHiddenInputProps:(n=CO)=>
vendor: 12,028 bytes, line 138
138{let i=ne(n),o={onChange:se(i),onFocus:U(i),onBlur:ie(i),onKeyDown:W(i)},u={...i,...o};return{tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":h(s),"aria-valuemin":h(c),name:l,type:`range`,min:e.min,max:e.max,step:e.step===null&&e.marks?`any`:e.step??void 0,disabled:r,...n,...u,style:{...yO,direction:a?`rtl`:`ltr`,width:`100%`,height:`100%`,writingMode:Te}}},getRootProps:ye,getThumbProps:Ce,marks:z,open:w,range:L,rootRef:re,trackLeap:_e,trackOffset:ge,values:R,getThumbStyle:we}}function RO(e){return U(`MuiSlider`,e)}var zO=V(`MuiSlider`,`root.active.colorPrimary.colorSecondary.colorError.colorInfo.colorSuccess.colorWarning.disabled.dragging.focusVisible.mark.markActive.marked.markLabel.markLabelActive.rail.sizeSmall.thumb.track.trackInverted.trackFalse.valueLabel.valueLabelOpen.valueLabelCircle.valueLabelLabel.vertical`.split(`.`)),BO=e=>{let{open:t}=e;return{offset:A(t&&zO.valueLabelOpen),circle:zO.valueLabelCircle,label:zO.valueLabelLabel}};function VO(e){let{children:t,className:n,value:r}=e,i=BO(e);return t?q.cloneElement(t,{className:t.props.className},(0,J.jsxs)(q.Fragment,{children:[t.props.children,(0,J.jsx)(`span`,{className:A(i.offset,n),"aria-hidden":!0,children:(0,J.jsx)(`span`,{className:i.circle,children:(0,J.jsx)(`span`,{className:i.label,children:r})})})]})):null}function HO(e){return e}var UO=K(`span`,{name:`MuiSlider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${F(n.color)}`],n.size!==`medium`&&t[`size${F(n.size)}`],n.marked&&t.marked,n.orientation===`vertical`&&t.vertical,n.track===`inverted`&&t.trackInverted,n.track===!1&&t.trackFalse]}})(l(({theme:e})=>({borderRadius:12,boxSizing:`content-box`,display:`inline-block`,position:`relative`,cursor:`pointer`,touchAction:`none`,WebkitTapHighlightColor:`transparent`,"@media print":{colorAdjust:`exact`},[`&.${zO.disabled}`]:{pointerEvents:`none`,cursor:`default`,color:(e.vars||e).palette.grey[400]},[`&.${zO.dragging}`]:{[`& .${zO.thumb}, & .${zO.track}`]:{transition:`none`}},variants:[...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:`horizontal`},style:{height:4,width:`100%`,padding:`13px 0`,"@media (pointer: coarse)":{padding:`20px 0`}}},{props:{orientation:`horizontal`,size:`small`},style:{height:2}},{props:{orientation:`horizontal`,marked:!0},style:{marginBottom:20}},{props:{orientation:`vertical`},style:{height:`100%`,width:4,padding:`0 13px`,"@media (pointer: coarse)":{padding:`0 20px`}}},{props:{orientation:`vertical`,size:`small`},style:{width:2}},{props:{orientation:`vertical`,marked:!0},style:{marginRight:44}}]}))),WO=K(`span`,{name:`MuiSlider`,slot:`Rail`})({display:`block`,position:`absolute`,borderRadius:`inherit`,backgroundColor:`currentColor`,opacity:.38,variants:[{props:{orientation:`horizontal`},style:{width:`100%`,height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{height:`100%`,width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:`inverted`},style:{opacity:1}}]}),GO=K(`span`,{name:`MuiSlider`,slot:`Track`})(l(({theme:e})=>({display:`block`,position:`absolute`,borderRadius:`inherit`,border:`1px solid currentColor`,backgroundColor:`currentColor`,transition:e.transitions.create([`left`,`width`,`bottom`,`height`],{duration:e.transitions.duration.shortest}),variants:[{props:{size:`small`},style:{border:`none`}},{props:{orientation:`horizontal`},style:{height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:!1},style:{display:`none`}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t,track:`inverted`},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles(`dark`,{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles(`dark`,{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),KO=K(`span`,{name:`MuiSlider`,slot:`Thumb`})(l(({theme:e})=>({position:`absolute`,width:20,height:20,boxSizing:`border-box`,borderRadius:`50%`,outline:0,backgroundColor:`currentColor`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:e.transitions.create([`box-shadow`,`left`,`bottom`],{duration:e.transitions.duration.shortest}),"&::before":{position:`absolute`,content:`""`,borderRadius:`inherit`,width:`100%`,height:`100%`,boxShadow:(e.vars||e).shadows[2]},"&::after":{position:`absolute`,content:`""`,borderRadius:`50%`,width:42,height:42,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},[`&.${zO.disabled}`]:{"&:hover":{boxShadow:`none`}},variants:[{props:{size:`small`},style:{width:12,height:12,"&::before":{boxShadow:`none`}}},{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-50%, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 50%)`}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${zO.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:`none`}},[`&.${zO.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),qO=K(VO,{name:`MuiSlider`,slot:`ValueLabel`})(l(({theme:e})=>({zIndex:1,whiteSpace:`nowrap`,...e.typography.body2,fontWeight:500,transition:e.transitions.create([`transform`],{duration:e.transitions.duration.shortest}),position:`absolute`,backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`0.25rem 0.75rem`,variants:[{props:{orientation:`horizontal`},style:{transform:`translateY(-100%) scale(0)`,top:`-10px`,transformOrigin:`bottom center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, 50%) rotate(45deg)`,backgroundColor:`inherit`,bottom:0,left:`50%`},[`&.${zO.valueLabelOpen}`]:{transform:`translateY(-100%) scale(1)`}}},{props:{orientation:`vertical`},style:{transform:`translateY(-50%) scale(0)`,right:`30px`,top:`50%`,transformOrigin:`right center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, -50%) rotate(45deg)`,backgroundColor:`inherit`,right:-8,top:`50%`},[`&.${zO.valueLabelOpen}`]:{transform:`translateY(-50%) scale(1)`}}},{props:{size:`small`},style:{fontSize:e.typography.pxToRem(12),padding:`0.25rem 0.5rem`}},{props:{orientation:`vertical`,size:`small`},style:{right:`20px`}}]}))),JO=K(`span`,{name:`MuiSlider`,slot:`Mark`,shouldForwardProp:e=>Ee(e)&&e!==`markActive`,overridesResolver:(e,t)=>{let{markActive:n}=e;return[t.mark,n&&t.markActive]}})(l(({theme:e})=>({position:`absolute`,width:2,height:2,borderRadius:1,backgroundColor:`currentColor`,variants:[{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-1px, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 1px)`}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),YO=K(`span`,{name:`MuiSlider`,slot:`MarkLabel`,shouldForwardProp:e=>Ee(e)&&e!==`markLabelActive`})(l(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:`absolute`,whiteSpace:`nowrap`,variants:[{props:{orientation:`horizontal`},style:{top:30,transform:`translateX(-50%)`,"@media (pointer: coarse)":{top:40}}},{props:{orientation:`vertical`},style:{left:36,transform:`translateY(50%)`,"@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),XO=e=>{let{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:c}=e;return C({root:[`root`,t&&`disabled`,n&&`dragging`,r&&`marked`,i===`vertical`&&`vertical`,a===`inverted`&&`trackInverted`,a===!1&&`trackFalse`,s&&`color${F(s)}`,c&&`size${F(c)}`],rail:[`rail`],track:[`track`],mark:[`mark`],markActive:[`markActive`],markLabel:[`markLabel`],markLabelActive:[`markLabelActive`],valueLabel:[`valueLabel`],thumb:[`thumb`,t&&`disabled`],active:[`active`],disabled:[`disabled`],focusVisible:[`focusVisible`]},RO,o)},ZO=({children:e})=>e,QO=q.forwardRef(function(e,t){let n=c({props:e,name:`MuiSlider`}),r=z(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":o,color:s=`primary`,classes:l,className:u,disableSwap:d=!1,disabled:f=!1,getAriaLabel:p,getAriaValueText:m,marks:h=!1,max:g=100,min:_=0,name:y,onChange:b,onChangeCommitted:x,orientation:S=`horizontal`,shiftStep:C=10,size:w=`medium`,step:T=1,scale:E=HO,slotProps:D={},slots:O={},tabIndex:k,track:j=`normal`,value:M,valueLabelDisplay:N=`off`,valueLabelFormat:P=HO,...F}=n,I={...n,isRtl:r,max:g,min:_,classes:l,disabled:f,disableSwap:d,orientation:S,marks:h,color:s,size:w,step:T,shiftStep:C,scale:E,track:j,valueLabelDisplay:N,valueLabelFormat:P},{axisProps:L,getRootProps:R,getHiddenInputProps:B,getThumbProps:ee,open:V,active:ne,axis:H,focusedThumbIndex:re,range:U,dragging:ie,marks:ae,values:oe,trackOffset:W,trackLeap:se,getThumbStyle:ce}=LO({...I,rootRef:t});I.marked=ae.length>0&&ae.some(e=>e.label),I.dragging=ie,I.focusedThumbIndex=re;let G=XO(I),le={slots:O,slotProps:D},[ue,de]=v(`root`,{elementType:UO,getSlotProps:R,externalForwardedProps:{...le,...F},ownerState:I,className:[G.root,u]}),[fe,pe]=v(`rail`,{elementType:WO,externalForwardedProps:le,ownerState:I,className:G.rail}),[me,he]=v(`track`,{elementType:GO,externalForwardedProps:le,additionalProps:{style:{...L[H].offset(W),...L[H].leap(se)}},ownerState:I,className:G.track}),[ge,_e]=v(`thumb`,{elementType:KO,getSlotProps:ee,externalForwardedProps:le,ownerState:I,className:G.thumb}),[ve,ye]=v(`valueLabel`,{elementType:qO,externalForwardedProps:le,ownerState:I,className:G.valueLabel}),[be,xe]=v(`mark`,{elementType:JO,externalForwardedProps:le,ownerState:I,className:G.mark}),[Se,Ce]=v(`markLabel`,{elementType:YO,externalForwardedProps:le,ownerState:I,className:G.markLabel}),[we,Te]=v(`input`,{elementType:`input`,getSlotProps:B,externalForwardedProps:le,ownerState:I});return(0,J.jsxs)(ue,{...de,children:[(0,J.jsx)(fe,{...pe}),(0,J.jsx)(me,{...he}),ae.filter(e=>e.value>=_&&e.value<=g).map((e,t)=>{let n=OO(e.value,_,g),r=L[H].offset(n),i;return i=j===!1?oe.includes(e.value):j===`normal`&&(U?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0])||j===`inverted`&&(U?e.value<=oe[0]||e.value>=oe[oe.length-1]:e.value>=oe[0]),(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(be,{"data-index":t,...xe,...!te(be)&&{markActive:i},style:{...r,...xe.style},className:A(xe.className,i&&G.markActive)}),e.label==null?null:(0,J.jsx)(Se,{"aria-hidden":!0,"data-index":t,...Ce,...!te(Se)&&{markLabelActive:i},style:{...r,...Ce.style},className:A(G.markLabel,Ce.className,i&&G.markLabelActive),children:e.label})]},t)}),oe.map((e,t)=>{let n=OO(e,_,g),r=L[H].offset(n),s=N===`off`?ZO:ve;return(0,J.jsx)(s,{...!te(s)&&{valueLabelFormat:P,valueLabelDisplay:N,value:typeof P==`function`?P(E(e),t):P,index:t,open:V===t||ne===t||N===`on`,disabled:f},...ye,children:(0,J.jsx)(ge,{"data-index":t,..._e,className:A(G.thumb,_e.className,ne===t&&G.active,re===t&&G.focusVisible),style:{...r,...ce(t),..._e.style},children:(0,J.jsx)(we,{"data-index":t,"aria-label":p?p(t):i,"aria-valuenow":E(e),"aria-labelledby":o,"aria-valuetext":m?m(E(e),t):a,value:oe[t],...Te})})},t)})]})}),$O=G((0,J.jsx)(`path`,{d:`M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H1c-.55 0-1 .45-1 1s.45 1 1 1h22c.55 0 1-.45 1-1s-.45-1-1-1zM5 6h14c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1`}),`ComputerRounded`),ek=G((0,J.jsx)(`path`,{d:`M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z`}),`SmartphoneRounded`);function tk(e){return U(`MuiListItemAvatar`,e)}V(`MuiListItemAvatar`,[`root`,`alignItemsFlexStart`]);
138var nk=e=>{let{alignItems:t,classes:n}=e;return C({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},tk,n)},rk=K(`div`,{name:`MuiListItemAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}),ik=q.forwardRef(function(e,n){let r=c({props:e,name:`MuiListItemAvatar`}),{className:i,...a}=r,o=q.useContext(t),s={...r,alignItems:o.alignItems};return(0,J.jsx)(rk,{className:A(nk(s).root,i),ownerState:s,ref:n,...a})}),ak=G((0,J.jsx)(`path`,{d:`M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`}),`CheckBoxOutlineBlankRounded`),ok=G((0,J.jsx)(`path`,{d:`M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z`}),`CheckRounded`),sk=G((0,J.jsx)(`path`,{d:`M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1`}),`RemoveRounded`),ck=G((0,J.jsx)(`path`,{d:`m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 3.7a.996.996 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0zm0 12.34-2.46-2.46a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z`}),`UnfoldMoreRounded`);export{qo as $,yE as A,Fr as At,ox as B,iD as C,da as Ct,VE as D,$r as Dt,HE as E,ii as Et,GT as F,Sr as Ft,Lc as G,M_ as H,Gw as I,mr as It,Tc as J,jc as K,yw as L,dr as Lt,lE as M,Ar as Mt,iE as N,kr as Nt,BE as O,Lr as Ot,ZT as P,wr as Pt,ms as Q,vw as R,cn as Rt,hD as S,pa as St,UE as T,aa as Tt,Uc as U,Nb as V,Bc as W,uc as X,xc as Y,ws as Z,wD as _,za as _t,ik as a,No as at,xD as b,ka as bt,QO as c,yo as ct,$D as d,po as dt,Wo as et,YD as f,fo as ft,TD as g,Ka as gt,ED as h,to as ht,ak as i,zo as it,pE as j,Pr as jt,TE as k,Ir as kt,vO as l,ho as lt,DD as m,lo as mt,sk as n,Vo as nt,ek as o,Do as ot,UD as p,uo as pt,kc as q,ok as r,Bo as rt,$O as s,bo as st,ck as t,Ho as tt,hO as u,mo as ut,CD as v,ja as vt,rD as w,sa as wt,gD as x,_a as xt,SD as y,Aa as yt,iw as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.