@pie-element/multi-trait-rubric 8.1.2-next.27 → 8.1.2-next.28

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.
@@ -16,7 +16,7 @@
16
16
  (document.head || document.documentElement).appendChild(style);
17
17
  }
18
18
  })([["cb0f0518b022d739", (url) => "@font-face{font-family:Symbola;src:local(Symbola Regular),local(Symbola),url(\"" + url(() => new URL("../assets/Symbola-4c507403.woff2", import.meta.url)) + "\")format(\"woff2\")}.mq-editable-field{display:inline-block}.mq-editable-field .mq-cursor{z-index:1;border-left:1px solid #000;margin-left:-1px;padding:0;display:inline-block;position:relative}.mq-editable-field .mq-cursor.mq-blink{visibility:hidden}.mq-editable-field,.mq-math-mode .mq-editable-field{border:1px solid gray}.mq-editable-field.mq-focused,.mq-math-mode .mq-editable-field.mq-focused{border-color:#709ac0;border-radius:1px;box-shadow:0 0 1px 2px #8bd,inset 0 0 2px #6ae}.mq-math-mode .mq-editable-field{margin:1px}.mq-editable-field .mq-latex-command-input{color:inherit;border:1px solid gray;margin-left:2px;margin-right:1px;padding-right:1px;font-family:Courier New,monospace}.mq-editable-field .mq-latex-command-input.mq-empty{background:0 0}.mq-editable-field .mq-latex-command-input.mq-hasCursor{border-color:activeborder}.mq-editable-field.mq-empty:after,.mq-editable-field.mq-text-mode:after,.mq-math-mode .mq-empty:after,.mq-editable-field .mq-cursor:only-child:after,.mq-editable-field .mq-textarea+.mq-cursor:last-child:after{visibility:hidden;content:\"c\"}.mq-editable-field .mq-text-mode .mq-cursor:only-child:after{content:\"\"}.mq-editable-field.mq-text-mode{overflow:auto hidden}.mq-root-block,.mq-math-mode .mq-root-block{box-sizing:border-box;white-space:nowrap;vertical-align:middle;width:100%;padding:2px;display:inline-block;overflow:hidden}.mq-math-mode{font-variant:normal;font-size:115%;font-style:normal;font-weight:400;line-height:1;display:inline-block}.mq-math-mode .mq-non-leaf,.mq-math-mode .mq-scaled{display:inline-block}.mq-math-mode var,.mq-math-mode .mq-text-mode,.mq-math-mode .mq-nonSymbola{font-family:Times New Roman,Symbola,serif;line-height:.9}.mq-math-mode *{font-size:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;box-sizing:border-box;border-color:#000;margin:0;padding:0}.mq-math-mode .mq-empty,.mq-math-mode.mq-empty{background:0 0}.mq-math-mode .mq-text-mode{white-space:pre;display:inline-block}.mq-math-mode .mq-text-mode.mq-hasCursor{min-width:1ex;margin:0 -.1em;padding:0 .1em;box-shadow:inset 0 .1em .2em #a9a9a9}.mq-math-mode .mq-font{font:1em Times New Roman,Symbola,serif}.mq-math-mode .mq-font *{font-family:inherit;font-style:inherit}.mq-math-mode b,.mq-math-mode b.mq-font{font-weight:bolder}.mq-math-mode var,.mq-math-mode i,.mq-math-mode i.mq-font{font-style:italic}.mq-math-mode var.mq-f{margin-left:.1em;margin-right:.2em}.mq-math-mode .mq-roman var.mq-f{margin:0}.mq-math-mode big{font-size:200%}.mq-math-mode .mq-int>big{vertical-align:-.16em;display:inline-block;transform:scaleX(.7)}.mq-math-mode .mq-int>.mq-supsub{vertical-align:-1.1em;padding-right:.2em;font-size:80%}.mq-math-mode .mq-int>.mq-supsub>.mq-sup>.mq-sup-inner{vertical-align:1.3em}.mq-math-mode .mq-int>.mq-supsub>.mq-sub{margin-left:-.35em}.mq-math-mode .mq-roman{font-style:normal}.mq-math-mode .mq-sans-serif{font-family:sans-serif,Symbola,serif}.mq-math-mode .mq-monospace{font-family:monospace,Symbola,serif}.mq-math-mode .mq-overleftrightarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overline .mq-overline-inner{text-align:center;border-top:.14em solid #4d4d4d;margin-left:.1em;padding-top:.2em;padding-right:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-right,.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-left{display:none}.mq-math-mode .mq-longdiv{padding-top:.2em}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border{border-top-right-radius:100em;border-bottom-right-radius:100em;width:2px;max-width:2px;margin-right:-.12em;padding-top:.2em;font-size:1.4em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner{text-align:center;border-top:1px solid gray;border-radius:0 0 0 10px;min-width:1em;margin-left:-.2em;margin-right:.15em;padding-top:.19em;padding-left:.44em;font-size:1em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner .mq-empty{min-width:1.5em;display:inline-block}.mq-math-mode .mq-underline{border-bottom:1px solid #000;margin-bottom:1px}.mq-math-mode .mq-underline.mq-empty{min-width:1em}.mq-math-mode .mq-overarc{-moz-border-radius-topright:50% .3em;-moz-border-radius-topleft:50% .3em;border-top:1px solid #000;border-top-left-radius:50% .3em;border-top-right-radius:50% .3em;margin-top:1px;padding-top:.15em}.mq-math-mode .mq-overarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:none;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-right{display:none}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-left{display:block}.mq-math-mode .mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-math-mode .mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-math-mode .mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-xarrow{text-align:center;vertical-align:.9em;padding:0 .2em;font-size:70%;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-over{border-bottom:1px solid #000;padding:.1em .1em .2em;display:block;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-under{float:left;margin-bottom:.2em;padding:0 .1em .2em;position:relative;top:.2em}.mq-math-mode .mq-xarrow .mq-xarrow-over:before{content:\"➤\";height:1em;font-size:.6em;display:block;position:absolute;bottom:-.62em;right:-.3em}.mq-math-mode .mq-xarrow.mq-arrow-left .mq-xarrow-over:before{filter:FlipH;-ms-filter:\"FlipH\";left:-.3em;right:auto;transform:scaleX(-1)}.mq-math-mode .mq-binary-operator{padding:0 .2em;display:inline-block}.mq-math-mode .mq-supsub{text-align:left;vertical-align:-.5em;font-size:90%}.mq-math-mode .mq-supsub.mq-sup-only{vertical-align:.5em}.mq-math-mode .mq-supsub.mq-sup-only .mq-sup{vertical-align:text-bottom;display:inline-block}.mq-math-mode .mq-supsub .mq-sup{display:block}.mq-math-mode .mq-supsub .mq-sub{float:left;display:block}.mq-math-mode .mq-supsub .mq-binary-operator{padding:0 .1em}.mq-math-mode .mq-supsub .mq-fraction{font-size:70%}.mq-math-mode sup.mq-nthroot{vertical-align:.8em;min-width:.5em;margin-left:.2em;margin-right:-.6em;font-size:80%}.mq-math-mode .mq-paren{vertical-align:top;transform-origin:50% .06em;padding:0 .1em}.mq-math-mode .mq-paren.mq-ghost{color:silver}.mq-math-mode .mq-paren+span{margin-top:.1em;margin-bottom:.1em}.mq-math-mode .mq-array{vertical-align:middle;text-align:center}.mq-math-mode .mq-array>span{display:block}.mq-math-mode .mq-operator-name{font-family:Symbola,Times New Roman,serif;font-style:normal;line-height:.9}.mq-math-mode var.mq-operator-name.mq-first{padding-left:.2em}.mq-math-mode var.mq-operator-name.mq-last,.mq-math-mode .mq-supsub.mq-after-operator-name{padding-right:.2em}.mq-math-mode .mq-fraction{text-align:center;vertical-align:-.4em;padding:0 .2em;font-size:90%}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator{display:-moz-groupbox}.mq-math-mode x:-moz-any-link{display:-moz-groupbox}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator,.mq-math-mode x:default{display:inline-block}.mq-math-mode x:-moz-any-link{display:inline-block}.mq-math-mode .mq-underset.mq-tilde-vector .mq-under{line-height:.6em}.mq-math-mode .mq-numerator,.mq-math-mode .mq-denominator,.mq-math-mode .mq-dot-recurring,.mq-math-mode .mq-over,.mq-math-mode .mq-under{display:block}.mq-math-mode .mq-numerator,.mq-math-mode .mq-over{margin-bottom:.2em;padding:0 .1em}.mq-math-mode .mq-denominator{float:right;border-top:1px solid;width:100%;padding:.3em .1em .1em}.mq-math-mode .mq-dot-recurring{text-align:center;height:.6em}.mq-math-mode .mq-overunder{text-align:center;position:relative;top:.01em}.mq-math-mode .mq-overunder .mq-font{font-family:inherit}.mq-math-mode .mq-overunder.mq-underset{vertical-align:text-top}.mq-math-mode .mq-overunder.mq-underset .mq-under,.mq-math-mode .mq-overunder.mq-overset .mq-over{font-size:.7em;display:block}.mq-math-mode .mq-sqrt-prefix{vertical-align:top;transform-origin:top;padding-top:0;position:relative;top:.1em}.mq-math-mode .mq-sqrt-stem{border-top:1px solid;margin-top:1px;margin-right:.1em;padding-top:1px;padding-left:.15em;padding-right:.2em}.mq-math-mode .mq-diacritic-above{text-align:center;line-height:.4em;display:block}.mq-math-mode .mq-diacritic-stem{text-align:center;display:block}.mq-math-mode .mq-hat-prefix{text-align:center;margin-bottom:-.7em;line-height:.95em;display:block;transform:scaleX(1.5)}.mq-math-mode .mq-hat-stem{display:block}.mq-math-mode .mq-large-operator{vertical-align:-.2em;text-align:center;vertical-align:middle;padding:.2em}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator big,.mq-math-mode .mq-large-operator .mq-to{display:block}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator .mq-to{font-size:80%}.mq-math-mode .mq-large-operator .mq-from{float:right;width:100%}.mq-math-mode .mq-lim{text-align:center}.mq-math-mode .mq-lim span{display:block}.mq-math-mode .mq-lim .mq-approaches{float:right;width:100%;font-size:80%}.mq-math-mode .mq-lim .mq-approaches span>span{display:inline}.mq-math-mode .mq-matrix{vertical-align:middle;margin-left:.1em;margin-right:.1em}.mq-math-mode .mq-matrix table{border-spacing:3px;border-collapse:separate;border-bottom:none;width:auto}.mq-math-mode .mq-matrix table.mq-rows-1{vertical-align:middle;margin-bottom:1px}.mq-math-mode .mq-matrix td{vertical-align:baseline;border:1px dotted #fff;width:auto;padding:.1em .3em}.mq-math-mode .mq-matrix td.mq-empty{border:1px dotted #000}.mq-math-mode .mq-abs{border-left:1px solid #000;border-right:1px solid #000;margin-left:.1em;margin-right:.1em;padding-left:.2em;padding-right:.2em}.mq-math-mode .mq-lrnplaceholder{margin-left:.05em;margin-right:.05em}.mq-math-mode .mq-parallelogram{margin-top:-.5em;line-height:1em;position:relative;overflow:hidden}.mq-math-mode .mq-parallelogram .mq-parallelogram-inner{font-size:2em;position:relative;top:.23em}.mq-math-mode,.mq-math-mode .mq-editable-field{cursor:text;font-family:Symbola,Times New Roman,serif}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border,.mq-math-mode .mq-editable-field .mq-longdiv .mq-longdiv-curve-border{font-size:1.33em}.mq-overarrow{text-align:center;border-top:1px solid #000;min-width:.5em;margin-top:1px;padding-top:.2em}.mq-overarrow:before{content:\"➤\";text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-.34em}.mq-overarrow.mq-arrow-left:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-selection,.mq-editable-field .mq-selection,.mq-math-mode .mq-selection .mq-non-leaf,.mq-editable-field .mq-selection .mq-non-leaf,.mq-math-mode .mq-selection .mq-scaled,.mq-editable-field .mq-selection .mq-scaled{color:highlighttext;border-color:highlighttext;background:highlight!important}.mq-math-mode .mq-selection .mq-matrixed,.mq-editable-field .mq-selection .mq-matrixed{background:#39f!important}.mq-math-mode .mq-selection .mq-matrixed-container,.mq-editable-field .mq-selection .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#3399FF\")!important}.mq-math-mode .mq-selection.mq-blur,.mq-editable-field .mq-selection.mq-blur,.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,.mq-math-mode .mq-selection.mq-blur .mq-scaled,.mq-editable-field .mq-selection.mq-blur .mq-scaled,.mq-math-mode .mq-selection.mq-blur .mq-matrixed,.mq-editable-field .mq-selection.mq-blur .mq-matrixed{color:#000;border-color:#000;background:#d4d4d4!important}.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#D4D4D4\")!important}.mq-editable-field .mq-textarea,.mq-math-mode .mq-textarea{-webkit-user-select:text;user-select:text;position:relative}.mq-editable-field .mq-textarea>textarea,.mq-math-mode .mq-textarea>textarea{opacity:0;overflow:hidden}.mq-editable-field .mq-textarea *,.mq-math-mode .mq-textarea *,.mq-editable-field .mq-selectable,.mq-math-mode .mq-selectable{-webkit-user-select:text;user-select:text;clip:rect(1em 1em 1em 1em);resize:none;box-sizing:content-box;width:1px;height:1px;position:absolute;transform:scale(0)}.mq-math-mode .mq-matrixed{background:#fff;display:inline-block}.mq-math-mode .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"white\");margin-top:-.1em}.mq-math-mode .mq-matrix table{border-spacing:2px}button .mq-math-mode .mq-matrix table.mq-rows-2 td,button .mq-math-mode .mq-matrix table.mq-rows-3 td{width:.9em;font-size:.3em}button .mq-math-mode .mq-matrix table.mq-rows-2{margin-bottom:-2px}button .mq-math-mode .mq-matrix table.mq-rows-1{margin-bottom:3px}button .mq-math-mode .mq-matrix table.mq-rows-1 td{width:1.1em;margin-bottom:3px;font-size:.6em}button .mq-math-mode .mq-matrix .matrix-edit-content-row{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-row p{font-size:.7em}button .mq-math-mode .mq-matrix .matrix-edit-content-col{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-col p{padding:0 .15em;font-size:.7em}button .mq-math-mode .mq-matrix .mq-paren{padding:0;display:inline-block;transform:scale(1.13,1.77)}button .matrix-edit .mq-empty{width:.8em;margin:.1em;padding:.1em;font-size:.4em}\n"]]);
