28 lines
52 KiB
JavaScript
28 lines
52 KiB
JavaScript
|
|
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54871,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(47167);var o=e.i(7670),n=e.i(95669),i=e.i(40799),a=e.i(75149),l=e.i(94425),s=e.i(42196),u=e.i(35057),d=e.i(67719),c=e.i(98051),p=e.i(95761);function f(e){return(0,p.default)("MuiAppBar",e)}(0,c.default)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);let m=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,h=(0,i.styled)(d.default,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${(0,s.default)(r.position)}`],t[`color${(0,s.default)(r.color)}`]]}})((0,a.default)(({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"}},{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((0,u.default)(["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=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?m(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?m(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"})}}]}))),g=r.forwardRef(function(e,r){let i=(0,l.useDefaultProps)({props:e,name:"MuiAppBar"}),{className:a,color:u="primary",enableColorOnDark:d=!1,position:c="fixed",...p}=i,m={...i,color:u,position:c,enableColorOnDark:d},g=(e=>{let{color:t,position:r,classes:o}=e,i={root:["root",`color${(0,s.default)(t)}`,`position${(0,s.default)(r)}`]};return(0,n.default)(i,f,o)})(m);return(0,t.jsx)(h,{square:!0,component:"header",ownerState:m,elevation:4,className:(0,o.default)(g.root,a,"fixed"===c&&"mui-fixed"),ref:r,...p})});var y=e.i(19646);function v(e){return(0,p.default)("MuiToolbar",e)}(0,c.default)("MuiToolbar",["root","gutters","regular","dense"]);let b=(0,i.styled)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((0,a.default)(({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}]}))),x
|
||
|
|
${s}.classList.add('${e}'.replace('%s', colorScheme));`}let p=c.match(/\[([^[\]]+)\]/);if(p){let[e,t]=p[1].split("=");t||(d+=`${s}.removeAttribute('${e}'.replace('%s', light));
|
||
|
|
${s}.removeAttribute('${e}'.replace('%s', dark));`),d+=`
|
||
|
|
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else d+=`${s}.setAttribute('${c}', colorScheme);`;return(0,t.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:`(function() {
|
||
|
|
try {
|
||
|
|
let colorScheme = '';
|
||
|
|
const mode = localStorage.getItem('${i}') || '${r}';
|
||
|
|
const dark = localStorage.getItem('${a}-dark') || '${n}';
|
||
|
|
const light = localStorage.getItem('${a}-light') || '${o}';
|
||
|
|
if (mode === 'system') {
|
||
|
|
// handle system mode
|
||
|
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
||
|
|
if (mql.matches) {
|
||
|
|
colorScheme = dark
|
||
|
|
} else {
|
||
|
|
colorScheme = light
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if (mode === 'light') {
|
||
|
|
colorScheme = light;
|
||
|
|
}
|
||
|
|
if (mode === 'dark') {
|
||
|
|
colorScheme = dark;
|
||
|
|
}
|
||
|
|
if (colorScheme) {
|
||
|
|
${d}
|
||
|
|
}
|
||
|
|
} catch(e){}})();`}},"mui-color-scheme-init")})({colorSchemeStorageKey:a,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:i,...e})}}({themeId:td.default,theme:()=>(0,tS.default)({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t={...e,typography:(0,tk.default)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,tp.default)({sx:e,theme:this})},t}});function tM({theme:e,...o}){let n=r.useMemo(()=>{if("function"==typeof e)return e;let t=td.default in e?e[td.default]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?(0,t.jsx)(tc,{theme:n,...o}):(0,t.jsx)(tE,{theme:e,...o})}var tR=e.i(6376),tT=e.i(35642);let tP="function"==typeof(0,tT.globalCss)({}),tA=(e,t=!1)=>{let r={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,o])=>{let n=e.getColorSchemeSelector(t);n.startsWith("@")?r[n]={":root":{colorScheme:o.palette?.mode}}:r[n.replace(/\s*&/,"")]={colorScheme:o.palette?.mode}});let o={html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...{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}},"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r},n=e.components?.MuiCssBaseline?.styleOverrides;return n&&(o=[o,n]),o},tI="mui-ecs",tj=(0,tT.globalCss)(tP?({theme:e,enableColorScheme:t})=>tA(e,t):({theme:e})=>{let t,r;return r=Array.isArray(t=tA(e,!1))?t[0]:t,!e.vars&&r&&(r.html[`:root:has(${tI})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,o])=>{let n=e.getColorSchemeSelector(t);n.startsWith("@")?r[n]={[`:root:not(:has(.${tI}))`]:{colorScheme:o.palette?.mode}}:r[n.replace(/\s*&/,"")]={[`&:not(:has(.${tI}))`]:{colorScheme:o.palette?.mode}}}),t}),t$=function(e){let{children:o,enableColorScheme:n=!1}=(0,l.useDefaultProps)({props:e,name:"MuiCssBaseline"});return(0,t.jsxs)(r.Fragment,{children:[tP&&(0,t.jsx)(tj,{enableColorScheme:n}),!tP&&!n&&(0,t.jsx)("span",{className:tI,style:{display:"none"}}),o]})};function tL(e){return(0,p.default)("MuiListSubheader",e)}(0,c.default)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);let tN=(0,i.styled)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,s.default)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((0,a.default)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),tO=r.forwardRef(function(e,r){let i=(0,l.useDefaultProps)({props:e,name:"MuiListSubheader"}),{className:a,color:u="default",component:d="li",disableGutters:c=!1,disableSticky:p=!1,inset:f=!1,...m}=i,h={...i,color:u,component:d,disableGutters:c,disableSticky:p,inset:f},g=(e=>{let{classes:t,color:r,disableGutters:o,inset:i,disableSticky:a}=e,l={root:["root","default"!==r&&`color${(0,s.default)(r)}`,!o&&"gutters",i&&"inset",!a&&"sticky"]};return(0,n.default)(l,tL,t)})(h);return(0,t.jsx)(tN,{as:d,className:(0,o.default)(g.root,a),ref:r,ownerState:h,...m})});
|