UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

55 lines (48 loc) 61.6 kB
"use strict";const Qt=require("@emotion/styled");require("@emotion/react");const Xt=require("react"),de=require("./index-kjfz41UI.cjs");function Jt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Re=Jt(Xt);var ve={exports:{}},v={};/** * @license React * react-is.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var nt;function Zt(){if(nt)return v;nt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function m(l){if(typeof l=="object"&&l!==null){var S=l.$$typeof;switch(S){case e:switch(l=l.type,l){case r:case o:case n:case f:case d:case p:return l;default:switch(l=l&&l.$$typeof,l){case s:case u:case h:case y:return l;case a:return l;default:return S}}case t:return S}}}return v.ContextConsumer=a,v.ContextProvider=s,v.Element=e,v.ForwardRef=u,v.Fragment=r,v.Lazy=h,v.Memo=y,v.Portal=t,v.Profiler=o,v.StrictMode=n,v.Suspense=f,v.SuspenseList=d,v.isContextConsumer=function(l){return m(l)===a},v.isContextProvider=function(l){return m(l)===s},v.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},v.isForwardRef=function(l){return m(l)===u},v.isFragment=function(l){return m(l)===r},v.isLazy=function(l){return m(l)===h},v.isMemo=function(l){return m(l)===y},v.isPortal=function(l){return m(l)===t},v.isProfiler=function(l){return m(l)===o},v.isStrictMode=function(l){return m(l)===n},v.isSuspense=function(l){return m(l)===f},v.isSuspenseList=function(l){return m(l)===d},v.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===f||l===d||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===y||l.$$typeof===s||l.$$typeof===a||l.$$typeof===u||l.$$typeof===b||l.getModuleId!==void 0)},v.typeOf=m,v}var w={};/** * @license React * react-is.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ot;function er(){return ot||(ot=1,process.env.NODE_ENV!=="production"&&(function(){function e(l){if(typeof l=="object"&&l!==null){var S=l.$$typeof;switch(S){case t:switch(l=l.type,l){case n:case a:case o:case d:case y:case b:return l;default:switch(l=l&&l.$$typeof,l){case u:case f:case p:case h:return l;case s:return l;default:return S}}case r:return S}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");w.ContextConsumer=s,w.ContextProvider=u,w.Element=t,w.ForwardRef=f,w.Fragment=n,w.Lazy=p,w.Memo=h,w.Portal=r,w.Profiler=a,w.StrictMode=o,w.Suspense=d,w.SuspenseList=y,w.isContextConsumer=function(l){return e(l)===s},w.isContextProvider=function(l){return e(l)===u},w.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},w.isForwardRef=function(l){return e(l)===f},w.isFragment=function(l){return e(l)===n},w.isLazy=function(l){return e(l)===p},w.isMemo=function(l){return e(l)===h},w.isPortal=function(l){return e(l)===r},w.isProfiler=function(l){return e(l)===a},w.isStrictMode=function(l){return e(l)===o},w.isSuspense=function(l){return e(l)===d},w.isSuspenseList=function(l){return e(l)===y},w.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===a||l===o||l===d||l===y||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===h||l.$$typeof===u||l.$$typeof===s||l.$$typeof===f||l.$$typeof===m||l.getModuleId!==void 0)},w.typeOf=e})()),w}var it;function tr(){return it||(it=1,process.env.NODE_ENV==="production"?ve.exports=Zt():ve.exports=er()),ve.exports}var ye=tr();function Et(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Et(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function rr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Et(e))&&(n&&(n+=" "),n+=t);return n}function Oe(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function qe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Oe(7));return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Tt(e){if(Re.isValidElement(e)||ye.isValidElementType(e)||!oe(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Tt(e[r])}),t}function Y(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return oe(e)&&oe(t)&&Object.keys(t).forEach(o=>{Re.isValidElement(t[o])||ye.isValidElementType(t[o])?n[o]=t[o]:oe(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&oe(e[o])?n[o]=Y(e[o],t[o],r):r.clone?n[o]=oe(t[o])?Tt(t[o]):t[o]:n[o]=t[o]}),n}function ge(e,t){return t?Y(e,t,{clone:!1}):e}const X=process.env.NODE_ENV!=="production"?de.PropTypes.oneOfType([de.PropTypes.number,de.PropTypes.string,de.PropTypes.object,de.PropTypes.array]):{};function at(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var s,u;const a=/min-width:\s*([0-9.]+)/;return+(((s=n.match(a))==null?void 0:s[1])||0)-+(((u=o.match(a))==null?void 0:u[1])||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function nr(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function or(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`. For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Oe(18,`(${t})`));return null}const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function ir(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function r(a,s){a.up=(...u)=>t(e.breakpoints.up(...u),s),a.down=(...u)=>t(e.breakpoints.down(...u),s),a.between=(...u)=>t(e.breakpoints.between(...u),s),a.only=(...u)=>t(e.breakpoints.only(...u),s),a.not=(...u)=>{const f=t(e.breakpoints.not(...u),s);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const Ie={xs:0,sm:600,md:900,lg:1200,xl:1536},st={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ie[e]}px)`},ar={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ie[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function U(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||st;return t.reduce((s,u,f)=>(s[a.up(a.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const a=n.breakpoints||st;return Object.keys(t).reduce((s,u)=>{if(nr(a.keys,u)){const f=or(n.containerQueries?n:ar,u);f&&(s[f]=r(t[u],u))}else if(Object.keys(a.values||Ie).includes(u)){const f=a.up(u);s[f]=r(t[u],u)}else{const f=u;s[f]=t[f]}return s},{})}return r(t)}function xt(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function ze(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function sr(e,...t){const r=xt(e),n=[r,...t].reduce((o,a)=>Y(o,a),{});return ze(Object.keys(r),n)}function lr(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function cr({values:e,breakpoints:t,base:r}){const n=r||lr(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((s,u,f)=>(Array.isArray(e)?(s[u]=e[f]!=null?e[f]:e[a],a=f):typeof e=="object"?(s[u]=e[u]!=null?e[u]:e[a],a=u):s[u]=e,s),{})}function be(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function _e(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=be(e,r)||n,t&&(o=t(o,n,e)),o}function P(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=s=>{if(s[t]==null)return null;const u=s[t],f=s.theme,d=be(f,n)||{};return U(s,u,h=>{let p=_e(d,o,h);return h===p&&typeof h=="string"&&(p=_e(d,o,`${t}${h==="default"?"":qe(h)}`,h)),r===!1?p:{[r]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:X}:{},a.filterProps=[t],a}function ur(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const fr={m:"margin",p:"padding"},dr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pr=ur(e=>{if(e.length>2)if(lt[e])e=lt[e];else return[e];const[t,r]=e.split(""),n=fr[t],o=dr[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Pe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Be=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],mr=[...Pe,...Be];function Se(e,t,r,n){const o=be(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a):Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(` `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` `)));const u=o[s];return a>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(` `)),()=>{})}function Me(e){return Se(e,"spacing",8,"spacing")}function ue(e,t){return typeof t=="string"||t==null?t:e(t)}function gr(e,t){return r=>e.reduce((n,o)=>(n[o]=ue(t,r),n),{})}function hr(e,t,r,n){if(!t.includes(r))return null;const o=pr(r),a=gr(o,n),s=e[r];return U(e,s,a)}function At(e,t){const r=Me(e.theme);return Object.keys(e).map(n=>hr(e,t,n,r)).reduce(ge,{})}function N(e){return At(e,Pe)}N.propTypes=process.env.NODE_ENV!=="production"?Pe.reduce((e,t)=>(e[t]=X,e),{}):{};N.filterProps=Pe;function R(e){return At(e,Be)}R.propTypes=process.env.NODE_ENV!=="production"?Be.reduce((e,t)=>(e[t]=X,e),{}):{};R.filterProps=Be;process.env.NODE_ENV!=="production"&&mr.reduce((e,t)=>(e[t]=X,e),{});function De(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?ge(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function F(e){return typeof e!="number"?e:`${e}px solid`}function L(e,t){return P({prop:e,themeKey:"borders",transform:t})}const yr=L("border",F),br=L("borderTop",F),Sr=L("borderRight",F),Cr=L("borderBottom",F),$r=L("borderLeft",F),Er=L("borderColor"),Tr=L("borderTopColor"),xr=L("borderRightColor"),Ar=L("borderBottomColor"),vr=L("borderLeftColor"),wr=L("outline",F),Or=L("outlineColor"),Ve=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Se(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ue(t,n)});return U(e,e.borderRadius,r)}return null};Ve.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:X}:{};Ve.filterProps=["borderRadius"];De(yr,br,Sr,Cr,$r,Er,Tr,xr,Ar,vr,Ve,wr,Or);const Fe=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Se(e.theme,"spacing",8,"gap"),r=n=>({gap:ue(t,n)});return U(e,e.gap,r)}return null};Fe.propTypes=process.env.NODE_ENV!=="production"?{gap:X}:{};Fe.filterProps=["gap"];const Le=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Se(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ue(t,n)});return U(e,e.columnGap,r)}return null};Le.propTypes=process.env.NODE_ENV!=="production"?{columnGap:X}:{};Le.filterProps=["columnGap"];const je=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Se(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ue(t,n)});return U(e,e.rowGap,r)}return null};je.propTypes=process.env.NODE_ENV!=="production"?{rowGap:X}:{};je.filterProps=["rowGap"];const _r=P({prop:"gridColumn"}),kr=P({prop:"gridRow"}),Nr=P({prop:"gridAutoFlow"}),Rr=P({prop:"gridAutoColumns"}),Ir=P({prop:"gridAutoRows"}),Pr=P({prop:"gridTemplateColumns"}),Br=P({prop:"gridTemplateRows"}),Mr=P({prop:"gridTemplateAreas"}),Dr=P({prop:"gridArea"});De(Fe,Le,je,_r,kr,Nr,Rr,Ir,Pr,Br,Mr,Dr);function le(e,t){return t==="grey"?t:e}const Vr=P({prop:"color",themeKey:"palette",transform:le}),Fr=P({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:le}),Lr=P({prop:"backgroundColor",themeKey:"palette",transform:le});De(Vr,Fr,Lr);function D(e){return e<=1&&e!==0?`${e*100}%`:e}const jr=P({prop:"width",transform:D}),Qe=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,a,s,u,f;const n=((s=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:s[r])||Ie[r];return n?((f=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:D(r)}};return U(e,e.maxWidth,t)}return null};Qe.filterProps=["maxWidth"];const Ur=P({prop:"minWidth",transform:D}),Wr=P({prop:"height",transform:D}),Gr=P({prop:"maxHeight",transform:D}),zr=P({prop:"minHeight",transform:D});P({prop:"size",cssProperty:"width",transform:D});P({prop:"size",cssProperty:"height",transform:D});const Yr=P({prop:"boxSizing"});De(jr,Qe,Ur,Wr,Gr,zr,Yr);const Ce={border:{themeKey:"borders",transform:F},borderTop:{themeKey:"borders",transform:F},borderRight:{themeKey:"borders",transform:F},borderBottom:{themeKey:"borders",transform:F},borderLeft:{themeKey:"borders",transform:F},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:F},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ve},color:{themeKey:"palette",transform:le},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:le},backgroundColor:{themeKey:"palette",transform:le},p:{style:R},pt:{style:R},pr:{style:R},pb:{style:R},pl:{style:R},px:{style:R},py:{style:R},padding:{style:R},paddingTop:{style:R},paddingRight:{style:R},paddingBottom:{style:R},paddingLeft:{style:R},paddingX:{style:R},paddingY:{style:R},paddingInline:{style:R},paddingInlineStart:{style:R},paddingInlineEnd:{style:R},paddingBlock:{style:R},paddingBlockStart:{style:R},paddingBlockEnd:{style:R},m:{style:N},mt:{style:N},mr:{style:N},mb:{style:N},ml:{style:N},mx:{style:N},my:{style:N},margin:{style:N},marginTop:{style:N},marginRight:{style:N},marginBottom:{style:N},marginLeft:{style:N},marginX:{style:N},marginY:{style:N},marginInline:{style:N},marginInlineStart:{style:N},marginInlineEnd:{style:N},marginBlock:{style:N},marginBlockStart:{style:N},marginBlockEnd:{style:N},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Fe},rowGap:{style:je},columnGap:{style:Le},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:D},maxWidth:{style:Qe},minWidth:{transform:D},height:{transform:D},maxHeight:{transform:D},minHeight:{transform:D},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Kr(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Hr(e,t){return typeof e=="function"?e(t):e}function qr(){function e(r,n,o,a){const s={[r]:n,theme:o},u=a[r];if(!u)return{[r]:n};const{cssProperty:f=r,themeKey:d,transform:y,style:h}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const p=be(o,d)||{};return h?h(s):U(s,n,m=>{let l=_e(p,y,m);return m===l&&typeof m=="string"&&(l=_e(p,y,`${r}${m==="default"?"":qe(m)}`,m)),f===!1?l:{[f]:l}})}function t(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const s=o.unstable_sxConfig??Ce;function u(f){let d=f;if(typeof f=="function")d=f(o);else if(typeof f!="object")return f;if(!d)return null;const y=xt(o.breakpoints),h=Object.keys(y);let p=y;return Object.keys(d).forEach(b=>{const m=Hr(d[b],o);if(m!=null)if(typeof m=="object")if(s[b])p=ge(p,e(b,m,o,s));else{const l=U({theme:o},m,S=>({[b]:S}));Kr(l,m)?p[b]=t({sx:m,theme:o,nested:!0}):p=ge(p,l)}else p=ge(p,e(b,m,o,s))}),!a&&o.modularCssLayers?{"@layer sx":at(o,ze(h,p))}:at(o,ze(h,p))}return Array.isArray(n)?n.map(u):u(n)}return t}const $e=qr();$e.filterProps=["sx"];function Qr(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Jr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Zr=/[A-Z]|^ms/g,en=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vt=function(t){return t.charCodeAt(1)===45},ct=function(t){return t!=null&&typeof t!="boolean"},Ue=Jr(function(e){return vt(e)?e:e.replace(Zr,"-$&").toLowerCase()}),ut=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(en,function(n,o,a){return q={name:o,styles:a,next:q},o})}return Xr[t]!==1&&!vt(t)&&typeof r=="number"&&r!==0?r+"px":r};function ke(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return q={name:o.name,styles:o.styles,next:q},o.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)q={name:s.name,styles:s.styles,next:q},s=s.next;var u=a.styles+";";return u}return tn(e,t,r)}}var f=r;return f}function tn(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ke(e,t,r[o])+";";else for(var a in r){var s=r[a];if(typeof s!="object"){var u=s;ct(u)&&(n+=Ue(a)+":"+ut(a,u)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var f=0;f<s.length;f++)ct(s[f])&&(n+=Ue(a)+":"+ut(a,s[f])+";");else{var d=ke(e,t,s);switch(a){case"animation":case"animationName":{n+=Ue(a)+":"+d+";";break}default:n+=a+"{"+d+"}"}}}return n}var ft=/label:\s*([^\s;{]+)\s*(;|$)/g,q;function rn(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";q=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=ke(r,t,a);else{var s=a;o+=s[0]}for(var u=1;u<e.length;u++)if(o+=ke(r,t,e[u]),n){var f=a;o+=f[u]}ft.lastIndex=0;for(var d="",y;(y=ft.exec(o))!==null;)d+="-"+y[1];var h=Qr(o)+d;return{name:h,styles:o,next:q}}/** * @mui/styled-engine v7.3.2 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function nn(e,t){const r=Qt(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(` `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function on(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const dt=[];function an(e){return dt[0]=e,rn(dt)}const sn=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function wt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=sn(t),s=Object.keys(a);function u(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function f(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function d(p,b){const m=s.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:b)-n/100}${r})`}function y(p){return s.indexOf(p)+1<s.length?d(p,s[s.indexOf(p)+1]):u(p)}function h(p){const b=s.indexOf(p);return b===0?u(s[1]):b===s.length-1?f(s[b]):d(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:u,down:f,between:d,only:y,not:h,unit:r,...o}}const ln={borderRadius:4};function Xe(e=8,t=Me({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function cn(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function Ot(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...s}=e,u=wt(r),f=Xe(o);let d=Y({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:f,shape:{...ln,...a}},s);return d=ir(d),d.applyStyles=cn,d=t.reduce((y,h)=>Y(y,h),d),d.unstable_sxConfig={...Ce,...s==null?void 0:s.unstable_sxConfig},d.unstable_sx=function(h){return $e({sx:h,theme:this})},d}function un(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Je(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),un(e,t,r)}function _t(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function fn(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function W(e){if(e.type)return e;if(e.charAt(0)==="#")return W(_t(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Oe(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space. The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Oe(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const dn=e=>{const t=W(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},pe=(e,t)=>{try{return dn(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ee(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function pn(e){if(e.startsWith("#"))return e;const{values:t}=W(e);return`#${t.map((r,n)=>fn(n===3?Math.round(255*r):r)).join("")}`}function Ze(e){e=W(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),s=(d,y=(d+r/30)%12)=>o-a*Math.max(Math.min(y-3,9-y,1),-1);let u="rgb";const f=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(u+="a",f.push(t[3])),Ee({type:u,values:f})}function Ne(e){e=W(e);let t=e.type==="hsl"||e.type==="hsla"?W(Ze(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ye(e,t){const r=Ne(e),n=Ne(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function et(e,t){return e=W(e),t=Je(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ee(e)}function J(e,t,r){try{return et(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Te(e,t){if(e=W(e),t=Je(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ee(e)}function x(e,t,r){try{return Te(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function xe(e,t){if(e=W(e),t=Je(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ee(e)}function A(e,t,r){try{return xe(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function kt(e,t=.15){return Ne(e)>.5?Te(e,t):xe(e,t)}function we(e,t,r){try{return kt(e,t)}catch{return e}}function mn(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const pt=(e,t,r,n=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},gn=(e,t,r)=>{function n(o,a=[],s=[]){Object.entries(o).forEach(([u,f])=>{(!r||r&&!r([...a,u]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?n(f,[...a,u],Array.isArray(f)?[...s,u]:s):t([...a,u],f,s))})}n(e)},hn=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function We(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},s={};return gn(e,(u,f,d)=>{if((typeof f=="string"||typeof f=="number")&&(!n||!n(u,f))){const y=`--${r?`${r}-`:""}${u.join("-")}`,h=hn(u,f);Object.assign(o,{[y]:h}),pt(a,u,`var(${y})`,d),pt(s,u,`var(${y}, ${h})`,d)}},u=>u[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function yn(e,t={}){const{getSelector:r=O,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:u,defaultColorScheme:f="light",...d}=e,{vars:y,css:h,varsWithDefaults:p}=We(d,t);let b=p;const m={},{[f]:l,...S}=s;if(Object.entries(S||{}).forEach(([$,M])=>{const{vars:E,css:G,varsWithDefaults:K}=We(M,t);b=Y(b,K),m[$]={css:G,vars:E}}),l){const{css:$,vars:M,varsWithDefaults:E}=We(l,t);b=Y(b,E),m[f]={css:$,vars:M}}function O($,M){var G,K;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),$){if(E==="media")return e.defaultColorScheme===$?":root":{[`@media (prefers-color-scheme: ${((K=(G=s[$])==null?void 0:G.palette)==null?void 0:K.mode)||$})`]:{":root":M}};if(E)return e.defaultColorScheme===$?`:root, ${E.replace("%s",String($))}`:E.replace("%s",String($))}return":root"}return{vars:b,generateThemeVars:()=>{let $={...y};return Object.entries(m).forEach(([,{vars:M}])=>{$=Y($,M)}),$},generateStyleSheets:()=>{var fe,Ae;const $=[],M=e.defaultColorScheme||"light";function E(B,i){Object.keys(i).length&&$.push(typeof B=="string"?{[B]:{...i}}:B)}E(r(void 0,{...h}),h);const{[M]:G,...K}=m;if(G){const{css:B}=G,i=(Ae=(fe=s[M])==null?void 0:fe.palette)==null?void 0:Ae.mode,C=!n&&i?{colorScheme:i,...B}:{...B};E(r(M,{...C}),C)}return Object.entries(K).forEach(([B,{css:i}])=>{var T,I;const C=(I=(T=s[B])==null?void 0:T.palette)==null?void 0:I.mode,g=!n&&C?{colorScheme:C,...i}:{...i};E(r(B,{...g}),g)}),a&&$.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),$}}}function bn(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function he(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function H(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nt(e){if(Re.isValidElement(e)||ye.isValidElementType(e)||!H(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Nt(e[r])}),t}function Q(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return H(e)&&H(t)&&Object.keys(t).forEach(o=>{Re.isValidElement(t[o])||ye.isValidElementType(t[o])?n[o]=t[o]:H(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&H(e[o])?n[o]=Q(e[o],t[o],r):r.clone?n[o]=H(t[o])?Nt(t[o]):t[o]:n[o]=t[o]}),n}const ce={black:"#000",white:"#fff"},Rt={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"},Z={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"},ee={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"},se={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"},te={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"},re={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"},ne={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 It(){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:ce.white,default:ce.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 Pt=It();function Bt(){return{text:{primary:ce.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:ce.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 Ke=Bt();function mt(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=xe(e.main,o):t==="dark"&&(e.dark=Te(e.main,a)))}function gt(e,t,r,n,o){const a=o.light||o,s=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function Sn(e="light"){return e==="dark"?{main:te[200],light:te[50],dark:te[400]}:{main:te[700],light:te[400],dark:te[800]}}function Cn(e="light"){return e==="dark"?{main:Z[200],light:Z[50],dark:Z[400]}:{main:Z[500],light:Z[300],dark:Z[700]}}function $n(e="light"){return e==="dark"?{main:ee[500],light:ee[300],dark:ee[700]}:{main:ee[700],light:ee[400],dark:ee[800]}}function En(e="light"){return e==="dark"?{main:re[400],light:re[300],dark:re[700]}:{main:re[700],light:re[500],dark:re[900]}}function Tn(e="light"){return e==="dark"?{main:ne[400],light:ne[300],dark:ne[700]}:{main:ne[800],light:ne[500],dark:ne[900]}}function xn(e="light"){return e==="dark"?{main:se[400],light:se[300],dark:se[700]}:{main:"#ed6c02",light:se[500],dark:se[900]}}function An(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tt(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...a}=e,s=e.primary||Sn(t),u=e.secondary||Cn(t),f=e.error||$n(t),d=e.info||En(t),y=e.success||Tn(t),h=e.warning||xn(t);function p(S){if(o)return An(S);const O=Ye(S,Ke.text.primary)>=r?Ke.text.primary:Pt.text.primary;if(process.env.NODE_ENV!=="production"){const _=Ye(S,O);_<3&&console.error([`MUI: The contrast ratio of ${_}:1 for ${O} on ${S}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` `))}return O}const b=({color:S,name:O,mainShade:_=500,lightShade:V=300,darkShade:$=700})=>{if(S={...S},!S.main&&S[_]&&(S.main=S[_]),!S.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${O?` (${O})`:""} provided to augmentColor(color) is invalid. The color object needs to have a \`main\` property or a \`${_}\` property.`:he(11,O?` (${O})`:"",_));if(typeof S.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${O?` (${O})`:""} provided to augmentColor(color) is invalid. \`color.main\` should be a string, but \`${JSON.stringify(S.main)}\` was provided instead. Did you intend to use one of the following approaches? import { green } from "@mui/material/colors"; const theme1 = createTheme({ palette: { primary: green, } }); const theme2 = createTheme({ palette: { primary: { main: green[500] }, } });`:he(12,O?` (${O})`:"",JSON.stringify(S.main)));return o?(gt(o,S,"light",V,n),gt(o,S,"dark",$,n)):(mt(S,"light",V,n),mt(S,"dark",$,n)),S.contrastText||(S.contrastText=p(S.main)),S};let m;return t==="light"?m=It():t==="dark"&&(m=Bt()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Q({common:{...ce},mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:f,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:y,name:"success"}),grey:Rt,contrastThreshold:r,getContrastText:p,augmentColor:b,tonalOffset:n,...m},a)}function vn(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const ht=e=>e,wn=()=>{let e=ht;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ht}}},Mt=wn(),On={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 rt(e,t,r="Mui"){const n=On[t];return n?`${r}-${n}`:`${Mt.generate(e)}-${t}`}function Dt(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function _n(e){return Math.round(e*1e5)/1e5}const yt={textTransform:"uppercase"},bt='"Roboto", "Helvetica", "Arial", sans-serif';function Vt(e,t){const{fontFamily:r=bt,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:d,pxToRem:y,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,b=y||(S=>`${S/f*p}rem`),m=(S,O,_,V,$)=>({fontFamily:r,fontWeight:S,fontSize:b(O),lineHeight:_,...r===bt?{letterSpacing:`${_n(V/O)}em`}:{},...$,...d}),l={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,yt),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,yt),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Q({htmlFontSize:f,pxToRem:b,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u,...l},h,{clone:!1})}const kn=.2,Nn=.14,Rn=.12;function k(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kn})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Nn})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Rn})`].join(",")}const In=["none",k(0,2,1,-1,0,1,1,0,0,1,3,0),k(0,3,1,-2,0,2,2,0,0,1,5,0),k(0,3,3,-2,0,3,4,0,0,1,8,0),k(0,2,4,-1,0,4,5,0,0,1,10,0),k(0,3,5,-1,0,5,8,0,0,1,14,0),k(0,3,5,-1,0,6,10,0,0,1,18,0),k(0,4,5,-2,0,7,10,1,0,2,16,1),k(0,5,5,-3,0,8,10,1,0,3,14,2),k(0,5,6,-3,0,9,12,1,0,3,16,2),k(0,6,6,-3,0,10,14,1,0,4,18,3),k(0,6,7,-4,0,11,15,1,0,4,20,3),k(0,7,8,-4,0,12,17,2,0,5,22,4),k(0,7,8,-4,0,13,19,2,0,5,24,4),k(0,7,9,-4,0,14,21,2,0,5,26,4),k(0,8,9,-5,0,15,22,2,0,6,28,5),k(0,8,10,-5,0,16,24,2,0,6,30,5),k(0,8,11,-5,0,17,26,2,0,6,32,5),k(0,9,11,-5,0,18,28,2,0,7,34,6),k(0,9,12,-6,0,19,29,2,0,7,36,6),k(0,10,13,-6,0,20,31,3,0,8,38,7),k(0,10,13,-6,0,21,33,3,0,8,40,7),k(0,10,14,-6,0,22,35,3,0,8,42,7),k(0,11,14,-7,0,23,36,3,0,9,44,8),k(0,11,15,-7,0,24,38,3,0,9,46,8)],Ft={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)"},Lt={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function St(e){return`${Math.round(e)}ms`}function Pn(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function jt(e){const t={...Ft,...e.easing},r={...Lt,...e.duration};return{getAutoHeightDuration:Pn,create:(o=["all"],a={})=>{const{duration:s=r.standard,easing:u=t.easeInOut,delay:f=0,...d}=a;if(process.env.NODE_ENV!=="production"){const y=p=>typeof p=="string",h=p=>!Number.isNaN(parseFloat(p));!y(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(s)&&!y(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),y(u)||console.error('MUI: Argument "easing" must be a string.'),!h(f)&&!y(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(y=>`${y} ${typeof s=="string"?s:St(s)} ${u} ${typeof f=="string"?f:St(f)}`).join(",")},...e,easing:t,duration:r}}const Bn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Mn(e){return H(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ut(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[s,u]=o[a];!Mn(u)||s.startsWith("unstable_")?delete n[s]:H(u)&&(n[s]={...u},r(n[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; const theme = ${JSON.stringify(t,null,2)}; theme.breakpoints = createBreakpoints(theme.breakpoints || {}); theme.transitions = createTransitions(theme.transitions || {}); export default theme;`}function Ct(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Dn=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function Vn(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:et(t,Dn(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Ct(r)})`:xe(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Ct(r)})`:Te(t,r)}})}function He(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:s={},typography:u={},shape:f,colorSpace:d,...y}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":he(20));const h=tt({...a,colorSpace:d}),p=Ot(e);let b=Q(p,{mixins:Dt(p.breakpoints,n),palette:h,shadows:In.slice(),typography:Vt(h,u),transitions:jt(s),zIndex:{...Bn}});if(b=Q(b,y),b=t.reduce((m,l)=>Q(m,l),b),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],l=(S,O)=>{let _;for(_ in S){const V=S[_];if(m.includes(_)&&Object.keys(V).length>0){if(process.env.NODE_ENV!=="production"){const $=rt("",_);console.error([`MUI: The \`${O}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(S,null,2),"",`Instead, you need to use the '&.${$}' syntax:`,JSON.stringify({root:{[`&.${$}`]:V}},null,2),"","https://mui.com/r/state-classes-guide"].join(` `))}S[_]={}}}};Object.keys(b.components).forEach(S=>{const O=b.components[S].styleOverrides;O&&S.startsWith("Mui")&&l(O,S)})}return b.unstable_sxConfig={...Ce,...y==null?void 0:y.unstable_sxConfig},b.unstable_sx=function(l){return $e({sx:l,theme:this})},b.toRuntimeSource=Ut,Vn(b),b}function Wt(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Fn=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Wt(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Gt(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function zt(e){return e==="dark"?Fn:[]}function Yt(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...a}=e,s=tt({...t,colorSpace:o});return{palette:s,opacity:{...Gt(s.mode),...r},overlays:n||zt(s.mode),...a}}function Kt(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Ht=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ln=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Ht(e.cssVarPrefix).forEach(u=>{s[u]=r[u],delete r[u]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:a?{[a.replace("%s",t)]:s,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function jn(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function c(e,t,r){!e[t]&&r&&(e[t]=r)}function me(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ze(e)}function z(e,t){`${t}Channel`in e||(e[`${t}Channel`]=pe(me(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Un(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const j=e=>{try{return e()}catch{}},Wn=(e="mui")=>mn(e);function Ge(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const a=o==="dark"?"dark":"light";if(!n){t[o]=Yt({...r,palette:{mode:a,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:s,...u}=He({...n,palette:{mode:a,...r==null?void 0:r.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...Gt(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||zt(a)},u}function qt(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativ