@nebula.js/stardust 5.9.3 → 5.10.1

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.
package/dist/stardust.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v5.9.3
2
+ * @nebula.js/stardust v5.10.1
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -93,7 +93,7 @@
93
93
  animation-iteration-count: infinite;
94
94
  animation-delay: 200ms;
95
95
  }
96
- `),ms.rippleVisible,ws,550,(({theme:e})=>e.transitions.easing.easeInOut),ms.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ms.child,ms.childLeaving,Es,550,(({theme:e})=>e.transitions.easing.easeInOut),ms.childPulsate,ks,(({theme:e})=>e.transitions.easing.easeInOut)),Ls=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=lt(n,gs),[l,s]=b.useState([]),c=b.useRef(0),u=b.useRef(null);b.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=b.useRef(!1),p=ti(),f=b.useRef(null),h=b.useRef(null),m=b.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,Tr.jsx(Rs,{classes:{ripple:ha(o.ripple,ms.ripple),rippleVisible:ha(o.rippleVisible,ms.rippleVisible),ripplePulsate:ha(o.ripplePulsate,ms.ripplePulsate),child:ha(o.child,ms.child),childLeaving:ha(o.childLeaving,ms.childLeaving),childPulsate:ha(o.childPulsate,ms.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=b.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=b.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=b.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{y(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return b.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:y})),[v,g,y]),Tr.jsx(Cs,it({className:ha(ms.root,o.root,a),ref:h},i,{children:Tr.jsx(hs,{component:null,exit:!0,children:l})}))}));function Os(e){return ba("MuiButtonBase",e)}const Is=va("MuiButtonBase",["root","disabled","focusVisible"]),_s=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ps=Wl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Is.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ts=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:k,onTouchEnd:C,onTouchMove:R,onTouchStart:L,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:_,type:P}=n,T=lt(n,_s),M=b.useRef(null),N=b.useRef(null),q=Ja(N,_),{isFocusVisibleRef:A,onFocus:D,onBlur:z,ref:j}=ui(),[F,$]=b.useState(!1);s&&F&&$(!1),b.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[B,W]=b.useState(!1);b.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return Xa((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}b.useEffect((()=>{F&&d&&!c&&B&&N.current.pulsate()}),[c,d,F,B]);const V=U("start",w),G=U("stop",m),K=U("stop",g),Z=U("stop",k),X=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=U("start",L),Q=U("stop",C),Y=U("stop",R),ee=U("stop",(e=>{z(e),!1===A.current&&$(!1),f&&f(e)}),!1),te=Xa((e=>{M.current||(M.current=e.currentTarget),D(e),!0===A.current&&($(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=b.useRef(!1),oe=Xa((e=>{d&&!re.current&&F&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=Xa((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===P?"button":P,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Ja(t,j,M),ce=it({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=fi({root:["root",t&&"disabled",n&&"focusVisible"]},Os,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Tr.jsxs(Ps,it({as:ie,className:ha(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:Q,onTouchMove:Y,onTouchStart:J,ref:se,tabIndex:s?-1:O,type:P},le,T,{children:[a,H?Tr.jsx(Ls,it({ref:q,center:o},I)):null]}))}));function Ms(e){return ba("MuiButton",e)}const Ns=va("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),qs=b.createContext({}),As=b.createContext(void 0),Ds=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zs=e=>it({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),js=Wl(Ts,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ro(n.color)}`],t[`size${ro(n.size)}`],t[`${n.variant}Size${ro(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return it({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":it({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ns.focusVisible}`]:it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ns.disabled}`]:it({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Qi.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ns.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ns.disabled}`]:{boxShadow:"none"}})),Fs=Wl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ro(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zs(e)))),$s=Wl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ro(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zs(e)))),Bs=b.forwardRef((function(e,t){const n=b.useContext(qs),r=b.useContext(As),o=Gl({props:qa(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=o,x=lt(o,Ds),S=it({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return it({},i,fi({root:["root",a,`${a}${ro(t)}`,`size${ro(o)}`,`${a}Size${ro(o)}`,`color${ro(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ro(o)}`],endIcon:["icon","endIcon",`iconSize${ro(o)}`]},Ms,i))})(S),E=g&&Tr.jsx(Fs,{className:w.startIcon,ownerState:S,children:g}),k=p&&Tr.jsx($s,{className:w.endIcon,ownerState:S,children:p}),C=r||"";return Tr.jsxs(js,it({ownerState:S,className:ha(n.className,w.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:ha(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[E,a,k]}))}));var Ws={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Hs={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},Us={mode:"light",palette:{primary:{main:Hs.grey25,contrastText:Hs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Hs.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Hs.grey100,dark:Hs.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Hs.grey100,default:Hs.grey100,lightest:Hs.grey100,lighter:Hs.grey98,darker:Hs.grey95,darkest:Hs.grey90},custom:{focusBorder:Hs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Hs.grey45,disabledContrastText:Hs.grey100},selected:{main:Hs.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Hs.grey100,selectedContrastText:Hs.grey100,mainContrastText:Hs.grey100,alternativeContrastText:Hs.grey25,excludedContrastText:Hs.grey25,selectedExcludedContrastText:Hs.grey100,possibleContrastText:Hs.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Vs={mode:"dark",palette:{primary:{main:Hs.grey20,contrastText:Hs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Hs.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Hs.grey100,dark:Hs.grey0},action:{active:Hs.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Hs.grey25,lighter:Hs.grey20,darker:Hs.grey15,darkest:Hs.grey10},custom:{focusBorder:Hs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Hs.grey45,disabledContrastText:Hs.grey100},selected:{main:Hs.green,alternative:Hs.grey20,excluded:Hs.grey10,selectedExcluded:Hs.grey10,possible:Hs.grey80,selectedContrastText:Hs.grey100,mainContrastText:Hs.grey100,alternativeContrastText:Hs.grey100,excludedContrastText:Hs.grey100,selectedExcludedContrastText:Hs.grey100,possibleContrastText:Hs.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Gs={},Ks=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Ns.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Ns.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Ns.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ns.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Zs(e){let t=Us,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Vs));const r=JSON.stringify(t);if(Gs[r])return Gs[r];const o={palette:c(c({type:t.mode},Ws.palette),t.palette),typography:c({},Ws.typography),shadows:Ws.shadows,props:c({},Ws.props),shape:c({},Ws.shape)};return Gs[r]=Rl(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=it({},lt(e,Bi),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=wo(e.spacing);const s=Kr(e.breakpoints||{}),c=l.spacing;l.mixins=it({gutters:(e={})=>it({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:it({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=lt(o,Wi),f=d||u||"light";return l.palette=it({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(c(c({},o),{},{overrides:Ks(o)}))),Gs[r].name=n,Gs[r]}pa.configure((e=>"njs-".concat("37ef","-").concat(e.replace("Mui",""))));var Xs=v.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Js={active:!0,select:!0,passive:!0,edit:!1};function Qs(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Js).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Js[e],n[e]=!Js[e])})),e.constraints=n,e.interactions=t}var Ys=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=b.useState(t);return b.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const ec=b.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=b.useState(n),[s,c]=b.useState(),{theme:u}=b.useMemo((()=>({theme:Zs(s)})),[s]),[d,p]=b.useState([]);return b.useEffect((()=>{r&&r()}),[]),b.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),v.createElement(Nr,{injectFirst:!0},v.createElement(Ul,{theme:u},v.createElement(Xs.Provider,{value:i},d)))}));function tc(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=v.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.9.3"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Qs(r);const l=function(e){const[t,n]=Ys({}),[r,o]=Ys({}),[a,i]=Ys({}),[l,s]=Ys({}),[c,u]=Ys({}),[,d]=Ys({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=Ys({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=Ys({}),[r,o]=Ys({}),[a,i]=Ys({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);nt.createRoot(i).render(v.createElement(ec,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Qs(e),a.current.setContext(e)})()}},l,s,a,o]}function nc(e){return ba("MuiSvgIcon",e)}va("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oc=Wl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ro(n.color)}`],t[`fontSize${ro(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),ac=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=lt(n,rc),f=b.isValidElement(r)&&"svg"===r.type,h=it({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return fi({root:["root","inherit"!==t&&`color${ro(t)}`,`fontSize${ro(n)}`]},nc,r)})(h);return Tr.jsxs(oc,it({as:i,className:ha(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Tr.jsx("title",{children:u}):null]}))}));function ic(e,t){function n(n,r){return Tr.jsx(ac,it({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ac.muiName,b.memo(b.forwardRef(n))}ac.muiName="SvgIcon";const lc={configure:e=>{pa.configure(e)}};var sc=Object.freeze({__proto__:null,capitalize:ro,createChainedFunction:Fa,createSvgIcon:ic,debounce:$a,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Ba,ownerDocument:Wa,ownerWindow:Ha,requirePropFactory:function(e,t){return()=>null},setRef:Ua,unstable_ClassNameGenerator:lc,unstable_useEnhancedEffect:Da,unstable_useId:Ka,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Za,useEventCallback:Xa,useForkRef:Ja,useIsFocusVisible:ui});const cc=e=>e.scrollTop;function uc(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function dc(e){return ba("MuiPaper",e)}va("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"]);const pc=["className","component","elevation","square","variant"],fc=Wl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return it({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&it({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Qi.alpha("#fff",Vl(t.elevation))}, ${Qi.alpha("#fff",Vl(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),hc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=lt(n,pc),c=it({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return fi({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},dc,o)})(c);return Tr.jsx(fc,it({as:o,ownerState:c,className:ha(u.root,r),ref:t},s))}));function mc(e){return ba("MuiIconButton",e)}const gc=va("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),bc=["edge","children","className","color","disabled","disableFocusRipple","size"],vc=Wl(Ts,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ro(n.color)}`],n.edge&&t[`edge${ro(n.edge)}`],t[`size${ro(n.size)}`]]}})((({theme:e,ownerState:t})=>it({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return it({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&it({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":it({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${gc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),yc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=lt(n,bc),d=it({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return fi({root:["root",n&&"disabled","default"!==r&&`color${ro(r)}`,o&&`edge${ro(o)}`,`size${ro(a)}`]},mc,t)})(d);return Tr.jsx(vc,it({className:ha(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function xc(e){return ba("MuiTypography",e)}va("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wc=Wl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ro(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>it({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Ec={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiTypography"}),r=(e=>kc[e]||e)(n.color),o=ca(it({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Ec}=o,f=lt(o,Sc),h=it({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||Ec[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return fi({root:["root",a,"inherit"!==e.align&&`align${ro(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},xc,i)})(h);return Tr.jsx(wc,it({as:m,ref:t,ownerState:h,className:ha(g.root,i)},f))}));var Rc,Lc={};function Oc(){if(Rc)return Lc;Rc=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(g()),t=ql;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return Lc.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Lc}var Ic=n(Oc()),_c="top",Pc="bottom",Tc="right",Mc="left",Nc="auto",qc=[_c,Pc,Tc,Mc],Ac="start",Dc="end",zc="clippingParents",jc="viewport",Fc="popper",$c="reference",Bc=qc.reduce((function(e,t){return e.concat([t+"-"+Ac,t+"-"+Dc])}),[]),Wc=[].concat(qc,[Nc]).reduce((function(e,t){return e.concat([t,t+"-"+Ac,t+"-"+Dc])}),[]),Hc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Uc(e){return e?(e.nodeName||"").toLowerCase():null}function Vc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gc(e){return e instanceof Vc(e).Element||e instanceof Element}function Kc(e){return e instanceof Vc(e).HTMLElement||e instanceof HTMLElement}function Zc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Vc(e).ShadowRoot||e instanceof ShadowRoot)}var Xc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Kc(o)&&Uc(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Kc(r)&&Uc(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Jc(e){return e.split("-")[0]}var Qc=Math.max,Yc=Math.min,eu=Math.round;function tu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function nu(){return!/^((?!chrome|android).)*safari/i.test(tu())}function ru(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Kc(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var i=(Gc(e)?Vc(e):window).visualViewport,l=!nu()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function ou(e){var t=ru(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function au(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function iu(e){return Vc(e).getComputedStyle(e)}function lu(e){return["table","td","th"].indexOf(Uc(e))>=0}function su(e){return((Gc(e)?e.ownerDocument:e.document)||window.document).documentElement}function cu(e){return"html"===Uc(e)?e:e.assignedSlot||e.parentNode||(Zc(e)?e.host:null)||su(e)}function uu(e){return Kc(e)&&"fixed"!==iu(e).position?e.offsetParent:null}function du(e){for(var t=Vc(e),n=uu(e);n&&lu(n)&&"static"===iu(n).position;)n=uu(n);return n&&("html"===Uc(n)||"body"===Uc(n)&&"static"===iu(n).position)?t:n||function(e){var t=/firefox/i.test(tu());if(/Trident/i.test(tu())&&Kc(e)&&"fixed"===iu(e).position)return null;var n=cu(e);for(Zc(n)&&(n=n.host);Kc(n)&&["html","body"].indexOf(Uc(n))<0;){var r=iu(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function pu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fu(e,t,n){return Qc(e,Yc(t,n))}function hu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function mu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var gu={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Jc(n.placement),s=pu(l),c=[Mc,Tc].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return hu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:mu(e,qc))}(o.padding,n),d=ou(a),p="y"===s?_c:Mc,f="y"===s?Pc:Tc,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=du(a),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[p],x=b-d[c]-u[f],S=b/2-d[c]/2+v,w=fu(y,S,x),E=s;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&au(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bu(e){return e.split("-")[1]}var vu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Mc,x=_c,S=window;if(c){var w=du(n),E="clientHeight",k="clientWidth";if(w===Vc(n)&&"static"!==iu(w=su(n)).position&&"absolute"===l&&(E="scrollHeight",k="scrollWidth"),o===_c||(o===Mc||o===Tc)&&a===Dc)x=Pc,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Mc||(o===_c||o===Pc)&&a===Dc)y=Tc,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[k])-r.width,f*=s?1:-1}var C,R=Object.assign({position:l},c&&vu),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:eu(n*o)/o||0,y:eu(r*o)/o||0}}({x:f,y:m},Vc(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((C={})[x]=v?"0":"",C[y]=b?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},R,((t={})[x]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var xu={passive:!0};var Su={left:"right",right:"left",bottom:"top",top:"bottom"};function wu(e){return e.replace(/left|right|bottom|top/g,(function(e){return Su[e]}))}var Eu={start:"end",end:"start"};function ku(e){return e.replace(/start|end/g,(function(e){return Eu[e]}))}function Cu(e){var t=Vc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ru(e){return ru(su(e)).left+Cu(e).scrollLeft}function Lu(e){var t=iu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ou(e){return["html","body","#document"].indexOf(Uc(e))>=0?e.ownerDocument.body:Kc(e)&&Lu(e)?e:Ou(cu(e))}function Iu(e,t){var n;void 0===t&&(t=[]);var r=Ou(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Vc(r),i=o?[a].concat(a.visualViewport||[],Lu(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Iu(cu(i)))}function _u(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pu(e,t,n){return t===jc?_u(function(e,t){var n=Vc(e),r=su(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=nu();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Ru(e),y:s}}(e,n)):Gc(t)?function(e,t){var n=ru(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):_u(function(e){var t,n=su(e),r=Cu(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Qc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Qc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ru(e),s=-r.scrollTop;return"rtl"===iu(o||n).direction&&(l+=Qc(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(su(e)))}function Tu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Iu(cu(e)),n=["absolute","fixed"].indexOf(iu(e).position)>=0&&Kc(e)?du(e):e;return Gc(n)?t.filter((function(e){return Gc(e)&&au(e,n)&&"body"!==Uc(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Pu(e,n,r);return t.top=Qc(o.top,t.top),t.right=Yc(o.right,t.right),t.bottom=Yc(o.bottom,t.bottom),t.left=Qc(o.left,t.left),t}),Pu(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Mu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Jc(o):null,i=o?bu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case _c:t={x:l,y:n.y-r.height};break;case Pc:t={x:l,y:n.y+n.height};break;case Tc:t={x:n.x+n.width,y:s};break;case Mc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?pu(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Ac:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Dc:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Nu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?zc:l,c=n.rootBoundary,u=void 0===c?jc:c,d=n.elementContext,p=void 0===d?Fc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=hu("number"!=typeof g?g:mu(g,qc)),v=p===Fc?$c:Fc,y=e.rects.popper,x=e.elements[h?v:p],S=Tu(Gc(x)?x:x.contextElement||su(e.elements.popper),s,u,i),w=ru(e.elements.reference),E=Mu({reference:w,element:y,placement:o}),k=_u(Object.assign({},y,E)),C=p===Fc?k:w,R={top:S.top-C.top+b.top,bottom:C.bottom-S.bottom+b.bottom,left:S.left-C.left+b.left,right:C.right-S.right+b.right},L=e.modifiersData.offset;if(p===Fc&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[Tc,Pc].indexOf(e)>=0?1:-1,n=[_c,Pc].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function qu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Wc:s,u=bu(r),d=u?l?Bc:Bc.filter((function(e){return bu(e)===u})):qc,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Nu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Jc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Au={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=Jc(g),v=s||(b===g||!h?[wu(g)]:function(e){if(Jc(e)===Nc)return[];var t=wu(e);return[ku(e),t,ku(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(Jc(n)===Nc?qu(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,k=y[0],C=0;C<y.length;C++){var R=y[C],L=Jc(R),O=bu(R)===Ac,I=[_c,Pc].indexOf(L)>=0,_=I?"width":"height",P=Nu(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=I?O?Tc:Mc:O?Pc:_c;x[_]>S[_]&&(T=wu(T));var M=wu(T),N=[];if(a&&N.push(P[L]<=0),l&&N.push(P[T]<=0,P[M]<=0),N.every((function(e){return e}))){k=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Du(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zu(e){return[_c,Tc,Pc,Mc].some((function(t){return e[t]>=0}))}var ju={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Wc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Jc(e),o=[Mc,_c].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Mc,Tc].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Fu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Nu(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=Jc(t.placement),v=bu(t.placement),y=!v,x=pu(b),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var I,_="y"===x?_c:Mc,P="y"===x?Pc:Tc,T="y"===x?"height":"width",M=w[x],N=M+g[_],q=M-g[P],A=f?-k[T]/2:0,D=v===Ac?E[T]:k[T],z=v===Ac?-k[T]:-E[T],j=t.elements.arrow,F=f&&j?ou(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[_],W=$[P],H=fu(0,E[T],F[T]),U=y?E[T]/2-A-H-B-R.mainAxis:D-H-B-R.mainAxis,V=y?-E[T]/2+A+H+W+R.mainAxis:z+H+W+R.mainAxis,G=t.elements.arrow&&du(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(I=null==L?void 0:L[x])?I:0,X=M+V-Z,J=fu(f?Yc(N,M+U-Z-K):N,M,f?Qc(q,X):q);w[x]=J,O[x]=J-M}if(l){var Q,Y="x"===x?_c:Mc,ee="x"===x?Pc:Tc,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[_c,Mc].indexOf(b),ie=null!=(Q=null==L?void 0:L[S])?Q:0,le=ae?re:te-E[ne]-k[ne]-ie+R.altAxis,se=ae?te+E[ne]+k[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=fu(e,t,n);return r>n?n:r}(le,te,se):fu(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function $u(e,t,n){void 0===n&&(n=!1);var r=Kc(t),o=Kc(t)&&function(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=su(t),i=ru(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Uc(t)||Lu(a))&&(l=function(e){return e!==Vc(e)&&Kc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Cu(e);var t}(t)),Kc(t)?((s=ru(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Ru(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Bu(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Wu={placement:"bottom",modifiers:[],strategy:"absolute"};function Hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Uu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Wu:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wu,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Gc(e)?Iu(e):e.contextElement?Iu(e.contextElement):[],popper:Iu(t)};var i,c,p=function(e){var t=Bu(e);return Hc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Hu(t,n)){l.rects={reference:$u(t,du(n),"fixed"===l.options.strategy),popper:ou(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!Hu(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Vu=Uu({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=Vc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,xu)})),l&&s.addEventListener("resize",n.update,xu),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,xu)})),l&&s.removeEventListener("resize",n.update,xu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Mu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:Jc(t.placement),variation:bu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,yu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,yu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Xc,ju,Au,Fu,gu,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Nu(t,{elementContext:"reference"}),l=Nu(t,{altBoundary:!0}),s=Du(i,r),c=Du(l,o,a),u=zu(s),d=zu(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Gu=b.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=b.useState(null),l=Ja(b.isValidElement(n)?wi(n):null,t);if(Da((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Da((()=>{if(a&&!o)return Ua(t,a),()=>{Ua(t,null)}}),[t,a,o]),o){if(b.isValidElement(n)){const e={ref:l};return b.cloneElement(n,e)}return Tr.jsx(b.Fragment,{children:n})}return Tr.jsx(b.Fragment,{children:a?Ql.createPortal(n,a):a})}));function Ku(e){return ba("MuiPopper",e)}va("MuiPopper",["root"]);const Zu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Xu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ju(e){return"function"==typeof e?e():e}const Qu={},Yu=b.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=lt(e,Zu),g=b.useRef(null),v=Ja(g,t),y=b.useRef(null),x=Ja(y,d),S=b.useRef(x);Da((()=>{S.current=x}),[x]),b.useImperativeHandle(d,(()=>y.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[E,k]=b.useState(w),[C,R]=b.useState(Ju(r));b.useEffect((()=>{y.current&&y.current.forceUpdate()})),b.useEffect((()=>{r&&R(Ju(r))}),[r]),Da((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{k(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Vu(C,g.current,it({placement:w},u,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[C,i,l,s,u,w]);const L={placement:E};null!==h&&(L.TransitionProps=h);const O=(e=>{const{classes:t}=e;return fi({root:["root"]},Ku,t)})(e),I=null!=(n=f.root)?n:"div",_=Si({elementType:I,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:O.root});return Tr.jsx(I,it({},_,{children:"function"==typeof o?o(L):o}))})),ed=b.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=Qu,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=lt(e,Xu),[y,x]=b.useState(!0);if(!l&&!c&&(!h||y))return null;let S;if(o)S=o;else if(n){const e=Ju(n);S=e&&void 0!==e.nodeType?Wa(e).body:Wa(null).body}const w=c||!l||h&&!y?void 0:"none",E=h?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return Tr.jsx(Gu,{disablePortal:i,container:S,children:Tr.jsx(Yu,it({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!y:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:it({position:"fixed",top:0,left:0,display:w},f),TransitionProps:E,children:r}))})})),td=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],nd=Wl(ed,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rd=b.forwardRef((function(e,t){var n;const r=Ic(),o=Gl({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b,slots:v,slotProps:y}=o,x=lt(o,td),S=null!=(n=null==v?void 0:v.root)?n:null==l?void 0:l.Root,w=it({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},x);return Tr.jsx(nd,it({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),od=["onChange","maxRows","minRows","style","value"];function ad(e){return parseInt(e,10)||0}const id={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const ld=b.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=lt(e,od),{current:s}=b.useRef(null!=i),c=b.useRef(null),u=Ja(t,c),d=b.useRef(null),p=b.useRef(null),f=b.useCallback((()=>{const t=c.current,n=Ha(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=p.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=ad(n.paddingBottom)+ad(n.paddingTop),s=ad(n.borderBottomWidth)+ad(n.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=b.useCallback((()=>{const e=f();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=c.current;d.current!==n&&(d.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[f]);Da((()=>{const e=()=>{h()};const t=$a(e),n=c.current,r=Ha(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[f,h]),Da((()=>{h()}));return Tr.jsxs(b.Fragment,{children:[Tr.jsx("textarea",it({value:i,onChange:e=>{s||h(),n&&n(e)},ref:u,rows:o,style:a},l)),Tr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:it({},id,a,{paddingTop:0,paddingBottom:0})})]})}));function sd({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const cd=b.createContext(void 0);function ud(){return b.useContext(cd)}function dd(e){return Tr.jsx(ia,it({},e,{defaultTheme:Ll,themeId:at}))}function pd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function fd(e){return ba("MuiInputBase",e)}const hd=va("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),md=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],gd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ro(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bd=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},vd=Wl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gd})((({theme:e,ownerState:t})=>it({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&it({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),yd=Wl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=it({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return it({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${hd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),xd=Tr.jsx(dd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sd=b.forwardRef((function(e,t){var n;const r=Gl({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:k,onChange:C,onClick:R,onFocus:L,onKeyDown:O,onKeyUp:I,placeholder:_,readOnly:P,renderSuffix:T,rows:M,slotProps:N={},slots:q={},startAdornment:A,type:D="text",value:z}=r,j=lt(r,md),F=null!=v.value?v.value:z,{current:$}=b.useRef(null!=F),B=b.useRef(),W=b.useCallback((e=>{}),[]),H=Ja(B,y,v.ref,W),[U,V]=b.useState(!1),G=ud(),K=sd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,b.useEffect((()=>{!G&&d&&U&&(V(!1),k&&k())}),[G,d,U,k]);const Z=G&&G.onFilled,X=G&&G.onEmpty,J=b.useCallback((e=>{!function(e,t=!1){return e&&(pd(e.value)&&""!==e.value||t&&pd(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);Da((()=>{$&&J({value:F})}),[F,J,$]);b.useEffect((()=>{J(B.current)}),[]);let Q=g,Y=v;w&&"input"===Q&&(Y=it(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:S},Y),Q=ld);b.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=it({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:A,type:D}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return fi({root:["root",`color${ro(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ro(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},fd,t)})(ee),ne=q.root||s.Root||vd,re=N.root||c.root||{},oe=q.input||s.Input||yd;return Y=it({},Y,null!=(n=N.input)?n:c.input),Tr.jsxs(b.Fragment,{children:[!p&&xd,Tr.jsxs(ne,it({},re,!hi(ne)&&{ownerState:it({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},j,{className:ha(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[A,Tr.jsx(cd.Provider,{value:null,children:Tr.jsx(oe,it({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:_,readOnly:P,required:K.required,rows:M,value:F,onKeyDown:O,onKeyUp:I,type:D},Y,!hi(oe)&&{as:Q,ownerState:it({},ee,Y.ownerState)},{ref:H,className:ha(te.input,Y.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(rt(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(it({},K,{startAdornment:A})):null]}))]})}));function wd(e){return ba("MuiOutlinedInput",e)}const Ed=it({},hd,va("MuiOutlinedInput",["root","notchedOutline","input"])),kd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cd={entering:{opacity:1},entered:{opacity:1}},Rd=b.forwardRef((function(e,t){const n=Ol(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=ls}=e,y=lt(e,kd),x=b.useRef(null),S=Ja(x,wi(i),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(d),k=w(((e,t)=>{cc(e);const r=uc({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=w(u),R=w(h),L=w((e=>{const t=uc({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),O=w(f);return Tr.jsx(v,it({appear:a,in:s,nodeRef:x,onEnter:k,onEntered:C,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:g},y,{children:(e,t)=>b.cloneElement(i,it({style:it({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Cd[e],m,i.props.style),ref:S},t))}))}));function Ld(e){return ba("MuiBackdrop",e)}va("MuiBackdrop",["root","invisible"]);const Od=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Id=Wl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>it({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"},e.invisible&&{backgroundColor:"transparent"}))),_d=b.forwardRef((function(e,t){var n,r,o;const a=Gl({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Rd,transitionDuration:g}=a,b=lt(a,Od),v=it({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return fi({root:["root",n&&"invisible"]},Ld,t)})(v),x=null!=(n=f.root)?n:u.root;return Tr.jsx(m,it({in:p,timeout:g},b,{children:Tr.jsx(Id,it({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ha(y.root,l,null==x?void 0:x.className),ownerState:it({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function Pd(e){return ba("MuiBadge",e)}const Td=va("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Md=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Nd=Wl("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),qd=Wl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ro(n.anchorOrigin.vertical)}${ro(n.anchorOrigin.horizontal)}${ro(n.overlap)}`],"default"!==n.color&&t[`color${ro(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),Ad=b.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Gl({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:b=!1,max:v=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,k=lt(s,Md),{badgeContent:C,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=pi({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:v,invisible:b,badgeContent:y,showZero:w}),I=pi({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),_=R||null==C&&"dot"!==E,{color:P=g,overlap:T=m,anchorOrigin:M=c,variant:N=E}=_?I:s,q="dot"!==N?O:void 0,A=it({},s,{badgeContent:C,invisible:_,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:P,overlap:T,variant:N}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return fi({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${ro(n.vertical)}${ro(n.horizontal)}`,`anchorOrigin${ro(n.vertical)}${ro(n.horizontal)}${ro(o)}`,`overlap${ro(o)}`,"default"!==t&&`color${ro(t)}`]},Pd,i)})(A),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Nd,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:qd,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=Si({elementType:z,externalSlotProps:F,externalForwardedProps:k,additionalProps:{ref:t,as:d},ownerState:A,className:ha(null==F?void 0:F.className,D.root,u)}),W=Si({elementType:j,externalSlotProps:$,ownerState:A,className:ha(D.badge,null==$?void 0:$.className)});return Tr.jsxs(z,it({},B,{children:[h,Tr.jsx(j,it({},W,{children:q}))]}))})),Dd=va("MuiBox",["root"]),zd=Rl(),jd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Ar("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qo),i=b.forwardRef((function(e,i){const l=aa(n),s=ca(e),{className:c,component:u="div"}=s,d=Fr(s,ma);return Tr.jsx(a,jr({as:u,ref:i,className:ha(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:at,defaultTheme:zd,defaultClassName:Dd.root,generateClassName:pa.generate});function Fd(e){return ba("PrivateSwitchBase",e)}va("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $d=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bd=Wl(Ts)((({ownerState:e})=>it({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wd=Wl("input",{shouldForwardProp:Bl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Hd=b.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,E=lt(e,$d),[k,C]=Za({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=ud();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=it({},e,{checked:k,disabled:L,disableFocusRipple:s,edge:c}),_=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return fi({root:["root",n&&"checked",r&&"disabled",o&&`edge${ro(o)}`],input:["input"]},Fd,t)})(I);return Tr.jsxs(Bd,it({component:"span",className:ha(_.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:I,ref:t},E,{children:[Tr.jsx(Wd,it({autoFocus:n,checked:r,defaultChecked:i,className:_.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),k?o:u]}))}));var Ud=ic(Tr.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Vd=ic(Tr.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Gd=ic(Tr.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Kd(e){return ba("MuiCheckbox",e)}const Zd=va("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Xd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Jd=Wl(Hd,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ro(n.size)}`],"default"!==n.color&&t[`color${ro(n.color)}`]]}})((({theme:e,ownerState:t})=>it({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Zd.checked}, &.${Zd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Qd=Tr.jsx(Vd,{}),Yd=Tr.jsx(Ud,{}),ep=Tr.jsx(Gd,{}),tp=b.forwardRef((function(e,t){var n,r;const o=Gl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Qd,color:i="primary",icon:l=Yd,indeterminate:s=!1,indeterminateIcon:c=ep,inputProps:u,size:d="medium",className:p}=o,f=lt(o,Xd),h=s?c:l,m=s?c:a,g=it({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return it({},t,fi({root:["root",n&&"indeterminate",`color${ro(r)}`,`size${ro(o)}`]},Kd,t))})(g);return Tr.jsx(Jd,it({type:"checkbox",inputProps:it({"data-indeterminate":s},u),icon:b.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:b.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ha(v.root,p)},f,{classes:v}))}));function np(e){return ba("MuiCircularProgress",e)}va("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rp=["className","color","disableShrink","size","style","thickness","value","variant"];let op,ap,ip,lp,sp=e=>e;const cp=44,up=sr(op||(op=sp`
96
+ `),ms.rippleVisible,ws,550,(({theme:e})=>e.transitions.easing.easeInOut),ms.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ms.child,ms.childLeaving,Es,550,(({theme:e})=>e.transitions.easing.easeInOut),ms.childPulsate,ks,(({theme:e})=>e.transitions.easing.easeInOut)),Ls=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=lt(n,gs),[l,s]=b.useState([]),c=b.useRef(0),u=b.useRef(null);b.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=b.useRef(!1),p=ti(),f=b.useRef(null),h=b.useRef(null),m=b.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,Tr.jsx(Rs,{classes:{ripple:ha(o.ripple,ms.ripple),rippleVisible:ha(o.rippleVisible,ms.rippleVisible),ripplePulsate:ha(o.ripplePulsate,ms.ripplePulsate),child:ha(o.child,ms.child),childLeaving:ha(o.childLeaving,ms.childLeaving),childPulsate:ha(o.childPulsate,ms.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=b.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=b.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=b.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{y(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return b.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:y})),[v,g,y]),Tr.jsx(Cs,it({className:ha(ms.root,o.root,a),ref:h},i,{children:Tr.jsx(hs,{component:null,exit:!0,children:l})}))}));function Os(e){return ba("MuiButtonBase",e)}const Is=va("MuiButtonBase",["root","disabled","focusVisible"]),_s=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ps=Wl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Is.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ts=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:k,onTouchEnd:C,onTouchMove:R,onTouchStart:L,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:_,type:P}=n,T=lt(n,_s),M=b.useRef(null),N=b.useRef(null),q=Ja(N,_),{isFocusVisibleRef:A,onFocus:D,onBlur:z,ref:j}=ui(),[F,$]=b.useState(!1);s&&F&&$(!1),b.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[B,W]=b.useState(!1);b.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return Xa((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}b.useEffect((()=>{F&&d&&!c&&B&&N.current.pulsate()}),[c,d,F,B]);const V=U("start",w),G=U("stop",m),K=U("stop",g),Z=U("stop",k),X=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=U("start",L),Q=U("stop",C),Y=U("stop",R),ee=U("stop",(e=>{z(e),!1===A.current&&$(!1),f&&f(e)}),!1),te=Xa((e=>{M.current||(M.current=e.currentTarget),D(e),!0===A.current&&($(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=b.useRef(!1),oe=Xa((e=>{d&&!re.current&&F&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=Xa((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===P?"button":P,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Ja(t,j,M),ce=it({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=fi({root:["root",t&&"disabled",n&&"focusVisible"]},Os,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Tr.jsxs(Ps,it({as:ie,className:ha(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:Q,onTouchMove:Y,onTouchStart:J,ref:se,tabIndex:s?-1:O,type:P},le,T,{children:[a,H?Tr.jsx(Ls,it({ref:q,center:o},I)):null]}))}));function Ms(e){return ba("MuiButton",e)}const Ns=va("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),qs=b.createContext({}),As=b.createContext(void 0),Ds=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zs=e=>it({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),js=Wl(Ts,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ro(n.color)}`],t[`size${ro(n.size)}`],t[`${n.variant}Size${ro(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return it({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":it({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ns.focusVisible}`]:it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ns.disabled}`]:it({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Qi.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ns.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ns.disabled}`]:{boxShadow:"none"}})),Fs=Wl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ro(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zs(e)))),$s=Wl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ro(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zs(e)))),Bs=b.forwardRef((function(e,t){const n=b.useContext(qs),r=b.useContext(As),o=Gl({props:qa(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=o,x=lt(o,Ds),S=it({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return it({},i,fi({root:["root",a,`${a}${ro(t)}`,`size${ro(o)}`,`${a}Size${ro(o)}`,`color${ro(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ro(o)}`],endIcon:["icon","endIcon",`iconSize${ro(o)}`]},Ms,i))})(S),E=g&&Tr.jsx(Fs,{className:w.startIcon,ownerState:S,children:g}),k=p&&Tr.jsx($s,{className:w.endIcon,ownerState:S,children:p}),C=r||"";return Tr.jsxs(js,it({ownerState:S,className:ha(n.className,w.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:ha(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[E,a,k]}))}));var Ws={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Hs={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},Us={mode:"light",palette:{primary:{main:Hs.grey25,contrastText:Hs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Hs.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Hs.grey100,dark:Hs.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Hs.grey100,default:Hs.grey100,lightest:Hs.grey100,lighter:Hs.grey98,darker:Hs.grey95,darkest:Hs.grey90},custom:{focusBorder:Hs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Hs.grey45,disabledContrastText:Hs.grey100},selected:{main:Hs.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Hs.grey100,selectedContrastText:Hs.grey100,mainContrastText:Hs.grey100,alternativeContrastText:Hs.grey25,excludedContrastText:Hs.grey25,selectedExcludedContrastText:Hs.grey100,possibleContrastText:Hs.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Vs={mode:"dark",palette:{primary:{main:Hs.grey20,contrastText:Hs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Hs.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Hs.grey100,dark:Hs.grey0},action:{active:Hs.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Hs.grey25,lighter:Hs.grey20,darker:Hs.grey15,darkest:Hs.grey10},custom:{focusBorder:Hs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Hs.grey45,disabledContrastText:Hs.grey100},selected:{main:Hs.green,alternative:Hs.grey20,excluded:Hs.grey10,selectedExcluded:Hs.grey10,possible:Hs.grey80,selectedContrastText:Hs.grey100,mainContrastText:Hs.grey100,alternativeContrastText:Hs.grey100,excludedContrastText:Hs.grey100,selectedExcludedContrastText:Hs.grey100,possibleContrastText:Hs.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Gs={},Ks=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Ns.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Ns.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Ns.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ns.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Zs(e){let t=Us,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Vs));const r=JSON.stringify(t);if(Gs[r])return Gs[r];const o={palette:c(c({type:t.mode},Ws.palette),t.palette),typography:c({},Ws.typography),shadows:Ws.shadows,props:c({},Ws.props),shape:c({},Ws.shape)};return Gs[r]=Rl(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=it({},lt(e,Bi),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=wo(e.spacing);const s=Kr(e.breakpoints||{}),c=l.spacing;l.mixins=it({gutters:(e={})=>it({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:it({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=lt(o,Wi),f=d||u||"light";return l.palette=it({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(c(c({},o),{},{overrides:Ks(o)}))),Gs[r].name=n,Gs[r]}pa.configure((e=>"njs-".concat("a207","-").concat(e.replace("Mui",""))));var Xs=v.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Js={active:!0,select:!0,passive:!0,edit:!1};function Qs(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Js).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Js[e],n[e]=!Js[e])})),e.constraints=n,e.interactions=t}var Ys=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=b.useState(t);return b.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const ec=b.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=b.useState(n),[s,c]=b.useState(),{theme:u}=b.useMemo((()=>({theme:Zs(s)})),[s]),[d,p]=b.useState([]);return b.useEffect((()=>{r&&r()}),[]),b.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),v.createElement(Nr,{injectFirst:!0},v.createElement(Ul,{theme:u},v.createElement(Xs.Provider,{value:i},d)))}));function tc(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=v.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.10.1"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Qs(r);const l=function(e){const[t,n]=Ys({}),[r,o]=Ys({}),[a,i]=Ys({}),[l,s]=Ys({}),[c,u]=Ys({}),[,d]=Ys({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=Ys({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=Ys({}),[r,o]=Ys({}),[a,i]=Ys({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);nt.createRoot(i).render(v.createElement(ec,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Qs(e),a.current.setContext(e)})()}},l,s,a,o]}function nc(e){return ba("MuiSvgIcon",e)}va("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oc=Wl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ro(n.color)}`],t[`fontSize${ro(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),ac=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=lt(n,rc),f=b.isValidElement(r)&&"svg"===r.type,h=it({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return fi({root:["root","inherit"!==t&&`color${ro(t)}`,`fontSize${ro(n)}`]},nc,r)})(h);return Tr.jsxs(oc,it({as:i,className:ha(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Tr.jsx("title",{children:u}):null]}))}));function ic(e,t){function n(n,r){return Tr.jsx(ac,it({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ac.muiName,b.memo(b.forwardRef(n))}ac.muiName="SvgIcon";const lc={configure:e=>{pa.configure(e)}};var sc=Object.freeze({__proto__:null,capitalize:ro,createChainedFunction:Fa,createSvgIcon:ic,debounce:$a,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Ba,ownerDocument:Wa,ownerWindow:Ha,requirePropFactory:function(e,t){return()=>null},setRef:Ua,unstable_ClassNameGenerator:lc,unstable_useEnhancedEffect:Da,unstable_useId:Ka,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Za,useEventCallback:Xa,useForkRef:Ja,useIsFocusVisible:ui});const cc=e=>e.scrollTop;function uc(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function dc(e){return ba("MuiPaper",e)}va("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"]);const pc=["className","component","elevation","square","variant"],fc=Wl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return it({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&it({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Qi.alpha("#fff",Vl(t.elevation))}, ${Qi.alpha("#fff",Vl(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),hc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=lt(n,pc),c=it({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return fi({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},dc,o)})(c);return Tr.jsx(fc,it({as:o,ownerState:c,className:ha(u.root,r),ref:t},s))}));function mc(e){return ba("MuiIconButton",e)}const gc=va("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),bc=["edge","children","className","color","disabled","disableFocusRipple","size"],vc=Wl(Ts,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ro(n.color)}`],n.edge&&t[`edge${ro(n.edge)}`],t[`size${ro(n.size)}`]]}})((({theme:e,ownerState:t})=>it({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return it({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&it({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":it({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${gc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),yc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=lt(n,bc),d=it({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return fi({root:["root",n&&"disabled","default"!==r&&`color${ro(r)}`,o&&`edge${ro(o)}`,`size${ro(a)}`]},mc,t)})(d);return Tr.jsx(vc,it({className:ha(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function xc(e){return ba("MuiTypography",e)}va("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wc=Wl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ro(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>it({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Ec={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiTypography"}),r=(e=>kc[e]||e)(n.color),o=ca(it({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Ec}=o,f=lt(o,Sc),h=it({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||Ec[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return fi({root:["root",a,"inherit"!==e.align&&`align${ro(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},xc,i)})(h);return Tr.jsx(wc,it({as:m,ref:t,ownerState:h,className:ha(g.root,i)},f))}));var Rc,Lc={};function Oc(){if(Rc)return Lc;Rc=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(g()),t=ql;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return Lc.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Lc}var Ic=n(Oc()),_c="top",Pc="bottom",Tc="right",Mc="left",Nc="auto",qc=[_c,Pc,Tc,Mc],Ac="start",Dc="end",zc="clippingParents",jc="viewport",Fc="popper",$c="reference",Bc=qc.reduce((function(e,t){return e.concat([t+"-"+Ac,t+"-"+Dc])}),[]),Wc=[].concat(qc,[Nc]).reduce((function(e,t){return e.concat([t,t+"-"+Ac,t+"-"+Dc])}),[]),Hc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Uc(e){return e?(e.nodeName||"").toLowerCase():null}function Vc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gc(e){return e instanceof Vc(e).Element||e instanceof Element}function Kc(e){return e instanceof Vc(e).HTMLElement||e instanceof HTMLElement}function Zc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Vc(e).ShadowRoot||e instanceof ShadowRoot)}var Xc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Kc(o)&&Uc(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Kc(r)&&Uc(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Jc(e){return e.split("-")[0]}var Qc=Math.max,Yc=Math.min,eu=Math.round;function tu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function nu(){return!/^((?!chrome|android).)*safari/i.test(tu())}function ru(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Kc(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var i=(Gc(e)?Vc(e):window).visualViewport,l=!nu()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function ou(e){var t=ru(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function au(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function iu(e){return Vc(e).getComputedStyle(e)}function lu(e){return["table","td","th"].indexOf(Uc(e))>=0}function su(e){return((Gc(e)?e.ownerDocument:e.document)||window.document).documentElement}function cu(e){return"html"===Uc(e)?e:e.assignedSlot||e.parentNode||(Zc(e)?e.host:null)||su(e)}function uu(e){return Kc(e)&&"fixed"!==iu(e).position?e.offsetParent:null}function du(e){for(var t=Vc(e),n=uu(e);n&&lu(n)&&"static"===iu(n).position;)n=uu(n);return n&&("html"===Uc(n)||"body"===Uc(n)&&"static"===iu(n).position)?t:n||function(e){var t=/firefox/i.test(tu());if(/Trident/i.test(tu())&&Kc(e)&&"fixed"===iu(e).position)return null;var n=cu(e);for(Zc(n)&&(n=n.host);Kc(n)&&["html","body"].indexOf(Uc(n))<0;){var r=iu(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function pu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fu(e,t,n){return Qc(e,Yc(t,n))}function hu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function mu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var gu={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Jc(n.placement),s=pu(l),c=[Mc,Tc].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return hu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:mu(e,qc))}(o.padding,n),d=ou(a),p="y"===s?_c:Mc,f="y"===s?Pc:Tc,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=du(a),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[p],x=b-d[c]-u[f],S=b/2-d[c]/2+v,w=fu(y,S,x),E=s;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&au(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bu(e){return e.split("-")[1]}var vu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Mc,x=_c,S=window;if(c){var w=du(n),E="clientHeight",k="clientWidth";if(w===Vc(n)&&"static"!==iu(w=su(n)).position&&"absolute"===l&&(E="scrollHeight",k="scrollWidth"),o===_c||(o===Mc||o===Tc)&&a===Dc)x=Pc,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Mc||(o===_c||o===Pc)&&a===Dc)y=Tc,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[k])-r.width,f*=s?1:-1}var C,R=Object.assign({position:l},c&&vu),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:eu(n*o)/o||0,y:eu(r*o)/o||0}}({x:f,y:m},Vc(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((C={})[x]=v?"0":"",C[y]=b?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},R,((t={})[x]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var xu={passive:!0};var Su={left:"right",right:"left",bottom:"top",top:"bottom"};function wu(e){return e.replace(/left|right|bottom|top/g,(function(e){return Su[e]}))}var Eu={start:"end",end:"start"};function ku(e){return e.replace(/start|end/g,(function(e){return Eu[e]}))}function Cu(e){var t=Vc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ru(e){return ru(su(e)).left+Cu(e).scrollLeft}function Lu(e){var t=iu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ou(e){return["html","body","#document"].indexOf(Uc(e))>=0?e.ownerDocument.body:Kc(e)&&Lu(e)?e:Ou(cu(e))}function Iu(e,t){var n;void 0===t&&(t=[]);var r=Ou(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Vc(r),i=o?[a].concat(a.visualViewport||[],Lu(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Iu(cu(i)))}function _u(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pu(e,t,n){return t===jc?_u(function(e,t){var n=Vc(e),r=su(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=nu();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Ru(e),y:s}}(e,n)):Gc(t)?function(e,t){var n=ru(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):_u(function(e){var t,n=su(e),r=Cu(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Qc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Qc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ru(e),s=-r.scrollTop;return"rtl"===iu(o||n).direction&&(l+=Qc(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(su(e)))}function Tu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Iu(cu(e)),n=["absolute","fixed"].indexOf(iu(e).position)>=0&&Kc(e)?du(e):e;return Gc(n)?t.filter((function(e){return Gc(e)&&au(e,n)&&"body"!==Uc(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Pu(e,n,r);return t.top=Qc(o.top,t.top),t.right=Yc(o.right,t.right),t.bottom=Yc(o.bottom,t.bottom),t.left=Qc(o.left,t.left),t}),Pu(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Mu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Jc(o):null,i=o?bu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case _c:t={x:l,y:n.y-r.height};break;case Pc:t={x:l,y:n.y+n.height};break;case Tc:t={x:n.x+n.width,y:s};break;case Mc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?pu(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Ac:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Dc:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Nu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?zc:l,c=n.rootBoundary,u=void 0===c?jc:c,d=n.elementContext,p=void 0===d?Fc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=hu("number"!=typeof g?g:mu(g,qc)),v=p===Fc?$c:Fc,y=e.rects.popper,x=e.elements[h?v:p],S=Tu(Gc(x)?x:x.contextElement||su(e.elements.popper),s,u,i),w=ru(e.elements.reference),E=Mu({reference:w,element:y,placement:o}),k=_u(Object.assign({},y,E)),C=p===Fc?k:w,R={top:S.top-C.top+b.top,bottom:C.bottom-S.bottom+b.bottom,left:S.left-C.left+b.left,right:C.right-S.right+b.right},L=e.modifiersData.offset;if(p===Fc&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[Tc,Pc].indexOf(e)>=0?1:-1,n=[_c,Pc].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function qu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Wc:s,u=bu(r),d=u?l?Bc:Bc.filter((function(e){return bu(e)===u})):qc,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Nu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Jc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Au={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=Jc(g),v=s||(b===g||!h?[wu(g)]:function(e){if(Jc(e)===Nc)return[];var t=wu(e);return[ku(e),t,ku(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(Jc(n)===Nc?qu(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,k=y[0],C=0;C<y.length;C++){var R=y[C],L=Jc(R),O=bu(R)===Ac,I=[_c,Pc].indexOf(L)>=0,_=I?"width":"height",P=Nu(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=I?O?Tc:Mc:O?Pc:_c;x[_]>S[_]&&(T=wu(T));var M=wu(T),N=[];if(a&&N.push(P[L]<=0),l&&N.push(P[T]<=0,P[M]<=0),N.every((function(e){return e}))){k=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Du(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zu(e){return[_c,Tc,Pc,Mc].some((function(t){return e[t]>=0}))}var ju={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Wc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Jc(e),o=[Mc,_c].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Mc,Tc].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Fu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Nu(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=Jc(t.placement),v=bu(t.placement),y=!v,x=pu(b),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var I,_="y"===x?_c:Mc,P="y"===x?Pc:Tc,T="y"===x?"height":"width",M=w[x],N=M+g[_],q=M-g[P],A=f?-k[T]/2:0,D=v===Ac?E[T]:k[T],z=v===Ac?-k[T]:-E[T],j=t.elements.arrow,F=f&&j?ou(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[_],W=$[P],H=fu(0,E[T],F[T]),U=y?E[T]/2-A-H-B-R.mainAxis:D-H-B-R.mainAxis,V=y?-E[T]/2+A+H+W+R.mainAxis:z+H+W+R.mainAxis,G=t.elements.arrow&&du(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(I=null==L?void 0:L[x])?I:0,X=M+V-Z,J=fu(f?Yc(N,M+U-Z-K):N,M,f?Qc(q,X):q);w[x]=J,O[x]=J-M}if(l){var Q,Y="x"===x?_c:Mc,ee="x"===x?Pc:Tc,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[_c,Mc].indexOf(b),ie=null!=(Q=null==L?void 0:L[S])?Q:0,le=ae?re:te-E[ne]-k[ne]-ie+R.altAxis,se=ae?te+E[ne]+k[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=fu(e,t,n);return r>n?n:r}(le,te,se):fu(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function $u(e,t,n){void 0===n&&(n=!1);var r=Kc(t),o=Kc(t)&&function(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=su(t),i=ru(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Uc(t)||Lu(a))&&(l=function(e){return e!==Vc(e)&&Kc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Cu(e);var t}(t)),Kc(t)?((s=ru(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Ru(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Bu(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Wu={placement:"bottom",modifiers:[],strategy:"absolute"};function Hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Uu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Wu:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wu,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Gc(e)?Iu(e):e.contextElement?Iu(e.contextElement):[],popper:Iu(t)};var i,c,p=function(e){var t=Bu(e);return Hc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Hu(t,n)){l.rects={reference:$u(t,du(n),"fixed"===l.options.strategy),popper:ou(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!Hu(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Vu=Uu({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=Vc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,xu)})),l&&s.addEventListener("resize",n.update,xu),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,xu)})),l&&s.removeEventListener("resize",n.update,xu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Mu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:Jc(t.placement),variation:bu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,yu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,yu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Xc,ju,Au,Fu,gu,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Nu(t,{elementContext:"reference"}),l=Nu(t,{altBoundary:!0}),s=Du(i,r),c=Du(l,o,a),u=zu(s),d=zu(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Gu=b.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=b.useState(null),l=Ja(b.isValidElement(n)?wi(n):null,t);if(Da((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Da((()=>{if(a&&!o)return Ua(t,a),()=>{Ua(t,null)}}),[t,a,o]),o){if(b.isValidElement(n)){const e={ref:l};return b.cloneElement(n,e)}return Tr.jsx(b.Fragment,{children:n})}return Tr.jsx(b.Fragment,{children:a?Ql.createPortal(n,a):a})}));function Ku(e){return ba("MuiPopper",e)}va("MuiPopper",["root"]);const Zu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Xu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ju(e){return"function"==typeof e?e():e}const Qu={},Yu=b.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=lt(e,Zu),g=b.useRef(null),v=Ja(g,t),y=b.useRef(null),x=Ja(y,d),S=b.useRef(x);Da((()=>{S.current=x}),[x]),b.useImperativeHandle(d,(()=>y.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[E,k]=b.useState(w),[C,R]=b.useState(Ju(r));b.useEffect((()=>{y.current&&y.current.forceUpdate()})),b.useEffect((()=>{r&&R(Ju(r))}),[r]),Da((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{k(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Vu(C,g.current,it({placement:w},u,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[C,i,l,s,u,w]);const L={placement:E};null!==h&&(L.TransitionProps=h);const O=(e=>{const{classes:t}=e;return fi({root:["root"]},Ku,t)})(e),I=null!=(n=f.root)?n:"div",_=Si({elementType:I,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:O.root});return Tr.jsx(I,it({},_,{children:"function"==typeof o?o(L):o}))})),ed=b.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=Qu,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=lt(e,Xu),[y,x]=b.useState(!0);if(!l&&!c&&(!h||y))return null;let S;if(o)S=o;else if(n){const e=Ju(n);S=e&&void 0!==e.nodeType?Wa(e).body:Wa(null).body}const w=c||!l||h&&!y?void 0:"none",E=h?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return Tr.jsx(Gu,{disablePortal:i,container:S,children:Tr.jsx(Yu,it({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!y:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:it({position:"fixed",top:0,left:0,display:w},f),TransitionProps:E,children:r}))})})),td=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],nd=Wl(ed,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rd=b.forwardRef((function(e,t){var n;const r=Ic(),o=Gl({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b,slots:v,slotProps:y}=o,x=lt(o,td),S=null!=(n=null==v?void 0:v.root)?n:null==l?void 0:l.Root,w=it({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},x);return Tr.jsx(nd,it({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),od=["onChange","maxRows","minRows","style","value"];function ad(e){return parseInt(e,10)||0}const id={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const ld=b.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=lt(e,od),{current:s}=b.useRef(null!=i),c=b.useRef(null),u=Ja(t,c),d=b.useRef(null),p=b.useRef(null),f=b.useCallback((()=>{const t=c.current,n=Ha(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=p.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=ad(n.paddingBottom)+ad(n.paddingTop),s=ad(n.borderBottomWidth)+ad(n.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=b.useCallback((()=>{const e=f();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=c.current;d.current!==n&&(d.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[f]);Da((()=>{const e=()=>{h()};const t=$a(e),n=c.current,r=Ha(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[f,h]),Da((()=>{h()}));return Tr.jsxs(b.Fragment,{children:[Tr.jsx("textarea",it({value:i,onChange:e=>{s||h(),n&&n(e)},ref:u,rows:o,style:a},l)),Tr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:it({},id,a,{paddingTop:0,paddingBottom:0})})]})}));function sd({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const cd=b.createContext(void 0);function ud(){return b.useContext(cd)}function dd(e){return Tr.jsx(ia,it({},e,{defaultTheme:Ll,themeId:at}))}function pd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function fd(e){return ba("MuiInputBase",e)}const hd=va("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),md=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],gd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ro(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bd=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},vd=Wl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gd})((({theme:e,ownerState:t})=>it({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&it({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),yd=Wl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=it({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return it({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${hd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),xd=Tr.jsx(dd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sd=b.forwardRef((function(e,t){var n;const r=Gl({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:k,onChange:C,onClick:R,onFocus:L,onKeyDown:O,onKeyUp:I,placeholder:_,readOnly:P,renderSuffix:T,rows:M,slotProps:N={},slots:q={},startAdornment:A,type:D="text",value:z}=r,j=lt(r,md),F=null!=v.value?v.value:z,{current:$}=b.useRef(null!=F),B=b.useRef(),W=b.useCallback((e=>{}),[]),H=Ja(B,y,v.ref,W),[U,V]=b.useState(!1),G=ud(),K=sd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,b.useEffect((()=>{!G&&d&&U&&(V(!1),k&&k())}),[G,d,U,k]);const Z=G&&G.onFilled,X=G&&G.onEmpty,J=b.useCallback((e=>{!function(e,t=!1){return e&&(pd(e.value)&&""!==e.value||t&&pd(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);Da((()=>{$&&J({value:F})}),[F,J,$]);b.useEffect((()=>{J(B.current)}),[]);let Q=g,Y=v;w&&"input"===Q&&(Y=it(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:S},Y),Q=ld);b.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=it({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:A,type:D}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return fi({root:["root",`color${ro(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ro(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},fd,t)})(ee),ne=q.root||s.Root||vd,re=N.root||c.root||{},oe=q.input||s.Input||yd;return Y=it({},Y,null!=(n=N.input)?n:c.input),Tr.jsxs(b.Fragment,{children:[!p&&xd,Tr.jsxs(ne,it({},re,!hi(ne)&&{ownerState:it({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},j,{className:ha(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[A,Tr.jsx(cd.Provider,{value:null,children:Tr.jsx(oe,it({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:_,readOnly:P,required:K.required,rows:M,value:F,onKeyDown:O,onKeyUp:I,type:D},Y,!hi(oe)&&{as:Q,ownerState:it({},ee,Y.ownerState)},{ref:H,className:ha(te.input,Y.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(rt(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(it({},K,{startAdornment:A})):null]}))]})}));function wd(e){return ba("MuiOutlinedInput",e)}const Ed=it({},hd,va("MuiOutlinedInput",["root","notchedOutline","input"])),kd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cd={entering:{opacity:1},entered:{opacity:1}},Rd=b.forwardRef((function(e,t){const n=Ol(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=ls}=e,y=lt(e,kd),x=b.useRef(null),S=Ja(x,wi(i),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(d),k=w(((e,t)=>{cc(e);const r=uc({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=w(u),R=w(h),L=w((e=>{const t=uc({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),O=w(f);return Tr.jsx(v,it({appear:a,in:s,nodeRef:x,onEnter:k,onEntered:C,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:g},y,{children:(e,t)=>b.cloneElement(i,it({style:it({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Cd[e],m,i.props.style),ref:S},t))}))}));function Ld(e){return ba("MuiBackdrop",e)}va("MuiBackdrop",["root","invisible"]);const Od=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Id=Wl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>it({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"},e.invisible&&{backgroundColor:"transparent"}))),_d=b.forwardRef((function(e,t){var n,r,o;const a=Gl({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Rd,transitionDuration:g}=a,b=lt(a,Od),v=it({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return fi({root:["root",n&&"invisible"]},Ld,t)})(v),x=null!=(n=f.root)?n:u.root;return Tr.jsx(m,it({in:p,timeout:g},b,{children:Tr.jsx(Id,it({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ha(y.root,l,null==x?void 0:x.className),ownerState:it({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function Pd(e){return ba("MuiBadge",e)}const Td=va("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Md=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Nd=Wl("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),qd=Wl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ro(n.anchorOrigin.vertical)}${ro(n.anchorOrigin.horizontal)}${ro(n.overlap)}`],"default"!==n.color&&t[`color${ro(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Td.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),Ad=b.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Gl({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:b=!1,max:v=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,k=lt(s,Md),{badgeContent:C,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=pi({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:v,invisible:b,badgeContent:y,showZero:w}),I=pi({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),_=R||null==C&&"dot"!==E,{color:P=g,overlap:T=m,anchorOrigin:M=c,variant:N=E}=_?I:s,q="dot"!==N?O:void 0,A=it({},s,{badgeContent:C,invisible:_,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:P,overlap:T,variant:N}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return fi({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${ro(n.vertical)}${ro(n.horizontal)}`,`anchorOrigin${ro(n.vertical)}${ro(n.horizontal)}${ro(o)}`,`overlap${ro(o)}`,"default"!==t&&`color${ro(t)}`]},Pd,i)})(A),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Nd,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:qd,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=Si({elementType:z,externalSlotProps:F,externalForwardedProps:k,additionalProps:{ref:t,as:d},ownerState:A,className:ha(null==F?void 0:F.className,D.root,u)}),W=Si({elementType:j,externalSlotProps:$,ownerState:A,className:ha(D.badge,null==$?void 0:$.className)});return Tr.jsxs(z,it({},B,{children:[h,Tr.jsx(j,it({},W,{children:q}))]}))})),Dd=va("MuiBox",["root"]),zd=Rl(),jd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Ar("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qo),i=b.forwardRef((function(e,i){const l=aa(n),s=ca(e),{className:c,component:u="div"}=s,d=Fr(s,ma);return Tr.jsx(a,jr({as:u,ref:i,className:ha(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:at,defaultTheme:zd,defaultClassName:Dd.root,generateClassName:pa.generate});function Fd(e){return ba("PrivateSwitchBase",e)}va("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $d=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bd=Wl(Ts)((({ownerState:e})=>it({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wd=Wl("input",{shouldForwardProp:Bl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Hd=b.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,E=lt(e,$d),[k,C]=Za({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=ud();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=it({},e,{checked:k,disabled:L,disableFocusRipple:s,edge:c}),_=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return fi({root:["root",n&&"checked",r&&"disabled",o&&`edge${ro(o)}`],input:["input"]},Fd,t)})(I);return Tr.jsxs(Bd,it({component:"span",className:ha(_.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:I,ref:t},E,{children:[Tr.jsx(Wd,it({autoFocus:n,checked:r,defaultChecked:i,className:_.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),k?o:u]}))}));var Ud=ic(Tr.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Vd=ic(Tr.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Gd=ic(Tr.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Kd(e){return ba("MuiCheckbox",e)}const Zd=va("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Xd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Jd=Wl(Hd,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ro(n.size)}`],"default"!==n.color&&t[`color${ro(n.color)}`]]}})((({theme:e,ownerState:t})=>it({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Zd.checked}, &.${Zd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Qd=Tr.jsx(Vd,{}),Yd=Tr.jsx(Ud,{}),ep=Tr.jsx(Gd,{}),tp=b.forwardRef((function(e,t){var n,r;const o=Gl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Qd,color:i="primary",icon:l=Yd,indeterminate:s=!1,indeterminateIcon:c=ep,inputProps:u,size:d="medium",className:p}=o,f=lt(o,Xd),h=s?c:l,m=s?c:a,g=it({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return it({},t,fi({root:["root",n&&"indeterminate",`color${ro(r)}`,`size${ro(o)}`]},Kd,t))})(g);return Tr.jsx(Jd,it({type:"checkbox",inputProps:it({"data-indeterminate":s},u),icon:b.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:b.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ha(v.root,p)},f,{classes:v}))}));function np(e){return ba("MuiCircularProgress",e)}va("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rp=["className","color","disableShrink","size","style","thickness","value","variant"];let op,ap,ip,lp,sp=e=>e;const cp=44,up=sr(op||(op=sp`
97
97
  0% {
98
98
  transform: rotate(0deg);
99
99
  }