iobroker.vis-2
Version:
Next generation graphical user interface for ioBroker.
9 lines (5 loc) • 24.7 kB
JavaScript
import{i as G}from"./iobroker_vis__loadShare__react__loadShare__-CBSDylZ8.js";import{n as E,p as Se,o as N,l as Ce,f as ke,q as oe,t as Ae,u as ie,s as se,v as m,w as b,x as W,y as j,z as R,A as we,B as ve,D as Be,E as xe,F as Te,G as $e,a as Ie,g as _e,j as K,c as Oe,d as U,b as De}from"./createStyled-KRzCdWth.js";import"./iobroker_vis__loadShare__prop_mf_2_types__loadShare__-IJSryeM_.js";import{i as X}from"./iobroker_vis__loadShare___mf_0_mui_mf_1_system__loadShare__-DH7sF_c4.js";const ze="$$material",H={black:"#000",white:"#fff"},Fe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},D={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},z={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},L={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},F={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},P={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},V={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function le(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:H.white,default:H.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Pe=le();function ce(){return{text:{primary:H.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:H.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Z=ce();function ee(t,a,n,s){const i=s.light||s,o=s.dark||s*1.5;t[a]||(t.hasOwnProperty(n)?t[a]=t[n]:a==="light"?t.light=Ce(t.main,i):a==="dark"&&(t.dark=ke(t.main,o)))}function Ve(t="light"){return t==="dark"?{main:F[200],light:F[50],dark:F[400]}:{main:F[700],light:F[400],dark:F[800]}}function Ee(t="light"){return t==="dark"?{main:D[200],light:D[50],dark:D[400]}:{main:D[500],light:D[300],dark:D[700]}}function Le(t="light"){return t==="dark"?{main:z[500],light:z[300],dark:z[700]}:{main:z[700],light:z[400],dark:z[800]}}function Re(t="light"){return t==="dark"?{main:P[400],light:P[300],dark:P[700]}:{main:P[700],light:P[500],dark:P[900]}}function Me(t="light"){return t==="dark"?{main:V[400],light:V[300],dark:V[700]}:{main:V[800],light:V[500],dark:V[900]}}function He(t="light"){return t==="dark"?{main:L[400],light:L[300],dark:L[700]}:{main:"#ed6c02",light:L[500],dark:L[900]}}function Y(t){const{mode:a="light",contrastThreshold:n=3,tonalOffset:s=.2,...i}=t,o=t.primary||Ve(a),f=t.secondary||Ee(a),d=t.error||Le(a),A=t.info||Re(a),c=t.success||Me(a),C=t.warning||He(a);function g(u){return Se(u,Z.text.primary)>=n?Z.text.primary:Pe.text.primary}const h=({color:u,name:v,mainShade:w=500,lightShade:I=300,darkShade:_=700})=>{if(u={...u},!u.main&&u[w]&&(u.main=u[w]),!u.hasOwnProperty("main"))throw new Error(N(11,v?` (${v})`:"",w));if(typeof u.main!="string")throw new Error(N(12,v?` (${v})`:"",JSON.stringify(u.main)));return ee(u,"light",I,s),ee(u,"dark",_,s),u.contrastText||(u.contrastText=g(u.main)),u};let B;return a==="light"?B=le():a==="dark"&&(B=ce()),E({common:{...H},mode:a,primary:h({color:o,name:"primary"}),secondary:h({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:d,name:"error"}),warning:h({color:C,name:"warning"}),info:h({color:A,name:"info"}),success:h({color:c,name:"success"}),grey:Fe,contrastThreshold:n,getContrastText:g,augmentColor:h,tonalOffset:s,...B},i)}function We(t){const a={};return Object.entries(t).forEach(s=>{const[i,o]=s;typeof o=="object"&&(a[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),a}function je(t,a){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...a}}function Ge(t){return Math.round(t*1e5)/1e5}const te={textTransform:"uppercase"},re='"Roboto", "Helvetica", "Arial", sans-serif';function Ne(t,a){const{fontFamily:n=re,fontSize:s=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:f=500,fontWeightBold:d=700,htmlFontSize:A=16,allVariants:c,pxToRem:C,...g}=typeof a=="function"?a(t):a,h=s/14,B=C||(v=>`${v/A*h}rem`),p=(v,w,I,_,S)=>({fontFamily:n,fontWeight:v,fontSize:B(w),lineHeight:I,...n===re?{letterSpacing:`${Ge(_/w)}em`}:{},...S,...c}),u={h1:p(i,96,1.167,-1.5),h2:p(i,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(f,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(f,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(f,14,1.75,.4,te),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,te),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return E({htmlFontSize:A,pxToRem:B,fontFamily:n,fontSize:s,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:f,fontWeightBold:d,...u},g,{clone:!1})}const Ue=.2,qe=.14,Je=.12;function y(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Ue})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${qe})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Je})`].join(",")}const Ke=["none",y(0,2,1,-1,0,1,1,0,0,1,3,0),y(0,3,1,-2,0,2,2,0,0,1,5,0),y(0,3,3,-2,0,3,4,0,0,1,8,0),y(0,2,4,-1,0,4,5,0,0,1,10,0),y(0,3,5,-1,0,5,8,0,0,1,14,0),y(0,3,5,-1,0,6,10,0,0,1,18,0),y(0,4,5,-2,0,7,10,1,0,2,16,1),y(0,5,5,-3,0,8,10,1,0,3,14,2),y(0,5,6,-3,0,9,12,1,0,3,16,2),y(0,6,6,-3,0,10,14,1,0,4,18,3),y(0,6,7,-4,0,11,15,1,0,4,20,3),y(0,7,8,-4,0,12,17,2,0,5,22,4),y(0,7,8,-4,0,13,19,2,0,5,24,4),y(0,7,9,-4,0,14,21,2,0,5,26,4),y(0,8,9,-5,0,15,22,2,0,6,28,5),y(0,8,10,-5,0,16,24,2,0,6,30,5),y(0,8,11,-5,0,17,26,2,0,6,32,5),y(0,9,11,-5,0,18,28,2,0,7,34,6),y(0,9,12,-6,0,19,29,2,0,7,36,6),y(0,10,13,-6,0,20,31,3,0,8,38,7),y(0,10,13,-6,0,21,33,3,0,8,40,7),y(0,10,14,-6,0,22,35,3,0,8,42,7),y(0,11,14,-7,0,23,36,3,0,9,44,8),y(0,11,15,-7,0,24,38,3,0,9,46,8)],Qe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Xe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ae(t){return`${Math.round(t)}ms`}function Ye(t){if(!t)return 0;const a=t/36;return Math.min(Math.round((4+15*a**.25+a/5)*10),3e3)}function Ze(t){const a={...Qe,...t.easing},n={...Xe,...t.duration};return{getAutoHeightDuration:Ye,create:(i=["all"],o={})=>{const{duration:f=n.standard,easing:d=a.easeInOut,delay:A=0,...c}=o;return(Array.isArray(i)?i:[i]).map(C=>`${C} ${typeof f=="string"?f:ae(f)} ${d} ${typeof A=="string"?A:ae(A)}`).join(",")},...t,easing:a,duration:n}}const et={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function tt(t){return oe(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function de(t={}){const a={...t};function n(s){const i=Object.entries(s);for(let o=0;o<i.length;o++){const[f,d]=i[o];!tt(d)||f.startsWith("unstable_")?delete s[f]:oe(d)&&(s[f]={...d},n(s[f]))}}return n(a),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
const theme = ${JSON.stringify(a,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
export default theme;`}function q(t={},...a){const{breakpoints:n,mixins:s={},spacing:i,palette:o={},transitions:f={},typography:d={},shape:A,...c}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(N(20));const C=Y(o),g=Ae(t);let h=E(g,{mixins:je(g.breakpoints,s),palette:C,shadows:Ke.slice(),typography:Ne(C,d),transitions:Ze(f),zIndex:{...et}});return h=E(h,c),h=a.reduce((B,p)=>E(B,p),h),h.unstable_sxConfig={...ie,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(p){return se({sx:p,theme:this})},h.toRuntimeSource=de,h}function xt(...t){return q(...t)}function rt(t){let a;return t<1?a=5.11916*t**2:a=4.5*Math.log(t+1)+2,Math.round(a*10)/1e3}const at=[...Array(25)].map((t,a)=>{if(a===0)return"none";const n=rt(a);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function fe(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function ge(t){return t==="dark"?at:[]}function nt(t){const{palette:a={mode:"light"},opacity:n,overlays:s,...i}=t,o=Y(a);return{palette:o,opacity:{...fe(o.mode),...n},overlays:s||ge(o.mode),...i}}function ot(t){var a;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((a=t[1])!=null&&a.match(/(mode|contrastThreshold|tonalOffset)/))}const it=t=>[...[...Array(25)].map((a,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],st=t=>(a,n)=>{const s=t.rootSelector||":root",i=t.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),t.defaultColorScheme===a){if(a==="dark"){const f={};return it(t.cssVarPrefix).forEach(d=>{f[d]=n[d],delete n[d]}),o==="media"?{[s]:n,"@media (prefers-color-scheme: dark)":{[s]:f}}:o?{[o.replace("%s",a)]:f,[`${s}, ${o.replace("%s",a)}`]:n}:{[s]:{...n,...f}}}if(o&&o!=="media")return`${s}, ${o.replace("%s",String(a))}`}else if(a){if(o==="media")return{[`@media (prefers-color-scheme: ${String(a)})`]:{[s]:n}};if(o)return o.replace("%s",String(a))}return s};function lt(t,a){a.forEach(n=>{t[n]||(t[n]={})})}function r(t,a,n){!t[a]&&n&&(t[a]=n)}function M(t){return typeof t!="string"||!t.startsWith("hsl")?t:xe(t)}function $(t,a){`${a}Channel`in t||(t[`${a}Channel`]=R(M(t[a])))}function ct(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const T=t=>{try{return t()}catch{}},dt=(t="mui")=>X.unstable_createGetCssVar(t);function J(t,a,n,s){if(!a)return;a=a===!0?{}:a;const i=s==="dark"?"dark":"light";if(!n){t[s]=nt({...a,palette:{mode:i,...a==null?void 0:a.palette}});return}const{palette:o,...f}=q({...n,palette:{mode:i,...a==null?void 0:a.palette}});return t[s]={...a,palette:o,opacity:{...fe(i),...a==null?void 0:a.opacity},overlays:(a==null?void 0:a.overlays)||ge(i)},f}function ft(t={},...a){const{colorSchemes:n={light:!0},defaultColorScheme:s,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:f=ot,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:A=":root",...c}=t,C=Object.keys(n)[0],g=s||(n.light&&C!=="light"?"light":C),h=dt(o),{[g]:B,light:p,dark:u,...v}=n,w={...v};let I=B;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(I=!0),!I)throw new Error(N(21,g));const _=J(w,I,c,g);p&&!w.light&&J(w,p,void 0,"light"),u&&!w.dark&&J(w,u,void 0,"dark");let S={defaultColorScheme:g,..._,cssVarPrefix:o,colorSchemeSelector:d,rootSelector:A,getCssVar:h,colorSchemes:w,font:{...We(_.typography),..._.font},spacing:ct(c.spacing)};Object.keys(S.colorSchemes).forEach(O=>{const e=S.colorSchemes[O].palette,l=k=>{const x=k.split("-"),be=x[1],ye=x[2];return h(k,e[be][ye])};if(e.mode==="light"&&(r(e.common,"background","#fff"),r(e.common,"onBackground","#000")),e.mode==="dark"&&(r(e.common,"background","#000"),r(e.common,"onBackground","#fff")),lt(e,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),e.mode==="light"){r(e.Alert,"errorColor",m(e.error.light,.6)),r(e.Alert,"infoColor",m(e.info.light,.6)),r(e.Alert,"successColor",m(e.success.light,.6)),r(e.Alert,"warningColor",m(e.warning.light,.6)),r(e.Alert,"errorFilledBg",l("palette-error-main")),r(e.Alert,"infoFilledBg",l("palette-info-main")),r(e.Alert,"successFilledBg",l("palette-success-main")),r(e.Alert,"warningFilledBg",l("palette-warning-main")),r(e.Alert,"errorFilledColor",T(()=>e.getContrastText(e.error.main))),r(e.Alert,"infoFilledColor",T(()=>e.getContrastText(e.info.main))),r(e.Alert,"successFilledColor",T(()=>e.getContrastText(e.success.main))),r(e.Alert,"warningFilledColor",T(()=>e.getContrastText(e.warning.main))),r(e.Alert,"errorStandardBg",b(e.error.light,.9)),r(e.Alert,"infoStandardBg",b(e.info.light,.9)),r(e.Alert,"successStandardBg",b(e.success.light,.9)),r(e.Alert,"warningStandardBg",b(e.warning.light,.9)),r(e.Alert,"errorIconColor",l("palette-error-main")),r(e.Alert,"infoIconColor",l("palette-info-main")),r(e.Alert,"successIconColor",l("palette-success-main")),r(e.Alert,"warningIconColor",l("palette-warning-main")),r(e.AppBar,"defaultBg",l("palette-grey-100")),r(e.Avatar,"defaultBg",l("palette-grey-400")),r(e.Button,"inheritContainedBg",l("palette-grey-300")),r(e.Button,"inheritContainedHoverBg",l("palette-grey-A100")),r(e.Chip,"defaultBorder",l("palette-grey-400")),r(e.Chip,"defaultAvatarColor",l("palette-grey-700")),r(e.Chip,"defaultIconColor",l("palette-grey-700")),r(e.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),r(e.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),r(e.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),r(e.LinearProgress,"primaryBg",b(e.primary.main,.62)),r(e.LinearProgress,"secondaryBg",b(e.secondary.main,.62)),r(e.LinearProgress,"errorBg",b(e.error.main,.62)),r(e.LinearProgress,"infoBg",b(e.info.main,.62)),r(e.LinearProgress,"successBg",b(e.success.main,.62)),r(e.LinearProgress,"warningBg",b(e.warning.main,.62)),r(e.Skeleton,"bg",`rgba(${l("palette-text-primaryChannel")} / 0.11)`),r(e.Slider,"primaryTrack",b(e.primary.main,.62)),r(e.Slider,"secondaryTrack",b(e.secondary.main,.62)),r(e.Slider,"errorTrack",b(e.error.main,.62)),r(e.Slider,"infoTrack",b(e.info.main,.62)),r(e.Slider,"successTrack",b(e.success.main,.62)),r(e.Slider,"warningTrack",b(e.warning.main,.62));const k=W(e.background.default,.8);r(e.SnackbarContent,"bg",k),r(e.SnackbarContent,"color",T(()=>e.getContrastText(k))),r(e.SpeedDialAction,"fabHoverBg",W(e.background.paper,.15)),r(e.StepConnector,"border",l("palette-grey-400")),r(e.StepContent,"border",l("palette-grey-400")),r(e.Switch,"defaultColor",l("palette-common-white")),r(e.Switch,"defaultDisabledColor",l("palette-grey-100")),r(e.Switch,"primaryDisabledColor",b(e.primary.main,.62)),r(e.Switch,"secondaryDisabledColor",b(e.secondary.main,.62)),r(e.Switch,"errorDisabledColor",b(e.error.main,.62)),r(e.Switch,"infoDisabledColor",b(e.info.main,.62)),r(e.Switch,"successDisabledColor",b(e.success.main,.62)),r(e.Switch,"warningDisabledColor",b(e.warning.main,.62)),r(e.TableCell,"border",b(j(e.divider,1),.88)),r(e.Tooltip,"bg",j(e.grey[700],.92))}if(e.mode==="dark"){r(e.Alert,"errorColor",b(e.error.light,.6)),r(e.Alert,"infoColor",b(e.info.light,.6)),r(e.Alert,"successColor",b(e.success.light,.6)),r(e.Alert,"warningColor",b(e.warning.light,.6)),r(e.Alert,"errorFilledBg",l("palette-error-dark")),r(e.Alert,"infoFilledBg",l("palette-info-dark")),r(e.Alert,"successFilledBg",l("palette-success-dark")),r(e.Alert,"warningFilledBg",l("palette-warning-dark")),r(e.Alert,"errorFilledColor",T(()=>e.getContrastText(e.error.dark))),r(e.Alert,"infoFilledColor",T(()=>e.getContrastText(e.info.dark))),r(e.Alert,"successFilledColor",T(()=>e.getContrastText(e.success.dark))),r(e.Alert,"warningFilledColor",T(()=>e.getContrastText(e.warning.dark))),r(e.Alert,"errorStandardBg",m(e.error.light,.9)),r(e.Alert,"infoStandardBg",m(e.info.light,.9)),r(e.Alert,"successStandardBg",m(e.success.light,.9)),r(e.Alert,"warningStandardBg",m(e.warning.light,.9)),r(e.Alert,"errorIconColor",l("palette-error-main")),r(e.Alert,"infoIconColor",l("palette-info-main")),r(e.Alert,"successIconColor",l("palette-success-main")),r(e.Alert,"warningIconColor",l("palette-warning-main")),r(e.AppBar,"defaultBg",l("palette-grey-900")),r(e.AppBar,"darkBg",l("palette-background-paper")),r(e.AppBar,"darkColor",l("palette-text-primary")),r(e.Avatar,"defaultBg",l("palette-grey-600")),r(e.Button,"inheritContainedBg",l("palette-grey-800")),r(e.Button,"inheritContainedHoverBg",l("palette-grey-700")),r(e.Chip,"defaultBorder",l("palette-grey-700")),r(e.Chip,"defaultAvatarColor",l("palette-grey-300")),r(e.Chip,"defaultIconColor",l("palette-grey-300")),r(e.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),r(e.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),r(e.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),r(e.LinearProgress,"primaryBg",m(e.primary.main,.5)),r(e.LinearProgress,"secondaryBg",m(e.secondary.main,.5)),r(e.LinearProgress,"errorBg",m(e.error.main,.5)),r(e.LinearProgress,"infoBg",m(e.info.main,.5)),r(e.LinearProgress,"successBg",m(e.success.main,.5)),r(e.LinearProgress,"warningBg",m(e.warning.main,.5)),r(e.Skeleton,"bg",`rgba(${l("palette-text-primaryChannel")} / 0.13)`),r(e.Slider,"primaryTrack",m(e.primary.main,.5)),r(e.Slider,"secondaryTrack",m(e.secondary.main,.5)),r(e.Slider,"errorTrack",m(e.error.main,.5)),r(e.Slider,"infoTrack",m(e.info.main,.5)),r(e.Slider,"successTrack",m(e.success.main,.5)),r(e.Slider,"warningTrack",m(e.warning.main,.5));const k=W(e.background.default,.98);r(e.SnackbarContent,"bg",k),r(e.SnackbarContent,"color",T(()=>e.getContrastText(k))),r(e.SpeedDialAction,"fabHoverBg",W(e.background.paper,.15)),r(e.StepConnector,"border",l("palette-grey-600")),r(e.StepContent,"border",l("palette-grey-600")),r(e.Switch,"defaultColor",l("palette-grey-300")),r(e.Switch,"defaultDisabledColor",l("palette-grey-600")),r(e.Switch,"primaryDisabledColor",m(e.primary.main,.55)),r(e.Switch,"secondaryDisabledColor",m(e.secondary.main,.55)),r(e.Switch,"errorDisabledColor",m(e.error.main,.55)),r(e.Switch,"infoDisabledColor",m(e.info.main,.55)),r(e.Switch,"successDisabledColor",m(e.success.main,.55)),r(e.Switch,"warningDisabledColor",m(e.warning.main,.55)),r(e.TableCell,"border",m(j(e.divider,1),.68)),r(e.Tooltip,"bg",j(e.grey[700],.92))}$(e.background,"default"),$(e.background,"paper"),$(e.common,"background"),$(e.common,"onBackground"),$(e,"divider"),Object.keys(e).forEach(k=>{const x=e[k];k!=="tonalOffset"&&x&&typeof x=="object"&&(x.main&&r(e[k],"mainChannel",R(M(x.main))),x.light&&r(e[k],"lightChannel",R(M(x.light))),x.dark&&r(e[k],"darkChannel",R(M(x.dark))),x.contrastText&&r(e[k],"contrastTextChannel",R(M(x.contrastText))),k==="text"&&($(e[k],"primary"),$(e[k],"secondary")),k==="action"&&(x.active&&$(e[k],"active"),x.selected&&$(e[k],"selected")))})}),S=a.reduce((O,e)=>E(O,e),S);const ue={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:f,getSelector:st(S)},{vars:pe,generateThemeVars:he,generateStyleSheets:me}=we(S,ue);return S.vars=pe,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([O,e])=>{S[O]=e}),S.generateThemeVars=he,S.generateStyleSheets=me,S.generateSpacing=function(){return X.createSpacing(c.spacing,ve(this))},S.getColorSchemeSelector=Be(d),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=f,S.unstable_sxConfig={...ie,...c==null?void 0:c.unstable_sxConfig},S.unstable_sx=function(e){return se({sx:e,theme:this})},S.toRuntimeSource=de,S}function ne(t,a,n){t.colorSchemes&&n&&(t.colorSchemes[a]={...n!==!0&&n,palette:Y({...n===!0?{}:n.palette,mode:a})})}function gt(t={},...a){const{palette:n,cssVariables:s=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n==null?void 0:n.mode,...f}=t,d=o||"light",A=i==null?void 0:i[d],c={...i,...n?{[d]:{...typeof A!="boolean"&&A,palette:n}}:void 0};if(s===!1){if(!("colorSchemes"in t))return q(t,...a);let C=n;"palette"in t||c[d]&&(c[d]!==!0?C=c[d].palette:d==="dark"&&(C={mode:"dark"}));const g=q({...t,palette:C},...a);return g.defaultColorScheme=d,g.colorSchemes=c,g.palette.mode==="light"&&(g.colorSchemes.light={...c.light!==!0&&c.light,palette:g.palette},ne(g,"dark",c.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:g.palette},ne(g,"light",c.light)),g}return!n&&!("light"in c)&&d==="light"&&(c.light=!0),ft({...f,colorSchemes:c,defaultColorScheme:d,...typeof s!="boolean"&&s},...a)}const ut=gt();function pt(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const ht=t=>pt(t)&&t!=="classes",mt=Te({themeId:ze,defaultTheme:ut,rootShouldForwardProp:ht}),bt=X.unstable_memoTheme;function yt(t){return $e(t)}function St(t){return _e("MuiSvgIcon",t)}const Tt=Ie("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),Ct=t=>{const{color:a,fontSize:n,classes:s}=t,i={root:["root",a!=="inherit"&&`color${U(a)}`,`fontSize${U(n)}`]};return De(i,St,s)},kt=mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:n}=t;return[a.root,n.color!=="inherit"&&a[`color${U(n.color)}`],a[`fontSize${U(n.fontSize)}`]]}})(bt(({theme:t})=>{var a,n,s,i,o,f,d,A,c,C,g,h,B,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(a=t.transitions)==null?void 0:a.create)==null?void 0:i.call(a,"fill",{duration:(s=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:s.shorter}),variants:[{props:u=>!u.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((f=(o=t.typography)==null?void 0:o.pxToRem)==null?void 0:f.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((A=(d=t.typography)==null?void 0:d.pxToRem)==null?void 0:A.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((C=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:C.call(c,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,u])=>u&&u.main).map(([u])=>{var v,w;return{props:{color:u},style:{color:(w=(v=(t.vars??t).palette)==null?void 0:v[u])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(h=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(p=(B=(t.vars??t).palette)==null?void 0:B.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Q=G.forwardRef(function(a,n){const s=yt({props:a,name:"MuiSvgIcon"}),{children:i,className:o,color:f="inherit",component:d="svg",fontSize:A="medium",htmlColor:c,inheritViewBox:C=!1,titleAccess:g,viewBox:h="0 0 24 24",...B}=s,p=G.isValidElement(i)&&i.type==="svg",u={...s,color:f,component:d,fontSize:A,instanceFontSize:a.fontSize,inheritViewBox:C,viewBox:h,hasSvgAsChild:p},v={};C||(v.viewBox=h);const w=Ct(u);return K.jsxs(kt,{as:d,className:Oe(w.root,o),focusable:"false",color:c,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...v,...B,...p&&i.props,ownerState:u,children:[p?i.props.children:i,g?K.jsx("title",{children:g}):null]})});Q.muiName="SvgIcon";function $t(t,a){function n(s,i){return K.jsx(Q,{"data-testid":`${a}Icon`,ref:i,...s,children:t})}return n.muiName=Q.muiName,G.memo(G.forwardRef(n))}export{je as A,it as B,ut as C,Q as S,ze as T,mt as a,F as b,$t as c,H as d,V as e,Fe as f,St as g,z as h,gt as i,pt as j,xt as k,P as l,bt as m,Ze as n,L as o,D as p,Xe as q,ht as r,Tt as s,Qe as t,yt as u,nt as v,ft as w,rt as x,ot as y,Ne as z};