@pie-element/charting 12.1.2-next.31 → 12.1.2-next.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { C as e, t } from "../dist-4_gVzyUN.js";
2
- import { B as n, M as r, Q as i, S as a, U as o, V as s, b as c, g as l, j as u, k as d, n as f, o as p, s as m, t as h, v as g, x as _, y as v } from "../chart-zJQVGWA0.js";
2
+ import { B as n, M as r, Q as i, S as a, U as o, V as s, b as c, g as l, j as u, k as d, n as f, o as p, s as m, t as h, v as g, x as _, y as v } from "../chart-DyvqyVnj.js";
3
3
  import y, { useRef as b } from "react";
4
4
  import { createRoot as x } from "react-dom/client";
5
5
  import { jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -45,7 +45,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
45
45
  M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,F.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});Wo.propTypes={bgFill:y.string.isRequired,fgFill:y.string.isRequired};var Go=({bgFill:e,fgFill:t,borderFill:n})=>(0,F.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,F.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
46
46
  C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,F.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,F.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,F.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
47
47
  M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,F.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});Go.propTypes={bgFill:y.string.isRequired,fgFill:y.string.isRequired,borderFill:y.string.isRequired};var Ko=R(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),qo=({open:e,size:t})=>(0,F.jsx)(Ko,{size:t,children:e?(0,F.jsx)(Wo,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,F.jsx)(Go,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});qo.propTypes={open:y.bool,size:y.string},qo.defaultProps={open:!1};var Jo=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,F.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,F.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})]});Jo.propTypes={fill:y.string.isRequired};var Yo=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,F.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});Yo.propTypes={fill:y.string.isRequired};var Xo=Bo(Jo,Yo);Xo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Xo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Zo=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,F.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Zo.propTypes={fill:y.string.isRequired};var Qo=({fill:e})=>(0,F.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});Qo.propTypes={fill:y.string.isRequired};var $o=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.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
