UNPKG

iobroker.javascript

Version:
77 lines (68 loc) 447 kB
import{e as Tl,f as Ml,s as Ll,h as Al,u as Cs,j as u,k as z,l as Bl,m as Ss,n as Ol,p as A,q as G,t as ws,v as V,w as Mn,x as Wo,y as Nl,z as En,A as El,B as Ks,C as zl,D as jl,b as bi,E as Ko,F as vi,T as Sr,G as Dl,H as hi,I as Fl,J as Wl,g as Ul,a as Hl,K as Vl,o as Gl,L as _l,r as Kl,_ as ql,M as _,N as X,O as Xl,P as R,Q as W,d as It,R as qs,c as se,S as Vo,U as Go,V as fr,W as ge,X as _n,Y as zn,Z as Eo,$ as Yl}from"./createSvgIcon-DPvF8xqu.js";import{aa as CP,a7 as SP,a8 as wP,a3 as PP,a9 as $P,a5 as RP,a6 as kP,ag as IP,a0 as TP,a2 as MP,ad as LP,ac as AP,ae as BP,a4 as OP,a1 as NP,ab as EP,af as zP}from"./createSvgIcon-DPvF8xqu.js";import{u as Re,G as Zl,y as Ql,_ as yi,a as xi,k as po,c as qo,b as Ye,d as no}from"./inheritsLoose-B0Ba5G9z.js";import{C as DP,E as FP,S as WP,T as UP,g as HP,e as VP}from"./inheritsLoose-B0Ba5G9z.js";import{n as F,k as Qt,l as Ce,R as Jl,j as Ot,e as re,b as ct,c as Lt,d as be,v as tc,f as Ut,a as mo,g as Ae,u as Lo,m as Zt,o as fe,q as Ci}from"./iobroker_javascript__loadShare__react__loadShare__.mjs-CTZOFJS2.js";import{P as ke}from"./iobroker_javascript__loadShare__prop_mf_2_types__loadShare__.mjs-BCtSFofY.js";import{u as ve}from"./useTheme-hy6f3gra.js";import{R as Kn,_ as ec,a as Xs}from"./iobroker_javascript__loadShare__react_mf_2_dom__loadShare__.mjs-DeVAS-oa.js";import"./iobroker_javascript__loadShare__react__loadShare__.mjs_commonjs-proxy-CE9lvhW8.js";const oc=t=>{var n;const e={systemProps:{},otherProps:{}},o=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Ml;return Object.keys(t).forEach(r=>{o[r]?e.systemProps[r]=t[r]:e.otherProps[r]=t[r]}),e};function jn(t){const{sx:e,...o}=t,{systemProps:n,otherProps:r}=oc(o);let s;return Array.isArray(e)?s=[n,...e]:typeof e=="function"?s=(...a)=>{const i=e(...a);return Tl(i)?{...n,...i}:n}:s={...n,...e},{...r,sx:s}}function nc(t={}){const{themeId:e,defaultTheme:o,defaultClassName:n="MuiBox-root",generateClassName:r}=t,s=Ll("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(Al);return F(function(l,c){const p=Cs(o),{className:d,component:g="div",...f}=jn(l);return u.jsx(s,{as:g,ref:c,className:z(d,r?r(n):n),theme:e&&p[e]||p,...f})})}const Ps=Bl();function $s(t){const{theme:e,name:o,props:n}=t;return!e||!e.components||!e.components[o]||!e.components[o].defaultProps?n:Ss(e.components[o].defaultProps,n)}function wr({props:t,name:e,defaultTheme:o,themeId:n}){let r=Cs(o);return n&&(r=r[n]||r),$s({theme:r,name:e,props:t})}function rc(t,e,o,n,r){const[s,a]=Ot(()=>r&&o?o(t).matches:n?n(t).matches:e);return Re(()=>{if(!o)return;const i=o(t),l=()=>{a(i.matches)};return l(),i.addEventListener("change",l),()=>{i.removeEventListener("change",l)}},[t,o]),s}const sc={...Jl},Si=sc.useSyncExternalStore;function ac(t,e,o,n,r){const s=Qt(()=>e,[e]),a=Ce(()=>{if(r&&o)return()=>o(t).matches;if(n!==null){const{matches:p}=n(t);return()=>p}return s},[s,t,n,r,o]),[i,l]=Ce(()=>{if(o===null)return[s,()=>()=>{}];const p=o(t);return[()=>p.matches,d=>(p.addEventListener("change",d),()=>{p.removeEventListener("change",d)})]},[s,o,t]);return Si(l,i,a)}function wi(t={}){const{themeId:e}=t;return function(n,r={}){let s=Ol();s&&e&&(s=s[e]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:p=!1}=$s({name:"MuiUseMediaQuery",props:r,theme:s});let d=typeof n=="function"?n(s):n;return d=d.replace(/^@media( ?)/m,""),d.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` `)),(Si!==void 0?ac:rc)(d,i,l,c,p)}}wi();function es(...t){return t.reduce((e,o)=>o==null?e:function(...r){e.apply(this,r),o.apply(this,r)},()=>{})}function Dn(t,e=166){let o;function n(...r){const s=()=>{t.apply(this,r)};clearTimeout(o),o=setTimeout(s,e)}return n.clear=()=>{clearTimeout(o)},n}function RS(t,e){return()=>null}function Mo(t,e){var o,n,r;return re(t)&&e.indexOf(t.type.muiName??((r=(n=(o=t.type)==null?void 0:o._payload)==null?void 0:n.value)==null?void 0:r.muiName))!==-1}function ie(t){return t&&t.ownerDocument||document}function $e(t){return ie(t).defaultView||window}function kS(t,e){return()=>null}function os(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function IS(t,e,o,n,r){return null}function Fe({controlled:t,default:e,name:o,state:n="value"}){const{current:r}=ct(t!==void 0),[s,a]=Ot(e),i=r?t:s,l=Qt(c=>{r||a(c)},[]);return[i,l]}function le(t){const e=ct(t);return Re(()=>{e.current=t}),ct((...o)=>(0,e.current)(...o)).current}function Jt(...t){const e=ct(void 0),o=Qt(n=>{const r=t.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,i=a(n);return typeof i=="function"?i:()=>{a(null)}}return s.current=n,()=>{s.current=null}});return()=>{r.forEach(s=>s==null?void 0:s())}},t);return Ce(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=o(n))},t)}const Ys={};function Pi(t,e){const o=ct(Ys);return o.current===Ys&&(o.current=t(e)),o}const ic=[];function lc(t){Lt(t,ic)}class Pr{static create(){return new Pr}currentId=null;start(e,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,o()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bo(){const t=Pi(Pr.create).current;return lc(t.disposeEffect),t}function lo(t){try{return t.matches(":focus-visible")}catch{}return!1}function $i(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}const Rs=t=>{const e=ct({});return Lt(()=>{e.current=t}),e.current};function Ri(t){return be.toArray(t).filter(e=>re(e))}const ki={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function cc(t){return typeof t=="string"}function Ii(t,e,o){return t===void 0||cc(t)?e:{...e,ownerState:{...e.ownerState,...o}}}function Uo(t,e=[]){if(t===void 0)return{};const o={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{o[n]=t[n]}),o}function Zs(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(o=>!(o.match(/^on[A-Z]/)&&typeof t[o]=="function")).forEach(o=>{e[o]=t[o]}),e}function Ti(t){const{getSlotProps:e,additionalProps:o,externalSlotProps:n,externalForwardedProps:r,className:s}=t;if(!e){const f=z(o==null?void 0:o.className,s,r==null?void 0:r.className,n==null?void 0:n.className),m={...o==null?void 0:o.style,...r==null?void 0:r.style,...n==null?void 0:n.style},b={...o,...r,...n};return f.length>0&&(b.className=f),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=Uo({...r,...n}),i=Zs(n),l=Zs(r),c=e(a),p=z(c==null?void 0:c.className,o==null?void 0:o.className,s,r==null?void 0:r.className,n==null?void 0:n.className),d={...c==null?void 0:c.style,...o==null?void 0:o.style,...r==null?void 0:r.style,...n==null?void 0:n.style},g={...c,...o,...l,...i};return p.length>0&&(g.className=p),Object.keys(d).length>0&&(g.style=d),{props:g,internalRef:c.ref}}function Mi(t,e,o){return typeof t=="function"?t(e,o):t}function Le(t){var d;const{elementType:e,externalSlotProps:o,ownerState:n,skipResolvingSlotProps:r=!1,...s}=t,a=r?{}:Mi(o,n),{props:i,internalRef:l}=Ti({...s,externalSlotProps:a}),c=Jt(l,a==null?void 0:a.ref,(d=t.additionalProps)==null?void 0:d.ref);return Ii(e,{...i,ref:c},n)}function yo(t){var e;return parseInt(tc,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const pc=ws(),dc=Ps("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,e[`maxWidth${A(String(o.maxWidth))}`],o.fixed&&e.fixed,o.disableGutters&&e.disableGutters]}}),uc=t=>wr({props:t,name:"MuiContainer",defaultTheme:pc}),fc=(t,e)=>{const o=l=>V(e,l),{classes:n,fixed:r,disableGutters:s,maxWidth:a}=t,i={root:["root",a&&`maxWidth${A(String(a))}`,r&&"fixed",s&&"disableGutters"]};return G(i,o,n)};function gc(t={}){const{createStyledComponent:e=dc,useThemeProps:o=uc,componentName:n="MuiContainer"}=t,r=e(({theme:a,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:i})=>i.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const p=c,d=a.breakpoints.values[p];return d!==0&&(l[a.breakpoints.up(p)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:i})=>({...i.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[a.breakpoints.up(i.maxWidth)]:{maxWidth:`${a.breakpoints.values[i.maxWidth]}${a.breakpoints.unit}`}}}));return F(function(i,l){const c=o(i),{className:p,component:d="div",disableGutters:g=!1,fixed:f=!1,maxWidth:m="lg",classes:b,...v}=c,h={...c,component:d,disableGutters:g,fixed:f,maxWidth:m},C=fc(h,n);return u.jsx(r,{as:d,ownerState:h,className:z(C.root,p),ref:l,...v})})}const mc=(t,e)=>t.filter(o=>e.includes(o)),cn=(t,e,o)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((r,s)=>{o((a,i)=>{s<=t.keys.length-1&&(s===0?Object.assign(a,i):a[t.up(t.keys[s])]=i)},r)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:mc(t.keys,Object.keys(e))).forEach(s=>{if(t.keys.includes(s)){const a=e[s];a!==void 0&&o((i,l)=>{n===s?Object.assign(i,l):i[t.up(s)]=l},a)}}):(typeof e=="number"||typeof e=="string")&&o((r,s)=>{Object.assign(r,s)},e)};function gr(t){return`--Grid-${t}Spacing`}function $r(t){return`--Grid-parent-${t}Spacing`}const Qs="--Grid-columns",on="--Grid-parent-columns",bc=({theme:t,ownerState:e})=>{const o={};return cn(t.breakpoints,e.size,(n,r)=>{let s={};r==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),r==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof r=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(${on}) - (var(${on}) - ${r}) * (var(${$r("column")}) / var(${on})))`}),n(o,s)}),o},vc=({theme:t,ownerState:e})=>{const o={};return cn(t.breakpoints,e.offset,(n,r)=>{let s={};r==="auto"&&(s={marginLeft:"auto"}),typeof r=="number"&&(s={marginLeft:r===0?"0px":`calc(100% * ${r} / var(${on}) + var(${$r("column")}) * ${r} / var(${on}))`}),n(o,s)}),o},hc=({theme:t,ownerState:e})=>{if(!e.container)return{};const o={[Qs]:12};return cn(t.breakpoints,e.columns,(n,r)=>{const s=r??12;n(o,{[Qs]:s,"> *":{[on]:s}})}),o},yc=({theme:t,ownerState:e})=>{if(!e.container)return{};const o={};return cn(t.breakpoints,e.rowSpacing,(n,r)=>{var a;const s=typeof r=="string"?r:(a=t.spacing)==null?void 0:a.call(t,r);n(o,{[gr("row")]:s,"> *":{[$r("row")]:s}})}),o},xc=({theme:t,ownerState:e})=>{if(!e.container)return{};const o={};return cn(t.breakpoints,e.columnSpacing,(n,r)=>{var a;const s=typeof r=="string"?r:(a=t.spacing)==null?void 0:a.call(t,r);n(o,{[gr("column")]:s,"> *":{[$r("column")]:s}})}),o},Cc=({theme:t,ownerState:e})=>{if(!e.container)return{};const o={};return cn(t.breakpoints,e.direction,(n,r)=>{n(o,{flexDirection:r})}),o},Sc=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${gr("row")}) var(${gr("column")})`}}),wc=t=>{const e=[];return Object.entries(t).forEach(([o,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${o}-${String(n)}`)}),e},Pc=(t,e="xs")=>{function o(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(o(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([r,s])=>{o(s)&&n.push(`spacing-${r}-${String(s)}`)}),n}return[]},$c=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,o])=>`direction-${e}-${o}`):[`direction-xs-${String(t)}`];function Rc(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(o=>{t[o]!==void 0&&delete t[o]})}const kc=ws(),Ic=Ps("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function Tc(t){return wr({props:t,name:"MuiGrid",defaultTheme:kc})}function Mc(t={}){const{createStyledComponent:e=Ic,useThemeProps:o=Tc,useTheme:n=Cs,componentName:r="MuiGrid"}=t,s=(c,p)=>{const{container:d,direction:g,spacing:f,wrap:m,size:b}=c,v={root:["root",d&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...$c(g),...wc(b),...d?Pc(f,p.breakpoints.keys[0]):[]]};return G(v,h=>V(r,h),{})};function a(c,p,d=()=>!0){const g={};return c===null||(Array.isArray(c)?c.forEach((f,m)=>{f!==null&&d(f)&&p.keys[m]&&(g[p.keys[m]]=f)}):typeof c=="object"?Object.keys(c).forEach(f=>{const m=c[f];m!=null&&d(m)&&(g[f]=m)}):g[p.keys[0]]=c),g}const i=e(hc,xc,yc,bc,Cc,Sc,vc),l=F(function(p,d){const g=n(),f=o(p),m=jn(f);Rc(m,g.breakpoints);const{className:b,children:v,columns:h=12,container:C=!1,component:x="div",direction:y="row",wrap:S="wrap",size:P={},offset:$={},spacing:k=0,rowSpacing:L=k,columnSpacing:I=k,unstable_level:E=0,...B}=m,w=a(P,g.breakpoints,U=>U!==!1),T=a($,g.breakpoints),O=p.columns??(E?void 0:h),M=p.spacing??(E?void 0:k),D=p.rowSpacing??p.spacing??(E?void 0:L),j=p.columnSpacing??p.spacing??(E?void 0:I),N={...m,level:E,columns:O,container:C,direction:y,wrap:S,spacing:M,rowSpacing:D,columnSpacing:j,size:w,offset:T},J=s(N,g);return u.jsx(i,{ref:d,as:x,ownerState:N,className:z(J.root,b),...B,children:be.map(v,U=>{var Pt;return re(U)&&Mo(U,["Grid"])&&C&&U.props.container?Ut(U,{unstable_level:((Pt=U.props)==null?void 0:Pt.unstable_level)??E+1}):U})})});return l.muiName="Grid",l}const Lc=ws(),Ac=Ps("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Bc(t){return wr({props:t,name:"MuiStack",defaultTheme:Lc})}function Oc(t,e){const o=be.toArray(t).filter(Boolean);return o.reduce((n,r,s)=>(n.push(r),s<o.length-1&&n.push(Ut(e,{key:`separator-${s}`})),n),[])}const Nc=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Ec=({ownerState:t,theme:e})=>{let o={display:"flex",flexDirection:"column",...Mn({theme:e},Wo({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=Nl(e),r=Object.keys(e.breakpoints.values).reduce((l,c)=>((typeof t.spacing=="object"&&t.spacing[c]!=null||typeof t.direction=="object"&&t.direction[c]!=null)&&(l[c]=!0),l),{}),s=Wo({values:t.direction,base:r}),a=Wo({values:t.spacing,base:r});typeof s=="object"&&Object.keys(s).forEach((l,c,p)=>{if(!s[l]){const g=c>0?s[p[c-1]]:"column";s[l]=g}}),o=En(o,Mn({theme:e},a,(l,c)=>t.useFlexGap?{gap:Ks(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Nc(c?s[c]:t.direction)}`]:Ks(n,l)}}))}return o=El(e.breakpoints,o),o};function zc(t={}){const{createStyledComponent:e=Ac,useThemeProps:o=Bc,componentName:n="MuiStack"}=t,r=()=>G({root:["root"]},l=>V(n,l),{}),s=e(Ec);return F(function(l,c){const p=o(l),d=jn(p),{component:g="div",direction:f="column",spacing:m=0,divider:b,children:v,className:h,useFlexGap:C=!1,...x}=d,y={direction:f,spacing:m,useFlexGap:C},S=r();return u.jsx(s,{as:g,ownerState:y,ref:c,className:z(S.root,h),...x,children:b?Oc(v,b):v})})}function TS(t){const{defaultProps:e={},mixins:o={},overrides:n={},palette:r={},props:s={},styleOverrides:a={},...i}=t,l={...i,components:{}};Object.keys(e).forEach(b=>{const v=l.components[b]||{};v.defaultProps=e[b],l.components[b]=v}),Object.keys(s).forEach(b=>{const v=l.components[b]||{};v.defaultProps=s[b],l.components[b]=v}),Object.keys(a).forEach(b=>{const v=l.components[b]||{};v.styleOverrides=a[b],l.components[b]=v}),Object.keys(n).forEach(b=>{const v=l.components[b]||{};v.styleOverrides=n[b],l.components[b]=v}),l.spacing=zl(t.spacing);const c=jl(t.breakpoints||{}),p=l.spacing;l.mixins={gutters:(b={})=>({paddingLeft:p(2),paddingRight:p(2),...b,[c.up("sm")]:{paddingLeft:p(3),paddingRight:p(3),...b[c.up("sm")]}}),...o};const{type:d,mode:g,...f}=r,m=g||d||"light";return l.palette={text:{hint:m==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:m,type:m,...f},l}function MS(t,...e){return bi(En({unstable_strictMode:!0},t),...e)}let Js=!1;function LS(t){return Js||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` `)),Js=!0),t}function ta(t){return String(parseFloat(t)).length===String(t).length}function Li(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Ro(t){return parseFloat(t)}function jc(t){return(e,o)=>{const n=Li(e);if(n===o)return e;let r=Ro(e);n!=="px"&&(n==="em"||n==="rem")&&(r=Ro(e)*Ro(t));let s=r;if(o!=="px")if(o==="em")s=r/Ro(t);else if(o==="rem")s=r/Ro(t);else return e;return parseFloat(s.toFixed(5))+o}}function Dc({size:t,grid:e}){const o=t-t%e,n=o+e;return t-o<n-t?o:n}function Fc({lineHeight:t,pixels:e,htmlFontSize:o}){return e/(t*o)}function Wc({cssProperty:t,min:e,max:o,unit:n="rem",breakpoints:r=[600,900,1200],transform:s=null}){const a={[t]:`${e}${n}`},i=(o-e)/r[r.length-1];return r.forEach(l=>{let c=e+i*l;s!==null&&(c=s(c)),a[`@media (min-width:${l}px)`]={[t]:`${Math.round(c*1e4)/1e4}${n}`}}),a}function AS(t,e={}){const{breakpoints:o=["sm","md","lg"],disableAlign:n=!1,factor:r=2,variants:s=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=e,a={...t};a.typography={...a.typography};const i=a.typography,l=jc(i.htmlFontSize),c=o.map(p=>a.breakpoints.values[p]);return s.forEach(p=>{const d=i[p];if(!d)return;const g=parseFloat(l(d.fontSize,"rem"));if(g<=1)return;const f=g,m=1+(f-1)/r;let{lineHeight:b}=d;if(!ta(b)&&!n)throw new Error(Ko(6));ta(b)||(b=parseFloat(l(b,"rem"))/parseFloat(g));let v=null;n||(v=h=>Dc({size:h,grid:Fc({pixels:4,lineHeight:b,htmlFontSize:i.htmlFontSize})})),i[p]={...d,...Wc({cssProperty:"fontSize",min:m,max:f,unit:"rem",breakpoints:c,transform:v})}}),a}function BS({props:t,name:e}){return wr({props:t,name:e,defaultTheme:vi,themeId:Sr})}function OS(){throw new Error(Ko(14))}function NS(){throw new Error(Ko(15))}function ES(){throw new Error(Ko(16))}let ea=!1;function zS(...t){return ea||(console.warn(["MUI: The `experimental_extendTheme` has been stabilized.","","You should use `import { extendTheme } from '@mui/material/styles'`"].join(` `)),ea=!0),Dl(...t)}function jS(){throw new Error(Ko(19))}function Uc(t){return u.jsx(Zl,{...t,defaultTheme:vi,themeId:Sr})}function ks(t){return function(o){return u.jsx(Uc,{styles:typeof t=="function"?n=>t({theme:n,...o}):t})}}function Hc(){return jn}function nn(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return r=>{const s=typeof e=="function"?e(r):e,a=typeof t=="function"?t({...r,...s}):t,i=z(r==null?void 0:r.className,s==null?void 0:s.className,a==null?void 0:a.className);return{...s,...a,...!!i&&{className:i},...(s==null?void 0:s.style)&&(a==null?void 0:a.style)&&{style:{...s.style,...a.style}},...(s==null?void 0:s.sx)&&(a==null?void 0:a.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const o=e,n=z(o==null?void 0:o.className,t==null?void 0:t.className);return{...e,...t,...!!n&&{className:n},...(o==null?void 0:o.style)&&(t==null?void 0:t.style)&&{style:{...o.style,...t.style}},...(o==null?void 0:o.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const DS={configure:t=>{hi.configure(t)}},Vc={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Gc={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},_c={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Kc={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},qc={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},Xc={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},Yc={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},Zc={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},Qc={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},Jc={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},tp={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},FS=Object.freeze(Object.defineProperty({__proto__:null,amber:Zc,blue:Fl,blueGrey:tp,brown:Jc,common:Wl,cyan:Kc,deepOrange:Qc,deepPurple:Gc,green:Ul,grey:Hl,indigo:_c,lightBlue:Vl,lightGreen:Xc,lime:Yc,orange:Gl,pink:Vc,purple:_l,red:Kl,teal:qc,yellow:Ql},Symbol.toStringTag,{value:"Module"})),oa={disabled:!1},mr=mo.createContext(null);var ep=function(e){return e.scrollTop},Sn="unmounted",Oo="exited",No="entering",Qo="entered",ns="exiting",Ue=(function(t){yi(e,t);function e(n,r){var s;s=t.call(this,n,r)||this;var a=r,i=a&&!a.isMounting?n.enter:n.appear,l;return s.appearStatus=null,n.in?i?(l=Oo,s.appearStatus=No):l=Qo:n.unmountOnExit||n.mountOnEnter?l=Sn:l=Oo,s.state={status:l},s.nextCallback=null,s}e.getDerivedStateFromProps=function(r,s){var a=r.in;return a&&s.status===Sn?{status:Oo}:null};var o=e.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(r){var s=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==No&&a!==Qo&&(s=No):(a===No||a===Qo)&&(s=ns)}this.updateStatus(!1,s)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var r=this.props.timeout,s,a,i;return s=a=i=r,r!=null&&typeof r!="number"&&(s=r.exit,a=r.enter,i=r.appear!==void 0?r.appear:a),{exit:s,enter:a,appear:i}},o.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===No){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this);a&&ep(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oo&&this.setState({status:Sn})},o.performEnter=function(r){var s=this,a=this.props.enter,i=this.context?this.context.isMounting:r,l=this.props.nodeRef?[i]:[Kn.findDOMNode(this),i],c=l[0],p=l[1],d=this.getTimeouts(),g=i?d.appear:d.enter;if(!r&&!a||oa.disabled){this.safeSetState({status:Qo},function(){s.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:No},function(){s.props.onEntering(c,p),s.onTransitionEnd(g,function(){s.safeSetState({status:Qo},function(){s.props.onEntered(c,p)})})})},o.performExit=function(){var r=this,s=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:Kn.findDOMNode(this);if(!s||oa.disabled){this.safeSetState({status:Oo},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:ns},function(){r.props.onExiting(i),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Oo},function(){r.props.onExited(i)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},o.setNextCallback=function(r){var s=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,s.nextCallback=null,r(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},o.onTransitionEnd=function(r,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],p=l[1];this.props.addEndListener(c,p)}r!=null&&setTimeout(this.nextCallback,r)},o.render=function(){var r=this.state.status;if(r===Sn)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var i=xi(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return mo.createElement(mr.Provider,{value:null},typeof a=="function"?a(r,i):mo.cloneElement(mo.Children.only(a),i))},e})(mo.Component);Ue.contextType=mr;Ue.propTypes={};function Yo(){}Ue.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yo,onEntering:Yo,onEntered:Yo,onExit:Yo,onExiting:Yo,onExited:Yo};Ue.UNMOUNTED=Sn;Ue.EXITED=Oo;Ue.ENTERING=No;Ue.ENTERED=Qo;Ue.EXITING=ns;function op(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Is(t,e){var o=function(s){return e&&re(s)?e(s):s},n=Object.create(null);return t&&be.map(t,function(r){return r}).forEach(function(r){n[r.key]=o(r)}),n}function np(t,e){t=t||{},e=e||{};function o(p){return p in e?e[p]:t[p]}var n=Object.create(null),r=[];for(var s in t)s in e?r.length&&(n[s]=r,r=[]):r.push(s);var a,i={};for(var l in e){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];i[n[l][a]]=o(c)}i[l]=o(l)}for(a=0;a<r.length;a++)i[r[a]]=o(r[a]);return i}function jo(t,e,o){return o[e]!=null?o[e]:t.props[e]}function rp(t,e){return Is(t.children,function(o){return Ut(o,{onExited:e.bind(null,o),in:!0,appear:jo(o,"appear",t),enter:jo(o,"enter",t),exit:jo(o,"exit",t)})})}function sp(t,e,o){var n=Is(t.children),r=np(e,n);return Object.keys(r).forEach(function(s){var a=r[s];if(re(a)){var i=s in e,l=s in n,c=e[s],p=re(c)&&!c.props.in;l&&(!i||p)?r[s]=Ut(a,{onExited:o.bind(null,a),in:!0,exit:jo(a,"exit",t),enter:jo(a,"enter",t)}):!l&&i&&!p?r[s]=Ut(a,{in:!1}):l&&i&&re(c)&&(r[s]=Ut(a,{onExited:o.bind(null,a),in:c.props.in,exit:jo(a,"exit",t),enter:jo(a,"enter",t)}))}}),r}var ap=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},ip={component:"div",childFactory:function(e){return e}},Ts=(function(t){yi(e,t);function e(n,r){var s;s=t.call(this,n,r)||this;var a=s.handleExited.bind(op(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var o=e.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(r,s){var a=s.children,i=s.handleExited,l=s.firstRender;return{children:l?rp(r,i):sp(r,a,i),firstRender:!1}},o.handleExited=function(r,s){var a=Is(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(i){var l=ql({},i.children);return delete l[r.key],{children:l}}))},o.render=function(){var r=this.props,s=r.component,a=r.childFactory,i=xi(r,["component","childFactory"]),l=this.state.contextValue,c=ap(this.state.children).map(a);return delete i.appear,delete i.enter,delete i.exit,s===null?mo.createElement(mr.Provider,{value:l},c):mo.createElement(mr.Provider,{value:l},mo.createElement(s,i,c))},e})(mo.Component);Ts.propTypes={};Ts.defaultProps=ip;const Rr=t=>t.scrollTop;function oo(t,e){const{timeout:o,easing:n,style:r={}}=t;return{duration:r.transitionDuration??(typeof o=="number"?o:o[e.mode]||0),easing:r.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:r.transitionDelay}}function lp(t){return V("MuiCollapse",t)}const WS=_("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),cp=t=>{const{orientation:e,classes:o}=t,n={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return G(n,lp,o)},pp=R("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,e[o.orientation],o.state==="entered"&&e.entered,o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&e.hidden]}})(W(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>e.state==="exited"&&!e.in&&e.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),dp=R("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),up=R("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ln=F(function(e,o){const n=X({props:e,name:"MuiCollapse"}),{addEndListener:r,children:s,className:a,collapsedSize:i="0px",component:l,easing:c,in:p,onEnter:d,onEntered:g,onEntering:f,onExit:m,onExited:b,onExiting:v,orientation:h="vertical",style:C,timeout:x=Xl.standard,TransitionComponent:y=Ue,...S}=n,P={...n,orientation:h,collapsedSize:i},$=cp(P),k=ve(),L=bo(),I=ct(null),E=ct(),B=typeof i=="number"?`${i}px`:i,w=h==="horizontal",T=w?"width":"height",O=ct(null),M=Jt(o,O),D=nt=>Y=>{if(nt){const at=O.current;Y===void 0?nt(at):nt(at,Y)}},j=()=>I.current?I.current[w?"clientWidth":"clientHeight"]:0,N=D((nt,Y)=>{I.current&&w&&(I.current.style.position="absolute"),nt.style[T]=B,d&&d(nt,Y)}),J=D((nt,Y)=>{const at=j();I.current&&w&&(I.current.style.position="");const{duration:pt,easing:st}=oo({style:C,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const gt=k.transitions.getAutoHeightDuration(at);nt.style.transitionDuration=`${gt}ms`,E.current=gt}else nt.style.transitionDuration=typeof pt=="string"?pt:`${pt}ms`;nt.style[T]=`${at}px`,nt.style.transitionTimingFunction=st,f&&f(nt,Y)}),U=D((nt,Y)=>{nt.style[T]="auto",g&&g(nt,Y)}),Pt=D(nt=>{nt.style[T]=`${j()}px`,m&&m(nt)}),ht=D(b),bt=D(nt=>{const Y=j(),{duration:at,easing:pt}=oo({style:C,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const st=k.transitions.getAutoHeightDuration(Y);nt.style.transitionDuration=`${st}ms`,E.current=st}else nt.style.transitionDuration=typeof at=="string"?at:`${at}ms`;nt.style[T]=B,nt.style.transitionTimingFunction=pt,v&&v(nt)}),et=nt=>{x==="auto"&&L.start(E.current||0,nt),r&&r(O.current,nt)};return u.jsx(y,{in:p,onEnter:N,onEntered:U,onEntering:J,onExit:Pt,onExited:ht,onExiting:bt,addEndListener:et,nodeRef:O,timeout:x==="auto"?null:x,...S,children:(nt,{ownerState:Y,...at})=>u.jsx(pp,{as:l,className:z($.root,a,{entered:$.entered,exited:!p&&B==="0px"&&$.hidden}[nt]),style:{[w?"minWidth":"minHeight"]:B,...C},ref:M,ownerState:{...P,state:nt},...at,children:u.jsx(dp,{ownerState:{...P,state:nt},className:$.wrapper,ref:I,children:u.jsx(up,{ownerState:{...P,state:nt},className:$.wrapperInner,children:s})})})})});Ln&&(Ln.muiSupportAuto=!0);function fp(t){return V("MuiPaper",t)}const US=_("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),gp=t=>{const{square:e,elevation:o,variant:n,classes:r}=t,s={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${o}`]};return G(s,fp,r)},mp=R("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,e[o.variant],!o.square&&e.rounded,o.variant==="elevation"&&e[`elevation${o.elevation}`]]}})(W(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Je=F(function(e,o){var f;const n=X({props:e,name:"MuiPaper"}),r=ve(),{className:s,component:a="div",elevation:i=1,square:l=!1,variant:c="elevation",...p}=n,d={...n,component:a,elevation:i,square:l,variant:c},g=gp(d);return u.jsx(mp,{as:a,ownerState:d,className:z(g.root,s),ref:o,...p,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[i],...r.vars&&{"--Paper-overlay":(f=r.vars.overlays)==null?void 0:f[i]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${It("#fff",qs(i))}, ${It("#fff",qs(i))})`}},...p.style}})}),Ai=Ae({});function Q(t,e){const{className:o,elementType:n,ownerState:r,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:i=!1,...l}=e,{component:c,slots:p={[t]:void 0},slotProps:d={[t]:void 0},...g}=s,f=p[t]||n,m=Mi(d[t],r),{props:{component:b,...v},internalRef:h}=Ti({className:o,...l,externalForwardedProps:t==="root"?g:void 0,externalSlotProps:m}),C=Jt(h,m==null?void 0:m.ref,e.ref),x=t==="root"?b||c:b,y=Ii(f,{...t==="root"&&!c&&!p[t]&&a,...t!=="root"&&!p[t]&&a,...v,...x&&!i&&{as:x},...x&&i&&{component:x},ref:C},r);return[f,y]}function bp(t){return V("MuiAccordion",t)}const qn=_("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),vp=t=>{const{classes:e,square:o,expanded:n,disabled:r,disableGutters:s}=t;return G({root:["root",!o&&"rounded",n&&"expanded",r&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},bp,e)},hp=R(Je,{name:"MuiAccordion",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[{[`& .${qn.region}`]:e.region},e.root,!o.square&&e.rounded,!o.disableGutters&&e.gutters]}})(W(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],e),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],e)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${qn.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${qn.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),W(({theme:t})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${qn.expanded}`]:{margin:"16px 0"}}}]}))),yp=R("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(t,e)=>e.heading})({all:"unset"}),HS=F(function(e,o){const n=X({props:e,name:"MuiAccordion"}),{children:r,className:s,defaultExpanded:a=!1,disabled:i=!1,disableGutters:l=!1,expanded:c,onChange:p,square:d=!1,slots:g={},slotProps:f={},TransitionComponent:m,TransitionProps:b,...v}=n,[h,C]=Fe({controlled:c,default:a,name:"Accordion",state:"expanded"}),x=Qt(j=>{C(!h),p&&p(j,!h)},[h,p,C]),[y,...S]=be.toArray(r),P=Ce(()=>({expanded:h,disabled:i,disableGutters:l,toggle:x}),[h,i,l,x]),$={...n,square:d,disabled:i,disableGutters:l,expanded:h},k=vp($),L={transition:m,...g},I={transition:b,...f},E={slots:L,slotProps:I},[B,w]=Q("root",{elementType:hp,externalForwardedProps:{...E,...v},className:z(k.root,s),shouldForwardComponentProp:!0,ownerState:$,ref:o,additionalProps:{square:d}}),[T,O]=Q("heading",{elementType:yp,externalForwardedProps:E,className:k.heading,ownerState:$}),[M,D]=Q("transition",{elementType:Ln,externalForwardedProps:E,ownerState:$});return u.jsxs(B,{...w,children:[u.jsx(T,{...O,children:u.jsx(Ai.Provider,{value:P,children:y})}),u.jsx(M,{in:h,timeout:"auto",...D,children:u.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:k.region,children:S})})]})});function xp(t){return V("MuiAccordionActions",t)}const VS=_("MuiAccordionActions",["root","spacing"]),Cp=t=>{const{classes:e,disableSpacing:o}=t;return G({root:["root",!o&&"spacing"]},xp,e)},Sp=R("div",{name:"MuiAccordionActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,!o.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",variants:[{props:t=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),GS=F(function(e,o){const n=X({props:e,name:"MuiAccordionActions"}),{className:r,disableSpacing:s=!1,...a}=n,i={...n,disableSpacing:s},l=Cp(i);return u.jsx(Sp,{className:z(l.root,r),ref:o,ownerState:i,...a})});function wp(t){return V("MuiAccordionDetails",t)}const _S=_("MuiAccordionDetails",["root"]),Pp=t=>{const{classes:e}=t;return G({root:["root"]},wp,e)},$p=R("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(t,e)=>e.root})(W(({theme:t})=>({padding:t.spacing(1,2,2)}))),KS=F(function(e,o){const n=X({props:e,name:"MuiAccordionDetails"}),{className:r,...s}=n,a=n,i=Pp(a);return u.jsx($p,{className:z(i.root,r),ref:o,ownerState:a,...s})});class br{static create(){return new br}static use(){const e=Pi(br.create).current,[o,n]=Ot(!1);return e.shouldMount=o,e.setShouldMount=n,Lt(e.mountEffect,[o]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=kp(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...e)})}stop(...e){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...e)})}pulsate(...e){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...e)})}}function Rp(){return br.use()}function kp(){let t,e;const o=new Promise((n,r)=>{t=n,e=r});return o.resolve=t,o.reject=e,o}function Ip(t){const{className:e,classes:o,pulsate:n=!1,rippleX:r,rippleY:s,rippleSize:a,in:i,onExited:l,timeout:c}=t,[p,d]=Ot(!1),g=z(e,o.ripple,o.rippleVisible,n&&o.ripplePulsate),f={width:a,height:a,top:-(a/2)+s,left:-(a/2)+r},m=z(o.child,p&&o.childLeaving,n&&o.childPulsate);return!i&&!p&&d(!0),Lt(()=>{if(!i&&l!=null){const b=setTimeout(l,c);return()=>{clearTimeout(b)}}},[l,i,c]),u.jsx("span",{className:g,style:f,children:u.jsx("span",{className:m})})}function qS(t){return V("MuiTouchRipple",t)}const _e=_("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rs=550,Tp=80,Mp=po` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `,Lp=po` 0% { opacity: 1; } 100% { opacity: 0; } `,Ap=po` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `,Bp=R("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Op=R(Ip,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${_e.rippleVisible} { opacity: 0.3; transform: scale(1); animation-name: ${Mp}; animation-duration: ${rs}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } &.${_e.ripplePulsate} { animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; } & .${_e.child} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${_e.childLeaving} { opacity: 0; animation-name: ${Lp}; animation-duration: ${rs}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } & .${_e.childPulsate} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${Ap}; animation-duration: 2500ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } `,Np=F(function(e,o){const n=X({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:a,...i}=n,[l,c]=Ot([]),p=ct(0),d=ct(null);Lt(()=>{d.current&&(d.current(),d.current=null)},[l]);const g=ct(!1),f=bo(),m=ct(null),b=ct(null),v=Qt(y=>{const{pulsate:S,rippleX:P,rippleY:$,rippleSize:k,cb:L}=y;c(I=>[...I,u.jsx(Op,{classes:{ripple:z(s.ripple,_e.ripple),rippleVisible:z(s.rippleVisible,_e.rippleVisible),ripplePulsate:z(s.ripplePulsate,_e.ripplePulsate),child:z(s.child,_e.child),childLeaving:z(s.childLeaving,_e.childLeaving),childPulsate:z(s.childPulsate,_e.childPulsate)},timeout:rs,pulsate:S,rippleX:P,rippleY:$,rippleSize:k},p.current)]),p.current+=1,d.current=L},[s]),h=Qt((y={},S={},P=()=>{})=>{const{pulsate:$=!1,center:k=r||S.pulsate,fakeElement:L=!1}=S;if((y==null?void 0:y.type)==="mousedown"&&g.current){g.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(g.current=!0);const I=L?null:b.current,E=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,w,T;if(k||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)B=Math.round(E.width/2),w=Math.round(E.height/2);else{const{clientX:O,clientY:M}=y.touches&&y.touches.length>0?y.touches[0]:y;B=Math.round(O-E.left),w=Math.round(M-E.top)}if(k)T=Math.sqrt((2*E.width**2+E.height**2)/3),T%2===0&&(T+=1);else{const O=Math.max(Math.abs((I?I.clientWidth:0)-B),B)*2+2,M=Math.max(Math.abs((I?I.clientHeight:0)-w),w)*2+2;T=Math.sqrt(O**2+M**2)}y!=null&&y.touches?m.current===null&&(m.current=()=>{v({pulsate:$,rippleX:B,rippleY:w,rippleSize:T,cb:P})},f.start(Tp,()=>{m.current&&(m.current(),m.current=null)})):v({pulsate:$,rippleX:B,rippleY:w,rippleSize:T,cb:P})},[r,v,f]),C=Qt(()=>{h({},{pulsate:!0})},[h]),x=Qt((y,S)=>{if(f.clear(),(y==null?void 0:y.type)==="touchend"&&m.current){m.current(),m.current=null,f.start(0,()=>{x(y,S)});return}m.current=null,c(P=>P.length>0?P.slice(1):P),d.current=S},[f]);return Lo(o,()=>({pulsate:C,start:h,stop:x}),[C,h,x]),u.jsx(Bp,{className:z(_e.root,s.root,a),ref:b,...i,children:u.jsx(Ts,{component:null,exit:!0,children:l})})});function Ep(t){return V("MuiButtonBase",t)}const zp=_("MuiButtonBase",["root","disabled","focusVisible"]),jp=t=>{const{disabled:e,focusVisible:o,focusVisibleClassName:n,classes:r}=t,a=G({root:["root",e&&"disabled",o&&"focusVisible"]},Ep,r);return o&&n&&(a.root+=` ${n}`),a},Dp=R("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zp.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Se=F(function(e,o){const n=X({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:a,className:i,component:l="button",disabled:c=!1,disableRipple:p=!1,disableTouchRipple:d=!1,focusRipple:g=!1,focusVisibleClassName:f,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:h,onDragLeave:C,onFocus:x,onFocusVisible:y,onKeyDown:S,onKeyUp:P,onMouseDown:$,onMouseLeave:k,onMouseUp:L,onTouchEnd:I,onTouchMove:E,onTouchStart:B,tabIndex:w=0,TouchRippleProps:T,touchRippleRef:O,type:M,...D}=n,j=ct(null),N=Rp(),J=Jt(N.ref,O),[U,Pt]=Ot(!1);c&&U&&Pt(!1),Lo(r,()=>({focusVisible:()=>{Pt(!0),j.current.focus()}}),[]);const ht=N.shouldMount&&!p&&!c;Lt(()=>{U&&g&&!p&&N.pulsate()},[p,g,U,N]);const bt=fo(N,"start",$,d),et=fo(N,"stop",h,d),nt=fo(N,"stop",C,d),Y=fo(N,"stop",L,d),at=fo(N,"stop",rt=>{U&&rt.preventDefault(),k&&k(rt)},d),pt=fo(N,"start",B,d),st=fo(N,"stop",I,d),gt=fo(N,"stop",E,d),Z=fo(N,"stop",rt=>{lo(rt.target)||Pt(!1),b&&b(rt)},!1),dt=le(rt=>{j.current||(j.current=rt.currentTarget),lo(rt.target)&&(Pt(!0),y&&y(rt)),x&&x(rt)}),it=()=>{const rt=j.current;return l&&l!=="button"&&!(rt.tagName==="A"&&rt.href)},yt=le(rt=>{g&&!rt.repeat&&U&&rt.key===" "&&N.stop(rt,()=>{N.start(rt)}),rt.target===rt.currentTarget&&it()&&rt.key===" "&&rt.preventDefault(),S&&S(rt),rt.target===rt.currentTarget&&it()&&rt.key==="Enter"&&!c&&(rt.preventDefault(),v&&v(rt))}),At=le(rt=>{g&&rt.key===" "&&U&&!rt.defaultPrevented&&N.stop(rt,()=>{N.pulsate(rt)}),P&&P(rt),v&&rt.target===rt.currentTarget&&it()&&rt.key===" "&&!rt.defaultPrevented&&v(rt)});let tt=l;tt==="button"&&(D.href||D.to)&&(tt=m);const ot={};tt==="button"?(ot.type=M===void 0?"button":M,ot.disabled=c):(!D.href&&!D.to&&(ot.role="button"),c&&(ot["aria-disabled"]=c));const ut=Jt(o,j),wt={...n,centerRipple:s,component:l,disabled:c,disableRipple:p,disableTouchRipple:d,focusRipple:g,tabIndex:w,focusVisible:U},mt=jp(wt);return u.jsxs(Dp,{as:tt,className:z(mt.root,i),ownerState:wt,onBlur:Z,onClick:v,onContextMenu:et,onFocus:dt,onKeyDown:yt,onKeyUp:At,onMouseDown:bt,onMouseLeave:at,onMouseUp:Y,onDragLeave:nt,onTouchEnd:st,onTouchMove:gt,onTouchStart:pt,ref:ut,tabIndex:c?-1:w,type:M,...ot,...D,children:[a,ht?u.jsx(Np,{ref:J,center:s,...T}):null]})});function fo(t,e,o,n=!1){return le(r=>(o&&o(r),n||t[e](r),!0))}function Fp(t){return V("MuiAccordionSummary",t)}const tn=_("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Wp=t=>{const{classes:e,expanded:o,disabled:n,disableGutters:r}=t;return G({root:["root",o&&"expanded",n&&"disabled",!r&&"gutters"],focusVisible:["focusVisible"],content:["content",o&&"expanded",!r&&"contentGutters"],expandIconWrapper:["expandIconWrapper",o&&"expanded"]},Fp,e)},Up=R(Se,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(t,e)=>e.root})(W(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],e),[`&.${tn.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${tn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${tn.disabled})`]:{cursor:"pointer"},variants:[{props:o=>!o.disableGutters,style:{[`&.${tn.expanded}`]:{minHeight:64}}}]}})),Hp=R("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(t,e)=>e.content})(W(({theme:t})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${tn.expanded}`]:{margin:"20px 0"}}}]}))),Vp=R("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(t,e)=>e.expandIconWrapper})(W(({theme:t})=>({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${tn.expanded}`]:{transform:"rotate(180deg)"}}))),XS=F(function(e,o){const n=X({props:e,name:"MuiAccordionSummary"}),{children:r,className:s,expandIcon:a,focusVisibleClassName:i,onClick:l,slots:c,slotProps:p,...d}=n,{disabled:g=!1,disableGutters:f,expanded:m,toggle:b}=Zt(Ai),v=I=>{b&&b(I),l&&l(I)},h={...n,expanded:m,disabled:g,disableGutters:f},C=Wp(h),x={slots:c,slotProps:p},[y,S]=Q("root",{ref:o,shouldForwardComponentProp:!0,className:z(C.root,s),elementType:Up,externalForwardedProps:{...x,...d},ownerState:h,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:g,"aria-expanded":m,focusVisibleClassName:z(C.focusVisible,i)},getSlotProps:I=>({...I,onClick:E=>{var B;(B=I.onClick)==null||B.call(I,E),v(E)}})}),[P,$]=Q("content",{className:C.content,elementType:Hp,externalForwardedProps:x,ownerState:h}),[k,L]=Q("expandIconWrapper",{className:C.expandIconWrapper,elementType:Vp,externalForwardedProps:x,ownerState:h});return u.jsxs(y,{...S,children:[u.jsx(P,{...$,children:r}),a&&u.jsx(k,{...L,children:a})]})});function Gp(t){return typeof t.main=="string"}function _p(t,e=[]){if(!Gp(t))return!1;for(const o of e)if(!t.hasOwnProperty(o)||typeof t[o]!="string")return!1;return!0}function Wt(t=[]){return([,e])=>e&&_p(e,t)}function Kp(t){return V("MuiAlert",t)}c