@pie-element/multi-trait-rubric 8.1.2-next.16 → 8.1.2-next.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { C as e, E as t, Et as n, H as r, P as i, _ as a, _t as o, bt as s, ft as c, ht as l, i as u, it as d, kt as f, lt as p, n as m, ot as h, r as g, t as _, tt as v, vt as y, w as b, x, yt as S } from "../Typography-le3zSh6t.js";
1
+ import { C as e, E as t, Et as n, H as r, P as i, _ as a, _t as o, bt as s, ft as c, ht as l, i as u, it as d, kt as f, lt as p, n as m, ot as h, r as g, t as _, tt as v, vt as y, w as b, x, yt as S } from "../Typography-CR9tXNhP.js";
2
2
  import * as C from "react";
3
3
  import w from "react";
4
4
  import { createRoot as T } from "react-dom/client";
@@ -42,7 +42,7 @@ theme.transitions = createTransitions(theme.transitions || {});
42
42
  export default theme;`}function Ga(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Ka=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function qa(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:di(t,Ka(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ga(n)})`:mi(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ga(n)})`:pi(t,n)}})}function Ja(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(b(20));let d=H({...a,colorSpace:l}),f=Er(e),p=un(f,{mixins:Oa(f.breakpoints,r),palette:d,shadows:Ia.slice(),typography:Ma(d,s),transitions:Va(o),zIndex:{...Ha}});return p=un(p,u),p=t.reduce((e,t)=>un(e,t),p),p.unstable_sxConfig={...br,...u?.unstable_sxConfig},p.unstable_sx=function(e){return wr({sx:e,theme:this})},p.toRuntimeSource=Wa,qa(p),p}function Ya(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Xa=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Ya(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Za(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Qa(e){return e===`dark`?Xa:[]}function $a(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=H({...t,colorSpace:i});return{palette:o,opacity:{...Za(o.mode),...n},overlays:r||Qa(o.mode),...a}}function eo(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var to=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],no=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return to(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function ro(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function W(e,t,n){!e[t]&&n&&(e[t]=n)}function io(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:ci(e)}function ao(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oi(io(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().
43
43
  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 oo(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var so=e=>{try{return e()}catch{}},co=(e=`mui`)=>Zi(e);function lo(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=$a({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Ja({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Za(a),...n?.opacity},overlays:n?.overlays||Qa(a)},s}function uo(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=eo,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=co(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(b(21,f));let x;o&&(x=`oklch`);let S=lo(x,v,y,u,f);h&&!v.light&&lo(x,v,h,void 0,`light`),g&&!v.dark&&lo(x,v,g,void 0,`dark`);let C={defaultColorScheme:f,...S,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Da(S.typography),...S.font},spacing:oo(u.spacing)};Object.keys(C.colorSchemes).forEach(e=>{let t=C.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(W(t.common,`background`,`#fff`),W(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(W(t.common,`background`,`#000`),W(t.common,`onBackground`,`#fff`));function r(e,t,n){if(x){let r;return e===fi&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===z&&(r=`#000 ${(n*100).toFixed(0)}%`),e===B&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${x}, ${t}, ${r})`}return e(t,n)}if(ro(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){W(t.Alert,`errorColor`,r(z,o?p(`palette-error-light`):t.error.light,.6)),W(t.Alert,`infoColor`,r(z,o?p(`palette-info-light`):t.info.light,.6)),W(t.Alert,`successColor`,r(z,o?p(`palette-success-light`):t.success.light,.6)),W(t.Alert,`warningColor`,r(z,o?p(`palette-warning-light`):t.warning.light,.6)),W(t.Alert,`errorFilledBg`,n(`palette-error-main`)),W(t.Alert,`infoFilledBg`,n(`palette-info-main`)),W(t.Alert,`successFilledBg`,n(`palette-success-main`)),W(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),W(t.Alert,`errorFilledColor`,so(()=>t.getContrastText(t.error.main))),W(t.Alert,`infoFilledColor`,so(()=>t.getContrastText(t.info.main))),W(t.Alert,`successFilledColor`,so(()=>t.getContrastText(t.success.main))),W(t.Alert,`warningFilledColor`,so(()=>t.getContrastText(t.warning.main))),W(t.Alert,`errorStandardBg`,r(B,o?p(`palette-error-light`):t.error.light,.9)),W(t.Alert,`infoStandardBg`,r(B,o?p(`palette-info-light`):t.info.light,.9)),W(t.Alert,`successStandardBg`,r(B,o?p(`palette-success-light`):t.success.light,.9)),W(t.Alert,`warningStandardBg`,r(B,o?p(`palette-warning-light`):t.warning.light,.9)),W(t.Alert,`errorIconColor`,n(`palette-error-main`)),W(t.Alert,`infoIconColor`,n(`palette-info-main`)),W(t.Alert,`successIconColor`,n(`palette-success-main`)),W(t.Alert,`warningIconColor`,n(`palette-warning-main`)),W(t.AppBar,`defaultBg`,n(`palette-grey-100`)),W(t.Avatar,`defaultBg`,n(`palette-grey-400`)),W(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),W(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),W(t.Chip,`defaultBorder`,n(`palette-grey-400`)),W(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),W(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),W(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),W(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),W(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),W(t.LinearProgress,`primaryBg`,r(B,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.LinearProgress,`secondaryBg`,r(B,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.LinearProgress,`errorBg`,r(B,o?p(`palette-error-main`):t.error.main,.62)),W(t.LinearProgress,`infoBg`,r(B,o?p(`palette-info-main`):t.info.main,.62)),W(t.LinearProgress,`successBg`,r(B,o?p(`palette-success-main`):t.success.main,.62)),W(t.LinearProgress,`warningBg`,r(B,o?p(`palette-warning-light`):t.warning.main,.62)),W(t.Skeleton,`bg`,x?r(fi,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),W(t.Slider,`primaryTrack`,r(B,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.Slider,`secondaryTrack`,r(B,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.Slider,`errorTrack`,r(B,o?p(`palette-error-main`):t.error.main,.62)),W(t.Slider,`infoTrack`,r(B,o?p(`palette-info-main`):t.info.main,.62)),W(t.Slider,`successTrack`,r(B,o?p(`palette-success-main`):t.success.main,.62)),W(t.Slider,`warningTrack`,r(B,o?p(`palette-warning-main`):t.warning.main,.62));let e=x?r(z,o?p(`palette-background-default`):t.background.default,.6825):gi(t.background.default,.8);W(t.SnackbarContent,`bg`,e),W(t.SnackbarContent,`color`,so(()=>x?_a.text.primary:t.getContrastText(e))),W(t.SpeedDialAction,`fabHoverBg`,gi(t.background.paper,.15)),W(t.StepConnector,`border`,n(`palette-grey-400`)),W(t.StepContent,`border`,n(`palette-grey-400`)),W(t.Switch,`defaultColor`,n(`palette-common-white`)),W(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),W(t.Switch,`primaryDisabledColor`,r(B,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.Switch,`secondaryDisabledColor`,r(B,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.Switch,`errorDisabledColor`,r(B,o?p(`palette-error-main`):t.error.main,.62)),W(t.Switch,`infoDisabledColor`,r(B,o?p(`palette-info-main`):t.info.main,.62)),W(t.Switch,`successDisabledColor`,r(B,o?p(`palette-success-main`):t.success.main,.62)),W(t.Switch,`warningDisabledColor`,r(B,o?p(`palette-warning-main`):t.warning.main,.62)),W(t.TableCell,`border`,r(B,fi(o?p(`palette-divider`):t.divider,1),.88)),W(t.Tooltip,`bg`,r(fi,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){W(t.Alert,`errorColor`,r(B,o?p(`palette-error-light`):t.error.light,.6)),W(t.Alert,`infoColor`,r(B,o?p(`palette-info-light`):t.info.light,.6)),W(t.Alert,`successColor`,r(B,o?p(`palette-success-light`):t.success.light,.6)),W(t.Alert,`warningColor`,r(B,o?p(`palette-warning-light`):t.warning.light,.6)),W(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),W(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),W(t.Alert,`successFilledBg`,n(`palette-success-dark`)),W(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),W(t.Alert,`errorFilledColor`,so(()=>t.getContrastText(t.error.dark))),W(t.Alert,`infoFilledColor`,so(()=>t.getContrastText(t.info.dark))),W(t.Alert,`successFilledColor`,so(()=>t.getContrastText(t.success.dark))),W(t.Alert,`warningFilledColor`,so(()=>t.getContrastText(t.warning.dark))),W(t.Alert,`errorStandardBg`,r(z,o?p(`palette-error-light`):t.error.light,.9)),W(t.Alert,`infoStandardBg`,r(z,o?p(`palette-info-light`):t.info.light,.9)),W(t.Alert,`successStandardBg`,r(z,o?p(`palette-success-light`):t.success.light,.9)),W(t.Alert,`warningStandardBg`,r(z,o?p(`palette-warning-light`):t.warning.light,.9)),W(t.Alert,`errorIconColor`,n(`palette-error-main`)),W(t.Alert,`infoIconColor`,n(`palette-info-main`)),W(t.Alert,`successIconColor`,n(`palette-success-main`)),W(t.Alert,`warningIconColor`,n(`palette-warning-main`)),W(t.AppBar,`defaultBg`,n(`palette-grey-900`)),W(t.AppBar,`darkBg`,n(`palette-background-paper`)),W(t.AppBar,`darkColor`,n(`palette-text-primary`)),W(t.Avatar,`defaultBg`,n(`palette-grey-600`)),W(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),W(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),W(t.Chip,`defaultBorder`,n(`palette-grey-700`)),W(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),W(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),W(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),W(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),W(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),W(t.LinearProgress,`primaryBg`,r(z,o?p(`palette-primary-main`):t.primary.main,.5)),W(t.LinearProgress,`secondaryBg`,r(z,o?p(`palette-secondary-main`):t.secondary.main,.5)),W(t.LinearProgress,`errorBg`,r(z,o?p(`palette-error-main`):t.error.main,.5)),W(t.LinearProgress,`infoBg`,r(z,o?p(`palette-info-main`):t.info.main,.5)),W(t.LinearProgress,`successBg`,r(z,o?p(`palette-success-main`):t.success.main,.5)),W(t.LinearProgress,`warningBg`,r(z,o?p(`palette-warning-main`):t.warning.main,.5)),W(t.Skeleton,`bg`,x?r(fi,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),W(t.Slider,`primaryTrack`,r(z,o?p(`palette-primary-main`):t.primary.main,.5)),W(t.Slider,`secondaryTrack`,r(z,o?p(`palette-secondary-main`):t.secondary.main,.5)),W(t.Slider,`errorTrack`,r(z,o?p(`palette-error-main`):t.error.main,.5)),W(t.Slider,`infoTrack`,r(z,o?p(`palette-info-main`):t.info.main,.5)),W(t.Slider,`successTrack`,r(z,o?p(`palette-success-main`):t.success.main,.5)),W(t.Slider,`warningTrack`,r(z,o?p(`palette-warning-light`):t.warning.main,.5));let e=x?r(B,o?p(`palette-background-default`):t.background.default,.985):gi(t.background.default,.98);W(t.SnackbarContent,`bg`,e),W(t.SnackbarContent,`color`,so(()=>x?ha.text.primary:t.getContrastText(e))),W(t.SpeedDialAction,`fabHoverBg`,gi(t.background.paper,.15)),W(t.StepConnector,`border`,n(`palette-grey-600`)),W(t.StepContent,`border`,n(`palette-grey-600`)),W(t.Switch,`defaultColor`,n(`palette-grey-300`)),W(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),W(t.Switch,`primaryDisabledColor`,r(z,o?p(`palette-primary-main`):t.primary.main,.55)),W(t.Switch,`secondaryDisabledColor`,r(z,o?p(`palette-secondary-main`):t.secondary.main,.55)),W(t.Switch,`errorDisabledColor`,r(z,o?p(`palette-error-main`):t.error.main,.55)),W(t.Switch,`infoDisabledColor`,r(z,o?p(`palette-info-main`):t.info.main,.55)),W(t.Switch,`successDisabledColor`,r(z,o?p(`palette-success-main`):t.success.main,.55)),W(t.Switch,`warningDisabledColor`,r(z,o?p(`palette-warning-light`):t.warning.main,.55)),W(t.TableCell,`border`,r(z,fi(o?p(`palette-divider`):t.divider,1),.68)),W(t.Tooltip,`bg`,r(fi,o?p(`palette-grey-700`):t.grey[700],.92))}o||(ao(t.background,`default`),ao(t.background,`paper`),ao(t.common,`background`),ao(t.common,`onBackground`),ao(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&W(t[e],`mainChannel`,oi(io(n.main))),n.light&&W(t[e],`lightChannel`,oi(io(n.light))),n.dark&&W(t[e],`darkChannel`,oi(io(n.dark))),n.contrastText&&W(t[e],`contrastTextChannel`,oi(io(n.contrastText))),e===`text`&&(ao(t[e],`primary`),ao(t[e],`secondary`)),e===`action`&&(n.active&&ao(t[e],`active`),n.selected&&ao(t[e],`selected`)))})}),C=t.reduce((e,t)=>un(e,t),C);let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:no(C),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=na(C,w);return C.vars=T,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,C.generateStyleSheets=D,C.generateSpacing=function(){return Kn(u.spacing,Rn(this))},C.getColorSchemeSelector=ra(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...br,...u?.unstable_sxConfig},C.unstable_sx=function(e){return wr({sx:e,theme:this})},C.toRuntimeSource=Wa,C}function fo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:H({...n===!0?{}:n.palette,mode:t})})}function po(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Ja(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Ja({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},fo(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},fo(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),uo({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var mo=po();function ho(){let e=Ar(mo);return e.$$material||e}function go(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var _o=e=>go(e)&&e!==`classes`,G=Yr({themeId:x,defaultTheme:mo,rootShouldForwardProp:_o});function vo({theme:e,...t}){let n=`$$material`in e?e[x]:void 0;return(0,L.jsx)(Ii,{...t,themeId:n?x:void 0,theme:n||e})}var K={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:yo,useColorScheme:bo,getInitColorSchemeScript:xo}=Xi({themeId:x,theme:()=>po({cssVariables:!0}),colorSchemeStorageKey:K.colorSchemeStorageKey,modeStorageKey:K.modeStorageKey,defaultColorScheme:{light:K.defaultLightColorScheme,dark:K.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Ma(e.palette,e.typography)};return t.unstable_sx=function(e){return wr({sx:e,theme:this})},t}}),So=yo;function Co({theme:e,...t}){let n=F.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[x]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,L.jsx)(vo,{theme:n,...t}):(0,L.jsx)(So,{theme:e,...t})}var wo=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,To=({size:e,children:t})=>(e=wo(e),(0,L.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));To.propTypes={size:y.number,children:y.oneOfType([y.arrayOf(y.node),y.node]).isRequired};var q=({size:e,children:t,sx:n})=>(0,L.jsx)(To,{size:e,children:(0,L.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});q.propTypes={size:y.oneOfType([y.string,y.number]),children:y.oneOfType([y.arrayOf(y.node),y.node]).isRequired,sx:y.object};var Eo=({fill:e})=>(0,L.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});Eo.propTypes={fill:y.string.isRequired};var Do=({fill:e})=>(0,L.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});Do.propTypes={fill:y.string.isRequired};var Oo=({fill:e})=>(0,L.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});Oo.propTypes={fill:y.string.isRequired};var ko=({fill:e})=>(0,L.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});ko.propTypes={fill:y.string.isRequired};var Ao=({fill:e})=>(0,L.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});Ao.propTypes={fill:y.string.isRequired};var jo=(e,t)=>{class n extends F.Component{static propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,size:y.oneOfType([y.number,y.string]),fg:y.string,bg:y.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,L.jsx)(e,{fill:s}):(0,L.jsx)(t,{fill:s}),u=n===`check`?(0,L.jsx)(e,{fill:c}):(0,L.jsx)(t,{fill:c});return a?(0,L.jsx)(q,{size:o,children:u}):(0,L.jsxs)(q,{size:o,children:[i===`feedback`?r===`round`?(0,L.jsx)(Oo,{fill:c}):(0,L.jsx)(Do,{fill:c}):r===`round`?(0,L.jsx)(ko,{fill:c}):(0,L.jsx)(Ao,{fill:c}),l]})}}return n},Mo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,L.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