48
- C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});$o.propTypes={fill:y.string.isRequired};var es=class extends P.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)(Zo,{fill:t})]}),emoji:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),feedback:{check:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),emoji:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),square:{check:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)(Zo,{fill:t})]}),emoji:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),open:{check:(0,F.jsx)(Po,{children:(0,F.jsx)(Zo,{fill:n})}),emoji:(0,F.jsx)(Po,{children:(0,F.jsx)($o,{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]}};es.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},es.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var ts=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,F.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,F.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});ts.propTypes={fill:y.string.isRequired};var ns=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,F.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.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})]});ns.propTypes={fill:y.string.isRequired};var rs=Bo(ts,ns);rs.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},rs.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function is(e){return typeof e==`string`}function as(e){return(0,F.jsx)(Pr,{...e,defaultTheme:xo,themeId:x})}function ss(e){return function(t){return(0,F.jsx)(as,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function cs(){return Ir}function ls(e){return Mi(e)}function us(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var ds=us;function fs(e){return e&&e.ownerDocument||document}var ps=fs;function ms(e){return fs(e).defaultView||window}var hs=ms,gs={};function _s(e,t){let n=P.useRef(gs);return n.current===gs&&(n.current=e(t)),n}var vs=[];function ys(e){P.useEffect(e,vs)}var bs=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 xs(){let e=_s(bs.create).current;return ys(e.disposeEffect),e}function Ss(e){return e?.ref||null}function Cs(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 ws(e,t){return ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ws(e,t)}function Ts(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ws(e,t)}function Es(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):Es(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Os(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ks(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Os(e.className,t):e.setAttribute(`class`,Os(e.className&&e.className.baseVal||``,t))}var As={disabled:!1},js=P.createContext(null),Ms=function(e){return e.scrollTop},Ns=l(h()),Ps=`unmounted`,Fs=`exited`,Is=`entering`,Ls=`entered`,Rs=`exiting`,zs=function(e){Ts(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=Fs,r.appearStatus=Is):o=Ls:o=t.unmountOnExit||t.mountOnEnter?Ps:Fs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Fs}: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=Is):(n===`entering`||n===`entered`)&&(t=Rs)}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:Ns.findDOMNode(this);n&&Ms(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Ps})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Ns.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||As.disabled){this.safeSetState({status:Ls},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Is},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Ls},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:Ns.findDOMNode(this);if(!t||As.disabled){this.safeSetState({status:Fs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Rs},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Fs},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:Ns.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=Cs(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return P.createElement(js.Provider,{value:null},typeof n==`function`?n(e,r):P.cloneElement(P.Children.only(n),r))},t}(P.Component);zs.contextType=js,zs.propTypes={};function Bs(){}zs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bs,onEntering:Bs,onEntered:Bs,onExit:Bs,onExiting:Bs,onExited:Bs},zs.UNMOUNTED=Ps,zs.EXITED=Fs,zs.ENTERING=Is,zs.ENTERED=Ls,zs.EXITING=Rs;var Vs=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Ds(e,t)})},Hs=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ks(e,t)})},Us=function(e){Ts(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&&Ms(e),r&&(this.appliedClasses[t][n]=r,Vs(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&&Hs(e,r),i&&Hs(e,i),a&&Hs(e,a)},n.render=function(){var e=this.props;e.classNames;var t=Cs(e,[`classNames`]);return P.createElement(zs,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(P.Component);Us.defaultProps={classNames:``},Us.propTypes={};function Ws(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Gs(e,t){var n=function(e){return t&&(0,P.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&P.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Ks(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 qs(e,t,n){return n[t]==null?e.props[t]:n[t]}function Js(e,t){return Gs(e.children,function(n){return(0,P.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:qs(n,`appear`,e),enter:qs(n,`enter`,e),exit:qs(n,`exit`,e)})})}function Ys(e,t,n){var r=Gs(e.children),i=Ks(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,P.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,P.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:qs(o,`exit`,e),enter:qs(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,P.cloneElement)(o,{in:!1}):c&&s&&(0,P.isValidElement)(l)&&(i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:qs(o,`exit`,e),enter:qs(o,`enter`,e)}))}}),i}var Xs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Zs={component:`div`,childFactory:function(e){return e}},Qs=function(e){Ts(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Ws(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?Js(e,r):Ys(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Gs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Cs(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Xs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?P.createElement(js.Provider,{value:i},a):P.createElement(js.Provider,{value:i},P.createElement(t,r,a))},t}(P.Component);Qs.propTypes={},Qs.defaultProps=Zs;var $s=e=>e.scrollTop;function ec(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function tc(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function nc(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 rc(...e){let t=P.useRef(void 0),n=P.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 P.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ic=rc;function ac(e){return`scale(${e}, ${e**2})`}var oc={entering:{opacity:1,transform:ac(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:ac(.75)},exited:{opacity:0,transform:ac(.75)}},sc={opacity:0,transform:ac(.75),visibility:`hidden`},cc=P.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=xs(),_=P.useRef(),v=So(),y=P.useRef(null),b=ic(y,Ss(i),t),x=ec(y,l),S=ec(y,(e,t)=>{$s(e);let{duration:n,delay:r,easing:i}=nc({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=ec(y,c),w=ec(y,f),T=ec(y,e=>{let{duration:t,delay:n,easing:r}=nc({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=ac(.75),u&&u(e)}),E=ec(y,e=>{e.style.transition=``,d&&d(e)});return(0,F.jsx)(zs,{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=tc(e,o,oc,sc,p,i.props.style);return P.cloneElement(i,{style:r,ref:b,...n})}})});cc&&(cc.muiSupportAuto=!0);function lc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function uc(e){let t=fs(e);return t.body===e?ms(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function fc(e){return parseFloat(ms(e).getComputedStyle(e).paddingRight)||0}function pc(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 mc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!pc(e);t&&n&&dc(e,i)})}function hc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function gc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(uc(r)){let e=lc(ms(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${fc(r)+e}px`;let t=fs(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${fc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=fs(r).body;else{let t=r.parentElement,n=ms(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 _c(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var vc=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&&dc(e.modalRef,!1);let r=_c(t);mc(t,e.mount,e.modalRef,r,!0);let i=hc(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=hc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=gc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=hc(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&&dc(e.modalRef,t),mc(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&&dc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function yc(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 bc=yc;function xc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Sc=xc,Cc=`data-mui-focusable`;function wc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Cc}]`):null}var Tc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function z(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 Ec(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 Dc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Ec(e))}function Oc(e){let t=[],n=[];return Array.from(e.querySelectorAll(Tc)).forEach((e,r)=>{let i=z(e);i===-1||!Dc(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 kc(){return!0}function Ac(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Oc,isEnabled:o=kc,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(!1),m=P.useRef(null),h=rc(Ss(t),m),g=P.useRef(null);P.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),P.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Sc(fs(m.current)),t=wc(m.current)??m.current;return bc(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]),P.useEffect(()=>{if(!s||!m.current)return;let e=fs(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Sc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Sc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(bc(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=Sc(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,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),P.cloneElement(t,{ref:h,onFocus:_}),(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function jc(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Mc(e){return typeof e==`function`?e():e}var Nc=P.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=P.useState(null),s=rc(P.isValidElement(n)?Ss(n):null,t);if(ni(()=>{i||o(Mc(r)||document.body)},[r,i]),ni(()=>{if(a&&!i)return jc(t,a),()=>{jc(t,null)}},[t,a,i]),i){if(P.isValidElement(n)){let e={ref:s};return P.cloneElement(n,e)}return n}return a&&Ns.createPortal(n,a)}),Pc=Hi;function Fc(e,t,n){return e===void 0||is(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ic(e,t,n){return typeof e==`function`?e(t,n):e}function Lc(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 Rc(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 zc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=I(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=Lc({...i,...r}),s=Rc(r),c=Rc(i),l=t(o),u=I(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 Bc(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=Ic(d[e],i),{props:{component:h,...g},internalRef:_}=zc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=rc(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Fc(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 Vc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Hc={opacity:0,visibility:`hidden`},Uc=P.forwardRef(function(e,t){let n=So(),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=P.useRef(null),y=ic(v,Ss(o),t),b=ec(v,d),x=ec(v,(e,t)=>{$s(e);let r=nc({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=ec(v,u),C=ec(v,m),w=ec(v,e=>{let t=nc({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=ec(v,e=>{e.style.transition=``,p&&p(e)});return(0,F.jsx)(zs,{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=tc(e,c,Vc,Hc,h,o.props.style);return P.cloneElement(o,{style:r,ref:y,...n})}})});function Wc(e){return Vr(`MuiBackdrop`,e)}Hr(`MuiBackdrop`,[`root`,`invisible`]);var Gc=e=>{let{classes:t,invisible:n}=e;return la({root:[`root`,n&&`invisible`]},Wc,t)},Kc=R(`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`}}]}),qc=P.forwardRef(function(e,t){let n=ls({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=Gc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Bc(`root`,{elementType:Kc,externalForwardedProps:_,className:I(g.root,i),ownerState:h}),[b,x]=Bc(`transition`,{elementType:Uc,externalForwardedProps:_,ownerState:h});return(0,F.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,F.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Jc(e){let t=P.useRef(e);return ni(()=>{t.current=e}),P.useRef((...e)=>(0,t.current)(...e)).current}function Yc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Xc(e){return typeof e==`function`?e():e}function Zc(e){return e?e.props.hasOwnProperty(`in`):!1}var Qc=()=>{},$c=new vc;function el(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=P.useRef({}),f=P.useRef(null),p=P.useRef(null),m=rc(p,u),[h,g]=P.useState(!l),_=Zc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>fs(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{$c.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Jc(()=>{let e=Xc(t)||y().body;$c.add(b(),e),p.current&&x()}),C=()=>$c.isTopModal(b()),w=Jc(e=>{f.current=e,e&&(l&&C()?x():p.current&&dc(p.current,v))}),T=P.useCallback(()=>{$c.remove(b(),v)},[v]);P.useEffect(()=>()=>{T()},[T]),P.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=Lc(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:Yc(()=>{g(!1),a&&a()},s?.props.onEnter??Qc),onExited:Yc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Qc)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function tl(e){return Vr(`MuiModal`,e)}Hr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var nl=e=>{let{open:t,exited:n,classes:r}=e;return la({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},tl,r)},rl=R(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Pc(({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`}}]}))),il=R(qc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),al=P.forwardRef(function(e,t){let n=ls({name:`MuiModal`,props:e}),{BackdropComponent:r=il,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:A,getBackdropProps:j,getTransitionProps:M,portalRef:ee,isTopModal:N,exited:te,hasTransition:ne}=el({...k,rootRef:t}),re={...k,exited:te},ie=nl(re),ae={};if(c.props.tabIndex===void 0&&(ae.tabIndex=`-1`),ne){let{onEnter:e,onExited:t}=M();ae.onEnter=e,ae.onExited=t}let oe={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[se,ce]=Bc(`root`,{ref:t,elementType:rl,externalForwardedProps:{...oe,...O,component:u},getSlotProps:A,ownerState:re,className:I(o,ie?.root,!re.open&&re.exited&&ie?.hidden)}),[le,ue]=Bc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>j({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:I(i?.className,ie?.backdrop),ownerState:re});return!b&&!w&&(!ne||te)?null:(0,F.jsx)(Nc,{ref:ee,container:l,disablePortal:g,children:(0,F.jsxs)(se,{...ce,children:[!y&&r?(0,F.jsx)(le,{...ue}):null,(0,F.jsx)(Ac,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:N,open:w,children:P.cloneElement(c,ae)})]})})});function ol(e){return Vr(`MuiPaper`,e)}Hr(`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 sl=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return la({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},ol,i)},cl=R(`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}`]]}})(Pc(({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)`}}]}))),ll=P.forwardRef(function(e,t){let n=ls({props:e,name:`MuiPaper`}),r=So(),{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=sl(u);return(0,F.jsx)(cl,{as:a,ownerState:u,className:I(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(${pi(`#fff`,no(o))}, ${pi(`#fff`,no(o))})`}},...l.style}})});function ul(e){return Vr(`MuiPopover`,e)}Hr(`MuiPopover`,[`root`,`paper`]);var B=Dn;function dl(e){return Vr(`MuiSvgIcon`,e)}Hr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var fl=e=>{let{color:t,fontSize:n,classes:r}=e;return la({root:[`root`,t!==`inherit`&&`color${B(t)}`,`fontSize${B(n)}`]},dl,r)},pl=R(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${B(n.color)}`],t[`fontSize${B(n.fontSize)}`]]}})(Pc(({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}}]}))),ml=P.forwardRef(function(e,t){let n=ls({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=P.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=fl(m);return(0,F.jsxs)(pl,{as:o,className:I(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,F.jsx)(`title`,{children:u}):null]})});ml.muiName=`SvgIcon`;function hl(e,t){function n(t,n){return(0,F.jsx)(ml,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ml.muiName,P.memo(P.forwardRef(n))}var gl=ua,_l=ni,vl=Ii;function yl(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=P.useRef(t!==void 0),[o,s]=P.useState(n);return[a?t:o,P.useCallback(e=>{a||s(e)},[])]}var bl=yl,xl=Jc;function Sl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Cl(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Sl(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=I(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=I(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 wl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Tl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function El(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Dl(e){return typeof e==`function`?e():e}var Ol=e=>{let{classes:t}=e;return la({root:[`root`],paper:[`paper`]},ul,t)},kl=R(al,{name:`MuiPopover`,slot:`Root`})({}),Al=R(ll,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),jl=P.forwardRef(function(e,t){let n=ls({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=P.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Ol(w),E=P.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Dl(i),t=(e&&e.nodeType===1?e:ps(C.current).body).getBoundingClientRect();return{top:t.top+wl(t,a.vertical),left:t.left+Tl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=P.useCallback(e=>({vertical:wl(e,_.vertical),horizontal:Tl(e,_.horizontal)}),[_.horizontal,_.vertical]),O=P.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:El(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=hs(Dl(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:El(n)}},[i,s,E,D,f]),[k,A]=P.useState(p),j=P.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[O]);P.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},ee=()=>{A(!1)};P.useEffect(()=>{p&&j()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),P.useEffect(()=>{if(!p)return;let e=ds(()=>{j()}),t=hs(Dl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let N=y,te={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ne,re]=Bc(`transition`,{elementType:cc,externalForwardedProps:te,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),ee()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ne.muiSupportAuto&&(N=void 0);let ie=u||(i?ps(Dl(i)).body:void 0),[ae,{slots:oe,slotProps:se,...ce}]=Bc(`root`,{ref:t,elementType:kl,externalForwardedProps:{...te,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Cl(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ie,open:p},ownerState:w,className:I(T.root,l)}),[le,ue]=Bc(`paper`,{ref:C,className:T.paper,elementType:Al,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,F.jsx)(ae,{...ce,...!is(ae)&&{slots:oe,slotProps:se,disableScrollLock:x},children:(0,F.jsx)(ne,{...re,timeout:N,children:(0,F.jsx)(le,{...ue,children:c})})})}),Ml={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`},Nl={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`},Pl=s({background:()=>iu,backgroundDark:()=>au,black:()=>vu,blueGrey100:()=>Eu,blueGrey300:()=>Du,blueGrey600:()=>Ou,blueGrey900:()=>ku,border:()=>du,borderDark:()=>pu,borderGray:()=>mu,borderLight:()=>fu,buttonBorder:()=>Iu,buttonFocusOutline:()=>Tu,buttonHoverBg:()=>Lu,correct:()=>Bl,correctSecondary:()=>Vl,correctTertiary:()=>Hl,correctWithIcon:()=>Ul,defaults:()=>V,disabled:()=>Ll,disabledSecondary:()=>Rl,disabledText:()=>zl,dropdownBackground:()=>su,fadedPrimary:()=>$l,focusChecked:()=>xu,focusCheckedBorder:()=>Su,focusUnchecked:()=>Cu,focusUncheckedBorder:()=>wu,incorrect:()=>Wl,incorrectSecondary:()=>Kl,incorrectWithIcon:()=>Gl,keyBoardFocusIndicator:()=>Fu,keypadButton:()=>Au,keypadButtonHover:()=>Nu,keypadButtonOperator:()=>ju,keypadButtonOperatorHover:()=>Pu,keypadEmptyPlaceholder:()=>Mu,missing:()=>ql,missingWithIcon:()=>Jl,primary:()=>Yl,primaryDark:()=>Zl,primaryLight:()=>Xl,primaryText:()=>Ql,secondary:()=>eu,secondaryBackground:()=>ou,secondaryDark:()=>nu,secondaryLight:()=>tu,secondaryText:()=>ru,surface:()=>cu,tableGrid:()=>hu,tableGridLight:()=>gu,tableStripe:()=>_u,tertiary:()=>lu,tertiaryLight:()=>uu,text:()=>Il,transparent:()=>bu,v:()=>Fl,visualElementsColors:()=>Ru,white:()=>yu}),V={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:va[500],CORRECT_SECONDARY:va[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ha[500],INCORRECT_SECONDARY:ma[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ma[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Nl[500],PRIMARY_LIGHT:Nl[200],PRIMARY_DARK:Nl[800],SECONDARY:Ml.A400,SECONDARY_LIGHT:Ml[200],SECONDARY_DARK:Ml[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(V);var Fl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},H=Fl(`pie`),Il=()=>H(`text`,V.TEXT),Ll=()=>H(`disabled`,V.DISABLED),Rl=()=>H(`disabled-secondary`,V.DISABLED_SECONDARY),zl=()=>H(`disabled-text`,`text`,V.DISABLED_TEXT),Bl=()=>H(`correct`,V.CORRECT),Vl=()=>H(`correct-secondary`,V.CORRECT_SECONDARY),Hl=()=>H(`correct-tertiary`,V.CORRECT_TERTIARY),Ul=()=>H(`correct-icon`,V.CORRECT_WITH_ICON),Wl=()=>H(`incorrect`,V.INCORRECT),Gl=()=>H(`incorrect-icon`,V.INCORRECT_WITH_ICON),Kl=()=>H(`incorrect-secondary`,V.INCORRECT_SECONDARY),ql=()=>H(`missing`,V.MISSING),Jl=()=>H(`missing-icon`,V.MISSING_WITH_ICON),Yl=()=>H(`primary`,V.PRIMARY),Xl=()=>H(`primary-light`,V.PRIMARY_LIGHT),Zl=()=>H(`primary-dark`,V.PRIMARY_DARK),Ql=()=>H(`primary-text`,`text`,V.TEXT),$l=()=>H(`faded-primary`,V.FADED_PRIMARY),eu=()=>H(`secondary`,V.SECONDARY),tu=()=>H(`secondary-light`,V.SECONDARY_LIGHT),nu=()=>H(`secondary-dark`,V.SECONDARY_DARK),ru=()=>H(`secondary-text`,`text`,V.TEXT),iu=()=>H(`background`,V.BACKGROUND),au=()=>H(`background-dark`,V.BACKGROUND_DARK),ou=()=>H(`secondary-background`,V.SECONDARY_BACKGROUND),su=()=>H(`dropdown-background`,V.DROPDOWN_BACKGROUND),cu=()=>H(`surface`,V.SURFACE),lu=()=>H(`tertiary`,V.TERTIARY),uu=()=>H(`tertiary-light`,V.TERTIARY_LIGHT),du=()=>H(`border`,V.BORDER),fu=()=>H(`border-light`,V.BORDER_LIGHT),pu=()=>H(`border-dark`,V.BORDER_DARK),mu=()=>H(`border-gray`,V.BORDER_GRAY),hu=()=>H(`table-grid`,`text`,V.TABLE_GRID),gu=()=>H(`table-grid-light`,`border-light`,V.TABLE_GRID_LIGHT),_u=()=>H(`table-stripe`,`background-dark`,V.TABLE_STRIPE),vu=()=>H(`black`,V.BLACK),yu=()=>H(`white`,V.WHITE),bu=()=>V.TRANSPARENT,xu=()=>H(`focus-checked`,V.FOCUS_CHECKED),Su=()=>H(`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Cu=()=>H(`focus-unchecked`,V.FOCUS_UNCHECKED),wu=()=>H(`focus-unchecked-border`,V.FOCUS_UNCHECKED_BORDER),Tu=()=>H(`button-focus-outline`,V.BUTTON_FOCUS_OUTLINE),Eu=()=>H(`blue-grey-100`,V.BLUE_GREY100),Du=()=>H(`blue-grey-300`,V.BLUE_GREY300),Ou=()=>H(`blue-grey-600`,V.BLUE_GREY600),ku=()=>H(`blue-grey-900`,V.BLUE_GREY900),Au=()=>H(`keypad-button`,V.KEYPAD_BUTTON),ju=()=>H(`keypad-button-operator`,V.KEYPAD_BUTTON_OPERATOR),Mu=()=>H(`keypad-empty-placeholder`,V.KEYPAD_EMPTY_PLACEHOLDER),Nu=()=>H(`keypad-button-hover`,V.KEYPAD_BUTTON_HOVER),Pu=()=>H(`keypad-button-operator-hover`,V.KEYPAD_BUTTON_OPERATOR_HOVER),Fu=()=>H(`keyboard-focus-indicator`,V.KEY_BOARD_FOCUS_INDICATOR),Iu=()=>H(`button-border`,V.BUTTON_BORDER),Lu=()=>H(`button-hover-bg`,V.BUTTON_HOVER_BG),Ru={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},zu=R(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Bu=R(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Ll()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Bl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Wl()})`}}),Vu=R(`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`}}),Hu=class extends P.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(Us,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(Vu,{ref:this.nodeRef,children:(0,F.jsx)(zu,{children:(0,F.jsx)(Bu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(Qs,{children:this.renderFeedback()})})}},Uu=()=>{};function Wu(){let e=function(){};return e.enabled=!1,e.log=Uu,e.extend=()=>e,e.destroy=Uu,e}Wu.log=Uu,Wu.enable=Uu,Wu.disable=()=>``,Wu.enabled=()=>!1;var Gu=s({Correct:()=>Zu,Incorrect:()=>Qu,NothingSubmitted:()=>ed,PartiallyCorrect:()=>$u}),Ku=Wu(`pie-libs:render-ui:response-indicators`),qu=R(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Ju=R(jl)({cursor:`pointer`}),Yu=R(`div`)({padding:`0`,borderRadius:`4px`}),Xu=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Ku(`[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,F.jsxs)(qu,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(Ju,{PaperComponent:Yu,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(Hu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Zu=Xu(Uo,`correct`),Qu=Xu(Xo,`incorrect`),$u=Xu(rs,`partially-correct`),ed=Xu(es,`nothing-submitted`);function td(e){return Vr(`MuiCollapse`,e)}Hr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var nd=e=>{let{orientation:t,classes:n}=e;return la({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},td,n)},rd=R(`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]}})(Pc(({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`}}]}))),id=R(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),ad=R(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),od=P.forwardRef(function(e,t){let n=ls({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=Ga.standard,TransitionComponent:x=zs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=nd(C),T=So(),E=xs(),D=P.useRef(null),O=P.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=P.useRef(null),ee=ic(t,M),N=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,te=ec(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),ne=ec(M,(e,t)=>{let n=N();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=nc({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),re=ec(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),ie=ec(M,e=>{e.style[j]=`${N()}px`,p&&p(e)}),ae=ec(M,m),oe=ec(M,e=>{let t=N(),{duration:n,easing:r}=nc({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),se=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=Bc(`root`,{ref:ee,className:I(w.root,a),elementType:rd,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[de,fe]=Bc(`wrapper`,{ref:D,className:w.wrapper,elementType:id,externalForwardedProps:ce,ownerState:C}),[pe,me]=Bc(`wrapperInner`,{className:w.wrapperInner,elementType:ad,externalForwardedProps:ce,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:te,onEntered:re,onEntering:ne,onExit:ie,onExited:ae,onExiting:oe,addEndListener:se,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(le,{...ue,className:I(ue.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(de,{...fe,ownerState:r,children:(0,F.jsx)(pe,{...me,ownerState:r,children:i})})})}})});od&&(od.muiSupportAuto=!0);var sd=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,cd=`pie-mathjax-version-conflict`,ld=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function ud(e,t){if(typeof window>`u`)return;let n=globalThis;n[ld]??={logged:!1,conditions:[]};let r=n[ld];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 ${sd}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(cd,{detail:{condition:e,message:i,docsUrl:sd}}))}function dd(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var fd=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,eee={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},tee=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,pd=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,md=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,hd=/\\embed\{newLine\}\[\]/g,gd=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],_d=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),vd=`PIE-MJX-CHTML-styles`,yd=`MJX-CHTML-styles`,bd=[yd,`MJX-SVG-styles`],xd=201;function Sd(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 Cd(){return window.MathJax}function wd(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of gd)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function Td(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=`\\(${wd(e)}\\)`.replace(hd,`\\newline `),t.dataset.mathHandled=`true`)}}function Ed(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?md:pd).test(e.textContent??``)}function Dd(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=Cd(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&Od(e),r?.defaultReady?.(),i&&kd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...eee}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(tee),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||fd,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function Od(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=vd)}function kd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Sd(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,xd,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Sd(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===yd&&(r.id=vd),Md()}function Ad(e){return e instanceof HTMLStyleElement&&bd.includes(e.id)}function jd(e){ud(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Md(){let e=document.head,t=[...e.children].find(Ad);if(t){jd(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(Ad);if(e){jd(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Nd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=Cd()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function Pd(e){let t=Cd();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Nd(t):Dd(e)}function Fd(e){return Pd(e).then(()=>{typeof Cd()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Id(e){let t=globalThis,n=t[_d];return n||(n=Fd(e),t[_d]=n),n}function Ld(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=dd();r&&ud(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),Td(n);let i=Id(e);if(!Ed(n,t)){i.catch(()=>{});return}await i;let a=Cd();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),Sd(n))}}var Rd=`@pie-lib/math-rendering`,zd=`@pie-lib/math-rendering@2`,Bd=null;function Vd(){return!!window[zd]?.opts?.useSingleDollar}function Hd(){return Bd||=Ld({useSingleDollar:Vd()}),Bd}function Ud(){if(typeof window>`u`)return null;let e=window[Rd];return typeof e?.renderMath==`function`?e:null}var Wd=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=Ud();return r?await r.renderMath?.(n):await Hd()(n),t?n.innerHTML:void 0},Gd=e=>Ud()?.wrapMath?.(e)??e,Kd=R(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),qd=R(od)(({theme:e})=>({paddingTop:e.spacing(2)})),Jd=class extends P.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Wd(this.root)}componentDidUpdate(){Wd(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,F.jsx)(Kd,{children:r})}),(0,F.jsx)(qd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function Yd(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var Xd=class e{static create(){return new e}static use(){let t=_s(e.create).current,[n,r]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=r,P.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=Qd(),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 Zd(){return Xd.use()}function Qd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function $d(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=P.useState(!1),f=I(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=I(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),P.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,F.jsx)(`span`,{className:f,style:p,children:(0,F.jsx)(`span`,{className:m})})}var ef=Hr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),tf=550,nf=Rt`
48
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});$o.propTypes={fill:y.string.isRequired};var es=class extends P.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)(Zo,{fill:t})]}),emoji:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),feedback:{check:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),emoji:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),square:{check:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)(Zo,{fill:t})]}),emoji:(0,F.jsxs)(Po,{children:[(0,F.jsx)(Qo,{fill:n}),(0,F.jsx)($o,{fill:t})]}),open:{check:(0,F.jsx)(Po,{children:(0,F.jsx)(Zo,{fill:n})}),emoji:(0,F.jsx)(Po,{children:(0,F.jsx)($o,{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]}};es.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},es.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var ts=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,F.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,F.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});ts.propTypes={fill:y.string.isRequired};var ns=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,F.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.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})]});ns.propTypes={fill:y.string.isRequired};var rs=Bo(ts,ns);rs.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},rs.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function is(e){return typeof e==`string`}function as(e){return(0,F.jsx)(Pr,{...e,defaultTheme:xo,themeId:x})}function ss(e){return function(t){return(0,F.jsx)(as,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function cs(){return Ir}function ls(e){return Mi(e)}function us(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var ds=us;function fs(e){return e&&e.ownerDocument||document}var ps=fs;function ms(e){return fs(e).defaultView||window}var hs=ms,gs={};function _s(e,t){let n=P.useRef(gs);return n.current===gs&&(n.current=e(t)),n}var vs=[];function ys(e){P.useEffect(e,vs)}var bs=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 xs(){let e=_s(bs.create).current;return ys(e.disposeEffect),e}function Ss(e){return e?.ref||null}function Cs(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 ws(e,t){return ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ws(e,t)}function Ts(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ws(e,t)}function Es(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):Es(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Os(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ks(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Os(e.className,t):e.setAttribute(`class`,Os(e.className&&e.className.baseVal||``,t))}var As={disabled:!1},js=P.createContext(null),Ms=function(e){return e.scrollTop},Ns=l(h()),Ps=`unmounted`,Fs=`exited`,Is=`entering`,Ls=`entered`,Rs=`exiting`,zs=function(e){Ts(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=Fs,r.appearStatus=Is):o=Ls:o=t.unmountOnExit||t.mountOnEnter?Ps:Fs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Fs}: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=Is):(n===`entering`||n===`entered`)&&(t=Rs)}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:Ns.findDOMNode(this);n&&Ms(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Ps})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Ns.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||As.disabled){this.safeSetState({status:Ls},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Is},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Ls},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:Ns.findDOMNode(this);if(!t||As.disabled){this.safeSetState({status:Fs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Rs},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Fs},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:Ns.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=Cs(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return P.createElement(js.Provider,{value:null},typeof n==`function`?n(e,r):P.cloneElement(P.Children.only(n),r))},t}(P.Component);zs.contextType=js,zs.propTypes={};function Bs(){}zs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bs,onEntering:Bs,onEntered:Bs,onExit:Bs,onExiting:Bs,onExited:Bs},zs.UNMOUNTED=Ps,zs.EXITED=Fs,zs.ENTERING=Is,zs.ENTERED=Ls,zs.EXITING=Rs;var Vs=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Ds(e,t)})},Hs=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ks(e,t)})},Us=function(e){Ts(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&&Ms(e),r&&(this.appliedClasses[t][n]=r,Vs(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&&Hs(e,r),i&&Hs(e,i),a&&Hs(e,a)},n.render=function(){var e=this.props;e.classNames;var t=Cs(e,[`classNames`]);return P.createElement(zs,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(P.Component);Us.defaultProps={classNames:``},Us.propTypes={};function Ws(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Gs(e,t){var n=function(e){return t&&(0,P.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&P.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Ks(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 qs(e,t,n){return n[t]==null?e.props[t]:n[t]}function Js(e,t){return Gs(e.children,function(n){return(0,P.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:qs(n,`appear`,e),enter:qs(n,`enter`,e),exit:qs(n,`exit`,e)})})}function Ys(e,t,n){var r=Gs(e.children),i=Ks(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,P.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,P.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:qs(o,`exit`,e),enter:qs(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,P.cloneElement)(o,{in:!1}):c&&s&&(0,P.isValidElement)(l)&&(i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:qs(o,`exit`,e),enter:qs(o,`enter`,e)}))}}),i}var Xs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Zs={component:`div`,childFactory:function(e){return e}},Qs=function(e){Ts(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Ws(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?Js(e,r):Ys(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Gs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Cs(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Xs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?P.createElement(js.Provider,{value:i},a):P.createElement(js.Provider,{value:i},P.createElement(t,r,a))},t}(P.Component);Qs.propTypes={},Qs.defaultProps=Zs;var $s=e=>e.scrollTop;function ec(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function tc(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function nc(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 rc(...e){let t=P.useRef(void 0),n=P.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 P.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ic=rc;function ac(e){return`scale(${e}, ${e**2})`}var oc={entering:{opacity:1,transform:ac(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:ac(.75)},exited:{opacity:0,transform:ac(.75)}},sc={opacity:0,transform:ac(.75),visibility:`hidden`},cc=P.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=xs(),_=P.useRef(),v=So(),y=P.useRef(null),b=ic(y,Ss(i),t),x=ec(y,l),S=ec(y,(e,t)=>{$s(e);let{duration:n,delay:r,easing:i}=nc({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=ec(y,c),w=ec(y,f),T=ec(y,e=>{let{duration:t,delay:n,easing:r}=nc({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=ac(.75),u&&u(e)}),E=ec(y,e=>{e.style.transition=``,d&&d(e)});return(0,F.jsx)(zs,{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=tc(e,o,oc,sc,p,i.props.style);return P.cloneElement(i,{style:r,ref:b,...n})}})});cc&&(cc.muiSupportAuto=!0);function lc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function uc(e){let t=fs(e);return t.body===e?ms(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function fc(e){return parseFloat(ms(e).getComputedStyle(e).paddingRight)||0}function pc(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 mc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!pc(e);t&&n&&dc(e,i)})}function hc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function gc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(uc(r)){let e=lc(ms(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${fc(r)+e}px`;let t=fs(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${fc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=fs(r).body;else{let t=r.parentElement,n=ms(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 _c(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var vc=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&&dc(e.modalRef,!1);let r=_c(t);mc(t,e.mount,e.modalRef,r,!0);let i=hc(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=hc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=gc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=hc(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&&dc(e.modalRef,t),mc(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&&dc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function yc(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 bc=yc;function xc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Sc=xc,Cc=`data-mui-focusable`;function wc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Cc}]`):null}var Tc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function z(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 Ec(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 Dc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Ec(e))}function Oc(e){let t=[],n=[];return Array.from(e.querySelectorAll(Tc)).forEach((e,r)=>{let i=z(e);i===-1||!Dc(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 kc(){return!0}function Ac(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Oc,isEnabled:o=kc,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(!1),m=P.useRef(null),h=rc(Ss(t),m),g=P.useRef(null);P.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),P.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Sc(fs(m.current)),t=wc(m.current)??m.current;return bc(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]),P.useEffect(()=>{if(!s||!m.current)return;let e=fs(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Sc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Sc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(bc(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=Sc(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,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),P.cloneElement(t,{ref:h,onFocus:_}),(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function jc(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Mc(e){return typeof e==`function`?e():e}var Nc=P.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=P.useState(null),s=rc(P.isValidElement(n)?Ss(n):null,t);if(ni(()=>{i||o(Mc(r)||document.body)},[r,i]),ni(()=>{if(a&&!i)return jc(t,a),()=>{jc(t,null)}},[t,a,i]),i){if(P.isValidElement(n)){let e={ref:s};return P.cloneElement(n,e)}return n}return a&&Ns.createPortal(n,a)}),Pc=Hi;function Fc(e,t,n){return e===void 0||is(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ic(e,t,n){return typeof e==`function`?e(t,n):e}function Lc(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 Rc(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 zc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=I(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=Lc({...i,...r}),s=Rc(r),c=Rc(i),l=t(o),u=I(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 Bc(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=Ic(d[e],i),{props:{component:h,...g},internalRef:_}=zc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=rc(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Fc(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 Vc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Hc={opacity:0,visibility:`hidden`},Uc=P.forwardRef(function(e,t){let n=So(),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=P.useRef(null),y=ic(v,Ss(o),t),b=ec(v,d),x=ec(v,(e,t)=>{$s(e);let r=nc({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=ec(v,u),C=ec(v,m),w=ec(v,e=>{let t=nc({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=ec(v,e=>{e.style.transition=``,p&&p(e)});return(0,F.jsx)(zs,{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=tc(e,c,Vc,Hc,h,o.props.style);return P.cloneElement(o,{style:r,ref:y,...n})}})});function Wc(e){return Vr(`MuiBackdrop`,e)}Hr(`MuiBackdrop`,[`root`,`invisible`]);var Gc=e=>{let{classes:t,invisible:n}=e;return la({root:[`root`,n&&`invisible`]},Wc,t)},Kc=R(`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`}}]}),qc=P.forwardRef(function(e,t){let n=ls({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=Gc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Bc(`root`,{elementType:Kc,externalForwardedProps:_,className:I(g.root,i),ownerState:h}),[b,x]=Bc(`transition`,{elementType:Uc,externalForwardedProps:_,ownerState:h});return(0,F.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,F.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Jc(e){let t=P.useRef(e);return ni(()=>{t.current=e}),P.useRef((...e)=>(0,t.current)(...e)).current}function Yc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Xc(e){return typeof e==`function`?e():e}function Zc(e){return e?e.props.hasOwnProperty(`in`):!1}var Qc=()=>{},$c=new vc;function el(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=P.useRef({}),f=P.useRef(null),p=P.useRef(null),m=rc(p,u),[h,g]=P.useState(!l),_=Zc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>fs(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{$c.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Jc(()=>{let e=Xc(t)||y().body;$c.add(b(),e),p.current&&x()}),C=()=>$c.isTopModal(b()),w=Jc(e=>{f.current=e,e&&(l&&C()?x():p.current&&dc(p.current,v))}),T=P.useCallback(()=>{$c.remove(b(),v)},[v]);P.useEffect(()=>()=>{T()},[T]),P.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=Lc(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:Yc(()=>{g(!1),a&&a()},s?.props.onEnter??Qc),onExited:Yc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Qc)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function tl(e){return Vr(`MuiModal`,e)}Hr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var nl=e=>{let{open:t,exited:n,classes:r}=e;return la({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},tl,r)},rl=R(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Pc(({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`}}]}))),il=R(qc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),al=P.forwardRef(function(e,t){let n=ls({name:`MuiModal`,props:e}),{BackdropComponent:r=il,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:A,getBackdropProps:j,getTransitionProps:M,portalRef:ee,isTopModal:N,exited:te,hasTransition:ne}=el({...k,rootRef:t}),re={...k,exited:te},ie=nl(re),ae={};if(c.props.tabIndex===void 0&&(ae.tabIndex=`-1`),ne){let{onEnter:e,onExited:t}=M();ae.onEnter=e,ae.onExited=t}let oe={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[se,ce]=Bc(`root`,{ref:t,elementType:rl,externalForwardedProps:{...oe,...O,component:u},getSlotProps:A,ownerState:re,className:I(o,ie?.root,!re.open&&re.exited&&ie?.hidden)}),[le,ue]=Bc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>j({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:I(i?.className,ie?.backdrop),ownerState:re});return!b&&!w&&(!ne||te)?null:(0,F.jsx)(Nc,{ref:ee,container:l,disablePortal:g,children:(0,F.jsxs)(se,{...ce,children:[!y&&r?(0,F.jsx)(le,{...ue}):null,(0,F.jsx)(Ac,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:N,open:w,children:P.cloneElement(c,ae)})]})})});function ol(e){return Vr(`MuiPaper`,e)}Hr(`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 sl=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return la({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},ol,i)},cl=R(`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}`]]}})(Pc(({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)`}}]}))),ll=P.forwardRef(function(e,t){let n=ls({props:e,name:`MuiPaper`}),r=So(),{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=sl(u);return(0,F.jsx)(cl,{as:a,ownerState:u,className:I(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(${pi(`#fff`,no(o))}, ${pi(`#fff`,no(o))})`}},...l.style}})});function ul(e){return Vr(`MuiPopover`,e)}Hr(`MuiPopover`,[`root`,`paper`]);var B=Dn;function dl(e){return Vr(`MuiSvgIcon`,e)}Hr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var fl=e=>{let{color:t,fontSize:n,classes:r}=e;return la({root:[`root`,t!==`inherit`&&`color${B(t)}`,`fontSize${B(n)}`]},dl,r)},pl=R(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${B(n.color)}`],t[`fontSize${B(n.fontSize)}`]]}})(Pc(({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}}]}))),ml=P.forwardRef(function(e,t){let n=ls({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=P.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=fl(m);return(0,F.jsxs)(pl,{as:o,className:I(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,F.jsx)(`title`,{children:u}):null]})});ml.muiName=`SvgIcon`;function hl(e,t){function n(t,n){return(0,F.jsx)(ml,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ml.muiName,P.memo(P.forwardRef(n))}var gl=ua,_l=ni,vl=Ii;function yl(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=P.useRef(t!==void 0),[o,s]=P.useState(n);return[a?t:o,P.useCallback(e=>{a||s(e)},[])]}var bl=yl,xl=Jc;function Sl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Cl(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Sl(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=I(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=I(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 wl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Tl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function El(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Dl(e){return typeof e==`function`?e():e}var Ol=e=>{let{classes:t}=e;return la({root:[`root`],paper:[`paper`]},ul,t)},kl=R(al,{name:`MuiPopover`,slot:`Root`})({}),Al=R(ll,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),jl=P.forwardRef(function(e,t){let n=ls({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=P.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Ol(w),E=P.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Dl(i),t=(e&&e.nodeType===1?e:ps(C.current).body).getBoundingClientRect();return{top:t.top+wl(t,a.vertical),left:t.left+Tl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=P.useCallback(e=>({vertical:wl(e,_.vertical),horizontal:Tl(e,_.horizontal)}),[_.horizontal,_.vertical]),O=P.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:El(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=hs(Dl(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:El(n)}},[i,s,E,D,f]),[k,A]=P.useState(p),j=P.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[O]);P.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},ee=()=>{A(!1)};P.useEffect(()=>{p&&j()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),P.useEffect(()=>{if(!p)return;let e=ds(()=>{j()}),t=hs(Dl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let N=y,te={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ne,re]=Bc(`transition`,{elementType:cc,externalForwardedProps:te,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),ee()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ne.muiSupportAuto&&(N=void 0);let ie=u||(i?ps(Dl(i)).body:void 0),[ae,{slots:oe,slotProps:se,...ce}]=Bc(`root`,{ref:t,elementType:kl,externalForwardedProps:{...te,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Cl(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ie,open:p},ownerState:w,className:I(T.root,l)}),[le,ue]=Bc(`paper`,{ref:C,className:T.paper,elementType:Al,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,F.jsx)(ae,{...ce,...!is(ae)&&{slots:oe,slotProps:se,disableScrollLock:x},children:(0,F.jsx)(ne,{...re,timeout:N,children:(0,F.jsx)(le,{...ue,children:c})})})}),Ml={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`},Nl={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`},Pl=s({background:()=>iu,backgroundDark:()=>au,black:()=>vu,blueGrey100:()=>Eu,blueGrey300:()=>Du,blueGrey600:()=>Ou,blueGrey900:()=>ku,border:()=>du,borderDark:()=>pu,borderGray:()=>mu,borderLight:()=>fu,buttonBorder:()=>Iu,buttonFocusOutline:()=>Tu,buttonHoverBg:()=>Lu,correct:()=>Bl,correctSecondary:()=>Vl,correctTertiary:()=>Hl,correctWithIcon:()=>Ul,defaults:()=>V,disabled:()=>Ll,disabledSecondary:()=>Rl,disabledText:()=>zl,dropdownBackground:()=>su,fadedPrimary:()=>$l,focusChecked:()=>xu,focusCheckedBorder:()=>Su,focusUnchecked:()=>Cu,focusUncheckedBorder:()=>wu,incorrect:()=>Wl,incorrectSecondary:()=>Kl,incorrectWithIcon:()=>Gl,keyBoardFocusIndicator:()=>Fu,keypadButton:()=>Au,keypadButtonHover:()=>Nu,keypadButtonOperator:()=>ju,keypadButtonOperatorHover:()=>Pu,keypadEmptyPlaceholder:()=>Mu,missing:()=>ql,missingWithIcon:()=>Jl,primary:()=>Yl,primaryDark:()=>Zl,primaryLight:()=>Xl,primaryText:()=>Ql,secondary:()=>eu,secondaryBackground:()=>ou,secondaryDark:()=>nu,secondaryLight:()=>tu,secondaryText:()=>ru,surface:()=>cu,tableGrid:()=>hu,tableGridLight:()=>gu,tableStripe:()=>_u,tertiary:()=>lu,tertiaryLight:()=>uu,text:()=>Il,transparent:()=>bu,v:()=>Fl,visualElementsColors:()=>Ru,white:()=>yu}),V={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:va[500],CORRECT_SECONDARY:va[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ha[500],INCORRECT_SECONDARY:ma[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ma[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Nl[500],PRIMARY_LIGHT:Nl[200],PRIMARY_DARK:Nl[800],SECONDARY:Ml.A400,SECONDARY_LIGHT:Ml[200],SECONDARY_DARK:Ml[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(V);var Fl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},H=Fl(`pie`),Il=()=>H(`text`,V.TEXT),Ll=()=>H(`disabled`,V.DISABLED),Rl=()=>H(`disabled-secondary`,V.DISABLED_SECONDARY),zl=()=>H(`disabled-text`,`text`,V.DISABLED_TEXT),Bl=()=>H(`correct`,V.CORRECT),Vl=()=>H(`correct-secondary`,V.CORRECT_SECONDARY),Hl=()=>H(`correct-tertiary`,V.CORRECT_TERTIARY),Ul=()=>H(`correct-icon`,V.CORRECT_WITH_ICON),Wl=()=>H(`incorrect`,V.INCORRECT),Gl=()=>H(`incorrect-icon`,V.INCORRECT_WITH_ICON),Kl=()=>H(`incorrect-secondary`,V.INCORRECT_SECONDARY),ql=()=>H(`missing`,V.MISSING),Jl=()=>H(`missing-icon`,V.MISSING_WITH_ICON),Yl=()=>H(`primary`,V.PRIMARY),Xl=()=>H(`primary-light`,V.PRIMARY_LIGHT),Zl=()=>H(`primary-dark`,V.PRIMARY_DARK),Ql=()=>H(`primary-text`,`text`,V.TEXT),$l=()=>H(`faded-primary`,V.FADED_PRIMARY),eu=()=>H(`secondary`,V.SECONDARY),tu=()=>H(`secondary-light`,V.SECONDARY_LIGHT),nu=()=>H(`secondary-dark`,V.SECONDARY_DARK),ru=()=>H(`secondary-text`,`text`,V.TEXT),iu=()=>H(`background`,V.BACKGROUND),au=()=>H(`background-dark`,V.BACKGROUND_DARK),ou=()=>H(`secondary-background`,V.SECONDARY_BACKGROUND),su=()=>H(`dropdown-background`,V.DROPDOWN_BACKGROUND),cu=()=>H(`surface`,V.SURFACE),lu=()=>H(`tertiary`,V.TERTIARY),uu=()=>H(`tertiary-light`,V.TERTIARY_LIGHT),du=()=>H(`border`,V.BORDER),fu=()=>H(`border-light`,V.BORDER_LIGHT),pu=()=>H(`border-dark`,V.BORDER_DARK),mu=()=>H(`border-gray`,V.BORDER_GRAY),hu=()=>H(`table-grid`,`text`,V.TABLE_GRID),gu=()=>H(`table-grid-light`,`border-light`,V.TABLE_GRID_LIGHT),_u=()=>H(`table-stripe`,`background-dark`,V.TABLE_STRIPE),vu=()=>H(`black`,V.BLACK),yu=()=>H(`white`,V.WHITE),bu=()=>V.TRANSPARENT,xu=()=>H(`focus-checked`,V.FOCUS_CHECKED),Su=()=>H(`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Cu=()=>H(`focus-unchecked`,V.FOCUS_UNCHECKED),wu=()=>H(`focus-unchecked-border`,V.FOCUS_UNCHECKED_BORDER),Tu=()=>H(`button-focus-outline`,V.BUTTON_FOCUS_OUTLINE),Eu=()=>H(`blue-grey-100`,V.BLUE_GREY100),Du=()=>H(`blue-grey-300`,V.BLUE_GREY300),Ou=()=>H(`blue-grey-600`,V.BLUE_GREY600),ku=()=>H(`blue-grey-900`,V.BLUE_GREY900),Au=()=>H(`keypad-button`,V.KEYPAD_BUTTON),ju=()=>H(`keypad-button-operator`,V.KEYPAD_BUTTON_OPERATOR),Mu=()=>H(`keypad-empty-placeholder`,V.KEYPAD_EMPTY_PLACEHOLDER),Nu=()=>H(`keypad-button-hover`,V.KEYPAD_BUTTON_HOVER),Pu=()=>H(`keypad-button-operator-hover`,V.KEYPAD_BUTTON_OPERATOR_HOVER),Fu=()=>H(`keyboard-focus-indicator`,V.KEY_BOARD_FOCUS_INDICATOR),Iu=()=>H(`button-border`,V.BUTTON_BORDER),Lu=()=>H(`button-hover-bg`,V.BUTTON_HOVER_BG),Ru={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},zu=R(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Bu=R(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Ll()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Bl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Wl()})`}}),Vu=R(`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`}}),Hu=class extends P.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(Us,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(Vu,{ref:this.nodeRef,children:(0,F.jsx)(zu,{children:(0,F.jsx)(Bu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(Qs,{children:this.renderFeedback()})})}},Uu=()=>{};function Wu(){let e=function(){};return e.enabled=!1,e.log=Uu,e.extend=()=>e,e.destroy=Uu,e}Wu.log=Uu,Wu.enable=Uu,Wu.disable=()=>``,Wu.enabled=()=>!1;var Gu=s({Correct:()=>Zu,Incorrect:()=>Qu,NothingSubmitted:()=>ed,PartiallyCorrect:()=>$u}),Ku=Wu(`pie-libs:render-ui:response-indicators`),qu=R(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Ju=R(jl)({cursor:`pointer`}),Yu=R(`div`)({padding:`0`,borderRadius:`4px`}),Xu=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Ku(`[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,F.jsxs)(qu,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(Ju,{PaperComponent:Yu,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(Hu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Zu=Xu(Uo,`correct`),Qu=Xu(Xo,`incorrect`),$u=Xu(rs,`partially-correct`),ed=Xu(es,`nothing-submitted`);function td(e){return Vr(`MuiCollapse`,e)}Hr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var nd=e=>{let{orientation:t,classes:n}=e;return la({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},td,n)},rd=R(`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]}})(Pc(({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`}}]}))),id=R(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),ad=R(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),od=P.forwardRef(function(e,t){let n=ls({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=Ga.standard,TransitionComponent:x=zs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=nd(C),T=So(),E=xs(),D=P.useRef(null),O=P.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=P.useRef(null),ee=ic(t,M),N=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,te=ec(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),ne=ec(M,(e,t)=>{let n=N();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=nc({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),re=ec(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),ie=ec(M,e=>{e.style[j]=`${N()}px`,p&&p(e)}),ae=ec(M,m),oe=ec(M,e=>{let t=N(),{duration:n,easing:r}=nc({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),se=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=Bc(`root`,{ref:ee,className:I(w.root,a),elementType:rd,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[de,fe]=Bc(`wrapper`,{ref:D,className:w.wrapper,elementType:id,externalForwardedProps:ce,ownerState:C}),[pe,me]=Bc(`wrapperInner`,{className:w.wrapperInner,elementType:ad,externalForwardedProps:ce,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:te,onEntered:re,onEntering:ne,onExit:ie,onExited:ae,onExiting:oe,addEndListener:se,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(le,{...ue,className:I(ue.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(de,{...fe,ownerState:r,children:(0,F.jsx)(pe,{...me,ownerState:r,children:i})})})}})});od&&(od.muiSupportAuto=!0);var sd=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,cd=`pie-mathjax-version-conflict`,ld=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function ud(e,t){if(typeof window>`u`)return;let n=globalThis;n[ld]??={logged:!1,conditions:[]};let r=n[ld];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 ${sd}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(cd,{detail:{condition:e,message:i,docsUrl:sd}}))}function dd(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var fd=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,eee={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},tee=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,pd=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,md=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,hd=/\\embed\{newLine\}\[\]/g,gd=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],_d=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),vd=`PIE-MJX-CHTML-styles`,yd=`MJX-CHTML-styles`,bd=[yd,`MJX-SVG-styles`],xd=201;function Sd(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 Cd(){return window.MathJax}function wd(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of gd)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function Td(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=`\\(${wd(e)}\\)`.replace(hd,`\\newline `),t.dataset.mathHandled=`true`)}}function Ed(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?md:pd).test(e.textContent??``)}function Dd(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=Cd(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&Od(e),r?.defaultReady?.(),i&&kd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...eee}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(tee),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||fd,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function Od(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=vd)}function kd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Sd(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,xd,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Sd(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===yd&&(r.id=vd),Md()}function Ad(e){return e instanceof HTMLStyleElement&&bd.includes(e.id)}function jd(e){ud(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Md(){let e=document.head,t=[...e.children].find(Ad);if(t){jd(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(Ad);if(e){jd(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Nd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=Cd()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function Pd(e){let t=Cd();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Nd(t):Dd(e)}function Fd(e){return Pd(e).then(()=>{typeof Cd()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Id(e){let t=globalThis,n=t[_d];return n||(n=Fd(e),t[_d]=n),n}function Ld(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=dd();r&&ud(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),Td(n);let i=Id(e);if(!Ed(n,t)){i.catch(()=>{});return}await i;let a=Cd();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),Sd(n))}}var Rd=`@pie-lib/math-rendering`,zd=`@pie-lib/math-rendering@2`,Bd=null;function Vd(){return!!window[zd]?.opts?.useSingleDollar}function Hd(){return Bd||=Ld({useSingleDollar:Vd()}),Bd}function Ud(){if(typeof window>`u`)return null;let e=window[Rd];return typeof e?.renderMath==`function`?e:null}var Wd=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=Ud();return r?await r.renderMath?.(n):await Hd()(n),t?n.innerHTML:void 0},Gd=e=>Ud()?.wrapMath?.(e)??e,Kd=R(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),qd=R(od)(({theme:e})=>({paddingTop:e.spacing(2)})),Jd=class extends P.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Wd(this.root)}componentDidUpdate(){Wd(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,F.jsx)(Kd,{children:r})}),(0,F.jsx)(qd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function Yd(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var Xd=class e{static create(){return new e}static use(){let t=_s(e.create).current,[n,r]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=r,P.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=Qd(),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 Zd(){return Xd.use()}function Qd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function $d(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=P.useState(!1),f=I(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=I(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),P.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,F.jsx)(`span`,{className:f,style:p,children:(0,F.jsx)(`span`,{className:m})})}var ef=Hr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),tf=550,nf=Rt`
49
49
  0% {
50
50
  transform: scale(0);
51
51
  opacity: 0.1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/charting",
3
- "version": "12.1.2-next.31",
3
+ "version": "12.1.2-next.32",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,13 +11,13 @@
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/charting": "8.0.0-next.51",
15
- "@pie-lib/correct-answer-toggle": "5.0.0-next.53",
16
- "@pie-lib/render-ui": "6.2.0-next.50",
14
+ "@pie-lib/charting": "8.0.0-next.52",
15
+ "@pie-lib/correct-answer-toggle": "5.0.0-next.54",
16
+ "@pie-lib/render-ui": "6.2.0-next.51",
17
17
  "debug": "^4.1.1",
18
18
  "prop-types": "^15.8.1",
19
- "@pie-lib/config-ui": "14.0.0-next.47",
20
- "@pie-lib/editable-html-tip-tap": "3.0.0-next.47",
19
+ "@pie-lib/config-ui": "14.0.0-next.48",
20
+ "@pie-lib/editable-html-tip-tap": "3.0.0-next.48",
21
21
  "@pie-element/shared-lodash": "0.1.1-next.3",
22
22
  "@pie-element/shared-configure-events": "0.1.1-next.1",
23
23
  "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.6",