19
- import { $ as e, A as t, At as n, B as r, Ct as i, D as a, Dt as o, E as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as S, S as C, St as w, T, Tt as E, U as D, V as O, W as k, X as ee, Y as te, Z as ne, _t as A, a as j, at as re, b as ie, c as ae, ct as oe, d as se, dt as ce, et as le, f as ue, ft as M, g as de, gt as fe, h as pe, i as me, it as N, j as he, jt as ge, k as _e, kt as ve, l as ye, lt as be, m as xe, mt as Se, n as Ce, nt as we, o as Te, ot as P, p as Ee, pt as De, q as Oe, r as ke, rt as Ae, s as je, st as Me, t as Ne, tt as Pe, u as Fe, ut as Ie, v as Le, vt as Re, w as ze, wt as Be, x as Ve, xt as He, y as Ue, yt as We, z as Ge } from "../Typography-DpIBOnYM.js";
19
+ import { $ as e, A as t, At as n, B as r, Ct as i, D as a, Dt as o, E as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as S, S as C, St as w, T, Tt as E, U as D, V as O, W as k, X as ee, Y as te, Z as ne, _t as A, a as j, at as re, b as ie, c as ae, ct as oe, d as se, dt as ce, et as le, f as ue, ft as M, g as de, gt as fe, h as pe, i as me, it as N, j as he, jt as ge, k as _e, kt as ve, l as ye, lt as be, m as xe, mt as Se, n as Ce, nt as we, o as Te, ot as P, p as Ee, pt as De, q as Oe, r as ke, rt as Ae, s as je, st as Me, t as Ne, tt as Pe, u as Fe, ut as Ie, v as Le, vt as Re, w as ze, wt as Be, x as Ve, xt as He, y as Ue, yt as We, z as Ge } from "../Typography-z5JUi5sB.js";
20
20
  import * as F from "react";