44
44
  c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,L.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});Mo.propTypes={fill:y.string.isRequired};var No=({fill:e,x:t=0,y:n=0})=>(0,L.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});No.propTypes={fill:y.string.isRequired,x:y.number,y:y.number};var Po=jo(No,Mo);Po.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Po.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var Fo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,L.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,L.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});Fo.propTypes={fill:y.string.isRequired};var Io=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,L.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});Io.propTypes={fill:y.string.isRequired};var Lo=jo(Fo,Io);Lo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Lo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Ro=({fill:e})=>(0,L.jsxs)(`g`,{children:[(0,L.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,L.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Ro.propTypes={fill:y.string.isRequired};var zo=({fill:e})=>(0,L.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});zo.propTypes={fill:y.string.isRequired};var Bo=({fill:e})=>(0,L.jsxs)(`g`,{children:[(0,L.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,L.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,L.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
45
- C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Bo.propTypes={fill:y.string.isRequired};var Vo=class extends F.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),feedback:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),square:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),open:{check:(0,L.jsx)(q,{children:(0,L.jsx)(Ro,{fill:n})}),emoji:(0,L.jsx)(q,{children:(0,L.jsx)(Bo,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};Vo.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},Vo.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Ho=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,L.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,L.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Ho.propTypes={fill:y.string.isRequired};var Uo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,L.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Uo.propTypes={fill:y.string.isRequired};var Wo=jo(Ho,Uo);Wo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Wo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Go(e){return typeof e==`string`}function Ko(){return Pr}function qo(e){return Oi(e)}function Jo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Yo=Jo;function Xo(e){return e&&e.ownerDocument||document}var Zo=Xo;function Qo(e){return Xo(e).defaultView||window}var $o=Qo,es={};function ts(e,t){let n=F.useRef(es);return n.current===es&&(n.current=e(t)),n}var ns=[];function rs(e){F.useEffect(e,ns)}var is=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function as(){let e=ts(is.create).current;return rs(e.disposeEffect),e}function os(e){return e?.ref||null}function ss(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cs(e,t)}function ls(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t)}function us(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ds(e,t){e.classList?e.classList.add(t):us(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function fs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ps(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=fs(e.className,t):e.setAttribute(`class`,fs(e.className&&e.className.baseVal||``,t))}var ms={disabled:!1},hs=F.createContext(null),gs=function(e){return e.scrollTop},_s=l(h()),vs=`unmounted`,ys=`exited`,bs=`entering`,xs=`entered`,Ss=`exiting`,Cs=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=ys,r.appearStatus=bs):o=xs:o=t.unmountOnExit||t.mountOnEnter?vs:ys,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ys}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=bs):(n===`entering`||n===`entered`)&&(t=Ss)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this);n&&gs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:vs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[_s.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||ms.disabled){this.safeSetState({status:xs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:bs},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:xs},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:_s.findDOMNode(this);if(!t||ms.disabled){this.safeSetState({status:ys},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Ss},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ys},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ss(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return F.createElement(hs.Provider,{value:null},typeof n==`function`?n(e,r):F.cloneElement(F.Children.only(n),r))},t}(F.Component);Cs.contextType=hs,Cs.propTypes={};function ws(){}Cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ws,onEntering:ws,onEntered:ws,onExit:ws,onExiting:ws,onExited:ws},Cs.UNMOUNTED=vs,Cs.EXITED=ys,Cs.ENTERING=bs,Cs.ENTERED=xs,Cs.EXITING=Ss;var Ts=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ds(e,t)})},Es=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ps(e,t)})},Ds=function(e){ls(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&gs(e),r&&(this.appliedClasses[t][n]=r,Ts(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Es(e,r),i&&Es(e,i),a&&Es(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ss(e,[`classNames`]);return F.createElement(Cs,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(F.Component);Ds.defaultProps={classNames:``},Ds.propTypes={};function Os(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ks(e,t){var n=function(e){return t&&(0,F.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&F.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function As(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function js(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ms(e,t){return ks(e.children,function(n){return(0,F.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:js(n,`appear`,e),enter:js(n,`enter`,e),exit:js(n,`exit`,e)})})}function Ns(e,t,n){var r=ks(e.children),i=As(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,F.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,F.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,F.cloneElement)(o,{in:!1}):c&&s&&(0,F.isValidElement)(l)&&(i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}))}}),i}var Ps=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Fs={component:`div`,childFactory:function(e){return e}},Is=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Os(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Ms(e,r):Ns(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=ks(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ss(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Ps(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?F.createElement(hs.Provider,{value:i},a):F.createElement(hs.Provider,{value:i},F.createElement(t,r,a))},t}(F.Component);Is.propTypes={},Is.defaultProps=Fs;var Ls=e=>e.scrollTop;function Rs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function zs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Bs(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Vs(...e){let t=F.useRef(void 0),n=F.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return F.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Hs=Vs;function Us(e){return`scale(${e}, ${e**2})`}var Ws={entering:{opacity:1,transform:Us(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Us(.75)},exited:{opacity:0,transform:Us(.75)}},Gs={opacity:0,transform:Us(.75),visibility:`hidden`},Ks=F.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=as(),_=F.useRef(),v=ho(),y=F.useRef(null),b=Hs(y,os(i),t),x=Rs(y,l),S=Rs(y,(e,t)=>{Ls(e);let{duration:n,delay:r,easing:i}=Bs({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=Rs(y,c),w=Rs(y,f),T=Rs(y,e=>{let{duration:t,delay:n,easing:r}=Bs({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Us(.75),u&&u(e)}),E=Rs(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(Cs,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=zs(e,o,Ws,Gs,p,i.props.style);return F.cloneElement(i,{style:r,ref:b,...n})}})});Ks&&(Ks.muiSupportAuto=!0);function qs(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Js(e){let t=Xo(e);return t.body===e?Qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ys(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Xs(e){return parseFloat(Qo(e).getComputedStyle(e).paddingRight)||0}function Zs(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Qs(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zs(e);t&&n&&Ys(e,i)})}function $s(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function ec(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Js(r)){let e=qs(Qo(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Xs(r)+e}px`;let t=Xo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Xs(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Xo(r).body;else{let t=r.parentElement,n=Qo(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function tc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var nc=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ys(e.modalRef,!1);let r=tc(t);Qs(t,e.mount,e.modalRef,r,!0);let i=$s(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=$s(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=ec(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=$s(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Ys(e.modalRef,t),Qs(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Ys(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var ic=rc;function ac(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var oc=ac,sc=`data-mui-focusable`;function cc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${sc}]`):null}var lc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function uc(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function dc(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function fc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||dc(e))}function pc(e){let t=[],n=[];return Array.from(e.querySelectorAll(lc)).forEach((e,r)=>{let i=uc(e);i===-1||!fc(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function mc(){return!0}function hc(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=pc,isEnabled:o=mc,open:s}=e,c=F.useRef(!1),l=F.useRef(null),u=F.useRef(null),d=F.useRef(null),f=F.useRef(null),p=F.useRef(!1),m=F.useRef(null),h=Vs(os(t),m),g=F.useRef(null);F.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),F.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=oc(Xo(m.current)),t=cc(m.current)??m.current;return ic(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),F.useEffect(()=>{if(!s||!m.current)return;let e=Xo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&oc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=oc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(ic(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=oc(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,L.jsxs)(F.Fragment,{children:[(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),F.cloneElement(t,{ref:h,onFocus:_}),(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function J(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function gc(e){return typeof e==`function`?e():e}var _c=F.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=F.useState(null),s=Vs(F.isValidElement(n)?os(n):null,t);if(ei(()=>{i||o(gc(r)||document.body)},[r,i]),ei(()=>{if(a&&!i)return J(t,a),()=>{J(t,null)}},[t,a,i]),i){if(F.isValidElement(n)){let e={ref:s};return F.cloneElement(n,e)}return n}return a&&_s.createPortal(n,a)}),vc=Ri;function yc(e,t,n){return e===void 0||Go(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bc(e,t,n){return typeof e==`function`?e(t,n):e}function xc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Sc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Cc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=R(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=xc({...i,...r}),s=Sc(r),c=Sc(i),l=t(o),u=R(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function wc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=bc(d[e],i),{props:{component:h,...g},internalRef:_}=Cc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vs(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,yc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Tc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Ec={opacity:0,visibility:`hidden`},Dc=F.forwardRef(function(e,t){let n=ho(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=F.useRef(null),y=Hs(v,os(o),t),b=Rs(v,d),x=Rs(v,(e,t)=>{Ls(e);let r=Bs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Rs(v,u),C=Rs(v,m),w=Rs(v,e=>{let t=Bs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Rs(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(Cs,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=zs(e,c,Tc,Ec,h,o.props.style);return F.cloneElement(o,{style:r,ref:y,...n})}})});function Oc(e){return zr(`MuiBackdrop`,e)}Br(`MuiBackdrop`,[`root`,`invisible`]);var kc=e=>{let{classes:t,invisible:n}=e;return ia({root:[`root`,n&&`invisible`]},Oc,t)},Ac=G(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),jc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=kc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=wc(`root`,{elementType:Ac,externalForwardedProps:_,className:R(g.root,i),ownerState:h}),[b,x]=wc(`transition`,{elementType:Dc,externalForwardedProps:_,ownerState:h});return(0,L.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,L.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Mc(e){let t=F.useRef(e);return ei(()=>{t.current=e}),F.useRef((...e)=>(0,t.current)(...e)).current}function Nc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Pc(e){return typeof e==`function`?e():e}function Fc(e){return e?e.props.hasOwnProperty(`in`):!1}var Ic=()=>{},Lc=new nc;function Rc(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=F.useRef({}),f=F.useRef(null),p=F.useRef(null),m=Vs(p,u),[h,g]=F.useState(!l),_=Fc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Xo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Lc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Mc(()=>{let e=Pc(t)||y().body;Lc.add(b(),e),p.current&&x()}),C=()=>Lc.isTopModal(b()),w=Mc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Ys(p.current,v))}),T=F.useCallback(()=>{Lc.remove(b(),v)},[v]);F.useEffect(()=>()=>{T()},[T]),F.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=xc(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Nc(()=>{g(!1),a&&a()},s?.props.onEnter??Ic),onExited:Nc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Ic)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function zc(e){return zr(`MuiModal`,e)}Br(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Bc=e=>{let{open:t,exited:n,classes:r}=e;return ia({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},zc,r)},Vc=G(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Hc=G(jc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Uc=F.forwardRef(function(e,t){let n=qo({name:`MuiModal`,props:e}),{BackdropComponent:r=Hc,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=Rc({...ee,rootRef:t}),ae={...ee,exited:re},oe=Bc(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[N,ce]=wc(`root`,{ref:t,elementType:Vc,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:R(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[le,ue]=wc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:R(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,L.jsx)(_c,{ref:ne,container:l,disablePortal:g,children:(0,L.jsxs)(N,{...ce,children:[!y&&r?(0,L.jsx)(le,{...ue}):null,(0,L.jsx)(hc,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,M)})]})})});function Wc(e){return zr(`MuiPaper`,e)}Br(`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`.split(`.`));var Y=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ia({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Wc,i)},Gc=G(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(vc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Kc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPaper`}),r=ho(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=Y(u);return(0,L.jsx)(Gc,{as:a,ownerState:u,className:R(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${di(`#fff`,Ya(o))}, ${di(`#fff`,Ya(o))})`}},...l.style}})});function qc(e){return zr(`MuiPopover`,e)}Br(`MuiPopover`,[`root`,`paper`]);var X=Tn;function Jc(e){return zr(`MuiSvgIcon`,e)}Br(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Yc=e=>{let{color:t,fontSize:n,classes:r}=e;return ia({root:[`root`,t!==`inherit`&&`color${X(t)}`,`fontSize${X(n)}`]},Jc,r)},Xc=G(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(vc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Zc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=F.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Yc(m);return(0,L.jsxs)(Xc,{as:o,className:R(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,L.jsx)(`title`,{children:u}):null]})});Zc.muiName=`SvgIcon`;function Qc(e,t){function n(t,n){return(0,L.jsx)(Zc,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Zc.muiName,F.memo(F.forwardRef(n))}var $c=aa,el=ei,tl=Mi,nl=Mc;function rl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function il(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{rl(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=R(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=R(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function al(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function ol(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function sl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function cl(e){return typeof e==`function`?e():e}var ll=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`]},qc,t)},ul=G(Uc,{name:`MuiPopover`,slot:`Root`})({}),dl=G(Kc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),fl=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=F.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=ll(w),E=F.useCallback(()=>{if(s===`anchorPosition`)return o;let e=cl(i),t=(e&&e.nodeType===1?e:Zo(C.current).body).getBoundingClientRect();return{top:t.top+al(t,a.vertical),left:t.left+ol(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=F.useCallback(e=>({vertical:al(e,_.vertical),horizontal:ol(e,_.horizontal)}),[_.horizontal,_.vertical]),O=F.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:sl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=$o(cl(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:sl(n)}},[i,s,E,D,f]),[ee,te]=F.useState(p),k=F.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);F.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};F.useEffect(()=>{p&&k()}),F.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),F.useEffect(()=>{if(!p)return;let e=Yo(()=>{k()}),t=$o(cl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=wc(`transition`,{elementType:Ks,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?Zo(cl(i)).body:void 0),[M,{slots:se,slotProps:N,...ce}]=wc(`root`,{ref:t,elementType:ul,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:il(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:R(T.root,l)}),[le,ue]=wc(`paper`,{ref:C,className:T.paper,elementType:dl,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(M,{...ce,...!Go(M)&&{slots:se,slotProps:N,disableScrollLock:x},children:(0,L.jsx)(ie,{...ae,timeout:j,children:(0,L.jsx)(le,{...ue,children:c})})})}),pl={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`},ml={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`},hl=s({background:()=>$,backgroundDark:()=>zl,black:()=>Ql,blueGrey100:()=>ou,blueGrey300:()=>su,blueGrey600:()=>cu,blueGrey900:()=>lu,border:()=>Gl,borderDark:()=>ql,borderGray:()=>Jl,borderLight:()=>Kl,buttonBorder:()=>gu,buttonFocusOutline:()=>au,buttonHoverBg:()=>_u,correct:()=>xl,correctSecondary:()=>Sl,correctTertiary:()=>Cl,correctWithIcon:()=>wl,defaults:()=>Z,disabled:()=>vl,disabledSecondary:()=>yl,disabledText:()=>bl,dropdownBackground:()=>Vl,fadedPrimary:()=>Pl,focusChecked:()=>tu,focusCheckedBorder:()=>nu,focusUnchecked:()=>ru,focusUncheckedBorder:()=>iu,incorrect:()=>Tl,incorrectSecondary:()=>Dl,incorrectWithIcon:()=>El,keyBoardFocusIndicator:()=>hu,keypadButton:()=>uu,keypadButtonHover:()=>pu,keypadButtonOperator:()=>du,keypadButtonOperatorHover:()=>mu,keypadEmptyPlaceholder:()=>fu,missing:()=>Ol,missingWithIcon:()=>kl,primary:()=>Al,primaryDark:()=>Ml,primaryLight:()=>jl,primaryText:()=>Nl,secondary:()=>Fl,secondaryBackground:()=>Bl,secondaryDark:()=>Ll,secondaryLight:()=>Il,secondaryText:()=>Rl,surface:()=>Hl,tableGrid:()=>Yl,tableGridLight:()=>Xl,tableStripe:()=>Zl,tertiary:()=>Ul,tertiaryLight:()=>Wl,text:()=>_l,transparent:()=>eu,v:()=>gl,visualElementsColors:()=>vu,white:()=>$l}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:pa[500],CORRECT_SECONDARY:pa[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ua[500],INCORRECT_SECONDARY:la[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:la[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:ml[500],PRIMARY_LIGHT:ml[200],PRIMARY_DARK:ml[800],SECONDARY:pl.A400,SECONDARY_LIGHT:pl[200],SECONDARY_DARK:pl[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var gl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=gl(`pie`),_l=()=>Q(`text`,Z.TEXT),vl=()=>Q(`disabled`,Z.DISABLED),yl=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),bl=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),xl=()=>Q(`correct`,Z.CORRECT),Sl=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),Cl=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),wl=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),Tl=()=>Q(`incorrect`,Z.INCORRECT),El=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),Dl=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),Ol=()=>Q(`missing`,Z.MISSING),kl=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),Al=()=>Q(`primary`,Z.PRIMARY),jl=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),Ml=()=>Q(`primary-dark`,Z.PRIMARY_DARK),Nl=()=>Q(`primary-text`,`text`,Z.TEXT),Pl=()=>Q(`faded-primary`,Z.FADED_PRIMARY),Fl=()=>Q(`secondary`,Z.SECONDARY),Il=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),Ll=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Rl=()=>Q(`secondary-text`,`text`,Z.TEXT),$=()=>Q(`background`,Z.BACKGROUND),zl=()=>Q(`background-dark`,Z.BACKGROUND_DARK),Bl=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),Vl=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Hl=()=>Q(`surface`,Z.SURFACE),Ul=()=>Q(`tertiary`,Z.TERTIARY),Wl=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Gl=()=>Q(`border`,Z.BORDER),Kl=()=>Q(`border-light`,Z.BORDER_LIGHT),ql=()=>Q(`border-dark`,Z.BORDER_DARK),Jl=()=>Q(`border-gray`,Z.BORDER_GRAY),Yl=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),Xl=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),Zl=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),Ql=()=>Q(`black`,Z.BLACK),$l=()=>Q(`white`,Z.WHITE),eu=()=>Z.TRANSPARENT,tu=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),nu=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),ru=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),iu=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),au=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),ou=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),su=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),cu=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),lu=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),uu=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),du=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),fu=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),pu=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),mu=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),hu=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),gu=()=>Q(`button-border`,Z.BUTTON_BORDER),_u=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),vu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},yu=G(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),bu=G(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${vl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${xl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Tl()})`}}),xu=G(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Su=class extends F.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=F.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(Ds,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(xu,{ref:this.nodeRef,children:(0,L.jsx)(yu,{children:(0,L.jsx)(bu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(Is,{children:this.renderFeedback()})})}};function Cu(){return()=>{}}var wu=s({Correct:()=>Au,Incorrect:()=>ju,NothingSubmitted:()=>Nu,PartiallyCorrect:()=>Mu}),Tu=Cu(`pie-libs:render-ui:response-indicators`),Eu=G(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Du=G(fl)({cursor:`pointer`}),Ou=G(`div`)({padding:`0`,borderRadius:`4px`}),ku=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Tu(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,L.jsxs)(Eu,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(Du,{PaperComponent:Ou,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(Su,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Au=ku(Po,`correct`),ju=ku(Lo,`incorrect`),Mu=ku(Wo,`partially-correct`),Nu=ku(Vo,`nothing-submitted`);function Pu(e){return zr(`MuiCollapse`,e)}Br(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Fu=e=>{let{orientation:t,classes:n}=e;return ia({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Pu,n)},Iu=G(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(vc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.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`}}]}))),Lu=G(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ru=G(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),zu=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ra.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Fu(C),T=ho(),E=as(),D=F.useRef(null),O=F.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=F.useRef(null),ne=Hs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Rs(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Rs(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=Bs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Rs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Rs(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Rs(A,m),se=Rs(A,e=>{let t=j(),{duration:n,easing:r}=Bs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),N=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=wc(`root`,{ref:ne,className:R(w.root,a),elementType:Iu,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[de,fe]=wc(`wrapper`,{ref:D,className:w.wrapper,elementType:Lu,externalForwardedProps:ce,ownerState:C}),[pe,me]=wc(`wrapperInner`,{className:w.wrapperInner,elementType:Ru,externalForwardedProps:ce,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:N,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(le,{...ue,className:R(ue.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(de,{...fe,ownerState:r,children:(0,L.jsx)(pe,{...me,ownerState:r,children:i})})})}})});zu&&(zu.muiSupportAuto=!0);var Bu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Vu=null;function Hu(e){return typeof window>`u`||window.MathJax?.typesetPromise?Promise.resolve():Vu||(Vu=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Bu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),Vu)}function Uu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Wu(e={}){return async t=>{if(await Hu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Uu()}}var Gu=`@pie-lib/math-rendering`,Ku=null;function qu(){return Ku||=Wu({accessibility:!0,useSingleDollar:!0}),Ku}function Ju(){if(typeof window>`u`)return null;let e=window[Gu];return typeof e?.renderMath==`function`?e:null}var Yu=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Ju();return r?await r.renderMath?.(n):await qu()(n),t?n.innerHTML:void 0},Xu=G(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Zu=G(zu)(({theme:e})=>({paddingTop:e.spacing(2)})),Qu=class extends F.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Yu(this.root)}componentDidUpdate(){Yu(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,L.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,L.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,L.jsx)(Xu,{children:r})}),(0,L.jsx)(Zu,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function $u(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var ed=class e{static create(){return new e}static use(){let t=ts(e.create).current,[n,r]=F.useState(!1);return t.shouldMount=n,t.setShouldMount=r,F.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nd(),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(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function td(){return ed.use()}function nd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function rd(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=F.useState(!1),f=R(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=R(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),F.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,L.jsx)(`span`,{className:f,style:p,children:(0,L.jsx)(`span`,{className:m})})}var id=Br(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),ad=550,od=Lt`
45
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Bo.propTypes={fill:y.string.isRequired};var Vo=class extends F.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),feedback:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),square:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),open:{check:(0,L.jsx)(q,{children:(0,L.jsx)(Ro,{fill:n})}),emoji:(0,L.jsx)(q,{children:(0,L.jsx)(Bo,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};Vo.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},Vo.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Ho=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,L.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,L.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Ho.propTypes={fill:y.string.isRequired};var Uo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,L.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Uo.propTypes={fill:y.string.isRequired};var Wo=jo(Ho,Uo);Wo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Wo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Go(e){return typeof e==`string`}function Ko(){return Pr}function qo(e){return Oi(e)}function Jo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Yo=Jo;function Xo(e){return e&&e.ownerDocument||document}var Zo=Xo;function Qo(e){return Xo(e).defaultView||window}var $o=Qo,es={};function ts(e,t){let n=F.useRef(es);return n.current===es&&(n.current=e(t)),n}var ns=[];function rs(e){F.useEffect(e,ns)}var is=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function as(){let e=ts(is.create).current;return rs(e.disposeEffect),e}function os(e){return e?.ref||null}function ss(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cs(e,t)}function ls(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t)}function us(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ds(e,t){e.classList?e.classList.add(t):us(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function fs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ps(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=fs(e.className,t):e.setAttribute(`class`,fs(e.className&&e.className.baseVal||``,t))}var ms={disabled:!1},hs=F.createContext(null),gs=function(e){return e.scrollTop},_s=l(h()),vs=`unmounted`,ys=`exited`,bs=`entering`,xs=`entered`,Ss=`exiting`,Cs=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=ys,r.appearStatus=bs):o=xs:o=t.unmountOnExit||t.mountOnEnter?vs:ys,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ys}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=bs):(n===`entering`||n===`entered`)&&(t=Ss)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this);n&&gs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:vs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[_s.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||ms.disabled){this.safeSetState({status:xs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:bs},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:xs},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:_s.findDOMNode(this);if(!t||ms.disabled){this.safeSetState({status:ys},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Ss},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ys},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ss(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return F.createElement(hs.Provider,{value:null},typeof n==`function`?n(e,r):F.cloneElement(F.Children.only(n),r))},t}(F.Component);Cs.contextType=hs,Cs.propTypes={};function ws(){}Cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ws,onEntering:ws,onEntered:ws,onExit:ws,onExiting:ws,onExited:ws},Cs.UNMOUNTED=vs,Cs.EXITED=ys,Cs.ENTERING=bs,Cs.ENTERED=xs,Cs.EXITING=Ss;var Ts=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ds(e,t)})},Es=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ps(e,t)})},Ds=function(e){ls(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&gs(e),r&&(this.appliedClasses[t][n]=r,Ts(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Es(e,r),i&&Es(e,i),a&&Es(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ss(e,[`classNames`]);return F.createElement(Cs,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(F.Component);Ds.defaultProps={classNames:``},Ds.propTypes={};function Os(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ks(e,t){var n=function(e){return t&&(0,F.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&F.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function As(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function js(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ms(e,t){return ks(e.children,function(n){return(0,F.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:js(n,`appear`,e),enter:js(n,`enter`,e),exit:js(n,`exit`,e)})})}function Ns(e,t,n){var r=ks(e.children),i=As(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,F.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,F.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,F.cloneElement)(o,{in:!1}):c&&s&&(0,F.isValidElement)(l)&&(i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}))}}),i}var Ps=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Fs={component:`div`,childFactory:function(e){return e}},Is=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Os(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Ms(e,r):Ns(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=ks(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ss(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Ps(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?F.createElement(hs.Provider,{value:i},a):F.createElement(hs.Provider,{value:i},F.createElement(t,r,a))},t}(F.Component);Is.propTypes={},Is.defaultProps=Fs;var Ls=e=>e.scrollTop;function Rs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function zs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Bs(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Vs(...e){let t=F.useRef(void 0),n=F.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return F.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Hs=Vs;function Us(e){return`scale(${e}, ${e**2})`}var Ws={entering:{opacity:1,transform:Us(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Us(.75)},exited:{opacity:0,transform:Us(.75)}},Gs={opacity:0,transform:Us(.75),visibility:`hidden`},Ks=F.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=as(),_=F.useRef(),v=ho(),y=F.useRef(null),b=Hs(y,os(i),t),x=Rs(y,l),S=Rs(y,(e,t)=>{Ls(e);let{duration:n,delay:r,easing:i}=Bs({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=Rs(y,c),w=Rs(y,f),T=Rs(y,e=>{let{duration:t,delay:n,easing:r}=Bs({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Us(.75),u&&u(e)}),E=Rs(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(Cs,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=zs(e,o,Ws,Gs,p,i.props.style);return F.cloneElement(i,{style:r,ref:b,...n})}})});Ks&&(Ks.muiSupportAuto=!0);function qs(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Js(e){let t=Xo(e);return t.body===e?Qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ys(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Xs(e){return parseFloat(Qo(e).getComputedStyle(e).paddingRight)||0}function Zs(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Qs(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zs(e);t&&n&&Ys(e,i)})}function $s(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function ec(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Js(r)){let e=qs(Qo(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Xs(r)+e}px`;let t=Xo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Xs(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Xo(r).body;else{let t=r.parentElement,n=Qo(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function tc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var nc=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ys(e.modalRef,!1);let r=tc(t);Qs(t,e.mount,e.modalRef,r,!0);let i=$s(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=$s(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=ec(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=$s(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Ys(e.modalRef,t),Qs(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Ys(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var ic=rc;function ac(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var oc=ac,sc=`data-mui-focusable`;function cc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${sc}]`):null}var lc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function uc(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function dc(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function fc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||dc(e))}function pc(e){let t=[],n=[];return Array.from(e.querySelectorAll(lc)).forEach((e,r)=>{let i=uc(e);i===-1||!fc(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function mc(){return!0}function hc(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=pc,isEnabled:o=mc,open:s}=e,c=F.useRef(!1),l=F.useRef(null),u=F.useRef(null),d=F.useRef(null),f=F.useRef(null),p=F.useRef(!1),m=F.useRef(null),h=Vs(os(t),m),g=F.useRef(null);F.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),F.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=oc(Xo(m.current)),t=cc(m.current)??m.current;return ic(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),F.useEffect(()=>{if(!s||!m.current)return;let e=Xo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&oc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=oc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(ic(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=oc(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,L.jsxs)(F.Fragment,{children:[(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),F.cloneElement(t,{ref:h,onFocus:_}),(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function J(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function gc(e){return typeof e==`function`?e():e}var _c=F.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=F.useState(null),s=Vs(F.isValidElement(n)?os(n):null,t);if(ei(()=>{i||o(gc(r)||document.body)},[r,i]),ei(()=>{if(a&&!i)return J(t,a),()=>{J(t,null)}},[t,a,i]),i){if(F.isValidElement(n)){let e={ref:s};return F.cloneElement(n,e)}return n}return a&&_s.createPortal(n,a)}),vc=Ri;function yc(e,t,n){return e===void 0||Go(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bc(e,t,n){return typeof e==`function`?e(t,n):e}function xc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Sc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Cc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=R(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=xc({...i,...r}),s=Sc(r),c=Sc(i),l=t(o),u=R(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function wc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=bc(d[e],i),{props:{component:h,...g},internalRef:_}=Cc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vs(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,yc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Tc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Ec={opacity:0,visibility:`hidden`},Dc=F.forwardRef(function(e,t){let n=ho(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=F.useRef(null),y=Hs(v,os(o),t),b=Rs(v,d),x=Rs(v,(e,t)=>{Ls(e);let r=Bs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Rs(v,u),C=Rs(v,m),w=Rs(v,e=>{let t=Bs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Rs(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(Cs,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=zs(e,c,Tc,Ec,h,o.props.style);return F.cloneElement(o,{style:r,ref:y,...n})}})});function Oc(e){return zr(`MuiBackdrop`,e)}Br(`MuiBackdrop`,[`root`,`invisible`]);var kc=e=>{let{classes:t,invisible:n}=e;return ia({root:[`root`,n&&`invisible`]},Oc,t)},Ac=G(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),jc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=kc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=wc(`root`,{elementType:Ac,externalForwardedProps:_,className:R(g.root,i),ownerState:h}),[b,x]=wc(`transition`,{elementType:Dc,externalForwardedProps:_,ownerState:h});return(0,L.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,L.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Mc(e){let t=F.useRef(e);return ei(()=>{t.current=e}),F.useRef((...e)=>(0,t.current)(...e)).current}function Nc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Pc(e){return typeof e==`function`?e():e}function Fc(e){return e?e.props.hasOwnProperty(`in`):!1}var Ic=()=>{},Lc=new nc;function Rc(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=F.useRef({}),f=F.useRef(null),p=F.useRef(null),m=Vs(p,u),[h,g]=F.useState(!l),_=Fc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Xo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Lc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Mc(()=>{let e=Pc(t)||y().body;Lc.add(b(),e),p.current&&x()}),C=()=>Lc.isTopModal(b()),w=Mc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Ys(p.current,v))}),T=F.useCallback(()=>{Lc.remove(b(),v)},[v]);F.useEffect(()=>()=>{T()},[T]),F.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=xc(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Nc(()=>{g(!1),a&&a()},s?.props.onEnter??Ic),onExited:Nc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Ic)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function zc(e){return zr(`MuiModal`,e)}Br(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Bc=e=>{let{open:t,exited:n,classes:r}=e;return ia({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},zc,r)},Vc=G(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Hc=G(jc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Uc=F.forwardRef(function(e,t){let n=qo({name:`MuiModal`,props:e}),{BackdropComponent:r=Hc,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=Rc({...ee,rootRef:t}),ae={...ee,exited:re},oe=Bc(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[N,ce]=wc(`root`,{ref:t,elementType:Vc,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:R(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[le,ue]=wc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:R(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,L.jsx)(_c,{ref:ne,container:l,disablePortal:g,children:(0,L.jsxs)(N,{...ce,children:[!y&&r?(0,L.jsx)(le,{...ue}):null,(0,L.jsx)(hc,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,M)})]})})});function Wc(e){return zr(`MuiPaper`,e)}Br(`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`.split(`.`));var Y=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ia({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Wc,i)},Gc=G(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(vc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Kc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPaper`}),r=ho(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=Y(u);return(0,L.jsx)(Gc,{as:a,ownerState:u,className:R(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${di(`#fff`,Ya(o))}, ${di(`#fff`,Ya(o))})`}},...l.style}})});function qc(e){return zr(`MuiPopover`,e)}Br(`MuiPopover`,[`root`,`paper`]);var X=Tn;function Jc(e){return zr(`MuiSvgIcon`,e)}Br(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Yc=e=>{let{color:t,fontSize:n,classes:r}=e;return ia({root:[`root`,t!==`inherit`&&`color${X(t)}`,`fontSize${X(n)}`]},Jc,r)},Xc=G(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(vc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Zc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=F.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Yc(m);return(0,L.jsxs)(Xc,{as:o,className:R(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,L.jsx)(`title`,{children:u}):null]})});Zc.muiName=`SvgIcon`;function Qc(e,t){function n(t,n){return(0,L.jsx)(Zc,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Zc.muiName,F.memo(F.forwardRef(n))}var $c=aa,el=ei,tl=Mi,nl=Mc;function rl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function il(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{rl(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=R(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=R(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function al(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function ol(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function sl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function cl(e){return typeof e==`function`?e():e}var ll=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`]},qc,t)},ul=G(Uc,{name:`MuiPopover`,slot:`Root`})({}),dl=G(Kc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),fl=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=F.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=ll(w),E=F.useCallback(()=>{if(s===`anchorPosition`)return o;let e=cl(i),t=(e&&e.nodeType===1?e:Zo(C.current).body).getBoundingClientRect();return{top:t.top+al(t,a.vertical),left:t.left+ol(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=F.useCallback(e=>({vertical:al(e,_.vertical),horizontal:ol(e,_.horizontal)}),[_.horizontal,_.vertical]),O=F.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:sl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=$o(cl(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:sl(n)}},[i,s,E,D,f]),[ee,te]=F.useState(p),k=F.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);F.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};F.useEffect(()=>{p&&k()}),F.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),F.useEffect(()=>{if(!p)return;let e=Yo(()=>{k()}),t=$o(cl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=wc(`transition`,{elementType:Ks,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?Zo(cl(i)).body:void 0),[M,{slots:se,slotProps:N,...ce}]=wc(`root`,{ref:t,elementType:ul,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:il(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:R(T.root,l)}),[le,ue]=wc(`paper`,{ref:C,className:T.paper,elementType:dl,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(M,{...ce,...!Go(M)&&{slots:se,slotProps:N,disableScrollLock:x},children:(0,L.jsx)(ie,{...ae,timeout:j,children:(0,L.jsx)(le,{...ue,children:c})})})}),pl={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`},ml={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`},hl=s({background:()=>$,backgroundDark:()=>zl,black:()=>Ql,blueGrey100:()=>ou,blueGrey300:()=>su,blueGrey600:()=>cu,blueGrey900:()=>lu,border:()=>Gl,borderDark:()=>ql,borderGray:()=>Jl,borderLight:()=>Kl,buttonBorder:()=>gu,buttonFocusOutline:()=>au,buttonHoverBg:()=>_u,correct:()=>xl,correctSecondary:()=>Sl,correctTertiary:()=>Cl,correctWithIcon:()=>wl,defaults:()=>Z,disabled:()=>vl,disabledSecondary:()=>yl,disabledText:()=>bl,dropdownBackground:()=>Vl,fadedPrimary:()=>Pl,focusChecked:()=>tu,focusCheckedBorder:()=>nu,focusUnchecked:()=>ru,focusUncheckedBorder:()=>iu,incorrect:()=>Tl,incorrectSecondary:()=>Dl,incorrectWithIcon:()=>El,keyBoardFocusIndicator:()=>hu,keypadButton:()=>uu,keypadButtonHover:()=>pu,keypadButtonOperator:()=>du,keypadButtonOperatorHover:()=>mu,keypadEmptyPlaceholder:()=>fu,missing:()=>Ol,missingWithIcon:()=>kl,primary:()=>Al,primaryDark:()=>Ml,primaryLight:()=>jl,primaryText:()=>Nl,secondary:()=>Fl,secondaryBackground:()=>Bl,secondaryDark:()=>Ll,secondaryLight:()=>Il,secondaryText:()=>Rl,surface:()=>Hl,tableGrid:()=>Yl,tableGridLight:()=>Xl,tableStripe:()=>Zl,tertiary:()=>Ul,tertiaryLight:()=>Wl,text:()=>_l,transparent:()=>eu,v:()=>gl,visualElementsColors:()=>vu,white:()=>$l}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:pa[500],CORRECT_SECONDARY:pa[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ua[500],INCORRECT_SECONDARY:la[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:la[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:ml[500],PRIMARY_LIGHT:ml[200],PRIMARY_DARK:ml[800],SECONDARY:pl.A400,SECONDARY_LIGHT:pl[200],SECONDARY_DARK:pl[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var gl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=gl(`pie`),_l=()=>Q(`text`,Z.TEXT),vl=()=>Q(`disabled`,Z.DISABLED),yl=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),bl=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),xl=()=>Q(`correct`,Z.CORRECT),Sl=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),Cl=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),wl=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),Tl=()=>Q(`incorrect`,Z.INCORRECT),El=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),Dl=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),Ol=()=>Q(`missing`,Z.MISSING),kl=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),Al=()=>Q(`primary`,Z.PRIMARY),jl=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),Ml=()=>Q(`primary-dark`,Z.PRIMARY_DARK),Nl=()=>Q(`primary-text`,`text`,Z.TEXT),Pl=()=>Q(`faded-primary`,Z.FADED_PRIMARY),Fl=()=>Q(`secondary`,Z.SECONDARY),Il=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),Ll=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Rl=()=>Q(`secondary-text`,`text`,Z.TEXT),$=()=>Q(`background`,Z.BACKGROUND),zl=()=>Q(`background-dark`,Z.BACKGROUND_DARK),Bl=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),Vl=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Hl=()=>Q(`surface`,Z.SURFACE),Ul=()=>Q(`tertiary`,Z.TERTIARY),Wl=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Gl=()=>Q(`border`,Z.BORDER),Kl=()=>Q(`border-light`,Z.BORDER_LIGHT),ql=()=>Q(`border-dark`,Z.BORDER_DARK),Jl=()=>Q(`border-gray`,Z.BORDER_GRAY),Yl=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),Xl=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),Zl=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),Ql=()=>Q(`black`,Z.BLACK),$l=()=>Q(`white`,Z.WHITE),eu=()=>Z.TRANSPARENT,tu=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),nu=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),ru=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),iu=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),au=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),ou=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),su=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),cu=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),lu=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),uu=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),du=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),fu=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),pu=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),mu=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),hu=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),gu=()=>Q(`button-border`,Z.BUTTON_BORDER),_u=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),vu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},yu=G(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),bu=G(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${vl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${xl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Tl()})`}}),xu=G(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Su=class extends F.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=F.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(Ds,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(xu,{ref:this.nodeRef,children:(0,L.jsx)(yu,{children:(0,L.jsx)(bu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(Is,{children:this.renderFeedback()})})}};function Cu(){return()=>{}}var wu=s({Correct:()=>Au,Incorrect:()=>ju,NothingSubmitted:()=>Nu,PartiallyCorrect:()=>Mu}),Tu=Cu(`pie-libs:render-ui:response-indicators`),Eu=G(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Du=G(fl)({cursor:`pointer`}),Ou=G(`div`)({padding:`0`,borderRadius:`4px`}),ku=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Tu(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,L.jsxs)(Eu,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(Du,{PaperComponent:Ou,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(Su,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Au=ku(Po,`correct`),ju=ku(Lo,`incorrect`),Mu=ku(Wo,`partially-correct`),Nu=ku(Vo,`nothing-submitted`);function Pu(e){return zr(`MuiCollapse`,e)}Br(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Fu=e=>{let{orientation:t,classes:n}=e;return ia({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Pu,n)},Iu=G(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(vc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.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`}}]}))),Lu=G(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ru=G(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),zu=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ra.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Fu(C),T=ho(),E=as(),D=F.useRef(null),O=F.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=F.useRef(null),ne=Hs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Rs(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Rs(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=Bs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Rs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Rs(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Rs(A,m),se=Rs(A,e=>{let t=j(),{duration:n,easing:r}=Bs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),N=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=wc(`root`,{ref:ne,className:R(w.root,a),elementType:Iu,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[de,fe]=wc(`wrapper`,{ref:D,className:w.wrapper,elementType:Lu,externalForwardedProps:ce,ownerState:C}),[pe,me]=wc(`wrapperInner`,{className:w.wrapperInner,elementType:Ru,externalForwardedProps:ce,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:N,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(le,{...ue,className:R(ue.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(de,{...fe,ownerState:r,children:(0,L.jsx)(pe,{...me,ownerState:r,children:i})})})}})});zu&&(zu.muiSupportAuto=!0);var Bu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Vu=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`);function Hu(e){if(typeof window>`u`||window.MathJax?.typesetPromise)return Promise.resolve();let t=globalThis,n=t[Vu];if(n)return n;let r=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Bu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)});return t[Vu]=r,r}function Uu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Wu(e={}){return async t=>{if(await Hu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Uu()}}var Gu=`@pie-lib/math-rendering`,Ku=null;function qu(){return Ku||=Wu({accessibility:!0,useSingleDollar:!0}),Ku}function Ju(){if(typeof window>`u`)return null;let e=window[Gu];return typeof e?.renderMath==`function`?e:null}var Yu=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Ju();return r?await r.renderMath?.(n):await qu()(n),t?n.innerHTML:void 0},Xu=G(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Zu=G(zu)(({theme:e})=>({paddingTop:e.spacing(2)})),Qu=class extends F.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Yu(this.root)}componentDidUpdate(){Yu(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,L.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,L.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,L.jsx)(Xu,{children:r})}),(0,L.jsx)(Zu,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function $u(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var ed=class e{static create(){return new e}static use(){let t=ts(e.create).current,[n,r]=F.useState(!1);return t.shouldMount=n,t.setShouldMount=r,F.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nd(),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(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function td(){return ed.use()}function nd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function rd(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=F.useState(!1),f=R(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=R(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),F.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,L.jsx)(`span`,{className:f,style:p,children:(0,L.jsx)(`span`,{className:m})})}var id=Br(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),ad=550,od=Lt`
46
46
  0% {
47
47
  transform: scale(0);
48
48
  opacity: 0.1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/multi-trait-rubric",
3
- "version": "8.1.2-next.16",
3
+ "version": "8.1.2-next.17",
4
4
  "description": "React implementation of multi-trait-rubric element synced from pie-elements",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,27 +9,26 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@emotion/react": "^11.14.0",
12
- "@emotion/style": "^0.8.0",
13
12
  "@mui/icons-material": "^7.3.4",
14
13
  "@mui/material": "^7.3.4",
15
- "@pie-lib/render-ui": "6.2.0-next.45",
14
+ "@pie-lib/render-ui": "6.2.0-next.46",
16
15
  "clsx": "^2.1.1",
17
16
  "prop-types": "^15.8.1",
18
- "@pie-lib/editable-html-tip-tap": "3.0.0-next.39",
17
+ "@pie-lib/editable-html-tip-tap": "3.0.0-next.40",
19
18
  "@pie-element/shared-configure-events": "0.1.1-next.0",
20
19
  "@pie-element/shared-lodash": "0.1.1-next.2",
21
- "@pie-lib/config-ui": "14.0.0-next.39",
22
- "@pie-lib/drag": "4.1.0-next.45",
20
+ "@pie-lib/config-ui": "14.0.0-next.40",
21
+ "@pie-lib/drag": "4.1.0-next.46",
23
22
  "debug": "^4.4.3",
24
23
  "@dnd-kit/core": "^6.3.1",
25
24
  "@pie-element/shared-player-events": "0.1.1-next.1",
26
- "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.1",
25
+ "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.2",
27
26
  "react": "^18.2.0",
28
27
  "react-dom": "^18.2.0"
29
28
  },
30
29
  "peerDependencies": {
31
- "react": "^18.0.0",
32
- "react-dom": "^18.0.0"
30
+ "react": "^18.2.0 || ^19.0.0",
31
+ "react-dom": "^18.2.0 || ^19.0.0"
33
32
  },
34
33
  "exports": {
35
34
  ".": {
@@ -68,7 +67,8 @@
68
67
  "./runtime-support": {
69
68
  "types": "./dist/runtime-support.d.ts",
70
69
  "default": "./dist/runtime-support.js"
71
- }
70
+ },
71
+ "./package.json": "./package.json"
72
72
  },
73
73
  "type": "module",
74
74
  "main": "./dist/index.js",