21
21
  import I, { Component as Ke, createContext as qe, createElement as Je, createRef as Ye, forwardRef as Xe, memo as Ze, useCallback as Qe, useContext as $e, useDebugValue as et, useEffect as L, useLayoutEffect as tt, useMemo as nt, useReducer as rt, useRef as R, useState as it, version as at } from "react";
22
22
  import { createRoot as ot } from "react-dom/client";
@@ -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, jt 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-DpIBOnYM.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, jt 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-z5JUi5sB.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 Wa(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Ga=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 Ka(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})`:ui(t,Ga(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Wa(n)})`:pi(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Wa(n)})`:fi(t,n)}})}function qa(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(x(20));let d=wa({...a,colorSpace:l}),f=Er(e),p=dn(f,{mixins:Ea(f.breakpoints,r),palette:d,shadows:Fa.slice(),typography:Aa(d,s),transitions:Ba(o),zIndex:{...Va}});return p=dn(p,u),p=t.reduce((e,t)=>dn(e,t),p),p.unstable_sxConfig={...br,...u?.unstable_sxConfig},p.unstable_sx=function(e){return wr({sx:e,theme:this})},p.toRuntimeSource=Ua,Ka(p),p}function Ja(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Ya=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Ja(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Xa(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Za(e){return e===`dark`?Ya:[]}function Qa(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=wa({...t,colorSpace:i});return{palette:o,opacity:{...Xa(o.mode),...n},overlays:r||Za(o.mode),...a}}function $a(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 eo=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],to=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 eo(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 no(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function ro(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:ci(e)}function io(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oi(ro(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 ao(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var oo=e=>{try{return e()}catch{}},so=(e=`mui`)=>Yi(e);function co(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Qa({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=qa({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Xa(a),...n?.opacity},overlays:n?.overlays||Za(a)},s}function lo(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=$a,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=so(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(x(21,f));let b;o&&(b=`oklch`);let S=co(b,v,y,u,f);h&&!v.light&&co(b,v,h,void 0,`light`),g&&!v.dark&&co(b,v,g,void 0,`dark`);let C={defaultColorScheme:f,...S,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Ta(S.typography),...S.font},spacing:ao(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`&&(K(t.common,`background`,`#fff`),K(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(K(t.common,`background`,`#000`),K(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===di&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===V&&(r=`#000 ${(n*100).toFixed(0)}%`),e===H&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(no(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){K(t.Alert,`errorColor`,r(V,o?p(`palette-error-light`):t.error.light,.6)),K(t.Alert,`infoColor`,r(V,o?p(`palette-info-light`):t.info.light,.6)),K(t.Alert,`successColor`,r(V,o?p(`palette-success-light`):t.success.light,.6)),K(t.Alert,`warningColor`,r(V,o?p(`palette-warning-light`):t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-main`)),K(t.Alert,`infoFilledBg`,n(`palette-info-main`)),K(t.Alert,`successFilledBg`,n(`palette-success-main`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),K(t.Alert,`errorFilledColor`,oo(()=>t.getContrastText(t.error.main))),K(t.Alert,`infoFilledColor`,oo(()=>t.getContrastText(t.info.main))),K(t.Alert,`successFilledColor`,oo(()=>t.getContrastText(t.success.main))),K(t.Alert,`warningFilledColor`,oo(()=>t.getContrastText(t.warning.main))),K(t.Alert,`errorStandardBg`,r(H,o?p(`palette-error-light`):t.error.light,.9)),K(t.Alert,`infoStandardBg`,r(H,o?p(`palette-info-light`):t.info.light,.9)),K(t.Alert,`successStandardBg`,r(H,o?p(`palette-success-light`):t.success.light,.9)),K(t.Alert,`warningStandardBg`,r(H,o?p(`palette-warning-light`):t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-100`)),K(t.Avatar,`defaultBg`,n(`palette-grey-400`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),K(t.Chip,`defaultBorder`,n(`palette-grey-400`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),K(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),K(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),K(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),K(t.LinearProgress,`primaryBg`,r(H,o?p(`palette-primary-main`):t.primary.main,.62)),K(t.LinearProgress,`secondaryBg`,r(H,o?p(`palette-secondary-main`):t.secondary.main,.62)),K(t.LinearProgress,`errorBg`,r(H,o?p(`palette-error-main`):t.error.main,.62)),K(t.LinearProgress,`infoBg`,r(H,o?p(`palette-info-main`):t.info.main,.62)),K(t.LinearProgress,`successBg`,r(H,o?p(`palette-success-main`):t.success.main,.62)),K(t.LinearProgress,`warningBg`,r(H,o?p(`palette-warning-light`):t.warning.main,.62)),K(t.Skeleton,`bg`,b?r(di,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),K(t.Slider,`primaryTrack`,r(H,o?p(`palette-primary-main`):t.primary.main,.62)),K(t.Slider,`secondaryTrack`,r(H,o?p(`palette-secondary-main`):t.secondary.main,.62)),K(t.Slider,`errorTrack`,r(H,o?p(`palette-error-main`):t.error.main,.62)),K(t.Slider,`infoTrack`,r(H,o?p(`palette-info-main`):t.info.main,.62)),K(t.Slider,`successTrack`,r(H,o?p(`palette-success-main`):t.success.main,.62)),K(t.Slider,`warningTrack`,r(H,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(V,o?p(`palette-background-default`):t.background.default,.6825):hi(t.background.default,.8);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,oo(()=>b?ha.text.primary:t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,hi(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-400`)),K(t.StepContent,`border`,n(`palette-grey-400`)),K(t.Switch,`defaultColor`,n(`palette-common-white`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),K(t.Switch,`primaryDisabledColor`,r(H,o?p(`palette-primary-main`):t.primary.main,.62)),K(t.Switch,`secondaryDisabledColor`,r(H,o?p(`palette-secondary-main`):t.secondary.main,.62)),K(t.Switch,`errorDisabledColor`,r(H,o?p(`palette-error-main`):t.error.main,.62)),K(t.Switch,`infoDisabledColor`,r(H,o?p(`palette-info-main`):t.info.main,.62)),K(t.Switch,`successDisabledColor`,r(H,o?p(`palette-success-main`):t.success.main,.62)),K(t.Switch,`warningDisabledColor`,r(H,o?p(`palette-warning-main`):t.warning.main,.62)),K(t.TableCell,`border`,r(H,di(o?p(`palette-divider`):t.divider,1),.88)),K(t.Tooltip,`bg`,r(di,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){K(t.Alert,`errorColor`,r(H,o?p(`palette-error-light`):t.error.light,.6)),K(t.Alert,`infoColor`,r(H,o?p(`palette-info-light`):t.info.light,.6)),K(t.Alert,`successColor`,r(H,o?p(`palette-success-light`):t.success.light,.6)),K(t.Alert,`warningColor`,r(H,o?p(`palette-warning-light`):t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),K(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),K(t.Alert,`successFilledBg`,n(`palette-success-dark`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),K(t.Alert,`errorFilledColor`,oo(()=>t.getContrastText(t.error.dark))),K(t.Alert,`infoFilledColor`,oo(()=>t.getContrastText(t.info.dark))),K(t.Alert,`successFilledColor`,oo(()=>t.getContrastText(t.success.dark))),K(t.Alert,`warningFilledColor`,oo(()=>t.getContrastText(t.warning.dark))),K(t.Alert,`errorStandardBg`,r(V,o?p(`palette-error-light`):t.error.light,.9)),K(t.Alert,`infoStandardBg`,r(V,o?p(`palette-info-light`):t.info.light,.9)),K(t.Alert,`successStandardBg`,r(V,o?p(`palette-success-light`):t.success.light,.9)),K(t.Alert,`warningStandardBg`,r(V,o?p(`palette-warning-light`):t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-900`)),K(t.AppBar,`darkBg`,n(`palette-background-paper`)),K(t.AppBar,`darkColor`,n(`palette-text-primary`)),K(t.Avatar,`defaultBg`,n(`palette-grey-600`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),K(t.Chip,`defaultBorder`,n(`palette-grey-700`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),K(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),K(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),K(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),K(t.LinearProgress,`primaryBg`,r(V,o?p(`palette-primary-main`):t.primary.main,.5)),K(t.LinearProgress,`secondaryBg`,r(V,o?p(`palette-secondary-main`):t.secondary.main,.5)),K(t.LinearProgress,`errorBg`,r(V,o?p(`palette-error-main`):t.error.main,.5)),K(t.LinearProgress,`infoBg`,r(V,o?p(`palette-info-main`):t.info.main,.5)),K(t.LinearProgress,`successBg`,r(V,o?p(`palette-success-main`):t.success.main,.5)),K(t.LinearProgress,`warningBg`,r(V,o?p(`palette-warning-main`):t.warning.main,.5)),K(t.Skeleton,`bg`,b?r(di,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),K(t.Slider,`primaryTrack`,r(V,o?p(`palette-primary-main`):t.primary.main,.5)),K(t.Slider,`secondaryTrack`,r(V,o?p(`palette-secondary-main`):t.secondary.main,.5)),K(t.Slider,`errorTrack`,r(V,o?p(`palette-error-main`):t.error.main,.5)),K(t.Slider,`infoTrack`,r(V,o?p(`palette-info-main`):t.info.main,.5)),K(t.Slider,`successTrack`,r(V,o?p(`palette-success-main`):t.success.main,.5)),K(t.Slider,`warningTrack`,r(V,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(H,o?p(`palette-background-default`):t.background.default,.985):hi(t.background.default,.98);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,oo(()=>b?pa.text.primary:t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,hi(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-600`)),K(t.StepContent,`border`,n(`palette-grey-600`)),K(t.Switch,`defaultColor`,n(`palette-grey-300`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),K(t.Switch,`primaryDisabledColor`,r(V,o?p(`palette-primary-main`):t.primary.main,.55)),K(t.Switch,`secondaryDisabledColor`,r(V,o?p(`palette-secondary-main`):t.secondary.main,.55)),K(t.Switch,`errorDisabledColor`,r(V,o?p(`palette-error-main`):t.error.main,.55)),K(t.Switch,`infoDisabledColor`,r(V,o?p(`palette-info-main`):t.info.main,.55)),K(t.Switch,`successDisabledColor`,r(V,o?p(`palette-success-main`):t.success.main,.55)),K(t.Switch,`warningDisabledColor`,r(V,o?p(`palette-warning-light`):t.warning.main,.55)),K(t.TableCell,`border`,r(V,di(o?p(`palette-divider`):t.divider,1),.68)),K(t.Tooltip,`bg`,r(di,o?p(`palette-grey-700`):t.grey[700],.92))}o||(io(t.background,`default`),io(t.background,`paper`),io(t.common,`background`),io(t.common,`onBackground`),io(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&K(t[e],`mainChannel`,oi(ro(n.main))),n.light&&K(t[e],`lightChannel`,oi(ro(n.light))),n.dark&&K(t[e],`darkChannel`,oi(ro(n.dark))),n.contrastText&&K(t[e],`contrastTextChannel`,oi(ro(n.contrastText))),e===`text`&&(io(t[e],`primary`),io(t[e],`secondary`)),e===`action`&&(n.active&&io(t[e],`active`),n.selected&&io(t[e],`selected`)))})}),C=t.reduce((e,t)=>dn(e,t),C);let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:to(C),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=ea(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=ta(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=Ua,C}function uo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:wa({...n===!0?{}:n.palette,mode:t})})}function fo(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 qa(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=qa({...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},uo(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},uo(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),lo({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var po=fo();function mo(){let e=Ar(po);return e.$$material||e}function ho(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var go=e=>ho(e)&&e!==`classes`,q=Yr({themeId:S,defaultTheme:po,rootShouldForwardProp:go});function _o({theme:e,...t}){let n=`$$material`in e?e[S]:void 0;return(0,L.jsx)(Fi,{...t,themeId:n?S:void 0,theme:n||e})}var vo={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:yo,useColorScheme:bo,getInitColorSchemeScript:xo}=Ji({themeId:S,theme:()=>fo({cssVariables:!0}),colorSchemeStorageKey:vo.colorSchemeStorageKey,modeStorageKey:vo.modeStorageKey,defaultColorScheme:{light:vo.defaultLightColorScheme,dark:vo.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Aa(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[S]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,L.jsx)(_o,{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:b.number,children:b.oneOfType([b.arrayOf(b.node),b.node]).isRequired};var J=({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})});J.propTypes={size:b.oneOfType([b.string,b.number]),children:b.oneOfType([b.arrayOf(b.node),b.node]).isRequired,sx:b.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:b.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:b.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:b.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:b.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:b.string.isRequired};var jo=(e,t)=>{class n extends F.Component{static propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,size:b.oneOfType([b.number,b.string]),fg:b.string,bg:b.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)(J,{size:o,children:u}):(0,L.jsxs)(J,{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:b.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:b.string.isRequired,x:b.number,y:b.number};var Po=jo(No,Mo);Po.propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string,size:b.oneOfType([b.string,b.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:b.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:b.string.isRequired};var Lo=jo(Fo,Io);Lo.propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string,size:b.oneOfType([b.string,b.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:b.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:b.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:b.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)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),feedback:{check:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),emoji:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),square:{check:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),open:{check:(0,L.jsx)(J,{children:(0,L.jsx)(Ro,{fill:n})}),emoji:(0,L.jsx)(J,{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:b.oneOf([`emoji`,`check`,void 0]),shape:b.oneOf([`square`,void 0]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.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:b.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:b.string.isRequired};var Wo=jo(Ho,Uo);Wo.propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string,size:b.oneOfType([b.string,b.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 Di(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,C({},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=C({},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=mo(),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 Y(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 hc(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 hc(t,a),()=>{hc(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=Li;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=z(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=z(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=mo(),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 na({root:[`root`,n&&`invisible`]},Oc,t)},Ac=q(`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:z(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 na({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},zc,r)},Vc=q(`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=q(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,...ee}=n,O={...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({...O,rootRef:t}),ae={...O,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}},[ce,N]=wc(`root`,{ref:t,elementType:Vc,externalForwardedProps:{...se,...ee,component:u},getSlotProps:te,ownerState:ae,className:z(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:z(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)(ce,{...N,children:[!y&&r?(0,L.jsx)(le,{...ue}):null,(0,L.jsx)(Y,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,M)})]})})});function X(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 Wc=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return na({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},X,i)},Gc=q(`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=mo(),{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=Wc(u);return(0,L.jsx)(Gc,{as:a,ownerState:u,className:z(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(${ui(`#fff`,Ja(o))}, ${ui(`#fff`,Ja(o))})`}},...l.style}})});function qc(e){return zr(`MuiPopover`,e)}Br(`MuiPopover`,[`root`,`paper`]);var Z=En;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 na({root:[`root`,t!==`inherit`&&`color${Z(t)}`,`fontSize${Z(n)}`]},Jc,r)},Xc=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Z(n.color)}`],t[`fontSize${Z(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:z(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=ra,el=ei,tl=ji,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=z(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=z(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 na({root:[`root`],paper:[`paper`]},qc,t)},ul=q(Uc,{name:`MuiPopover`,slot:`Root`})({}),dl=q(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]),ee=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]),[O,te]=F.useState(p),k=F.useCallback(()=>{let e=C.current;if(!e)return;let t=ee(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)},[ee]);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:ce,...N}]=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:z(T.root,l)}),[le,ue]=wc(`paper`,{ref:C,className:T.paper,elementType:dl,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:O?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(M,{...N,...!Go(M)&&{slots:se,slotProps:ce,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:()=>zl,backgroundDark:()=>Bl,black:()=>$l,blueGrey100:()=>su,blueGrey300:()=>cu,blueGrey600:()=>lu,blueGrey900:()=>uu,border:()=>Kl,borderDark:()=>Jl,borderGray:()=>Yl,borderLight:()=>ql,buttonBorder:()=>_u,buttonFocusOutline:()=>ou,buttonHoverBg:()=>vu,correct:()=>xl,correctSecondary:()=>Sl,correctTertiary:()=>Cl,correctWithIcon:()=>wl,defaults:()=>Q,disabled:()=>vl,disabledSecondary:()=>yl,disabledText:()=>bl,dropdownBackground:()=>Hl,fadedPrimary:()=>Pl,focusChecked:()=>nu,focusCheckedBorder:()=>ru,focusUnchecked:()=>iu,focusUncheckedBorder:()=>au,incorrect:()=>Tl,incorrectSecondary:()=>Dl,incorrectWithIcon:()=>El,keyBoardFocusIndicator:()=>gu,keypadButton:()=>du,keypadButtonHover:()=>mu,keypadButtonOperator:()=>fu,keypadButtonOperatorHover:()=>hu,keypadEmptyPlaceholder:()=>pu,missing:()=>Ol,missingWithIcon:()=>kl,primary:()=>Al,primaryDark:()=>Ml,primaryLight:()=>jl,primaryText:()=>Nl,secondary:()=>Fl,secondaryBackground:()=>Vl,secondaryDark:()=>Ll,secondaryLight:()=>Il,secondaryText:()=>Rl,surface:()=>Ul,tableGrid:()=>Xl,tableGridLight:()=>Zl,tableStripe:()=>Ql,tertiary:()=>Wl,tertiaryLight:()=>Gl,text:()=>_l,transparent:()=>tu,v:()=>gl,visualElementsColors:()=>yu,white:()=>eu}),Q={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:da[500],CORRECT_SECONDARY:da[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ca[500],INCORRECT_SECONDARY:sa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:sa[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(Q);var gl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},$=gl(`pie`),_l=()=>$(`text`,Q.TEXT),vl=()=>$(`disabled`,Q.DISABLED),yl=()=>$(`disabled-secondary`,Q.DISABLED_SECONDARY),bl=()=>$(`disabled-text`,`text`,Q.DISABLED_TEXT),xl=()=>$(`correct`,Q.CORRECT),Sl=()=>$(`correct-secondary`,Q.CORRECT_SECONDARY),Cl=()=>$(`correct-tertiary`,Q.CORRECT_TERTIARY),wl=()=>$(`correct-icon`,Q.CORRECT_WITH_ICON),Tl=()=>$(`incorrect`,Q.INCORRECT),El=()=>$(`incorrect-icon`,Q.INCORRECT_WITH_ICON),Dl=()=>$(`incorrect-secondary`,Q.INCORRECT_SECONDARY),Ol=()=>$(`missing`,Q.MISSING),kl=()=>$(`missing-icon`,Q.MISSING_WITH_ICON),Al=()=>$(`primary`,Q.PRIMARY),jl=()=>$(`primary-light`,Q.PRIMARY_LIGHT),Ml=()=>$(`primary-dark`,Q.PRIMARY_DARK),Nl=()=>$(`primary-text`,`text`,Q.TEXT),Pl=()=>$(`faded-primary`,Q.FADED_PRIMARY),Fl=()=>$(`secondary`,Q.SECONDARY),Il=()=>$(`secondary-light`,Q.SECONDARY_LIGHT),Ll=()=>$(`secondary-dark`,Q.SECONDARY_DARK),Rl=()=>$(`secondary-text`,`text`,Q.TEXT),zl=()=>$(`background`,Q.BACKGROUND),Bl=()=>$(`background-dark`,Q.BACKGROUND_DARK),Vl=()=>$(`secondary-background`,Q.SECONDARY_BACKGROUND),Hl=()=>$(`dropdown-background`,Q.DROPDOWN_BACKGROUND),Ul=()=>$(`surface`,Q.SURFACE),Wl=()=>$(`tertiary`,Q.TERTIARY),Gl=()=>$(`tertiary-light`,Q.TERTIARY_LIGHT),Kl=()=>$(`border`,Q.BORDER),ql=()=>$(`border-light`,Q.BORDER_LIGHT),Jl=()=>$(`border-dark`,Q.BORDER_DARK),Yl=()=>$(`border-gray`,Q.BORDER_GRAY),Xl=()=>$(`table-grid`,`text`,Q.TABLE_GRID),Zl=()=>$(`table-grid-light`,`border-light`,Q.TABLE_GRID_LIGHT),Ql=()=>$(`table-stripe`,`background-dark`,Q.TABLE_STRIPE),$l=()=>$(`black`,Q.BLACK),eu=()=>$(`white`,Q.WHITE),tu=()=>Q.TRANSPARENT,nu=()=>$(`focus-checked`,Q.FOCUS_CHECKED),ru=()=>$(`focus-checked-border`,Q.FOCUS_CHECKED_BORDER),iu=()=>$(`focus-unchecked`,Q.FOCUS_UNCHECKED),au=()=>$(`focus-unchecked-border`,Q.FOCUS_UNCHECKED_BORDER),ou=()=>$(`button-focus-outline`,Q.BUTTON_FOCUS_OUTLINE),su=()=>$(`blue-grey-100`,Q.BLUE_GREY100),cu=()=>$(`blue-grey-300`,Q.BLUE_GREY300),lu=()=>$(`blue-grey-600`,Q.BLUE_GREY600),uu=()=>$(`blue-grey-900`,Q.BLUE_GREY900),du=()=>$(`keypad-button`,Q.KEYPAD_BUTTON),fu=()=>$(`keypad-button-operator`,Q.KEYPAD_BUTTON_OPERATOR),pu=()=>$(`keypad-empty-placeholder`,Q.KEYPAD_EMPTY_PLACEHOLDER),mu=()=>$(`keypad-button-hover`,Q.KEYPAD_BUTTON_HOVER),hu=()=>$(`keypad-button-operator-hover`,Q.KEYPAD_BUTTON_OPERATOR_HOVER),gu=()=>$(`keyboard-focus-indicator`,Q.KEY_BOARD_FOCUS_INDICATOR),_u=()=>$(`button-border`,Q.BUTTON_BORDER),vu=()=>$(`button-hover-bg`,Q.BUTTON_HOVER_BG),yu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},bu=q(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),xu=q(`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()})`}}),Su=q(`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`}}),Cu=class extends F.Component{static propTypes={correctness:b.string,feedback:b.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)(Su,{ref:this.nodeRef,children:(0,L.jsx)(bu,{children:(0,L.jsx)(xu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(Is,{children:this.renderFeedback()})})}},wu=()=>{};function Tu(){let e=function(){};return e.enabled=!1,e.log=wu,e.extend=()=>e,e.destroy=wu,e}Tu.log=wu,Tu.enable=wu,Tu.disable=()=>``,Tu.enabled=()=>!1;var Eu=s({Correct:()=>Mu,Incorrect:()=>Nu,NothingSubmitted:()=>Fu,PartiallyCorrect:()=>Pu}),Du=Tu(`pie-libs:render-ui:response-indicators`),Ou=q(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),ku=q(fl)({cursor:`pointer`}),Au=q(`div`)({padding:`0`,borderRadius:`4px`}),ju=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Du(`[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)(Ou,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(ku,{PaperComponent:Au,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(Cu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:b.string},n},Mu=ju(Po,`correct`),Nu=ju(Lo,`incorrect`),Pu=ju(Wo,`partially-correct`),Fu=ju(Vo,`nothing-submitted`);function Iu(e){return zr(`MuiCollapse`,e)}Br(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Lu=e=>{let{orientation:t,classes:n}=e;return na({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Iu,n)},Ru=q(`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`}}]}))),zu=q(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Bu=q(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Vu=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=La.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Lu(C),T=mo(),E=as(),D=F.useRef(null),ee=F.useRef(),O=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]=O,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`,ee.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`,ee.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=O,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(ee.current||0,e),r&&r(A.current,e)},N={slots:_,slotProps:v,component:s},[le,ue]=wc(`root`,{ref:ne,className:z(w.root,a),elementType:Ru,externalForwardedProps:N,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:O,...y}}}),[de,fe]=wc(`wrapper`,{ref:D,className:w.wrapper,elementType:zu,externalForwardedProps:N,ownerState:C}),[pe,me]=wc(`wrapperInner`,{className:w.wrapperInner,elementType:Bu,externalForwardedProps:N,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:ce,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:z(ue.className,{entered:w.entered,exited:!l&&O===`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})})})}})});Vu&&(Vu.muiSupportAuto=!0);var Hu=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,Uu=`pie-mathjax-version-conflict`,Wu=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function Gu(e,t){if(typeof window>`u`)return;let n=globalThis;n[Wu]??={logged:!1,conditions:[]};let r=n[Wu];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Hu}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(Uu,{detail:{condition:e,message:i,docsUrl:Hu}}))}function Ku(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var qu=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,Ju={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},Yu=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Xu=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,Zu=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Qu=/\\embed\{newLine\}\[\]/g,$u=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],ed=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),td=`PIE-MJX-CHTML-styles`,nd=`MJX-CHTML-styles`,rd=[nd,`MJX-SVG-styles`],id=201;function ad(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function od(){return window.MathJax}function sd(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of $u)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function cd(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${sd(e)}\\)`.replace(Qu,`\\newline `),t.dataset.mathHandled=`true`)}}function ld(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?Zu:Xu).test(e.textContent??``)}function ud(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=od(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&dd(e),r?.defaultReady?.(),i&&fd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...Ju}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(Yu),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||qu,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function dd(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=td)}function fd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(ad(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,id,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&ad(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===nd&&(r.id=td),hd()}function pd(e){return e instanceof HTMLStyleElement&&rd.includes(e.id)}function md(e){Gu(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function hd(){let e=document.head,t=[...e.children].find(pd);if(t){md(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(pd);if(e){md(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function gd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=od()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function _d(e){let t=od();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():gd(t):ud(e)}function vd(e){return _d(e).then(()=>{typeof od()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function yd(e){let t=globalThis,n=t[ed];return n||(n=vd(e),t[ed]=n),n}function bd(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=Ku();r&&Gu(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),cd(n);let i=yd(e);if(!ld(n,t)){i.catch(()=>{});return}await i;let a=od();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),ad(n))}}var xd=`@pie-lib/math-rendering`,Sd=`@pie-lib/math-rendering@2`,Cd=null;function wd(){return!!window[Sd]?.opts?.useSingleDollar}function Td(){return Cd||=bd({useSingleDollar:wd()}),Cd}function Ed(){if(typeof window>`u`)return null;let e=window[xd];return typeof e?.renderMath==`function`?e:null}var Dd=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=Ed();return r?await r.renderMath?.(n):await Td()(n),t?n.innerHTML:void 0},Od=q(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),kd=q(Vu)(({theme:e})=>({paddingTop:e.spacing(2)})),Ad=class extends F.Component{static propTypes={className:b.string,children:b.object,labels:b.shape({visible:b.string,hidden:b.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Dd(this.root)}componentDidUpdate(){Dd(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)(Od,{children:r})}),(0,L.jsx)(kd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function jd(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var Md=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=Pd(),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 Nd(){return Md.use()}function Pd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Fd(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=z(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=z(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`]),Ld=550,Rd=Rt`
45
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Bo.propTypes={fill:b.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)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),feedback:{check:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),emoji:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),square:{check:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(J,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),open:{check:(0,L.jsx)(J,{children:(0,L.jsx)(Ro,{fill:n})}),emoji:(0,L.jsx)(J,{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:b.oneOf([`emoji`,`check`,void 0]),shape:b.oneOf([`square`,void 0]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.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:b.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:b.string.isRequired};var Wo=jo(Ho,Uo);Wo.propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string,size:b.oneOfType([b.string,b.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 Di(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,C({},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=C({},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=mo(),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 Y(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 hc(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 hc(t,a),()=>{hc(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=Li;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=z(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=z(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=mo(),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 na({root:[`root`,n&&`invisible`]},Oc,t)},Ac=q(`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:z(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 na({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},zc,r)},Vc=q(`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=q(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,...ee}=n,O={...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({...O,rootRef:t}),ae={...O,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}},[ce,N]=wc(`root`,{ref:t,elementType:Vc,externalForwardedProps:{...se,...ee,component:u},getSlotProps:te,ownerState:ae,className:z(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:z(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)(ce,{...N,children:[!y&&r?(0,L.jsx)(le,{...ue}):null,(0,L.jsx)(Y,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,M)})]})})});function X(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 Wc=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return na({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},X,i)},Gc=q(`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=mo(),{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=Wc(u);return(0,L.jsx)(Gc,{as:a,ownerState:u,className:z(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(${ui(`#fff`,Ja(o))}, ${ui(`#fff`,Ja(o))})`}},...l.style}})});function qc(e){return zr(`MuiPopover`,e)}Br(`MuiPopover`,[`root`,`paper`]);var Z=En;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 na({root:[`root`,t!==`inherit`&&`color${Z(t)}`,`fontSize${Z(n)}`]},Jc,r)},Xc=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Z(n.color)}`],t[`fontSize${Z(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:z(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=ra,el=ei,tl=ji,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=z(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=z(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 na({root:[`root`],paper:[`paper`]},qc,t)},ul=q(Uc,{name:`MuiPopover`,slot:`Root`})({}),dl=q(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]),ee=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]),[O,te]=F.useState(p),k=F.useCallback(()=>{let e=C.current;if(!e)return;let t=ee(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)},[ee]);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:ce,...N}]=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:z(T.root,l)}),[le,ue]=wc(`paper`,{ref:C,className:T.paper,elementType:dl,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:O?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(M,{...N,...!Go(M)&&{slots:se,slotProps:ce,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:()=>zl,backgroundDark:()=>Bl,black:()=>$l,blueGrey100:()=>su,blueGrey300:()=>cu,blueGrey600:()=>lu,blueGrey900:()=>uu,border:()=>Kl,borderDark:()=>Jl,borderGray:()=>Yl,borderLight:()=>ql,buttonBorder:()=>_u,buttonFocusOutline:()=>ou,buttonHoverBg:()=>vu,correct:()=>xl,correctSecondary:()=>Sl,correctTertiary:()=>Cl,correctWithIcon:()=>wl,defaults:()=>Q,disabled:()=>vl,disabledSecondary:()=>yl,disabledText:()=>bl,dropdownBackground:()=>Hl,fadedPrimary:()=>Pl,focusChecked:()=>nu,focusCheckedBorder:()=>ru,focusUnchecked:()=>iu,focusUncheckedBorder:()=>au,incorrect:()=>Tl,incorrectSecondary:()=>Dl,incorrectWithIcon:()=>El,keyBoardFocusIndicator:()=>gu,keypadButton:()=>du,keypadButtonHover:()=>mu,keypadButtonOperator:()=>fu,keypadButtonOperatorHover:()=>hu,keypadEmptyPlaceholder:()=>pu,missing:()=>Ol,missingWithIcon:()=>kl,primary:()=>Al,primaryDark:()=>Ml,primaryLight:()=>jl,primaryText:()=>Nl,secondary:()=>Fl,secondaryBackground:()=>Vl,secondaryDark:()=>Ll,secondaryLight:()=>Il,secondaryText:()=>Rl,surface:()=>Ul,tableGrid:()=>Xl,tableGridLight:()=>Zl,tableStripe:()=>Ql,tertiary:()=>Wl,tertiaryLight:()=>Gl,text:()=>_l,transparent:()=>tu,v:()=>gl,visualElementsColors:()=>yu,white:()=>eu}),Q={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:da[500],CORRECT_SECONDARY:da[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ca[500],INCORRECT_SECONDARY:sa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:sa[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:`#81848F`,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(Q);var gl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},$=gl(`pie`),_l=()=>$(`text`,Q.TEXT),vl=()=>$(`disabled`,Q.DISABLED),yl=()=>$(`disabled-secondary`,Q.DISABLED_SECONDARY),bl=()=>$(`disabled-text`,`text`,Q.DISABLED_TEXT),xl=()=>$(`correct`,Q.CORRECT),Sl=()=>$(`correct-secondary`,Q.CORRECT_SECONDARY),Cl=()=>$(`correct-tertiary`,Q.CORRECT_TERTIARY),wl=()=>$(`correct-icon`,Q.CORRECT_WITH_ICON),Tl=()=>$(`incorrect`,Q.INCORRECT),El=()=>$(`incorrect-icon`,Q.INCORRECT_WITH_ICON),Dl=()=>$(`incorrect-secondary`,Q.INCORRECT_SECONDARY),Ol=()=>$(`missing`,Q.MISSING),kl=()=>$(`missing-icon`,Q.MISSING_WITH_ICON),Al=()=>$(`primary`,Q.PRIMARY),jl=()=>$(`primary-light`,Q.PRIMARY_LIGHT),Ml=()=>$(`primary-dark`,Q.PRIMARY_DARK),Nl=()=>$(`primary-text`,`text`,Q.TEXT),Pl=()=>$(`faded-primary`,Q.FADED_PRIMARY),Fl=()=>$(`secondary`,Q.SECONDARY),Il=()=>$(`secondary-light`,Q.SECONDARY_LIGHT),Ll=()=>$(`secondary-dark`,Q.SECONDARY_DARK),Rl=()=>$(`secondary-text`,`text`,Q.TEXT),zl=()=>$(`background`,Q.BACKGROUND),Bl=()=>$(`background-dark`,Q.BACKGROUND_DARK),Vl=()=>$(`secondary-background`,Q.SECONDARY_BACKGROUND),Hl=()=>$(`dropdown-background`,Q.DROPDOWN_BACKGROUND),Ul=()=>$(`surface`,Q.SURFACE),Wl=()=>$(`tertiary`,Q.TERTIARY),Gl=()=>$(`tertiary-light`,Q.TERTIARY_LIGHT),Kl=()=>$(`border`,Q.BORDER),ql=()=>$(`border-light`,Q.BORDER_LIGHT),Jl=()=>$(`border-dark`,Q.BORDER_DARK),Yl=()=>$(`border-gray`,Q.BORDER_GRAY),Xl=()=>$(`table-grid`,`text`,Q.TABLE_GRID),Zl=()=>$(`table-grid-light`,`border-light`,Q.TABLE_GRID_LIGHT),Ql=()=>$(`table-stripe`,`background-dark`,Q.TABLE_STRIPE),$l=()=>$(`black`,Q.BLACK),eu=()=>$(`white`,Q.WHITE),tu=()=>Q.TRANSPARENT,nu=()=>$(`focus-checked`,Q.FOCUS_CHECKED),ru=()=>$(`focus-checked-border`,Q.FOCUS_CHECKED_BORDER),iu=()=>$(`focus-unchecked`,Q.FOCUS_UNCHECKED),au=()=>$(`focus-unchecked-border`,Q.FOCUS_UNCHECKED_BORDER),ou=()=>$(`button-focus-outline`,Q.BUTTON_FOCUS_OUTLINE),su=()=>$(`blue-grey-100`,Q.BLUE_GREY100),cu=()=>$(`blue-grey-300`,Q.BLUE_GREY300),lu=()=>$(`blue-grey-600`,Q.BLUE_GREY600),uu=()=>$(`blue-grey-900`,Q.BLUE_GREY900),du=()=>$(`keypad-button`,Q.KEYPAD_BUTTON),fu=()=>$(`keypad-button-operator`,Q.KEYPAD_BUTTON_OPERATOR),pu=()=>$(`keypad-empty-placeholder`,Q.KEYPAD_EMPTY_PLACEHOLDER),mu=()=>$(`keypad-button-hover`,Q.KEYPAD_BUTTON_HOVER),hu=()=>$(`keypad-button-operator-hover`,Q.KEYPAD_BUTTON_OPERATOR_HOVER),gu=()=>$(`keyboard-focus-indicator`,Q.KEY_BOARD_FOCUS_INDICATOR),_u=()=>$(`button-border`,Q.BUTTON_BORDER),vu=()=>$(`button-hover-bg`,Q.BUTTON_HOVER_BG),yu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},bu=q(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),xu=q(`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()})`}}),Su=q(`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`}}),Cu=class extends F.Component{static propTypes={correctness:b.string,feedback:b.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)(Su,{ref:this.nodeRef,children:(0,L.jsx)(bu,{children:(0,L.jsx)(xu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(Is,{children:this.renderFeedback()})})}},wu=()=>{};function Tu(){let e=function(){};return e.enabled=!1,e.log=wu,e.extend=()=>e,e.destroy=wu,e}Tu.log=wu,Tu.enable=wu,Tu.disable=()=>``,Tu.enabled=()=>!1;var Eu=s({Correct:()=>Mu,Incorrect:()=>Nu,NothingSubmitted:()=>Fu,PartiallyCorrect:()=>Pu}),Du=Tu(`pie-libs:render-ui:response-indicators`),Ou=q(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),ku=q(fl)({cursor:`pointer`}),Au=q(`div`)({padding:`0`,borderRadius:`4px`}),ju=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Du(`[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)(Ou,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(ku,{PaperComponent:Au,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(Cu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:b.string},n},Mu=ju(Po,`correct`),Nu=ju(Lo,`incorrect`),Pu=ju(Wo,`partially-correct`),Fu=ju(Vo,`nothing-submitted`);function Iu(e){return zr(`MuiCollapse`,e)}Br(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Lu=e=>{let{orientation:t,classes:n}=e;return na({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Iu,n)},Ru=q(`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`}}]}))),zu=q(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Bu=q(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Vu=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=La.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Lu(C),T=mo(),E=as(),D=F.useRef(null),ee=F.useRef(),O=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]=O,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`,ee.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`,ee.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=O,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(ee.current||0,e),r&&r(A.current,e)},N={slots:_,slotProps:v,component:s},[le,ue]=wc(`root`,{ref:ne,className:z(w.root,a),elementType:Ru,externalForwardedProps:N,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:O,...y}}}),[de,fe]=wc(`wrapper`,{ref:D,className:w.wrapper,elementType:zu,externalForwardedProps:N,ownerState:C}),[pe,me]=wc(`wrapperInner`,{className:w.wrapperInner,elementType:Bu,externalForwardedProps:N,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:ce,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:z(ue.className,{entered:w.entered,exited:!l&&O===`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})})})}})});Vu&&(Vu.muiSupportAuto=!0);var Hu=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,Uu=`pie-mathjax-version-conflict`,Wu=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function Gu(e,t){if(typeof window>`u`)return;let n=globalThis;n[Wu]??={logged:!1,conditions:[]};let r=n[Wu];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Hu}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(Uu,{detail:{condition:e,message:i,docsUrl:Hu}}))}function Ku(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var qu=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,Ju={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},Yu=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Xu=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,Zu=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Qu=/\\embed\{newLine\}\[\]/g,$u=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],ed=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),td=`PIE-MJX-CHTML-styles`,nd=`MJX-CHTML-styles`,rd=[nd,`MJX-SVG-styles`],id=201;function ad(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function od(){return window.MathJax}function sd(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of $u)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function cd(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${sd(e)}\\)`.replace(Qu,`\\newline `),t.dataset.mathHandled=`true`)}}function ld(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?Zu:Xu).test(e.textContent??``)}function ud(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=od(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&dd(e),r?.defaultReady?.(),i&&fd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...Ju}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(Yu),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||qu,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function dd(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=td)}function fd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(ad(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,id,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&ad(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===nd&&(r.id=td),hd()}function pd(e){return e instanceof HTMLStyleElement&&rd.includes(e.id)}function md(e){Gu(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function hd(){let e=document.head,t=[...e.children].find(pd);if(t){md(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(pd);if(e){md(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function gd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=od()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function _d(e){let t=od();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():gd(t):ud(e)}function vd(e){return _d(e).then(()=>{typeof od()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function yd(e){let t=globalThis,n=t[ed];return n||(n=vd(e),t[ed]=n),n}function bd(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=Ku();r&&Gu(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),cd(n);let i=yd(e);if(!ld(n,t)){i.catch(()=>{});return}await i;let a=od();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),ad(n))}}var xd=`@pie-lib/math-rendering`,Sd=`@pie-lib/math-rendering@2`,Cd=null;function wd(){return!!window[Sd]?.opts?.useSingleDollar}function Td(){return Cd||=bd({useSingleDollar:wd()}),Cd}function Ed(){if(typeof window>`u`)return null;let e=window[xd];return typeof e?.renderMath==`function`?e:null}var Dd=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=Ed();return r?await r.renderMath?.(n):await Td()(n),t?n.innerHTML:void 0},Od=q(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),kd=q(Vu)(({theme:e})=>({paddingTop:e.spacing(2)})),Ad=class extends F.Component{static propTypes={className:b.string,children:b.object,labels:b.shape({visible:b.string,hidden:b.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Dd(this.root)}componentDidUpdate(){Dd(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)(Od,{children:r})}),(0,L.jsx)(kd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function jd(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var Md=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=Pd(),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 Nd(){return Md.use()}function Pd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Fd(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=z(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=z(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`]),Ld=550,Rd=Rt`
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.27",
3
+ "version": "8.1.2-next.28",
4
4
  "description": "React implementation of multi-trait-rubric element synced from pie-elements",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,14 +11,14 @@
11
11
  "@emotion/react": "^11.14.0",
12
12
  "@mui/icons-material": "^7.3.4",
13
13
  "@mui/material": "^7.3.4",
14
- "@pie-lib/render-ui": "6.2.0-next.50",
14
+ "@pie-lib/render-ui": "6.2.0-next.51",
15
15
  "clsx": "^2.1.1",
16
16
  "prop-types": "^15.8.1",
17
- "@pie-lib/editable-html-tip-tap": "3.0.0-next.47",
17
+ "@pie-lib/editable-html-tip-tap": "3.0.0-next.48",
18
18
  "@pie-element/shared-configure-events": "0.1.1-next.1",
19
19
  "@pie-element/shared-lodash": "0.1.1-next.3",
20
- "@pie-lib/config-ui": "14.0.0-next.47",
21
- "@pie-lib/drag": "4.1.0-next.51",
20
+ "@pie-lib/config-ui": "14.0.0-next.48",
21
+ "@pie-lib/drag": "4.1.0-next.52",
22
22
  "debug": "^4.4.3",
23
23
  "@dnd-kit/core": "^6.3.1",
24
24
  "@pie-element/shared-player-events": "0.1.1-next.3",