@colyseus/monitor 0.17.3 → 0.17.5

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.
@@ -153,7 +153,7 @@ Error generating stack: `+l.message+`
153
153
  animation: ${0} 1.4s linear infinite;
154
154
  `),FD)),LD=Y("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),AD=Y("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${X(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>h({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&zs(Hb||(Hb=Qd`
155
155
  animation: ${0} 1.4s ease-in-out infinite;
156
- `),_D)),ND=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:s=!1,size:i=40,style:a,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=K(r,OD),v=h({},r,{color:l,disableShrink:s,size:i,thickness:u,value:c,variant:f}),g=DD(v),C={},k={},b={};if(f==="determinate"){const m=2*Math.PI*((Io-u)/2);C.strokeDasharray=m.toFixed(3),b["aria-valuenow"]=Math.round(c),C.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,k.transform="rotate(-90deg)"}return S.jsx(jD,h({className:Z(g.root,o),style:h({width:i,height:i},k,a),ownerState:v,ref:n,role:"progressbar"},b,p,{children:S.jsx(LD,{className:g.svg,ownerState:v,viewBox:`${Io/2} ${Io/2} ${Io} ${Io}`,children:S.jsx(AD,{className:g.circle,style:C,ownerState:v,cx:Io,cy:Io,r:(Io-u)/2,fill:"none",strokeWidth:u})})}))});function Bb(e){return e.substring(2).toLowerCase()}function zD(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function mS(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:l="onTouchEnd"}=e,s=d.useRef(!1),i=d.useRef(null),a=d.useRef(!1),u=d.useRef(!1);d.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const c=ft(Nl(t),i),f=ct(g=>{const C=u.current;u.current=!1;const k=kt(i.current);if(!a.current||!i.current||"clientX"in g&&zD(g,k))return;if(s.current){s.current=!1;return}let b;g.composedPath?b=g.composedPath().indexOf(i.current)>-1:b=!k.documentElement.contains(g.target)||i.current.contains(g.target),!b&&(n||!C)&&o(g)}),p=g=>C=>{u.current=!0;const k=t.props[g];k&&k(C)},v={ref:c};return l!==!1&&(v[l]=p(l)),d.useEffect(()=>{if(l!==!1){const g=Bb(l),C=kt(i.current),k=()=>{s.current=!0};return C.addEventListener(g,f),C.addEventListener("touchmove",k),()=>{C.removeEventListener(g,f),C.removeEventListener("touchmove",k)}}},[f,l]),r!==!1&&(v[r]=p(r)),d.useEffect(()=>{if(r!==!1){const g=Bb(r),C=kt(i.current);return C.addEventListener(g,f),()=>{C.removeEventListener(g,f)}}},[f,r]),S.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const HD=(e,t)=>h({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),BD=e=>h({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),VD=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,i])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=i.palette)==null?void 0:a.mode}});let o=h({html:HD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:h({margin:0},BD(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const l=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return l&&(o=[o,l]),o};function GD(e){const t=je({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return S.jsxs(d.Fragment,{children:[S.jsx(iS,{styles:o=>VD(o,r)}),n]})}function UD(e){const t=kt(e);return t.body===e?Pr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ki(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vb(e){return parseInt(Pr(e).getComputedStyle(e).paddingRight,10)||0}function WD(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Gb(e,t,n,r,o){const l=[t,n,...r];[].forEach.call(e.children,s=>{const i=l.indexOf(s)===-1,a=!WD(s);i&&a&&Ki(s,o)})}function Xf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function KD(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(UD(r)){const s=I1(kt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Vb(r)+s}px`;const i=kt(r).querySelectorAll(".mui-fixed");[].forEach.call(i,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Vb(a)+s}px`})}let l;if(r.parentNode instanceof DocumentFragment)l=kt(r).body;else{const s=r.parentElement,i=Pr(r);l=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:s,property:i})=>{l?s.style.setProperty(i,l):s.style.removeProperty(i)})}}function qD(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class YD{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ki(t.modalRef,!1);const o=qD(n);Gb(n,t.mount,t.modalRef,o,!0);const l=Xf(this.containers,s=>s.container===n);return l!==-1?(this.containers[l].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Xf(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=KD(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Xf(this.containers,s=>s.modals.indexOf(t)!==-1),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(r,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&Ki(t.modalRef,n),Gb(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=l.modals[l.modals.length-1];s.modalRef&&Ki(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const QD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XD(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ZD(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function JD(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ZD(e))}function ej(e){const t=[],n=[];return Array.from(e.querySelectorAll(QD)).forEach((r,o)=>{const l=XD(r);l===-1||!JD(r)||(l===0?t.push(r):n.push({documentOrder:o,tabIndex:l,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function tj(){return!0}function gS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:l=ej,isEnabled:s=tj,open:i}=e,a=d.useRef(!1),u=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),C=ft(Nl(t),g),k=d.useRef(null);d.useEffect(()=>{!i||!g.current||(v.current=!n)},[n,i]),d.useEffect(()=>{if(!i||!g.current)return;const y=kt(g.current);return g.current.contains(y.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(a.current=!0,f.current.focus()),f.current=null)}},[i]),d.useEffect(()=>{if(!i||!g.current)return;const y=kt(g.current),w=x=>{k.current=x,!(r||!s()||x.key!=="Tab")&&y.activeElement===g.current&&x.shiftKey&&(a.current=!0,c.current&&c.current.focus())},E=()=>{const x=g.current;if(x===null)return;if(!y.hasFocus()||!s()||a.current){a.current=!1;return}if(x.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let I=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(I=l(g.current)),I.length>0){var R,M;const _=!!((R=k.current)!=null&&R.shiftKey&&((M=k.current)==null?void 0:M.key)==="Tab"),L=I[0],F=I[I.length-1];typeof L!="string"&&typeof F!="string"&&(_?F.focus():L.focus())}else x.focus()};y.addEventListener("focusin",E),y.addEventListener("keydown",w,!0);const P=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(P),y.removeEventListener("focusin",E),y.removeEventListener("keydown",w,!0)}},[n,r,o,s,i,l]);const b=y=>{f.current===null&&(f.current=y.relatedTarget),v.current=!0,p.current=y.target;const w=t.props.onFocus;w&&w(y)},m=y=>{f.current===null&&(f.current=y.relatedTarget),v.current=!0};return S.jsxs(d.Fragment,{children:[S.jsx("div",{tabIndex:i?0:-1,onFocus:m,ref:u,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:C,onFocus:b}),S.jsx("div",{tabIndex:i?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function nj(e){return typeof e=="function"?e():e}function rj(e){return e?e.props.hasOwnProperty("in"):!1}const oj=new YD;function lj(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=oj,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:u,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),C=ft(g,f),[k,b]=d.useState(!c),m=rj(a);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const w=()=>kt(v.current),E=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),P=()=>{o.mount(E(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},x=ct(()=>{const D=nj(t)||w().body;o.add(E(),D),g.current&&P()}),I=d.useCallback(()=>o.isTopModal(E()),[o]),R=ct(D=>{v.current=D,D&&(c&&I()?P():g.current&&Ki(g.current,y))}),M=d.useCallback(()=>{o.remove(E(),y)},[y,o]);d.useEffect(()=>()=>{M()},[M]),d.useEffect(()=>{c?x():(!m||!l)&&M()},[c,M,m,l,x]);const _=D=>A=>{var O;(O=D.onKeyDown)==null||O.call(D,A),!(A.key!=="Escape"||A.which===229||!I())&&(n||(A.stopPropagation(),u&&u(A,"escapeKeyDown")))},L=D=>A=>{var O;(O=D.onClick)==null||O.call(D,A),A.target===A.currentTarget&&u&&u(A,"backdropClick")};return{getRootProps:(D={})=>{const A=M1(e);delete A.onTransitionEnter,delete A.onTransitionExited;const O=h({},A,D);return h({role:"presentation"},O,{onKeyDown:_(O),ref:C})},getBackdropProps:(D={})=>{const A=D;return h({"aria-hidden":!0},A,{onClick:L(A),open:c})},getTransitionProps:()=>{const D=()=>{b(!1),s&&s()},A=()=>{b(!0),i&&i(),l&&M()};return{onEnter:ih(D,a==null?void 0:a.props.onEnter),onExited:ih(A,a==null?void 0:a.props.onExited)}},rootRef:C,portalRef:R,isTopModal:I,exited:k,hasTransition:m}}function sj(e){return _e("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const ij=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],aj=e=>{const{open:t,exited:n,classes:r}=e;return de({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},sj,r)},uj=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>h({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),cj=Y(dS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vS=d.forwardRef(function(t,n){var r,o,l,s,i,a;const u=je({name:"MuiModal",props:t}),{BackdropComponent:c=cj,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:C,component:k,components:b={},componentsProps:m={},disableAutoFocus:y=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:E=!1,disablePortal:P=!1,disableRestoreFocus:x=!1,disableScrollLock:I=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:_,open:L,slotProps:F,slots:$}=u,T=K(u,ij),D=h({},u,{closeAfterTransition:v,disableAutoFocus:y,disableEnforceFocus:w,disableEscapeKeyDown:E,disablePortal:P,disableRestoreFocus:x,disableScrollLock:I,hideBackdrop:R,keepMounted:M}),{getRootProps:A,getBackdropProps:O,getTransitionProps:j,portalRef:N,isTopModal:B,exited:H,hasTransition:V}=lj(h({},D,{rootRef:n})),U=h({},D,{exited:H}),q=aj(U),re={};if(g.props.tabIndex===void 0&&(re.tabIndex="-1"),V){const{onEnter:Q,onExited:ae}=j();re.onEnter=Q,re.onExited=ae}const ie=(r=(o=$==null?void 0:$.root)!=null?o:b.Root)!=null?r:uj,pe=(l=(s=$==null?void 0:$.backdrop)!=null?s:b.Backdrop)!=null?l:c,me=(i=F==null?void 0:F.root)!=null?i:m.root,ve=(a=F==null?void 0:F.backdrop)!=null?a:m.backdrop,ue=An({elementType:ie,externalSlotProps:me,externalForwardedProps:T,getSlotProps:A,additionalProps:{ref:n,as:k},ownerState:U,className:Z(p,me==null?void 0:me.className,q==null?void 0:q.root,!U.open&&U.exited&&(q==null?void 0:q.hidden))}),ge=An({elementType:pe,externalSlotProps:ve,additionalProps:f,getSlotProps:Q=>O(h({},Q,{onClick:ae=>{_&&_(ae),Q!=null&&Q.onClick&&Q.onClick(ae)}})),className:Z(ve==null?void 0:ve.className,f==null?void 0:f.className,q==null?void 0:q.backdrop),ownerState:U});return!M&&!L&&(!V||H)?null:S.jsx(lS,{ref:N,container:C,disablePortal:P,children:S.jsxs(ie,h({},ue,{children:[!R&&c?S.jsx(pe,h({},ge)):null,S.jsx(gS,{disableEnforceFocus:w,disableAutoFocus:y,disableRestoreFocus:x,isEnabled:B,open:L,children:d.cloneElement(g,re)})]}))})});function dj(e){return _e("MuiDialog",e)}const Zf=$e("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yS=d.createContext({}),fj=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],pj=Y(dS,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),hj=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:l}=e,s={root:["root"],container:["container",`scroll${X(n)}`],paper:["paper",`paperScroll${X(n)}`,`paperWidth${X(String(r))}`,o&&"paperFullWidth",l&&"paperFullScreen"]};return de(s,dj,t)},mj=Y(vS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),gj=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${X(n.scroll)}`]]}})(({ownerState:e})=>h({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),vj=Y(kr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${X(n.scroll)}`],t[`paperWidth${X(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>h({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Zf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Zf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Zf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),yj=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialog"}),o=Ur(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:a,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:C="sm",onBackdropClick:k,onClick:b,onClose:m,open:y,PaperComponent:w=kr,PaperProps:E={},scroll:P="paper",TransitionComponent:x=cS,transitionDuration:I=l,TransitionProps:R}=r,M=K(r,fj),_=h({},r,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:C,scroll:P}),L=hj(_),F=d.useRef(),$=O=>{F.current=O.target===O.currentTarget},T=O=>{b&&b(O),F.current&&(F.current=null,k&&k(O),m&&m(O,"backdropClick"))},D=ut(i),A=d.useMemo(()=>({titleId:D}),[D]);return S.jsx(mj,h({className:Z(L.root,f),closeAfterTransition:!0,components:{Backdrop:pj},componentsProps:{backdrop:h({transitionDuration:I,as:a},u)},disableEscapeKeyDown:p,onClose:m,open:y,ref:n,onClick:T,ownerState:_},M,{children:S.jsx(x,h({appear:!0,in:y,timeout:I,role:"presentation"},R,{children:S.jsx(gj,{className:Z(L.container),onMouseDown:$,ownerState:_,children:S.jsx(vj,h({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},E,{className:Z(L.paper,E.className),ownerState:_,children:S.jsx(yS.Provider,{value:A,children:c})}))})}))}))});function bj(e){return _e("MuiDialogActions",e)}$e("MuiDialogActions",["root","spacing"]);const Cj=["className","disableSpacing"],xj=e=>{const{classes:t,disableSpacing:n}=e;return de({root:["root",!n&&"spacing"]},bj,t)},wj=Y("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>h({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Sj=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=r,s=K(r,Cj),i=h({},r,{disableSpacing:l}),a=xj(i);return S.jsx(wj,h({className:Z(a.root,o),ownerState:i,ref:n},s))});function Pj(e){return _e("MuiDialogContent",e)}$e("MuiDialogContent",["root","dividers"]);function kj(e){return _e("MuiDialogTitle",e)}const Ij=$e("MuiDialogTitle",["root"]),Ej=["className","dividers"],Mj=e=>{const{classes:t,dividers:n}=e;return de({root:["root",n&&"dividers"]},Pj,t)},Rj=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>h({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Ij.root} + &`]:{paddingTop:0}})),Tj=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=r,s=K(r,Ej),i=h({},r,{dividers:l}),a=Mj(i);return S.jsx(Rj,h({className:Z(a.root,o),ownerState:i,ref:n},s))}),$j=["className","id"],Oj=e=>{const{classes:t}=e;return de({root:["root"]},kj,t)},Fj=Y(er,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),_j=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogTitle"}),{className:o,id:l}=r,s=K(r,$j),i=r,a=Oj(i),{titleId:u=l}=d.useContext(yS);return S.jsx(Fj,h({component:"h2",className:Z(a.root,o),ownerState:i,ref:n,variant:"h6",id:l??u},s))});function Dj(e){return _e("MuiDivider",e)}const Ub=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jj=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Lj=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:l,orientation:s,textAlign:i,variant:a}=e;return de({root:["root",t&&"absolute",a,l&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",i==="right"&&s!=="vertical"&&"textAlignRight",i==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Dj,r)},Aj=Y("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>h({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>h({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>h({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Nj=Y("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>h({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),bS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:s,component:i=l?"div":"hr",flexItem:a=!1,light:u=!1,orientation:c="horizontal",role:f=i!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=r,g=K(r,jj),C=h({},r,{absolute:o,component:i,flexItem:a,light:u,orientation:c,role:f,textAlign:p,variant:v}),k=Lj(C);return S.jsx(Aj,h({as:i,className:Z(k.root,s),role:f,ref:n,ownerState:C},g,{children:l?S.jsx(Nj,{className:k.wrapper,ownerState:C,children:l}):null}))});bS.muiSkipListHighlight=!0;const zj=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Hj=e=>{const{classes:t,disableUnderline:n}=e,o=de({root:["root",!n&&"underline"],input:["input"]},P_,t);return h({},t,o)},Bj=Y(qd,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return h({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l}},[`&.${On.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${On.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${On.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${On.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${On.disabled}, .${On.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${On.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&h({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Vj=Y(Yd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Kd})(({theme:e,ownerState:t})=>h({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),kg=d.forwardRef(function(t,n){var r,o,l,s;const i=je({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:C="text"}=i,k=K(i,zj),b=h({},i,{fullWidth:c,inputComponent:f,multiline:p,type:C}),m=Hj(i),y={root:{ownerState:b},input:{ownerState:b}},w=v??u?pn(y,v??u):y,E=(r=(o=g.root)!=null?o:a.Root)!=null?r:Bj,P=(l=(s=g.input)!=null?s:a.Input)!=null?l:Vj;return S.jsx(oi,h({slots:{root:E,input:P},componentsProps:w,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:C},k,{classes:m}))});kg.muiName="Input";function Gj(e){return _e("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Uj=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Wj=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${X(n)}`,r&&"fullWidth"]};return de(o,Gj,t)},Kj=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,t[`margin${X(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>h({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),CS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormControl"}),{children:o,className:l,color:s="primary",component:i="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:C="medium",variant:k="outlined"}=r,b=K(r,Uj),m=h({},r,{color:s,component:i,disabled:a,error:u,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:C,variant:k}),y=Wj(m),[w,E]=d.useState(()=>{let F=!1;return o&&d.Children.forEach(o,$=>{if(!Gu($,["Input","Select"]))return;const T=Gu($,["Select"])?$.props.input:$;T&&v_(T.props)&&(F=!0)}),F}),[P,x]=d.useState(()=>{let F=!1;return o&&d.Children.forEach(o,$=>{Gu($,["Input","Select"])&&(Tc($.props,!0)||Tc($.props.inputProps,!0))&&(F=!0)}),F}),[I,R]=d.useState(!1);a&&I&&R(!1);const M=c!==void 0&&!a?c:I;let _;const L=d.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:s,disabled:a,error:u,filled:P,focused:M,fullWidth:f,hiddenLabel:p,size:C,onBlur:()=>{R(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{R(!0)},registerEffect:_,required:g,variant:k}),[w,s,a,u,P,M,f,p,_,g,C,k]);return S.jsx(Ud.Provider,{value:L,children:S.jsx(Kj,h({as:i,ownerState:m,className:Z(y.root,l),ref:n},b,{children:o}))})}),qj=RT({createStyledComponent:Y("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})});function Yj(e){return _e("MuiFormControlLabel",e)}const Oi=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Qj=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Xj=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:l}=e,s={root:["root",n&&"disabled",`labelPlacement${X(r)}`,o&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return de(s,Yj,t)},Zj=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Oi.label}`]:t.label},t.root,t[`labelPlacement${X(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>h({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Oi.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Oi.label}`]:{[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Jj=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Oi.error}`]:{color:(e.vars||e).palette.error.main}})),e5=d.forwardRef(function(t,n){var r,o;const l=je({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:i={},control:a,disabled:u,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=l,C=K(l,Qj),k=Co(),b=(r=u??a.props.disabled)!=null?r:k==null?void 0:k.disabled,m=v??a.props.required,y={disabled:b,required:m};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof a.props[R]>"u"&&typeof l[R]<"u"&&(y[R]=l[R])});const w=Hl({props:l,muiFormControl:k,states:["error"]}),E=h({},l,{disabled:b,labelPlacement:p,required:m,error:w.error}),P=Xj(E),x=(o=g.typography)!=null?o:i.typography;let I=f;return I!=null&&I.type!==er&&!c&&(I=S.jsx(er,h({component:"span"},x,{className:Z(P.label,x==null?void 0:x.className),children:I}))),S.jsxs(Zj,h({className:Z(P.root,s),ownerState:E,ref:n},C,{children:[d.cloneElement(a,y),m?S.jsxs(qj,{display:"block",children:[I,S.jsxs(Jj,{ownerState:E,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):I]}))});function t5(e){return _e("MuiFormHelperText",e)}const Wb=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Kb;const n5=["children","className","component","disabled","error","filled","focused","margin","required","variant"],r5=e=>{const{classes:t,contained:n,size:r,disabled:o,error:l,filled:s,focused:i,required:a}=e,u={root:["root",o&&"disabled",l&&"error",r&&`size${X(r)}`,n&&"contained",i&&"focused",s&&"filled",a&&"required"]};return de(u,t5,t)},o5=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${X(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Wb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Wb.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),l5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:s="p"}=r,i=K(r,n5),a=Co(),u=Hl({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),c=h({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=r5(c);return S.jsx(o5,h({as:s,ownerState:c,className:Z(f.root,l),ref:n},i,{children:o===" "?Kb||(Kb=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function s5(e){return _e("MuiFormLabel",e)}const qi=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),i5=["children","className","color","component","disabled","error","filled","focused","required"],a5=e=>{const{classes:t,color:n,focused:r,disabled:o,error:l,filled:s,required:i}=e,a={root:["root",`color${X(n)}`,o&&"disabled",l&&"error",s&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",l&&"error"]};return de(a,s5,t)},u5=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${qi.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}})),c5=Y("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}})),d5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormLabel"}),{children:o,className:l,component:s="label"}=r,i=K(r,i5),a=Co(),u=Hl({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=h({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=a5(c);return S.jsxs(u5,h({as:s,ownerState:c,className:Z(f.root,l),ref:n},i,{children:[o,u.required&&S.jsxs(c5,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),f5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vh(e){return`scale(${e}, ${e**2})`}const p5={entering:{opacity:1,transform:vh(1)},entered:{opacity:1,transform:"none"}},Jf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ia=d.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:l,easing:s,in:i,onEnter:a,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:C="auto",TransitionComponent:k=Wr}=t,b=K(t,f5),m=vs(),y=d.useRef(),w=Ur(),E=d.useRef(null),P=ft(E,Nl(l),n),x=T=>D=>{if(T){const A=E.current;D===void 0?T(A):T(A,D)}},I=x(c),R=x((T,D)=>{U1(T);const{duration:A,delay:O,easing:j}=Mc({style:g,timeout:C,easing:s},{mode:"enter"});let N;C==="auto"?(N=w.transitions.getAutoHeightDuration(T.clientHeight),y.current=N):N=A,T.style.transition=[w.transitions.create("opacity",{duration:N,delay:O}),w.transitions.create("transform",{duration:Jf?N:N*.666,delay:O,easing:j})].join(","),a&&a(T,D)}),M=x(u),_=x(v),L=x(T=>{const{duration:D,delay:A,easing:O}=Mc({style:g,timeout:C,easing:s},{mode:"exit"});let j;C==="auto"?(j=w.transitions.getAutoHeightDuration(T.clientHeight),y.current=j):j=D,T.style.transition=[w.transitions.create("opacity",{duration:j,delay:A}),w.transitions.create("transform",{duration:Jf?j:j*.666,delay:Jf?A:A||j*.333,easing:O})].join(","),T.style.opacity=0,T.style.transform=vh(.75),f&&f(T)}),F=x(p),$=T=>{C==="auto"&&m.start(y.current||0,T),r&&r(E.current,T)};return S.jsx(k,h({appear:o,in:i,nodeRef:E,onEnter:R,onEntered:M,onEntering:I,onExit:L,onExited:F,onExiting:_,addEndListener:$,timeout:C==="auto"?null:C},b,{children:(T,D)=>d.cloneElement(l,h({style:h({opacity:0,transform:vh(.75),visibility:T==="exited"&&!i?"hidden":void 0},p5[T],g,l.props.style),ref:P},D))}))});Ia.muiSupportAuto=!0;const h5=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],m5=e=>{const{classes:t,disableUnderline:n}=e,o=de({root:["root",!n&&"underline"],input:["input"]},w_,t);return h({},t,o)},g5=Y(qd,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),h({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jo.disabled}, .${jo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${jo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),v5=Y(Yd,{name:"MuiInput",slot:"Input",overridesResolver:Kd})({}),Ig=d.forwardRef(function(t,n){var r,o,l,s;const i=je({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:C={},type:k="text"}=i,b=K(i,h5),m=m5(i),w={root:{ownerState:{disableUnderline:a}}},E=g??c?pn(g??c,w):w,P=(r=(o=C.root)!=null?o:u.Root)!=null?r:g5,x=(l=(s=C.input)!=null?s:u.Input)!=null?l:v5;return S.jsx(oi,h({slots:{root:P,input:x},slotProps:E,fullWidth:f,inputComponent:p,multiline:v,ref:n,type:k},b,{classes:m}))});Ig.muiName="Input";function y5(e){return _e("MuiInputAdornment",e)}const qb=$e("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Yb;const b5=["children","className","component","disablePointerEvents","disableTypography","position","variant"],C5=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${X(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},x5=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:l,variant:s}=e,i={root:["root",n&&"disablePointerEvents",o&&`position${X(o)}`,s,r&&"hiddenLabel",l&&`size${X(l)}`]};return de(i,y5,t)},w5=Y("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:C5})(({theme:e,ownerState:t})=>h({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${qb.positionStart}&:not(.${qb.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),S5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiInputAdornment"}),{children:o,className:l,component:s="div",disablePointerEvents:i=!1,disableTypography:a=!1,position:u,variant:c}=r,f=K(r,b5),p=Co()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=h({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:i,position:u,variant:v}),C=x5(g);return S.jsx(Ud.Provider,{value:null,children:S.jsx(w5,h({as:s,ownerState:g,className:Z(C.root,l),ref:n},f,{children:typeof o=="string"&&!a?S.jsx(er,{color:"text.secondary",children:o}):S.jsxs(d.Fragment,{children:[u==="start"?Yb||(Yb=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function P5(e){return _e("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const k5=["disableAnimation","margin","shrink","variant","className"],I5=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:l,variant:s,required:i}=e,a={root:["root",n&&"formControl",!l&&"animated",o&&"shrink",r&&r!=="normal"&&`size${X(r)}`,s],asterisk:[i&&"asterisk"]},u=de(a,P5,t);return h({},t,u)},E5=Y(d5,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qi.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>h({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&h({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&h({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&h({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),xS=d.forwardRef(function(t,n){const r=je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:l,className:s}=r,i=K(r,k5),a=Co();let u=l;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=Hl({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),f=h({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=I5(f);return S.jsx(E5,h({"data-shrink":u,ownerState:f,ref:n,className:Z(p.root,s)},i,{classes:p}))}),Ea=d.createContext({});function M5(e){return _e("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const R5=["children","className","component","dense","disablePadding","subheader"],T5=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return de({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},M5,t)},$5=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>h({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),O5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiList"}),{children:o,className:l,component:s="ul",dense:i=!1,disablePadding:a=!1,subheader:u}=r,c=K(r,R5),f=d.useMemo(()=>({dense:i}),[i]),p=h({},r,{component:s,dense:i,disablePadding:a}),v=T5(p);return S.jsx(Ea.Provider,{value:f,children:S.jsxs($5,h({as:s,className:Z(v.root,l),ref:n,ownerState:p},c,{children:[u,o]}))})});function F5(e){return _e("MuiListItemIcon",e)}const Qb=$e("MuiListItemIcon",["root","alignItemsFlexStart"]),_5=["className"],D5=e=>{const{alignItems:t,classes:n}=e;return de({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},F5,n)},j5=Y("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>h({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Ms=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemIcon"}),{className:o}=r,l=K(r,_5),s=d.useContext(Ea),i=h({},r,{alignItems:s.alignItems}),a=D5(i);return S.jsx(j5,h({className:Z(a.root,o),ownerState:i,ref:n},l))});function L5(e){return _e("MuiListItemText",e)}const $c=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),A5=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],N5=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:l}=e;return de({root:["root",n&&"inset",l&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},L5,t)},z5=Y("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$c.primary}`]:t.primary},{[`& .${$c.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>h({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Rs=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemText"}),{children:o,className:l,disableTypography:s=!1,inset:i=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,p=K(r,A5),{dense:v}=d.useContext(Ea);let g=a??o,C=c;const k=h({},r,{disableTypography:s,inset:i,primary:!!g,secondary:!!C,dense:v}),b=N5(k);return g!=null&&g.type!==er&&!s&&(g=S.jsx(er,h({variant:v?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),C!=null&&C.type!==er&&!s&&(C=S.jsx(er,h({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},f,{children:C}))),S.jsxs(z5,h({className:Z(b.root,l),ownerState:k,ref:n},p,{children:[g,C]}))}),H5=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ep(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Xb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ci(e,t,n,r,o,l){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const a=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!wS(i,l)||a)i=o(e,i,n);else return i.focus(),!0}return!1}const Eg=d.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:l=!1,children:s,className:i,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=K(t,H5),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{o&&v.current.focus()},[o]),d.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,{direction:w})=>{const E=!v.current.style.width;if(y.clientHeight<v.current.clientHeight&&E){const P=`${I1(kt(y))}px`;v.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=P,v.current.style.width=`calc(100% + ${P})`}return v.current}}),[]);const C=y=>{const w=v.current,E=y.key,P=kt(w).activeElement;if(E==="ArrowDown")y.preventDefault(),Ci(w,P,u,a,ep);else if(E==="ArrowUp")y.preventDefault(),Ci(w,P,u,a,Xb);else if(E==="Home")y.preventDefault(),Ci(w,null,u,a,ep);else if(E==="End")y.preventDefault(),Ci(w,null,u,a,Xb);else if(E.length===1){const x=g.current,I=E.toLowerCase(),R=performance.now();x.keys.length>0&&(R-x.lastTime>500?(x.keys=[],x.repeating=!0,x.previousKeyMatched=!0):x.repeating&&I!==x.keys[0]&&(x.repeating=!1)),x.lastTime=R,x.keys.push(I);const M=P&&!x.repeating&&wS(P,x);x.previousKeyMatched&&(M||Ci(w,P,!1,a,ep,x))?y.preventDefault():x.previousKeyMatched=!1}c&&c(y)},k=ft(v,n);let b=-1;d.Children.forEach(s,(y,w)=>{if(!d.isValidElement(y)){b===w&&(b+=1,b>=s.length&&(b=-1));return}y.props.disabled||(f==="selectedMenu"&&y.props.selected||b===-1)&&(b=w),b===w&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(b+=1,b>=s.length&&(b=-1))});const m=d.Children.map(s,(y,w)=>{if(w===b){const E={};return l&&(E.autoFocus=!0),y.props.tabIndex===void 0&&f==="selectedMenu"&&(E.tabIndex=0),d.cloneElement(y,E)}return y});return S.jsx(O5,h({role:"menu",ref:k,className:i,onKeyDown:C,tabIndex:o?0:-1},p,{children:m}))});function B5(e){return _e("MuiPopover",e)}$e("MuiPopover",["root","paper"]);const V5=["onEntering"],G5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],U5=["slotProps"];function Zb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Jb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function e0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function tp(e){return typeof e=="function"?e():e}const W5=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"]},B5,t)},K5=Y(vS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SS=Y(kr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),q5=d.forwardRef(function(t,n){var r,o,l;const s=je({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:C=8,marginThreshold:k=16,open:b,PaperProps:m={},slots:y,slotProps:w,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:P=Ia,transitionDuration:x="auto",TransitionProps:{onEntering:I}={},disableScrollLock:R=!1}=s,M=K(s.TransitionProps,V5),_=K(s,G5),L=(r=w==null?void 0:w.paper)!=null?r:m,F=d.useRef(),$=ft(F,L.ref),T=h({},s,{anchorOrigin:u,anchorReference:f,elevation:C,marginThreshold:k,externalPaperSlotProps:L,transformOrigin:E,TransitionComponent:P,transitionDuration:x,TransitionProps:M}),D=W5(T),A=d.useCallback(()=>{if(f==="anchorPosition")return c;const Q=tp(a),ne=(Q&&Q.nodeType===1?Q:kt(F.current).body).getBoundingClientRect();return{top:ne.top+Zb(ne,u.vertical),left:ne.left+Jb(ne,u.horizontal)}},[a,u.horizontal,u.vertical,c,f]),O=d.useCallback(Q=>({vertical:Zb(Q,E.vertical),horizontal:Jb(Q,E.horizontal)}),[E.horizontal,E.vertical]),j=d.useCallback(Q=>{const ae={width:Q.offsetWidth,height:Q.offsetHeight},ne=O(ae);if(f==="none")return{top:null,left:null,transformOrigin:e0(ne)};const ee=A();let he=ee.top-ne.vertical,se=ee.left-ne.horizontal;const Re=he+ae.height,Pe=se+ae.width,Oe=Pr(tp(a)),xe=Oe.innerHeight-k,te=Oe.innerWidth-k;if(k!==null&&he<k){const oe=he-k;he-=oe,ne.vertical+=oe}else if(k!==null&&Re>xe){const oe=Re-xe;he-=oe,ne.vertical+=oe}if(k!==null&&se<k){const oe=se-k;se-=oe,ne.horizontal+=oe}else if(Pe>te){const oe=Pe-te;se-=oe,ne.horizontal+=oe}return{top:`${Math.round(he)}px`,left:`${Math.round(se)}px`,transformOrigin:e0(ne)}},[a,f,A,O,k]),[N,B]=d.useState(b),H=d.useCallback(()=>{const Q=F.current;if(!Q)return;const ae=j(Q);ae.top!==null&&(Q.style.top=ae.top),ae.left!==null&&(Q.style.left=ae.left),Q.style.transformOrigin=ae.transformOrigin,B(!0)},[j]);d.useEffect(()=>(R&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,R,H]);const V=(Q,ae)=>{I&&I(Q,ae),H()},U=()=>{B(!1)};d.useEffect(()=>{b&&H()}),d.useImperativeHandle(i,()=>b?{updatePosition:()=>{H()}}:null,[b,H]),d.useEffect(()=>{if(!b)return;const Q=Al(()=>{H()}),ae=Pr(a);return ae.addEventListener("resize",Q),()=>{Q.clear(),ae.removeEventListener("resize",Q)}},[a,b,H]);let q=x;x==="auto"&&!P.muiSupportAuto&&(q=void 0);const re=g||(a?kt(tp(a)).body:void 0),ie=(o=y==null?void 0:y.root)!=null?o:K5,pe=(l=y==null?void 0:y.paper)!=null?l:SS,me=An({elementType:pe,externalSlotProps:h({},L,{style:N?L.style:h({},L.style,{opacity:0})}),additionalProps:{elevation:C,ref:$},ownerState:T,className:Z(D.paper,L==null?void 0:L.className)}),ve=An({elementType:ie,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:_,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:b},ownerState:T,className:Z(D.root,v)}),{slotProps:ue}=ve,ge=K(ve,U5);return S.jsx(ie,h({},ge,!xa(ie)&&{slotProps:ue,disableScrollLock:R},{children:S.jsx(P,h({appear:!0,in:b,onEntering:V,onExited:U,timeout:q},M,{children:S.jsx(pe,h({},me,{children:p}))}))}))});function Y5(e){return _e("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Q5=["onEntering"],X5=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Z5={vertical:"top",horizontal:"right"},J5={vertical:"top",horizontal:"left"},eL=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"],list:["list"]},Y5,t)},tL=Y(q5,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nL=Y(SS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rL=Y(Eg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),oL=d.forwardRef(function(t,n){var r,o;const l=je({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:a,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:C="auto",TransitionProps:{onEntering:k}={},variant:b="selectedMenu",slots:m={},slotProps:y={}}=l,w=K(l.TransitionProps,Q5),E=K(l,X5),P=Ga(),x=h({},l,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:k,PaperProps:v,transitionDuration:C,TransitionProps:w,variant:b}),I=eL(x),R=s&&!u&&p,M=d.useRef(null),_=(O,j)=>{M.current&&M.current.adjustStyleForScrollbar(O,{direction:P?"rtl":"ltr"}),k&&k(O,j)},L=O=>{O.key==="Tab"&&(O.preventDefault(),f&&f(O,"tabKeyDown"))};let F=-1;d.Children.map(i,(O,j)=>{d.isValidElement(O)&&(O.props.disabled||(b==="selectedMenu"&&O.props.selected||F===-1)&&(F=j))});const $=(r=m.paper)!=null?r:nL,T=(o=y.paper)!=null?o:v,D=An({elementType:m.root,externalSlotProps:y.root,ownerState:x,className:[I.root,a]}),A=An({elementType:$,externalSlotProps:T,ownerState:x,className:I.paper});return S.jsx(tL,h({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?Z5:J5,slots:{paper:$,root:m.root},slotProps:{root:D,paper:A},open:p,ref:n,transitionDuration:C,TransitionProps:h({onEntering:_},w),ownerState:x},E,{classes:g,children:S.jsx(rL,h({onKeyDown:L,actions:M,autoFocus:s&&(F===-1||u),autoFocusItem:R,variant:b},c,{className:Z(I.list,c.className),children:i}))}))});function lL(e){return _e("MuiMenuItem",e)}const xi=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],iL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},aL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:l,classes:s}=e,a=de({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",l&&"selected"]},lL,s);return h({},s,a)},uL=Y(Jo,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:iL})(({theme:e,ownerState:t})=>h({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ub.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ub.inset}`]:{marginLeft:52},[`& .${$c.root}`]:{marginTop:0,marginBottom:0},[`& .${$c.inset}`]:{paddingLeft:36},[`& .${Qb.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&h({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Qb.root} svg`]:{fontSize:"1.25rem"}}))),zr=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:s=!1,divider:i=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,v=K(r,sL),g=d.useContext(Ea),C=d.useMemo(()=>({dense:s||g.dense||!1,disableGutters:a}),[g.dense,s,a]),k=d.useRef(null);st(()=>{o&&k.current&&k.current.focus()},[o]);const b=h({},r,{dense:C.dense,divider:i,disableGutters:a}),m=aL(r),y=ft(k,n);let w;return r.disabled||(w=f!==void 0?f:-1),S.jsx(Ea.Provider,{value:C,children:S.jsx(uL,h({ref:y,role:c,tabIndex:w,component:l,focusVisibleClassName:Z(m.focusVisible,u),className:Z(m.root,p)},v,{ownerState:b,classes:m}))})});function cL(e){return _e("MuiNativeSelect",e)}const Mg=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dL=["className","disabled","error","IconComponent","inputRef","variant"],fL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${X(n)}`,l&&"iconOpen",r&&"disabled"]};return de(i,cL,t)},PS=({ownerState:e,theme:t})=>h({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":h({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),pL=Y("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:In,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mg.multiple}`]:t.multiple}]}})(PS),kS=({ownerState:e,theme:t})=>h({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),hL=Y("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${X(n.variant)}`],n.open&&t.iconOpen]}})(kS),mL=d.forwardRef(function(t,n){const{className:r,disabled:o,error:l,IconComponent:s,inputRef:i,variant:a="standard"}=t,u=K(t,dL),c=h({},t,{disabled:o,variant:a,error:l}),f=fL(c);return S.jsxs(d.Fragment,{children:[S.jsx(pL,h({ownerState:c,className:Z(f.select,r),disabled:o,ref:i||n},u)),t.multiple?null:S.jsx(hL,{as:s,ownerState:c,className:f.icon})]})});var t0;const gL=["children","classes","className","label","notched"],vL=Y("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:In})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yL=Y("legend",{name:"MuiNotchedOutlined",shouldForwardProp:In})(({ownerState:e,theme:t})=>h({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&h({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function bL(e){const{className:t,label:n,notched:r}=e,o=K(e,gL),l=n!=null&&n!=="",s=h({},e,{notched:r,withLabel:l});return S.jsx(vL,h({"aria-hidden":!0,className:t,ownerState:s},o,{children:S.jsx(yL,{ownerState:s,children:l?S.jsx("span",{children:n}):t0||(t0=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const CL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xL=e=>{const{classes:t}=e,r=de({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},S_,t);return h({},t,r)},wL=Y(qd,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return h({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$r.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$r.focused} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$r.error} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$r.disabled} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&h({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),SL=Y(bL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),PL=Y(Yd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Kd})(({theme:e,ownerState:t})=>h({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Rg=d.forwardRef(function(t,n){var r,o,l,s,i;const a=je({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:C={},type:k="text"}=a,b=K(a,CL),m=xL(a),y=Co(),w=Hl({props:a,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=h({},a,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:v,size:w.size,type:k}),P=(r=(o=C.root)!=null?o:u.Root)!=null?r:wL,x=(l=(s=C.input)!=null?s:u.Input)!=null?l:PL;return S.jsx(oi,h({slots:{root:P,input:x},renderSuffix:I=>S.jsx(SL,{ownerState:E,className:m.notchedOutline,label:p!=null&&p!==""&&w.required?i||(i=S.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:n,type:k},b,{classes:h({},m,{notchedOutline:null})}))});Rg.muiName="Input";const kL=Ke(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),IL=Ke(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function EL(e){return _e("MuiSelect",e)}const wi=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var n0;const ML=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],RL=Y("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})(PS,{[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),TL=Y("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${X(n.variant)}`],n.open&&t.iconOpen]}})(kS),$L=Y("input",{shouldForwardProp:e=>V1(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function r0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function OL(e){return e==null||typeof e=="string"&&!e.trim()}const FL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${X(n)}`,l&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return de(i,EL,t)},_L=d.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":l,autoFocus:s,autoWidth:i,children:a,className:u,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:C,inputRef:k,labelId:b,MenuProps:m={},multiple:y,name:w,onBlur:E,onChange:P,onClose:x,onFocus:I,onOpen:R,open:M,readOnly:_,renderValue:L,SelectDisplayProps:F={},tabIndex:$,value:T,variant:D="standard"}=t,A=K(t,ML),[O,j]=Qo({controlled:T,default:f,name:"Select"}),[N,B]=Qo({controlled:M,default:c,name:"Select"}),H=d.useRef(null),V=d.useRef(null),[U,q]=d.useState(null),{current:re}=d.useRef(M!=null),[ie,pe]=d.useState(),me=ft(n,k),ve=d.useCallback(be=>{V.current=be,be&&q(be)},[]),ue=U==null?void 0:U.parentNode;d.useImperativeHandle(me,()=>({focus:()=>{V.current.focus()},node:H.current,value:O}),[O]),d.useEffect(()=>{c&&N&&U&&!re&&(pe(i?null:ue.clientWidth),V.current.focus())},[U,i]),d.useEffect(()=>{s&&V.current.focus()},[s]),d.useEffect(()=>{if(!b)return;const be=kt(V.current).getElementById(b);if(be){const Le=()=>{getSelection().isCollapsed&&V.current.focus()};return be.addEventListener("click",Le),()=>{be.removeEventListener("click",Le)}}},[b]);const ge=(be,Le)=>{be?R&&R(Le):x&&x(Le),re||(pe(i?null:ue.clientWidth),B(be))},Q=be=>{be.button===0&&(be.preventDefault(),V.current.focus(),ge(!0,be))},ae=be=>{ge(!1,be)},ne=d.Children.toArray(a),ee=be=>{const Le=ne.find(le=>le.props.value===be.target.value);Le!==void 0&&(j(Le.props.value),P&&P(be,Le))},he=be=>Le=>{let le;if(Le.currentTarget.hasAttribute("tabindex")){if(y){le=Array.isArray(O)?O.slice():[];const Se=O.indexOf(be.props.value);Se===-1?le.push(be.props.value):le.splice(Se,1)}else le=be.props.value;if(be.props.onClick&&be.props.onClick(Le),O!==le&&(j(le),P)){const Se=Le.nativeEvent||Le,Ne=new Se.constructor(Se.type,Se);Object.defineProperty(Ne,"target",{writable:!0,value:{value:le,name:w}}),P(Ne,be)}y||ge(!1,Le)}},se=be=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(be.key)!==-1&&(be.preventDefault(),ge(!0,be))},Re=U!==null&&N,Pe=be=>{!Re&&E&&(Object.defineProperty(be,"target",{writable:!0,value:{value:O,name:w}}),E(be))};delete A["aria-invalid"];let Oe,xe;const te=[];let oe=!1;(Tc({value:O})||v)&&(L?Oe=L(O):oe=!0);const ye=ne.map(be=>{if(!d.isValidElement(be))return null;let Le;if(y){if(!Array.isArray(O))throw new Error(mo(2));Le=O.some(le=>r0(le,be.props.value)),Le&&oe&&te.push(be.props.children)}else Le=r0(O,be.props.value),Le&&oe&&(xe=be.props.children);return d.cloneElement(be,{"aria-selected":Le?"true":"false",onClick:he(be),onKeyUp:le=>{le.key===" "&&le.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(le)},role:"option",selected:Le,value:void 0,"data-value":be.props.value})});oe&&(y?te.length===0?Oe=null:Oe=te.reduce((be,Le,le)=>(be.push(Le),le<te.length-1&&be.push(", "),be),[]):Oe=xe);let Me=ie;!i&&re&&U&&(Me=ue.clientWidth);let Ae;typeof $<"u"?Ae=$:Ae=p?null:0;const Te=F.id||(w?`mui-component-select-${w}`:void 0),ce=h({},t,{variant:D,value:O,open:Re,error:g}),Be=FL(ce),yt=h({},m.PaperProps,(r=m.slotProps)==null?void 0:r.paper),Ye=ut();return S.jsxs(d.Fragment,{children:[S.jsx(RL,h({ref:ve,tabIndex:Ae,role:"combobox","aria-controls":Ye,"aria-disabled":p?"true":void 0,"aria-expanded":Re?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[b,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:se,onMouseDown:p||_?null:Q,onBlur:Pe,onFocus:I},F,{ownerState:ce,className:Z(F.className,Be.select,u),id:Te,children:OL(Oe)?n0||(n0=S.jsx("span",{className:"notranslate",children:"​"})):Oe})),S.jsx($L,h({"aria-invalid":g,value:Array.isArray(O)?O.join(","):O,name:w,ref:H,"aria-hidden":!0,onChange:ee,tabIndex:-1,disabled:p,className:Be.nativeInput,autoFocus:s,ownerState:ce},A)),S.jsx(TL,{as:C,className:Be.icon,ownerState:ce}),S.jsx(oL,h({id:`menu-${w||""}`,anchorEl:ue,open:Re,onClose:ae,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},m,{MenuListProps:h({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:Ye},m.MenuListProps),slotProps:h({},m.slotProps,{paper:h({},yt,{style:h({minWidth:Me},yt!=null?yt.style:null)})}),children:ye}))]})}),DL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],jL=["root"],LL=e=>{const{classes:t}=e;return t},Tg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>In(e)&&e!=="variant",slot:"Root"},AL=Y(Ig,Tg)(""),NL=Y(Rg,Tg)(""),zL=Y(kg,Tg)(""),Xd=d.forwardRef(function(t,n){const r=je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:s={},className:i,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=aS,id:f,input:p,inputProps:v,label:g,labelId:C,MenuProps:k,multiple:b=!1,native:m=!1,onClose:y,onOpen:w,open:E,renderValue:P,SelectDisplayProps:x,variant:I="outlined"}=r,R=K(r,DL),M=m?mL:_L,_=Co(),L=Hl({props:r,muiFormControl:_,states:["variant","error"]}),F=L.variant||I,$=h({},r,{variant:F,classes:s}),T=LL($),D=K(T,jL),A=p||{standard:S.jsx(AL,{ownerState:$}),outlined:S.jsx(NL,{label:g,ownerState:$}),filled:S.jsx(zL,{ownerState:$})}[F],O=ft(n,Nl(A));return S.jsx(d.Fragment,{children:d.cloneElement(A,h({inputComponent:M,inputProps:h({children:l,error:L.error,IconComponent:c,variant:F,type:void 0,multiple:b},m?{id:f}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:C,MenuProps:k,onClose:y,onOpen:w,open:E,renderValue:P,SelectDisplayProps:h({id:f},x)},v,{classes:v?pn(D,v.classes):D},p?p.props.inputProps:{})},(b&&m||u)&&F==="outlined"?{notched:!0}:{},{ref:O,className:Z(A.props.className,i,T.root)},!p&&{variant:F},R))})});Xd.muiName="Select";function HL(e){return _e("MuiSkeleton",e)}$e("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const BL=["animation","className","component","height","style","variant","width"];let Oc=e=>e,o0,l0,s0,i0;const VL=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:l,height:s}=e;return de({root:["root",n,r,o&&"withChildren",o&&!l&&"fitContent",o&&!s&&"heightAuto"]},HL,t)},GL=rl(o0||(o0=Oc`
156
+ `),_D)),ND=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:s=!1,size:i=40,style:a,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=K(r,OD),v=h({},r,{color:l,disableShrink:s,size:i,thickness:u,value:c,variant:f}),g=DD(v),C={},k={},b={};if(f==="determinate"){const m=2*Math.PI*((Io-u)/2);C.strokeDasharray=m.toFixed(3),b["aria-valuenow"]=Math.round(c),C.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,k.transform="rotate(-90deg)"}return S.jsx(jD,h({className:Z(g.root,o),style:h({width:i,height:i},k,a),ownerState:v,ref:n,role:"progressbar"},b,p,{children:S.jsx(LD,{className:g.svg,ownerState:v,viewBox:`${Io/2} ${Io/2} ${Io} ${Io}`,children:S.jsx(AD,{className:g.circle,style:C,ownerState:v,cx:Io,cy:Io,r:(Io-u)/2,fill:"none",strokeWidth:u})})}))});function Bb(e){return e.substring(2).toLowerCase()}function zD(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function mS(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:l="onTouchEnd"}=e,s=d.useRef(!1),i=d.useRef(null),a=d.useRef(!1),u=d.useRef(!1);d.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const c=ft(Nl(t),i),f=ct(g=>{const C=u.current;u.current=!1;const k=kt(i.current);if(!a.current||!i.current||"clientX"in g&&zD(g,k))return;if(s.current){s.current=!1;return}let b;g.composedPath?b=g.composedPath().indexOf(i.current)>-1:b=!k.documentElement.contains(g.target)||i.current.contains(g.target),!b&&(n||!C)&&o(g)}),p=g=>C=>{u.current=!0;const k=t.props[g];k&&k(C)},v={ref:c};return l!==!1&&(v[l]=p(l)),d.useEffect(()=>{if(l!==!1){const g=Bb(l),C=kt(i.current),k=()=>{s.current=!0};return C.addEventListener(g,f),C.addEventListener("touchmove",k),()=>{C.removeEventListener(g,f),C.removeEventListener("touchmove",k)}}},[f,l]),r!==!1&&(v[r]=p(r)),d.useEffect(()=>{if(r!==!1){const g=Bb(r),C=kt(i.current);return C.addEventListener(g,f),()=>{C.removeEventListener(g,f)}}},[f,r]),S.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const HD=(e,t)=>h({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),BD=e=>h({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),VD=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,i])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=i.palette)==null?void 0:a.mode}});let o=h({html:HD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:h({margin:0},BD(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const l=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return l&&(o=[o,l]),o};function GD(e){const t=je({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return S.jsxs(d.Fragment,{children:[S.jsx(iS,{styles:o=>VD(o,r)}),n]})}function UD(e){const t=kt(e);return t.body===e?Pr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ki(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vb(e){return parseInt(Pr(e).getComputedStyle(e).paddingRight,10)||0}function WD(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Gb(e,t,n,r,o){const l=[t,n,...r];[].forEach.call(e.children,s=>{const i=l.indexOf(s)===-1,a=!WD(s);i&&a&&Ki(s,o)})}function Xf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function KD(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(UD(r)){const s=I1(kt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Vb(r)+s}px`;const i=kt(r).querySelectorAll(".mui-fixed");[].forEach.call(i,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Vb(a)+s}px`})}let l;if(r.parentNode instanceof DocumentFragment)l=kt(r).body;else{const s=r.parentElement,i=Pr(r);l=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:s,property:i})=>{l?s.style.setProperty(i,l):s.style.removeProperty(i)})}}function qD(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class YD{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ki(t.modalRef,!1);const o=qD(n);Gb(n,t.mount,t.modalRef,o,!0);const l=Xf(this.containers,s=>s.container===n);return l!==-1?(this.containers[l].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Xf(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=KD(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Xf(this.containers,s=>s.modals.indexOf(t)!==-1),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(r,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&Ki(t.modalRef,n),Gb(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=l.modals[l.modals.length-1];s.modalRef&&Ki(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const QD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XD(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ZD(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function JD(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ZD(e))}function e5(e){const t=[],n=[];return Array.from(e.querySelectorAll(QD)).forEach((r,o)=>{const l=XD(r);l===-1||!JD(r)||(l===0?t.push(r):n.push({documentOrder:o,tabIndex:l,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function t5(){return!0}function gS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:l=e5,isEnabled:s=t5,open:i}=e,a=d.useRef(!1),u=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),C=ft(Nl(t),g),k=d.useRef(null);d.useEffect(()=>{!i||!g.current||(v.current=!n)},[n,i]),d.useEffect(()=>{if(!i||!g.current)return;const y=kt(g.current);return g.current.contains(y.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(a.current=!0,f.current.focus()),f.current=null)}},[i]),d.useEffect(()=>{if(!i||!g.current)return;const y=kt(g.current),w=x=>{k.current=x,!(r||!s()||x.key!=="Tab")&&y.activeElement===g.current&&x.shiftKey&&(a.current=!0,c.current&&c.current.focus())},E=()=>{const x=g.current;if(x===null)return;if(!y.hasFocus()||!s()||a.current){a.current=!1;return}if(x.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let I=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(I=l(g.current)),I.length>0){var R,M;const _=!!((R=k.current)!=null&&R.shiftKey&&((M=k.current)==null?void 0:M.key)==="Tab"),L=I[0],F=I[I.length-1];typeof L!="string"&&typeof F!="string"&&(_?F.focus():L.focus())}else x.focus()};y.addEventListener("focusin",E),y.addEventListener("keydown",w,!0);const P=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(P),y.removeEventListener("focusin",E),y.removeEventListener("keydown",w,!0)}},[n,r,o,s,i,l]);const b=y=>{f.current===null&&(f.current=y.relatedTarget),v.current=!0,p.current=y.target;const w=t.props.onFocus;w&&w(y)},m=y=>{f.current===null&&(f.current=y.relatedTarget),v.current=!0};return S.jsxs(d.Fragment,{children:[S.jsx("div",{tabIndex:i?0:-1,onFocus:m,ref:u,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:C,onFocus:b}),S.jsx("div",{tabIndex:i?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function n5(e){return typeof e=="function"?e():e}function r5(e){return e?e.props.hasOwnProperty("in"):!1}const o5=new YD;function l5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=o5,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:u,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),C=ft(g,f),[k,b]=d.useState(!c),m=r5(a);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const w=()=>kt(v.current),E=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),P=()=>{o.mount(E(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},x=ct(()=>{const D=n5(t)||w().body;o.add(E(),D),g.current&&P()}),I=d.useCallback(()=>o.isTopModal(E()),[o]),R=ct(D=>{v.current=D,D&&(c&&I()?P():g.current&&Ki(g.current,y))}),M=d.useCallback(()=>{o.remove(E(),y)},[y,o]);d.useEffect(()=>()=>{M()},[M]),d.useEffect(()=>{c?x():(!m||!l)&&M()},[c,M,m,l,x]);const _=D=>A=>{var O;(O=D.onKeyDown)==null||O.call(D,A),!(A.key!=="Escape"||A.which===229||!I())&&(n||(A.stopPropagation(),u&&u(A,"escapeKeyDown")))},L=D=>A=>{var O;(O=D.onClick)==null||O.call(D,A),A.target===A.currentTarget&&u&&u(A,"backdropClick")};return{getRootProps:(D={})=>{const A=M1(e);delete A.onTransitionEnter,delete A.onTransitionExited;const O=h({},A,D);return h({role:"presentation"},O,{onKeyDown:_(O),ref:C})},getBackdropProps:(D={})=>{const A=D;return h({"aria-hidden":!0},A,{onClick:L(A),open:c})},getTransitionProps:()=>{const D=()=>{b(!1),s&&s()},A=()=>{b(!0),i&&i(),l&&M()};return{onEnter:ih(D,a==null?void 0:a.props.onEnter),onExited:ih(A,a==null?void 0:a.props.onExited)}},rootRef:C,portalRef:R,isTopModal:I,exited:k,hasTransition:m}}function s5(e){return _e("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const i5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],a5=e=>{const{open:t,exited:n,classes:r}=e;return de({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},s5,r)},u5=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>h({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),c5=Y(dS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vS=d.forwardRef(function(t,n){var r,o,l,s,i,a;const u=je({name:"MuiModal",props:t}),{BackdropComponent:c=c5,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:C,component:k,components:b={},componentsProps:m={},disableAutoFocus:y=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:E=!1,disablePortal:P=!1,disableRestoreFocus:x=!1,disableScrollLock:I=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:_,open:L,slotProps:F,slots:$}=u,T=K(u,i5),D=h({},u,{closeAfterTransition:v,disableAutoFocus:y,disableEnforceFocus:w,disableEscapeKeyDown:E,disablePortal:P,disableRestoreFocus:x,disableScrollLock:I,hideBackdrop:R,keepMounted:M}),{getRootProps:A,getBackdropProps:O,getTransitionProps:j,portalRef:N,isTopModal:B,exited:H,hasTransition:V}=l5(h({},D,{rootRef:n})),U=h({},D,{exited:H}),q=a5(U),re={};if(g.props.tabIndex===void 0&&(re.tabIndex="-1"),V){const{onEnter:Q,onExited:ae}=j();re.onEnter=Q,re.onExited=ae}const ie=(r=(o=$==null?void 0:$.root)!=null?o:b.Root)!=null?r:u5,pe=(l=(s=$==null?void 0:$.backdrop)!=null?s:b.Backdrop)!=null?l:c,me=(i=F==null?void 0:F.root)!=null?i:m.root,ve=(a=F==null?void 0:F.backdrop)!=null?a:m.backdrop,ue=An({elementType:ie,externalSlotProps:me,externalForwardedProps:T,getSlotProps:A,additionalProps:{ref:n,as:k},ownerState:U,className:Z(p,me==null?void 0:me.className,q==null?void 0:q.root,!U.open&&U.exited&&(q==null?void 0:q.hidden))}),ge=An({elementType:pe,externalSlotProps:ve,additionalProps:f,getSlotProps:Q=>O(h({},Q,{onClick:ae=>{_&&_(ae),Q!=null&&Q.onClick&&Q.onClick(ae)}})),className:Z(ve==null?void 0:ve.className,f==null?void 0:f.className,q==null?void 0:q.backdrop),ownerState:U});return!M&&!L&&(!V||H)?null:S.jsx(lS,{ref:N,container:C,disablePortal:P,children:S.jsxs(ie,h({},ue,{children:[!R&&c?S.jsx(pe,h({},ge)):null,S.jsx(gS,{disableEnforceFocus:w,disableAutoFocus:y,disableRestoreFocus:x,isEnabled:B,open:L,children:d.cloneElement(g,re)})]}))})});function d5(e){return _e("MuiDialog",e)}const Zf=$e("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yS=d.createContext({}),f5=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],p5=Y(dS,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),h5=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:l}=e,s={root:["root"],container:["container",`scroll${X(n)}`],paper:["paper",`paperScroll${X(n)}`,`paperWidth${X(String(r))}`,o&&"paperFullWidth",l&&"paperFullScreen"]};return de(s,d5,t)},m5=Y(vS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),g5=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${X(n.scroll)}`]]}})(({ownerState:e})=>h({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),v5=Y(kr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${X(n.scroll)}`],t[`paperWidth${X(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>h({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Zf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Zf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Zf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),y5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialog"}),o=Ur(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:a,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:C="sm",onBackdropClick:k,onClick:b,onClose:m,open:y,PaperComponent:w=kr,PaperProps:E={},scroll:P="paper",TransitionComponent:x=cS,transitionDuration:I=l,TransitionProps:R}=r,M=K(r,f5),_=h({},r,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:C,scroll:P}),L=h5(_),F=d.useRef(),$=O=>{F.current=O.target===O.currentTarget},T=O=>{b&&b(O),F.current&&(F.current=null,k&&k(O),m&&m(O,"backdropClick"))},D=ut(i),A=d.useMemo(()=>({titleId:D}),[D]);return S.jsx(m5,h({className:Z(L.root,f),closeAfterTransition:!0,components:{Backdrop:p5},componentsProps:{backdrop:h({transitionDuration:I,as:a},u)},disableEscapeKeyDown:p,onClose:m,open:y,ref:n,onClick:T,ownerState:_},M,{children:S.jsx(x,h({appear:!0,in:y,timeout:I,role:"presentation"},R,{children:S.jsx(g5,{className:Z(L.container),onMouseDown:$,ownerState:_,children:S.jsx(v5,h({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},E,{className:Z(L.paper,E.className),ownerState:_,children:S.jsx(yS.Provider,{value:A,children:c})}))})}))}))});function b5(e){return _e("MuiDialogActions",e)}$e("MuiDialogActions",["root","spacing"]);const C5=["className","disableSpacing"],x5=e=>{const{classes:t,disableSpacing:n}=e;return de({root:["root",!n&&"spacing"]},b5,t)},w5=Y("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>h({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),S5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=r,s=K(r,C5),i=h({},r,{disableSpacing:l}),a=x5(i);return S.jsx(w5,h({className:Z(a.root,o),ownerState:i,ref:n},s))});function P5(e){return _e("MuiDialogContent",e)}$e("MuiDialogContent",["root","dividers"]);function k5(e){return _e("MuiDialogTitle",e)}const I5=$e("MuiDialogTitle",["root"]),E5=["className","dividers"],M5=e=>{const{classes:t,dividers:n}=e;return de({root:["root",n&&"dividers"]},P5,t)},R5=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>h({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${I5.root} + &`]:{paddingTop:0}})),T5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=r,s=K(r,E5),i=h({},r,{dividers:l}),a=M5(i);return S.jsx(R5,h({className:Z(a.root,o),ownerState:i,ref:n},s))}),$5=["className","id"],O5=e=>{const{classes:t}=e;return de({root:["root"]},k5,t)},F5=Y(er,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),_5=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogTitle"}),{className:o,id:l}=r,s=K(r,$5),i=r,a=O5(i),{titleId:u=l}=d.useContext(yS);return S.jsx(F5,h({component:"h2",className:Z(a.root,o),ownerState:i,ref:n,variant:"h6",id:l??u},s))});function D5(e){return _e("MuiDivider",e)}const Ub=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),j5=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],L5=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:l,orientation:s,textAlign:i,variant:a}=e;return de({root:["root",t&&"absolute",a,l&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",i==="right"&&s!=="vertical"&&"textAlignRight",i==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},D5,r)},A5=Y("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>h({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>h({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>h({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),N5=Y("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>h({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),bS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:s,component:i=l?"div":"hr",flexItem:a=!1,light:u=!1,orientation:c="horizontal",role:f=i!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=r,g=K(r,j5),C=h({},r,{absolute:o,component:i,flexItem:a,light:u,orientation:c,role:f,textAlign:p,variant:v}),k=L5(C);return S.jsx(A5,h({as:i,className:Z(k.root,s),role:f,ref:n,ownerState:C},g,{children:l?S.jsx(N5,{className:k.wrapper,ownerState:C,children:l}):null}))});bS.muiSkipListHighlight=!0;const z5=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],H5=e=>{const{classes:t,disableUnderline:n}=e,o=de({root:["root",!n&&"underline"],input:["input"]},P_,t);return h({},t,o)},B5=Y(qd,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return h({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l}},[`&.${On.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${On.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${On.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${On.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${On.disabled}, .${On.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${On.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&h({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),V5=Y(Yd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Kd})(({theme:e,ownerState:t})=>h({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),kg=d.forwardRef(function(t,n){var r,o,l,s;const i=je({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:C="text"}=i,k=K(i,z5),b=h({},i,{fullWidth:c,inputComponent:f,multiline:p,type:C}),m=H5(i),y={root:{ownerState:b},input:{ownerState:b}},w=v??u?pn(y,v??u):y,E=(r=(o=g.root)!=null?o:a.Root)!=null?r:B5,P=(l=(s=g.input)!=null?s:a.Input)!=null?l:V5;return S.jsx(oi,h({slots:{root:E,input:P},componentsProps:w,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:C},k,{classes:m}))});kg.muiName="Input";function G5(e){return _e("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const U5=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],W5=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${X(n)}`,r&&"fullWidth"]};return de(o,G5,t)},K5=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,t[`margin${X(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>h({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),CS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormControl"}),{children:o,className:l,color:s="primary",component:i="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:C="medium",variant:k="outlined"}=r,b=K(r,U5),m=h({},r,{color:s,component:i,disabled:a,error:u,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:C,variant:k}),y=W5(m),[w,E]=d.useState(()=>{let F=!1;return o&&d.Children.forEach(o,$=>{if(!Gu($,["Input","Select"]))return;const T=Gu($,["Select"])?$.props.input:$;T&&v_(T.props)&&(F=!0)}),F}),[P,x]=d.useState(()=>{let F=!1;return o&&d.Children.forEach(o,$=>{Gu($,["Input","Select"])&&(Tc($.props,!0)||Tc($.props.inputProps,!0))&&(F=!0)}),F}),[I,R]=d.useState(!1);a&&I&&R(!1);const M=c!==void 0&&!a?c:I;let _;const L=d.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:s,disabled:a,error:u,filled:P,focused:M,fullWidth:f,hiddenLabel:p,size:C,onBlur:()=>{R(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{R(!0)},registerEffect:_,required:g,variant:k}),[w,s,a,u,P,M,f,p,_,g,C,k]);return S.jsx(Ud.Provider,{value:L,children:S.jsx(K5,h({as:i,ownerState:m,className:Z(y.root,l),ref:n},b,{children:o}))})}),q5=RT({createStyledComponent:Y("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})});function Y5(e){return _e("MuiFormControlLabel",e)}const Oi=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Q5=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],X5=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:l}=e,s={root:["root",n&&"disabled",`labelPlacement${X(r)}`,o&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return de(s,Y5,t)},Z5=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Oi.label}`]:t.label},t.root,t[`labelPlacement${X(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>h({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Oi.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Oi.label}`]:{[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),J5=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Oi.error}`]:{color:(e.vars||e).palette.error.main}})),ej=d.forwardRef(function(t,n){var r,o;const l=je({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:i={},control:a,disabled:u,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=l,C=K(l,Q5),k=Co(),b=(r=u??a.props.disabled)!=null?r:k==null?void 0:k.disabled,m=v??a.props.required,y={disabled:b,required:m};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof a.props[R]>"u"&&typeof l[R]<"u"&&(y[R]=l[R])});const w=Hl({props:l,muiFormControl:k,states:["error"]}),E=h({},l,{disabled:b,labelPlacement:p,required:m,error:w.error}),P=X5(E),x=(o=g.typography)!=null?o:i.typography;let I=f;return I!=null&&I.type!==er&&!c&&(I=S.jsx(er,h({component:"span"},x,{className:Z(P.label,x==null?void 0:x.className),children:I}))),S.jsxs(Z5,h({className:Z(P.root,s),ownerState:E,ref:n},C,{children:[d.cloneElement(a,y),m?S.jsxs(q5,{display:"block",children:[I,S.jsxs(J5,{ownerState:E,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):I]}))});function tj(e){return _e("MuiFormHelperText",e)}const Wb=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Kb;const nj=["children","className","component","disabled","error","filled","focused","margin","required","variant"],rj=e=>{const{classes:t,contained:n,size:r,disabled:o,error:l,filled:s,focused:i,required:a}=e,u={root:["root",o&&"disabled",l&&"error",r&&`size${X(r)}`,n&&"contained",i&&"focused",s&&"filled",a&&"required"]};return de(u,tj,t)},oj=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${X(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Wb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Wb.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),lj=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:s="p"}=r,i=K(r,nj),a=Co(),u=Hl({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),c=h({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=rj(c);return S.jsx(oj,h({as:s,ownerState:c,className:Z(f.root,l),ref:n},i,{children:o===" "?Kb||(Kb=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function sj(e){return _e("MuiFormLabel",e)}const qi=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ij=["children","className","color","component","disabled","error","filled","focused","required"],aj=e=>{const{classes:t,color:n,focused:r,disabled:o,error:l,filled:s,required:i}=e,a={root:["root",`color${X(n)}`,o&&"disabled",l&&"error",s&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",l&&"error"]};return de(a,sj,t)},uj=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${qi.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}})),cj=Y("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}})),dj=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormLabel"}),{children:o,className:l,component:s="label"}=r,i=K(r,ij),a=Co(),u=Hl({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=h({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=aj(c);return S.jsxs(uj,h({as:s,ownerState:c,className:Z(f.root,l),ref:n},i,{children:[o,u.required&&S.jsxs(cj,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),fj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vh(e){return`scale(${e}, ${e**2})`}const pj={entering:{opacity:1,transform:vh(1)},entered:{opacity:1,transform:"none"}},Jf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ia=d.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:l,easing:s,in:i,onEnter:a,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:C="auto",TransitionComponent:k=Wr}=t,b=K(t,fj),m=vs(),y=d.useRef(),w=Ur(),E=d.useRef(null),P=ft(E,Nl(l),n),x=T=>D=>{if(T){const A=E.current;D===void 0?T(A):T(A,D)}},I=x(c),R=x((T,D)=>{U1(T);const{duration:A,delay:O,easing:j}=Mc({style:g,timeout:C,easing:s},{mode:"enter"});let N;C==="auto"?(N=w.transitions.getAutoHeightDuration(T.clientHeight),y.current=N):N=A,T.style.transition=[w.transitions.create("opacity",{duration:N,delay:O}),w.transitions.create("transform",{duration:Jf?N:N*.666,delay:O,easing:j})].join(","),a&&a(T,D)}),M=x(u),_=x(v),L=x(T=>{const{duration:D,delay:A,easing:O}=Mc({style:g,timeout:C,easing:s},{mode:"exit"});let j;C==="auto"?(j=w.transitions.getAutoHeightDuration(T.clientHeight),y.current=j):j=D,T.style.transition=[w.transitions.create("opacity",{duration:j,delay:A}),w.transitions.create("transform",{duration:Jf?j:j*.666,delay:Jf?A:A||j*.333,easing:O})].join(","),T.style.opacity=0,T.style.transform=vh(.75),f&&f(T)}),F=x(p),$=T=>{C==="auto"&&m.start(y.current||0,T),r&&r(E.current,T)};return S.jsx(k,h({appear:o,in:i,nodeRef:E,onEnter:R,onEntered:M,onEntering:I,onExit:L,onExited:F,onExiting:_,addEndListener:$,timeout:C==="auto"?null:C},b,{children:(T,D)=>d.cloneElement(l,h({style:h({opacity:0,transform:vh(.75),visibility:T==="exited"&&!i?"hidden":void 0},pj[T],g,l.props.style),ref:P},D))}))});Ia.muiSupportAuto=!0;const hj=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],mj=e=>{const{classes:t,disableUnderline:n}=e,o=de({root:["root",!n&&"underline"],input:["input"]},w_,t);return h({},t,o)},gj=Y(qd,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),h({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jo.disabled}, .${jo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${jo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),vj=Y(Yd,{name:"MuiInput",slot:"Input",overridesResolver:Kd})({}),Ig=d.forwardRef(function(t,n){var r,o,l,s;const i=je({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:C={},type:k="text"}=i,b=K(i,hj),m=mj(i),w={root:{ownerState:{disableUnderline:a}}},E=g??c?pn(g??c,w):w,P=(r=(o=C.root)!=null?o:u.Root)!=null?r:gj,x=(l=(s=C.input)!=null?s:u.Input)!=null?l:vj;return S.jsx(oi,h({slots:{root:P,input:x},slotProps:E,fullWidth:f,inputComponent:p,multiline:v,ref:n,type:k},b,{classes:m}))});Ig.muiName="Input";function yj(e){return _e("MuiInputAdornment",e)}const qb=$e("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Yb;const bj=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Cj=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${X(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},xj=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:l,variant:s}=e,i={root:["root",n&&"disablePointerEvents",o&&`position${X(o)}`,s,r&&"hiddenLabel",l&&`size${X(l)}`]};return de(i,yj,t)},wj=Y("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Cj})(({theme:e,ownerState:t})=>h({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${qb.positionStart}&:not(.${qb.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Sj=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiInputAdornment"}),{children:o,className:l,component:s="div",disablePointerEvents:i=!1,disableTypography:a=!1,position:u,variant:c}=r,f=K(r,bj),p=Co()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=h({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:i,position:u,variant:v}),C=xj(g);return S.jsx(Ud.Provider,{value:null,children:S.jsx(wj,h({as:s,ownerState:g,className:Z(C.root,l),ref:n},f,{children:typeof o=="string"&&!a?S.jsx(er,{color:"text.secondary",children:o}):S.jsxs(d.Fragment,{children:[u==="start"?Yb||(Yb=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function Pj(e){return _e("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kj=["disableAnimation","margin","shrink","variant","className"],Ij=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:l,variant:s,required:i}=e,a={root:["root",n&&"formControl",!l&&"animated",o&&"shrink",r&&r!=="normal"&&`size${X(r)}`,s],asterisk:[i&&"asterisk"]},u=de(a,Pj,t);return h({},t,u)},Ej=Y(dj,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qi.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>h({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&h({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&h({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&h({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),xS=d.forwardRef(function(t,n){const r=je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:l,className:s}=r,i=K(r,kj),a=Co();let u=l;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=Hl({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),f=h({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Ij(f);return S.jsx(Ej,h({"data-shrink":u,ownerState:f,ref:n,className:Z(p.root,s)},i,{classes:p}))}),Ea=d.createContext({});function Mj(e){return _e("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Rj=["children","className","component","dense","disablePadding","subheader"],Tj=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return de({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Mj,t)},$j=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>h({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Oj=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiList"}),{children:o,className:l,component:s="ul",dense:i=!1,disablePadding:a=!1,subheader:u}=r,c=K(r,Rj),f=d.useMemo(()=>({dense:i}),[i]),p=h({},r,{component:s,dense:i,disablePadding:a}),v=Tj(p);return S.jsx(Ea.Provider,{value:f,children:S.jsxs($j,h({as:s,className:Z(v.root,l),ref:n,ownerState:p},c,{children:[u,o]}))})});function Fj(e){return _e("MuiListItemIcon",e)}const Qb=$e("MuiListItemIcon",["root","alignItemsFlexStart"]),_j=["className"],Dj=e=>{const{alignItems:t,classes:n}=e;return de({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Fj,n)},jj=Y("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>h({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Ms=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemIcon"}),{className:o}=r,l=K(r,_j),s=d.useContext(Ea),i=h({},r,{alignItems:s.alignItems}),a=Dj(i);return S.jsx(jj,h({className:Z(a.root,o),ownerState:i,ref:n},l))});function Lj(e){return _e("MuiListItemText",e)}const $c=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Aj=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Nj=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:l}=e;return de({root:["root",n&&"inset",l&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Lj,t)},zj=Y("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$c.primary}`]:t.primary},{[`& .${$c.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>h({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Rs=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemText"}),{children:o,className:l,disableTypography:s=!1,inset:i=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,p=K(r,Aj),{dense:v}=d.useContext(Ea);let g=a??o,C=c;const k=h({},r,{disableTypography:s,inset:i,primary:!!g,secondary:!!C,dense:v}),b=Nj(k);return g!=null&&g.type!==er&&!s&&(g=S.jsx(er,h({variant:v?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),C!=null&&C.type!==er&&!s&&(C=S.jsx(er,h({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},f,{children:C}))),S.jsxs(zj,h({className:Z(b.root,l),ownerState:k,ref:n},p,{children:[g,C]}))}),Hj=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ep(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Xb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ci(e,t,n,r,o,l){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const a=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!wS(i,l)||a)i=o(e,i,n);else return i.focus(),!0}return!1}const Eg=d.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:l=!1,children:s,className:i,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=K(t,Hj),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{o&&v.current.focus()},[o]),d.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,{direction:w})=>{const E=!v.current.style.width;if(y.clientHeight<v.current.clientHeight&&E){const P=`${I1(kt(y))}px`;v.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=P,v.current.style.width=`calc(100% + ${P})`}return v.current}}),[]);const C=y=>{const w=v.current,E=y.key,P=kt(w).activeElement;if(E==="ArrowDown")y.preventDefault(),Ci(w,P,u,a,ep);else if(E==="ArrowUp")y.preventDefault(),Ci(w,P,u,a,Xb);else if(E==="Home")y.preventDefault(),Ci(w,null,u,a,ep);else if(E==="End")y.preventDefault(),Ci(w,null,u,a,Xb);else if(E.length===1){const x=g.current,I=E.toLowerCase(),R=performance.now();x.keys.length>0&&(R-x.lastTime>500?(x.keys=[],x.repeating=!0,x.previousKeyMatched=!0):x.repeating&&I!==x.keys[0]&&(x.repeating=!1)),x.lastTime=R,x.keys.push(I);const M=P&&!x.repeating&&wS(P,x);x.previousKeyMatched&&(M||Ci(w,P,!1,a,ep,x))?y.preventDefault():x.previousKeyMatched=!1}c&&c(y)},k=ft(v,n);let b=-1;d.Children.forEach(s,(y,w)=>{if(!d.isValidElement(y)){b===w&&(b+=1,b>=s.length&&(b=-1));return}y.props.disabled||(f==="selectedMenu"&&y.props.selected||b===-1)&&(b=w),b===w&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(b+=1,b>=s.length&&(b=-1))});const m=d.Children.map(s,(y,w)=>{if(w===b){const E={};return l&&(E.autoFocus=!0),y.props.tabIndex===void 0&&f==="selectedMenu"&&(E.tabIndex=0),d.cloneElement(y,E)}return y});return S.jsx(Oj,h({role:"menu",ref:k,className:i,onKeyDown:C,tabIndex:o?0:-1},p,{children:m}))});function Bj(e){return _e("MuiPopover",e)}$e("MuiPopover",["root","paper"]);const Vj=["onEntering"],Gj=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Uj=["slotProps"];function Zb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Jb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function e0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function tp(e){return typeof e=="function"?e():e}const Wj=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"]},Bj,t)},Kj=Y(vS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SS=Y(kr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),qj=d.forwardRef(function(t,n){var r,o,l;const s=je({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:C=8,marginThreshold:k=16,open:b,PaperProps:m={},slots:y,slotProps:w,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:P=Ia,transitionDuration:x="auto",TransitionProps:{onEntering:I}={},disableScrollLock:R=!1}=s,M=K(s.TransitionProps,Vj),_=K(s,Gj),L=(r=w==null?void 0:w.paper)!=null?r:m,F=d.useRef(),$=ft(F,L.ref),T=h({},s,{anchorOrigin:u,anchorReference:f,elevation:C,marginThreshold:k,externalPaperSlotProps:L,transformOrigin:E,TransitionComponent:P,transitionDuration:x,TransitionProps:M}),D=Wj(T),A=d.useCallback(()=>{if(f==="anchorPosition")return c;const Q=tp(a),ne=(Q&&Q.nodeType===1?Q:kt(F.current).body).getBoundingClientRect();return{top:ne.top+Zb(ne,u.vertical),left:ne.left+Jb(ne,u.horizontal)}},[a,u.horizontal,u.vertical,c,f]),O=d.useCallback(Q=>({vertical:Zb(Q,E.vertical),horizontal:Jb(Q,E.horizontal)}),[E.horizontal,E.vertical]),j=d.useCallback(Q=>{const ae={width:Q.offsetWidth,height:Q.offsetHeight},ne=O(ae);if(f==="none")return{top:null,left:null,transformOrigin:e0(ne)};const ee=A();let he=ee.top-ne.vertical,se=ee.left-ne.horizontal;const Re=he+ae.height,Pe=se+ae.width,Oe=Pr(tp(a)),xe=Oe.innerHeight-k,te=Oe.innerWidth-k;if(k!==null&&he<k){const oe=he-k;he-=oe,ne.vertical+=oe}else if(k!==null&&Re>xe){const oe=Re-xe;he-=oe,ne.vertical+=oe}if(k!==null&&se<k){const oe=se-k;se-=oe,ne.horizontal+=oe}else if(Pe>te){const oe=Pe-te;se-=oe,ne.horizontal+=oe}return{top:`${Math.round(he)}px`,left:`${Math.round(se)}px`,transformOrigin:e0(ne)}},[a,f,A,O,k]),[N,B]=d.useState(b),H=d.useCallback(()=>{const Q=F.current;if(!Q)return;const ae=j(Q);ae.top!==null&&(Q.style.top=ae.top),ae.left!==null&&(Q.style.left=ae.left),Q.style.transformOrigin=ae.transformOrigin,B(!0)},[j]);d.useEffect(()=>(R&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,R,H]);const V=(Q,ae)=>{I&&I(Q,ae),H()},U=()=>{B(!1)};d.useEffect(()=>{b&&H()}),d.useImperativeHandle(i,()=>b?{updatePosition:()=>{H()}}:null,[b,H]),d.useEffect(()=>{if(!b)return;const Q=Al(()=>{H()}),ae=Pr(a);return ae.addEventListener("resize",Q),()=>{Q.clear(),ae.removeEventListener("resize",Q)}},[a,b,H]);let q=x;x==="auto"&&!P.muiSupportAuto&&(q=void 0);const re=g||(a?kt(tp(a)).body:void 0),ie=(o=y==null?void 0:y.root)!=null?o:Kj,pe=(l=y==null?void 0:y.paper)!=null?l:SS,me=An({elementType:pe,externalSlotProps:h({},L,{style:N?L.style:h({},L.style,{opacity:0})}),additionalProps:{elevation:C,ref:$},ownerState:T,className:Z(D.paper,L==null?void 0:L.className)}),ve=An({elementType:ie,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:_,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:b},ownerState:T,className:Z(D.root,v)}),{slotProps:ue}=ve,ge=K(ve,Uj);return S.jsx(ie,h({},ge,!xa(ie)&&{slotProps:ue,disableScrollLock:R},{children:S.jsx(P,h({appear:!0,in:b,onEntering:V,onExited:U,timeout:q},M,{children:S.jsx(pe,h({},me,{children:p}))}))}))});function Yj(e){return _e("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Qj=["onEntering"],Xj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Zj={vertical:"top",horizontal:"right"},Jj={vertical:"top",horizontal:"left"},eL=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"],list:["list"]},Yj,t)},tL=Y(qj,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nL=Y(SS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rL=Y(Eg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),oL=d.forwardRef(function(t,n){var r,o;const l=je({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:a,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:C="auto",TransitionProps:{onEntering:k}={},variant:b="selectedMenu",slots:m={},slotProps:y={}}=l,w=K(l.TransitionProps,Qj),E=K(l,Xj),P=Ga(),x=h({},l,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:k,PaperProps:v,transitionDuration:C,TransitionProps:w,variant:b}),I=eL(x),R=s&&!u&&p,M=d.useRef(null),_=(O,j)=>{M.current&&M.current.adjustStyleForScrollbar(O,{direction:P?"rtl":"ltr"}),k&&k(O,j)},L=O=>{O.key==="Tab"&&(O.preventDefault(),f&&f(O,"tabKeyDown"))};let F=-1;d.Children.map(i,(O,j)=>{d.isValidElement(O)&&(O.props.disabled||(b==="selectedMenu"&&O.props.selected||F===-1)&&(F=j))});const $=(r=m.paper)!=null?r:nL,T=(o=y.paper)!=null?o:v,D=An({elementType:m.root,externalSlotProps:y.root,ownerState:x,className:[I.root,a]}),A=An({elementType:$,externalSlotProps:T,ownerState:x,className:I.paper});return S.jsx(tL,h({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?Zj:Jj,slots:{paper:$,root:m.root},slotProps:{root:D,paper:A},open:p,ref:n,transitionDuration:C,TransitionProps:h({onEntering:_},w),ownerState:x},E,{classes:g,children:S.jsx(rL,h({onKeyDown:L,actions:M,autoFocus:s&&(F===-1||u),autoFocusItem:R,variant:b},c,{className:Z(I.list,c.className),children:i}))}))});function lL(e){return _e("MuiMenuItem",e)}const xi=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],iL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},aL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:l,classes:s}=e,a=de({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",l&&"selected"]},lL,s);return h({},s,a)},uL=Y(Jo,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:iL})(({theme:e,ownerState:t})=>h({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ub.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ub.inset}`]:{marginLeft:52},[`& .${$c.root}`]:{marginTop:0,marginBottom:0},[`& .${$c.inset}`]:{paddingLeft:36},[`& .${Qb.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&h({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Qb.root} svg`]:{fontSize:"1.25rem"}}))),zr=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:s=!1,divider:i=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,v=K(r,sL),g=d.useContext(Ea),C=d.useMemo(()=>({dense:s||g.dense||!1,disableGutters:a}),[g.dense,s,a]),k=d.useRef(null);st(()=>{o&&k.current&&k.current.focus()},[o]);const b=h({},r,{dense:C.dense,divider:i,disableGutters:a}),m=aL(r),y=ft(k,n);let w;return r.disabled||(w=f!==void 0?f:-1),S.jsx(Ea.Provider,{value:C,children:S.jsx(uL,h({ref:y,role:c,tabIndex:w,component:l,focusVisibleClassName:Z(m.focusVisible,u),className:Z(m.root,p)},v,{ownerState:b,classes:m}))})});function cL(e){return _e("MuiNativeSelect",e)}const Mg=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dL=["className","disabled","error","IconComponent","inputRef","variant"],fL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${X(n)}`,l&&"iconOpen",r&&"disabled"]};return de(i,cL,t)},PS=({ownerState:e,theme:t})=>h({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":h({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),pL=Y("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:In,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mg.multiple}`]:t.multiple}]}})(PS),kS=({ownerState:e,theme:t})=>h({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),hL=Y("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${X(n.variant)}`],n.open&&t.iconOpen]}})(kS),mL=d.forwardRef(function(t,n){const{className:r,disabled:o,error:l,IconComponent:s,inputRef:i,variant:a="standard"}=t,u=K(t,dL),c=h({},t,{disabled:o,variant:a,error:l}),f=fL(c);return S.jsxs(d.Fragment,{children:[S.jsx(pL,h({ownerState:c,className:Z(f.select,r),disabled:o,ref:i||n},u)),t.multiple?null:S.jsx(hL,{as:s,ownerState:c,className:f.icon})]})});var t0;const gL=["children","classes","className","label","notched"],vL=Y("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:In})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yL=Y("legend",{name:"MuiNotchedOutlined",shouldForwardProp:In})(({ownerState:e,theme:t})=>h({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&h({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function bL(e){const{className:t,label:n,notched:r}=e,o=K(e,gL),l=n!=null&&n!=="",s=h({},e,{notched:r,withLabel:l});return S.jsx(vL,h({"aria-hidden":!0,className:t,ownerState:s},o,{children:S.jsx(yL,{ownerState:s,children:l?S.jsx("span",{children:n}):t0||(t0=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const CL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xL=e=>{const{classes:t}=e,r=de({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},S_,t);return h({},t,r)},wL=Y(qd,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return h({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$r.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$r.focused} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$r.error} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$r.disabled} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&h({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),SL=Y(bL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),PL=Y(Yd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Kd})(({theme:e,ownerState:t})=>h({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Rg=d.forwardRef(function(t,n){var r,o,l,s,i;const a=je({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:C={},type:k="text"}=a,b=K(a,CL),m=xL(a),y=Co(),w=Hl({props:a,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=h({},a,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:v,size:w.size,type:k}),P=(r=(o=C.root)!=null?o:u.Root)!=null?r:wL,x=(l=(s=C.input)!=null?s:u.Input)!=null?l:PL;return S.jsx(oi,h({slots:{root:P,input:x},renderSuffix:I=>S.jsx(SL,{ownerState:E,className:m.notchedOutline,label:p!=null&&p!==""&&w.required?i||(i=S.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:n,type:k},b,{classes:h({},m,{notchedOutline:null})}))});Rg.muiName="Input";const kL=Ke(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),IL=Ke(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function EL(e){return _e("MuiSelect",e)}const wi=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var n0;const ML=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],RL=Y("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})(PS,{[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),TL=Y("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${X(n.variant)}`],n.open&&t.iconOpen]}})(kS),$L=Y("input",{shouldForwardProp:e=>V1(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function r0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function OL(e){return e==null||typeof e=="string"&&!e.trim()}const FL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${X(n)}`,l&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return de(i,EL,t)},_L=d.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":l,autoFocus:s,autoWidth:i,children:a,className:u,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:C,inputRef:k,labelId:b,MenuProps:m={},multiple:y,name:w,onBlur:E,onChange:P,onClose:x,onFocus:I,onOpen:R,open:M,readOnly:_,renderValue:L,SelectDisplayProps:F={},tabIndex:$,value:T,variant:D="standard"}=t,A=K(t,ML),[O,j]=Qo({controlled:T,default:f,name:"Select"}),[N,B]=Qo({controlled:M,default:c,name:"Select"}),H=d.useRef(null),V=d.useRef(null),[U,q]=d.useState(null),{current:re}=d.useRef(M!=null),[ie,pe]=d.useState(),me=ft(n,k),ve=d.useCallback(be=>{V.current=be,be&&q(be)},[]),ue=U==null?void 0:U.parentNode;d.useImperativeHandle(me,()=>({focus:()=>{V.current.focus()},node:H.current,value:O}),[O]),d.useEffect(()=>{c&&N&&U&&!re&&(pe(i?null:ue.clientWidth),V.current.focus())},[U,i]),d.useEffect(()=>{s&&V.current.focus()},[s]),d.useEffect(()=>{if(!b)return;const be=kt(V.current).getElementById(b);if(be){const Le=()=>{getSelection().isCollapsed&&V.current.focus()};return be.addEventListener("click",Le),()=>{be.removeEventListener("click",Le)}}},[b]);const ge=(be,Le)=>{be?R&&R(Le):x&&x(Le),re||(pe(i?null:ue.clientWidth),B(be))},Q=be=>{be.button===0&&(be.preventDefault(),V.current.focus(),ge(!0,be))},ae=be=>{ge(!1,be)},ne=d.Children.toArray(a),ee=be=>{const Le=ne.find(le=>le.props.value===be.target.value);Le!==void 0&&(j(Le.props.value),P&&P(be,Le))},he=be=>Le=>{let le;if(Le.currentTarget.hasAttribute("tabindex")){if(y){le=Array.isArray(O)?O.slice():[];const Se=O.indexOf(be.props.value);Se===-1?le.push(be.props.value):le.splice(Se,1)}else le=be.props.value;if(be.props.onClick&&be.props.onClick(Le),O!==le&&(j(le),P)){const Se=Le.nativeEvent||Le,Ne=new Se.constructor(Se.type,Se);Object.defineProperty(Ne,"target",{writable:!0,value:{value:le,name:w}}),P(Ne,be)}y||ge(!1,Le)}},se=be=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(be.key)!==-1&&(be.preventDefault(),ge(!0,be))},Re=U!==null&&N,Pe=be=>{!Re&&E&&(Object.defineProperty(be,"target",{writable:!0,value:{value:O,name:w}}),E(be))};delete A["aria-invalid"];let Oe,xe;const te=[];let oe=!1;(Tc({value:O})||v)&&(L?Oe=L(O):oe=!0);const ye=ne.map(be=>{if(!d.isValidElement(be))return null;let Le;if(y){if(!Array.isArray(O))throw new Error(mo(2));Le=O.some(le=>r0(le,be.props.value)),Le&&oe&&te.push(be.props.children)}else Le=r0(O,be.props.value),Le&&oe&&(xe=be.props.children);return d.cloneElement(be,{"aria-selected":Le?"true":"false",onClick:he(be),onKeyUp:le=>{le.key===" "&&le.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(le)},role:"option",selected:Le,value:void 0,"data-value":be.props.value})});oe&&(y?te.length===0?Oe=null:Oe=te.reduce((be,Le,le)=>(be.push(Le),le<te.length-1&&be.push(", "),be),[]):Oe=xe);let Me=ie;!i&&re&&U&&(Me=ue.clientWidth);let Ae;typeof $<"u"?Ae=$:Ae=p?null:0;const Te=F.id||(w?`mui-component-select-${w}`:void 0),ce=h({},t,{variant:D,value:O,open:Re,error:g}),Be=FL(ce),yt=h({},m.PaperProps,(r=m.slotProps)==null?void 0:r.paper),Ye=ut();return S.jsxs(d.Fragment,{children:[S.jsx(RL,h({ref:ve,tabIndex:Ae,role:"combobox","aria-controls":Ye,"aria-disabled":p?"true":void 0,"aria-expanded":Re?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[b,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:se,onMouseDown:p||_?null:Q,onBlur:Pe,onFocus:I},F,{ownerState:ce,className:Z(F.className,Be.select,u),id:Te,children:OL(Oe)?n0||(n0=S.jsx("span",{className:"notranslate",children:"​"})):Oe})),S.jsx($L,h({"aria-invalid":g,value:Array.isArray(O)?O.join(","):O,name:w,ref:H,"aria-hidden":!0,onChange:ee,tabIndex:-1,disabled:p,className:Be.nativeInput,autoFocus:s,ownerState:ce},A)),S.jsx(TL,{as:C,className:Be.icon,ownerState:ce}),S.jsx(oL,h({id:`menu-${w||""}`,anchorEl:ue,open:Re,onClose:ae,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},m,{MenuListProps:h({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:Ye},m.MenuListProps),slotProps:h({},m.slotProps,{paper:h({},yt,{style:h({minWidth:Me},yt!=null?yt.style:null)})}),children:ye}))]})}),DL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],jL=["root"],LL=e=>{const{classes:t}=e;return t},Tg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>In(e)&&e!=="variant",slot:"Root"},AL=Y(Ig,Tg)(""),NL=Y(Rg,Tg)(""),zL=Y(kg,Tg)(""),Xd=d.forwardRef(function(t,n){const r=je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:s={},className:i,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=aS,id:f,input:p,inputProps:v,label:g,labelId:C,MenuProps:k,multiple:b=!1,native:m=!1,onClose:y,onOpen:w,open:E,renderValue:P,SelectDisplayProps:x,variant:I="outlined"}=r,R=K(r,DL),M=m?mL:_L,_=Co(),L=Hl({props:r,muiFormControl:_,states:["variant","error"]}),F=L.variant||I,$=h({},r,{variant:F,classes:s}),T=LL($),D=K(T,jL),A=p||{standard:S.jsx(AL,{ownerState:$}),outlined:S.jsx(NL,{label:g,ownerState:$}),filled:S.jsx(zL,{ownerState:$})}[F],O=ft(n,Nl(A));return S.jsx(d.Fragment,{children:d.cloneElement(A,h({inputComponent:M,inputProps:h({children:l,error:L.error,IconComponent:c,variant:F,type:void 0,multiple:b},m?{id:f}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:C,MenuProps:k,onClose:y,onOpen:w,open:E,renderValue:P,SelectDisplayProps:h({id:f},x)},v,{classes:v?pn(D,v.classes):D},p?p.props.inputProps:{})},(b&&m||u)&&F==="outlined"?{notched:!0}:{},{ref:O,className:Z(A.props.className,i,T.root)},!p&&{variant:F},R))})});Xd.muiName="Select";function HL(e){return _e("MuiSkeleton",e)}$e("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const BL=["animation","className","component","height","style","variant","width"];let Oc=e=>e,o0,l0,s0,i0;const VL=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:l,height:s}=e;return de({root:["root",n,r,o&&"withChildren",o&&!l&&"fitContent",o&&!s&&"heightAuto"]},HL,t)},GL=rl(o0||(o0=Oc`
157
157
  0% {
158
158
  opacity: 1;
159
159
  }
@@ -204,7 +204,7 @@ Error generating stack: `+l.message+`
204
204
  top: 0;
205
205
  }
206
206
  `),UL,(t.vars||t).palette.action.hover)),KL=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:l,component:s="span",height:i,style:a,variant:u="text",width:c}=r,f=K(r,BL),p=h({},r,{animation:o,component:s,variant:u,hasChildren:!!f.children}),v=VL(p);return S.jsx(WL,h({as:s,ref:n,className:Z(v.root,l),ownerState:p},f,{style:h({width:c,height:i},a)}))});function qL(e){return _e("MuiTooltip",e)}const zo=$e("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),YL=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function QL(e){return Math.round(e*1e5)/1e5}const XL=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:l}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${X(l.split("-")[0])}`],arrow:["arrow"]};return de(s,qL,t)},ZL=Y(zl,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>h({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${zo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${zo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${zo.arrow}`]:h({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${zo.arrow}`]:h({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),JL=Y("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${X(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>h({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${QL(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${zo.popper}[data-popper-placement*="left"] &`]:h({transformOrigin:"right center"},t.isRtl?h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):h({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${zo.popper}[data-popper-placement*="right"] &`]:h({transformOrigin:"left center"},t.isRtl?h({marginRight:"14px"},t.touch&&{marginRight:"24px"}):h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${zo.popper}[data-popper-placement*="top"] &`]:h({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${zo.popper}[data-popper-placement*="bottom"] &`]:h({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),eA=Y("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ku=!1;const a0=new sg;let Si={x:0,y:0};function Iu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const tA=d.forwardRef(function(t,n){var r,o,l,s,i,a,u,c,f,p,v,g,C,k,b,m,y,w,E;const P=je({props:t,name:"MuiTooltip"}),{arrow:x=!1,children:I,components:R={},componentsProps:M={},describeChild:_=!1,disableFocusListener:L=!1,disableHoverListener:F=!1,disableInteractive:$=!1,disableTouchListener:T=!1,enterDelay:D=100,enterNextDelay:A=0,enterTouchDelay:O=700,followCursor:j=!1,id:N,leaveDelay:B=0,leaveTouchDelay:H=1500,onClose:V,onOpen:U,open:q,placement:re="bottom",PopperComponent:ie,PopperProps:pe={},slotProps:me={},slots:ve={},title:ue,TransitionComponent:ge=Ia,TransitionProps:Q}=P,ae=K(P,YL),ne=d.isValidElement(I)?I:S.jsx("span",{children:I}),ee=Ur(),he=Ga(),[se,Re]=d.useState(),[Pe,Oe]=d.useState(null),xe=d.useRef(!1),te=$||j,oe=vs(),ye=vs(),Me=vs(),Ae=vs(),[Te,ce]=Qo({controlled:q,default:!1,name:"Tooltip",state:"open"});let Be=Te;const yt=ut(N),Ye=d.useRef(),be=ct(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),Ae.clear()});d.useEffect(()=>be,[be]);const Le=Fe=>{a0.clear(),ku=!0,ce(!0),U&&!Be&&U(Fe)},le=ct(Fe=>{a0.start(800+B,()=>{ku=!1}),ce(!1),V&&Be&&V(Fe),oe.start(ee.transitions.duration.shortest,()=>{xe.current=!1})}),Se=Fe=>{xe.current&&Fe.type!=="touchstart"||(se&&se.removeAttribute("title"),ye.clear(),Me.clear(),D||ku&&A?ye.start(ku?A:D,()=>{Le(Fe)}):Le(Fe))},Ne=Fe=>{ye.clear(),Me.start(B,()=>{le(Fe)})},{isFocusVisibleRef:He,onBlur:qe,onFocus:it,ref:Ve}=ig(),[,Je]=d.useState(!1),Rt=Fe=>{qe(Fe),He.current===!1&&(Je(!1),Ne(Fe))},En=Fe=>{se||Re(Fe.currentTarget),it(Fe),He.current===!0&&(Je(!0),Se(Fe))},qr=Fe=>{xe.current=!0;const et=ne.props;et.onTouchStart&&et.onTouchStart(Fe)},xo=Fe=>{qr(Fe),Me.clear(),oe.clear(),be(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ae.start(O,()=>{document.body.style.WebkitUserSelect=Ye.current,Se(Fe)})},Yr=Fe=>{ne.props.onTouchEnd&&ne.props.onTouchEnd(Fe),be(),Me.start(H,()=>{le(Fe)})};d.useEffect(()=>{if(!Be)return;function Fe(et){(et.key==="Escape"||et.key==="Esc")&&le(et)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[le,Be]);const ul=ft(Nl(ne),Ve,Re,n);!ue&&ue!==0&&(Be=!1);const Mn=d.useRef(),Lt=Fe=>{const et=ne.props;et.onMouseMove&&et.onMouseMove(Fe),Si={x:Fe.clientX,y:Fe.clientY},Mn.current&&Mn.current.update()},ht={},Vt=typeof ue=="string";_?(ht.title=!Be&&Vt&&!F?ue:null,ht["aria-describedby"]=Be?yt:null):(ht["aria-label"]=Vt?ue:null,ht["aria-labelledby"]=Be&&!Vt?yt:null);const tn=h({},ht,ae,ne.props,{className:Z(ae.className,ne.props.className),onTouchStart:qr,ref:ul},j?{onMouseMove:Lt}:{}),cr={};T||(tn.onTouchStart=xo,tn.onTouchEnd=Yr),F||(tn.onMouseOver=Iu(Se,tn.onMouseOver),tn.onMouseLeave=Iu(Ne,tn.onMouseLeave),te||(cr.onMouseOver=Se,cr.onMouseLeave=Ne)),L||(tn.onFocus=Iu(En,tn.onFocus),tn.onBlur=Iu(Rt,tn.onBlur),te||(cr.onFocus=En,cr.onBlur=Rt));const Qr=d.useMemo(()=>{var Fe;let et=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(Fe=pe.popperOptions)!=null&&Fe.modifiers&&(et=et.concat(pe.popperOptions.modifiers)),h({},pe.popperOptions,{modifiers:et})},[Pe,pe]),Vn=h({},P,{isRtl:he,arrow:x,disableInteractive:te,placement:re,PopperComponentProp:ie,touch:xe.current}),wo=XL(Vn),So=(r=(o=ve.popper)!=null?o:R.Popper)!=null?r:ZL,Er=(l=(s=(i=ve.transition)!=null?i:R.Transition)!=null?s:ge)!=null?l:Ia,Xr=(a=(u=ve.tooltip)!=null?u:R.Tooltip)!=null?a:JL,J=(c=(f=ve.arrow)!=null?f:R.Arrow)!=null?c:eA,W=Ti(So,h({},pe,(p=me.popper)!=null?p:M.popper,{className:Z(wo.popper,pe==null?void 0:pe.className,(v=(g=me.popper)!=null?g:M.popper)==null?void 0:v.className)}),Vn),Ce=Ti(Er,h({},Q,(C=me.transition)!=null?C:M.transition),Vn),De=Ti(Xr,h({},(k=me.tooltip)!=null?k:M.tooltip,{className:Z(wo.tooltip,(b=(m=me.tooltip)!=null?m:M.tooltip)==null?void 0:b.className)}),Vn),Ue=Ti(J,h({},(y=me.arrow)!=null?y:M.arrow,{className:Z(wo.arrow,(w=(E=me.arrow)!=null?E:M.arrow)==null?void 0:w.className)}),Vn);return S.jsxs(d.Fragment,{children:[d.cloneElement(ne,tn),S.jsx(So,h({as:ie??zl,placement:re,anchorEl:j?{getBoundingClientRect:()=>({top:Si.y,left:Si.x,right:Si.x,bottom:Si.y,width:0,height:0})}:se,popperRef:Mn,open:se?Be:!1,id:yt,transition:!0},cr,W,{popperOptions:Qr,children:({TransitionProps:Fe})=>S.jsx(Er,h({timeout:ee.transitions.duration.shorter},Fe,Ce,{children:S.jsxs(Xr,h({},De,{children:[ue,x?S.jsx(J,h({},Ue,{ref:Oe})):null]}))}))}))]})});function nA(e){return _e("MuiSwitch",e)}const ln=$e("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),rA=["className","color","edge","size","sx"],oA=e=>{const{classes:t,edge:n,size:r,color:o,checked:l,disabled:s}=e,i={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(o)}`,l&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=de(i,nA,t);return h({},t,a)},lA=Y("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ln.thumb}`]:{width:16,height:16},[`& .${ln.switchBase}`]:{padding:4,[`&.${ln.checked}`]:{transform:"translateX(16px)"}}}}]}),sA=Y(hS,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ln.input}`]:t.input},n.color!=="default"&&t[`color${X(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${ln.checked}`]:{transform:"translateX(20px)"},[`&.${ln.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ln.checked} + .${ln.track}`]:{opacity:.5},[`&.${ln.disabled} + .${ln.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ln.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ln.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ln.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?cg(e.palette[t].main,.62):ug(e.palette[t].main,.55)}`}},[`&.${ln.checked} + .${ln.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),iA=Y("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),aA=Y("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),uA=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:i="medium",sx:a}=r,u=K(r,rA),c=h({},r,{color:l,edge:s,size:i}),f=oA(c),p=S.jsx(aA,{className:f.thumb,ownerState:c});return S.jsxs(lA,{className:Z(f.root,o),sx:a,ownerState:c,children:[S.jsx(sA,h({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:h({},f,{root:f.switchBase})})),S.jsx(iA,{className:f.track,ownerState:c})]})});function cA(e){return _e("MuiTab",e)}const Eo=$e("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),dA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:l,label:s,selected:i,disabled:a}=e,u={root:["root",l&&s&&"labelIcon",`textColor${X(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return de(u,cA,t)},pA=Y(Jo,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${X(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Eo.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>h({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Eo.iconWrapper}`]:h({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Eo.selected}`]:{opacity:1},[`&.${Eo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Eo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Eo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Eo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Eo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),u0=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTab"}),{className:o,disabled:l=!1,disableFocusRipple:s=!1,fullWidth:i,icon:a,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:C,selectionFollowsFocus:k,textColor:b="inherit",value:m,wrapped:y=!1}=r,w=K(r,dA),E=h({},r,{disabled:l,disableFocusRipple:s,selected:C,icon:!!a,iconPosition:u,label:!!f,fullWidth:i,textColor:b,wrapped:y}),P=fA(E),x=a&&f&&d.isValidElement(a)?d.cloneElement(a,{className:Z(P.iconWrapper,a.props.className)}):a,I=M=>{!C&&p&&p(M,m),v&&v(M)},R=M=>{k&&!C&&p&&p(M,m),g&&g(M)};return S.jsxs(pA,h({focusRipple:!s,className:Z(P.root,o),ref:n,role:"tab","aria-selected":C,disabled:l,onClick:I,onFocus:R,ownerState:E,tabIndex:C?0:-1},w,{children:[u==="top"||u==="start"?S.jsxs(d.Fragment,{children:[x,f]}):S.jsxs(d.Fragment,{children:[f,x]}),c]}))}),IS=d.createContext();function hA(e){return _e("MuiTable",e)}$e("MuiTable",["root","stickyHeader"]);const mA=["className","component","padding","size","stickyHeader"],gA=e=>{const{classes:t,stickyHeader:n}=e;return de({root:["root",n&&"stickyHeader"]},hA,t)},vA=Y("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>h({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":h({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),c0="table",ES=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTable"}),{className:o,component:l=c0,padding:s="normal",size:i="medium",stickyHeader:a=!1}=r,u=K(r,mA),c=h({},r,{component:l,padding:s,size:i,stickyHeader:a}),f=gA(c),p=d.useMemo(()=>({padding:s,size:i,stickyHeader:a}),[s,i,a]);return S.jsx(IS.Provider,{value:p,children:S.jsx(vA,h({as:l,role:l===c0?null:"table",ref:n,className:Z(f.root,o),ownerState:c},u))})}),$g=d.createContext();function yA(e){return _e("MuiTableCell",e)}const bA=$e("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),CA=["align","className","component","padding","scope","size","sortDirection","variant"],xA=e=>{const{classes:t,variant:n,align:r,padding:o,size:l,stickyHeader:s}=e,i={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,o!=="normal"&&`padding${X(o)}`,`size${X(l)}`]};return de(i,yA,t)},wA=Y("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>h({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
207
- ${e.palette.mode==="light"?cg(tt(e.palette.divider,1),.88):ug(tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${bA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Zn=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:l,component:s,padding:i,scope:a,size:u,sortDirection:c,variant:f}=r,p=K(r,CA),v=d.useContext(IS),g=d.useContext($g),C=g&&g.variant==="head";let k;s?k=s:k=C?"th":"td";let b=a;k==="td"?b=void 0:!b&&C&&(b="col");const m=f||g&&g.variant,y=h({},r,{align:o,component:k,padding:i||(v&&v.padding?v.padding:"normal"),size:u||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),w=xA(y);let E=null;return c&&(E=c==="asc"?"ascending":"descending"),S.jsx(wA,h({as:k,ref:n,className:Z(w.root,l),"aria-sort":E,scope:b,ownerState:y},p))});function SA(e){return _e("MuiTableContainer",e)}$e("MuiTableContainer",["root"]);const PA=["className","component"],kA=e=>{const{classes:t}=e;return de({root:["root"]},SA,t)},IA=Y("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),MS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableContainer"}),{className:o,component:l="div"}=r,s=K(r,PA),i=h({},r,{component:l}),a=kA(i);return S.jsx(IA,h({ref:n,as:l,className:Z(a.root,o),ownerState:i},s))});function EA(e){return _e("MuiTableHead",e)}$e("MuiTableHead",["root"]);const MA=["className","component"],RA=e=>{const{classes:t}=e;return de({root:["root"]},EA,t)},TA=Y("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),$A={variant:"head"},d0="thead",RS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableHead"}),{className:o,component:l=d0}=r,s=K(r,MA),i=h({},r,{component:l}),a=RA(i);return S.jsx($g.Provider,{value:$A,children:S.jsx(TA,h({as:l,className:Z(a.root,o),ref:n,role:l===d0?null:"rowgroup",ownerState:i},s))})});function OA(e){return _e("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const FA=["className","component","disableGutters","variant"],_A=e=>{const{classes:t,disableGutters:n,variant:r}=e;return de({root:["root",!n&&"gutters",r]},OA,t)},DA=Y("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>h({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Og=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiToolbar"}),{className:o,component:l="div",disableGutters:s=!1,variant:i="regular"}=r,a=K(r,FA),u=h({},r,{component:l,disableGutters:s,variant:i}),c=_A(u);return S.jsx(DA,h({as:l,className:Z(c.root,o),ref:n,ownerState:u},a))}),TS=Ke(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),$S=Ke(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),jA=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],LA=d.forwardRef(function(t,n){var r,o,l,s,i,a,u,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:C,onPageChange:k,page:b,rowsPerPage:m,showFirstButton:y,showLastButton:w,slots:E={},slotProps:P={}}=t,x=K(t,jA),I=Ga(),R=me=>{k(me,0)},M=me=>{k(me,b-1)},_=me=>{k(me,b+1)},L=me=>{k(me,Math.max(0,Math.ceil(p/m)-1))},F=(r=E.firstButton)!=null?r:so,$=(o=E.lastButton)!=null?o:so,T=(l=E.nextButton)!=null?l:so,D=(s=E.previousButton)!=null?s:so,A=(i=E.firstButtonIcon)!=null?i:kL,O=(a=E.lastButtonIcon)!=null?a:IL,j=(u=E.nextButtonIcon)!=null?u:$S,N=(c=E.previousButtonIcon)!=null?c:TS,B=I?$:F,H=I?T:D,V=I?D:T,U=I?F:$,q=I?P.lastButton:P.firstButton,re=I?P.nextButton:P.previousButton,ie=I?P.previousButton:P.nextButton,pe=I?P.firstButton:P.lastButton;return S.jsxs("div",h({ref:n},x,{children:[y&&S.jsx(B,h({onClick:R,disabled:v||b===0,"aria-label":g("first",b),title:g("first",b)},q,{children:I?S.jsx(O,h({},P.lastButtonIcon)):S.jsx(A,h({},P.firstButtonIcon))})),S.jsx(H,h({onClick:M,disabled:v||b===0,color:"inherit","aria-label":g("previous",b),title:g("previous",b)},re??f,{children:I?S.jsx(j,h({},P.nextButtonIcon)):S.jsx(N,h({},P.previousButtonIcon))})),S.jsx(V,h({onClick:_,disabled:v||(p!==-1?b>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",b),title:g("next",b)},ie??C,{children:I?S.jsx(N,h({},P.previousButtonIcon)):S.jsx(j,h({},P.nextButtonIcon))})),w&&S.jsx(U,h({onClick:L,disabled:v||b>=Math.ceil(p/m)-1,"aria-label":g("last",b),title:g("last",b)},pe,{children:I?S.jsx(A,h({},P.firstButtonIcon)):S.jsx(O,h({},P.lastButtonIcon))}))]}))});function AA(e){return _e("MuiTablePagination",e)}const wl=$e("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var f0;const NA=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],zA=Y(Zn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),HA=Y(Og,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>h({[`& .${wl.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wl.actions}`]:{flexShrink:0,marginLeft:20}})),BA=Y("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),VA=Y("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>h({},e.typography.body2,{flexShrink:0})),GA=Y(Xd,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>h({[`& .${wl.selectIcon}`]:t.selectIcon,[`& .${wl.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wl.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),UA=Y(zr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),WA=Y("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>h({},e.typography.body2,{flexShrink:0}));function KA({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function qA(e){return`Go to ${e} page`}const YA=e=>{const{classes:t}=e;return de({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},AA,t)},QA=d.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=LA,backIconButtonProps:s,className:i,colSpan:a,component:u=Zn,count:c,disabled:f=!1,getItemAriaLabel:p=qA,labelDisplayedRows:v=KA,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:C,onPageChange:k,onRowsPerPageChange:b,page:m,rowsPerPage:y,rowsPerPageOptions:w=[10,25,50,100],SelectProps:E={},showFirstButton:P=!1,showLastButton:x=!1,slotProps:I={},slots:R={}}=o,M=K(o,NA),_=o,L=YA(_),F=(r=I==null?void 0:I.select)!=null?r:E,$=F.native?"option":UA;let T;(u===Zn||u==="td")&&(T=a||1e3);const D=ut(F.id),A=ut(F.labelId),O=()=>c===-1?(m+1)*y:y===-1?c:Math.min(c,(m+1)*y);return S.jsx(zA,h({colSpan:T,ref:n,as:u,ownerState:_,className:Z(L.root,i)},M,{children:S.jsxs(HA,{className:L.toolbar,children:[S.jsx(BA,{className:L.spacer}),w.length>1&&S.jsx(VA,{className:L.selectLabel,id:A,children:g}),w.length>1&&S.jsx(GA,h({variant:"standard"},!F.variant&&{input:f0||(f0=S.jsx(oi,{}))},{value:y,onChange:b,id:D,labelId:A},F,{classes:h({},F.classes,{root:Z(L.input,L.selectRoot,(F.classes||{}).root),select:Z(L.select,(F.classes||{}).select),icon:Z(L.selectIcon,(F.classes||{}).icon)}),disabled:f,children:w.map(j=>d.createElement($,h({},!xa($)&&{ownerState:_},{className:L.menuItem,key:j.label?j.label:j,value:j.value?j.value:j}),j.label?j.label:j))})),S.jsx(WA,{className:L.displayedRows,children:v({from:c===0?0:m*y+1,to:O(),count:c===-1?-1:c,page:m})}),S.jsx(l,{className:L.actions,backIconButtonProps:s,count:c,nextIconButtonProps:C,onPageChange:k,page:m,rowsPerPage:y,showFirstButton:P,showLastButton:x,slotProps:I.actions,slots:R.actions,getItemAriaLabel:p,disabled:f})]})}))});function XA(e){return _e("MuiTableRow",e)}const p0=$e("MuiTableRow",["root","selected","hover","head","footer"]),ZA=["className","component","hover","selected"],JA=e=>{const{classes:t,selected:n,hover:r,head:o,footer:l}=e;return de({root:["root",n&&"selected",r&&"hover",o&&"head",l&&"footer"]},XA,t)},eN=Y("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${p0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${p0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),h0="tr",OS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableRow"}),{className:o,component:l=h0,hover:s=!1,selected:i=!1}=r,a=K(r,ZA),u=d.useContext($g),c=h({},r,{component:l,hover:s,selected:i,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=JA(c);return S.jsx(eN,h({as:l,ref:n,className:Z(f.root,o),role:l===h0?null:"row",ownerState:c},a))});function tN(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function nN(e,t,n,r={},o=()=>{}){const{ease:l=tN,duration:s=300}=r;let i=null;const a=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}i===null&&(i=p);const v=Math.min(1,(p-i)/s);if(t[e]=l(v)*(n-a)+a,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return a===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const rN=["onChange"],oN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lN(e){const{onChange:t}=e,n=K(e,rN),r=d.useRef(),o=d.useRef(null),l=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return st(()=>{const s=Al(()=>{const a=r.current;l(),a!==r.current&&t(r.current)}),i=Pr(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),d.useEffect(()=>{l(),t(r.current)},[t]),S.jsx("div",h({style:oN},n,{ref:o}))}function sN(e){return _e("MuiTabScrollButton",e)}const iN=$e("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),aN=["className","slots","slotProps","direction","orientation","disabled"],uN=e=>{const{classes:t,orientation:n,disabled:r}=e;return de({root:["root",n,r&&"disabled"]},sN,t)},cN=Y(Jo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>h({width:40,flexShrink:0,opacity:.8,[`&.${iN.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),dN=d.forwardRef(function(t,n){var r,o;const l=je({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:a={},direction:u}=l,c=K(l,aN),f=Ga(),p=h({isRtl:f},l),v=uN(p),g=(r=i.StartScrollButtonIcon)!=null?r:TS,C=(o=i.EndScrollButtonIcon)!=null?o:$S,k=An({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),b=An({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return S.jsx(cN,h({component:"div",className:Z(v.root,s),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?S.jsx(g,h({},k)):S.jsx(C,h({},b))}))});function fN(e){return _e("MuiTabs",e)}const np=$e("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),pN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],m0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,g0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Eu=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const l=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||l)o=n(e,o);else{o.focus();return}}},hN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:l,centered:s,scrollButtonsHideMobile:i,classes:a}=e;return de({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},fN,a)},mN=Y("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${np.scrollButtons}`]:t.scrollButtons},{[`& .${np.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>h({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${np.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),gN=Y("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>h({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),vN=Y("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>h({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),yN=Y("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>h({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),bN=Y(lN)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),v0={},CN=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTabs"}),o=Ur(),l=Ga(),{"aria-label":s,"aria-labelledby":i,action:a,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:C,orientation:k="horizontal",ScrollButtonComponent:b=dN,scrollButtons:m="auto",selectionFollowsFocus:y,slots:w={},slotProps:E={},TabIndicatorProps:P={},TabScrollButtonProps:x={},textColor:I="primary",value:R,variant:M="standard",visibleScrollbar:_=!1}=r,L=K(r,pN),F=M==="scrollable",$=k==="vertical",T=$?"scrollTop":"scrollLeft",D=$?"top":"left",A=$?"bottom":"right",O=$?"clientHeight":"clientWidth",j=$?"height":"width",N=h({},r,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:k,vertical:$,scrollButtons:m,textColor:I,variant:M,visibleScrollbar:_,fixed:!F,hideScrollbar:F&&!_,scrollableX:F&&!$,scrollableY:F&&$,centered:u&&!F,scrollButtonsHideMobile:!v}),B=hN(N),H=An({elementType:w.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),V=An({elementType:w.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[U,q]=d.useState(!1),[re,ie]=d.useState(v0),[pe,me]=d.useState(!1),[ve,ue]=d.useState(!1),[ge,Q]=d.useState(!1),[ae,ne]=d.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,he=d.useRef(null),se=d.useRef(null),Re=()=>{const le=he.current;let Se;if(le){const He=le.getBoundingClientRect();Se={clientWidth:le.clientWidth,scrollLeft:le.scrollLeft,scrollTop:le.scrollTop,scrollLeftNormalized:sT(le,l?"rtl":"ltr"),scrollWidth:le.scrollWidth,top:He.top,bottom:He.bottom,left:He.left,right:He.right}}let Ne;if(le&&R!==!1){const He=se.current.children;if(He.length>0){const qe=He[ee.get(R)];Ne=qe?qe.getBoundingClientRect():null}}return{tabsMeta:Se,tabMeta:Ne}},Pe=ct(()=>{const{tabsMeta:le,tabMeta:Se}=Re();let Ne=0,He;if($)He="top",Se&&le&&(Ne=Se.top-le.top+le.scrollTop);else if(He=l?"right":"left",Se&&le){const it=l?le.scrollLeftNormalized+le.clientWidth-le.scrollWidth:le.scrollLeft;Ne=(l?-1:1)*(Se[He]-le[He]+it)}const qe={[He]:Ne,[j]:Se?Se[j]:0};if(isNaN(re[He])||isNaN(re[j]))ie(qe);else{const it=Math.abs(re[He]-qe[He]),Ve=Math.abs(re[j]-qe[j]);(it>=1||Ve>=1)&&ie(qe)}}),Oe=(le,{animation:Se=!0}={})=>{Se?nN(T,he.current,le,{duration:o.transitions.duration.standard}):he.current[T]=le},xe=le=>{let Se=he.current[T];$?Se+=le:(Se+=le*(l?-1:1),Se*=l&&E1()==="reverse"?-1:1),Oe(Se)},te=()=>{const le=he.current[O];let Se=0;const Ne=Array.from(se.current.children);for(let He=0;He<Ne.length;He+=1){const qe=Ne[He];if(Se+qe[O]>le){He===0&&(Se=le);break}Se+=qe[O]}return Se},oe=()=>{xe(-1*te())},ye=()=>{xe(te())},Me=d.useCallback(le=>{ne({overflow:null,scrollbarWidth:le})},[]),Ae=()=>{const le={};le.scrollbarSizeListener=F?S.jsx(bN,{onChange:Me,className:Z(B.scrollableX,B.hideScrollbar)}):null;const Ne=F&&(m==="auto"&&(pe||ve)||m===!0);return le.scrollButtonStart=Ne?S.jsx(b,h({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:H},orientation:k,direction:l?"right":"left",onClick:oe,disabled:!pe},x,{className:Z(B.scrollButtons,x.className)})):null,le.scrollButtonEnd=Ne?S.jsx(b,h({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:V},orientation:k,direction:l?"left":"right",onClick:ye,disabled:!ve},x,{className:Z(B.scrollButtons,x.className)})):null,le},Te=ct(le=>{const{tabsMeta:Se,tabMeta:Ne}=Re();if(!(!Ne||!Se)){if(Ne[D]<Se[D]){const He=Se[T]+(Ne[D]-Se[D]);Oe(He,{animation:le})}else if(Ne[A]>Se[A]){const He=Se[T]+(Ne[A]-Se[A]);Oe(He,{animation:le})}}}),ce=ct(()=>{F&&m!==!1&&Q(!ge)});d.useEffect(()=>{const le=Al(()=>{he.current&&Pe()});let Se;const Ne=it=>{it.forEach(Ve=>{Ve.removedNodes.forEach(Je=>{var Rt;(Rt=Se)==null||Rt.unobserve(Je)}),Ve.addedNodes.forEach(Je=>{var Rt;(Rt=Se)==null||Rt.observe(Je)})}),le(),ce()},He=Pr(he.current);He.addEventListener("resize",le);let qe;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(le),Array.from(se.current.children).forEach(it=>{Se.observe(it)})),typeof MutationObserver<"u"&&(qe=new MutationObserver(Ne),qe.observe(se.current,{childList:!0})),()=>{var it,Ve;le.clear(),He.removeEventListener("resize",le),(it=qe)==null||it.disconnect(),(Ve=Se)==null||Ve.disconnect()}},[Pe,ce]),d.useEffect(()=>{const le=Array.from(se.current.children),Se=le.length;if(typeof IntersectionObserver<"u"&&Se>0&&F&&m!==!1){const Ne=le[0],He=le[Se-1],qe={root:he.current,threshold:.99},it=En=>{me(!En[0].isIntersecting)},Ve=new IntersectionObserver(it,qe);Ve.observe(Ne);const Je=En=>{ue(!En[0].isIntersecting)},Rt=new IntersectionObserver(Je,qe);return Rt.observe(He),()=>{Ve.disconnect(),Rt.disconnect()}}},[F,m,ge,c==null?void 0:c.length]),d.useEffect(()=>{q(!0)},[]),d.useEffect(()=>{Pe()}),d.useEffect(()=>{Te(v0!==re)},[Te,re]),d.useImperativeHandle(a,()=>({updateIndicator:Pe,updateScrollButtons:ce}),[Pe,ce]);const Be=S.jsx(yN,h({},P,{className:Z(B.indicator,P.className),ownerState:N,style:h({},re,P.style)}));let yt=0;const Ye=d.Children.map(c,le=>{if(!d.isValidElement(le))return null;const Se=le.props.value===void 0?yt:le.props.value;ee.set(Se,yt);const Ne=Se===R;return yt+=1,d.cloneElement(le,h({fullWidth:M==="fullWidth",indicator:Ne&&!U&&Be,selected:Ne,selectionFollowsFocus:y,onChange:C,textColor:I,value:Se},yt===1&&R===!1&&!le.props.tabIndex?{tabIndex:0}:{}))}),be=le=>{const Se=se.current,Ne=kt(Se).activeElement;if(Ne.getAttribute("role")!=="tab")return;let qe=k==="horizontal"?"ArrowLeft":"ArrowUp",it=k==="horizontal"?"ArrowRight":"ArrowDown";switch(k==="horizontal"&&l&&(qe="ArrowRight",it="ArrowLeft"),le.key){case qe:le.preventDefault(),Eu(Se,Ne,g0);break;case it:le.preventDefault(),Eu(Se,Ne,m0);break;case"Home":le.preventDefault(),Eu(Se,null,m0);break;case"End":le.preventDefault(),Eu(Se,null,g0);break}},Le=Ae();return S.jsxs(mN,h({className:Z(B.root,f),ownerState:N,ref:n,as:p},L,{children:[Le.scrollButtonStart,Le.scrollbarSizeListener,S.jsxs(gN,{className:B.scroller,ownerState:N,style:{overflow:ae.overflow,[$?`margin${l?"Left":"Right"}`:"marginBottom"]:_?void 0:-ae.scrollbarWidth},ref:he,children:[S.jsx(vN,{"aria-label":s,"aria-labelledby":i,"aria-orientation":k==="vertical"?"vertical":null,className:B.flexContainer,ownerState:N,onKeyDown:be,ref:se,role:"tablist",children:Ye}),U&&Be]}),Le.scrollButtonEnd]}))});function xN(e){return _e("MuiTextField",e)}$e("MuiTextField",["root"]);const wN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],SN={standard:Ig,filled:kg,outlined:Rg},PN=e=>{const{classes:t}=e;return de({root:["root"]},xN,t)},kN=Y(CS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IN=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:s,className:i,color:a="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:C,InputLabelProps:k,inputProps:b,InputProps:m,inputRef:y,label:w,maxRows:E,minRows:P,multiline:x=!1,name:I,onBlur:R,onChange:M,onFocus:_,placeholder:L,required:F=!1,rows:$,select:T=!1,SelectProps:D,type:A,value:O,variant:j="outlined"}=r,N=K(r,wN),B=h({},r,{autoFocus:l,color:a,disabled:c,error:f,fullWidth:v,multiline:x,required:F,select:T,variant:j}),H=PN(B),V={};j==="outlined"&&(k&&typeof k.shrink<"u"&&(V.notched=k.shrink),V.label=w),T&&((!D||!D.native)&&(V.id=void 0),V["aria-describedby"]=void 0);const U=ut(C),q=g&&U?`${U}-helper-text`:void 0,re=w&&U?`${U}-label`:void 0,ie=SN[j],pe=S.jsx(ie,h({"aria-describedby":q,autoComplete:o,autoFocus:l,defaultValue:u,fullWidth:v,multiline:x,name:I,rows:$,maxRows:E,minRows:P,type:A,value:O,id:U,inputRef:y,onBlur:R,onChange:M,onFocus:_,placeholder:L,inputProps:b},V,m));return S.jsxs(kN,h({className:Z(H.root,i),disabled:c,error:f,fullWidth:v,ref:n,required:F,color:a,variant:j,ownerState:B},N,{children:[w!=null&&w!==""&&S.jsx(xS,h({htmlFor:U,id:re},k,{children:w})),T?S.jsx(Xd,h({"aria-describedby":q,id:U,labelId:re,value:O,input:pe},D,{children:s})):pe,g&&S.jsx(l5,h({id:q},p,{children:g}))]}))});class EN extends d.Component{constructor(){super(...arguments),this.state={open:!0},this.handleToggle=()=>{this.setState({open:!this.state.open})}}render(){return S.jsx("div",{children:S.jsx(W1,{position:"static",children:S.jsx(Og,{children:S.jsxs(er,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:["Colyseus Monitor v","0.17.3"]})})})})}}var MN={};const Fg=(MN.GAME_SERVER_URL||`${window.location.protocol}//${window.location.host}${window.location.pathname}`).replace(/\/$/,"");function RN(){return fetch(`${Fg}/api`).then(e=>e.json())}function TN(e){return fetch(`${Fg}/api/room?roomId=${e}`).then(t=>t.json())}function FS(e,t,...n){const r=new URLSearchParams;return r.set("roomId",e),r.set("method",t),r.set("args",JSON.stringify(n)),fetch(`${Fg}/api/room/call?${r.toString()}`).then(o=>o.json())}const _S=d.createContext(void 0);function Xe(){const e=d.useContext(_S);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
207
+ ${e.palette.mode==="light"?cg(tt(e.palette.divider,1),.88):ug(tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${bA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Zn=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:l,component:s,padding:i,scope:a,size:u,sortDirection:c,variant:f}=r,p=K(r,CA),v=d.useContext(IS),g=d.useContext($g),C=g&&g.variant==="head";let k;s?k=s:k=C?"th":"td";let b=a;k==="td"?b=void 0:!b&&C&&(b="col");const m=f||g&&g.variant,y=h({},r,{align:o,component:k,padding:i||(v&&v.padding?v.padding:"normal"),size:u||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),w=xA(y);let E=null;return c&&(E=c==="asc"?"ascending":"descending"),S.jsx(wA,h({as:k,ref:n,className:Z(w.root,l),"aria-sort":E,scope:b,ownerState:y},p))});function SA(e){return _e("MuiTableContainer",e)}$e("MuiTableContainer",["root"]);const PA=["className","component"],kA=e=>{const{classes:t}=e;return de({root:["root"]},SA,t)},IA=Y("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),MS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableContainer"}),{className:o,component:l="div"}=r,s=K(r,PA),i=h({},r,{component:l}),a=kA(i);return S.jsx(IA,h({ref:n,as:l,className:Z(a.root,o),ownerState:i},s))});function EA(e){return _e("MuiTableHead",e)}$e("MuiTableHead",["root"]);const MA=["className","component"],RA=e=>{const{classes:t}=e;return de({root:["root"]},EA,t)},TA=Y("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),$A={variant:"head"},d0="thead",RS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableHead"}),{className:o,component:l=d0}=r,s=K(r,MA),i=h({},r,{component:l}),a=RA(i);return S.jsx($g.Provider,{value:$A,children:S.jsx(TA,h({as:l,className:Z(a.root,o),ref:n,role:l===d0?null:"rowgroup",ownerState:i},s))})});function OA(e){return _e("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const FA=["className","component","disableGutters","variant"],_A=e=>{const{classes:t,disableGutters:n,variant:r}=e;return de({root:["root",!n&&"gutters",r]},OA,t)},DA=Y("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>h({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Og=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiToolbar"}),{className:o,component:l="div",disableGutters:s=!1,variant:i="regular"}=r,a=K(r,FA),u=h({},r,{component:l,disableGutters:s,variant:i}),c=_A(u);return S.jsx(DA,h({as:l,className:Z(c.root,o),ref:n,ownerState:u},a))}),TS=Ke(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),$S=Ke(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),jA=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],LA=d.forwardRef(function(t,n){var r,o,l,s,i,a,u,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:C,onPageChange:k,page:b,rowsPerPage:m,showFirstButton:y,showLastButton:w,slots:E={},slotProps:P={}}=t,x=K(t,jA),I=Ga(),R=me=>{k(me,0)},M=me=>{k(me,b-1)},_=me=>{k(me,b+1)},L=me=>{k(me,Math.max(0,Math.ceil(p/m)-1))},F=(r=E.firstButton)!=null?r:so,$=(o=E.lastButton)!=null?o:so,T=(l=E.nextButton)!=null?l:so,D=(s=E.previousButton)!=null?s:so,A=(i=E.firstButtonIcon)!=null?i:kL,O=(a=E.lastButtonIcon)!=null?a:IL,j=(u=E.nextButtonIcon)!=null?u:$S,N=(c=E.previousButtonIcon)!=null?c:TS,B=I?$:F,H=I?T:D,V=I?D:T,U=I?F:$,q=I?P.lastButton:P.firstButton,re=I?P.nextButton:P.previousButton,ie=I?P.previousButton:P.nextButton,pe=I?P.firstButton:P.lastButton;return S.jsxs("div",h({ref:n},x,{children:[y&&S.jsx(B,h({onClick:R,disabled:v||b===0,"aria-label":g("first",b),title:g("first",b)},q,{children:I?S.jsx(O,h({},P.lastButtonIcon)):S.jsx(A,h({},P.firstButtonIcon))})),S.jsx(H,h({onClick:M,disabled:v||b===0,color:"inherit","aria-label":g("previous",b),title:g("previous",b)},re??f,{children:I?S.jsx(j,h({},P.nextButtonIcon)):S.jsx(N,h({},P.previousButtonIcon))})),S.jsx(V,h({onClick:_,disabled:v||(p!==-1?b>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",b),title:g("next",b)},ie??C,{children:I?S.jsx(N,h({},P.previousButtonIcon)):S.jsx(j,h({},P.nextButtonIcon))})),w&&S.jsx(U,h({onClick:L,disabled:v||b>=Math.ceil(p/m)-1,"aria-label":g("last",b),title:g("last",b)},pe,{children:I?S.jsx(A,h({},P.firstButtonIcon)):S.jsx(O,h({},P.lastButtonIcon))}))]}))});function AA(e){return _e("MuiTablePagination",e)}const wl=$e("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var f0;const NA=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],zA=Y(Zn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),HA=Y(Og,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>h({[`& .${wl.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wl.actions}`]:{flexShrink:0,marginLeft:20}})),BA=Y("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),VA=Y("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>h({},e.typography.body2,{flexShrink:0})),GA=Y(Xd,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>h({[`& .${wl.selectIcon}`]:t.selectIcon,[`& .${wl.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wl.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),UA=Y(zr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),WA=Y("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>h({},e.typography.body2,{flexShrink:0}));function KA({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function qA(e){return`Go to ${e} page`}const YA=e=>{const{classes:t}=e;return de({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},AA,t)},QA=d.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=LA,backIconButtonProps:s,className:i,colSpan:a,component:u=Zn,count:c,disabled:f=!1,getItemAriaLabel:p=qA,labelDisplayedRows:v=KA,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:C,onPageChange:k,onRowsPerPageChange:b,page:m,rowsPerPage:y,rowsPerPageOptions:w=[10,25,50,100],SelectProps:E={},showFirstButton:P=!1,showLastButton:x=!1,slotProps:I={},slots:R={}}=o,M=K(o,NA),_=o,L=YA(_),F=(r=I==null?void 0:I.select)!=null?r:E,$=F.native?"option":UA;let T;(u===Zn||u==="td")&&(T=a||1e3);const D=ut(F.id),A=ut(F.labelId),O=()=>c===-1?(m+1)*y:y===-1?c:Math.min(c,(m+1)*y);return S.jsx(zA,h({colSpan:T,ref:n,as:u,ownerState:_,className:Z(L.root,i)},M,{children:S.jsxs(HA,{className:L.toolbar,children:[S.jsx(BA,{className:L.spacer}),w.length>1&&S.jsx(VA,{className:L.selectLabel,id:A,children:g}),w.length>1&&S.jsx(GA,h({variant:"standard"},!F.variant&&{input:f0||(f0=S.jsx(oi,{}))},{value:y,onChange:b,id:D,labelId:A},F,{classes:h({},F.classes,{root:Z(L.input,L.selectRoot,(F.classes||{}).root),select:Z(L.select,(F.classes||{}).select),icon:Z(L.selectIcon,(F.classes||{}).icon)}),disabled:f,children:w.map(j=>d.createElement($,h({},!xa($)&&{ownerState:_},{className:L.menuItem,key:j.label?j.label:j,value:j.value?j.value:j}),j.label?j.label:j))})),S.jsx(WA,{className:L.displayedRows,children:v({from:c===0?0:m*y+1,to:O(),count:c===-1?-1:c,page:m})}),S.jsx(l,{className:L.actions,backIconButtonProps:s,count:c,nextIconButtonProps:C,onPageChange:k,page:m,rowsPerPage:y,showFirstButton:P,showLastButton:x,slotProps:I.actions,slots:R.actions,getItemAriaLabel:p,disabled:f})]})}))});function XA(e){return _e("MuiTableRow",e)}const p0=$e("MuiTableRow",["root","selected","hover","head","footer"]),ZA=["className","component","hover","selected"],JA=e=>{const{classes:t,selected:n,hover:r,head:o,footer:l}=e;return de({root:["root",n&&"selected",r&&"hover",o&&"head",l&&"footer"]},XA,t)},eN=Y("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${p0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${p0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),h0="tr",OS=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableRow"}),{className:o,component:l=h0,hover:s=!1,selected:i=!1}=r,a=K(r,ZA),u=d.useContext($g),c=h({},r,{component:l,hover:s,selected:i,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=JA(c);return S.jsx(eN,h({as:l,ref:n,className:Z(f.root,o),role:l===h0?null:"row",ownerState:c},a))});function tN(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function nN(e,t,n,r={},o=()=>{}){const{ease:l=tN,duration:s=300}=r;let i=null;const a=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}i===null&&(i=p);const v=Math.min(1,(p-i)/s);if(t[e]=l(v)*(n-a)+a,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return a===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const rN=["onChange"],oN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lN(e){const{onChange:t}=e,n=K(e,rN),r=d.useRef(),o=d.useRef(null),l=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return st(()=>{const s=Al(()=>{const a=r.current;l(),a!==r.current&&t(r.current)}),i=Pr(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),d.useEffect(()=>{l(),t(r.current)},[t]),S.jsx("div",h({style:oN},n,{ref:o}))}function sN(e){return _e("MuiTabScrollButton",e)}const iN=$e("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),aN=["className","slots","slotProps","direction","orientation","disabled"],uN=e=>{const{classes:t,orientation:n,disabled:r}=e;return de({root:["root",n,r&&"disabled"]},sN,t)},cN=Y(Jo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>h({width:40,flexShrink:0,opacity:.8,[`&.${iN.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),dN=d.forwardRef(function(t,n){var r,o;const l=je({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:a={},direction:u}=l,c=K(l,aN),f=Ga(),p=h({isRtl:f},l),v=uN(p),g=(r=i.StartScrollButtonIcon)!=null?r:TS,C=(o=i.EndScrollButtonIcon)!=null?o:$S,k=An({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),b=An({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return S.jsx(cN,h({component:"div",className:Z(v.root,s),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?S.jsx(g,h({},k)):S.jsx(C,h({},b))}))});function fN(e){return _e("MuiTabs",e)}const np=$e("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),pN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],m0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,g0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Eu=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const l=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||l)o=n(e,o);else{o.focus();return}}},hN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:l,centered:s,scrollButtonsHideMobile:i,classes:a}=e;return de({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},fN,a)},mN=Y("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${np.scrollButtons}`]:t.scrollButtons},{[`& .${np.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>h({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${np.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),gN=Y("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>h({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),vN=Y("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>h({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),yN=Y("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>h({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),bN=Y(lN)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),v0={},CN=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTabs"}),o=Ur(),l=Ga(),{"aria-label":s,"aria-labelledby":i,action:a,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:C,orientation:k="horizontal",ScrollButtonComponent:b=dN,scrollButtons:m="auto",selectionFollowsFocus:y,slots:w={},slotProps:E={},TabIndicatorProps:P={},TabScrollButtonProps:x={},textColor:I="primary",value:R,variant:M="standard",visibleScrollbar:_=!1}=r,L=K(r,pN),F=M==="scrollable",$=k==="vertical",T=$?"scrollTop":"scrollLeft",D=$?"top":"left",A=$?"bottom":"right",O=$?"clientHeight":"clientWidth",j=$?"height":"width",N=h({},r,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:k,vertical:$,scrollButtons:m,textColor:I,variant:M,visibleScrollbar:_,fixed:!F,hideScrollbar:F&&!_,scrollableX:F&&!$,scrollableY:F&&$,centered:u&&!F,scrollButtonsHideMobile:!v}),B=hN(N),H=An({elementType:w.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),V=An({elementType:w.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[U,q]=d.useState(!1),[re,ie]=d.useState(v0),[pe,me]=d.useState(!1),[ve,ue]=d.useState(!1),[ge,Q]=d.useState(!1),[ae,ne]=d.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,he=d.useRef(null),se=d.useRef(null),Re=()=>{const le=he.current;let Se;if(le){const He=le.getBoundingClientRect();Se={clientWidth:le.clientWidth,scrollLeft:le.scrollLeft,scrollTop:le.scrollTop,scrollLeftNormalized:sT(le,l?"rtl":"ltr"),scrollWidth:le.scrollWidth,top:He.top,bottom:He.bottom,left:He.left,right:He.right}}let Ne;if(le&&R!==!1){const He=se.current.children;if(He.length>0){const qe=He[ee.get(R)];Ne=qe?qe.getBoundingClientRect():null}}return{tabsMeta:Se,tabMeta:Ne}},Pe=ct(()=>{const{tabsMeta:le,tabMeta:Se}=Re();let Ne=0,He;if($)He="top",Se&&le&&(Ne=Se.top-le.top+le.scrollTop);else if(He=l?"right":"left",Se&&le){const it=l?le.scrollLeftNormalized+le.clientWidth-le.scrollWidth:le.scrollLeft;Ne=(l?-1:1)*(Se[He]-le[He]+it)}const qe={[He]:Ne,[j]:Se?Se[j]:0};if(isNaN(re[He])||isNaN(re[j]))ie(qe);else{const it=Math.abs(re[He]-qe[He]),Ve=Math.abs(re[j]-qe[j]);(it>=1||Ve>=1)&&ie(qe)}}),Oe=(le,{animation:Se=!0}={})=>{Se?nN(T,he.current,le,{duration:o.transitions.duration.standard}):he.current[T]=le},xe=le=>{let Se=he.current[T];$?Se+=le:(Se+=le*(l?-1:1),Se*=l&&E1()==="reverse"?-1:1),Oe(Se)},te=()=>{const le=he.current[O];let Se=0;const Ne=Array.from(se.current.children);for(let He=0;He<Ne.length;He+=1){const qe=Ne[He];if(Se+qe[O]>le){He===0&&(Se=le);break}Se+=qe[O]}return Se},oe=()=>{xe(-1*te())},ye=()=>{xe(te())},Me=d.useCallback(le=>{ne({overflow:null,scrollbarWidth:le})},[]),Ae=()=>{const le={};le.scrollbarSizeListener=F?S.jsx(bN,{onChange:Me,className:Z(B.scrollableX,B.hideScrollbar)}):null;const Ne=F&&(m==="auto"&&(pe||ve)||m===!0);return le.scrollButtonStart=Ne?S.jsx(b,h({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:H},orientation:k,direction:l?"right":"left",onClick:oe,disabled:!pe},x,{className:Z(B.scrollButtons,x.className)})):null,le.scrollButtonEnd=Ne?S.jsx(b,h({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:V},orientation:k,direction:l?"left":"right",onClick:ye,disabled:!ve},x,{className:Z(B.scrollButtons,x.className)})):null,le},Te=ct(le=>{const{tabsMeta:Se,tabMeta:Ne}=Re();if(!(!Ne||!Se)){if(Ne[D]<Se[D]){const He=Se[T]+(Ne[D]-Se[D]);Oe(He,{animation:le})}else if(Ne[A]>Se[A]){const He=Se[T]+(Ne[A]-Se[A]);Oe(He,{animation:le})}}}),ce=ct(()=>{F&&m!==!1&&Q(!ge)});d.useEffect(()=>{const le=Al(()=>{he.current&&Pe()});let Se;const Ne=it=>{it.forEach(Ve=>{Ve.removedNodes.forEach(Je=>{var Rt;(Rt=Se)==null||Rt.unobserve(Je)}),Ve.addedNodes.forEach(Je=>{var Rt;(Rt=Se)==null||Rt.observe(Je)})}),le(),ce()},He=Pr(he.current);He.addEventListener("resize",le);let qe;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(le),Array.from(se.current.children).forEach(it=>{Se.observe(it)})),typeof MutationObserver<"u"&&(qe=new MutationObserver(Ne),qe.observe(se.current,{childList:!0})),()=>{var it,Ve;le.clear(),He.removeEventListener("resize",le),(it=qe)==null||it.disconnect(),(Ve=Se)==null||Ve.disconnect()}},[Pe,ce]),d.useEffect(()=>{const le=Array.from(se.current.children),Se=le.length;if(typeof IntersectionObserver<"u"&&Se>0&&F&&m!==!1){const Ne=le[0],He=le[Se-1],qe={root:he.current,threshold:.99},it=En=>{me(!En[0].isIntersecting)},Ve=new IntersectionObserver(it,qe);Ve.observe(Ne);const Je=En=>{ue(!En[0].isIntersecting)},Rt=new IntersectionObserver(Je,qe);return Rt.observe(He),()=>{Ve.disconnect(),Rt.disconnect()}}},[F,m,ge,c==null?void 0:c.length]),d.useEffect(()=>{q(!0)},[]),d.useEffect(()=>{Pe()}),d.useEffect(()=>{Te(v0!==re)},[Te,re]),d.useImperativeHandle(a,()=>({updateIndicator:Pe,updateScrollButtons:ce}),[Pe,ce]);const Be=S.jsx(yN,h({},P,{className:Z(B.indicator,P.className),ownerState:N,style:h({},re,P.style)}));let yt=0;const Ye=d.Children.map(c,le=>{if(!d.isValidElement(le))return null;const Se=le.props.value===void 0?yt:le.props.value;ee.set(Se,yt);const Ne=Se===R;return yt+=1,d.cloneElement(le,h({fullWidth:M==="fullWidth",indicator:Ne&&!U&&Be,selected:Ne,selectionFollowsFocus:y,onChange:C,textColor:I,value:Se},yt===1&&R===!1&&!le.props.tabIndex?{tabIndex:0}:{}))}),be=le=>{const Se=se.current,Ne=kt(Se).activeElement;if(Ne.getAttribute("role")!=="tab")return;let qe=k==="horizontal"?"ArrowLeft":"ArrowUp",it=k==="horizontal"?"ArrowRight":"ArrowDown";switch(k==="horizontal"&&l&&(qe="ArrowRight",it="ArrowLeft"),le.key){case qe:le.preventDefault(),Eu(Se,Ne,g0);break;case it:le.preventDefault(),Eu(Se,Ne,m0);break;case"Home":le.preventDefault(),Eu(Se,null,m0);break;case"End":le.preventDefault(),Eu(Se,null,g0);break}},Le=Ae();return S.jsxs(mN,h({className:Z(B.root,f),ownerState:N,ref:n,as:p},L,{children:[Le.scrollButtonStart,Le.scrollbarSizeListener,S.jsxs(gN,{className:B.scroller,ownerState:N,style:{overflow:ae.overflow,[$?`margin${l?"Left":"Right"}`:"marginBottom"]:_?void 0:-ae.scrollbarWidth},ref:he,children:[S.jsx(vN,{"aria-label":s,"aria-labelledby":i,"aria-orientation":k==="vertical"?"vertical":null,className:B.flexContainer,ownerState:N,onKeyDown:be,ref:se,role:"tablist",children:Ye}),U&&Be]}),Le.scrollButtonEnd]}))});function xN(e){return _e("MuiTextField",e)}$e("MuiTextField",["root"]);const wN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],SN={standard:Ig,filled:kg,outlined:Rg},PN=e=>{const{classes:t}=e;return de({root:["root"]},xN,t)},kN=Y(CS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IN=d.forwardRef(function(t,n){const r=je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:s,className:i,color:a="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:C,InputLabelProps:k,inputProps:b,InputProps:m,inputRef:y,label:w,maxRows:E,minRows:P,multiline:x=!1,name:I,onBlur:R,onChange:M,onFocus:_,placeholder:L,required:F=!1,rows:$,select:T=!1,SelectProps:D,type:A,value:O,variant:j="outlined"}=r,N=K(r,wN),B=h({},r,{autoFocus:l,color:a,disabled:c,error:f,fullWidth:v,multiline:x,required:F,select:T,variant:j}),H=PN(B),V={};j==="outlined"&&(k&&typeof k.shrink<"u"&&(V.notched=k.shrink),V.label=w),T&&((!D||!D.native)&&(V.id=void 0),V["aria-describedby"]=void 0);const U=ut(C),q=g&&U?`${U}-helper-text`:void 0,re=w&&U?`${U}-label`:void 0,ie=SN[j],pe=S.jsx(ie,h({"aria-describedby":q,autoComplete:o,autoFocus:l,defaultValue:u,fullWidth:v,multiline:x,name:I,rows:$,maxRows:E,minRows:P,type:A,value:O,id:U,inputRef:y,onBlur:R,onChange:M,onFocus:_,placeholder:L,inputProps:b},V,m));return S.jsxs(kN,h({className:Z(H.root,i),disabled:c,error:f,fullWidth:v,ref:n,required:F,color:a,variant:j,ownerState:B},N,{children:[w!=null&&w!==""&&S.jsx(xS,h({htmlFor:U,id:re},k,{children:w})),T?S.jsx(Xd,h({"aria-describedby":q,id:U,labelId:re,value:O,input:pe},D,{children:s})):pe,g&&S.jsx(lj,h({id:q},p,{children:g}))]}))});class EN extends d.Component{constructor(){super(...arguments),this.state={open:!0},this.handleToggle=()=>{this.setState({open:!this.state.open})}}render(){return S.jsx("div",{children:S.jsx(W1,{position:"static",children:S.jsx(Og,{children:S.jsxs(er,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:["Colyseus Monitor v","0.17.5"]})})})})}}var MN={};const Fg=(MN.GAME_SERVER_URL||`${window.location.protocol}//${window.location.host}${window.location.pathname}`).replace(/\/$/,"");function RN(){return fetch(`${Fg}/api`).then(e=>e.json())}function TN(e){return fetch(`${Fg}/api/room?roomId=${e}`).then(t=>t.json())}function FS(e,t,...n){const r=new URLSearchParams;return r.set("roomId",e),r.set("method",t),r.set("args",JSON.stringify(n)),fetch(`${Fg}/api/room/call?${r.toString()}`).then(o=>o.json())}const _S=d.createContext(void 0);function Xe(){const e=d.useContext(_S);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
208
208
  `));return e}const DS=d.createContext(void 0),Ie=()=>{const e=d.useContext(DS);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},jS=d.createContext(void 0);function ll(){const e=d.useContext(jS);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
209
209
  `));return e}const y0={};function _g(e,t){const n=d.useRef(y0);return n.current===y0&&(n.current=e(t)),n}const $N=[];function LS(e){d.useEffect(e,$N)}const Kr=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
210
210
  `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},ON=Object.is;function AS(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!ON(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}Kr(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function FN(e){return e.acceptsApiRef}function b0(e,t){return FN(t)?t(e):t(e.current.state)}const _N=Object.is,Dg=AS,DN=()=>({state:null,equals:null,selector:null}),we=(e,t,n=_N)=>{const r=_g(DN),o=r.current.selector!==null,[l,s]=d.useState(o?null:b0(e,t));return r.current.state=l,r.current.equals=n,r.current.selector=t,LS(()=>e.current.store.subscribe(()=>{const i=b0(e,r.current.selector);r.current.equals(r.current.state,i)||(r.current.state=i,s(i))})),l};function Ze(e){return _e("MuiDataGrid",e)}const z=$e("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var Fc="NOT_FOUND";function jN(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Fc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function LN(e,t){var n=[];function r(i){var a=n.findIndex(function(c){return t(i,c.key)});if(a>-1){var u=n[a];return a>0&&(n.splice(a,1),n.unshift(u)),u.value}return Fc}function o(i,a){r(i)===Fc&&(n.unshift({key:i,value:a}),n.length>e&&n.pop())}function l(){return n}function s(){n=[]}return{get:r,put:o,getEntries:l,clear:s}}var AN=function(t,n){return t===n};function NN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,l=0;l<o;l++)if(!e(n[l],r[l]))return!1;return!0}}function Zd(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?AN:r,l=n.maxSize,s=l===void 0?1:l,i=n.resultEqualityCheck,a=NN(o),u=s===1?jN(a):LN(s,a);function c(){var f=u.get(arguments);if(f===Fc){if(f=e.apply(null,arguments),i){var p=u.getEntries(),v=p.find(function(g){return i(g.value,f)});v&&(f=v.value)}u.put(arguments,f)}return f}return c.clearCache=function(){return u.clear()},c}function zN(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function HN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];var u=0,c,f={memoizeOptions:void 0},p=i.pop();if(typeof p=="object"&&(f=p,p=i.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var v=f,g=v.memoizeOptions,C=g===void 0?n:g,k=Array.isArray(C)?C:[C],b=zN(i),m=e.apply(void 0,[function(){return u++,p.apply(null,arguments)}].concat(k)),y=e(function(){for(var E=[],P=b.length,x=0;x<P;x++)E.push(b[x].apply(null,arguments));return c=m.apply(null,E),c});return Object.assign(y,{resultFunc:p,memoizedResultFunc:m,dependencies:b,lastResult:function(){return c},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),y};return o}var BN=HN(Zd);const VN={cache:new WeakMap};Kr(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function yh(e){return"current"in e&&"instanceId"in e.current}const bh={id:"default"},ze=(e,t,n,r,o,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let i;if(e&&t&&n)i=(a,u)=>{const c=yh(a),f=u??(c?a.current.instanceId:bh),p=c?a.current.state:a,v=e(p,f),g=t(p,f);return n(v,g)};else if(e&&t)i=(a,u)=>{const c=yh(a),f=u??(c?a.current.instanceId:bh),p=c?a.current.state:a,v=e(p,f);return t(v)};else throw new Error("Missing arguments");return i.acceptsApiRef=!0,i},wt=(...e)=>{const t=(...n)=>{var r,o;const[l,s]=n,i=yh(l),a=i?l.current.instanceId:s??bh,u=i?l.current.state:l,{cache:c}=VN;if(c.get(a)&&(r=c.get(a))!=null&&r.get(e)){var f;return(f=c.get(a))==null?void 0:f.get(e)(u,a)}const p=BN(...e);return c.get(a)||c.set(a,new Map),(o=c.get(a))==null||o.set(e,p),p(u,a)};return t.acceptsApiRef=!0,t},Sl=e=>e.columns,uo=ze(Sl,e=>e.orderedFields),li=ze(Sl,e=>e.lookup),Hr=wt(uo,li,(e,t)=>e.map(n=>t[n])),yr=ze(Sl,e=>e.columnVisibilityModel),Xt=wt(Hr,yr,(e,t)=>e.filter(n=>t[n.field]!==!1)),Jd=wt(Xt,e=>e.map(t=>t.field)),Us=wt(Xt,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),jg=ze(Xt,Us,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),NS=wt(Hr,e=>e.filter(t=>t.filterable)),GN=wt(Hr,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),ef=e=>e.columnGrouping,UN=wt(ef,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),zS=wt(ef,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),WN=wt(ef,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),qa=ze(ef,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Ir=e=>e.rows,tf=ze(Ir,e=>e.totalRowCount),KN=ze(Ir,e=>e.loading),qN=ze(Ir,e=>e.totalTopLevelRowCount),io=ze(Ir,e=>e.dataRowIdToModelLookup),_c=ze(Ir,e=>e.dataRowIdToIdLookup),vr=ze(Ir,e=>e.tree),YN=ze(Ir,e=>e.groupingName),C0=ze(Ir,e=>e.treeDepths),nf=wt(Ir,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),Fi=ze(Ir,e=>e.dataRowIds),QN=ze(Ir,e=>e==null?void 0:e.additionalRowGroups),si=wt(QN,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}})}}),XN=ze(si,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),HS=()=>{var e;const t=ll(),n=Ie(),r=we(t,Xt),o=we(t,tf),l=we(t,qa),s=we(t,XN);let i="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(i="treegrid"),{role:i,"aria-colcount":r.length,"aria-rowcount":l+1+s+o,"aria-multiselectable":!n.disableMultipleRowSelection}},ZN=e=>{const{classes:t}=e;return de({root:["main"]},Ze,t)},JN=qt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),ez=d.forwardRef((e,t)=>{var n;const r=Ie(),o=ZN(r),l=(n=r.experimentalFeatures)!=null&&n.ariaV7?HS:null,s=typeof l=="function"?l():null;return S.jsx(JN,h({ref:t,className:o.root,ownerState:r},s,{children:e.children}))}),BS=e=>e.sorting,Lg=ze(BS,e=>e.sortedRows),Ag=wt(Lg,io,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Un=ze(BS,e=>e.sortModel),tz=wt(Un,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),Ng=e=>e.filter,Gt=ze(Ng,e=>e.filterModel);ze(Gt,e=>e.quickFilterValues);const nz=e=>e.visibleRowsLookup,VS=ze(Ng,e=>e.filteredRowsLookup);ze(Ng,e=>e.filteredDescendantCountLookup);const sl=wt(nz,Ag,(e,t)=>t.filter(n=>e[n.id]!==!1)),Yi=wt(sl,e=>e.map(t=>t.id)),rz=wt(VS,Ag,(e,t)=>t.filter(n=>e[n.id]!==!1)),oz=wt(rz,e=>e.map(t=>t.id)),GS=wt(sl,vr,nf,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),US=ze(sl,e=>e.length),WS=ze(GS,e=>e.length),lz=wt(Gt,li,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,l;if(!r.field)return!1;const s=t[r.field];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const i=s.filterOperators.find(a=>a.value===r.operator);return i?!i.InputComponent||r.value!=null&&((l=r.value)==null?void 0:l.toString())!=="":!1})}),sz=wt(lz,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),rf=e=>e.focus,Tn=ze(rf,e=>e.cell),iz=ze(rf,e=>e.columnHeader);ze(rf,e=>e.columnHeaderFilter);const Dc=ze(rf,e=>e.columnGroupHeader),of=e=>e.tabIndex,jc=ze(of,e=>e.cell),KS=ze(of,e=>e.columnHeader);ze(of,e=>e.columnHeaderFilter);const az=ze(of,e=>e.columnGroupHeader),zg=e=>e.density,uz=ze(zg,e=>e.value),ii=ze(zg,e=>e.factor),Ch=e=>e.columnMenu;function cz(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=ll(),l=Ie(),s=d.useRef(null),i=we(o,Xt),a=we(o,sz),u=we(o,tz),c=we(o,Us),f=we(o,KS),p=we(o,jc),v=we(o,az),g=we(o,iz),C=we(o,Dc),k=we(o,ii),b=we(o,qa),m=we(o,Ch),y=we(o,yr),w=we(o,WN),E=!(v===null&&f===null&&p===null);st(()=>{o.current.computeSizeAndPublishResizeEvent();const M=s.current;if(typeof ResizeObserver>"u")return()=>{};let _;const L=new ResizeObserver(()=>{_=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return M&&L.observe(M),()=>{_&&window.cancelAnimationFrame(_),M&&L.unobserve(M)}},[o]);const P=d.useRef(null),x=d.useRef(null),I=d.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:x,columnHeadersElementRef:P,virtualScrollerRef:I,mainElementRef:s});const R=!!o.current.getRootDimensions();return S.jsxs(ez,{ref:s,children:[S.jsx(l.slots.columnHeaders,h({ref:x,innerRef:P,visibleColumns:i,filterColumnLookup:a,sortColumnLookup:u,columnPositions:c,columnHeaderTabIndexState:f,columnGroupHeaderTabIndexState:v,columnHeaderFocus:g,columnGroupHeaderFocus:C,densityFactor:k,headerGroupingMaxDepth:b,columnMenuState:m,columnVisibility:y,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:E},n)),R&&S.jsx(t,{ref:I}),r]})}function dz(){var e;const t=Ie();return t.hideFooter?null:S.jsx(t.slots.footer,h({},(e=t.slotProps)==null?void 0:e.footer))}const dn="auto-generated-group-node-root",Ts=Symbol("mui.id_autogenerated"),fz=()=>({type:"group",id:dn,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function pz(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
@@ -212,7 +212,7 @@ Error generating stack: `+l.message+`
212
212
  ${e.vars.palette.action.selectedOpacity} +
213
213
  ${e.vars.palette.action.hoverOpacity}
214
214
  ))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${z.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${z["root--disableUserSelection"]} .${z.cell}`]:{userSelect:"none"},[`& .${z.row}:not(.${z["row--dynamicHeight"]}) > .${z.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${z.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${z.cell}.${z["cell--selectionMode"]}`]:{cursor:"default"},[`& .${z.cell}.${z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${z["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${z["row--editing"]} .${z.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${z.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${z.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${z["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${z.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${z.withBorderColor}`]:{borderColor:t},[`& .${z["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${z["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${z["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${z["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${z["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${z["columnHeader--dragging"]}, & .${z["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${z["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${z.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),w4=["children","className"],S4=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${X(n)}`,"withBorderColor"]};return de(o,Ze,r)},P4=d.forwardRef(function(t,n){var r;const o=Ie(),{children:l,className:s}=t,i=K(t,w4),a=ll(),u=we(a,uz),c=d.useRef(null),f=ft(c,n),p=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:HS,v=typeof p=="function"?p():null,g=h({},o,{density:u}),C=S4(g);a.current.register("public",{rootElementRef:c});const[k,b]=d.useState(!1);return st(()=>{b(!0)},[]),k?S.jsx(x4,h({ref:f,className:Z(s,C.root),ownerState:g},v,i,{children:l})):null}),k4=["className"],I4=e=>{const{classes:t}=e;return de({root:["footerContainer","withBorderColor"]},Ze,t)},E4=qt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),M4=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,k4),l=Ie(),s=I4(l);return S.jsx(E4,h({ref:n,className:Z(s.root,r),ownerState:l},o))}),R4=["className"],T4=e=>{const{classes:t}=e;return de({root:["overlay"]},Ze,t)},$4=qt("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),Vg=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,R4),l=Ie(),s=T4(l);return S.jsx($4,h({ref:n,className:Z(s.root,r),ownerState:l},o))}),O4=["className"],F4=e=>{const{classes:t}=e;return de({root:["iconButtonContainer"]},Ze,t)},_4=qt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),lP=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,O4),l=Ie(),s=F4(l);return S.jsx(_4,h({ref:n,className:Z(s.root,r),ownerState:l},o))}),D4=e=>{const{classes:t}=e;return de({icon:["sortIcon"]},Ze,t)};function j4(e,t,n,r){let o;const l={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,l.sortingOrder=r),o?S.jsx(o,h({fontSize:"small",className:n},l)):null}function L4(e){var t;const{direction:n,index:r,sortingOrder:o}=e,l=Xe(),s=Ie(),i=h({},e,{classes:s.classes}),a=D4(i),u=j4(s.slots,n,a.icon,o);if(!u)return null;const c=S.jsx(s.slots.baseIconButton,h({tabIndex:-1,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),title:l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:u}));return S.jsxs(lP,{children:[r!=null&&S.jsx(fS,{badgeContent:r,color:"default",children:c}),r==null&&c]})}const A4=d.memo(L4),N4=e=>{const{classes:t,open:n}=e;return de({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Ze,t)},z4=d.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:l,columnMenuButtonId:s,iconButtonRef:i}=e,a=Xe(),u=Ie(),c=h({},e,{classes:u.classes}),f=N4(c),p=d.useCallback(v=>{v.preventDefault(),v.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return S.jsx("div",{className:f.root,children:S.jsx(u.slots.baseTooltip,h({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:S.jsx(u.slots.baseIconButton,h({ref:i,tabIndex:-1,className:f.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?l:void 0,id:s},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:S.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function H4({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:l,target:s,onExited:i}){const a=Xe(),u=a.current.getColumn(o),c=ct(f=>{f&&(f.stopPropagation(),s!=null&&s.contains(f.target))||a.current.hideColumnMenu()});return!s||!u?null:S.jsx(oP,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:l,target:s,onClose:c,onExited:i,children:S.jsx(n,h({colDef:u,hideMenu:c,open:l,id:e,labelledby:t},r))})}const B4=["className"],V4=e=>{const{classes:t}=e;return de({root:["columnHeaderTitle"]},Ze,t)},G4=qt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),U4=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,B4),l=Ie(),s=V4(l);return S.jsx(G4,h({ref:n,className:Z(s.root,r),ownerState:l},o))});function W4(e){var t;const{label:n,description:r}=e,o=Ie(),l=d.useRef(null),[s,i]=d.useState(""),a=d.useCallback(()=>{if(!r&&l!=null&&l.current){const u=xz(l.current);i(u?n:"")}},[r,n]);return S.jsx(o.slots.baseTooltip,h({title:r||s},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:S.jsx(U4,{onMouseOver:a,ref:l,children:n})}))}const K4=["resizable","resizing","height","side"];var sP=function(e){return e.Left="left",e.Right="right",e}(sP||{});const q4=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${X(o)}`],icon:["iconSeparator"]};return de(l,Ze,r)};function Y4(e){const{height:t,side:n=sP.Right}=e,r=K(e,K4),o=Ie(),l=h({},e,{side:n,classes:o.classes}),s=q4(l),i=d.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return S.jsx("div",h({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:i,children:S.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const Q4=d.memo(Y4),X4=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],iP=d.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:l,height:s,isResizing:i,sortDirection:a,hasFocus:u,tabIndex:c,separatorSide:f,isDraggable:p,headerComponent:v,description:g,width:C,columnMenuIconButton:k=null,columnMenu:b=null,columnTitleIconButtons:m=null,headerClassName:y,label:w,resizable:E,draggableContainerProps:P,columnHeaderSeparatorProps:x}=t,I=K(t,X4),R=ll(),M=Ie(),_=d.useRef(null),[L,F]=d.useState(o),$=ft(_,n);let T="none";return a!=null&&(T=a==="asc"?"ascending":"descending"),d.useEffect(()=>{L||F(o)},[L,o]),d.useLayoutEffect(()=>{const D=R.current.state.columnMenu;if(u&&!D.open){const O=_.current.querySelector('[tabindex="0"]')||_.current;O==null||O.focus(),R.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[R,u]),S.jsxs("div",h({ref:$,className:Z(r.root,y),style:{height:s,width:C,minWidth:C,maxWidth:C},role:"columnheader",tabIndex:c,"aria-colindex":l+1,"aria-sort":T,"aria-label":v==null?w:void 0},I,{children:[S.jsxs("div",h({className:r.draggableContainer,draggable:p,role:"presentation"},P,{children:[S.jsxs("div",{className:r.titleContainer,role:"presentation",children:[S.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:S.jsx(W4,{label:w,description:g,columnWidth:C})}),m]}),k]})),S.jsx(Q4,h({resizable:!M.disableColumnResize&&!!E,resizing:i,height:s,side:f},x)),b]}))}),Z4=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:l,filterItemsCounter:s}=e,i=o!=null,a=s!=null&&s>0,u=t.type==="number",c={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",i&&"columnHeader--sorted",a&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",l&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return de(c,Ze,n)};function J4(e){var t,n,r,o;const{colDef:l,columnMenuOpen:s,colIndex:i,headerHeight:a,isResizing:u,sortDirection:c,sortIndex:f,filterItemsCounter:p,hasFocus:v,tabIndex:g,disableReorder:C,separatorSide:k}=e,b=ll(),m=Ie(),y=d.useRef(null),w=ut(),E=ut(),P=d.useRef(null),[x,I]=d.useState(s),R=d.useMemo(()=>!m.disableColumnReorder&&!C&&!l.disableReorder,[m.disableColumnReorder,C,l.disableReorder]);let M;l.renderHeader&&(M=l.renderHeader(b.current.getColumnHeaderParams(l.field)));const _=h({},e,{classes:m.classes,showRightBorder:m.showColumnVerticalBorder}),L=Z4(_),F=d.useCallback(U=>q=>{Ya(q)||b.current.publishEvent(U,b.current.getColumnHeaderParams(l.field),q)},[b,l.field]),$=d.useMemo(()=>({onClick:F("columnHeaderClick"),onDoubleClick:F("columnHeaderDoubleClick"),onMouseOver:F("columnHeaderOver"),onMouseOut:F("columnHeaderOut"),onMouseEnter:F("columnHeaderEnter"),onMouseLeave:F("columnHeaderLeave"),onKeyDown:F("columnHeaderKeyDown"),onFocus:F("columnHeaderFocus"),onBlur:F("columnHeaderBlur")}),[F]),T=d.useMemo(()=>R?{onDragStart:F("columnHeaderDragStart"),onDragEnter:F("columnHeaderDragEnter"),onDragOver:F("columnHeaderDragOver"),onDragEnd:F("columnHeaderDragEnd")}:{},[R,F]),D=d.useMemo(()=>({onMouseDown:F("columnSeparatorMouseDown"),onDoubleClick:F("columnSeparatorDoubleClick")}),[F]);d.useEffect(()=>{x||I(s)},[x,s]);const A=d.useCallback(()=>{I(!1)},[]),O=!m.disableColumnMenu&&!l.disableColumnMenu&&S.jsx(z4,{colDef:l,columnMenuId:w,columnMenuButtonId:E,open:x,iconButtonRef:P}),j=S.jsx(H4,{columnMenuId:w,columnMenuButtonId:E,field:l.field,open:s,target:P.current,ContentComponent:m.slots.columnMenu,contentComponentProps:(t=m.slotProps)==null?void 0:t.columnMenu,onExited:A}),N=(n=l.sortingOrder)!=null?n:m.sortingOrder,B=S.jsxs(d.Fragment,{children:[!m.disableColumnFilter&&S.jsx(m.slots.columnHeaderFilterIconButton,h({field:l.field,counter:p},(r=m.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),l.sortable&&!l.hideSortIcons&&S.jsx(A4,{direction:c,index:f,sortingOrder:N})]});d.useLayoutEffect(()=>{const U=b.current.state.columnMenu;if(v&&!U.open){var q;const ie=y.current.querySelector('[tabindex="0"]')||y.current;ie==null||ie.focus(),(q=b.current.columnHeadersContainerElementRef)!=null&&q.current&&(b.current.columnHeadersContainerElementRef.current.scrollLeft=0)}},[b,v]);const H=typeof l.headerClassName=="function"?l.headerClassName({field:l.field,colDef:l}):l.headerClassName,V=(o=l.headerName)!=null?o:l.field;return S.jsx(iP,h({ref:y,classes:L,columnMenuOpen:s,colIndex:i,height:a,isResizing:u,sortDirection:c,hasFocus:v,tabIndex:g,separatorSide:k,isDraggable:R,headerComponent:M,description:l.description,elementId:l.field,width:l.computedWidth,columnMenuIconButton:O,columnTitleIconButtons:B,headerClassName:H,label:V,resizable:!m.disableColumnResize&&!!l.resizable,"data-field":l.field,columnMenu:j,draggableContainerProps:T,columnHeaderSeparatorProps:D},$))}const Ra=()=>({items:[],logicOperator:yn.And,quickFilterValues:[],quickFilterLogicOperator:yn.And}),S0=1e3;class eH{constructor(t=S0){this.timeouts=new Map,this.cleanupTimeout=S0,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class tH{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var Br=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Br||{});class nH{}function rH(e){let t=0;return function(r,o,l,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new tH:new eH);const[i]=d.useState(new nH),a=d.useRef(null),u=d.useRef();u.current=l;const c=d.useRef(null);if(!a.current&&u.current){const f=(p,v,g)=>{if(!v.defaultMuiPrevented){var C;(C=u.current)==null||C.call(u,p,v,g)}};a.current=r.current.subscribeEvent(o,f,s),t+=1,c.current={cleanupToken:t},e.registry.register(i,()=>{var p;(p=a.current)==null||p.call(a),a.current=null,c.current=null},c.current)}else!u.current&&a.current&&(a.current(),a.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));d.useEffect(()=>{if(!a.current&&u.current){const f=(p,v,g)=>{if(!v.defaultMuiPrevented){var C;(C=u.current)==null||C.call(u,p,v,g)}};a.current=r.current.subscribeEvent(o,f,s)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var f;(f=a.current)==null||f.call(a),a.current=null}},[r,o,s])}}const oH={registry:null},Ee=rH(oH),lH={isFirst:!0};function Ct(e,t,n){Ee(e,t,n,lH)}function en(e,t){const n=d.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function sH(e){return typeof e=="number"&&!Number.isNaN(e)}function aP(e){return typeof e=="function"}function Gg(e){return typeof e=="object"&&e!==null}function iH(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function Yu(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Ws=(e,t,n)=>Math.max(t,Math.min(n,e));function kl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let l=0;l<o;l+=1)if(!kl(e[l],t[l]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;for(let l=0;l<o.length;l+=1){const s=o[l];if(!kl(s[1],t.get(s[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let l=0;l<o;l+=1)if(e[l]!==t[l])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const l=n[o];if(!kl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function aH(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function uH(e,t,n){const r=aH(e);return()=>t+(n-t)*r()}function uP(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const cH=(e,t,n,r,o)=>{const l=en(e,"useNativeEventListener"),[s,i]=d.useState(!1),a=d.useRef(r),u=d.useCallback(c=>a.current&&a.current(c),[]);d.useEffect(()=>{a.current=r},[r]),d.useEffect(()=>{let c;if(aP(t)?c=t():c=t&&t.current?t.current:null,c&&n&&!s){l.debug(`Binding native ${n} event`),c.addEventListener(n,u,o);const f=c;i(!0);const p=()=>{l.debug(`Clearing native ${n} event`),f.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",p)}},[t,u,n,s,l,o,e])},Qa=e=>{const t=d.useRef(!0);t.current&&(t.current=!1,e())},dH=100,fH=e=>e?0:100,cP=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;Kr(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const dP=e=>({page:0,pageSize:e?0:100}),pH=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),fP=(e,t)=>{if(t===Br.DataGrid&&e>dH)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
215
- `))},Ug=e=>e.pagination,Wn=ze(Ug,e=>e.paginationModel),bs=ze(Ug,e=>e.rowCount),hH=ze(Wn,e=>e.page),pP=ze(Wn,e=>e.pageSize),mH=ze(pP,bs,(e,t)=>cP(t,e)),Wg=wt(Wn,vr,nf,sl,GS,(e,t,n,r,o)=>{const l=o.length,s=Math.min(e.pageSize*e.page,l-1),i=Math.min(s+e.pageSize-1,l-1);if(s===-1||i===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:i};const a=o[s],u=i-s+1,c=r.findIndex(g=>g.id===a.id);let f=c,p=0;for(;f<r.length&&p<=u;){var v;const g=r[f],C=(v=t[g.id])==null?void 0:v.depth;C===void 0?f+=1:((p<u||C>0)&&(f+=1),C===0&&(p+=1))}return{firstRowIndex:c,lastRowIndex:f-1}}),gH=wt(sl,Wg,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),hP=wt(Yi,Wg,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Ta=e=>e.preferencePanel;var _l=function(e){return e.filters="filters",e.columns="columns",e}(_l||{});const $a=e=>e.rowsMeta,Kn=e=>e.rowSelection,vH=ze(Kn,e=>e.length),yH=wt(Kn,io,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Hc=wt(Kn,e=>e.reduce((t,n)=>(t[n]=n,t),{})),bH=Kr(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),mP=(e,t)=>t&&e.length>1?(bH(),[e[0]]):e,P0=(e,t)=>n=>h({},n,{sorting:h({},n.sorting,{sortModel:mP(e,t)})}),CH=e=>e==="desc",xH=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=CH(e.sort)?(...l)=>-1*n.sortComparator(...l):n.sortComparator;return{getSortCellParams:l=>({id:l,field:n.field,rowNode:t.current.getRowNode(l),value:t.current.getCellValue(l,n.field),api:t.current}),comparator:r}},wH=(e,t,n)=>e.reduce((r,o,l)=>{if(r!==0)return r;const s=t.params[l],i=n.params[l];return r=o.comparator(s.value,i.value,s,i),r},0),SH=(e,t)=>{const n=e.map(r=>xH(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(l=>l.getSortCellParams(o.id))})).sort((o,l)=>wH(n,o,l)).map(o=>o.node.id)},k0=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Kg=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,PH=new Intl.Collator,gP=(e,t)=>{const n=Kg(e,t);return n!==null?n:typeof e=="string"?PH.compare(e.toString(),t.toString()):e-t},Oa=(e,t)=>{const n=Kg(e,t);return n!==null?n:Number(e)-Number(t)},qg=(e,t)=>{const n=Kg(e,t);return n!==null?n:e>t?1:e<t?-1:0},vP=e=>e.headerFiltering,kH=ze(vP,e=>e.editing),IH=ze(vP,e=>e.menuOpen),EH=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return h({},e,{virtualization:n})};function MH(e,t){const n=l=>{e.current.setState(s=>h({},s,{virtualization:h({},s.virtualization,{enabled:l})}))};Ge(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:l=>{e.current.setState(s=>h({},s,{virtualization:h({},s.virtualization,{enabledForColumns:l})}))}},"public"),d.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const yP=e=>e.virtualization,RH=ze(yP,e=>e.enabled),bP=ze(yP,e=>e.enabledForColumns),TH=e=>{const{classes:t}=e;return de({icon:["filterIcon"]},Ze,t)};function $H(e){var t,n;const{counter:r,field:o,onClick:l}=e,s=Xe(),i=Ie(),a=h({},e,{classes:i.classes}),u=TH(a),c=we(s,Ta),f=ut(),p=ut(),v=d.useCallback(k=>{k.preventDefault(),k.stopPropagation();const{open:b,openedPanelValue:m}=Ta(s.current.state);b&&m===_l.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,p,f),l&&l(s.current.getColumnHeaderParams(o),k)},[s,o,l,p,f]);if(!r)return null;const g=c.open&&c.labelId===f,C=S.jsx(i.slots.baseIconButton,h({id:f,onClick:v,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?p:void 0},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:S.jsx(i.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return S.jsx(i.slots.baseTooltip,h({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=i.slotProps)==null?void 0:n.baseTooltip,{children:S.jsxs(lP,{children:[r>1&&S.jsx(fS,{badgeContent:r,color:"default",children:C}),r===1&&C]})}))}const OH=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],FH=e=>{const{classes:t}=e;return de({root:["checkboxInput"]},Ze,t)},_H=d.forwardRef(function(t,n){var r;const{field:o,id:l,value:s,rowNode:i,hasFocus:a,tabIndex:u}=t,c=K(t,OH),f=Xe(),p=Ie(),v={classes:p.classes},g=FH(v),C=d.useRef(null),k=d.useRef(null),b=ft(C,n),m=f.current.getCellElement(l,o),y=x=>{const I={value:x.target.checked,id:l};f.current.publishEvent("rowSelectionCheckboxChange",I,x)};d.useLayoutEffect(()=>{u===0&&m&&(m.tabIndex=-1)},[m,u]),d.useEffect(()=>{if(a){var x;const I=(x=C.current)==null?void 0:x.querySelector("input");I==null||I.focus({preventScroll:!0})}else k.current&&k.current.stop({})},[a]);const w=d.useCallback(x=>{nP(x.key)&&x.stopPropagation()},[]);if(i.type==="footer"||i.type==="pinnedRow")return null;const E=f.current.isRowSelectable(l),P=f.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return S.jsx(p.slots.baseCheckbox,h({ref:b,tabIndex:u,checked:s,onChange:y,className:g.root,inputProps:{"aria-label":P},onKeyDown:w,disabled:!E,touchRippleRef:k},(r=p.slotProps)==null?void 0:r.baseCheckbox,c))}),DH=_H,jH=["field","colDef"],LH=e=>{const{classes:t}=e;return de({root:["checkboxInput"]},Ze,t)},AH=d.forwardRef(function(t,n){var r;const o=K(t,jH),[,l]=d.useState(!1),s=Xe(),i=Ie(),a={classes:i.classes},u=LH(a),c=we(s,KS),f=we(s,Kn),p=we(s,Yi),v=we(s,hP),g=d.useMemo(()=>typeof i.isRowSelectable!="function"?f:f.filter(I=>s.current.getRow(I)?i.isRowSelectable(s.current.getRowParams(I)):!1),[s,i.isRowSelectable,f]),C=d.useMemo(()=>(!i.pagination||!i.checkboxSelectionVisibleOnly?p:v).reduce((R,M)=>(R[M]=!0,R),{}),[i.pagination,i.checkboxSelectionVisibleOnly,v,p]),k=d.useMemo(()=>g.filter(I=>C[I]).length,[g,C]),b=k>0&&k<Object.keys(C).length,m=k>0,y=I=>{const R={value:I.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",R)},w=c!==null&&c.field===t.field?0:-1;d.useLayoutEffect(()=>{const I=s.current.getColumnHeaderElement(t.field);w===0&&I&&(I.tabIndex=-1)},[w,s,t.field]);const E=d.useCallback(I=>{I.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!m})},[s,m]),P=d.useCallback(()=>{l(I=>!I)},[]);d.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",P),[s,P]);const x=s.current.getLocaleText(m?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return S.jsx(i.slots.baseCheckbox,h({ref:n,indeterminate:b,checked:m,onChange:y,className:u.root,inputProps:{"aria-label":x},tabIndex:w,onKeyDown:E},(r=i.slotProps)==null?void 0:r.baseCheckbox,o))}),I0=Ke(S.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),E0=Ke(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),M0=Ke(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),R0=Ke(S.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),NH=Ke(S.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),T0=Ke(S.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),zH=Ke(S.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Ke(S.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Ke(S.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const HH=Ke(S.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),BH=Ke(S.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),VH=Ke(S.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),GH=Ke(S.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),UH=Ke(S.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),WH=Ke(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),op=Ke(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$0=Ke(S.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),KH=Ke(S.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),qH=Ke(S.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),O0=Ke(S.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),YH=Ke(S.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),QH=Ke(S.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),XH=Ke(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),ZH=Ke(S.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),JH=Ke(S.jsx("g",{children:S.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),e3=Ke(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Ke(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const t3=Ke(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),n3=["hideMenu","colDef","id","labelledby","className","children","open"],r3=Y(Eg)(()=>({minWidth:248})),o3=d.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:l,className:s,children:i,open:a}=t,u=K(t,n3),c=d.useCallback(f=>{tP(f.key)&&f.preventDefault(),r4(f.key)&&r(f)},[r]);return S.jsx(r3,h({id:o,ref:n,className:Z(z.menuList,s),"aria-labelledby":l,onKeyDown:c,autoFocus:a},u,{children:i}))}),l3=["displayOrder"],s3=e=>{const t=ll(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:l={},hideMenu:s,colDef:i,addDividers:a=!0}=e,u=d.useMemo(()=>h({},n,o),[n,o]),c=d.useMemo(()=>{if(!l||Object.keys(l).length===0)return r;const v=h({},l);return Object.entries(r).forEach(([g,C])=>{v[g]=h({},C,l[g]||{})}),v},[r,l]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=d.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(g=>!v.includes(g))},[o,n]);return d.useMemo(()=>{const C=Array.from(new Set([...f,...p])).filter(k=>u[k]!=null).sort((k,b)=>{const m=c[k],y=c[b],w=Number.isFinite(m==null?void 0:m.displayOrder)?m.displayOrder:100,E=Number.isFinite(y==null?void 0:y.displayOrder)?y.displayOrder:100;return w-E});return C.reduce((k,b,m)=>{let y={colDef:i,onClick:s};const w=c[b];if(w){const E=K(w,l3);y=h({},y,E)}return a&&m!==C.length-1?[...k,[u[b],y],[bS,{}]]:[...k,[u[b],y]]},[])},[a,i,f,s,u,c,p])};function i3(e){const{colDef:t,onClick:n}=e,r=Xe(),o=Ie(),i=Xt(r).filter(u=>u.disableColumnMenu!==!0).length===1,a=d.useCallback(u=>{i||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,i]);return o.disableColumnSelector||t.hideable===!1?null:S.jsxs(zr,{onClick:a,disabled:i,children:[S.jsx(Ms,{children:S.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),S.jsx(Rs,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function a3(e){const{onClick:t}=e,n=Xe(),r=Ie(),o=d.useCallback(l=>{t(l),n.current.showPreferences(_l.columns)},[n,t]);return r.disableColumnSelector?null:S.jsxs(zr,{onClick:o,children:[S.jsx(Ms,{children:S.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),S.jsx(Rs,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function u3(e){return S.jsxs(d.Fragment,{children:[S.jsx(i3,h({},e)),S.jsx(a3,h({},e))]})}function c3(e){const{colDef:t,onClick:n}=e,r=Xe(),o=Ie(),l=d.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:S.jsxs(zr,{onClick:l,children:[S.jsx(Ms,{children:S.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),S.jsx(Rs,{children:r.current.getLocaleText("columnMenuFilter")})]})}function d3(e){var t;const{colDef:n,onClick:r}=e,o=Xe(),l=we(o,Un),s=Ie(),i=d.useMemo(()=>{if(!n)return null;const f=l.find(p=>p.field===n.field);return f==null?void 0:f.sort},[n,l]),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,u=d.useCallback(f=>{r(f);const p=f.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,p===i?null:p)},[o,n,r,i]);if(!n||!n.sortable||!a.some(f=>!!f))return null;const c=f=>{const p=o.current.getLocaleText(f);return typeof p=="function"?p(n):p};return S.jsxs(d.Fragment,{children:[a.includes("asc")&&i!=="asc"?S.jsxs(zr,{onClick:u,"data-value":"asc",children:[S.jsx(Ms,{children:S.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),S.jsx(Rs,{children:c("columnMenuSortAsc")})]}):null,a.includes("desc")&&i!=="desc"?S.jsxs(zr,{onClick:u,"data-value":"desc",children:[S.jsx(Ms,{children:S.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),S.jsx(Rs,{children:c("columnMenuSortDesc")})]}):null,a.includes(null)&&i!=null?S.jsxs(zr,{onClick:u,children:[S.jsx(Ms,{}),S.jsx(Rs,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const f3=["defaultSlots","defaultSlotProps","slots","slotProps"],p3={columnMenuSortItem:d3,columnMenuFilterItem:c3,columnMenuColumnsItem:u3},h3={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},m3=d.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}=t,i=K(t,f3),a=s3(h({},i,{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}));return S.jsx(o3,h({ref:n},i,{children:a.map(([u,c],f)=>S.jsx(u,h({},c),f))}))}),g3=d.forwardRef(function(t,n){return S.jsx(m3,h({},t,{ref:n,defaultSlots:p3,defaultSlotProps:h3}))}),v3=["className"],y3=e=>{const{classes:t}=e;return de({root:["panelContent"]},Ze,t)},b3=qt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function CP(e){const{className:t}=e,n=K(e,v3),r=Ie(),o=y3(r);return S.jsx(b3,h({className:Z(t,o.root),ownerState:r},n))}const C3=["className"],x3=e=>{const{classes:t}=e;return de({root:["panelFooter"]},Ze,t)},w3=qt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function xP(e){const{className:t}=e,n=K(e,C3),r=Ie(),o=x3(r);return S.jsx(w3,h({className:Z(t,o.root),ownerState:r},n))}const S3=["className"],P3=e=>{const{classes:t}=e;return de({root:["panelHeader"]},Ze,t)},k3=qt("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function I3(e){const{className:t}=e,n=K(e,S3),r=Ie(),o=P3(r);return S.jsx(k3,h({className:Z(t,o.root),ownerState:r},n))}const E3=["className","slotProps"],M3=e=>{const{classes:t}=e;return de({root:["panelWrapper"]},Ze,t)},R3=Y("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),T3=()=>!0,wP=d.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,l=K(t,E3),s=Ie(),i=M3(s);return S.jsx(gS,h({open:!0,disableEnforceFocus:!0,isEnabled:T3},o.TrapFocus,{children:S.jsx(R3,h({ref:n,tabIndex:-1,className:Z(r,i.root),ownerState:s},l))}))}),$3=!1,O3=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],F3=e=>{const{classes:t}=e;return de({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Ze,t)},_3=Y("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),D3=Y("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${ln.root}`]:{marginRight:e.spacing(.5)}}));Y(so)({justifyContent:"flex-end"});const F0=new Intl.Collator,j3=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function L3(e){var t,n,r;const o=Xe(),l=d.useRef(null),s=we(o,Hr),i=we(o,yr),a=Ie(),[u,c]=d.useState(""),f=F3(a),{sort:p,searchPredicate:v=j3,autoFocusSearchField:g=!0,disableHideAllButton:C=!1,disableShowAllButton:k=!1,getTogglableColumns:b}=e,m=K(e,O3),y=d.useMemo(()=>{switch(p){case"asc":return[...s].sort((_,L)=>F0.compare(_.headerName||_.field,L.headerName||L.field));case"desc":return[...s].sort((_,L)=>-F0.compare(_.headerName||_.field,L.headerName||L.field));default:return s}},[s,p]),w=_=>{const{name:L}=_.target;o.current.setColumnVisibility(L,i[L]===!1)},E=d.useCallback(_=>{const L=yr(o),F=h({},L),$=b?b(s):null;return s.forEach(T=>{T.hideable&&($==null||$.includes(T.field))&&(_?delete F[T.field]:F[T.field]=!1)}),o.current.setColumnVisibilityModel(F)},[o,s,b]),P=d.useCallback(_=>{c(_.target.value)},[]),x=d.useMemo(()=>{const _=b?b(y):null,L=_?y.filter(({field:F})=>_.includes(F)):y;return u?L.filter(F=>v(F,u.toLowerCase())):L},[y,u,v,b]),I=d.useRef(null);d.useEffect(()=>{g?l.current.focus():I.current&&typeof I.current.focus=="function"&&I.current.focus()},[g]);let R=!1;const M=_=>R===!1&&_.hideable!==!1?(R=!0,!0):!1;return S.jsxs(wP,h({},m,{children:[S.jsx(I3,{children:S.jsx(a.slots.baseTextField,h({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:u,onChange:P,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),S.jsx(CP,{children:S.jsx(_3,{className:f.root,ownerState:a,children:x.map(_=>{var L;return S.jsxs(D3,{className:f.columnsPanelRow,ownerState:a,children:[S.jsx(e5,{control:S.jsx(a.slots.baseSwitch,h({disabled:_.hideable===!1,checked:i[_.field]!==!1,onClick:w,name:_.field,size:"small",inputRef:M(_)?I:void 0},(L=a.slotProps)==null?void 0:L.baseSwitch)),label:_.headerName||_.field}),!a.disableColumnReorder&&$3]},_.field)})})}),k&&C?null:S.jsxs(xP,{children:[C?S.jsx("span",{}):S.jsx(a.slots.baseButton,h({onClick:()=>E(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelHideAllButton")})),k?null:S.jsx(a.slots.baseButton,h({onClick:()=>E(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:k,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const A3=["children","className","classes"],N3=$e("MuiDataGrid",["panel","paper"]),z3=Y(zl,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),H3=Y(kr,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),B3=d.forwardRef((e,t)=>{const{children:n,className:r}=e,o=K(e,A3),l=Xe(),s=Ie(),i=N3,[a,u]=d.useState(!1),c=d.useCallback(()=>{l.current.hidePreferences()},[l]),f=d.useCallback(C=>{Nc(C.key)&&l.current.hidePreferences()},[l]),p=d.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[v,g]=d.useState(null);return d.useEffect(()=>{var C;const k=(C=l.current.rootElementRef)==null||(C=C.current)==null?void 0:C.querySelector(`.${z.columnHeaders}`);k&&g(k)},[l]),v?S.jsx(z3,h({ref:t,placement:"bottom-start",className:Z(r,i.panel),ownerState:s,anchorEl:v,modifiers:p},o,{children:S.jsx(mS,{mouseEvent:"onMouseUp",onClickAway:c,children:S.jsx(H3,{className:i.paper,ownerState:s,elevation:8,onKeyDown:f,children:a&&n})})})):null}),V3=d.forwardRef(function(t,n){var r,o,l;const s=Xe(),i=we(s,Hr),a=Ie(),u=we(s,Ta),c=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:_l.filters);return S.jsx(a.slots.panel,h({ref:n,as:a.slots.basePopper,open:i.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(l=a.slotProps)==null?void 0:l.basePopper,{children:c}))}),G3=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],U3=["InputComponentProps"],W3=e=>{const{classes:t}=e;return de({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Ze,t)},K3=Y("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),q3=Y("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Y3=Y("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Q3=Y("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),X3=Y("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Z3=Y("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),J3=e=>{switch(e){case yn.And:return"filterPanelOperatorAnd";case yn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Pi=e=>e.headerName||e.field,_0=new Intl.Collator,eB=d.forwardRef(function(t,n){var r,o,l,s,i,a,u,c,f,p;const{item:v,hasMultipleFilters:g,deleteFilter:C,applyFilterChanges:k,multiFilterOperator:b,showMultiFilterOperators:m,disableMultiFilterOperator:y,applyMultiFilterOperatorChanges:w,focusElementRef:E,logicOperators:P=[yn.And,yn.Or],columnsSort:x,filterColumns:I,deleteIconProps:R={},logicOperatorInputProps:M={},operatorInputProps:_={},columnInputProps:L={},valueInputProps:F={}}=t,$=K(t,G3),T=Xe(),D=we(T,NS),A=we(T,Gt),O=ut(),j=ut(),N=ut(),B=ut(),H=Ie(),V=W3(H),U=d.useRef(null),q=d.useRef(null),re=g&&P.length>0,ie=((r=H.slotProps)==null?void 0:r.baseFormControl)||{},me=(l=(((o=H.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?l:!0,ve=((s=H.slotProps)==null?void 0:s.baseInputLabel)||{},ue=((i=H.slotProps)==null?void 0:i.baseSelectOption)||{},{InputComponentProps:ge}=F,Q=K(F,U3),ae=d.useMemo(()=>{if(I===void 0||typeof I!="function")return D;const xe=I({field:v.field,columns:D,currentFilters:(A==null?void 0:A.items)||[]});return D.filter(te=>xe.includes(te.field))},[I,A==null?void 0:A.items,D,v.field]),ne=d.useMemo(()=>{switch(x){case"asc":return ae.sort((xe,te)=>_0.compare(Pi(xe),Pi(te)));case"desc":return ae.sort((xe,te)=>-_0.compare(Pi(xe),Pi(te)));default:return ae}},[ae,x]),ee=v.field?T.current.getColumn(v.field):null,he=d.useMemo(()=>{var xe;return!v.operator||!ee?null:(xe=ee.filterOperators)==null?void 0:xe.find(te=>te.value===v.operator)},[v,ee]),se=d.useCallback(xe=>{const te=xe.target.value,oe=T.current.getColumn(te);if(oe.field===ee.field)return;const ye=oe.filterOperators.find(Ae=>Ae.value===v.operator)||oe.filterOperators[0],Me=!ye.InputComponent||ye.InputComponent!==(he==null?void 0:he.InputComponent)||oe.type!==ee.type;k(h({},v,{field:te,operator:ye.value,value:Me?void 0:v.value}))},[T,k,v,ee,he]),Re=d.useCallback(xe=>{const te=xe.target.value,oe=ee==null?void 0:ee.filterOperators.find(Me=>Me.value===te),ye=!(oe!=null&&oe.InputComponent)||(oe==null?void 0:oe.InputComponent)!==(he==null?void 0:he.InputComponent);k(h({},v,{operator:te,value:ye?void 0:v.value}))},[k,v,ee,he]),Pe=d.useCallback(xe=>{const te=xe.target.value===yn.And.toString()?yn.And:yn.Or;w(te)},[w]),Oe=()=>{H.disableMultipleColumnsFiltering?v.value===void 0?C(v):k(h({},v,{value:void 0})):C(v)};return d.useImperativeHandle(E,()=>({focus:()=>{if(he!=null&&he.InputComponent){var xe;U==null||(xe=U.current)==null||xe.focus()}else q.current.focus()}}),[he]),S.jsxs(K3,h({ref:n,className:V.root,"data-id":v.id,ownerState:H},$,{children:[S.jsx(q3,h({variant:"standard",as:H.slots.baseFormControl},ie,R,{className:Z(V.deleteIcon,ie.className,R.className),ownerState:H,children:S.jsx(H.slots.baseIconButton,h({"aria-label":T.current.getLocaleText("filterPanelDeleteIconLabel"),title:T.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Oe,size:"small"},(a=H.slotProps)==null?void 0:a.baseIconButton,{children:S.jsx(H.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),S.jsx(Y3,h({variant:"standard",as:H.slots.baseFormControl},ie,M,{sx:h({display:re?"flex":"none",visibility:m?"visible":"hidden"},ie.sx||{},M.sx||{}),className:Z(V.logicOperatorInput,ie.className,M.className),ownerState:H,children:S.jsx(H.slots.baseSelect,h({inputProps:{"aria-label":T.current.getLocaleText("filterPanelLogicOperator")},value:b,onChange:Pe,disabled:!!y||P.length===1,native:me},(u=H.slotProps)==null?void 0:u.baseSelect,{children:P.map(xe=>d.createElement(H.slots.baseSelectOption,h({},ue,{native:me,key:xe.toString(),value:xe.toString()}),T.current.getLocaleText(J3(xe))))}))})),S.jsxs(Q3,h({variant:"standard",as:H.slots.baseFormControl},ie,L,{className:Z(V.columnInput,ie.className,L.className),ownerState:H,children:[S.jsx(H.slots.baseInputLabel,h({},ve,{htmlFor:O,id:j,children:T.current.getLocaleText("filterPanelColumns")})),S.jsx(H.slots.baseSelect,h({labelId:j,id:O,label:T.current.getLocaleText("filterPanelColumns"),value:v.field||"",onChange:se,native:me},(c=H.slotProps)==null?void 0:c.baseSelect,{children:ne.map(xe=>d.createElement(H.slots.baseSelectOption,h({},ue,{native:me,key:xe.field,value:xe.field}),Pi(xe)))}))]})),S.jsxs(X3,h({variant:"standard",as:H.slots.baseFormControl},ie,_,{className:Z(V.operatorInput,ie.className,_.className),ownerState:H,children:[S.jsx(H.slots.baseInputLabel,h({},ve,{htmlFor:N,id:B,children:T.current.getLocaleText("filterPanelOperator")})),S.jsx(H.slots.baseSelect,h({labelId:B,label:T.current.getLocaleText("filterPanelOperator"),id:N,value:v.operator,onChange:Re,native:me,inputRef:q},(f=H.slotProps)==null?void 0:f.baseSelect,{children:ee==null||(p=ee.filterOperators)==null?void 0:p.map(xe=>d.createElement(H.slots.baseSelectOption,h({},ue,{native:me,key:xe.value,value:xe.value}),xe.label||T.current.getLocaleText(`filterOperator${X(xe.value)}`)))}))]})),S.jsx(Z3,h({variant:"standard",as:H.slots.baseFormControl},ie,Q,{className:Z(V.valueInput,ie.className,Q.className),ownerState:H,children:he!=null&&he.InputComponent?S.jsx(he.InputComponent,h({apiRef:T,item:v,applyValue:k,focusElementRef:U},he.InputComponentProps,ge)):null}))]}))});class Yg{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Yg}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function Qg(){const e=_g(Yg.create).current;return LS(e.disposeEffect),e}const tB=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function _r(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,tabIndex:a,disabled:u,clearButton:c,InputProps:f,variant:p="standard"}=e,v=K(e,tB),g=Qg(),[C,k]=d.useState((t=r.value)!=null?t:""),[b,m]=d.useState(!1),y=ut(),w=Ie(),E=d.useCallback(P=>{const{value:x}=P.target;k(String(x)),m(!0),g.start(w.filterDebounceMs,()=>{const I=h({},r,{value:x,fromInput:y});o(I),m(!1)})},[y,o,r,w.filterDebounceMs,g]);return d.useEffect(()=>{if(r.fromInput!==y||r.value===void 0){var x;k(String((x=r.value)!=null?x:""))}},[y,r]),S.jsx(w.slots.baseTextField,h({id:y,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:C,onChange:E,variant:p,type:l||"text",InputProps:h({},b||c?{endAdornment:b?S.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},f,{inputProps:h({tabIndex:a},f==null?void 0:f.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},v,(n=w.slotProps)==null?void 0:n.baseTextField))}const nB=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Zl(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,InputProps:a,clearButton:u,tabIndex:c,disabled:f}=e,p=K(e,nB),v=Qg(),[g,C]=d.useState((t=r.value)!=null?t:""),[k,b]=d.useState(!1),m=ut(),y=Ie(),w=d.useCallback(E=>{const P=E.target.value;C(String(P)),b(!0),v.start(y.filterDebounceMs,()=>{o(h({},r,{value:P})),b(!1)})},[o,r,y.filterDebounceMs,v]);return d.useEffect(()=>{var E;const P=(E=r.value)!=null?E:"";C(String(P))},[r.value]),S.jsx(y.slots.baseTextField,h({fullWidth:!0,id:m,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:w,variant:"standard",type:l||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:h({},k||u?{endAdornment:k?S.jsx(y.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:f},a,{inputProps:h({max:l==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},a==null?void 0:a.inputProps)})},p,(n=y.slotProps)==null?void 0:n.baseTextField))}const rB=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],oB=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:l,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const u=o(a),c=r(a);return d.createElement(n,h({},s,{native:l,key:u,value:u}),c)}),lB=Y("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function D0(e){var t,n,r,o,l,s,i,a;const{item:u,applyValue:c,type:f,apiRef:p,focusElementRef:v,getOptionLabel:g,getOptionValue:C,placeholder:k,tabIndex:b,label:m,variant:y="standard",clearButton:w}=e,E=K(e,rB),[P,x]=d.useState((t=u.value)!=null?t:""),I=ut(),R=ut(),M=Ie(),_=(n=(r=M.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(u.field){const O=p.current.getColumn(u.field);Pl(O)&&(L=O)}const F=C||((o=L)==null?void 0:o.getOptionValue),$=g||((l=L)==null?void 0:l.getOptionLabel),T=d.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),D=d.useCallback(O=>{let j=O.target.value;j=wh(j,T,F),x(String(j)),c(h({},u,{value:j}))},[T,F,c,u]);if(d.useEffect(()=>{var O;let j;if(T!==void 0){if(j=wh(u.value,T,F),j!==u.value){c(h({},u,{value:j}));return}}else j=u.value;j=(O=j)!=null?O:"",x(String(j))},[u,T,c,F]),!Pl(L)||!Pl(L))return null;const A=m??p.current.getLocaleText("filterPanelInputLabel");return S.jsxs(lB,{children:[S.jsxs(M.slots.baseFormControl,{children:[S.jsx(M.slots.baseInputLabel,h({},(s=M.slotProps)==null?void 0:s.baseInputLabel,{id:R,htmlFor:I,shrink:!0,variant:y,children:A})),S.jsx(M.slots.baseSelect,h({id:I,label:A,labelId:R,value:P,onChange:D,variant:y,type:f||"text",inputProps:{tabIndex:b,ref:v,placeholder:k??p.current.getLocaleText("filterPanelInputPlaceholder")},native:_,notched:y==="outlined"?!0:void 0},E,(i=M.slotProps)==null?void 0:i.baseSelect,{children:oB({column:L,OptionComponent:M.slots.baseSelectOption,getOptionLabel:$,getOptionValue:F,isSelectNative:_,baseSelectOptionProps:(a=M.slotProps)==null?void 0:a.baseSelectOption})}))]}),w]})}const sB=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],iB=Y("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function aB(e){var t,n,r,o;const{item:l,applyValue:s,apiRef:i,focusElementRef:a,clearButton:u,tabIndex:c,label:f,variant:p="standard"}=e,v=K(e,sB),[g,C]=d.useState(l.value||""),k=Ie(),b=ut(),m=ut(),y=((t=k.slotProps)==null?void 0:t.baseSelect)||{},w=(n=y.native)!=null?n:!0,E=((r=k.slotProps)==null?void 0:r.baseSelectOption)||{},P=d.useCallback(I=>{const R=I.target.value;C(R),s(h({},l,{value:R}))},[s,l]);d.useEffect(()=>{C(l.value||"")},[l.value]);const x=f??i.current.getLocaleText("filterPanelInputLabel");return S.jsxs(iB,{children:[S.jsxs(k.slots.baseFormControl,{fullWidth:!0,children:[S.jsx(k.slots.baseInputLabel,h({},(o=k.slotProps)==null?void 0:o.baseInputLabel,{id:b,shrink:!0,variant:p,children:x})),S.jsxs(k.slots.baseSelect,h({labelId:b,id:m,label:x,value:g,onChange:P,variant:p,notched:p==="outlined"?!0:void 0,native:w,displayEmpty:!0,inputProps:{ref:a,tabIndex:c}},v,y,{children:[S.jsx(k.slots.baseSelectOption,h({},E,{native:w,value:"",children:i.current.getLocaleText("filterValueAny")})),S.jsx(k.slots.baseSelectOption,h({},E,{native:w,value:"true",children:i.current.getLocaleText("filterValueTrue")})),S.jsx(k.slots.baseSelectOption,h({},E,{native:w,value:"false",children:i.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const uB=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],j0=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),cB=d.forwardRef(function(t,n){var r,o;const l=Xe(),s=Ie(),i=we(l,Gt),a=we(l,NS),u=d.useRef(null),c=d.useRef(null),{logicOperators:f=[yn.And,yn.Or],columnsSort:p,filterFormProps:v,getColumnForNewFilter:g,disableAddFilterButton:C=!1,disableRemoveAllButton:k=!1}=t,b=K(t,uB),m=l.current.upsertFilterItem,y=d.useCallback(_=>{l.current.setFilterLogicOperator(_)},[l]),w=d.useCallback(()=>{let _;if(g&&typeof g=="function"){const L=g({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(L===null)return null;_=a.find(({field:F})=>F===L)}else _=a.find(L=>{var F;return(F=L.filterOperators)==null?void 0:F.length});return _?j0(_):null},[i==null?void 0:i.items,a,g]),E=d.useCallback(()=>{if(g===void 0||typeof g!="function")return w();const _=i.items.length?i.items:[w()].filter(Boolean),L=g({currentFilters:_,columns:a});if(L===null)return null;const F=a.find(({field:$})=>$===L);return F?j0(F):null},[i.items,a,g,w]),P=d.useMemo(()=>i.items.length?i.items:(c.current||(c.current=w()),c.current?[c.current]:[]),[i.items,w]),x=P.length>1,I=()=>{const _=E();_&&l.current.upsertFilterItems([...P,_])},R=d.useCallback(_=>{const L=P.length===1;l.current.deleteFilterItem(_),L&&l.current.hideFilterPanel()},[l,P.length]),M=()=>{P.length===1&&P[0].value===void 0&&(l.current.deleteFilterItem(P[0]),l.current.hideFilterPanel()),l.current.setFilterModel(h({},i,{items:[]}))};return d.useEffect(()=>{f.length>0&&i.logicOperator&&!f.includes(i.logicOperator)&&y(f[0])},[f,y,i.logicOperator]),d.useEffect(()=>{P.length>0&&u.current.focus()},[P.length]),S.jsxs(wP,h({ref:n},b,{children:[S.jsx(CP,{children:P.map((_,L)=>S.jsx(eB,h({item:_,applyFilterChanges:m,deleteFilter:R,hasMultipleFilters:x,showMultiFilterOperators:L>0,multiFilterOperator:i.logicOperator,disableMultiFilterOperator:L!==1,applyMultiFilterOperatorChanges:y,focusElementRef:L===P.length-1?u:null,logicOperators:f,columnsSort:p},v),_.id==null?L:_.id))}),!s.disableMultipleColumnsFiltering&&!(C&&k)?S.jsxs(xP,{children:[C?S.jsx("span",{}):S.jsx(s.slots.baseButton,h({onClick:I,startIcon:S.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("filterPanelAddFilter")})),k?null:S.jsx(s.slots.baseButton,h({onClick:M,startIcon:S.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),dB=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function SP(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:l,color:s,error:i,helperText:a,size:u,variant:c}=e,f=K(e,dB),p={color:s,error:i,helperText:a,size:u,variant:c},[v,g]=d.useState(t.value||[]),C=ut(),k=Ie();d.useEffect(()=>{var m;const y=(m=t.value)!=null?m:[];g(y.map(String))},[t.value]);const b=d.useCallback((m,y)=>{g(y.map(String)),n(h({},t,{value:[...y]}))},[n,t]);return S.jsx(uS,h({multiple:!0,freeSolo:!0,options:[],filterOptions:(m,y)=>{const{inputValue:w}=y;return w==null||w===""?[]:[w]},id:C,value:v,onChange:b,renderTags:(m,y)=>m.map((w,E)=>S.jsx(k.slots.baseChip,h({variant:"outlined",size:"small",label:w},y({index:E})))),renderInput:m=>{var y;return S.jsx(k.slots.baseTextField,h({},m,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:h({},m.InputLabelProps,{shrink:!0}),inputRef:l,type:r||"text"},p,(y=k.slotProps)==null?void 0:y.baseTextField))}},f))}const fB=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],pB=K1();function hB(e){var t,n;const{item:r,applyValue:o,apiRef:l,focusElementRef:s,color:i,error:a,helperText:u,size:c,variant:f="standard",getOptionLabel:p,getOptionValue:v}=e,g=K(e,fB),C={color:i,error:a,helperText:u,size:c,variant:f},k=ut(),b=Ie();let m=null;if(r.field){const M=l.current.getColumn(r.field);Pl(M)&&(m=M)}const y=v||((t=m)==null?void 0:t.getOptionValue),w=p||((n=m)==null?void 0:n.getOptionLabel),E=d.useCallback((M,_)=>y(M)===y(_),[y]),P=d.useMemo(()=>{var M;return(M=m)!=null&&M.valueOptions?typeof m.valueOptions=="function"?m.valueOptions({field:m.field}):m.valueOptions:[]},[m]),x=d.useMemo(()=>P==null?void 0:P.map(y),[P,y]),I=d.useMemo(()=>Array.isArray(r.value)?P!==void 0?r.value.map(_=>x==null?void 0:x.findIndex(L=>L===_)).filter(_=>_>=0).map(_=>P[_]):r.value:[],[r.value,P,x]);d.useEffect(()=>{(!Array.isArray(r.value)||I.length!==r.value.length)&&o(h({},r,{value:I.map(y)}))},[r,I,o,y]);const R=d.useCallback((M,_)=>{o(h({},r,{value:_.map(y)}))},[o,r,y]);return S.jsx(uS,h({multiple:!0,options:P,isOptionEqualToValue:E,filterOptions:pB,id:k,value:I,onChange:R,getOptionLabel:w,renderTags:(M,_)=>M.map((L,F)=>S.jsx(b.slots.baseChip,h({variant:"outlined",size:"small",label:w(L)},_({index:F})))),renderInput:M=>{var _;return S.jsx(b.slots.baseTextField,h({},M,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:h({},M.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},C,(_=b.slotProps)==null?void 0:_.baseTextField))}},g))}const mB=["hideMenu","options"],gB=["hideMenu","options"];function vB(e){const t=Xe(),{hideMenu:n,options:r}=e,o=K(e,mB);return S.jsx(zr,h({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function yB(e){const t=Xe(),{hideMenu:n,options:r}=e,o=K(e,gB);return S.jsx(zr,h({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const bB=["className","selectedRowCount"],CB=e=>{const{classes:t}=e;return de({root:["selectedRowCount"]},Ze,t)},xB=qt("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),wB=d.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,l=K(t,bB),s=Xe(),i=Ie(),a=CB(i),u=s.current.getLocaleText("footerRowSelected")(o);return S.jsx(xB,h({ref:n,className:Z(a.root,r),ownerState:i},l,{children:u}))}),SB=d.forwardRef(function(t,n){var r,o;const l=Xe(),s=Ie(),i=we(l,qN),a=we(l,vH),u=we(l,WS),c=!s.hideFooterSelectedRowCount&&a>0?S.jsx(wB,{selectedRowCount:a}):S.jsx("div",{}),f=!s.hideFooterRowCount&&!s.pagination?S.jsx(s.slots.footerRowCount,h({},(r=s.slotProps)==null?void 0:r.footerRowCount,{rowCount:i,visibleRowCount:u})):null,p=s.pagination&&!s.hideFooterPagination&&s.slots.pagination&&S.jsx(s.slots.pagination,h({},(o=s.slotProps)==null?void 0:o.pagination));return S.jsxs(M4,h({ref:n},t,{children:[c,f,p]}))});function PB(){var e,t;const n=Ie();return S.jsxs(d.Fragment,{children:[S.jsx(n.slots.preferencesPanel,h({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&S.jsx(n.slots.toolbar,h({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const kB=d.forwardRef(function(t,n){return S.jsx(Vg,h({ref:n},t,{children:S.jsx(ND,{})}))}),IB=d.forwardRef(function(t,n){const o=Xe().current.getLocaleText("noRowsLabel");return S.jsx(Vg,h({ref:n},t,{children:o}))}),EB=Y(QA)(({theme:e})=>({[`& .${wl.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${wl.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),MB=d.forwardRef(function(t,n){const r=Xe(),o=Ie(),l=we(r,Wn),s=we(r,bs),i=d.useMemo(()=>Math.floor(s/(l.pageSize||1)),[s,l.pageSize]),a=d.useCallback(p=>{const v=Number(p.target.value);r.current.setPageSize(v)},[r]),u=d.useCallback((p,v)=>{r.current.setPage(v)},[r]),f=(p=>{for(let v=0;v<o.pageSizeOptions.length;v+=1){const g=o.pageSizeOptions[v];if(typeof g=="number"){if(g===p)return!0}else if(g.value===p)return!0}return!1})(l.pageSize)?o.pageSizeOptions:[];return S.jsx(EB,h({ref:n,component:"div",count:s,page:l.page<=i?l.page:i,rowsPerPageOptions:f,rowsPerPage:l.pageSize,onPageChange:u,onRowsPerPageChange:a},r.current.getLocaleText("MuiTablePagination"),t))}),RB=["className","rowCount","visibleRowCount"],TB=e=>{const{classes:t}=e;return de({root:["rowCount"]},Ze,t)},$B=qt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),OB=d.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:l}=t,s=K(t,RB),i=Xe(),a=Ie(),u=TB(a);if(o===0)return null;const c=l<o?i.current.getLocaleText("footerTotalVisibleRows")(l,o):o.toLocaleString();return S.jsxs($B,h({ref:n,className:Z(u.root,r),ownerState:a},s,{children:[i.current.getLocaleText("footerTotalRows")," ",c]}))}),Bc=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Wg(e),n=gH(e)):(n=sl(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Bl=(e,t)=>{const n=Bc(e,t);return d.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Sh={current:null};function Xa(e){return e.isInternal=!0,e}function Vc(e){return e!==void 0&&e.isInternal===!0}function FB(e){return Xa((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Sh.current))})}function Za(e){return e.map(t=>h({},t,{getApplyFilterFn:FB(t.getApplyFilterFnV7),getApplyFilterFnV7:Xa(t.getApplyFilterFnV7)}))}function PP(e){return Xa((t,n,r)=>{const o=e(t,n,r);return o&&(l=>o(l.value,l.row,n,r))})}function kP(e){return{current:e.current.getPublicApi()}}let ki;function _B(){if(ki!==void 0)return ki;try{ki=new Function("return true")()}catch{ki=!1}return ki}const Ph=(e,t)=>{const n=h({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=li(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},DB=Kr(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),jB=Kr("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),LB=Kr("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),IP=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(DB(),o=[e.items[0]]):o=e.items;const l=r&&o.some(i=>i.id==null),s=o.some(i=>i.operator==null);return l&&jB(),s&&LB(),s||l?h({},e,{items:o.map(i=>Ph(i,n))}):e.items!==o?h({},e,{items:o}):e},L0=(e,t,n)=>r=>h({},r,{filterModel:IP(e,t,n)}),Ho=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,EP=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const v=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(g=>v(g)):v(e.value)}else r=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(r=Ho(r));const s=h({},e,{value:r}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=i.find(v=>v.value===s.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const u=!Vc(a.getApplyFilterFn),c=!Vc(a.getApplyFilterFnV7),f=kP(t);if(a.getApplyFilterFnV7&&!(u&&!c)){const v=a.getApplyFilterFnV7(s,n);return typeof v!="function"?null:{v7:!0,item:s,fn:g=>{let C=t.current.getRowValue(g,n);return l&&(C=Ho(C)),v(C,g,n,f)}}}const p=a.getApplyFilterFn(s,n);return typeof p!="function"?null:{v7:!1,item:s,fn:v=>{const g=t.current.getCellParams(v,s.field);Sh.current=f,l&&(g.value=Ho(g.value));const C=p(g);return Sh.current=null,C}}};let A0=1;const AB=(e,t,n)=>{const{items:r}=e,o=r.map(i=>EP(i,t)).filter(i=>!!i);if(o.length===0)return null;if(n||!_B())return(i,a)=>{const u={};for(let c=0;c<o.length;c+=1){const f=o[c];(!a||a(f.item.field))&&(u[f.item.id]=f.v7?f.fn(i):f.fn(t.current.getRowId(i)))}return u};const l=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";
215
+ `))},Ug=e=>e.pagination,Wn=ze(Ug,e=>e.paginationModel),bs=ze(Ug,e=>e.rowCount),hH=ze(Wn,e=>e.page),pP=ze(Wn,e=>e.pageSize),mH=ze(pP,bs,(e,t)=>cP(t,e)),Wg=wt(Wn,vr,nf,sl,GS,(e,t,n,r,o)=>{const l=o.length,s=Math.min(e.pageSize*e.page,l-1),i=Math.min(s+e.pageSize-1,l-1);if(s===-1||i===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:i};const a=o[s],u=i-s+1,c=r.findIndex(g=>g.id===a.id);let f=c,p=0;for(;f<r.length&&p<=u;){var v;const g=r[f],C=(v=t[g.id])==null?void 0:v.depth;C===void 0?f+=1:((p<u||C>0)&&(f+=1),C===0&&(p+=1))}return{firstRowIndex:c,lastRowIndex:f-1}}),gH=wt(sl,Wg,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),hP=wt(Yi,Wg,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Ta=e=>e.preferencePanel;var _l=function(e){return e.filters="filters",e.columns="columns",e}(_l||{});const $a=e=>e.rowsMeta,Kn=e=>e.rowSelection,vH=ze(Kn,e=>e.length),yH=wt(Kn,io,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Hc=wt(Kn,e=>e.reduce((t,n)=>(t[n]=n,t),{})),bH=Kr(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),mP=(e,t)=>t&&e.length>1?(bH(),[e[0]]):e,P0=(e,t)=>n=>h({},n,{sorting:h({},n.sorting,{sortModel:mP(e,t)})}),CH=e=>e==="desc",xH=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=CH(e.sort)?(...l)=>-1*n.sortComparator(...l):n.sortComparator;return{getSortCellParams:l=>({id:l,field:n.field,rowNode:t.current.getRowNode(l),value:t.current.getCellValue(l,n.field),api:t.current}),comparator:r}},wH=(e,t,n)=>e.reduce((r,o,l)=>{if(r!==0)return r;const s=t.params[l],i=n.params[l];return r=o.comparator(s.value,i.value,s,i),r},0),SH=(e,t)=>{const n=e.map(r=>xH(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(l=>l.getSortCellParams(o.id))})).sort((o,l)=>wH(n,o,l)).map(o=>o.node.id)},k0=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Kg=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,PH=new Intl.Collator,gP=(e,t)=>{const n=Kg(e,t);return n!==null?n:typeof e=="string"?PH.compare(e.toString(),t.toString()):e-t},Oa=(e,t)=>{const n=Kg(e,t);return n!==null?n:Number(e)-Number(t)},qg=(e,t)=>{const n=Kg(e,t);return n!==null?n:e>t?1:e<t?-1:0},vP=e=>e.headerFiltering,kH=ze(vP,e=>e.editing),IH=ze(vP,e=>e.menuOpen),EH=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return h({},e,{virtualization:n})};function MH(e,t){const n=l=>{e.current.setState(s=>h({},s,{virtualization:h({},s.virtualization,{enabled:l})}))};Ge(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:l=>{e.current.setState(s=>h({},s,{virtualization:h({},s.virtualization,{enabledForColumns:l})}))}},"public"),d.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const yP=e=>e.virtualization,RH=ze(yP,e=>e.enabled),bP=ze(yP,e=>e.enabledForColumns),TH=e=>{const{classes:t}=e;return de({icon:["filterIcon"]},Ze,t)};function $H(e){var t,n;const{counter:r,field:o,onClick:l}=e,s=Xe(),i=Ie(),a=h({},e,{classes:i.classes}),u=TH(a),c=we(s,Ta),f=ut(),p=ut(),v=d.useCallback(k=>{k.preventDefault(),k.stopPropagation();const{open:b,openedPanelValue:m}=Ta(s.current.state);b&&m===_l.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,p,f),l&&l(s.current.getColumnHeaderParams(o),k)},[s,o,l,p,f]);if(!r)return null;const g=c.open&&c.labelId===f,C=S.jsx(i.slots.baseIconButton,h({id:f,onClick:v,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?p:void 0},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:S.jsx(i.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return S.jsx(i.slots.baseTooltip,h({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=i.slotProps)==null?void 0:n.baseTooltip,{children:S.jsxs(lP,{children:[r>1&&S.jsx(fS,{badgeContent:r,color:"default",children:C}),r===1&&C]})}))}const OH=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],FH=e=>{const{classes:t}=e;return de({root:["checkboxInput"]},Ze,t)},_H=d.forwardRef(function(t,n){var r;const{field:o,id:l,value:s,rowNode:i,hasFocus:a,tabIndex:u}=t,c=K(t,OH),f=Xe(),p=Ie(),v={classes:p.classes},g=FH(v),C=d.useRef(null),k=d.useRef(null),b=ft(C,n),m=f.current.getCellElement(l,o),y=x=>{const I={value:x.target.checked,id:l};f.current.publishEvent("rowSelectionCheckboxChange",I,x)};d.useLayoutEffect(()=>{u===0&&m&&(m.tabIndex=-1)},[m,u]),d.useEffect(()=>{if(a){var x;const I=(x=C.current)==null?void 0:x.querySelector("input");I==null||I.focus({preventScroll:!0})}else k.current&&k.current.stop({})},[a]);const w=d.useCallback(x=>{nP(x.key)&&x.stopPropagation()},[]);if(i.type==="footer"||i.type==="pinnedRow")return null;const E=f.current.isRowSelectable(l),P=f.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return S.jsx(p.slots.baseCheckbox,h({ref:b,tabIndex:u,checked:s,onChange:y,className:g.root,inputProps:{"aria-label":P},onKeyDown:w,disabled:!E,touchRippleRef:k},(r=p.slotProps)==null?void 0:r.baseCheckbox,c))}),DH=_H,jH=["field","colDef"],LH=e=>{const{classes:t}=e;return de({root:["checkboxInput"]},Ze,t)},AH=d.forwardRef(function(t,n){var r;const o=K(t,jH),[,l]=d.useState(!1),s=Xe(),i=Ie(),a={classes:i.classes},u=LH(a),c=we(s,KS),f=we(s,Kn),p=we(s,Yi),v=we(s,hP),g=d.useMemo(()=>typeof i.isRowSelectable!="function"?f:f.filter(I=>s.current.getRow(I)?i.isRowSelectable(s.current.getRowParams(I)):!1),[s,i.isRowSelectable,f]),C=d.useMemo(()=>(!i.pagination||!i.checkboxSelectionVisibleOnly?p:v).reduce((R,M)=>(R[M]=!0,R),{}),[i.pagination,i.checkboxSelectionVisibleOnly,v,p]),k=d.useMemo(()=>g.filter(I=>C[I]).length,[g,C]),b=k>0&&k<Object.keys(C).length,m=k>0,y=I=>{const R={value:I.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",R)},w=c!==null&&c.field===t.field?0:-1;d.useLayoutEffect(()=>{const I=s.current.getColumnHeaderElement(t.field);w===0&&I&&(I.tabIndex=-1)},[w,s,t.field]);const E=d.useCallback(I=>{I.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!m})},[s,m]),P=d.useCallback(()=>{l(I=>!I)},[]);d.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",P),[s,P]);const x=s.current.getLocaleText(m?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return S.jsx(i.slots.baseCheckbox,h({ref:n,indeterminate:b,checked:m,onChange:y,className:u.root,inputProps:{"aria-label":x},tabIndex:w,onKeyDown:E},(r=i.slotProps)==null?void 0:r.baseCheckbox,o))}),I0=Ke(S.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),E0=Ke(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),M0=Ke(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),R0=Ke(S.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),NH=Ke(S.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),T0=Ke(S.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),zH=Ke(S.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Ke(S.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Ke(S.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const HH=Ke(S.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),BH=Ke(S.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),VH=Ke(S.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),GH=Ke(S.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),UH=Ke(S.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),WH=Ke(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),op=Ke(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$0=Ke(S.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),KH=Ke(S.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),qH=Ke(S.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),O0=Ke(S.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),YH=Ke(S.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),QH=Ke(S.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),XH=Ke(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),ZH=Ke(S.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),JH=Ke(S.jsx("g",{children:S.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),e3=Ke(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Ke(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const t3=Ke(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),n3=["hideMenu","colDef","id","labelledby","className","children","open"],r3=Y(Eg)(()=>({minWidth:248})),o3=d.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:l,className:s,children:i,open:a}=t,u=K(t,n3),c=d.useCallback(f=>{tP(f.key)&&f.preventDefault(),r4(f.key)&&r(f)},[r]);return S.jsx(r3,h({id:o,ref:n,className:Z(z.menuList,s),"aria-labelledby":l,onKeyDown:c,autoFocus:a},u,{children:i}))}),l3=["displayOrder"],s3=e=>{const t=ll(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:l={},hideMenu:s,colDef:i,addDividers:a=!0}=e,u=d.useMemo(()=>h({},n,o),[n,o]),c=d.useMemo(()=>{if(!l||Object.keys(l).length===0)return r;const v=h({},l);return Object.entries(r).forEach(([g,C])=>{v[g]=h({},C,l[g]||{})}),v},[r,l]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=d.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(g=>!v.includes(g))},[o,n]);return d.useMemo(()=>{const C=Array.from(new Set([...f,...p])).filter(k=>u[k]!=null).sort((k,b)=>{const m=c[k],y=c[b],w=Number.isFinite(m==null?void 0:m.displayOrder)?m.displayOrder:100,E=Number.isFinite(y==null?void 0:y.displayOrder)?y.displayOrder:100;return w-E});return C.reduce((k,b,m)=>{let y={colDef:i,onClick:s};const w=c[b];if(w){const E=K(w,l3);y=h({},y,E)}return a&&m!==C.length-1?[...k,[u[b],y],[bS,{}]]:[...k,[u[b],y]]},[])},[a,i,f,s,u,c,p])};function i3(e){const{colDef:t,onClick:n}=e,r=Xe(),o=Ie(),i=Xt(r).filter(u=>u.disableColumnMenu!==!0).length===1,a=d.useCallback(u=>{i||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,i]);return o.disableColumnSelector||t.hideable===!1?null:S.jsxs(zr,{onClick:a,disabled:i,children:[S.jsx(Ms,{children:S.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),S.jsx(Rs,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function a3(e){const{onClick:t}=e,n=Xe(),r=Ie(),o=d.useCallback(l=>{t(l),n.current.showPreferences(_l.columns)},[n,t]);return r.disableColumnSelector?null:S.jsxs(zr,{onClick:o,children:[S.jsx(Ms,{children:S.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),S.jsx(Rs,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function u3(e){return S.jsxs(d.Fragment,{children:[S.jsx(i3,h({},e)),S.jsx(a3,h({},e))]})}function c3(e){const{colDef:t,onClick:n}=e,r=Xe(),o=Ie(),l=d.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:S.jsxs(zr,{onClick:l,children:[S.jsx(Ms,{children:S.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),S.jsx(Rs,{children:r.current.getLocaleText("columnMenuFilter")})]})}function d3(e){var t;const{colDef:n,onClick:r}=e,o=Xe(),l=we(o,Un),s=Ie(),i=d.useMemo(()=>{if(!n)return null;const f=l.find(p=>p.field===n.field);return f==null?void 0:f.sort},[n,l]),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,u=d.useCallback(f=>{r(f);const p=f.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,p===i?null:p)},[o,n,r,i]);if(!n||!n.sortable||!a.some(f=>!!f))return null;const c=f=>{const p=o.current.getLocaleText(f);return typeof p=="function"?p(n):p};return S.jsxs(d.Fragment,{children:[a.includes("asc")&&i!=="asc"?S.jsxs(zr,{onClick:u,"data-value":"asc",children:[S.jsx(Ms,{children:S.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),S.jsx(Rs,{children:c("columnMenuSortAsc")})]}):null,a.includes("desc")&&i!=="desc"?S.jsxs(zr,{onClick:u,"data-value":"desc",children:[S.jsx(Ms,{children:S.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),S.jsx(Rs,{children:c("columnMenuSortDesc")})]}):null,a.includes(null)&&i!=null?S.jsxs(zr,{onClick:u,children:[S.jsx(Ms,{}),S.jsx(Rs,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const f3=["defaultSlots","defaultSlotProps","slots","slotProps"],p3={columnMenuSortItem:d3,columnMenuFilterItem:c3,columnMenuColumnsItem:u3},h3={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},m3=d.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}=t,i=K(t,f3),a=s3(h({},i,{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}));return S.jsx(o3,h({ref:n},i,{children:a.map(([u,c],f)=>S.jsx(u,h({},c),f))}))}),g3=d.forwardRef(function(t,n){return S.jsx(m3,h({},t,{ref:n,defaultSlots:p3,defaultSlotProps:h3}))}),v3=["className"],y3=e=>{const{classes:t}=e;return de({root:["panelContent"]},Ze,t)},b3=qt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function CP(e){const{className:t}=e,n=K(e,v3),r=Ie(),o=y3(r);return S.jsx(b3,h({className:Z(t,o.root),ownerState:r},n))}const C3=["className"],x3=e=>{const{classes:t}=e;return de({root:["panelFooter"]},Ze,t)},w3=qt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function xP(e){const{className:t}=e,n=K(e,C3),r=Ie(),o=x3(r);return S.jsx(w3,h({className:Z(t,o.root),ownerState:r},n))}const S3=["className"],P3=e=>{const{classes:t}=e;return de({root:["panelHeader"]},Ze,t)},k3=qt("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function I3(e){const{className:t}=e,n=K(e,S3),r=Ie(),o=P3(r);return S.jsx(k3,h({className:Z(t,o.root),ownerState:r},n))}const E3=["className","slotProps"],M3=e=>{const{classes:t}=e;return de({root:["panelWrapper"]},Ze,t)},R3=Y("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),T3=()=>!0,wP=d.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,l=K(t,E3),s=Ie(),i=M3(s);return S.jsx(gS,h({open:!0,disableEnforceFocus:!0,isEnabled:T3},o.TrapFocus,{children:S.jsx(R3,h({ref:n,tabIndex:-1,className:Z(r,i.root),ownerState:s},l))}))}),$3=!1,O3=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],F3=e=>{const{classes:t}=e;return de({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Ze,t)},_3=Y("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),D3=Y("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${ln.root}`]:{marginRight:e.spacing(.5)}}));Y(so)({justifyContent:"flex-end"});const F0=new Intl.Collator,j3=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function L3(e){var t,n,r;const o=Xe(),l=d.useRef(null),s=we(o,Hr),i=we(o,yr),a=Ie(),[u,c]=d.useState(""),f=F3(a),{sort:p,searchPredicate:v=j3,autoFocusSearchField:g=!0,disableHideAllButton:C=!1,disableShowAllButton:k=!1,getTogglableColumns:b}=e,m=K(e,O3),y=d.useMemo(()=>{switch(p){case"asc":return[...s].sort((_,L)=>F0.compare(_.headerName||_.field,L.headerName||L.field));case"desc":return[...s].sort((_,L)=>-F0.compare(_.headerName||_.field,L.headerName||L.field));default:return s}},[s,p]),w=_=>{const{name:L}=_.target;o.current.setColumnVisibility(L,i[L]===!1)},E=d.useCallback(_=>{const L=yr(o),F=h({},L),$=b?b(s):null;return s.forEach(T=>{T.hideable&&($==null||$.includes(T.field))&&(_?delete F[T.field]:F[T.field]=!1)}),o.current.setColumnVisibilityModel(F)},[o,s,b]),P=d.useCallback(_=>{c(_.target.value)},[]),x=d.useMemo(()=>{const _=b?b(y):null,L=_?y.filter(({field:F})=>_.includes(F)):y;return u?L.filter(F=>v(F,u.toLowerCase())):L},[y,u,v,b]),I=d.useRef(null);d.useEffect(()=>{g?l.current.focus():I.current&&typeof I.current.focus=="function"&&I.current.focus()},[g]);let R=!1;const M=_=>R===!1&&_.hideable!==!1?(R=!0,!0):!1;return S.jsxs(wP,h({},m,{children:[S.jsx(I3,{children:S.jsx(a.slots.baseTextField,h({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:u,onChange:P,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),S.jsx(CP,{children:S.jsx(_3,{className:f.root,ownerState:a,children:x.map(_=>{var L;return S.jsxs(D3,{className:f.columnsPanelRow,ownerState:a,children:[S.jsx(ej,{control:S.jsx(a.slots.baseSwitch,h({disabled:_.hideable===!1,checked:i[_.field]!==!1,onClick:w,name:_.field,size:"small",inputRef:M(_)?I:void 0},(L=a.slotProps)==null?void 0:L.baseSwitch)),label:_.headerName||_.field}),!a.disableColumnReorder&&$3]},_.field)})})}),k&&C?null:S.jsxs(xP,{children:[C?S.jsx("span",{}):S.jsx(a.slots.baseButton,h({onClick:()=>E(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelHideAllButton")})),k?null:S.jsx(a.slots.baseButton,h({onClick:()=>E(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:k,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const A3=["children","className","classes"],N3=$e("MuiDataGrid",["panel","paper"]),z3=Y(zl,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),H3=Y(kr,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),B3=d.forwardRef((e,t)=>{const{children:n,className:r}=e,o=K(e,A3),l=Xe(),s=Ie(),i=N3,[a,u]=d.useState(!1),c=d.useCallback(()=>{l.current.hidePreferences()},[l]),f=d.useCallback(C=>{Nc(C.key)&&l.current.hidePreferences()},[l]),p=d.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[v,g]=d.useState(null);return d.useEffect(()=>{var C;const k=(C=l.current.rootElementRef)==null||(C=C.current)==null?void 0:C.querySelector(`.${z.columnHeaders}`);k&&g(k)},[l]),v?S.jsx(z3,h({ref:t,placement:"bottom-start",className:Z(r,i.panel),ownerState:s,anchorEl:v,modifiers:p},o,{children:S.jsx(mS,{mouseEvent:"onMouseUp",onClickAway:c,children:S.jsx(H3,{className:i.paper,ownerState:s,elevation:8,onKeyDown:f,children:a&&n})})})):null}),V3=d.forwardRef(function(t,n){var r,o,l;const s=Xe(),i=we(s,Hr),a=Ie(),u=we(s,Ta),c=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:_l.filters);return S.jsx(a.slots.panel,h({ref:n,as:a.slots.basePopper,open:i.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(l=a.slotProps)==null?void 0:l.basePopper,{children:c}))}),G3=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],U3=["InputComponentProps"],W3=e=>{const{classes:t}=e;return de({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Ze,t)},K3=Y("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),q3=Y("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Y3=Y("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Q3=Y("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),X3=Y("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Z3=Y("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),J3=e=>{switch(e){case yn.And:return"filterPanelOperatorAnd";case yn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Pi=e=>e.headerName||e.field,_0=new Intl.Collator,eB=d.forwardRef(function(t,n){var r,o,l,s,i,a,u,c,f,p;const{item:v,hasMultipleFilters:g,deleteFilter:C,applyFilterChanges:k,multiFilterOperator:b,showMultiFilterOperators:m,disableMultiFilterOperator:y,applyMultiFilterOperatorChanges:w,focusElementRef:E,logicOperators:P=[yn.And,yn.Or],columnsSort:x,filterColumns:I,deleteIconProps:R={},logicOperatorInputProps:M={},operatorInputProps:_={},columnInputProps:L={},valueInputProps:F={}}=t,$=K(t,G3),T=Xe(),D=we(T,NS),A=we(T,Gt),O=ut(),j=ut(),N=ut(),B=ut(),H=Ie(),V=W3(H),U=d.useRef(null),q=d.useRef(null),re=g&&P.length>0,ie=((r=H.slotProps)==null?void 0:r.baseFormControl)||{},me=(l=(((o=H.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?l:!0,ve=((s=H.slotProps)==null?void 0:s.baseInputLabel)||{},ue=((i=H.slotProps)==null?void 0:i.baseSelectOption)||{},{InputComponentProps:ge}=F,Q=K(F,U3),ae=d.useMemo(()=>{if(I===void 0||typeof I!="function")return D;const xe=I({field:v.field,columns:D,currentFilters:(A==null?void 0:A.items)||[]});return D.filter(te=>xe.includes(te.field))},[I,A==null?void 0:A.items,D,v.field]),ne=d.useMemo(()=>{switch(x){case"asc":return ae.sort((xe,te)=>_0.compare(Pi(xe),Pi(te)));case"desc":return ae.sort((xe,te)=>-_0.compare(Pi(xe),Pi(te)));default:return ae}},[ae,x]),ee=v.field?T.current.getColumn(v.field):null,he=d.useMemo(()=>{var xe;return!v.operator||!ee?null:(xe=ee.filterOperators)==null?void 0:xe.find(te=>te.value===v.operator)},[v,ee]),se=d.useCallback(xe=>{const te=xe.target.value,oe=T.current.getColumn(te);if(oe.field===ee.field)return;const ye=oe.filterOperators.find(Ae=>Ae.value===v.operator)||oe.filterOperators[0],Me=!ye.InputComponent||ye.InputComponent!==(he==null?void 0:he.InputComponent)||oe.type!==ee.type;k(h({},v,{field:te,operator:ye.value,value:Me?void 0:v.value}))},[T,k,v,ee,he]),Re=d.useCallback(xe=>{const te=xe.target.value,oe=ee==null?void 0:ee.filterOperators.find(Me=>Me.value===te),ye=!(oe!=null&&oe.InputComponent)||(oe==null?void 0:oe.InputComponent)!==(he==null?void 0:he.InputComponent);k(h({},v,{operator:te,value:ye?void 0:v.value}))},[k,v,ee,he]),Pe=d.useCallback(xe=>{const te=xe.target.value===yn.And.toString()?yn.And:yn.Or;w(te)},[w]),Oe=()=>{H.disableMultipleColumnsFiltering?v.value===void 0?C(v):k(h({},v,{value:void 0})):C(v)};return d.useImperativeHandle(E,()=>({focus:()=>{if(he!=null&&he.InputComponent){var xe;U==null||(xe=U.current)==null||xe.focus()}else q.current.focus()}}),[he]),S.jsxs(K3,h({ref:n,className:V.root,"data-id":v.id,ownerState:H},$,{children:[S.jsx(q3,h({variant:"standard",as:H.slots.baseFormControl},ie,R,{className:Z(V.deleteIcon,ie.className,R.className),ownerState:H,children:S.jsx(H.slots.baseIconButton,h({"aria-label":T.current.getLocaleText("filterPanelDeleteIconLabel"),title:T.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Oe,size:"small"},(a=H.slotProps)==null?void 0:a.baseIconButton,{children:S.jsx(H.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),S.jsx(Y3,h({variant:"standard",as:H.slots.baseFormControl},ie,M,{sx:h({display:re?"flex":"none",visibility:m?"visible":"hidden"},ie.sx||{},M.sx||{}),className:Z(V.logicOperatorInput,ie.className,M.className),ownerState:H,children:S.jsx(H.slots.baseSelect,h({inputProps:{"aria-label":T.current.getLocaleText("filterPanelLogicOperator")},value:b,onChange:Pe,disabled:!!y||P.length===1,native:me},(u=H.slotProps)==null?void 0:u.baseSelect,{children:P.map(xe=>d.createElement(H.slots.baseSelectOption,h({},ue,{native:me,key:xe.toString(),value:xe.toString()}),T.current.getLocaleText(J3(xe))))}))})),S.jsxs(Q3,h({variant:"standard",as:H.slots.baseFormControl},ie,L,{className:Z(V.columnInput,ie.className,L.className),ownerState:H,children:[S.jsx(H.slots.baseInputLabel,h({},ve,{htmlFor:O,id:j,children:T.current.getLocaleText("filterPanelColumns")})),S.jsx(H.slots.baseSelect,h({labelId:j,id:O,label:T.current.getLocaleText("filterPanelColumns"),value:v.field||"",onChange:se,native:me},(c=H.slotProps)==null?void 0:c.baseSelect,{children:ne.map(xe=>d.createElement(H.slots.baseSelectOption,h({},ue,{native:me,key:xe.field,value:xe.field}),Pi(xe)))}))]})),S.jsxs(X3,h({variant:"standard",as:H.slots.baseFormControl},ie,_,{className:Z(V.operatorInput,ie.className,_.className),ownerState:H,children:[S.jsx(H.slots.baseInputLabel,h({},ve,{htmlFor:N,id:B,children:T.current.getLocaleText("filterPanelOperator")})),S.jsx(H.slots.baseSelect,h({labelId:B,label:T.current.getLocaleText("filterPanelOperator"),id:N,value:v.operator,onChange:Re,native:me,inputRef:q},(f=H.slotProps)==null?void 0:f.baseSelect,{children:ee==null||(p=ee.filterOperators)==null?void 0:p.map(xe=>d.createElement(H.slots.baseSelectOption,h({},ue,{native:me,key:xe.value,value:xe.value}),xe.label||T.current.getLocaleText(`filterOperator${X(xe.value)}`)))}))]})),S.jsx(Z3,h({variant:"standard",as:H.slots.baseFormControl},ie,Q,{className:Z(V.valueInput,ie.className,Q.className),ownerState:H,children:he!=null&&he.InputComponent?S.jsx(he.InputComponent,h({apiRef:T,item:v,applyValue:k,focusElementRef:U},he.InputComponentProps,ge)):null}))]}))});class Yg{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Yg}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function Qg(){const e=_g(Yg.create).current;return LS(e.disposeEffect),e}const tB=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function _r(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,tabIndex:a,disabled:u,clearButton:c,InputProps:f,variant:p="standard"}=e,v=K(e,tB),g=Qg(),[C,k]=d.useState((t=r.value)!=null?t:""),[b,m]=d.useState(!1),y=ut(),w=Ie(),E=d.useCallback(P=>{const{value:x}=P.target;k(String(x)),m(!0),g.start(w.filterDebounceMs,()=>{const I=h({},r,{value:x,fromInput:y});o(I),m(!1)})},[y,o,r,w.filterDebounceMs,g]);return d.useEffect(()=>{if(r.fromInput!==y||r.value===void 0){var x;k(String((x=r.value)!=null?x:""))}},[y,r]),S.jsx(w.slots.baseTextField,h({id:y,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:C,onChange:E,variant:p,type:l||"text",InputProps:h({},b||c?{endAdornment:b?S.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},f,{inputProps:h({tabIndex:a},f==null?void 0:f.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},v,(n=w.slotProps)==null?void 0:n.baseTextField))}const nB=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Zl(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,InputProps:a,clearButton:u,tabIndex:c,disabled:f}=e,p=K(e,nB),v=Qg(),[g,C]=d.useState((t=r.value)!=null?t:""),[k,b]=d.useState(!1),m=ut(),y=Ie(),w=d.useCallback(E=>{const P=E.target.value;C(String(P)),b(!0),v.start(y.filterDebounceMs,()=>{o(h({},r,{value:P})),b(!1)})},[o,r,y.filterDebounceMs,v]);return d.useEffect(()=>{var E;const P=(E=r.value)!=null?E:"";C(String(P))},[r.value]),S.jsx(y.slots.baseTextField,h({fullWidth:!0,id:m,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:w,variant:"standard",type:l||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:h({},k||u?{endAdornment:k?S.jsx(y.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:f},a,{inputProps:h({max:l==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},a==null?void 0:a.inputProps)})},p,(n=y.slotProps)==null?void 0:n.baseTextField))}const rB=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],oB=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:l,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const u=o(a),c=r(a);return d.createElement(n,h({},s,{native:l,key:u,value:u}),c)}),lB=Y("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function D0(e){var t,n,r,o,l,s,i,a;const{item:u,applyValue:c,type:f,apiRef:p,focusElementRef:v,getOptionLabel:g,getOptionValue:C,placeholder:k,tabIndex:b,label:m,variant:y="standard",clearButton:w}=e,E=K(e,rB),[P,x]=d.useState((t=u.value)!=null?t:""),I=ut(),R=ut(),M=Ie(),_=(n=(r=M.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(u.field){const O=p.current.getColumn(u.field);Pl(O)&&(L=O)}const F=C||((o=L)==null?void 0:o.getOptionValue),$=g||((l=L)==null?void 0:l.getOptionLabel),T=d.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),D=d.useCallback(O=>{let j=O.target.value;j=wh(j,T,F),x(String(j)),c(h({},u,{value:j}))},[T,F,c,u]);if(d.useEffect(()=>{var O;let j;if(T!==void 0){if(j=wh(u.value,T,F),j!==u.value){c(h({},u,{value:j}));return}}else j=u.value;j=(O=j)!=null?O:"",x(String(j))},[u,T,c,F]),!Pl(L)||!Pl(L))return null;const A=m??p.current.getLocaleText("filterPanelInputLabel");return S.jsxs(lB,{children:[S.jsxs(M.slots.baseFormControl,{children:[S.jsx(M.slots.baseInputLabel,h({},(s=M.slotProps)==null?void 0:s.baseInputLabel,{id:R,htmlFor:I,shrink:!0,variant:y,children:A})),S.jsx(M.slots.baseSelect,h({id:I,label:A,labelId:R,value:P,onChange:D,variant:y,type:f||"text",inputProps:{tabIndex:b,ref:v,placeholder:k??p.current.getLocaleText("filterPanelInputPlaceholder")},native:_,notched:y==="outlined"?!0:void 0},E,(i=M.slotProps)==null?void 0:i.baseSelect,{children:oB({column:L,OptionComponent:M.slots.baseSelectOption,getOptionLabel:$,getOptionValue:F,isSelectNative:_,baseSelectOptionProps:(a=M.slotProps)==null?void 0:a.baseSelectOption})}))]}),w]})}const sB=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],iB=Y("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function aB(e){var t,n,r,o;const{item:l,applyValue:s,apiRef:i,focusElementRef:a,clearButton:u,tabIndex:c,label:f,variant:p="standard"}=e,v=K(e,sB),[g,C]=d.useState(l.value||""),k=Ie(),b=ut(),m=ut(),y=((t=k.slotProps)==null?void 0:t.baseSelect)||{},w=(n=y.native)!=null?n:!0,E=((r=k.slotProps)==null?void 0:r.baseSelectOption)||{},P=d.useCallback(I=>{const R=I.target.value;C(R),s(h({},l,{value:R}))},[s,l]);d.useEffect(()=>{C(l.value||"")},[l.value]);const x=f??i.current.getLocaleText("filterPanelInputLabel");return S.jsxs(iB,{children:[S.jsxs(k.slots.baseFormControl,{fullWidth:!0,children:[S.jsx(k.slots.baseInputLabel,h({},(o=k.slotProps)==null?void 0:o.baseInputLabel,{id:b,shrink:!0,variant:p,children:x})),S.jsxs(k.slots.baseSelect,h({labelId:b,id:m,label:x,value:g,onChange:P,variant:p,notched:p==="outlined"?!0:void 0,native:w,displayEmpty:!0,inputProps:{ref:a,tabIndex:c}},v,y,{children:[S.jsx(k.slots.baseSelectOption,h({},E,{native:w,value:"",children:i.current.getLocaleText("filterValueAny")})),S.jsx(k.slots.baseSelectOption,h({},E,{native:w,value:"true",children:i.current.getLocaleText("filterValueTrue")})),S.jsx(k.slots.baseSelectOption,h({},E,{native:w,value:"false",children:i.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const uB=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],j0=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),cB=d.forwardRef(function(t,n){var r,o;const l=Xe(),s=Ie(),i=we(l,Gt),a=we(l,NS),u=d.useRef(null),c=d.useRef(null),{logicOperators:f=[yn.And,yn.Or],columnsSort:p,filterFormProps:v,getColumnForNewFilter:g,disableAddFilterButton:C=!1,disableRemoveAllButton:k=!1}=t,b=K(t,uB),m=l.current.upsertFilterItem,y=d.useCallback(_=>{l.current.setFilterLogicOperator(_)},[l]),w=d.useCallback(()=>{let _;if(g&&typeof g=="function"){const L=g({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(L===null)return null;_=a.find(({field:F})=>F===L)}else _=a.find(L=>{var F;return(F=L.filterOperators)==null?void 0:F.length});return _?j0(_):null},[i==null?void 0:i.items,a,g]),E=d.useCallback(()=>{if(g===void 0||typeof g!="function")return w();const _=i.items.length?i.items:[w()].filter(Boolean),L=g({currentFilters:_,columns:a});if(L===null)return null;const F=a.find(({field:$})=>$===L);return F?j0(F):null},[i.items,a,g,w]),P=d.useMemo(()=>i.items.length?i.items:(c.current||(c.current=w()),c.current?[c.current]:[]),[i.items,w]),x=P.length>1,I=()=>{const _=E();_&&l.current.upsertFilterItems([...P,_])},R=d.useCallback(_=>{const L=P.length===1;l.current.deleteFilterItem(_),L&&l.current.hideFilterPanel()},[l,P.length]),M=()=>{P.length===1&&P[0].value===void 0&&(l.current.deleteFilterItem(P[0]),l.current.hideFilterPanel()),l.current.setFilterModel(h({},i,{items:[]}))};return d.useEffect(()=>{f.length>0&&i.logicOperator&&!f.includes(i.logicOperator)&&y(f[0])},[f,y,i.logicOperator]),d.useEffect(()=>{P.length>0&&u.current.focus()},[P.length]),S.jsxs(wP,h({ref:n},b,{children:[S.jsx(CP,{children:P.map((_,L)=>S.jsx(eB,h({item:_,applyFilterChanges:m,deleteFilter:R,hasMultipleFilters:x,showMultiFilterOperators:L>0,multiFilterOperator:i.logicOperator,disableMultiFilterOperator:L!==1,applyMultiFilterOperatorChanges:y,focusElementRef:L===P.length-1?u:null,logicOperators:f,columnsSort:p},v),_.id==null?L:_.id))}),!s.disableMultipleColumnsFiltering&&!(C&&k)?S.jsxs(xP,{children:[C?S.jsx("span",{}):S.jsx(s.slots.baseButton,h({onClick:I,startIcon:S.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("filterPanelAddFilter")})),k?null:S.jsx(s.slots.baseButton,h({onClick:M,startIcon:S.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),dB=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function SP(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:l,color:s,error:i,helperText:a,size:u,variant:c}=e,f=K(e,dB),p={color:s,error:i,helperText:a,size:u,variant:c},[v,g]=d.useState(t.value||[]),C=ut(),k=Ie();d.useEffect(()=>{var m;const y=(m=t.value)!=null?m:[];g(y.map(String))},[t.value]);const b=d.useCallback((m,y)=>{g(y.map(String)),n(h({},t,{value:[...y]}))},[n,t]);return S.jsx(uS,h({multiple:!0,freeSolo:!0,options:[],filterOptions:(m,y)=>{const{inputValue:w}=y;return w==null||w===""?[]:[w]},id:C,value:v,onChange:b,renderTags:(m,y)=>m.map((w,E)=>S.jsx(k.slots.baseChip,h({variant:"outlined",size:"small",label:w},y({index:E})))),renderInput:m=>{var y;return S.jsx(k.slots.baseTextField,h({},m,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:h({},m.InputLabelProps,{shrink:!0}),inputRef:l,type:r||"text"},p,(y=k.slotProps)==null?void 0:y.baseTextField))}},f))}const fB=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],pB=K1();function hB(e){var t,n;const{item:r,applyValue:o,apiRef:l,focusElementRef:s,color:i,error:a,helperText:u,size:c,variant:f="standard",getOptionLabel:p,getOptionValue:v}=e,g=K(e,fB),C={color:i,error:a,helperText:u,size:c,variant:f},k=ut(),b=Ie();let m=null;if(r.field){const M=l.current.getColumn(r.field);Pl(M)&&(m=M)}const y=v||((t=m)==null?void 0:t.getOptionValue),w=p||((n=m)==null?void 0:n.getOptionLabel),E=d.useCallback((M,_)=>y(M)===y(_),[y]),P=d.useMemo(()=>{var M;return(M=m)!=null&&M.valueOptions?typeof m.valueOptions=="function"?m.valueOptions({field:m.field}):m.valueOptions:[]},[m]),x=d.useMemo(()=>P==null?void 0:P.map(y),[P,y]),I=d.useMemo(()=>Array.isArray(r.value)?P!==void 0?r.value.map(_=>x==null?void 0:x.findIndex(L=>L===_)).filter(_=>_>=0).map(_=>P[_]):r.value:[],[r.value,P,x]);d.useEffect(()=>{(!Array.isArray(r.value)||I.length!==r.value.length)&&o(h({},r,{value:I.map(y)}))},[r,I,o,y]);const R=d.useCallback((M,_)=>{o(h({},r,{value:_.map(y)}))},[o,r,y]);return S.jsx(uS,h({multiple:!0,options:P,isOptionEqualToValue:E,filterOptions:pB,id:k,value:I,onChange:R,getOptionLabel:w,renderTags:(M,_)=>M.map((L,F)=>S.jsx(b.slots.baseChip,h({variant:"outlined",size:"small",label:w(L)},_({index:F})))),renderInput:M=>{var _;return S.jsx(b.slots.baseTextField,h({},M,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:h({},M.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},C,(_=b.slotProps)==null?void 0:_.baseTextField))}},g))}const mB=["hideMenu","options"],gB=["hideMenu","options"];function vB(e){const t=Xe(),{hideMenu:n,options:r}=e,o=K(e,mB);return S.jsx(zr,h({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function yB(e){const t=Xe(),{hideMenu:n,options:r}=e,o=K(e,gB);return S.jsx(zr,h({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const bB=["className","selectedRowCount"],CB=e=>{const{classes:t}=e;return de({root:["selectedRowCount"]},Ze,t)},xB=qt("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),wB=d.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,l=K(t,bB),s=Xe(),i=Ie(),a=CB(i),u=s.current.getLocaleText("footerRowSelected")(o);return S.jsx(xB,h({ref:n,className:Z(a.root,r),ownerState:i},l,{children:u}))}),SB=d.forwardRef(function(t,n){var r,o;const l=Xe(),s=Ie(),i=we(l,qN),a=we(l,vH),u=we(l,WS),c=!s.hideFooterSelectedRowCount&&a>0?S.jsx(wB,{selectedRowCount:a}):S.jsx("div",{}),f=!s.hideFooterRowCount&&!s.pagination?S.jsx(s.slots.footerRowCount,h({},(r=s.slotProps)==null?void 0:r.footerRowCount,{rowCount:i,visibleRowCount:u})):null,p=s.pagination&&!s.hideFooterPagination&&s.slots.pagination&&S.jsx(s.slots.pagination,h({},(o=s.slotProps)==null?void 0:o.pagination));return S.jsxs(M4,h({ref:n},t,{children:[c,f,p]}))});function PB(){var e,t;const n=Ie();return S.jsxs(d.Fragment,{children:[S.jsx(n.slots.preferencesPanel,h({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&S.jsx(n.slots.toolbar,h({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const kB=d.forwardRef(function(t,n){return S.jsx(Vg,h({ref:n},t,{children:S.jsx(ND,{})}))}),IB=d.forwardRef(function(t,n){const o=Xe().current.getLocaleText("noRowsLabel");return S.jsx(Vg,h({ref:n},t,{children:o}))}),EB=Y(QA)(({theme:e})=>({[`& .${wl.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${wl.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),MB=d.forwardRef(function(t,n){const r=Xe(),o=Ie(),l=we(r,Wn),s=we(r,bs),i=d.useMemo(()=>Math.floor(s/(l.pageSize||1)),[s,l.pageSize]),a=d.useCallback(p=>{const v=Number(p.target.value);r.current.setPageSize(v)},[r]),u=d.useCallback((p,v)=>{r.current.setPage(v)},[r]),f=(p=>{for(let v=0;v<o.pageSizeOptions.length;v+=1){const g=o.pageSizeOptions[v];if(typeof g=="number"){if(g===p)return!0}else if(g.value===p)return!0}return!1})(l.pageSize)?o.pageSizeOptions:[];return S.jsx(EB,h({ref:n,component:"div",count:s,page:l.page<=i?l.page:i,rowsPerPageOptions:f,rowsPerPage:l.pageSize,onPageChange:u,onRowsPerPageChange:a},r.current.getLocaleText("MuiTablePagination"),t))}),RB=["className","rowCount","visibleRowCount"],TB=e=>{const{classes:t}=e;return de({root:["rowCount"]},Ze,t)},$B=qt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),OB=d.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:l}=t,s=K(t,RB),i=Xe(),a=Ie(),u=TB(a);if(o===0)return null;const c=l<o?i.current.getLocaleText("footerTotalVisibleRows")(l,o):o.toLocaleString();return S.jsxs($B,h({ref:n,className:Z(u.root,r),ownerState:a},s,{children:[i.current.getLocaleText("footerTotalRows")," ",c]}))}),Bc=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Wg(e),n=gH(e)):(n=sl(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Bl=(e,t)=>{const n=Bc(e,t);return d.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Sh={current:null};function Xa(e){return e.isInternal=!0,e}function Vc(e){return e!==void 0&&e.isInternal===!0}function FB(e){return Xa((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Sh.current))})}function Za(e){return e.map(t=>h({},t,{getApplyFilterFn:FB(t.getApplyFilterFnV7),getApplyFilterFnV7:Xa(t.getApplyFilterFnV7)}))}function PP(e){return Xa((t,n,r)=>{const o=e(t,n,r);return o&&(l=>o(l.value,l.row,n,r))})}function kP(e){return{current:e.current.getPublicApi()}}let ki;function _B(){if(ki!==void 0)return ki;try{ki=new Function("return true")()}catch{ki=!1}return ki}const Ph=(e,t)=>{const n=h({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=li(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},DB=Kr(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),jB=Kr("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),LB=Kr("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),IP=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(DB(),o=[e.items[0]]):o=e.items;const l=r&&o.some(i=>i.id==null),s=o.some(i=>i.operator==null);return l&&jB(),s&&LB(),s||l?h({},e,{items:o.map(i=>Ph(i,n))}):e.items!==o?h({},e,{items:o}):e},L0=(e,t,n)=>r=>h({},r,{filterModel:IP(e,t,n)}),Ho=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,EP=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const v=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(g=>v(g)):v(e.value)}else r=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(r=Ho(r));const s=h({},e,{value:r}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=i.find(v=>v.value===s.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const u=!Vc(a.getApplyFilterFn),c=!Vc(a.getApplyFilterFnV7),f=kP(t);if(a.getApplyFilterFnV7&&!(u&&!c)){const v=a.getApplyFilterFnV7(s,n);return typeof v!="function"?null:{v7:!0,item:s,fn:g=>{let C=t.current.getRowValue(g,n);return l&&(C=Ho(C)),v(C,g,n,f)}}}const p=a.getApplyFilterFn(s,n);return typeof p!="function"?null:{v7:!1,item:s,fn:v=>{const g=t.current.getCellParams(v,s.field);Sh.current=f,l&&(g.value=Ho(g.value));const C=p(g);return Sh.current=null,C}}};let A0=1;const AB=(e,t,n)=>{const{items:r}=e,o=r.map(i=>EP(i,t)).filter(i=>!!i);if(o.length===0)return null;if(n||!_B())return(i,a)=>{const u={};for(let c=0;c<o.length;c+=1){const f=o[c];(!a||a(f.item.field))&&(u[f.item.id]=f.v7?f.fn(i):f.fn(t.current.getRowId(i)))}return u};const l=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";
216
216
  ${o.map((i,a)=>`const shouldApply${a} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(i.item.field)});`).join(`
217
217
  `)}
218
218
 
@@ -234,7 +234,7 @@ return result$$;`.replaceAll("$$",String(A0)));return A0+=1,(i,a)=>l(t.current.g
234
234
  `));if($.length===0)return;if(nf(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const D=h({},vr(e)),A=h({},io(e)),O=h({},_c(e)),j=D[dn],N=[...j.children],B=new Set;for(let V=0;V<$.length;V+=1){const U=$[V],q=Lc(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[re]=N.splice(F+V,1,q);B.has(re)||(delete A[re],delete O[re],delete D[re]);const ie={id:q,depth:0,parent:dn,type:"leaf",groupingKey:null};A[q]=U,O[q]=q,D[q]=ie,B.add(q)}D[dn]=h({},j,{children:N});const H=N.filter(V=>D[V].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=A,e.current.caches.rows.dataRowIdToIdLookup=O,e.current.setState(V=>h({},V,{rows:h({},V.rows,{dataRowIdToModelLookup:A,dataRowIdToIdLookup:O,dataRowIds:H,tree:D})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),P={getRow:s,getRowId:a,getRowModels:v,getRowsCount:g,getAllRowIds:C,setRows:f,updateRows:p,getRowNode:m,getRowIndexRelativeToVisibleRows:k,unstable_replaceRows:E},x={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:y},I=d.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let F;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?F=h({},e.current.caches.rows,{updates:{type:"full",rows:Fi(e)}}):F=qu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:F,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),R=d.useCallback(F=>{F==="rowTreeCreation"&&I()},[I]),M=d.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==YN(e)&&I()},[e,I]);Ee(e,"activeStrategyProcessorChange",R),Ee(e,"strategyAvailabilityChange",M);const _=d.useCallback(()=>{e.current.setState(F=>{const $=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:vr(F,e.current.instanceId),treeDepths:C0(F,e.current.instanceId),dataRowIds:Fi(F,e.current.instanceId),dataRowIdToModelLookup:io(F,e.current.instanceId),dataRowIdToIdLookup:_c(F,e.current.instanceId)});return h({},F,{rows:h({},F.rows,$,{totalTopLevelRowCount:qS({tree:$.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);Jg(e,"hydrateRows",_),Ge(e,P,"public"),Ge(e,x,t.signature===Br.DataGrid?"private":"public");const L=d.useRef(!0);d.useEffect(()=>{if(L.current){L.current=!1;return}const F=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,$=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,T=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(F){$||(e.current.setState(D=>h({},D,{rows:h({},D.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),T||(e.current.setState(D=>h({},D,{rows:h({},D.rows,{totalRowCount:Math.max(t.rowCount||0,D.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,D.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:qu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},x6=e=>{const t={[dn]:h({},fz(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:dn,type:"leaf",groupingKey:null}}return{groupingName:Dl,tree:t,treeDepths:{0:e.length},dataRowIds:e}},w6=({previousTree:e,actions:t})=>{const n=h({},e),r={};for(let s=0;s<t.remove.length;s+=1){const i=t.remove[s];r[i]=!0,delete n[i]}for(let s=0;s<t.insert.length;s+=1){const i=t.insert[s];n[i]={id:i,depth:0,parent:dn,type:"leaf",groupingKey:null}}const o=n[dn];let l=[...o.children,...t.insert];return Object.values(r).length&&(l=l.filter(s=>!r[s])),n[dn]=h({},o,{children:l}),{groupingName:Dl,tree:n,treeDepths:{0:l.length},dataRowIds:l}},S6=e=>e.updates.type==="full"?x6(e.updates.rows):w6({previousTree:e.previousTree,actions:e.updates.actions}),P6=e=>{Gc(e,Dl,"rowTreeCreation",S6)},AP=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],k6=(e,t)=>{var n;return h({},e,{rowSelection:t.rowSelection?(n=AP(t.rowSelectionModel))!=null?n:[]:[]})},I6=(e,t)=>{const n=en(e,"useGridSelection"),r=$=>(...T)=>{t.rowSelection&&$(...T)},o=d.useMemo(()=>AP(t.rowSelectionModel,Kn(e.current.state)),[e,t.rowSelectionModel]),l=d.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Kn,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:i,disableRowSelectionOnClick:a,isRowSelectable:u}=t,c=!i||s,f=Bl(e,t),p=d.useCallback($=>{var T;let D=$;const A=(T=l.current)!=null?T:$,O=e.current.isRowSelected($);if(O){const j=Yi(e),N=j.findIndex(H=>H===A),B=j.findIndex(H=>H===D);if(N===B)return;N>B?D=j[B+1]:D=j[B-1]}l.current=$,e.current.selectRowRange({startId:A,endId:D},!O)},[e]),v=d.useCallback($=>{if(t.signature===Br.DataGrid&&!t.checkboxSelection&&Array.isArray($)&&$.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
235
235
  `));Kn(e.current.state)!==$&&(n.debug("Setting selection model"),e.current.setState(D=>h({},D,{rowSelection:t.rowSelection?$:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),g=d.useCallback($=>Kn(e.current.state).includes($),[e]),C=d.useCallback($=>{if(u&&!u(e.current.getRowParams($)))return!1;const T=e.current.getRowNode($);return!((T==null?void 0:T.type)==="footer"||(T==null?void 0:T.type)==="pinnedRow")},[e,u]),k=d.useCallback(()=>yH(e),[e]),b=d.useCallback(($,T=!0,D=!1)=>{if(e.current.isRowSelectable($))if(l.current=$,D)n.debug(`Setting selection for row ${$}`),e.current.setRowSelectionModel(T?[$]:[]);else{n.debug(`Toggling selection for row ${$}`);const O=Kn(e.current.state).filter(N=>N!==$);T&&O.push($),(O.length<2||c)&&e.current.setRowSelectionModel(O)}},[e,n,c]),m=d.useCallback(($,T=!0,D=!1)=>{n.debug("Setting selection for several rows");const A=$.filter(N=>e.current.isRowSelectable(N));let O;if(D)O=T?A:[];else{const N=h({},Hc(e));A.forEach(B=>{T?N[B]=B:delete N[B]}),O=Object.values(N)}(O.length<2||c)&&e.current.setRowSelectionModel(O)},[e,n,c]),y=d.useCallback(({startId:$,endId:T},D=!0,A=!1)=>{if(!e.current.getRow($)||!e.current.getRow(T))return;n.debug(`Expanding selection from row ${$} to row ${T}`);const O=Yi(e),j=O.indexOf($),N=O.indexOf(T),[B,H]=j>N?[N,j]:[j,N],V=O.slice(B,H+1);e.current.selectRows(V,D,A)},[e,n]),w={selectRow:b,setRowSelectionModel:v,getSelectedRows:k,isRowSelected:g,isRowSelectable:C},E={selectRows:m,selectRowRange:y};Ge(e,w,"public"),Ge(e,E,t.signature===Br.DataGrid?"private":"public");const P=d.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const $=Kn(e.current.state),T=io(e),D=h({},Hc(e));let A=!1;$.forEach(O=>{T[O]||(delete D[O],A=!0)}),A&&e.current.setRowSelectionModel(Object.values(D))},[e,t.keepNonExistentRowsSelected]),x=d.useCallback(($,T)=>{const D=T.metaKey||T.ctrlKey,A=!s&&!D&&!n4(T),O=!c||A,j=e.current.isRowSelected($);O?e.current.selectRow($,A?!0:!j,!0):e.current.selectRow($,!j,!1)},[e,c,s]),I=d.useCallback(($,T)=>{var D;if(a)return;const A=(D=T.target.closest(`.${z.cell}`))==null?void 0:D.getAttribute("data-field");if(A===ai.field||A===Xg)return;if(A){const j=e.current.getColumn(A);if((j==null?void 0:j.type)===sf)return}e.current.getRowNode($.id).type!=="pinnedRow"&&(T.shiftKey&&(c||s)?p($.id):x($.id,T))},[a,c,s,e,p,x]),R=d.useCallback(($,T)=>{if(c&&T.shiftKey){var D;(D=window.getSelection())==null||D.removeAllRanges()}},[c]),M=d.useCallback(($,T)=>{T.nativeEvent.shiftKey?p($.id):e.current.selectRow($.id,$.value)},[e,p]),_=d.useCallback($=>{const D=t.checkboxSelectionVisibleOnly&&t.pagination?hP(e):Yi(e),A=Gt(e);e.current.selectRows(D,$.value,(A==null?void 0:A.items.length)>0)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),L=d.useCallback(($,T)=>{if(e.current.getCellMode($.id,$.field)!==at.Edit&&!Ya(T)){if(zc(T.key)&&T.shiftKey){const D=Tn(e);if(D&&D.id!==$.id){T.preventDefault();const A=e.current.isRowSelected(D.id);if(!c){e.current.selectRow(D.id,!A,!0);return}const O=e.current.getRowIndexRelativeToVisibleRows(D.id),j=e.current.getRowIndexRelativeToVisibleRows($.id);let N,B;O>j?A?(N=j,B=O-1):(N=j,B=O):A?(N=O+1,B=j):(N=O,B=j);const H=f.rows.slice(N,B+1).map(V=>V.id);e.current.selectRows(H,!A);return}}if(T.key===" "&&T.shiftKey){T.preventDefault(),x($.id,T);return}T.key==="a"&&(T.ctrlKey||T.metaKey)&&(T.preventDefault(),m(e.current.getAllRowIds(),!0))}},[e,x,m,f.rows,c]);Ee(e,"sortedRowsSet",r(P)),Ee(e,"rowClick",r(I)),Ee(e,"rowSelectionCheckboxChange",r(M)),Ee(e,"headerSelectionCheckboxChange",_),Ee(e,"cellMouseDown",r(R)),Ee(e,"cellKeyDown",r(L)),d.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),d.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const F=o!=null;d.useEffect(()=>{if(F||!t.rowSelection)return;const $=Kn(e.current.state);if(C){const T=$.filter(D=>C(D));T.length<$.length&&e.current.setRowSelectionModel(T)}},[e,C,F,t.rowSelection]),d.useEffect(()=>{if(!t.rowSelection||F)return;const $=Kn(e.current.state);!c&&$.length>1&&e.current.setRowSelectionModel([])},[e,c,s,F,t.rowSelection])},E6={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},M6=e=>{const{classes:t}=e;return d.useMemo(()=>de({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Ze,t),[t])},R6=(e,t)=>{const n={classes:t.classes},r=M6(n),o=d.useCallback(l=>{const s=h({},ai,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=l.lookup[Ro]!=null;return i&&!a?(l.lookup[Ro]=s,l.orderedFields=[Ro,...l.orderedFields]):!i&&a?(delete l.lookup[Ro],l.orderedFields=l.orderedFields.filter(u=>u!==Ro)):i&&a&&(l.lookup[Ro]=h({},s,l.lookup[Ro])),l},[e,r,t.checkboxSelection]);_t(e,"hydrateColumns",o)},T6=(e,t)=>{var n,r,o;const l=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return h({},e,{sorting:{sortModel:mP(l,t.disableMultipleColumnsSorting),sortedRows:[]}})},$6=(e,t)=>{var n;const r=en(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Un,changeEvent:"sortModelChange"});const o=d.useCallback((P,x)=>{const I=Un(e),R=I.findIndex(_=>_.field===P);let M=[...I];return R>-1?x?M.splice(R,1,x):M.splice(R,1):M=[...I,x],M},[e]),l=d.useCallback((P,x)=>{var I;const M=Un(e).find(L=>L.field===P.field);if(M){var _;const L=x===void 0?k0((_=P.sortingOrder)!=null?_:t.sortingOrder,M.sort):x;return L==null?void 0:h({},M,{sort:L})}return{field:P.field,sort:x===void 0?k0((I=P.sortingOrder)!=null?I:t.sortingOrder):x}},[e,t.sortingOrder]),s=d.useCallback((P,x)=>x==null||x.sortable===!1?P:(x.sortingOrder||t.sortingOrder).some(R=>!!R)?[...P,"columnMenuSortItem"]:P,[t.sortingOrder]),i=d.useCallback(()=>{e.current.setState(P=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),h({},P,{sorting:h({},P.sorting,{sortedRows:Hg(vr(e),dn,!1)})});const x=Un(P,e.current.instanceId),I=SH(x,e),R=e.current.applyStrategyProcessor("sorting",{sortRowList:I});return h({},P,{sorting:h({},P.sorting,{sortedRows:R})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=d.useCallback(P=>{Un(e)!==P&&(r.debug("Setting sort model"),e.current.setState(P0(P,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=d.useCallback((P,x,I)=>{if(!P.sortable)return;const R=l(P,x);let M;!I||t.disableMultipleColumnsSorting?M=R?[R]:[]:M=o(P.field,R),e.current.setSortModel(M)},[e,o,l,t.disableMultipleColumnsSorting]),c=d.useCallback(()=>Un(e),[e]),f=d.useCallback(()=>Ag(e).map(x=>x.model),[e]),p=d.useCallback(()=>Lg(e),[e]),v=d.useCallback(P=>e.current.getSortedRowIds()[P],[e]);Ge(e,{getSortModel:c,getSortedRows:f,getSortedRowIds:p,getRowIdFromRowIndex:v,setSortModel:a,sortColumn:u,applySorting:i},"public");const C=d.useCallback((P,x)=>{var I;const R=Un(e);return!x.exportOnlyDirtyModels||t.sortModel!=null||((I=t.initialState)==null||(I=I.sorting)==null?void 0:I.sortModel)!=null||R.length>0?h({},P,{sorting:{sortModel:R}}):P},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),k=d.useCallback((P,x)=>{var I;const R=(I=x.stateToRestore.sorting)==null?void 0:I.sortModel;return R==null?P:(e.current.setState(P0(R,t.disableMultipleColumnsSorting)),h({},P,{callbacks:[...P.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=d.useCallback(P=>{const x=vr(e),I=x[dn],R=P.sortRowList?P.sortRowList(I.children.map(M=>x[M])):[...I.children];return I.footerId!=null&&R.push(I.footerId),R},[e]);_t(e,"exportState",C),_t(e,"restoreState",k),Gc(e,Dl,"sorting",b);const m=d.useCallback(({colDef:P},x)=>{const I=x.shiftKey||x.metaKey||x.ctrlKey;u(P,void 0,I)},[u]),y=d.useCallback(({colDef:P},x)=>{Zz(x.key)&&!x.ctrlKey&&!x.metaKey&&u(P,void 0,x.shiftKey)},[u]),w=d.useCallback(()=>{const P=Un(e),x=li(e);if(P.length>0){const I=P.filter(R=>x[R.field]);I.length<P.length&&e.current.setSortModel(I)}},[e]),E=d.useCallback(P=>{P==="sorting"&&e.current.applySorting()},[e]);_t(e,"columnMenu",s),Ee(e,"columnHeaderClick",m),Ee(e,"columnHeaderKeyDown",y),Ee(e,"rowsSet",e.current.applySorting),Ee(e,"columnsChange",w),Ee(e,"activeStrategyProcessorChange",E),Qa(()=>{e.current.applySorting()}),st(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function Q0(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,l=o+r;if(r>t)return o;if(l-t>n)return l-t;if(o<n)return o}const O6=(e,t)=>{const n=Ur(),r=en(e,"useGridScroll"),o=e.current.columnHeadersElementRef,l=e.current.virtualScrollerRef,s=we(e,sl),i=d.useCallback(f=>{const p=tf(e),v=Xt(e);if(!(f.rowIndex==null)&&p===0||v.length===0)return!1;r.debug(`Scrolling to cell at row ${f.rowIndex}, col: ${f.colIndex} `);let C={};if(f.colIndex!=null){const y=Us(e);let w;if(typeof f.rowIndex<"u"){var k;const E=(k=s[f.rowIndex])==null?void 0:k.id,P=e.current.unstable_getCellColSpanInfo(E,f.colIndex);P&&!P.spannedByColSpan&&(w=P.cellProps.width)}typeof w>"u"&&(w=v[f.colIndex].computedWidth),C.left=Q0({clientHeight:l.current.clientWidth,scrollTop:Math.abs(l.current.scrollLeft),offsetHeight:w,offsetTop:y[f.colIndex]})}if(f.rowIndex!=null){var b,m;const y=$a(e.current.state),w=hH(e),E=pP(e),P=t.pagination?f.rowIndex-w*E:f.rowIndex,x=y.positions[P+1]?y.positions[P+1]-y.positions[P]:y.currentPageTotalHeight-y.positions[P],I=((b=l.current.querySelector(`.${z["pinnedRows--top"]}`))==null?void 0:b.clientHeight)||0,R=((m=l.current.querySelector(`.${z["pinnedRows--bottom"]}`))==null?void 0:m.clientHeight)||0;C.top=Q0({clientHeight:l.current.clientHeight-I-R,scrollTop:l.current.scrollTop,offsetHeight:x,offsetTop:y.positions[P]})}return C=e.current.unstable_applyPipeProcessors("scrollToIndexes",C,f),typeof C.left!==void 0||typeof C.top!==void 0?(e.current.scroll(C),!0):!1},[r,e,l,t.pagination,s]),a=d.useCallback(f=>{if(l.current&&f.left!=null&&o.current){const p=n.direction==="rtl"?-1:1;o.current.scrollLeft=f.left,l.current.scrollLeft=p*f.left,r.debug(`Scrolling left: ${f.left}`)}l.current&&f.top!=null&&(l.current.scrollTop=f.top,r.debug(`Scrolling top: ${f.top}`)),r.debug("Scrolling, updating container, and viewport")},[l,n.direction,o,r]),u=d.useCallback(()=>l!=null&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0},[l]);Ge(e,{scroll:a,scrollToIndexes:i,getScrollPosition:u},"public")};function F6(e,t){Ct(e,"columnHeaderClick",t.onColumnHeaderClick),Ct(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ct(e,"columnHeaderOver",t.onColumnHeaderOver),Ct(e,"columnHeaderOut",t.onColumnHeaderOut),Ct(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ct(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ct(e,"cellClick",t.onCellClick),Ct(e,"cellDoubleClick",t.onCellDoubleClick),Ct(e,"cellKeyDown",t.onCellKeyDown),Ct(e,"preferencePanelClose",t.onPreferencePanelClose),Ct(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ct(e,"menuOpen",t.onMenuOpen),Ct(e,"menuClose",t.onMenuClose),Ct(e,"rowDoubleClick",t.onRowDoubleClick),Ct(e,"rowClick",t.onRowClick),Ct(e,"stateChange",t.onStateChange)}const _6=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let l=!1,s=!1;return(r||o)&&(l=r,s=e.height+(l?n:0)>t.height,s&&(l=e.width+n>t.width)),{hasScrollX:l,hasScrollY:s}};function D6(e,t){const n=en(e,"useResizeContainer"),r=d.useRef(!1),o=d.useRef(null),l=d.useRef(null),s=we(e,$a),i=we(e,ii),a=Math.floor(t.rowHeight*i),u=ev(e,t.columnHeaderHeight),c=d.useCallback(()=>{var x;const I=(x=e.current.rootElementRef)==null?void 0:x.current,R=jg(e),M=QS(e);if(!o.current)return;let _;if(t.scrollbarSize!=null)_=t.scrollbarSize;else if(!R||!I)_=0;else{const j=kt(I).createElement("div");j.style.width="99px",j.style.height="99px",j.style.position="absolute",j.style.overflow="scroll",j.className="scrollDiv",I.appendChild(j),_=j.offsetWidth-j.clientWidth,I.removeChild(j)}let L,F,$;if(t.autoHeight)$=!1,F=Math.round(R)>Math.round(o.current.width),L={width:o.current.width,height:s.currentPageTotalHeight+(F?_:0)};else{L={width:o.current.width,height:Math.max(o.current.height-u,0)};const O=_6({content:{width:Math.round(R),height:s.currentPageTotalHeight},container:{width:Math.round(L.width),height:L.height-M.top-M.bottom},scrollBarSize:_});$=O.hasScrollY,F=O.hasScrollX}const T={width:L.width-($?_:0),height:L.height-(F?_:0)},D={viewportOuterSize:L,viewportInnerSize:T,hasScrollX:F,hasScrollY:$,scrollBarSize:_},A=l.current;l.current=D,(D.viewportInnerSize.width!==(A==null?void 0:A.viewportInnerSize.width)||D.viewportInnerSize.height!==(A==null?void 0:A.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",D.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,u]),[f,p]=d.useState(),v=d.useMemo(()=>Al(p,60),[]),g=d.useRef();st(()=>{f&&(c(),e.current.publishEvent("debouncedResize",o.current))},[e,f,c]);const C=d.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),k=d.useCallback(()=>l.current,[]),b=d.useCallback(()=>{const x=e.current.getRootDimensions();if(!x)return 0;const I=Bc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const M=e.current.getRenderContext(),_=M.lastRowIndex-M.firstRowIndex;return Math.min(_-1,I.rows.length)}const R=Math.floor(x.viewportInnerSize.height/a);return Math.min(R,I.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),m=d.useCallback(()=>{var x,I,R;const M=(x=e.current.mainElementRef)==null?void 0:x.current;if(!M)return;const L=Pr(M).getComputedStyle(M),F=parseFloat(L.height)||0,$=parseFloat(L.width)||0,T=F!==((I=g.current)==null?void 0:I.height),D=$!==((R=g.current)==null?void 0:R.width);if(!g.current||T||D){const A={width:$,height:F};e.current.publishEvent("resize",A),g.current=A}},[e]),y={resize:C,getRootDimensions:k},w={getViewportPageSize:b,updateGridDimensionsRef:c,computeSizeAndPublishResizeEvent:m};Ge(e,y,"public"),Ge(e,w,"private");const E=d.useRef(!0),P=d.useCallback(x=>{o.current=x;const I=/jsdom/.test(window.navigator.userAgent);if(x.height===0&&!r.current&&!t.autoHeight&&!I&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
236
236
  `)),r.current=!0),x.width===0&&!r.current&&!I&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
237
- `)),r.current=!0),E.current){p(x),E.current=!1;return}v(x)},[t.autoHeight,v,n]);st(()=>c(),[c]),Ct(e,"sortedRowsSet",c),Ct(e,"paginationModelChange",c),Ct(e,"columnsChange",c),Ee(e,"resize",P),Ct(e,"debouncedResize",t.onResize)}const j6=["style"],L6=["style"];function Ks(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),l=t[o];return e<=l?Ks(e,t,n,o):Ks(e,t,o+1,r)}function A6(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Ks(e,t,Math.floor(n/2),Math.min(n,t.length))}const Fo=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Ws(e-n,r,o),Ws(t+n,r,o)],NP=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,N6={maxSize:3},z6=e=>{const t=ll(),n=Ie(),r=we(t,Xt),o=we(t,RH),l=we(t,bP),{ref:s,onRenderZonePositioning:i,renderZoneMinColumnIndex:a=0,renderZoneMaxColumnIndex:u=r.length,getRowProps:c}=e,f=Ur(),p=we(t,Us),v=we(t,jg),g=we(t,Tn),C=we(t,jc),k=we(t,$a),b=we(t,Hc),m=Bl(t,n),y=d.useRef(null),w=d.useRef(null),E=ft(s,w),[P,x]=d.useState(null),I=d.useRef(P),R=d.useRef({top:0,left:0}),[M,_]=d.useState({width:null,height:null}),L=d.useRef(v),[F,$]=d.useState(null),T=d.useRef(Object.create(null)),D=d.useRef(),A=d.useRef(),O=d.useRef(Zd((Q,ae,ne,ee,he,se)=>{let Re;const Pe=Q.slice(ae,ne);return se>-1&&(ae>se&&se>=ee||ne<se&&se<he)&&(Re=se),{focusedCellColumnIndexNotInRange:Re,renderedColumns:Pe}},N6)),j=d.useMemo(()=>g!==null?r.findIndex(Q=>Q.field===g.field):-1,[g,r]),N=d.useCallback(()=>{if(!o)return{firstRowIndex:0,lastRowIndex:m.rows.length,firstColumnIndex:0,lastColumnIndex:r.length};const{top:Q,left:ae}=R.current,ne=Math.min(X0(t,m,k,Q),k.positions.length-1),ee=n.autoHeight?ne+m.rows.length:X0(t,m,k,Q+M.height);let he=0,se=p.length;if(l){let Re=!1;const[Pe,Oe]=Fo({firstIndex:ne,lastIndex:ee,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:n.rowBuffer});for(let xe=Pe;xe<Oe&&!Re;xe+=1){const te=m.rows[xe];Re=t.current.rowHasAutoHeight(te.id)}Re||(he=Ks(Math.abs(ae),p),se=Ks(Math.abs(ae)+M.width,p))}return{firstRowIndex:ne,lastRowIndex:ee,firstColumnIndex:he,lastColumnIndex:se}},[o,l,k,n.autoHeight,n.rowBuffer,m,p,r.length,t,M]);st(()=>{o?(w.current.scrollLeft=0,w.current.scrollTop=0):y.current.style.transform="translate3d(0px, 0px, 0px)"},[o]),st(()=>{_({width:w.current.clientWidth,height:w.current.clientHeight})},[k.currentPageTotalHeight]);const B=d.useCallback(()=>{w.current&&_({width:w.current.clientWidth,height:w.current.clientHeight})},[]);Ee(t,"debouncedResize",B);const H=d.useCallback(Q=>{const[ae,ne]=Fo({firstIndex:Q.firstRowIndex,lastIndex:Q.lastRowIndex,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:n.rowBuffer}),[ee]=Fo({firstIndex:Q.firstColumnIndex,lastIndex:Q.lastColumnIndex,minFirstIndex:a,maxLastIndex:u,buffer:n.columnBuffer}),he=Mh({firstColumnToRender:ee,apiRef:t,firstRowToRender:ae,lastRowToRender:ne,visibleRows:m.rows}),se=f.direction==="ltr"?1:-1,Re=$a(t.current.state).positions[ae],Pe=se*Us(t)[he];y.current.style.transform=`translate3d(${Pe}px, ${Re}px, 0px)`,typeof i=="function"&&i({top:Re,left:Pe})},[t,m.rows,i,a,u,n.columnBuffer,n.rowBuffer,f.direction]),V=d.useCallback(()=>I.current,[]),U=d.useCallback(Q=>{if(I.current&&NP(Q,I.current)){H(Q);return}x(Q),H(Q);const[ae,ne]=Fo({firstIndex:Q.firstRowIndex,lastIndex:Q.lastRowIndex,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:n.rowBuffer});t.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ae,lastRowToRender:ne}),I.current=Q},[t,x,I,m.rows.length,n.rowBuffer,H]);st(()=>{if(M.width==null)return;const Q=N();U(Q);const{top:ae,left:ne}=R.current,ee={top:ae,left:ne,renderContext:Q};t.current.publishEvent("scrollPositionChange",ee)},[t,N,M.width,U]);const q=ct(Q=>{const{scrollTop:ae,scrollLeft:ne}=Q.currentTarget;if(R.current.top=ae,R.current.left=ne,!I.current||ae<0||f.direction==="ltr"&&ne<0||f.direction==="rtl"&&ne>0)return;const ee=o?N():I.current,he=Math.abs(ee.firstRowIndex-I.current.firstRowIndex),se=Math.abs(ee.lastRowIndex-I.current.lastRowIndex),Re=Math.abs(ee.firstColumnIndex-I.current.firstColumnIndex),Pe=Math.abs(ee.lastColumnIndex-I.current.lastColumnIndex),Oe=he>=n.rowThreshold||se>=n.rowThreshold||Re>=n.columnThreshold||Pe>=n.columnThreshold||L.current!==v;t.current.publishEvent("scrollPositionChange",{top:ae,left:ne,renderContext:Oe?ee:I.current},Q),Oe&&(Aa.flushSync(()=>{U(ee)}),L.current=v)}),re=ct(Q=>{t.current.publishEvent("virtualScrollerWheel",{},Q)}),ie=ct(Q=>{t.current.publishEvent("virtualScrollerTouchMove",{},Q)}),pe=d.useMemo(()=>g!==null?m.rows.findIndex(Q=>Q.id===g.id):-1,[g,m.rows]);Ee(t,"rowMouseOver",(Q,ae)=>{var ne;ae.currentTarget.contains(ae.relatedTarget)||$((ne=Q.id)!=null?ne:null)}),Ee(t,"rowMouseOut",(Q,ae)=>{ae.currentTarget.contains(ae.relatedTarget)||$(null)});const me=(Q={renderContext:P})=>{var ae;const{onRowRender:ne,renderContext:ee,minFirstColumn:he=a,maxLastColumn:se=u,availableSpace:Re=M.width,rowIndexOffset:Pe=0,position:Oe="center"}=Q;if(!ee||Re==null)return null;const xe=o?n.rowBuffer:0,te=o?n.columnBuffer:0,[oe,ye]=Fo({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:xe}),Me=[];if(Q.rows)Q.rows.forEach(Ve=>{Me.push(Ve),t.current.calculateColSpan({rowId:Ve.id,minFirstColumn:he,maxLastColumn:se,columns:r})});else{if(!m.range)return null;for(let Ve=oe;Ve<ye;Ve+=1){const Je=m.rows[Ve];Me.push(Je),t.current.calculateColSpan({rowId:Je.id,minFirstColumn:he,maxLastColumn:se,columns:r})}}let Ae=!1;if(pe>-1){const Ve=m.rows[pe];(oe>pe||ye<pe)&&(Ae=!0,pe>oe?Me.push(Ve):Me.unshift(Ve),t.current.calculateColSpan({rowId:Ve.id,minFirstColumn:he,maxLastColumn:se,columns:r}))}const[Te,ce]=Fo({firstIndex:ee.firstColumnIndex,lastIndex:ee.lastColumnIndex,minFirstIndex:he,maxLastIndex:se,buffer:te}),Be=Mh({firstColumnToRender:Te,apiRef:t,firstRowToRender:oe,lastRowToRender:ye,visibleRows:m.rows});let yt=!1;(Be>j||ce<j)&&(yt=!0);const{focusedCellColumnIndexNotInRange:Ye,renderedColumns:be}=O.current(r,Be,ce,he,se,yt?j:-1),Le=((ae=n.slotProps)==null?void 0:ae.row)||{},{style:le}=Le,Se=K(Le,j6);(D.current!==c||A.current!==le)&&(T.current=Object.create(null));const He=[];let qe=!1;for(let Ve=0;Ve<Me.length;Ve+=1){var it;const{id:Je,model:Rt}=Me[Ve],En=Ae&&g.id===Je,qr=Ae?oe+Ve===m.rows.length:oe+Ve===m.rows.length-1,xo=t.current.rowHasAutoHeight(Je)?"auto":t.current.unstable_getRowHeight(Je);let Yr;b[Je]==null?Yr=!1:Yr=t.current.isRowSelectable(Je),ne&&ne(Je);const ul=g!==null&&g.id===Je?g.field:null,Mn=Ye!==void 0&&r[Ye],Lt=Mn&&ul?[Mn,...be]:be;let ht=null;C!==null&&C.id===Je&&(ht=t.current.getCellParams(Je,C.field).cellMode==="view"?C.field:null);const Vt=typeof c=="function"&&c(Je,Rt)||{},{style:tn}=Vt,cr=K(Vt,L6);if(!T.current[Je]){const Vn=h({},tn,le);T.current[Je]=Vn}let Qr=Pe+((m==null||(it=m.range)==null?void 0:it.firstRowIndex)||0)+oe+Ve;Ae&&(g==null?void 0:g.id)===Je?(Qr=pe,qe=!0):qe&&(Qr-=1),He.push(S.jsx(n.slots.row,h({row:Rt,rowId:Je,focusedCellColumnIndexNotInRange:Ye,isNotVisible:En,rowHeight:xo,focusedCell:ul,tabbableCell:ht,renderedColumns:Lt,visibleColumns:r,firstColumnToRender:Be,lastColumnToRender:ce,selected:Yr,index:Qr,containerWidth:Re,isLastVisible:qr,position:Oe},cr,Se,{hovered:F===Je,style:T.current[Je]}),Je))}return D.current=c,A.current=le,He},ve=M.width&&v>=M.width,ue=d.useMemo(()=>{const Q=Math.max(k.currentPageTotalHeight,1);let ae=!1;w!=null&&w.current&&Q<=(w==null?void 0:w.current.clientHeight)&&(ae=!0);const ne={width:ve?v:"auto",height:Q,minHeight:ae?"100%":"auto"};return n.autoHeight&&m.rows.length===0&&(ne.height=XS(t,n.rowHeight)),ne},[t,w,v,k.currentPageTotalHeight,ve,n.autoHeight,n.rowHeight,m.rows.length]);d.useEffect(()=>{t.current.publishEvent("virtualScrollerContentSizeChange")},[t,ue]);const ge=d.useMemo(()=>{const Q={};return ve||(Q.overflowX="hidden"),n.autoHeight&&(Q.overflowY="hidden"),Q},[ve,n.autoHeight]);return t.current.register("private",{getRenderContext:V}),{renderContext:P,updateRenderZonePosition:H,getRows:me,getRootProps:(Q={})=>h({ref:E,onScroll:q,onWheel:re,onTouchMove:ie},Q,{style:Q.style?h({},Q.style,ge):ge,role:"presentation"}),getContentProps:({style:Q}={})=>({style:Q?h({},Q,ue):ue,role:"presentation"}),getRenderZoneProps:()=>({ref:y,role:"rowgroup"})}};function X0(e,t,n,r){var o,l;const s=e.current.getLastMeasuredRowIndex();let i=s===1/0;(o=t.range)!=null&&o.lastRowIndex&&!i&&(i=s>=t.range.lastRowIndex);const a=Ws(s-(((l=t.range)==null?void 0:l.firstRowIndex)||0),0,n.positions.length);return i||n.positions[a]>=r?Ks(r,n.positions):A6(r,n.positions,a)}const H6=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:l}=e;return de({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ze,t)};function B6(e){var t;const{groupId:n,width:r,depth:o,maxDepth:l,fields:s,height:i,colIndex:a,hasFocus:u,tabIndex:c,isLastColumn:f}=e,p=Ie(),v=d.useRef(null),g=Xe(),C=we(g,zS),k=n?C[n]:{},{headerName:b=n??"",description:m="",headerAlign:y=void 0}=k;let w;const E=n&&((t=C[n])==null?void 0:t.renderHeaderGroup),P=d.useMemo(()=>({groupId:n,headerName:b,description:m,depth:o,maxDepth:l,fields:s,colIndex:a,isLastColumn:f}),[n,b,m,o,l,s,a,f]);n&&E&&(w=E(P));const x=p.showColumnVerticalBorder,I=h({},e,{classes:p.classes,showColumnBorder:x,headerAlign:y,depth:o,isDragging:!1}),R=b??n,M=ut(),_=n===null?`empty-group-cell-${M}`:n,L=H6(I);d.useLayoutEffect(()=>{if(u){const A=v.current.querySelector('[tabindex="0"]')||v.current;A==null||A.focus()}},[g,u]);const F=d.useCallback(D=>A=>{Ya(A)||g.current.publishEvent(D,P,A)},[g,P]),$=d.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),T=typeof k.headerClassName=="function"?k.headerClassName(P):k.headerClassName;return S.jsx(iP,h({ref:v,classes:L,columnMenuOpen:!1,colIndex:a,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:w,headerClassName:T,description:m,elementId:_,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:R,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},$))}const Z0=Y("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function V6(e){return!!e.target}const G6=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:l,columnPositions:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:f,headerGroupingMaxDepth:p,columnMenuState:v,columnVisibility:g,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:k}=e,b=Ur(),[m,y]=d.useState(""),[w,E]=d.useState(""),P=ll(),x=we(P,bP),I=Ie(),R=d.useRef(null),M=ft(t,R),[_,L]=d.useState(null),F=d.useRef(_),$=d.useRef(0),T=Bl(P,I),D=ev(P,I.columnHeaderHeight),A=Math.floor(I.columnHeaderHeight*f),O=d.useCallback(ve=>{_&&ve&&NP(_,ve)||L(ve)},[_]);d.useEffect(()=>{var ve;(ve=P.current.columnHeadersContainerElementRef)!=null&&ve.current&&(P.current.columnHeadersContainerElementRef.current.scrollLeft=0)},[P]);const j=d.useRef(Zd(jV,{equalityCheck:(ve,ue)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ge=>ve[ge]===ue[ge])})),N=d.useCallback(ve=>{const[ue,ge]=Fo({firstIndex:ve.firstRowIndex,lastIndex:ve.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:I.rowBuffer}),Q=j.current({firstColumnIndex:ve.firstColumnIndex,minColumnIndex:n,columnBuffer:I.columnBuffer,firstRowToRender:ue,lastRowToRender:ge,apiRef:P,visibleRows:T.rows}),ae=b.direction==="ltr"?1:-1,ne=Q>0?$.current-ae*s[Q]:$.current;R.current.style.transform=`translate3d(${-ne}px, 0px, 0px)`},[s,n,I.columnBuffer,P,T.rows,I.rowBuffer,b.direction]);d.useLayoutEffect(()=>{_&&N(_)},[_,N]);const B=d.useCallback(({left:ve,renderContext:ue=null},ge)=>{var Q,ae;if(!R.current||$.current===ve&&((Q=F.current)==null?void 0:Q.firstColumnIndex)===(ue==null?void 0:ue.firstColumnIndex)&&((ae=F.current)==null?void 0:ae.lastColumnIndex)===(ue==null?void 0:ue.lastColumnIndex))return;$.current=ve;let ne=!1;ue!==F.current||!F.current?(V6(ge)?(Aa.flushSync(()=>{O(ue)}),ne=!0):O(ue),F.current=ue):ne=!0,ue&&ne&&N(ue)},[N,O]),H=d.useCallback(ve=>E(ve.field),[]),V=d.useCallback(()=>E(""),[]),U=d.useCallback(ve=>y(ve.field),[]),q=d.useCallback(()=>y(""),[]);Ee(P,"columnResizeStart",H),Ee(P,"columnResizeStop",V),Ee(P,"columnHeaderDragStart",U),Ee(P,"columnHeaderDragEnd",q),Ee(P,"scrollPositionChange",B);const re=ve=>{const{renderContext:ue=_,minFirstColumn:ge=n,maxLastColumn:Q=r.length}=ve||{};if(!ue)return null;const[ae,ne]=Fo({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:I.rowBuffer}),ee=x?j.current({firstColumnIndex:ue.firstColumnIndex,minColumnIndex:ge,columnBuffer:I.columnBuffer,apiRef:P,firstRowToRender:ae,lastRowToRender:ne,visibleRows:T.rows}):0,he=x?Math.min(ue.lastColumnIndex+I.columnBuffer,Q):Q;return{renderedColumns:r.slice(ee,he),firstColumnToRender:ee,lastColumnToRender:he,minFirstColumn:ge,maxLastColumn:Q}},ie=(ve,ue={})=>{const ge=re(ve);if(ge==null)return null;const{renderedColumns:Q,firstColumnToRender:ae}=ge,ne=[];for(let ee=0;ee<Q.length;ee+=1){const he=Q[ee],se=ae+ee,Re=se===0,Pe=i!==null&&i.field===he.field||Re&&!k?0:-1,Oe=u!==null&&u.field===he.field,xe=v.open&&v.field===he.field;ne.push(S.jsx(J4,h({},o[he.field],{columnMenuOpen:xe,filterItemsCounter:l[he.field]&&l[he.field].length,headerHeight:A,isDragging:he.field===m,colDef:he,colIndex:se,isResizing:w===he.field,hasFocus:Oe,tabIndex:Pe},ue),he.field))}return S.jsx(Z0,{role:"row","aria-rowindex":p+1,ownerState:I,children:ne})},pe=ve=>{if(p===0)return null;const ue=re(ve);if(ue==null||ue.renderedColumns.length===0)return null;const{firstColumnToRender:ge,lastColumnToRender:Q}=ue,ae=[],ne=[];for(let se=0;se<p;se+=1){var ee,he;const Re=C[se],Pe=r[ge].field,Oe=(ee=P.current.unstable_getColumnGroupPath(Pe)[se])!=null?ee:null,xe=Re.findIndex(({groupId:Ye,columnFields:be})=>Ye===Oe&&be.includes(Pe)),te=r[Q-1].field,oe=(he=P.current.unstable_getColumnGroupPath(te)[se])!=null?he:null,ye=Re.findIndex(({groupId:Ye,columnFields:be})=>Ye===oe&&be.includes(te)),Me=Re.slice(xe,ye+1).map(Ye=>h({},Ye,{columnFields:Ye.columnFields.filter(be=>g[be]!==!1)})).filter(Ye=>Ye.columnFields.length>0),Ae=Me[0].columnFields.indexOf(Pe),ce=Me[0].columnFields.slice(0,Ae).reduce((Ye,be)=>{var Le;const le=P.current.getColumn(be);return Ye+((Le=le.computedWidth)!=null?Le:0)},0);let Be=ge;const yt=Me.map(({groupId:Ye,columnFields:be})=>{const Le=c!==null&&c.depth===se&&be.includes(c.field),le=a!==null&&a.depth===se&&be.includes(a.field)?0:-1,Se={groupId:Ye,width:be.reduce((Ne,He)=>Ne+P.current.getColumn(He).computedWidth,0),fields:be,colIndex:Be,hasFocus:Le,tabIndex:le};return Be+=be.length,Se});ne.push({leftOverflow:ce,elements:yt})}return ne.forEach((se,Re)=>{ae.push(S.jsx(Z0,{style:{height:`${A}px`,transform:`translateX(-${se.leftOverflow}px)`},role:"row","aria-rowindex":Re+1,ownerState:I,children:se.elements.map(({groupId:Pe,width:Oe,fields:xe,colIndex:te,hasFocus:oe,tabIndex:ye},Me)=>S.jsx(B6,{groupId:Pe,width:Oe,fields:xe,colIndex:te,depth:Re,isLastColumn:te===r.length-xe.length,maxDepth:ne.length,height:A,hasFocus:oe,tabIndex:ye},Me))},Re))}),ae},me={minHeight:D,maxHeight:D,lineHeight:`${A}px`};return{renderContext:_,getColumnHeaders:ie,getColumnsToRender:re,getColumnGroupHeaders:pe,isDragging:!!m,getRootProps:(ve={})=>h({style:me},ve),getInnerProps:()=>({ref:M,role:"rowgroup"}),headerHeight:A}},U6=["className"],W6=e=>{const{classes:t}=e;return de({root:["columnHeaders","withBorderColor"]},Ze,t)},K6=qt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),q6=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,U6),l=Ie(),s=W6(l);return S.jsx(K6,h({ref:n,className:Z(r,s.root),ownerState:l},o,{role:"presentation"}))}),Y6=["isDragging","className"],Q6=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return de({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ze,r)},X6=qt("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${z.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${z.columnHeaderDropZone} .${z.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${z["columnHeadersInner--scrollable"]} .${z.columnHeader}:last-child`]:{borderRight:"none"}})),Z6=d.forwardRef(function(t,n){var r,o;const{isDragging:l,className:s}=t,i=K(t,Y6),a=Xe(),u=Ie(),c=h({},u,{isDragging:l,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),f=Q6(c);return S.jsx(X6,h({ref:n,className:Z(s,f.root),ownerState:c},i))}),J6=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],e7=d.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:v,columnMenuState:g,columnVisibility:C,columnGroupsHeaderStructure:k,hasOtherElementInTabSequence:b}=t,m=K(t,J6),{isDragging:y,getRootProps:w,getInnerProps:E,getColumnHeaders:P,getColumnGroupHeaders:x}=G6({innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:v,columnMenuState:g,columnVisibility:C,columnGroupsHeaderStructure:k,hasOtherElementInTabSequence:b});return S.jsx(q6,h({ref:n},w(m),{children:S.jsxs(Z6,h({isDragging:y},E(),{children:[x(),P()]}))}))}),t7=lf(e7),n7=d.forwardRef(function(t,n){const o=Xe().current.getLocaleText("noResultsOverlayLabel");return S.jsx(Vg,h({ref:n},t,{children:o}))}),r7=["sortingOrder"],o7=d.memo(function(t){const{sortingOrder:n}=t,r=K(t,r7),o=Ie(),[l]=n,s=l==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?S.jsx(s,h({},r)):null}),l7=["native"];function s7(e){let{native:t}=e,n=K(e,l7);return t?S.jsx("option",h({},n)):S.jsx(zr,h({},n))}const i7={BooleanCellTrueIcon:QH,BooleanCellFalseIcon:op,ColumnMenuIcon:WH,OpenFilterButtonIcon:NH,FilterPanelDeleteIcon:op,ColumnFilteredIcon:T0,ColumnSelectorIcon:HH,ColumnUnsortedIcon:o7,ColumnSortedAscendingIcon:I0,ColumnSortedDescendingIcon:E0,ColumnResizeIcon:BH,DensityCompactIcon:VH,DensityStandardIcon:GH,DensityComfortableIcon:UH,ExportIcon:YH,MoreActionsIcon:XH,TreeDataCollapseIcon:R0,TreeDataExpandIcon:M0,GroupingCriteriaCollapseIcon:R0,GroupingCriteriaExpandIcon:M0,DetailPanelExpandIcon:$0,DetailPanelCollapseIcon:KH,RowReorderIcon:O0,QuickFilterIcon:zH,QuickFilterClearIcon:op,ColumnMenuHideIcon:ZH,ColumnMenuSortAscendingIcon:I0,ColumnMenuSortDescendingIcon:E0,ColumnMenuFilterIcon:T0,ColumnMenuManageColumnsIcon:JH,ColumnMenuClearIcon:e3,LoadIcon:qH,FilterPanelAddIcon:$0,FilterPanelRemoveAllIcon:t3,ColumnReorderIcon:O0},a7=h({},i7,{BaseCheckbox:TD,BaseTextField:IN,BaseFormControl:CS,BaseSelect:Xd,BaseSwitch:uA,BaseButton:no,BaseIconButton:so,BaseInputAdornment:S5,BaseTooltip:tA,BasePopper:zl,BaseInputLabel:xS,BaseSelectOption:s7,BaseChip:No}),u7=h({},a7,{Cell:xh,SkeletonCell:b4,ColumnHeaderFilterIconButton:$H,ColumnMenu:g3,ColumnHeaders:t7,Footer:SB,FooterRowCount:OB,Toolbar:null,PreferencesPanel:V3,LoadingOverlay:kB,NoResultsOverlay:n7,NoRowsOverlay:IB,Pagination:MB,FilterPanel:cB,ColumnsPanel:L3,Panel:B3,Row:ZB}),zP=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>h({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function c7({defaultSlots:e,slots:t,components:n}){const r=t??(n?zP(n):null);if(!r||Object.keys(r).length===0)return e;const o=h({},e);return Object.keys(r).forEach(l=>{const s=l;r[s]!==void 0&&(o[s]=r[s])}),o}const d7=["components","componentsProps"];function f7(e){var t;const n=Object.keys(e);if(!n.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let l=0;l<n.length;l+=1){const s=n[l];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function p7(e){return d.useMemo(()=>{const{components:t,componentsProps:n}=e,r=K(e,d7);return[t,n,f7(r)]},[e])}const h7={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},af={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Gr.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},m7=zP(u7),g7=e=>{const[t,n,r]=p7(z1({props:e,name:"MuiDataGrid"})),o=d.useMemo(()=>h({},E6,r.localeText),[r.localeText]),l=d.useMemo(()=>c7({defaultSlots:m7,slots:r.slots,components:t}),[t,r.slots]);return d.useMemo(()=>{var s;return h({},af,r,{localeText:o,slots:l,slotProps:(s=r.slotProps)!=null?s:n},h7)},[r,o,l,n])},v7=e=>h({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),J0=(e,t,n)=>typeof e=="number"&&e>0?e:t,y7=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,l=d.useRef(Object.create(null)),s=d.useRef(-1),i=d.useRef(!1),a=we(e,ii),u=we(e,Gt),c=we(e,Ug),f=we(e,Un),p=Bl(e,t),v=we(e,si),g=J0(t.rowHeight,af.rowHeight),C=Math.floor(g*a),k=d.useCallback(()=>{var L,F;i.current=!1;const $=A=>{l.current[A.id]||(l.current[A.id]={sizes:{baseCenter:C},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:O,needsFirstMeasurement:j,sizes:N}=l.current[A.id];let B=typeof C=="number"&&C>0?C:52;const H=N.baseCenter;if(O)B=H;else if(n){const ie=n(h({},A,{densityFactor:a}));if(ie==="auto"){if(j){const pe=o?o(h({},A,{densityFactor:a})):C;B=pe??C}else B=H;i.current=!0,l.current[A.id].autoHeight=!0}else B=J0(ie,C),l.current[A.id].needsFirstMeasurement=!1,l.current[A.id].autoHeight=!1}else l.current[A.id].needsFirstMeasurement=!1;const V={};for(const ie in N)/^base[A-Z]/.test(ie)&&(V[ie]=N[ie]);if(V.baseCenter=B,r){var U,q;const ie=e.current.getRowIndexRelativeToVisibleRows(A.id),pe=r(h({},A,{isFirstVisible:ie===0,isLastVisible:ie===p.rows.length-1,indexRelativeToCurrentPage:ie}));V.spacingTop=(U=pe.top)!=null?U:0,V.spacingBottom=(q=pe.bottom)!=null?q:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",V,A);return l.current[A.id].sizes=re,re},T=[],D=p.rows.reduce((A,O)=>{T.push(A);let j=0,N=0;const B=$(O);for(const H in B){const V=B[H];/^base[A-Z]/.test(H)?j=V>j?V:j:N+=V}return A+j+N},0);v==null||(L=v.top)==null||L.forEach(A=>{$(A)}),v==null||(F=v.bottom)==null||F.forEach(A=>{$(A)}),e.current.setState(A=>h({},A,{rowsMeta:{currentPageTotalHeight:D,positions:T}})),i.current||(s.current=1/0),e.current.forceUpdate()},[e,p.rows,C,n,r,o,v,a]),b=d.useCallback(L=>{const F=l.current[L];return F?F.sizes.baseCenter:C},[C]),m=L=>{var F;return(F=l.current[L])==null?void 0:F.sizes},y=d.useCallback((L,F)=>{l.current[L].sizes.baseCenter=F,l.current[L].isResized=!0,l.current[L].needsFirstMeasurement=!1,k()},[k]),w=d.useMemo(()=>Al(k,t.rowPositionsDebounceMs),[k,t.rowPositionsDebounceMs]),E=d.useCallback((L,F,$)=>{if(!l.current[L]||!l.current[L].autoHeight)return;const T=l.current[L].sizes[`base${X($)}`]!==F;l.current[L].needsFirstMeasurement=!1,l.current[L].sizes[`base${X($)}`]=F,T&&w()},[w]),P=d.useCallback(L=>{var F;return((F=l.current[L])==null?void 0:F.autoHeight)||!1},[]),x=d.useCallback(()=>s.current,[]),I=d.useCallback(L=>{i.current&&L>s.current&&(s.current=L)},[]),R=d.useCallback(()=>{l.current={},k()},[k]);d.useEffect(()=>{k()},[C,u,c,f,k]),Jg(e,"rowHeight",k);const M={unstable_setLastMeasuredRowIndex:I,unstable_getRowHeight:b,unstable_getRowInternalSizes:m,unstable_setRowHeight:y,unstable_storeRowHeightMeasurement:E,resetRowHeights:R},_={getLastMeasuredRowIndex:x,rowHasAutoHeight:P};Ge(e,M,"public"),Ge(e,_,"private")},b7=e=>{const t=d.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=d.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Ge(e,{exportState:t,restoreState:n},"public")},C7=e=>{const t=d.useRef({}),n=d.useCallback((u,c,f)=>{const p=t.current;p[u]||(p[u]={}),p[u][c]=f},[]),r=d.useCallback((u,c)=>{var f;return(f=t.current[u])==null?void 0:f[c]},[]),o=d.useCallback(u=>{const{columnIndex:c,rowId:f,minFirstColumnIndex:p,maxLastColumnIndex:v,columns:g}=u,C=g.length,k=g[c],b=typeof k.colSpan=="function"?k.colSpan(e.current.getCellParams(f,k.field)):k.colSpan;if(!b||b===1)return n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:k.computedWidth}}),{colSpan:1};let m=k.computedWidth;for(let y=1;y<b;y+=1){const w=c+y;if(w>=p&&w<v){const E=g[w];m+=E.computedWidth,n(f,c+y,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(c+b,C-1),leftVisibleCellIndex:c})}n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:b,width:m}})}return{colSpan:b}},[e,n]),l=d.useCallback(({rowId:u,minFirstColumn:c,maxLastColumn:f,columns:p})=>{for(let v=c;v<f;v+=1){const g=o({columnIndex:v,rowId:u,minFirstColumnIndex:c,maxLastColumnIndex:f,columns:p});g.colSpan>1&&(v+=g.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},i={calculateColSpan:l};Ge(e,s,"public"),Ge(e,i,"private");const a=d.useCallback(()=>{t.current={}},[]);Ee(e,"columnOrderChange",a)},HP=(e,t,n)=>{if(ZS(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
237
+ `)),r.current=!0),E.current){p(x),E.current=!1;return}v(x)},[t.autoHeight,v,n]);st(()=>c(),[c]),Ct(e,"sortedRowsSet",c),Ct(e,"paginationModelChange",c),Ct(e,"columnsChange",c),Ee(e,"resize",P),Ct(e,"debouncedResize",t.onResize)}const j6=["style"],L6=["style"];function Ks(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),l=t[o];return e<=l?Ks(e,t,n,o):Ks(e,t,o+1,r)}function A6(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Ks(e,t,Math.floor(n/2),Math.min(n,t.length))}const Fo=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Ws(e-n,r,o),Ws(t+n,r,o)],NP=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,N6={maxSize:3},z6=e=>{const t=ll(),n=Ie(),r=we(t,Xt),o=we(t,RH),l=we(t,bP),{ref:s,onRenderZonePositioning:i,renderZoneMinColumnIndex:a=0,renderZoneMaxColumnIndex:u=r.length,getRowProps:c}=e,f=Ur(),p=we(t,Us),v=we(t,jg),g=we(t,Tn),C=we(t,jc),k=we(t,$a),b=we(t,Hc),m=Bl(t,n),y=d.useRef(null),w=d.useRef(null),E=ft(s,w),[P,x]=d.useState(null),I=d.useRef(P),R=d.useRef({top:0,left:0}),[M,_]=d.useState({width:null,height:null}),L=d.useRef(v),[F,$]=d.useState(null),T=d.useRef(Object.create(null)),D=d.useRef(),A=d.useRef(),O=d.useRef(Zd((Q,ae,ne,ee,he,se)=>{let Re;const Pe=Q.slice(ae,ne);return se>-1&&(ae>se&&se>=ee||ne<se&&se<he)&&(Re=se),{focusedCellColumnIndexNotInRange:Re,renderedColumns:Pe}},N6)),j=d.useMemo(()=>g!==null?r.findIndex(Q=>Q.field===g.field):-1,[g,r]),N=d.useCallback(()=>{if(!o)return{firstRowIndex:0,lastRowIndex:m.rows.length,firstColumnIndex:0,lastColumnIndex:r.length};const{top:Q,left:ae}=R.current,ne=Math.min(X0(t,m,k,Q),k.positions.length-1),ee=n.autoHeight?ne+m.rows.length:X0(t,m,k,Q+M.height);let he=0,se=p.length;if(l){let Re=!1;const[Pe,Oe]=Fo({firstIndex:ne,lastIndex:ee,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:n.rowBuffer});for(let xe=Pe;xe<Oe&&!Re;xe+=1){const te=m.rows[xe];Re=t.current.rowHasAutoHeight(te.id)}Re||(he=Ks(Math.abs(ae),p),se=Ks(Math.abs(ae)+M.width,p))}return{firstRowIndex:ne,lastRowIndex:ee,firstColumnIndex:he,lastColumnIndex:se}},[o,l,k,n.autoHeight,n.rowBuffer,m,p,r.length,t,M]);st(()=>{o?(w.current.scrollLeft=0,w.current.scrollTop=0):y.current.style.transform="translate3d(0px, 0px, 0px)"},[o]),st(()=>{_({width:w.current.clientWidth,height:w.current.clientHeight})},[k.currentPageTotalHeight]);const B=d.useCallback(()=>{w.current&&_({width:w.current.clientWidth,height:w.current.clientHeight})},[]);Ee(t,"debouncedResize",B);const H=d.useCallback(Q=>{const[ae,ne]=Fo({firstIndex:Q.firstRowIndex,lastIndex:Q.lastRowIndex,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:n.rowBuffer}),[ee]=Fo({firstIndex:Q.firstColumnIndex,lastIndex:Q.lastColumnIndex,minFirstIndex:a,maxLastIndex:u,buffer:n.columnBuffer}),he=Mh({firstColumnToRender:ee,apiRef:t,firstRowToRender:ae,lastRowToRender:ne,visibleRows:m.rows}),se=f.direction==="ltr"?1:-1,Re=$a(t.current.state).positions[ae],Pe=se*Us(t)[he];y.current.style.transform=`translate3d(${Pe}px, ${Re}px, 0px)`,typeof i=="function"&&i({top:Re,left:Pe})},[t,m.rows,i,a,u,n.columnBuffer,n.rowBuffer,f.direction]),V=d.useCallback(()=>I.current,[]),U=d.useCallback(Q=>{if(I.current&&NP(Q,I.current)){H(Q);return}x(Q),H(Q);const[ae,ne]=Fo({firstIndex:Q.firstRowIndex,lastIndex:Q.lastRowIndex,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:n.rowBuffer});t.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ae,lastRowToRender:ne}),I.current=Q},[t,x,I,m.rows.length,n.rowBuffer,H]);st(()=>{if(M.width==null)return;const Q=N();U(Q);const{top:ae,left:ne}=R.current,ee={top:ae,left:ne,renderContext:Q};t.current.publishEvent("scrollPositionChange",ee)},[t,N,M.width,U]);const q=ct(Q=>{const{scrollTop:ae,scrollLeft:ne}=Q.currentTarget;if(R.current.top=ae,R.current.left=ne,!I.current||ae<0||f.direction==="ltr"&&ne<0||f.direction==="rtl"&&ne>0)return;const ee=o?N():I.current,he=Math.abs(ee.firstRowIndex-I.current.firstRowIndex),se=Math.abs(ee.lastRowIndex-I.current.lastRowIndex),Re=Math.abs(ee.firstColumnIndex-I.current.firstColumnIndex),Pe=Math.abs(ee.lastColumnIndex-I.current.lastColumnIndex),Oe=he>=n.rowThreshold||se>=n.rowThreshold||Re>=n.columnThreshold||Pe>=n.columnThreshold||L.current!==v;t.current.publishEvent("scrollPositionChange",{top:ae,left:ne,renderContext:Oe?ee:I.current},Q),Oe&&(Aa.flushSync(()=>{U(ee)}),L.current=v)}),re=ct(Q=>{t.current.publishEvent("virtualScrollerWheel",{},Q)}),ie=ct(Q=>{t.current.publishEvent("virtualScrollerTouchMove",{},Q)}),pe=d.useMemo(()=>g!==null?m.rows.findIndex(Q=>Q.id===g.id):-1,[g,m.rows]);Ee(t,"rowMouseOver",(Q,ae)=>{var ne;ae.currentTarget.contains(ae.relatedTarget)||$((ne=Q.id)!=null?ne:null)}),Ee(t,"rowMouseOut",(Q,ae)=>{ae.currentTarget.contains(ae.relatedTarget)||$(null)});const me=(Q={renderContext:P})=>{var ae;const{onRowRender:ne,renderContext:ee,minFirstColumn:he=a,maxLastColumn:se=u,availableSpace:Re=M.width,rowIndexOffset:Pe=0,position:Oe="center"}=Q;if(!ee||Re==null)return null;const xe=o?n.rowBuffer:0,te=o?n.columnBuffer:0,[oe,ye]=Fo({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:m.rows.length,buffer:xe}),Me=[];if(Q.rows)Q.rows.forEach(Ve=>{Me.push(Ve),t.current.calculateColSpan({rowId:Ve.id,minFirstColumn:he,maxLastColumn:se,columns:r})});else{if(!m.range)return null;for(let Ve=oe;Ve<ye;Ve+=1){const Je=m.rows[Ve];Me.push(Je),t.current.calculateColSpan({rowId:Je.id,minFirstColumn:he,maxLastColumn:se,columns:r})}}let Ae=!1;if(pe>-1){const Ve=m.rows[pe];(oe>pe||ye<pe)&&(Ae=!0,pe>oe?Me.push(Ve):Me.unshift(Ve),t.current.calculateColSpan({rowId:Ve.id,minFirstColumn:he,maxLastColumn:se,columns:r}))}const[Te,ce]=Fo({firstIndex:ee.firstColumnIndex,lastIndex:ee.lastColumnIndex,minFirstIndex:he,maxLastIndex:se,buffer:te}),Be=Mh({firstColumnToRender:Te,apiRef:t,firstRowToRender:oe,lastRowToRender:ye,visibleRows:m.rows});let yt=!1;(Be>j||ce<j)&&(yt=!0);const{focusedCellColumnIndexNotInRange:Ye,renderedColumns:be}=O.current(r,Be,ce,he,se,yt?j:-1),Le=((ae=n.slotProps)==null?void 0:ae.row)||{},{style:le}=Le,Se=K(Le,j6);(D.current!==c||A.current!==le)&&(T.current=Object.create(null));const He=[];let qe=!1;for(let Ve=0;Ve<Me.length;Ve+=1){var it;const{id:Je,model:Rt}=Me[Ve],En=Ae&&g.id===Je,qr=Ae?oe+Ve===m.rows.length:oe+Ve===m.rows.length-1,xo=t.current.rowHasAutoHeight(Je)?"auto":t.current.unstable_getRowHeight(Je);let Yr;b[Je]==null?Yr=!1:Yr=t.current.isRowSelectable(Je),ne&&ne(Je);const ul=g!==null&&g.id===Je?g.field:null,Mn=Ye!==void 0&&r[Ye],Lt=Mn&&ul?[Mn,...be]:be;let ht=null;C!==null&&C.id===Je&&(ht=t.current.getCellParams(Je,C.field).cellMode==="view"?C.field:null);const Vt=typeof c=="function"&&c(Je,Rt)||{},{style:tn}=Vt,cr=K(Vt,L6);if(!T.current[Je]){const Vn=h({},tn,le);T.current[Je]=Vn}let Qr=Pe+((m==null||(it=m.range)==null?void 0:it.firstRowIndex)||0)+oe+Ve;Ae&&(g==null?void 0:g.id)===Je?(Qr=pe,qe=!0):qe&&(Qr-=1),He.push(S.jsx(n.slots.row,h({row:Rt,rowId:Je,focusedCellColumnIndexNotInRange:Ye,isNotVisible:En,rowHeight:xo,focusedCell:ul,tabbableCell:ht,renderedColumns:Lt,visibleColumns:r,firstColumnToRender:Be,lastColumnToRender:ce,selected:Yr,index:Qr,containerWidth:Re,isLastVisible:qr,position:Oe},cr,Se,{hovered:F===Je,style:T.current[Je]}),Je))}return D.current=c,A.current=le,He},ve=M.width&&v>=M.width,ue=d.useMemo(()=>{const Q=Math.max(k.currentPageTotalHeight,1);let ae=!1;w!=null&&w.current&&Q<=(w==null?void 0:w.current.clientHeight)&&(ae=!0);const ne={width:ve?v:"auto",height:Q,minHeight:ae?"100%":"auto"};return n.autoHeight&&m.rows.length===0&&(ne.height=XS(t,n.rowHeight)),ne},[t,w,v,k.currentPageTotalHeight,ve,n.autoHeight,n.rowHeight,m.rows.length]);d.useEffect(()=>{t.current.publishEvent("virtualScrollerContentSizeChange")},[t,ue]);const ge=d.useMemo(()=>{const Q={};return ve||(Q.overflowX="hidden"),n.autoHeight&&(Q.overflowY="hidden"),Q},[ve,n.autoHeight]);return t.current.register("private",{getRenderContext:V}),{renderContext:P,updateRenderZonePosition:H,getRows:me,getRootProps:(Q={})=>h({ref:E,onScroll:q,onWheel:re,onTouchMove:ie},Q,{style:Q.style?h({},Q.style,ge):ge,role:"presentation"}),getContentProps:({style:Q}={})=>({style:Q?h({},Q,ue):ue,role:"presentation"}),getRenderZoneProps:()=>({ref:y,role:"rowgroup"})}};function X0(e,t,n,r){var o,l;const s=e.current.getLastMeasuredRowIndex();let i=s===1/0;(o=t.range)!=null&&o.lastRowIndex&&!i&&(i=s>=t.range.lastRowIndex);const a=Ws(s-(((l=t.range)==null?void 0:l.firstRowIndex)||0),0,n.positions.length);return i||n.positions[a]>=r?Ks(r,n.positions):A6(r,n.positions,a)}const H6=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:l}=e;return de({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ze,t)};function B6(e){var t;const{groupId:n,width:r,depth:o,maxDepth:l,fields:s,height:i,colIndex:a,hasFocus:u,tabIndex:c,isLastColumn:f}=e,p=Ie(),v=d.useRef(null),g=Xe(),C=we(g,zS),k=n?C[n]:{},{headerName:b=n??"",description:m="",headerAlign:y=void 0}=k;let w;const E=n&&((t=C[n])==null?void 0:t.renderHeaderGroup),P=d.useMemo(()=>({groupId:n,headerName:b,description:m,depth:o,maxDepth:l,fields:s,colIndex:a,isLastColumn:f}),[n,b,m,o,l,s,a,f]);n&&E&&(w=E(P));const x=p.showColumnVerticalBorder,I=h({},e,{classes:p.classes,showColumnBorder:x,headerAlign:y,depth:o,isDragging:!1}),R=b??n,M=ut(),_=n===null?`empty-group-cell-${M}`:n,L=H6(I);d.useLayoutEffect(()=>{if(u){const A=v.current.querySelector('[tabindex="0"]')||v.current;A==null||A.focus()}},[g,u]);const F=d.useCallback(D=>A=>{Ya(A)||g.current.publishEvent(D,P,A)},[g,P]),$=d.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),T=typeof k.headerClassName=="function"?k.headerClassName(P):k.headerClassName;return S.jsx(iP,h({ref:v,classes:L,columnMenuOpen:!1,colIndex:a,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:w,headerClassName:T,description:m,elementId:_,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:R,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},$))}const Z0=Y("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function V6(e){return!!e.target}const G6=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:l,columnPositions:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:f,headerGroupingMaxDepth:p,columnMenuState:v,columnVisibility:g,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:k}=e,b=Ur(),[m,y]=d.useState(""),[w,E]=d.useState(""),P=ll(),x=we(P,bP),I=Ie(),R=d.useRef(null),M=ft(t,R),[_,L]=d.useState(null),F=d.useRef(_),$=d.useRef(0),T=Bl(P,I),D=ev(P,I.columnHeaderHeight),A=Math.floor(I.columnHeaderHeight*f),O=d.useCallback(ve=>{_&&ve&&NP(_,ve)||L(ve)},[_]);d.useEffect(()=>{var ve;(ve=P.current.columnHeadersContainerElementRef)!=null&&ve.current&&(P.current.columnHeadersContainerElementRef.current.scrollLeft=0)},[P]);const j=d.useRef(Zd(jV,{equalityCheck:(ve,ue)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ge=>ve[ge]===ue[ge])})),N=d.useCallback(ve=>{const[ue,ge]=Fo({firstIndex:ve.firstRowIndex,lastIndex:ve.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:I.rowBuffer}),Q=j.current({firstColumnIndex:ve.firstColumnIndex,minColumnIndex:n,columnBuffer:I.columnBuffer,firstRowToRender:ue,lastRowToRender:ge,apiRef:P,visibleRows:T.rows}),ae=b.direction==="ltr"?1:-1,ne=Q>0?$.current-ae*s[Q]:$.current;R.current.style.transform=`translate3d(${-ne}px, 0px, 0px)`},[s,n,I.columnBuffer,P,T.rows,I.rowBuffer,b.direction]);d.useLayoutEffect(()=>{_&&N(_)},[_,N]);const B=d.useCallback(({left:ve,renderContext:ue=null},ge)=>{var Q,ae;if(!R.current||$.current===ve&&((Q=F.current)==null?void 0:Q.firstColumnIndex)===(ue==null?void 0:ue.firstColumnIndex)&&((ae=F.current)==null?void 0:ae.lastColumnIndex)===(ue==null?void 0:ue.lastColumnIndex))return;$.current=ve;let ne=!1;ue!==F.current||!F.current?(V6(ge)?(Aa.flushSync(()=>{O(ue)}),ne=!0):O(ue),F.current=ue):ne=!0,ue&&ne&&N(ue)},[N,O]),H=d.useCallback(ve=>E(ve.field),[]),V=d.useCallback(()=>E(""),[]),U=d.useCallback(ve=>y(ve.field),[]),q=d.useCallback(()=>y(""),[]);Ee(P,"columnResizeStart",H),Ee(P,"columnResizeStop",V),Ee(P,"columnHeaderDragStart",U),Ee(P,"columnHeaderDragEnd",q),Ee(P,"scrollPositionChange",B);const re=ve=>{const{renderContext:ue=_,minFirstColumn:ge=n,maxLastColumn:Q=r.length}=ve||{};if(!ue)return null;const[ae,ne]=Fo({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:I.rowBuffer}),ee=x?j.current({firstColumnIndex:ue.firstColumnIndex,minColumnIndex:ge,columnBuffer:I.columnBuffer,apiRef:P,firstRowToRender:ae,lastRowToRender:ne,visibleRows:T.rows}):0,he=x?Math.min(ue.lastColumnIndex+I.columnBuffer,Q):Q;return{renderedColumns:r.slice(ee,he),firstColumnToRender:ee,lastColumnToRender:he,minFirstColumn:ge,maxLastColumn:Q}},ie=(ve,ue={})=>{const ge=re(ve);if(ge==null)return null;const{renderedColumns:Q,firstColumnToRender:ae}=ge,ne=[];for(let ee=0;ee<Q.length;ee+=1){const he=Q[ee],se=ae+ee,Re=se===0,Pe=i!==null&&i.field===he.field||Re&&!k?0:-1,Oe=u!==null&&u.field===he.field,xe=v.open&&v.field===he.field;ne.push(S.jsx(J4,h({},o[he.field],{columnMenuOpen:xe,filterItemsCounter:l[he.field]&&l[he.field].length,headerHeight:A,isDragging:he.field===m,colDef:he,colIndex:se,isResizing:w===he.field,hasFocus:Oe,tabIndex:Pe},ue),he.field))}return S.jsx(Z0,{role:"row","aria-rowindex":p+1,ownerState:I,children:ne})},pe=ve=>{if(p===0)return null;const ue=re(ve);if(ue==null||ue.renderedColumns.length===0)return null;const{firstColumnToRender:ge,lastColumnToRender:Q}=ue,ae=[],ne=[];for(let se=0;se<p;se+=1){var ee,he;const Re=C[se],Pe=r[ge].field,Oe=(ee=P.current.unstable_getColumnGroupPath(Pe)[se])!=null?ee:null,xe=Re.findIndex(({groupId:Ye,columnFields:be})=>Ye===Oe&&be.includes(Pe)),te=r[Q-1].field,oe=(he=P.current.unstable_getColumnGroupPath(te)[se])!=null?he:null,ye=Re.findIndex(({groupId:Ye,columnFields:be})=>Ye===oe&&be.includes(te)),Me=Re.slice(xe,ye+1).map(Ye=>h({},Ye,{columnFields:Ye.columnFields.filter(be=>g[be]!==!1)})).filter(Ye=>Ye.columnFields.length>0),Ae=Me[0].columnFields.indexOf(Pe),ce=Me[0].columnFields.slice(0,Ae).reduce((Ye,be)=>{var Le;const le=P.current.getColumn(be);return Ye+((Le=le.computedWidth)!=null?Le:0)},0);let Be=ge;const yt=Me.map(({groupId:Ye,columnFields:be})=>{const Le=c!==null&&c.depth===se&&be.includes(c.field),le=a!==null&&a.depth===se&&be.includes(a.field)?0:-1,Se={groupId:Ye,width:be.reduce((Ne,He)=>Ne+P.current.getColumn(He).computedWidth,0),fields:be,colIndex:Be,hasFocus:Le,tabIndex:le};return Be+=be.length,Se});ne.push({leftOverflow:ce,elements:yt})}return ne.forEach((se,Re)=>{ae.push(S.jsx(Z0,{style:{height:`${A}px`,transform:`translateX(-${se.leftOverflow}px)`},role:"row","aria-rowindex":Re+1,ownerState:I,children:se.elements.map(({groupId:Pe,width:Oe,fields:xe,colIndex:te,hasFocus:oe,tabIndex:ye},Me)=>S.jsx(B6,{groupId:Pe,width:Oe,fields:xe,colIndex:te,depth:Re,isLastColumn:te===r.length-xe.length,maxDepth:ne.length,height:A,hasFocus:oe,tabIndex:ye},Me))},Re))}),ae},me={minHeight:D,maxHeight:D,lineHeight:`${A}px`};return{renderContext:_,getColumnHeaders:ie,getColumnsToRender:re,getColumnGroupHeaders:pe,isDragging:!!m,getRootProps:(ve={})=>h({style:me},ve),getInnerProps:()=>({ref:M,role:"rowgroup"}),headerHeight:A}},U6=["className"],W6=e=>{const{classes:t}=e;return de({root:["columnHeaders","withBorderColor"]},Ze,t)},K6=qt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),q6=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,U6),l=Ie(),s=W6(l);return S.jsx(K6,h({ref:n,className:Z(r,s.root),ownerState:l},o,{role:"presentation"}))}),Y6=["isDragging","className"],Q6=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return de({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ze,r)},X6=qt("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${z.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${z.columnHeaderDropZone} .${z.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${z["columnHeadersInner--scrollable"]} .${z.columnHeader}:last-child`]:{borderRight:"none"}})),Z6=d.forwardRef(function(t,n){var r,o;const{isDragging:l,className:s}=t,i=K(t,Y6),a=Xe(),u=Ie(),c=h({},u,{isDragging:l,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),f=Q6(c);return S.jsx(X6,h({ref:n,className:Z(s,f.root),ownerState:c},i))}),J6=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],e7=d.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:v,columnMenuState:g,columnVisibility:C,columnGroupsHeaderStructure:k,hasOtherElementInTabSequence:b}=t,m=K(t,J6),{isDragging:y,getRootProps:w,getInnerProps:E,getColumnHeaders:P,getColumnGroupHeaders:x}=G6({innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:v,columnMenuState:g,columnVisibility:C,columnGroupsHeaderStructure:k,hasOtherElementInTabSequence:b});return S.jsx(q6,h({ref:n},w(m),{children:S.jsxs(Z6,h({isDragging:y},E(),{children:[x(),P()]}))}))}),t7=lf(e7),n7=d.forwardRef(function(t,n){const o=Xe().current.getLocaleText("noResultsOverlayLabel");return S.jsx(Vg,h({ref:n},t,{children:o}))}),r7=["sortingOrder"],o7=d.memo(function(t){const{sortingOrder:n}=t,r=K(t,r7),o=Ie(),[l]=n,s=l==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?S.jsx(s,h({},r)):null}),l7=["native"];function s7(e){let{native:t}=e,n=K(e,l7);return t?S.jsx("option",h({},n)):S.jsx(zr,h({},n))}const i7={BooleanCellTrueIcon:QH,BooleanCellFalseIcon:op,ColumnMenuIcon:WH,OpenFilterButtonIcon:NH,FilterPanelDeleteIcon:op,ColumnFilteredIcon:T0,ColumnSelectorIcon:HH,ColumnUnsortedIcon:o7,ColumnSortedAscendingIcon:I0,ColumnSortedDescendingIcon:E0,ColumnResizeIcon:BH,DensityCompactIcon:VH,DensityStandardIcon:GH,DensityComfortableIcon:UH,ExportIcon:YH,MoreActionsIcon:XH,TreeDataCollapseIcon:R0,TreeDataExpandIcon:M0,GroupingCriteriaCollapseIcon:R0,GroupingCriteriaExpandIcon:M0,DetailPanelExpandIcon:$0,DetailPanelCollapseIcon:KH,RowReorderIcon:O0,QuickFilterIcon:zH,QuickFilterClearIcon:op,ColumnMenuHideIcon:ZH,ColumnMenuSortAscendingIcon:I0,ColumnMenuSortDescendingIcon:E0,ColumnMenuFilterIcon:T0,ColumnMenuManageColumnsIcon:JH,ColumnMenuClearIcon:e3,LoadIcon:qH,FilterPanelAddIcon:$0,FilterPanelRemoveAllIcon:t3,ColumnReorderIcon:O0},a7=h({},i7,{BaseCheckbox:TD,BaseTextField:IN,BaseFormControl:CS,BaseSelect:Xd,BaseSwitch:uA,BaseButton:no,BaseIconButton:so,BaseInputAdornment:Sj,BaseTooltip:tA,BasePopper:zl,BaseInputLabel:xS,BaseSelectOption:s7,BaseChip:No}),u7=h({},a7,{Cell:xh,SkeletonCell:b4,ColumnHeaderFilterIconButton:$H,ColumnMenu:g3,ColumnHeaders:t7,Footer:SB,FooterRowCount:OB,Toolbar:null,PreferencesPanel:V3,LoadingOverlay:kB,NoResultsOverlay:n7,NoRowsOverlay:IB,Pagination:MB,FilterPanel:cB,ColumnsPanel:L3,Panel:B3,Row:ZB}),zP=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>h({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function c7({defaultSlots:e,slots:t,components:n}){const r=t??(n?zP(n):null);if(!r||Object.keys(r).length===0)return e;const o=h({},e);return Object.keys(r).forEach(l=>{const s=l;r[s]!==void 0&&(o[s]=r[s])}),o}const d7=["components","componentsProps"];function f7(e){var t;const n=Object.keys(e);if(!n.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let l=0;l<n.length;l+=1){const s=n[l];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function p7(e){return d.useMemo(()=>{const{components:t,componentsProps:n}=e,r=K(e,d7);return[t,n,f7(r)]},[e])}const h7={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},af={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Gr.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},m7=zP(u7),g7=e=>{const[t,n,r]=p7(z1({props:e,name:"MuiDataGrid"})),o=d.useMemo(()=>h({},E6,r.localeText),[r.localeText]),l=d.useMemo(()=>c7({defaultSlots:m7,slots:r.slots,components:t}),[t,r.slots]);return d.useMemo(()=>{var s;return h({},af,r,{localeText:o,slots:l,slotProps:(s=r.slotProps)!=null?s:n},h7)},[r,o,l,n])},v7=e=>h({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),J0=(e,t,n)=>typeof e=="number"&&e>0?e:t,y7=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,l=d.useRef(Object.create(null)),s=d.useRef(-1),i=d.useRef(!1),a=we(e,ii),u=we(e,Gt),c=we(e,Ug),f=we(e,Un),p=Bl(e,t),v=we(e,si),g=J0(t.rowHeight,af.rowHeight),C=Math.floor(g*a),k=d.useCallback(()=>{var L,F;i.current=!1;const $=A=>{l.current[A.id]||(l.current[A.id]={sizes:{baseCenter:C},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:O,needsFirstMeasurement:j,sizes:N}=l.current[A.id];let B=typeof C=="number"&&C>0?C:52;const H=N.baseCenter;if(O)B=H;else if(n){const ie=n(h({},A,{densityFactor:a}));if(ie==="auto"){if(j){const pe=o?o(h({},A,{densityFactor:a})):C;B=pe??C}else B=H;i.current=!0,l.current[A.id].autoHeight=!0}else B=J0(ie,C),l.current[A.id].needsFirstMeasurement=!1,l.current[A.id].autoHeight=!1}else l.current[A.id].needsFirstMeasurement=!1;const V={};for(const ie in N)/^base[A-Z]/.test(ie)&&(V[ie]=N[ie]);if(V.baseCenter=B,r){var U,q;const ie=e.current.getRowIndexRelativeToVisibleRows(A.id),pe=r(h({},A,{isFirstVisible:ie===0,isLastVisible:ie===p.rows.length-1,indexRelativeToCurrentPage:ie}));V.spacingTop=(U=pe.top)!=null?U:0,V.spacingBottom=(q=pe.bottom)!=null?q:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",V,A);return l.current[A.id].sizes=re,re},T=[],D=p.rows.reduce((A,O)=>{T.push(A);let j=0,N=0;const B=$(O);for(const H in B){const V=B[H];/^base[A-Z]/.test(H)?j=V>j?V:j:N+=V}return A+j+N},0);v==null||(L=v.top)==null||L.forEach(A=>{$(A)}),v==null||(F=v.bottom)==null||F.forEach(A=>{$(A)}),e.current.setState(A=>h({},A,{rowsMeta:{currentPageTotalHeight:D,positions:T}})),i.current||(s.current=1/0),e.current.forceUpdate()},[e,p.rows,C,n,r,o,v,a]),b=d.useCallback(L=>{const F=l.current[L];return F?F.sizes.baseCenter:C},[C]),m=L=>{var F;return(F=l.current[L])==null?void 0:F.sizes},y=d.useCallback((L,F)=>{l.current[L].sizes.baseCenter=F,l.current[L].isResized=!0,l.current[L].needsFirstMeasurement=!1,k()},[k]),w=d.useMemo(()=>Al(k,t.rowPositionsDebounceMs),[k,t.rowPositionsDebounceMs]),E=d.useCallback((L,F,$)=>{if(!l.current[L]||!l.current[L].autoHeight)return;const T=l.current[L].sizes[`base${X($)}`]!==F;l.current[L].needsFirstMeasurement=!1,l.current[L].sizes[`base${X($)}`]=F,T&&w()},[w]),P=d.useCallback(L=>{var F;return((F=l.current[L])==null?void 0:F.autoHeight)||!1},[]),x=d.useCallback(()=>s.current,[]),I=d.useCallback(L=>{i.current&&L>s.current&&(s.current=L)},[]),R=d.useCallback(()=>{l.current={},k()},[k]);d.useEffect(()=>{k()},[C,u,c,f,k]),Jg(e,"rowHeight",k);const M={unstable_setLastMeasuredRowIndex:I,unstable_getRowHeight:b,unstable_getRowInternalSizes:m,unstable_setRowHeight:y,unstable_storeRowHeightMeasurement:E,resetRowHeights:R},_={getLastMeasuredRowIndex:x,rowHasAutoHeight:P};Ge(e,M,"public"),Ge(e,_,"private")},b7=e=>{const t=d.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=d.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Ge(e,{exportState:t,restoreState:n},"public")},C7=e=>{const t=d.useRef({}),n=d.useCallback((u,c,f)=>{const p=t.current;p[u]||(p[u]={}),p[u][c]=f},[]),r=d.useCallback((u,c)=>{var f;return(f=t.current[u])==null?void 0:f[c]},[]),o=d.useCallback(u=>{const{columnIndex:c,rowId:f,minFirstColumnIndex:p,maxLastColumnIndex:v,columns:g}=u,C=g.length,k=g[c],b=typeof k.colSpan=="function"?k.colSpan(e.current.getCellParams(f,k.field)):k.colSpan;if(!b||b===1)return n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:k.computedWidth}}),{colSpan:1};let m=k.computedWidth;for(let y=1;y<b;y+=1){const w=c+y;if(w>=p&&w<v){const E=g[w];m+=E.computedWidth,n(f,c+y,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(c+b,C-1),leftVisibleCellIndex:c})}n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:b,width:m}})}return{colSpan:b}},[e,n]),l=d.useCallback(({rowId:u,minFirstColumn:c,maxLastColumn:f,columns:p})=>{for(let v=c;v<f;v+=1){const g=o({columnIndex:v,rowId:u,minFirstColumnIndex:c,maxLastColumnIndex:f,columns:p});g.colSpan>1&&(v+=g.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},i={calculateColSpan:l};Ge(e,s,"public"),Ge(e,i,"private");const a=d.useCallback(()=>{t.current={}},[]);Ee(e,"columnOrderChange",a)},HP=(e,t,n)=>{if(ZS(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
238
238
  `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(l=>{HP(l,[...t,r],n)})},Rh=e=>{if(!e)return{};const t={};return e.forEach(n=>{HP(n,[],t)}),t},Th=(e,t,n)=>{const r=a=>{var u;return(u=t[a])!=null?u:[]},o=[],l=Math.max(...e.map(a=>r(a).length)),s=(a,u,c)=>kl(r(a).slice(0,c+1),r(u).slice(0,c+1)),i=(a,u)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(u));for(let a=0;a<l;a+=1){const u=e.reduce((c,f)=>{var p;const v=(p=r(f)[a])!=null?p:null;if(c.length===0)return[{columnFields:[f],groupId:v}];const g=c[c.length-1],C=g.columnFields[g.columnFields.length-1];return g.groupId!==v||!s(C,f,a)||i(C,f)?[...c,{columnFields:[f],groupId:v}]:[...c.slice(0,c.length-1),{columnFields:[...g.columnFields,f],groupId:v}]},[]);o.push(u)}return o},x7=["groupId","children"],tv=e=>{let t={};return e.forEach(n=>{if(ZS(n))return;const{groupId:r,children:o}=n,l=K(n,x7);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const s=h({},l,{groupId:r}),i=tv(o);if(i[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=h({},t,i,{[r]:s})}),h({},t)},w7=(e,t,n)=>{var r,o,l,s;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const i=uo(n),a=Jd(n),u=tv((o=t.columnGroupingModel)!=null?o:[]),c=Rh((l=t.columnGroupingModel)!=null?l:[]),f=Th(i,c,(s=n.current.state.pinnedColumns)!=null?s:{}),p=a.length===0?0:Math.max(...a.map(v=>{var g,C;return(g=(C=c[v])==null?void 0:C.length)!=null?g:0}));return h({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:f,maxDepth:p}})},S7=(e,t)=>{var n;const r=d.useCallback(a=>{var u;return(u=UN(e)[a])!=null?u:[]},[e]),o=d.useCallback(()=>zS(e),[e]);Ge(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const s=d.useCallback(()=>{var a;const u=Rh((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(c=>{var f,p,v;const g=(f=(p=c.columns)==null?void 0:p.orderedFields)!=null?f:[],C=(v=c.pinnedColumns)!=null?v:{},k=Th(g,u,C);return h({},c,{columnGrouping:h({},c.columnGrouping,{headerStructure:k})})})},[e,t.columnGroupingModel]),i=d.useCallback(a=>{var u,c,f,p;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const v=(c=(f=(p=e.current).getPinnedColumns)==null?void 0:f.call(p))!=null?c:{},g=uo(e),C=Jd(e),k=tv(a??[]),b=Rh(a??[]),m=Th(g,b,v),y=C.length===0?0:Math.max(...C.map(w=>{var E,P;return(E=(P=b[w])==null?void 0:P.length)!=null?E:0}));e.current.setState(w=>h({},w,{columnGrouping:{lookup:k,unwrappedGroupingModel:b,headerStructure:m,maxDepth:y}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Ee(e,"columnIndexChange",s),Ee(e,"columnsChange",()=>{i(t.columnGroupingModel)}),Ee(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),d.useEffect(()=>{i(t.columnGroupingModel)},[i,t.columnGroupingModel])},P7=(e,t)=>{const n=fV(e,t);return R6(n,t),P6(n),gn(k6,n,t),gn(LV,n,t),gn(b6,n,t),gn(v6,n,t),gn(e6,n,t),gn(T6,n,t),gn(i6,n,t),gn(QV,n,t),gn(HV,n,t),gn(l6,n,t),gn(v7,n,t),gn(OV,n,t),gn(w7,n,t),gn(EH,n,t),r6(n,t),I6(n,t),AV(n,t),C6(n,t),Iz(n,t),C7(n),S7(n,t),y6(n,t),t6(n,t),a6(n,t),JV(n,t),$6(n,t),BV(n,t),s6(n,t),y7(n,t),O6(n,t),FV(n),UV(n,t),YV(n,t),$V(n,t),D6(n,t),F6(n,t),b7(n),MH(n,t),n},k7=e=>{const{classes:t}=e;return de({root:["virtualScroller"]},Ze,t)},I7=qt("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),E7=d.forwardRef(function(t,n){const r=Ie(),o=k7(r);return S.jsx(I7,h({ref:n},t,{className:Z(o.root,t.className),ownerState:r}))}),M7=(e,t)=>{const{classes:n}=e;return de({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Ze,n)},R7=qt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),T7=d.forwardRef(function(t,n){var r;const o=Ie(),l=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",s=M7(o,l);return S.jsx(R7,h({ref:n},t,{ownerState:o,className:Z(s.root,t.className)}))}),$7=["className"],O7=e=>{const{classes:t}=e;return de({root:["virtualScrollerRenderZone"]},Ze,t)},F7=qt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),_7=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,$7),l=Ie(),s=O7(l);return S.jsx(F7,h({ref:n,className:Z(s.root,r),ownerState:l},o))}),D7=["className"],j7=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,D7),{getRootProps:l,getContentProps:s,getRenderZoneProps:i,getRows:a}=z6({ref:n});return S.jsxs(E7,h({className:r},l(o),{children:[S.jsx(bz,{}),S.jsx(T7,h({},s(),{children:S.jsx(_7,h({},i(),{children:a()}))}))]}))}),BP=d.forwardRef(function(t,n){const r=g7(t),o=P7(r.apiRef,r);return S.jsx(JB,{privateApiRef:o,props:r,children:S.jsxs(P4,h({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[S.jsx(PB,{}),S.jsx(cz,{VirtualScrollerComponent:j7}),S.jsx(dz,{})]}))})}),VP=d.memo(BP);af.filterDebounceMs;af.filterDebounceMs;BP.propTypes={apiRef:G.shape({current:G.object.isRequired}),"aria-label":G.string,"aria-labelledby":G.string,autoHeight:G.bool,autoPageSize:G.bool,cellModesModel:G.object,checkboxSelection:G.bool,classes:G.object,clipboardCopyCellDelimiter:G.string,columnBuffer:G.number,columnGroupingModel:G.arrayOf(G.object),columnHeaderHeight:G.number,columns:UR(G.array.isRequired),columnThreshold:G.number,columnVisibilityModel:G.object,components:G.object,componentsProps:G.object,density:G.oneOf(["comfortable","compact","standard"]),disableColumnFilter:G.bool,disableColumnMenu:G.bool,disableColumnSelector:G.bool,disableDensitySelector:G.bool,disableEval:G.bool,disableRowSelectionOnClick:G.bool,disableVirtualization:G.bool,editMode:G.oneOf(["cell","row"]),experimentalFeatures:G.shape({ariaV7:G.bool,columnGrouping:G.bool,warnIfFocusStateIsNotSynced:G.bool}),filterDebounceMs:G.number,filterMode:G.oneOf(["client","server"]),filterModel:G.shape({items:G.arrayOf(G.shape({field:G.string.isRequired,id:G.oneOfType([G.number,G.string]),operator:G.string.isRequired,value:G.any})).isRequired,logicOperator:G.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:G.bool,quickFilterLogicOperator:G.oneOf(["and","or"]),quickFilterValues:G.array}),forwardedProps:G.object,getCellClassName:G.func,getDetailPanelContent:G.func,getEstimatedRowHeight:G.func,getRowClassName:G.func,getRowHeight:G.func,getRowId:G.func,getRowSpacing:G.func,hideFooter:G.bool,hideFooterPagination:G.bool,hideFooterSelectedRowCount:G.bool,ignoreDiacritics:G.bool,initialState:G.object,isCellEditable:G.func,isRowSelectable:G.func,keepNonExistentRowsSelected:G.bool,loading:G.bool,localeText:G.object,logger:G.shape({debug:G.func.isRequired,error:G.func.isRequired,info:G.func.isRequired,warn:G.func.isRequired}),logLevel:G.oneOf(["debug","error","info","warn",!1]),nonce:G.string,onCellClick:G.func,onCellDoubleClick:G.func,onCellEditStart:G.func,onCellEditStop:G.func,onCellKeyDown:G.func,onCellModesModelChange:G.func,onClipboardCopy:G.func,onColumnHeaderClick:G.func,onColumnHeaderDoubleClick:G.func,onColumnHeaderEnter:G.func,onColumnHeaderLeave:G.func,onColumnHeaderOut:G.func,onColumnHeaderOver:G.func,onColumnOrderChange:G.func,onColumnVisibilityModelChange:G.func,onFilterModelChange:G.func,onMenuClose:G.func,onMenuOpen:G.func,onPaginationModelChange:G.func,onPreferencePanelClose:G.func,onPreferencePanelOpen:G.func,onProcessRowUpdateError:G.func,onResize:G.func,onRowClick:G.func,onRowCountChange:G.func,onRowDoubleClick:G.func,onRowEditStart:G.func,onRowEditStop:G.func,onRowModesModelChange:G.func,onRowSelectionModelChange:G.func,onSortModelChange:G.func,onStateChange:G.func,pageSizeOptions:G.arrayOf(G.oneOfType([G.number,G.shape({label:G.string.isRequired,value:G.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
239
239
  `)):null,paginationMode:G.oneOf(["client","server"]),paginationModel:G.shape({page:G.number.isRequired,pageSize:G.number.isRequired}),processRowUpdate:G.func,rowBuffer:G.number,rowCount:G.number,rowHeight:G.number,rowModesModel:G.object,rowPositionsDebounceMs:G.number,rows:G.arrayOf(G.object).isRequired,rowSelection:G.bool,rowSelectionModel:G.oneOfType([G.arrayOf(G.oneOfType([G.number,G.string]).isRequired),G.number,G.string]),rowSpacingType:G.oneOf(["border","margin"]),rowThreshold:G.number,scrollbarSize:G.number,showCellVerticalBorder:G.bool,showColumnVerticalBorder:G.bool,slotProps:G.object,slots:G.object,sortingMode:G.oneOf(["client","server"]),sortingOrder:G.arrayOf(G.oneOf(["asc","desc"])),sortModel:G.arrayOf(G.shape({field:G.string.isRequired,sort:G.oneOf(["asc","desc"])})),sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),unstable_ignoreValueFormatterDuringExport:G.oneOfType([G.shape({clipboardExport:G.bool,csvExport:G.bool}),G.bool])};var nv={},ip={};const L7=vo(B$);var eC;function Vl(){return eC||(eC=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=L7}(ip)),ip}var A7=bo;Object.defineProperty(nv,"__esModule",{value:!0});var GP=nv.default=void 0,N7=A7(Vl()),z7=S;GP=nv.default=(0,N7.default)((0,z7.jsx)("path",{d:"M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z"}),"OpenInBrowser");var rv={},H7=bo;Object.defineProperty(rv,"__esModule",{value:!0});var ov=rv.default=void 0,B7=H7(Vl()),V7=S;ov=rv.default=(0,B7.default)((0,V7.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");const UP={elapsedTime:e=>e.value&&e.value.getTime?G7(Date.now()-e.value.getTime()):""};function G7(e){if(e<0)return"";let t=Math.floor(e/1e3);const n=Math.floor(t/31536e3);if(n)return n+"y";const r=Math.floor((t%=31536e3)/86400);if(r)return r+"d";const o=Math.floor((t%=86400)/3600);if(o)return o+"h";const l=Math.floor((t%=3600)/60);if(l)return l+"min";const s=t%60;return s?s+"s":"less than a second"}const U7=5e3,ap="No active rooms.",W7={clients:Oa,maxClients:Oa,elapsedTime:qg};class K7 extends d.Component{constructor(){super(...arguments),this.state={selected:[1],rooms:[],connections:0,cpu:0,memory:{totalMemMb:0,usedMemMb:0},columns:[]},this.isSelected=t=>this.state.selected.indexOf(t)!==-1,this.handleRowSelection=t=>{this.setState({selected:t})}}componentWillMount(){this.fetchRoomList()}componentWillUnmount(){clearInterval(this.updateRoomListInterval)}async fetchRoomList(){try{this.setState(await RN())}catch(t){console.error(t)}clearInterval(this.updateRoomListInterval),this.updateRoomListInterval=window.setInterval(()=>{this.fetchRoomList()},U7)}inspectRoom(t){this.props.history.push("/room/"+t)}async disposeRoom(t){await FS(t,"disconnect"),this.fetchRoomList()}getColumnHeader(t){return typeof t=="string"?t:t.metadata}getRoomColumn(t,n){let r=n,o,l=t,s;return r==="elapsedTime"&&l[r]>=0?s=i=>new Date(Date.now()-i):n.metadata&&t.metadata&&(r=n.metadata,l=t.metadata),o=l[r],o===void 0&&(o=""),s?s(o):`${o}`}bytesToStr(t){const n=Math.floor(Math.log(t)/Math.log(1024));return(t/Math.pow(1024,n)).toFixed(2)*1+" "+["B","kB","MB","GB","TB"][n]}formatMemory(t){return t>=1024?`${(t/1024).toFixed(2)} GB`:`${t} MB`}getColumnsNames(t){const n=t.map(r=>{const o=this.getColumnHeader(r);return{id:o,field:o,headerName:o,flex:1,valueFormatter:UP[o],sortComparator:W7[o]||gP}});return n.push({field:"Inspect",headerName:"",flex:1,renderCell:r=>r.value!==ap?S.jsx("div",{style:{cursor:"pointer"},onClick:()=>{this.inspectRoom(r.value)},children:S.jsx(no,{variant:"contained",disableElevation:!0,startIcon:S.jsx(GP,{}),children:S.jsx(er,{noWrap:!0,component:"span",sx:{flexGrow:1,display:{xs:"none",sm:"none",md:"block"}},children:"Inspect"})})}):null}),n.push({field:"Dispose",headerName:"",flex:1,renderCell:r=>r.value!==ap?S.jsx("div",{style:{cursor:"pointer"},onClick:()=>{this.disposeRoom(r.value)},children:S.jsx(no,{variant:"contained",disableElevation:!0,color:"error",startIcon:S.jsx(ov,{}),children:S.jsx(er,{noWrap:!0,component:"span",sx:{flexGrow:1,display:{xs:"none",sm:"none",md:"block"}},children:"Dispose"})})}):null}),n}getRowsData(t){return t.map(n=>{const r={id:n.roomId};for(const o of this.state.columns){const l=this.getRoomColumn(n,o);r[this.getColumnHeader(o)]=l}return r.Inspect=n.roomId,r.Dispose=n.roomId,r})}generateRoomListDataGrid(){const t=this.getColumnsNames(this.state.columns),n=this.getRowsData(this.state.rooms);return S.jsx(VP,{columns:t,rows:n.length===0?this.getRowsData([{roomId:ap,elapsedTime:-1}]):n,autoHeight:!0,sx:{overflow:"hidden"},slots:{noRowsOverlay:()=>S.jsx(S.Fragment,{})},disableRowSelectionOnClick:!0})}render(){return S.jsxs("div",{children:[S.jsx(Lb,{children:S.jsx(MS,{component:kr,children:S.jsx(ES,{"aria-label":"simple table",children:S.jsx(RS,{children:S.jsxs(OS,{children:[S.jsxs(Zn,{align:"center",children:["Connections",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:this.state.connections})]}),S.jsxs(Zn,{align:"center",children:["Rooms",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:this.state.rooms.length})]}),S.jsxs(Zn,{align:"center",children:["CPU Usage",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:`${this.state.cpu.toFixed(2)} %`})]}),S.jsxs(Zn,{align:"center",children:["Memory",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:this.formatMemory(this.state.memory.usedMemMb)})]})]})})})})}),S.jsx(Lb,{style:{marginTop:"2px"},children:this.generateRoomListDataGrid()})]})}}var WP={exports:{}};(function(e,t){(function(r,o){e.exports=o(d)})(ik,function(n){return function(r){var o={};function l(s){if(o[s])return o[s].exports;var i=o[s]={exports:{},id:s,loaded:!1};return r[s].call(i.exports,i,i.exports,l),i.loaded=!0,i.exports}return l.m=r,l.c=o,l.p="",l(0)}([function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=l(9);Object.defineProperty(o,"JsonEditor",{enumerable:!0,get:function(){return a(s).default}});var i=l(3);Object.defineProperty(o,"parse",{enumerable:!0,get:function(){return i.parse}});function a(u){return u&&u.__esModule?u:{default:u}}},function(r,o){r.exports=n},function(r,o,l){r.exports=l(12)()},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.render_item=C,o.get_options=k,o.is_container=b,o.text2value=m,o.capitalize=y,o.add2text=w,o.parse=P;var s=l(1),i=g(s),a=l(8),u=g(a),c=l(11),f=g(c),p=l(6),v=g(p);function g(x){return x&&x.__esModule?x:{default:x}}function C(x,I,R,M,_,L){return R instanceof Array?i.default.createElement(u.default,{key:x,jkey:I,doc:R,level:L+1,propagateChanges:M}):R instanceof Object?i.default.createElement(f.default,{key:x,jkey:I,doc:R,level:L+1,propagateChanges:M}):i.default.createElement(v.default,{key:x,index:I,value:R,isLast:_,propagateChanges:M})}function k(x,I){return typeof x.levels>"u"||I<x.levels?["string","number","boolean","object","array","whitespace","null"]:["string","number","boolean","whitespace","null"]}function b(x){switch(x){case"array":case"object":case"null":case"whitespace":return!0;default:return!1}}function m(x,I){switch(x){case"boolean":var R=["true","1","yes","on"].indexOf(I.toLowerCase());return 0<=R;case"number":return Number(I);case"array":return[];case"object":return{};case"null":return null;case"whitespace":return" ";case"string":default:return I}}function y(x){return x.charAt(0).toUpperCase()+x.slice(1)}function w(x,I,R){return x.substr(0,I)+R+x.substr(I)}function E(x,I){if(typeof I<"u"){for(var R=x.indexOf(" at line "),M=x.indexOf(" column "),_=x.indexOf(" of the JSON data"),L=parseInt(x.substr(R+9,M))-1,F=parseInt(x.substr(M+8,_))-1,$=I.split(`
240
240
  `),T=0;T<$.length;T++)if(L===T)return w($[T],F,"˰")}}function P(x){try{return{json:JSON.parse(x)}}catch(M){var I=M.toString(),R="Pasted text is not valid json. Error: "+I+" - "+E(I,x);return{json:void 0,errorText:R}}}},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=Object.assign||function(y){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(y[P]=E[P])}return y},i=function(){function y(w,E){for(var P=0;P<E.length;P++){var x=E[P];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(w,x.key,x)}}return function(w,E,P){return E&&y(w.prototype,E),P&&y(w,P),w}}(),a=l(1),u=g(a),c=l(2),f=g(c),p=l(5),v=g(p);function g(y){return y&&y.__esModule?y:{default:y}}function C(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function k(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function b(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var m=function(y){b(w,y);function w(E){C(this,w);var P=k(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,E));return P.add=function(){P.setState({adding:!0})},P.next=function(x){},P.onDone=function(x,I){P.onChange(x,I),x<P.props.setup.length-1?P.next(x+1):P.save()},P.onChange=function(x,I){var R=P.state.values;R[x]=I,P.setState({values:R})},P.cancel=function(){P.setState({adding:!1})},P.save=function(){P.setState({adding:!1}),P.props.onDone(P.state.values)},P.state={adding:!1,values:[]},P}return i(w,[{key:"getStyle",value:function(){return this.context.styling["add-group"]}},{key:"getButtonStyle",value:function(P){return this.context.styling[P]}},{key:"input",value:function(){var P=this.props.setup,x=P.map(function(I,R){return u.default.createElement(v.default,s({key:"ab"+R,index:R,onChange:this.onChange,onDone:this.onDone},I))},this);return u.default.createElement("div",{className:"AddButton",style:this.getStyle()},x,u.default.createElement("button",{className:"save-button",style:this.getButtonStyle("save-button"),onClick:this.save},"Save"),u.default.createElement("button",{className:"cancel-button",style:this.getButtonStyle("cancel-button"),onClick:this.cancel},"Cancel"))}},{key:"render",value:function(){return this.state.adding?this.input():u.default.createElement("button",{className:"add-button",style:this.getButtonStyle("add-button"),onClick:this.add},"+")}}]),w}(a.Component);m.propTypes={onDone:f.default.func.isRequired,setup:f.default.array.isRequired},m.contextTypes={styling:f.default.object},o.default=m},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function m(y,w){for(var E=0;E<w.length;E++){var P=w[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(y,P.key,P)}}return function(y,w,E){return w&&m(y.prototype,w),E&&m(y,E),y}}(),i=l(1),a=p(i),u=l(2),c=p(u),f=l(3);function p(m){return m&&m.__esModule?m:{default:m}}function v(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function g(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function C(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var k=function(m){C(y,m);function y(w){v(this,y);var E=g(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w));b.call(E);var P=w.type||"string";return E.state={type:P,value:w.value,show:!(0,f.is_container)(P)},E}return s(y,[{key:"select",value:function(E){if(E.length>0){var P=E.map(function(x){return a.default.createElement("option",{key:x,value:x},x)},this);return a.default.createElement("select",{onChange:this.handleSelectChange,defaultValue:this.state.type},P)}return null}},{key:"input",value:function(){var E=this.props,P=E.defaultValue,x=E.placeholder;return a.default.createElement("input",{className:"add-input",style:this.getStyle(),type:"text",autoFocus:!1,defaultValue:P,placeholder:x,onBlur:this.finishEdit,onChange:this.handleInputChange,onKeyPress:this.checkEnter})}},{key:"doneButton",value:function(){return a.default.createElement("button",{className:"add-button",style:this.getButtonStyle(),onClick:this.onDone},"√")}},{key:"getStyle",value:function(){return this.context.styling["add-input"]}},{key:"getButtonStyle",value:function(){return this.context.styling["add-button"]}},{key:"render",value:function(){var E=this.props.multiple;return a.default.createElement("div",{className:"AddInput"},this.select(E),this.state.show?this.input():this.doneButton())}}]),y}(i.Component);k.propTypes={type:c.default.string,multiple:c.default.bool.isRequired,defaultValue:c.default.oneOfType([c.default.string,c.default.number,c.default.bool]),placeholder:c.default.string,onChange:c.default.func.isRequired,onDone:c.default.func.isRequired},k.contextTypes={styling:c.default.object};var b=function(){var y=this;this.handleInputChange=function(w){var E=(0,f.text2value)(y.state.type,w.target.value);y.props.onChange(y.props.index,E),y.setState({value:E})},this.handleSelectChange=function(w){for(var E=w.target.options,P=[],x=0;x<E.length;x++)if(E[x].selected){P=E[x].value;break}var I=(0,f.is_container)(P),R=I?(0,f.text2value)(P,y.state.value):y.state.value;y.setState({type:P,show:!I}),y.props.onChange(y.props.index,R)},this.checkEnter=function(w){w.key==="Enter"&&y.finishEdit(w)},this.finishEdit=function(w){var E=(0,f.text2value)(y.state.type,w.target.value);y.props.onDone(y.props.index,E)},this.onDone=function(){var w=(0,f.text2value)(y.state.type,y.state.value);y.props.onDone(y.props.index,w)}};o.default=k},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=Object.assign||function(x){for(var I=1;I<arguments.length;I++){var R=arguments[I];for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(x[M]=R[M])}return x},i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},a=function(){function x(I,R){for(var M=0;M<R.length;M++){var _=R[M];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(I,_.key,_)}}return function(I,R,M){return R&&x(I.prototype,R),M&&x(I,M),I}}(),u=l(1),c=m(u),f=l(2),p=m(f),v=l(7),g=m(v),C=l(3),k=l(5),b=m(k);function m(x){return x&&x.__esModule?x:{default:x}}function y(x,I){if(!(x instanceof I))throw new TypeError("Cannot call a class as a function")}function w(x,I){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:x}function E(x,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);x.prototype=Object.create(I&&I.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(x,I):x.__proto__=I)}var P=function(x){E(I,x);function I(R){y(this,I);var M=w(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,R));return M.mouseOver=function(){M.setState({hover:!0})},M.mouseOut=function(){M.setState({hover:!1})},M.onChange=function(_,L){},M.onDone=function(_,L){M.propagateChanges(L)},M.onDelete=function(_){_.stopPropagation(),M.propagateDelete()},M.activateEdit=function(_){M.setState({editing:!0})},M.state={editing:!1,hover:!1},M}return a(I,[{key:"propagateChanges",value:function(M){this.setState({editing:!1}),this.props.propagateChanges&&this.props.value!=M&&this.props.propagateChanges("update",this.props.index,M)}},{key:"propagateDelete",value:function(){this.props.propagateChanges&&this.props.propagateChanges("delete",this.props.index)}},{key:"value",value:function(){return String(this.props.value)}},{key:"getClass",value:function(){return this.props.value===null?"null":i(this.props.value)}},{key:"getClassName",value:function(){return(0,C.capitalize)(this.getClass())+"Item"}},{key:"getStyle",value:function(){if(this.context.styling.hasOwnProperty(this.getClass())){var M=this.context.styling[this.getClass()];return(0,g.default)(!0,this.context.styling.value,M)}return this.context.styling.value}},{key:"getSuffix",value:function(){return this.props.isLast?null:","}},{key:"editSettings",value:function(){return{type:this.getClass(),defaultValue:this.props.value,multiple:!0}}},{key:"renderEdit",value:function(){var M=this.editSettings();return c.default.createElement(b.default,s({index:0,autoFocus:!1,onChange:this.onChange,onDone:this.onDone},M))}},{key:"renderInnerValue",value:function(){return c.default.createElement("span",null,this.value(),this.context.setup.tableLike?null:this.getSuffix())}},{key:"renderValue",value:function(){return c.default.createElement("div",{className:this.getClassName(),style:this.getStyle(),onClick:this.activateEdit,onMouseOver:this.mouseOver,onMouseOut:this.mouseOut},this.renderInnerValue(),this.renderDelete())}},{key:"renderDelete",value:function(){var M={visibility:this.state.hover?"visible":"hidden"},_=(0,g.default)(!0,this.context.styling["delete-button"],M);return c.default.createElement("button",{className:"delete-button",onClick:this.onDelete,style:_},"⌫")}},{key:"render",value:function(){return this.state.editing?this.renderEdit():this.renderValue()}}]),I}(u.Component);P.propTypes={index:p.default.oneOfType([p.default.string,p.default.number]).isRequired,value:p.default.oneOfType([p.default.string,p.default.number,p.default.bool]),isLast:p.default.bool,propagateChanges:p.default.func.isRequired},P.contextTypes={styling:p.default.object,setup:p.default.object},o.default=P},function(r,o,l){(function(s){/*!
@@ -244,5 +244,5 @@ return result$$;`.replaceAll("$$",String(A0)));return A0+=1,(i,a)=>l(t.current.g
244
244
 
245
245
  * Copyright 2014 yeikos - MIT license
246
246
  * https://raw.github.com/yeikos/js.merge/master/LICENSE
247
- */(function(i){var a=function(v){return f(v===!0,!1,arguments)},u="merge";a.recursive=function(v){return f(v===!0,!0,arguments)},a.clone=function(v){var g=v,C=p(v),k,b;if(C==="array")for(g=[],b=v.length,k=0;k<b;++k)g[k]=a.clone(v[k]);else if(C==="object"){g={};for(k in v)g[k]=a.clone(v[k])}return g};function c(v,g){if(p(v)!=="object")return g;for(var C in g)p(v[C])==="object"&&p(g[C])==="object"?v[C]=c(v[C],g[C]):v[C]=g[C];return v}function f(v,g,C){var k=C[0],b=C.length;(v||p(k)!=="object")&&(k={});for(var m=0;m<b;++m){var y=C[m],w=p(y);if(w==="object")for(var E in y){var P=v?a.clone(y[E]):y[E];g?k[E]=c(k[E],P):k[E]=P}}return k}function p(v){return{}.toString.call(v).slice(8,-1).toLowerCase()}i?s.exports=a:window[u]=a})(typeof s=="object"&&s&&typeof s.exports=="object"&&s.exports)}).call(o,l(16)(r))},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function y(w,E){for(var P=0;P<E.length;P++){var x=E[P];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(w,x.key,x)}}return function(w,E,P){return E&&y(w.prototype,E),P&&y(w,P),w}}(),i=l(1),a=g(i),u=l(2),c=g(u),f=l(3),p=l(4),v=g(p);function g(y){return y&&y.__esModule?y:{default:y}}function C(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function k(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function b(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var m=function(y){b(w,y);function w(){var E,P,x,I;C(this,w);for(var R=arguments.length,M=Array(R),_=0;_<R;_++)M[_]=arguments[_];return I=(P=(x=k(this,(E=w.__proto__||Object.getPrototypeOf(w)).call.apply(E,[this].concat(M))),x),x.addItem=function(L){var F=x.props.doc;F.push(L[0]),x.props.propagateChanges("add",x.props.jkey,F)},x.propagateChanges=function(L,F,$){var T=x.props.doc;switch(L){case"delete":T.splice(F,1);break;case"add":case"update":default:T[F]=$}x.props.propagateChanges("update",x.props.jkey,T)},P),k(x,I)}return s(w,[{key:"addButtonSetup",value:function(){return[{type:"String",placeholder:"value",multiple:(0,f.get_options)(this.context.setup.structure,this.props.level)}]}},{key:"getStyle",value:function(){return this.context.styling.array}},{key:"getRowStyle",value:function(){return this.context.styling["array-row"]}},{key:"render",value:function(){var P=this.props.doc.length-1,x=this.props.doc.map(function(I,R){var M=this.props.jkey+R,_=R==P;return a.default.createElement("div",{className:"ArrayRow",style:this.getRowStyle()},(0,f.render_item)(M,R,I,this.propagateChanges,_,this.props.level))},this);return a.default.createElement("div",{className:"ArrayItem",style:this.getStyle()},this.context.setup.tableLike?null:"[",x,a.default.createElement("div",{className:"ArrayRow",style:this.getRowStyle()},a.default.createElement(v.default,{onDone:this.addItem,setup:this.addButtonSetup()})),this.context.setup.tableLike?null:"]")}}]),w}(i.Component);m.contextTypes={styling:c.default.object,setup:c.default.object},m.propTypes={jkey:c.default.string.isRequired,doc:c.default.array.isRequired,level:c.default.number.isRequired,propagateChanges:c.default.func.isRequired},o.default=m},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function P(x,I){for(var R=0;R<I.length;R++){var M=I[R];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(x,M.key,M)}}return function(x,I,R){return I&&P(x.prototype,I),R&&P(x,R),x}}(),i=l(1),a=C(i),u=l(2),c=C(u),f=l(7),p=C(f),v=l(3),g=l(4);C(g);function C(P){return P&&P.__esModule?P:{default:P}}function k(P,x){if(!(P instanceof x))throw new TypeError("Cannot call a class as a function")}function b(P,x){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:P}function m(P,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);P.prototype=Object.create(x&&x.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(P,x):P.__proto__=x)}var y={root:{clear:"left"},array:{display:"inline-table"},object:{display:"inline-table"},"object-row":{display:"block",marginLeft:1},"array-row":{display:"block",marginLeft:1},value:{display:"inline-block",minWidth:10,marginLeft:.1},key:{fontWeight:"bold"},string:{color:"green"},number:{color:"blue"},undefined:{color:"violet"},boolean:{color:"red"},null:{color:"firebrick"},"add-button":{display:"inline-block"},"save-button":{display:"inline-block"},"cancel-button":{display:"inline-block"},"delete-button":{float:"right",marginLeft:.5,display:"inline-block"},"add-group":{display:"inline-flex"},"add-input":{display:"inline-block"}};function w(P){var x=P.border||"1px solid #414141",I=P.tableLike?{root:{display:"table",border:x,borderCollapse:"collapse"},array:{display:"table-cell",border:x},object:{display:"table-cell",border:x},"array-row":{display:"table-cell",border:x,marginLeft:0},"object-row":{display:"table-row",border:x,marginLeft:0},key:{display:"table-cell",border:x},value:{display:"table-cell",marginLeft:0},"add-button":{display:"table-cell"}}:{};return(0,p.default)((0,p.default)(y,I),P.styling)}var E=function(P){m(x,P);function x(I){k(this,x);var R=b(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,I));return R.propagateChanges=function(M,_,L){R.setState({value:L}),R.props.propagateChanges&&R.props.propagateChanges(L)},R.state={defaultKey:I.defaultKey||"json.",defaultJsonKey:I.defaultJsonKey||"root",styling:w(I)},R}return s(x,[{key:"getChildContext",value:function(){return{styling:this.state.styling,setup:{tableLike:this.props.tableLike,structure:this.props.structure||{}}}}},{key:"getStyle",value:function(){return this.state.styling.root}},{key:"render",value:function(){var R=this.props.value||this.props.defaultValue||{},M=(0,v.render_item)(this.state.defaultKey,this.state.defaultJsonKey,R,this.propagateChanges,!1,0);return a.default.createElement("div",{className:"JsonEditor",style:this.getStyle()},M)}}]),x}(i.Component);E.propTypes={defaultValue:c.default.oneOfType([c.default.array,c.default.object]),value:c.default.oneOfType([c.default.array,c.default.object]),structure:c.default.object,defaultKey:c.default.string,defaultJsonKey:c.default.string,propagateChanges:c.default.func.isRequired},E.childContextTypes={styling:c.default.object,setup:c.default.object},o.default=E},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function b(m,y){for(var w=0;w<y.length;w++){var E=y[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,y,w){return y&&b(m.prototype,y),w&&b(m,w),m}}(),i=l(1);p(i);var a=l(2),u=p(a),c=l(6),f=p(c);function p(b){return b&&b.__esModule?b:{default:b}}function v(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function g(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function C(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var k=function(b){C(m,b);function m(){return v(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return s(m,[{key:"value",value:function(){return this.props.jkey}},{key:"getClass",value:function(){return"key"}},{key:"getSuffix",value:function(){return":"}},{key:"editSettings",value:function(){return{type:"string",defaultValue:this.props.jkey,multiple:!1}}},{key:"propagateChanges",value:function(w){this.setState({editing:!1}),this.props.propagateKeyChange&&this.props.jkey!=w&&this.props.propagateKeyChange("update",this.props.jkey,w)}},{key:"propagateDelete",value:function(){this.props.propagateKeyChange&&this.props.propagateKeyChange("delete",this.props.jkey)}}]),m}(f.default);k.propTypes={jkey:u.default.oneOfType([u.default.string,u.default.number]).isRequired,propagateKeyChange:u.default.func.isRequired},o.default=k},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function E(P,x){for(var I=0;I<x.length;I++){var R=x[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(P,R.key,R)}}return function(P,x,I){return x&&E(P.prototype,x),I&&E(P,I),P}}(),i=l(1),a=k(i),u=l(2),c=k(u),f=l(4),p=k(f),v=l(3),g=l(10),C=k(g);function k(E){return E&&E.__esModule?E:{default:E}}function b(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")}function m(E,P){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:E}function y(E,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);E.prototype=Object.create(P&&P.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(E,P):E.__proto__=P)}var w=function(E){y(P,E);function P(){var x,I,R,M;b(this,P);for(var _=arguments.length,L=Array(_),F=0;F<_;F++)L[F]=arguments[F];return M=(I=(R=m(this,(x=P.__proto__||Object.getPrototypeOf(P)).call.apply(x,[this].concat(L))),R),R.addItem=function($){var T=R.props.doc;T[$[0]]=$[1],R.props.propagateChanges("add",R.props.jkey,T)},R.propagateChanges=function($,T,D){var A=R.props.doc;switch($){case"delete":delete A[T];break;case"add":case"update":default:A[T]=D}R.props.propagateChanges("update",R.props.jkey,A)},R.propagateKeyChange=function($,T,D){var A=R.props.doc[T],O=R.props.doc;switch($){case"delete":break;case"add":case"update":default:O[D]=A}delete O[T],R.props.propagateChanges("update",R.props.jkey,O)},I),m(R,M)}return s(P,[{key:"addButtonSetup",value:function(){return[{type:"text",placeholder:"key",multiple:[]},{type:"text",placeholder:"value",multiple:(0,v.get_options)(this.context.setup.structure,this.props.level)}]}},{key:"getStyle",value:function(){return this.context.styling.object}},{key:"getRowStyle",value:function(){return this.context.styling["object-row"]}},{key:"render",value:function(){var I=Object.keys(this.props.doc),R=I.map(function(M,_){var L=this.props.jkey+"."+M+_,F=_==I.length-1;return a.default.createElement("div",{key:this.props.jkey+".r"+_,className:"ObjectRow",style:this.getRowStyle()},a.default.createElement(C.default,{key:this.props.jkey+".k"+_,jkey:M,propagateKeyChange:this.propagateKeyChange}),(0,v.render_item)(L,M,this.props.doc[M],this.propagateChanges,F,this.props.level))},this);return a.default.createElement("div",{className:"ObjectItem",style:this.getStyle()},this.context.setup.tableLike?null:"{",R,a.default.createElement(p.default,{onDone:this.addItem,setup:this.addButtonSetup()}),this.context.setup.tableLike?null:"}")}}]),P}(i.Component);w.contextTypes={styling:c.default.object,setup:c.default.object},w.propTypes={jkey:c.default.string.isRequired,doc:c.default.object.isRequired,level:c.default.number.isRequired,propagateChanges:c.default.func.isRequired},o.default=w},function(r,o,l){var s=l(14),i=l(15),a=l(13);r.exports=function(){function u(p,v,g,C,k,b){b!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}u.isRequired=u;function c(){return u}var f={array:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:c,element:u,instanceOf:c,node:u,objectOf:c,oneOf:c,oneOfType:c,shape:c};return f.checkPropTypes=s,f.PropTypes=f,f}},function(r,o){var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";r.exports=l},function(r,o){function l(i){return function(){return i}}var s=function(){};s.thatReturns=l,s.thatReturnsFalse=l(!1),s.thatReturnsTrue=l(!0),s.thatReturnsNull=l(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(i){return i},r.exports=s},function(r,o,l){function s(i,a,u,c,f,p,v,g){if(!i){var C;if(a===void 0)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[u,c,f,p,v,g],b=0;C=new Error(a.replace(/%s/g,function(){return k[b++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}}r.exports=s},function(r,o){r.exports=function(l){return l.webpackPolyfill||(l.deprecate=function(){},l.paths=[],l.children=[],l.webpackPolyfill=1),l}}])})})(WP);var q7=WP.exports;function Y7(e,t,n,r){function o(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function i(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?l(c.value):o(c.value).then(i,a)}u((r=r.apply(e,[])).next())})}var Q7=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},X7=Q7,tC={"text/plain":"Text","text/html":"Url",default:"Text"},Z7="Copy to clipboard: #{key}, Enter";function J7(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function e9(e,t){var n,r,o,l,s,i,a=!1;t||(t={}),n=t.debug||!1;try{o=X7(),l=document.createRange(),s=document.getSelection(),i=document.createElement("span"),i.textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=tC[t.format]||tC.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(i),l.selectNodeContents(i),s.addRange(l);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");a=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=J7("message"in t?t.message:Z7),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(l):s.removeAllRanges()),i&&document.body.removeChild(i),o()}return a}var t9=e9;function il(e){return Object.prototype.toString.call(e)==="[object Object]"}function Qi(e){return Array.isArray(e)?e.length:il(e)?Object.keys(e).length:0}function n9(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,r)=>{switch(typeof r){case"bigint":return String(r)+"n";case"number":case"boolean":case"object":case"string":return r;default:return String(r)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function r9(e){return Y7(this,void 0,void 0,function*(){try{yield navigator.clipboard.writeText(e)}catch{t9(e)}})}function nC(e,t,n,r,o,l){if(l&&l.collapsed!==void 0)return!!l.collapsed;if(typeof r=="boolean")return r;if(typeof r=="number"&&t>r)return!0;const s=Qi(e);if(typeof r=="function"){const i=lv(r,[{node:e,depth:t,indexOrName:n,size:s}]);if(typeof i=="boolean")return i}return!!(Array.isArray(e)&&s>o||il(e)&&s>o)}function rC(e,t,n,r,o,l){if(l&&l.collapsed!==void 0)return!!l.collapsed;if(typeof r=="boolean")return r;if(typeof r=="number"&&t>r)return!0;const s=Math.ceil(e.length/100);if(typeof r=="function"){const i=lv(r,[{node:e,depth:t,indexOrName:n,size:s}]);if(typeof i=="boolean")return i}return!!(Array.isArray(e)&&s>o||il(e)&&s>o)}function $s(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function lv(e,t){try{return e(...t)}catch(n){reportError(n)}}function KP(e){if(e===!0||il(e)&&e.add===!0)return!0}function oC(e){if(e===!0||il(e)&&e.edit===!0)return!0}function sv(e){if(e===!0||il(e)&&e.delete===!0)return!0}function o9(e){return typeof e=="function"}function qP(e){return!e||e.add===void 0||!!e.add}function lC(e){return!e||e.edit===void 0||!!e.edit}function iv(e){return!e||e.delete===void 0||!!e.delete}function uf(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function l9(e){return!e||e.matchesURL===void 0||!!e.matchesURL}function s9(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var sC;function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$h.apply(this,arguments)}var av=function(t){return d.createElement("svg",$h({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),sC||(sC=d.createElement("path",{fill:"currentColor",d:"M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"})))},iC;function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oh.apply(this,arguments)}var i9=function(t){return d.createElement("svg",Oh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),iC||(iC=d.createElement("path",{fill:"currentColor",d:"M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"})))},aC,uC;function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fh.apply(this,arguments)}var a9=function(t){return d.createElement("svg",Fh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),aC||(aC=d.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.755 3.755 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"})),uC||(uC=d.createElement("path",{fill:"#14C786",d:"M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"})))};function cf({node:e,nodeMeta:t}){const{customizeCopy:n,CopyComponent:r,CopiedComponent:o}=d.useContext(al),[l,s]=d.useState(!1),i=a=>{a.stopPropagation();const u=n(e,t);typeof u=="string"&&u&&r9(u),s(!0),setTimeout(()=>s(!1),3e3)};return l?typeof o=="function"?S.jsx(o,{className:"json-view--copy",style:{display:"inline-block"}}):S.jsx(a9,{className:"json-view--copy",style:{display:"inline-block"}}):typeof r=="function"?S.jsx(r,{onClick:i,className:"json-view--copy"}):S.jsx(i9,{onClick:i,className:"json-view--copy"})}function _h({indexOrName:e,value:t,depth:n,deleteHandle:r,editHandle:o,parent:l,parentPath:s}){const{displayArrayIndex:i}=d.useContext(al),a=Array.isArray(l);return S.jsxs("div",Object.assign({className:"json-view--pair"},{children:[!a||a&&i?S.jsxs(S.Fragment,{children:[S.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," "]}):S.jsx(S.Fragment,{}),S.jsx(QP,{node:t,depth:n+1,deleteHandle:(u,c)=>r(u,c),editHandle:(u,c,f,p)=>o(u,c,f,p),parent:l,indexOrName:e,parentPath:s})]}))}var cC,dC;function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(this,arguments)}var uv=function(t){return d.createElement("svg",Dh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),cC||(cC=d.createElement("path",{fill:"currentColor",d:"M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"})),dC||(dC=d.createElement("path",{fill:"#DA0000",d:"M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"})))},fC,pC;function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jh.apply(this,arguments)}var YP=function(t){return d.createElement("svg",jh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),fC||(fC=d.createElement("path",{fill:"currentColor",d:"M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"})),pC||(pC=d.createElement("path",{fill:"#14C786",d:"M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"})))},hC,mC;function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}var cv=function(t){return d.createElement("svg",Lh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),hC||(hC=d.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})),mC||(mC=d.createElement("path",{fill:"#14C786",d:"m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"})))},gC,vC;function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ah.apply(this,arguments)}var dv=function(t){return d.createElement("svg",Ah({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),gC||(gC=d.createElement("path",{fill:"#DA0000",d:"M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"})),vC||(vC=d.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})))};function u9({originNode:e,node:t,depth:n,index:r,deleteHandle:o,customOptions:l,startIndex:s,parent:i,parentPath:a}){const{enableClipboard:u,src:c,onEdit:f,onChange:p,forceUpdate:v,displaySize:g,CustomOperation:C}=d.useContext(al),k=[...a,String(r)],[b,m]=d.useState(!0),y=d.useCallback((P,x,I)=>{e[P]=x,f&&f({newValue:x,oldValue:I,depth:n,src:c,indexOrName:P,parentType:"array",parentPath:a}),p&&p({type:"edit",depth:n,src:c,indexOrName:P,parentType:"array",parentPath:a}),v()},[t,f,p,v]),w=P=>{e.splice(P,1),o&&o(P,a),v()},E=S.jsxs(S.Fragment,{children:[!b&&S.jsxs("span",Object.assign({onClick:()=>m(!0),className:"jv-size-chevron"},{children:[$s(g,n,b)&&S.jsxs("span",Object.assign({className:"jv-size"},{children:[Qi(t)," Items"]})),S.jsx(av,{className:"jv-chevron"})]})),!b&&u&&uf(l)&&S.jsx(cf,{node:t,nodeMeta:{depth:n,indexOrName:r,parent:i,parentPath:a,currentPath:k}}),typeof C=="function"?S.jsx(C,{node:t}):null]});return S.jsxs("div",{children:[S.jsx("span",{children:"["}),E,b?S.jsxs("button",Object.assign({onClick:()=>m(!1),className:"jv-button"},{children:[s," ... ",s+t.length-1]})):S.jsx("div",Object.assign({className:"jv-indent"},{children:t.map((P,x)=>S.jsx(_h,{indexOrName:x+s,value:P,depth:n,parent:t,deleteHandle:w,editHandle:y,parentPath:a},String(r)+String(x)))})),S.jsx("span",{children:"]"})]})}function c9({node:e,depth:t,deleteHandle:n,indexOrName:r,customOptions:o,parent:l,parentPath:s}){const i=typeof r<"u"?[...s,String(r)]:s,a=[];for(let T=0;T<e.length;T+=100)a.push(e.slice(T,T+100));const{collapsed:u,enableClipboard:c,collapseObjectsAfterLength:f,editable:p,onDelete:v,src:g,onAdd:C,CustomOperation:k,onChange:b,forceUpdate:m,displaySize:y}=d.useContext(al),[w,E]=d.useState(rC(e,t,r,u,f,o));d.useEffect(()=>{E(rC(e,t,r,u,f,o))},[u,f]);const[P,x]=d.useState(!1),I=()=>{x(!1),n&&n(r,s),v&&v({value:e,depth:t,src:g,indexOrName:r,parentType:"array",parentPath:s}),b&&b({type:"delete",depth:t,src:g,indexOrName:r,parentType:"array",parentPath:s})},[R,M]=d.useState(!1),_=()=>{const T=e;T.push(null),C&&C({indexOrName:T.length-1,depth:t,src:g,parentType:"array",parentPath:s}),b&&b({type:"add",indexOrName:T.length-1,depth:t,src:g,parentType:"array",parentPath:s}),m()},L=P||R,F=()=>{x(!1),M(!1)},$=S.jsxs(S.Fragment,{children:[!w&&!L&&S.jsxs("span",Object.assign({onClick:()=>E(!0),className:"jv-size-chevron"},{children:[$s(y,t,w)&&S.jsxs("span",Object.assign({className:"jv-size"},{children:[e.length," Items"]})),S.jsx(av,{className:"jv-chevron"})]})),L&&S.jsx(cv,{className:"json-view--edit",style:{display:"inline-block"},onClick:R?_:I}),L&&S.jsx(dv,{className:"json-view--edit",style:{display:"inline-block"},onClick:F}),!w&&!L&&c&&uf(o)&&S.jsx(cf,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:l,parentPath:s,currentPath:i}}),!w&&!L&&KP(p)&&qP(o)&&S.jsx(YP,{className:"json-view--edit",onClick:()=>{_()}}),!w&&!L&&sv(p)&&iv(o)&&n&&S.jsx(uv,{className:"json-view--edit",onClick:()=>x(!0)}),typeof k=="function"?S.jsx(k,{node:e}):null]});return S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"["}),$,w?S.jsx("button",Object.assign({onClick:()=>E(!1),className:"jv-button"},{children:"..."})):S.jsx("div",Object.assign({className:"jv-indent"},{children:a.map((T,D)=>S.jsx(u9,{originNode:e,node:T,depth:t,index:D,startIndex:D*100,deleteHandle:n,customOptions:o,parentPath:s},String(r)+String(D)))})),S.jsx("span",{children:"]"}),w&&$s(y,t,w)&&S.jsxs("span",Object.assign({onClick:()=>E(!1),className:"jv-size"},{children:[e.length," Items"]}))]})}function d9({node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:o,parent:l,parentPath:s}){const{collapsed:i,onCollapse:a,enableClipboard:u,ignoreLargeArray:c,collapseObjectsAfterLength:f,editable:p,onDelete:v,src:g,onAdd:C,onEdit:k,onChange:b,forceUpdate:m,displaySize:y,CustomOperation:w}=d.useContext(al),E=typeof n<"u"?[...s,String(n)]:s;if(!c&&Array.isArray(e)&&e.length>100)return S.jsx(c9,{node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:o,parentPath:E});const P=il(e),[x,I]=d.useState(nC(e,t,n,i,f,o)),R=V=>{a==null||a({isCollapsing:!V,node:e,depth:t,indexOrName:n}),I(V)};d.useEffect(()=>{R(nC(e,t,n,i,f,o))},[i,f]);const M=d.useCallback((V,U,q)=>{Array.isArray(e)?e[+V]=U:e&&(e[V]=U),k&&k({newValue:U,oldValue:q,depth:t,src:g,indexOrName:V,parentType:P?"object":"array",parentPath:E}),b&&b({type:"edit",depth:t,src:g,indexOrName:V,parentType:P?"object":"array",parentPath:E}),m()},[e,k,b,m]),_=V=>{Array.isArray(e)?e.splice(+V,1):e&&delete e[V],m()},[L,F]=d.useState(!1),$=()=>{F(!1),r&&r(n,E),v&&v({value:e,depth:t,src:g,indexOrName:n,parentType:P?"object":"array",parentPath:E}),b&&b({type:"delete",depth:t,src:g,indexOrName:n,parentType:P?"object":"array",parentPath:E})},[T,D]=d.useState(!1),A=d.useRef(null),O=()=>{var V;if(P){const U=(V=A.current)===null||V===void 0?void 0:V.value;U&&(e[U]=null,A.current&&(A.current.value=""),D(!1),C&&C({indexOrName:U,depth:t,src:g,parentType:"object",parentPath:E}),b&&b({type:"add",indexOrName:U,depth:t,src:g,parentType:"object",parentPath:E}))}else if(Array.isArray(e)){const U=e;U.push(null),C&&C({indexOrName:U.length-1,depth:t,src:g,parentType:"array",parentPath:E}),b&&b({type:"add",indexOrName:U.length-1,depth:t,src:g,parentType:"array",parentPath:E})}m()},j=V=>{V.key==="Enter"?(V.preventDefault(),O()):V.key==="Escape"&&B()},N=L||T,B=()=>{F(!1),D(!1)},H=S.jsxs(S.Fragment,{children:[!x&&!N&&S.jsxs("span",Object.assign({onClick:()=>R(!0),className:"jv-size-chevron"},{children:[$s(y,t,x)&&S.jsxs("span",Object.assign({className:"jv-size"},{children:[Qi(e)," Items"]})),S.jsx(av,{className:"jv-chevron"})]})),T&&P&&S.jsx("input",{className:"json-view--input",placeholder:"property",ref:A,onKeyDown:j}),N&&S.jsx(cv,{className:"json-view--edit",style:{display:"inline-block"},onClick:T?O:$}),N&&S.jsx(dv,{className:"json-view--edit",style:{display:"inline-block"},onClick:B}),!x&&!N&&u&&uf(o)&&S.jsx(cf,{node:e,nodeMeta:{depth:t,indexOrName:n,parent:l,parentPath:s,currentPath:E}}),!x&&!N&&KP(p)&&qP(o)&&S.jsx(YP,{className:"json-view--edit",onClick:()=>{P?(D(!0),setTimeout(()=>{var V;return(V=A.current)===null||V===void 0?void 0:V.focus()})):O()}}),!x&&!N&&sv(p)&&iv(o)&&r&&S.jsx(uv,{className:"json-view--edit",onClick:()=>F(!0)}),typeof w=="function"?S.jsx(w,{node:e}):null]});return Array.isArray(e)?S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"["}),H,x?S.jsx("button",Object.assign({onClick:()=>R(!1),className:"jv-button"},{children:"..."})):S.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((V,U)=>S.jsx(_h,{indexOrName:U,value:V,depth:t,parent:e,deleteHandle:_,editHandle:M,parentPath:E},String(n)+String(U)))})),S.jsx("span",{children:"]"}),x&&$s(y,t,x)&&S.jsxs("span",Object.assign({onClick:()=>R(!1),className:"jv-size"},{children:[Qi(e)," Items"]}))]}):P?S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"{"}),H,x?S.jsx("button",Object.assign({onClick:()=>R(!1),className:"jv-button"},{children:"..."})):S.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([V,U])=>S.jsx(_h,{indexOrName:V,value:U,depth:t,parent:e,deleteHandle:_,editHandle:M,parentPath:E},String(n)+String(V)))})),S.jsx("span",{children:"}"}),x&&$s(y,t,x)&&S.jsxs("span",Object.assign({onClick:()=>R(!1),className:"jv-size"},{children:[Qi(e)," Items"]}))]}):S.jsx("span",{children:String(e)})}const f9=Ht.forwardRef(({str:e,className:t,ctrlClick:n},r)=>{let{collapseStringMode:o,collapseStringsAfterLength:l,customizeCollapseStringUI:s}=d.useContext(al);const[i,a]=d.useState(!0),u=d.useRef(null);l=l>0?l:0;const c=e.replace(/\s+/g," "),f=typeof s=="function"?s(c,i):typeof s=="string"?s:"...",p=v=>{var g;if((v.ctrlKey||v.metaKey)&&n)n(v);else{const C=window.getSelection();if(C&&C.anchorOffset!==C.focusOffset&&((g=C.anchorNode)===null||g===void 0?void 0:g.parentElement)===u.current)return;a(!i)}};if(e.length<=l)return S.jsxs("span",Object.assign({ref:u,className:t,onClick:n},{children:['"',e,'"']}));if(o==="address")return e.length<=10?S.jsxs("span",Object.assign({ref:u,className:t,onClick:n},{children:['"',e,'"']})):S.jsxs("span",Object.assign({ref:u,onClick:p,className:t+" cursor-pointer"},{children:['"',i?[c.slice(0,6),f,c.slice(-4)]:e,'"']}));if(o==="directly")return S.jsxs("span",Object.assign({ref:u,onClick:p,className:t+" cursor-pointer"},{children:['"',i?[c.slice(0,l),f]:e,'"']}));if(o==="word"){let v=l,g=l+1,C=c,k=1;for(;;){if(/\W/.test(e[v])){C=e.slice(0,v);break}if(/\W/.test(e[g])){C=e.slice(0,g);break}if(k===6){C=e.slice(0,l);break}k++,v--,g++}return S.jsxs("span",Object.assign({ref:u,onClick:p,className:t+" cursor-pointer"},{children:['"',i?[C,f]:e,'"']}))}return S.jsxs("span",Object.assign({ref:u,className:t},{children:['"',e,'"']}))});var yC;function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nh.apply(this,arguments)}var p9=function(t){return d.createElement("svg",Nh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),yC||(yC=d.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"})))},bC,CC;function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zh.apply(this,arguments)}var h9=function(t){return d.createElement("svg",zh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),bC||(bC=d.createElement("path",{fill:"currentColor",d:"M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"})),CC||(CC=d.createElement("path",{fill:"currentColor",d:"M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"})))};function QP({node:e,depth:t,deleteHandle:n,indexOrName:r,parent:o,editHandle:l,parentPath:s}){const{collapseStringsAfterLength:i,enableClipboard:a,editable:u,src:c,onDelete:f,onChange:p,customizeNode:v,matchesURL:g,urlRegExp:C,EditComponent:k,DoneComponent:b,CancelComponent:m,CustomOperation:y}=d.useContext(al);let w;if(typeof v=="function"&&(w=lv(v,[{node:e,depth:t,indexOrName:r}])),w){if(d.isValidElement(w))return w;if(o9(w)){const E=w;return S.jsx(E,{node:e,depth:t,indexOrName:r})}}if(Array.isArray(e)||il(e))return S.jsx(d9,{parent:o,node:e,depth:t,indexOrName:r,deleteHandle:n,parentPath:s,customOptions:typeof w=="object"?w:void 0});{const E=typeof e,P=typeof r<"u"?[...s,String(r)]:s,[x,I]=d.useState(!1),[R,M]=d.useState(!1),_=d.useRef(null),L=()=>{I(!0),setTimeout(()=>{var V,U;(V=window.getSelection())===null||V===void 0||V.selectAllChildren(_.current),(U=_.current)===null||U===void 0||U.focus()})},F=d.useCallback(()=>{let V=_.current.innerText;try{const U=JSON.parse(V);l&&l(r,U,e,s)}catch{const q=s9(E,V);l&&l(r,q,e,s)}I(!1)},[l,r,e,s,E]),$=()=>{I(!1),M(!1)},T=()=>{M(!1),n&&n(r,s),f&&f({value:e,depth:t,src:c,indexOrName:r,parentType:Array.isArray(o)?"array":"object",parentPath:s}),p&&p({depth:t,src:c,indexOrName:r,parentType:Array.isArray(o)?"array":"object",type:"delete",parentPath:s})},D=d.useCallback(V=>{V.key==="Enter"?(V.preventDefault(),F()):V.key==="Escape"&&$()},[F]),A=x||R,O=!A&&oC(u)&&lC(w)&&l?V=>{(V.ctrlKey||V.metaKey)&&L()}:void 0,j=S.jsxs(S.Fragment,{children:[A&&(typeof b=="function"?S.jsx(b,{className:"json-view--edit",style:{display:"inline-block"},onClick:R?T:F}):S.jsx(cv,{className:"json-view--edit",style:{display:"inline-block"},onClick:R?T:F})),A&&(typeof m=="function"?S.jsx(m,{className:"json-view--edit",style:{display:"inline-block"},onClick:$}):S.jsx(dv,{className:"json-view--edit",style:{display:"inline-block"},onClick:$})),!A&&a&&uf(w)&&S.jsx(cf,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:o,parentPath:s,currentPath:P}}),!A&&g&&E==="string"&&C.test(e)&&l9(w)&&S.jsx("a",Object.assign({href:e,target:"_blank",className:"json-view--link"},{children:S.jsx(h9,{})})),!A&&oC(u)&&lC(w)&&l&&(typeof k=="function"?S.jsx(k,{className:"json-view--edit",onClick:L}):S.jsx(p9,{className:"json-view--edit",onClick:L})),!A&&sv(u)&&iv(w)&&n&&S.jsx(uv,{className:"json-view--edit",onClick:()=>M(!0)}),typeof y=="function"?S.jsx(y,{node:e}):null]});let N="json-view--string";switch(E){case"number":case"bigint":N="json-view--number";break;case"boolean":N="json-view--boolean";break;case"object":N="json-view--null";break}typeof(w==null?void 0:w.className)=="string"&&(N+=" "+w.className),R&&(N+=" json-view--deleting");let B=String(e);E==="bigint"&&(B+="n");const H=d.useMemo(()=>S.jsx("span",{contentEditable:!0,className:N,dangerouslySetInnerHTML:{__html:E==="string"?`"${B}"`:B},ref:_,onKeyDown:D}),[B,E,D]);return E==="string"?S.jsxs(S.Fragment,{children:[x?H:e.length>i?S.jsx(f9,{str:e,ref:_,className:N,ctrlClick:O}):S.jsxs("span",Object.assign({className:N,onClick:O},{children:['"',B,'"']})),j]}):S.jsxs(S.Fragment,{children:[x?H:S.jsx("span",Object.assign({className:N,onClick:O},{children:B})),j]})}}const XP=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,al=d.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,onCollapse:void 0,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,displayArrayIndex:!0,matchesURL:!1,urlRegExp:XP,ignoreLargeArray:!1,CopyComponent:void 0,CopiedComponent:void 0,EditComponent:void 0,CancelComponent:void 0,DoneComponent:void 0,CustomOperation:void 0});function m9({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",customizeCollapseStringUI:r,collapseObjectsAfterLength:o=99,collapsed:l,onCollapse:s,enableClipboard:i=!0,editable:a=!1,onEdit:u,onDelete:c,onAdd:f,onChange:p,dark:v=!1,theme:g="default",customizeNode:C,customizeCopy:k=$=>n9($),displaySize:b,displayArrayIndex:m=!0,style:y,className:w,matchesURL:E=!1,urlRegExp:P=XP,ignoreLargeArray:x=!1,CopyComponent:I,CopiedComponent:R,EditComponent:M,CancelComponent:_,DoneComponent:L,CustomOperation:F}){const[$,T]=d.useState(0),D=d.useCallback(()=>T(j=>++j),[]),[A,O]=d.useState(e);return d.useEffect(()=>O(e),[e]),S.jsx(al.Provider,Object.assign({value:{src:A,collapseStringsAfterLength:t,collapseStringMode:n,customizeCollapseStringUI:r,collapseObjectsAfterLength:o,collapsed:l,onCollapse:s,enableClipboard:i,editable:a,onEdit:u,onDelete:c,onAdd:f,onChange:p,forceUpdate:D,customizeNode:C,customizeCopy:k,displaySize:b,displayArrayIndex:m,matchesURL:E,urlRegExp:P,ignoreLargeArray:x,CopyComponent:I,CopiedComponent:R,EditComponent:M,CancelComponent:_,DoneComponent:L,CustomOperation:F}},{children:S.jsx("code",Object.assign({className:"json-view"+(v?" dark":"")+(g&&g!=="default"?" json-view_"+g:"")+(w?" "+w:""),style:y},{children:S.jsx(QP,{node:A,depth:1,editHandle:(j,N,B,H)=>{O(N),u&&u({newValue:N,oldValue:B,depth:1,src:A,indexOrName:j,parentType:null,parentPath:H}),p&&p({type:"edit",depth:1,src:A,indexOrName:j,parentType:null,parentPath:H})},deleteHandle:(j,N)=>{O(void 0),c&&c({value:A,depth:1,src:A,indexOrName:j,parentType:null,parentPath:N}),p&&p({depth:1,src:A,indexOrName:j,parentType:null,type:"delete",parentPath:N})},parentPath:[]})}))}))}const ZP=d.createContext(null);function g9(){const[e,t]=d.useState(null);return d.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function v9(e){const{children:t,value:n}=e,r=g9(),o=d.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return S.jsx(ZP.Provider,{value:o,children:t})}function JP(){return d.useContext(ZP)}function ek(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function tk(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const y9=["children"],b9=d.forwardRef(function(t,n){const{children:r}=t,o=K(t,y9),l=JP();if(l===null)throw new TypeError("No TabContext provided");const s=d.Children.map(r,i=>d.isValidElement(i)?d.cloneElement(i,{"aria-controls":ek(l,i.props.value),id:tk(l,i.props.value)}):null);return S.jsx(CN,h({},o,{ref:n,value:l.value,children:s}))});function C9(e){return _e("MuiTabPanel",e)}$e("MuiTabPanel",["root"]);const x9=["children","className","value"],w9=e=>{const{classes:t}=e;return de({root:["root"]},C9,t)},S9=Y("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),xC=d.forwardRef(function(t,n){const r=z1({props:t,name:"MuiTabPanel"}),{children:o,className:l,value:s}=r,i=K(r,x9),a=h({},r),u=w9(a),c=JP();if(c===null)throw new TypeError("No TabContext provided");const f=ek(c,s),p=tk(c,s);return S.jsx(S9,h({"aria-labelledby":p,className:Z(u.root,l),hidden:s!==c.value,id:f,ref:n,role:"tabpanel",ownerState:a},i,{children:s===c.value&&o}))});var fv={},P9=bo;Object.defineProperty(fv,"__esModule",{value:!0});var nk=fv.default=void 0,k9=P9(Vl()),I9=S;nk=fv.default=(0,k9.default)((0,I9.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var pv={},E9=bo;Object.defineProperty(pv,"__esModule",{value:!0});var rk=pv.default=void 0,M9=E9(Vl()),R9=S;rk=pv.default=(0,M9.default)((0,R9.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var hv={},T9=bo;Object.defineProperty(hv,"__esModule",{value:!0});var ok=hv.default=void 0,$9=T9(Vl()),O9=S;ok=hv.default=(0,$9.default)((0,O9.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");var mv={},F9=bo;Object.defineProperty(mv,"__esModule",{value:!0});var Hh=mv.default=void 0,_9=F9(Vl()),D9=S;Hh=mv.default=(0,_9.default)((0,D9.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var gv={},j9=bo;Object.defineProperty(gv,"__esModule",{value:!0});var lk=gv.default=void 0,L9=j9(Vl()),A9=S;lk=gv.default=(0,L9.default)((0,A9.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"DoDisturbOn");const N9=5e3,wC="$$colyseus$type",SC="$$colyseus$data";class z9 extends d.Component{constructor(){super(...arguments),this.state={roomId:void 0,state:{},clients:[],maxClients:0,stateSize:0,locked:!1,currentTab:"1",sendDialogTitle:"",sendDialogOpen:!1,sendToClient:void 0,sendType:localStorage.getItem(wC)||"message_type",sendData:JSON.parse(localStorage.getItem(SC)||"{}")},this.updateSendType=t=>{const n=t.target.value;localStorage.setItem(wC,n),this.setState({sendType:n})},this.updateSendData=t=>{localStorage.setItem(SC,JSON.stringify(t)),this.state.sendData=t},this.handleCloseSend=()=>{this.setState({sendDialogOpen:!1})},this.handleSend=()=>{(this.state.sendToClient?this.roomCall("_sendMessageToClient",this.state.sendToClient,this.state.sendType,this.state.sendData):this.roomCall("broadcast",this.state.sendType,this.state.sendData)).then(()=>this.handleCloseSend())},this.handleTabChange=(t,n)=>{this.setState({currentTab:n})}}componentDidMount(){this.fetchRoomData()}fetchRoomData(){const t=this.props.match.params.roomId;TN(t).then(n=>this.setState(n)).catch(n=>console.error(n)),clearInterval(this.updateDataInterval),this.updateDataInterval=window.setInterval(()=>this.fetchRoomData(),N9)}roomCall(t,...n){const r=this.props.match.params.roomId;return FS(r,t,...n).then(o=>console.log(o)).catch(o=>console.error(o))}componentWillUnmount(){clearInterval(this.updateDataInterval)}sendMessage(t){const n=t||void 0;let r=t?`Send message to client (${t})`:"Broadcast message to all clients";this.setState({sendToClient:n,sendDialogTitle:r,sendDialogOpen:!0})}disconnectClient(t){this.roomCall("_forceClientDisconnect",t).then(()=>this.fetchRoomData())}disposeRoom(){this.roomCall("disconnect").then(()=>{this.props.history.push("/")})}goBack(){window.history.back()}render(){const t=[{field:"sessionId",headerName:"sessionId",flex:1},{field:"elapsedTime",headerName:"elapsedTime",flex:1,valueFormatter:UP.elapsedTime,sortComparator:Oa},{field:"actions",headerName:"actions",flex:1,renderCell:r=>S.jsxs(S.Fragment,{children:[S.jsx(no,{variant:"text",startIcon:S.jsx(Hh,{}),onClick:this.sendMessage.bind(this,r.id),children:"Send"}),S.jsx(no,{variant:"text",color:"error",startIcon:S.jsx(lk,{}),onClick:this.disconnectClient.bind(this,r.id),children:"Disconnect"})]})}],n=this.state.clients.map(r=>({id:r.sessionId,sessionId:r.sessionId,elapsedTime:r.elapsedTime,actions:r.sessionId}));return S.jsxs("div",{children:[S.jsx(W1,{position:"static",children:S.jsxs(Og,{children:[S.jsx(so,{"aria-label":"delete",onClick:this.goBack.bind(this),children:S.jsx(nk,{})}),S.jsx(er,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Room "+this.state.roomId})]})}),S.jsx(MS,{component:kr,children:S.jsx(ES,{"aria-label":"simple table",children:S.jsx(RS,{children:S.jsxs(OS,{children:[S.jsxs(Zn,{align:"center",children:[this.state.locked?S.jsx(rk,{}):S.jsx(ok,{}),this.state.locked?"Locked":"Unlocked"]}),S.jsxs(Zn,{align:"center",children:["Clients",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:`${this.state.clients.length}${this.state.maxClients?" / "+this.state.maxClients:""}`})]}),S.jsxs(Zn,{align:"center",children:["State Size",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:`${this.state.stateSize} bytes`})]}),S.jsx(Zn,{align:"center",children:S.jsx(no,{variant:"text",startIcon:S.jsx(Hh,{}),onClick:this.sendMessage.bind(this,void 0),children:"Broadcast"})}),S.jsx(Zn,{align:"center",children:S.jsx(no,{variant:"text",color:"error",startIcon:S.jsx(ov,{}),onClick:this.disposeRoom.bind(this),children:"Dispose room"})})]})})})}),S.jsxs(v9,{value:this.state.currentTab,children:[S.jsx(nD,{sx:{borderBottom:1,borderColor:"divider"},children:S.jsxs(b9,{onChange:this.handleTabChange,"aria-label":"lab API tabs example",variant:"fullWidth",children:[S.jsx(u0,{label:"Clients",value:"1"}),S.jsx(u0,{label:"State",value:"2"})]})}),S.jsx(xC,{value:"1",children:S.jsx(VP,{columns:t,rows:n,sx:{overflow:"hidden"},disableRowSelectionOnClick:!0,hideFooter:!0,hideFooterPagination:!0,hideFooterSelectedRowCount:!0})}),S.jsx(xC,{value:"2",children:S.jsx(m9,{src:this.state.state,theme:"default"})})]}),S.jsxs(yj,{open:this.state.sendDialogOpen,onClose:this.handleCloseSend,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[S.jsx(_j,{id:"alert-dialog-title",children:this.state.sendDialogTitle}),S.jsxs(Tj,{children:[S.jsx("h2",{children:"Message type:"}),S.jsx("input",{type:"text",value:this.state.sendType,onChange:this.updateSendType}),S.jsx("h2",{children:"Message payload"}),S.jsx(q7.JsonEditor,{value:this.state.sendData,propagateChanges:this.updateSendData})]}),S.jsxs(Sj,{children:[S.jsx(no,{variant:"text",color:"error",onClick:this.handleCloseSend,children:"Cancel"}),S.jsx(no,{variant:"text",onClick:this.handleSend,children:"Send"})]})]})]})}}const H9=DE();function B9(){const e=zR("(prefers-color-scheme: dark)"),t=Ht.useMemo(()=>hg({palette:{mode:e?"dark":"light"}}),[e]);return S.jsx(id,{history:H9,children:S.jsxs(j$,{theme:t,children:[S.jsx(GD,{}),S.jsx(EN,{}),S.jsx(ha,{exact:!0,path:"/",component:K7}),S.jsx(ha,{path:"/room/:roomId",component:z9})]})})}jw(document.getElementById("app")).render(S.jsx(B9,{}));
248
- //# sourceMappingURL=index-QSjIqHdx.js.map
247
+ */(function(i){var a=function(v){return f(v===!0,!1,arguments)},u="merge";a.recursive=function(v){return f(v===!0,!0,arguments)},a.clone=function(v){var g=v,C=p(v),k,b;if(C==="array")for(g=[],b=v.length,k=0;k<b;++k)g[k]=a.clone(v[k]);else if(C==="object"){g={};for(k in v)g[k]=a.clone(v[k])}return g};function c(v,g){if(p(v)!=="object")return g;for(var C in g)p(v[C])==="object"&&p(g[C])==="object"?v[C]=c(v[C],g[C]):v[C]=g[C];return v}function f(v,g,C){var k=C[0],b=C.length;(v||p(k)!=="object")&&(k={});for(var m=0;m<b;++m){var y=C[m],w=p(y);if(w==="object")for(var E in y){var P=v?a.clone(y[E]):y[E];g?k[E]=c(k[E],P):k[E]=P}}return k}function p(v){return{}.toString.call(v).slice(8,-1).toLowerCase()}i?s.exports=a:window[u]=a})(typeof s=="object"&&s&&typeof s.exports=="object"&&s.exports)}).call(o,l(16)(r))},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function y(w,E){for(var P=0;P<E.length;P++){var x=E[P];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(w,x.key,x)}}return function(w,E,P){return E&&y(w.prototype,E),P&&y(w,P),w}}(),i=l(1),a=g(i),u=l(2),c=g(u),f=l(3),p=l(4),v=g(p);function g(y){return y&&y.__esModule?y:{default:y}}function C(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function k(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function b(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var m=function(y){b(w,y);function w(){var E,P,x,I;C(this,w);for(var R=arguments.length,M=Array(R),_=0;_<R;_++)M[_]=arguments[_];return I=(P=(x=k(this,(E=w.__proto__||Object.getPrototypeOf(w)).call.apply(E,[this].concat(M))),x),x.addItem=function(L){var F=x.props.doc;F.push(L[0]),x.props.propagateChanges("add",x.props.jkey,F)},x.propagateChanges=function(L,F,$){var T=x.props.doc;switch(L){case"delete":T.splice(F,1);break;case"add":case"update":default:T[F]=$}x.props.propagateChanges("update",x.props.jkey,T)},P),k(x,I)}return s(w,[{key:"addButtonSetup",value:function(){return[{type:"String",placeholder:"value",multiple:(0,f.get_options)(this.context.setup.structure,this.props.level)}]}},{key:"getStyle",value:function(){return this.context.styling.array}},{key:"getRowStyle",value:function(){return this.context.styling["array-row"]}},{key:"render",value:function(){var P=this.props.doc.length-1,x=this.props.doc.map(function(I,R){var M=this.props.jkey+R,_=R==P;return a.default.createElement("div",{className:"ArrayRow",style:this.getRowStyle()},(0,f.render_item)(M,R,I,this.propagateChanges,_,this.props.level))},this);return a.default.createElement("div",{className:"ArrayItem",style:this.getStyle()},this.context.setup.tableLike?null:"[",x,a.default.createElement("div",{className:"ArrayRow",style:this.getRowStyle()},a.default.createElement(v.default,{onDone:this.addItem,setup:this.addButtonSetup()})),this.context.setup.tableLike?null:"]")}}]),w}(i.Component);m.contextTypes={styling:c.default.object,setup:c.default.object},m.propTypes={jkey:c.default.string.isRequired,doc:c.default.array.isRequired,level:c.default.number.isRequired,propagateChanges:c.default.func.isRequired},o.default=m},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function P(x,I){for(var R=0;R<I.length;R++){var M=I[R];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(x,M.key,M)}}return function(x,I,R){return I&&P(x.prototype,I),R&&P(x,R),x}}(),i=l(1),a=C(i),u=l(2),c=C(u),f=l(7),p=C(f),v=l(3),g=l(4);C(g);function C(P){return P&&P.__esModule?P:{default:P}}function k(P,x){if(!(P instanceof x))throw new TypeError("Cannot call a class as a function")}function b(P,x){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:P}function m(P,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);P.prototype=Object.create(x&&x.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(P,x):P.__proto__=x)}var y={root:{clear:"left"},array:{display:"inline-table"},object:{display:"inline-table"},"object-row":{display:"block",marginLeft:1},"array-row":{display:"block",marginLeft:1},value:{display:"inline-block",minWidth:10,marginLeft:.1},key:{fontWeight:"bold"},string:{color:"green"},number:{color:"blue"},undefined:{color:"violet"},boolean:{color:"red"},null:{color:"firebrick"},"add-button":{display:"inline-block"},"save-button":{display:"inline-block"},"cancel-button":{display:"inline-block"},"delete-button":{float:"right",marginLeft:.5,display:"inline-block"},"add-group":{display:"inline-flex"},"add-input":{display:"inline-block"}};function w(P){var x=P.border||"1px solid #414141",I=P.tableLike?{root:{display:"table",border:x,borderCollapse:"collapse"},array:{display:"table-cell",border:x},object:{display:"table-cell",border:x},"array-row":{display:"table-cell",border:x,marginLeft:0},"object-row":{display:"table-row",border:x,marginLeft:0},key:{display:"table-cell",border:x},value:{display:"table-cell",marginLeft:0},"add-button":{display:"table-cell"}}:{};return(0,p.default)((0,p.default)(y,I),P.styling)}var E=function(P){m(x,P);function x(I){k(this,x);var R=b(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,I));return R.propagateChanges=function(M,_,L){R.setState({value:L}),R.props.propagateChanges&&R.props.propagateChanges(L)},R.state={defaultKey:I.defaultKey||"json.",defaultJsonKey:I.defaultJsonKey||"root",styling:w(I)},R}return s(x,[{key:"getChildContext",value:function(){return{styling:this.state.styling,setup:{tableLike:this.props.tableLike,structure:this.props.structure||{}}}}},{key:"getStyle",value:function(){return this.state.styling.root}},{key:"render",value:function(){var R=this.props.value||this.props.defaultValue||{},M=(0,v.render_item)(this.state.defaultKey,this.state.defaultJsonKey,R,this.propagateChanges,!1,0);return a.default.createElement("div",{className:"JsonEditor",style:this.getStyle()},M)}}]),x}(i.Component);E.propTypes={defaultValue:c.default.oneOfType([c.default.array,c.default.object]),value:c.default.oneOfType([c.default.array,c.default.object]),structure:c.default.object,defaultKey:c.default.string,defaultJsonKey:c.default.string,propagateChanges:c.default.func.isRequired},E.childContextTypes={styling:c.default.object,setup:c.default.object},o.default=E},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function b(m,y){for(var w=0;w<y.length;w++){var E=y[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,y,w){return y&&b(m.prototype,y),w&&b(m,w),m}}(),i=l(1);p(i);var a=l(2),u=p(a),c=l(6),f=p(c);function p(b){return b&&b.__esModule?b:{default:b}}function v(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function g(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function C(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var k=function(b){C(m,b);function m(){return v(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return s(m,[{key:"value",value:function(){return this.props.jkey}},{key:"getClass",value:function(){return"key"}},{key:"getSuffix",value:function(){return":"}},{key:"editSettings",value:function(){return{type:"string",defaultValue:this.props.jkey,multiple:!1}}},{key:"propagateChanges",value:function(w){this.setState({editing:!1}),this.props.propagateKeyChange&&this.props.jkey!=w&&this.props.propagateKeyChange("update",this.props.jkey,w)}},{key:"propagateDelete",value:function(){this.props.propagateKeyChange&&this.props.propagateKeyChange("delete",this.props.jkey)}}]),m}(f.default);k.propTypes={jkey:u.default.oneOfType([u.default.string,u.default.number]).isRequired,propagateKeyChange:u.default.func.isRequired},o.default=k},function(r,o,l){Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function E(P,x){for(var I=0;I<x.length;I++){var R=x[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(P,R.key,R)}}return function(P,x,I){return x&&E(P.prototype,x),I&&E(P,I),P}}(),i=l(1),a=k(i),u=l(2),c=k(u),f=l(4),p=k(f),v=l(3),g=l(10),C=k(g);function k(E){return E&&E.__esModule?E:{default:E}}function b(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")}function m(E,P){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:E}function y(E,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);E.prototype=Object.create(P&&P.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(E,P):E.__proto__=P)}var w=function(E){y(P,E);function P(){var x,I,R,M;b(this,P);for(var _=arguments.length,L=Array(_),F=0;F<_;F++)L[F]=arguments[F];return M=(I=(R=m(this,(x=P.__proto__||Object.getPrototypeOf(P)).call.apply(x,[this].concat(L))),R),R.addItem=function($){var T=R.props.doc;T[$[0]]=$[1],R.props.propagateChanges("add",R.props.jkey,T)},R.propagateChanges=function($,T,D){var A=R.props.doc;switch($){case"delete":delete A[T];break;case"add":case"update":default:A[T]=D}R.props.propagateChanges("update",R.props.jkey,A)},R.propagateKeyChange=function($,T,D){var A=R.props.doc[T],O=R.props.doc;switch($){case"delete":break;case"add":case"update":default:O[D]=A}delete O[T],R.props.propagateChanges("update",R.props.jkey,O)},I),m(R,M)}return s(P,[{key:"addButtonSetup",value:function(){return[{type:"text",placeholder:"key",multiple:[]},{type:"text",placeholder:"value",multiple:(0,v.get_options)(this.context.setup.structure,this.props.level)}]}},{key:"getStyle",value:function(){return this.context.styling.object}},{key:"getRowStyle",value:function(){return this.context.styling["object-row"]}},{key:"render",value:function(){var I=Object.keys(this.props.doc),R=I.map(function(M,_){var L=this.props.jkey+"."+M+_,F=_==I.length-1;return a.default.createElement("div",{key:this.props.jkey+".r"+_,className:"ObjectRow",style:this.getRowStyle()},a.default.createElement(C.default,{key:this.props.jkey+".k"+_,jkey:M,propagateKeyChange:this.propagateKeyChange}),(0,v.render_item)(L,M,this.props.doc[M],this.propagateChanges,F,this.props.level))},this);return a.default.createElement("div",{className:"ObjectItem",style:this.getStyle()},this.context.setup.tableLike?null:"{",R,a.default.createElement(p.default,{onDone:this.addItem,setup:this.addButtonSetup()}),this.context.setup.tableLike?null:"}")}}]),P}(i.Component);w.contextTypes={styling:c.default.object,setup:c.default.object},w.propTypes={jkey:c.default.string.isRequired,doc:c.default.object.isRequired,level:c.default.number.isRequired,propagateChanges:c.default.func.isRequired},o.default=w},function(r,o,l){var s=l(14),i=l(15),a=l(13);r.exports=function(){function u(p,v,g,C,k,b){b!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}u.isRequired=u;function c(){return u}var f={array:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:c,element:u,instanceOf:c,node:u,objectOf:c,oneOf:c,oneOfType:c,shape:c};return f.checkPropTypes=s,f.PropTypes=f,f}},function(r,o){var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";r.exports=l},function(r,o){function l(i){return function(){return i}}var s=function(){};s.thatReturns=l,s.thatReturnsFalse=l(!1),s.thatReturnsTrue=l(!0),s.thatReturnsNull=l(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(i){return i},r.exports=s},function(r,o,l){function s(i,a,u,c,f,p,v,g){if(!i){var C;if(a===void 0)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[u,c,f,p,v,g],b=0;C=new Error(a.replace(/%s/g,function(){return k[b++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}}r.exports=s},function(r,o){r.exports=function(l){return l.webpackPolyfill||(l.deprecate=function(){},l.paths=[],l.children=[],l.webpackPolyfill=1),l}}])})})(WP);var q7=WP.exports;function Y7(e,t,n,r){function o(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function i(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?l(c.value):o(c.value).then(i,a)}u((r=r.apply(e,[])).next())})}var Q7=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},X7=Q7,tC={"text/plain":"Text","text/html":"Url",default:"Text"},Z7="Copy to clipboard: #{key}, Enter";function J7(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function e9(e,t){var n,r,o,l,s,i,a=!1;t||(t={}),n=t.debug||!1;try{o=X7(),l=document.createRange(),s=document.getSelection(),i=document.createElement("span"),i.textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=tC[t.format]||tC.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(i),l.selectNodeContents(i),s.addRange(l);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");a=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=J7("message"in t?t.message:Z7),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(l):s.removeAllRanges()),i&&document.body.removeChild(i),o()}return a}var t9=e9;function il(e){return Object.prototype.toString.call(e)==="[object Object]"}function Qi(e){return Array.isArray(e)?e.length:il(e)?Object.keys(e).length:0}function n9(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,r)=>{switch(typeof r){case"bigint":return String(r)+"n";case"number":case"boolean":case"object":case"string":return r;default:return String(r)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function r9(e){return Y7(this,void 0,void 0,function*(){try{yield navigator.clipboard.writeText(e)}catch{t9(e)}})}function nC(e,t,n,r,o,l){if(l&&l.collapsed!==void 0)return!!l.collapsed;if(typeof r=="boolean")return r;if(typeof r=="number"&&t>r)return!0;const s=Qi(e);if(typeof r=="function"){const i=lv(r,[{node:e,depth:t,indexOrName:n,size:s}]);if(typeof i=="boolean")return i}return!!(Array.isArray(e)&&s>o||il(e)&&s>o)}function rC(e,t,n,r,o,l){if(l&&l.collapsed!==void 0)return!!l.collapsed;if(typeof r=="boolean")return r;if(typeof r=="number"&&t>r)return!0;const s=Math.ceil(e.length/100);if(typeof r=="function"){const i=lv(r,[{node:e,depth:t,indexOrName:n,size:s}]);if(typeof i=="boolean")return i}return!!(Array.isArray(e)&&s>o||il(e)&&s>o)}function $s(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function lv(e,t){try{return e(...t)}catch(n){reportError(n)}}function KP(e){if(e===!0||il(e)&&e.add===!0)return!0}function oC(e){if(e===!0||il(e)&&e.edit===!0)return!0}function sv(e){if(e===!0||il(e)&&e.delete===!0)return!0}function o9(e){return typeof e=="function"}function qP(e){return!e||e.add===void 0||!!e.add}function lC(e){return!e||e.edit===void 0||!!e.edit}function iv(e){return!e||e.delete===void 0||!!e.delete}function uf(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function l9(e){return!e||e.matchesURL===void 0||!!e.matchesURL}function s9(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var sC;function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$h.apply(this,arguments)}var av=function(t){return d.createElement("svg",$h({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),sC||(sC=d.createElement("path",{fill:"currentColor",d:"M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"})))},iC;function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oh.apply(this,arguments)}var i9=function(t){return d.createElement("svg",Oh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),iC||(iC=d.createElement("path",{fill:"currentColor",d:"M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"})))},aC,uC;function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fh.apply(this,arguments)}var a9=function(t){return d.createElement("svg",Fh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),aC||(aC=d.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.755 3.755 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"})),uC||(uC=d.createElement("path",{fill:"#14C786",d:"M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"})))};function cf({node:e,nodeMeta:t}){const{customizeCopy:n,CopyComponent:r,CopiedComponent:o}=d.useContext(al),[l,s]=d.useState(!1),i=a=>{a.stopPropagation();const u=n(e,t);typeof u=="string"&&u&&r9(u),s(!0),setTimeout(()=>s(!1),3e3)};return l?typeof o=="function"?S.jsx(o,{className:"json-view--copy",style:{display:"inline-block"}}):S.jsx(a9,{className:"json-view--copy",style:{display:"inline-block"}}):typeof r=="function"?S.jsx(r,{onClick:i,className:"json-view--copy"}):S.jsx(i9,{onClick:i,className:"json-view--copy"})}function _h({indexOrName:e,value:t,depth:n,deleteHandle:r,editHandle:o,parent:l,parentPath:s}){const{displayArrayIndex:i}=d.useContext(al),a=Array.isArray(l);return S.jsxs("div",Object.assign({className:"json-view--pair"},{children:[!a||a&&i?S.jsxs(S.Fragment,{children:[S.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," "]}):S.jsx(S.Fragment,{}),S.jsx(QP,{node:t,depth:n+1,deleteHandle:(u,c)=>r(u,c),editHandle:(u,c,f,p)=>o(u,c,f,p),parent:l,indexOrName:e,parentPath:s})]}))}var cC,dC;function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(this,arguments)}var uv=function(t){return d.createElement("svg",Dh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),cC||(cC=d.createElement("path",{fill:"currentColor",d:"M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"})),dC||(dC=d.createElement("path",{fill:"#DA0000",d:"M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"})))},fC,pC;function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jh.apply(this,arguments)}var YP=function(t){return d.createElement("svg",jh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),fC||(fC=d.createElement("path",{fill:"currentColor",d:"M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"})),pC||(pC=d.createElement("path",{fill:"#14C786",d:"M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"})))},hC,mC;function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}var cv=function(t){return d.createElement("svg",Lh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),hC||(hC=d.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})),mC||(mC=d.createElement("path",{fill:"#14C786",d:"m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"})))},gC,vC;function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ah.apply(this,arguments)}var dv=function(t){return d.createElement("svg",Ah({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),gC||(gC=d.createElement("path",{fill:"#DA0000",d:"M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"})),vC||(vC=d.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})))};function u9({originNode:e,node:t,depth:n,index:r,deleteHandle:o,customOptions:l,startIndex:s,parent:i,parentPath:a}){const{enableClipboard:u,src:c,onEdit:f,onChange:p,forceUpdate:v,displaySize:g,CustomOperation:C}=d.useContext(al),k=[...a,String(r)],[b,m]=d.useState(!0),y=d.useCallback((P,x,I)=>{e[P]=x,f&&f({newValue:x,oldValue:I,depth:n,src:c,indexOrName:P,parentType:"array",parentPath:a}),p&&p({type:"edit",depth:n,src:c,indexOrName:P,parentType:"array",parentPath:a}),v()},[t,f,p,v]),w=P=>{e.splice(P,1),o&&o(P,a),v()},E=S.jsxs(S.Fragment,{children:[!b&&S.jsxs("span",Object.assign({onClick:()=>m(!0),className:"jv-size-chevron"},{children:[$s(g,n,b)&&S.jsxs("span",Object.assign({className:"jv-size"},{children:[Qi(t)," Items"]})),S.jsx(av,{className:"jv-chevron"})]})),!b&&u&&uf(l)&&S.jsx(cf,{node:t,nodeMeta:{depth:n,indexOrName:r,parent:i,parentPath:a,currentPath:k}}),typeof C=="function"?S.jsx(C,{node:t}):null]});return S.jsxs("div",{children:[S.jsx("span",{children:"["}),E,b?S.jsxs("button",Object.assign({onClick:()=>m(!1),className:"jv-button"},{children:[s," ... ",s+t.length-1]})):S.jsx("div",Object.assign({className:"jv-indent"},{children:t.map((P,x)=>S.jsx(_h,{indexOrName:x+s,value:P,depth:n,parent:t,deleteHandle:w,editHandle:y,parentPath:a},String(r)+String(x)))})),S.jsx("span",{children:"]"})]})}function c9({node:e,depth:t,deleteHandle:n,indexOrName:r,customOptions:o,parent:l,parentPath:s}){const i=typeof r<"u"?[...s,String(r)]:s,a=[];for(let T=0;T<e.length;T+=100)a.push(e.slice(T,T+100));const{collapsed:u,enableClipboard:c,collapseObjectsAfterLength:f,editable:p,onDelete:v,src:g,onAdd:C,CustomOperation:k,onChange:b,forceUpdate:m,displaySize:y}=d.useContext(al),[w,E]=d.useState(rC(e,t,r,u,f,o));d.useEffect(()=>{E(rC(e,t,r,u,f,o))},[u,f]);const[P,x]=d.useState(!1),I=()=>{x(!1),n&&n(r,s),v&&v({value:e,depth:t,src:g,indexOrName:r,parentType:"array",parentPath:s}),b&&b({type:"delete",depth:t,src:g,indexOrName:r,parentType:"array",parentPath:s})},[R,M]=d.useState(!1),_=()=>{const T=e;T.push(null),C&&C({indexOrName:T.length-1,depth:t,src:g,parentType:"array",parentPath:s}),b&&b({type:"add",indexOrName:T.length-1,depth:t,src:g,parentType:"array",parentPath:s}),m()},L=P||R,F=()=>{x(!1),M(!1)},$=S.jsxs(S.Fragment,{children:[!w&&!L&&S.jsxs("span",Object.assign({onClick:()=>E(!0),className:"jv-size-chevron"},{children:[$s(y,t,w)&&S.jsxs("span",Object.assign({className:"jv-size"},{children:[e.length," Items"]})),S.jsx(av,{className:"jv-chevron"})]})),L&&S.jsx(cv,{className:"json-view--edit",style:{display:"inline-block"},onClick:R?_:I}),L&&S.jsx(dv,{className:"json-view--edit",style:{display:"inline-block"},onClick:F}),!w&&!L&&c&&uf(o)&&S.jsx(cf,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:l,parentPath:s,currentPath:i}}),!w&&!L&&KP(p)&&qP(o)&&S.jsx(YP,{className:"json-view--edit",onClick:()=>{_()}}),!w&&!L&&sv(p)&&iv(o)&&n&&S.jsx(uv,{className:"json-view--edit",onClick:()=>x(!0)}),typeof k=="function"?S.jsx(k,{node:e}):null]});return S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"["}),$,w?S.jsx("button",Object.assign({onClick:()=>E(!1),className:"jv-button"},{children:"..."})):S.jsx("div",Object.assign({className:"jv-indent"},{children:a.map((T,D)=>S.jsx(u9,{originNode:e,node:T,depth:t,index:D,startIndex:D*100,deleteHandle:n,customOptions:o,parentPath:s},String(r)+String(D)))})),S.jsx("span",{children:"]"}),w&&$s(y,t,w)&&S.jsxs("span",Object.assign({onClick:()=>E(!1),className:"jv-size"},{children:[e.length," Items"]}))]})}function d9({node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:o,parent:l,parentPath:s}){const{collapsed:i,onCollapse:a,enableClipboard:u,ignoreLargeArray:c,collapseObjectsAfterLength:f,editable:p,onDelete:v,src:g,onAdd:C,onEdit:k,onChange:b,forceUpdate:m,displaySize:y,CustomOperation:w}=d.useContext(al),E=typeof n<"u"?[...s,String(n)]:s;if(!c&&Array.isArray(e)&&e.length>100)return S.jsx(c9,{node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:o,parentPath:E});const P=il(e),[x,I]=d.useState(nC(e,t,n,i,f,o)),R=V=>{a==null||a({isCollapsing:!V,node:e,depth:t,indexOrName:n}),I(V)};d.useEffect(()=>{R(nC(e,t,n,i,f,o))},[i,f]);const M=d.useCallback((V,U,q)=>{Array.isArray(e)?e[+V]=U:e&&(e[V]=U),k&&k({newValue:U,oldValue:q,depth:t,src:g,indexOrName:V,parentType:P?"object":"array",parentPath:E}),b&&b({type:"edit",depth:t,src:g,indexOrName:V,parentType:P?"object":"array",parentPath:E}),m()},[e,k,b,m]),_=V=>{Array.isArray(e)?e.splice(+V,1):e&&delete e[V],m()},[L,F]=d.useState(!1),$=()=>{F(!1),r&&r(n,E),v&&v({value:e,depth:t,src:g,indexOrName:n,parentType:P?"object":"array",parentPath:E}),b&&b({type:"delete",depth:t,src:g,indexOrName:n,parentType:P?"object":"array",parentPath:E})},[T,D]=d.useState(!1),A=d.useRef(null),O=()=>{var V;if(P){const U=(V=A.current)===null||V===void 0?void 0:V.value;U&&(e[U]=null,A.current&&(A.current.value=""),D(!1),C&&C({indexOrName:U,depth:t,src:g,parentType:"object",parentPath:E}),b&&b({type:"add",indexOrName:U,depth:t,src:g,parentType:"object",parentPath:E}))}else if(Array.isArray(e)){const U=e;U.push(null),C&&C({indexOrName:U.length-1,depth:t,src:g,parentType:"array",parentPath:E}),b&&b({type:"add",indexOrName:U.length-1,depth:t,src:g,parentType:"array",parentPath:E})}m()},j=V=>{V.key==="Enter"?(V.preventDefault(),O()):V.key==="Escape"&&B()},N=L||T,B=()=>{F(!1),D(!1)},H=S.jsxs(S.Fragment,{children:[!x&&!N&&S.jsxs("span",Object.assign({onClick:()=>R(!0),className:"jv-size-chevron"},{children:[$s(y,t,x)&&S.jsxs("span",Object.assign({className:"jv-size"},{children:[Qi(e)," Items"]})),S.jsx(av,{className:"jv-chevron"})]})),T&&P&&S.jsx("input",{className:"json-view--input",placeholder:"property",ref:A,onKeyDown:j}),N&&S.jsx(cv,{className:"json-view--edit",style:{display:"inline-block"},onClick:T?O:$}),N&&S.jsx(dv,{className:"json-view--edit",style:{display:"inline-block"},onClick:B}),!x&&!N&&u&&uf(o)&&S.jsx(cf,{node:e,nodeMeta:{depth:t,indexOrName:n,parent:l,parentPath:s,currentPath:E}}),!x&&!N&&KP(p)&&qP(o)&&S.jsx(YP,{className:"json-view--edit",onClick:()=>{P?(D(!0),setTimeout(()=>{var V;return(V=A.current)===null||V===void 0?void 0:V.focus()})):O()}}),!x&&!N&&sv(p)&&iv(o)&&r&&S.jsx(uv,{className:"json-view--edit",onClick:()=>F(!0)}),typeof w=="function"?S.jsx(w,{node:e}):null]});return Array.isArray(e)?S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"["}),H,x?S.jsx("button",Object.assign({onClick:()=>R(!1),className:"jv-button"},{children:"..."})):S.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((V,U)=>S.jsx(_h,{indexOrName:U,value:V,depth:t,parent:e,deleteHandle:_,editHandle:M,parentPath:E},String(n)+String(U)))})),S.jsx("span",{children:"]"}),x&&$s(y,t,x)&&S.jsxs("span",Object.assign({onClick:()=>R(!1),className:"jv-size"},{children:[Qi(e)," Items"]}))]}):P?S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"{"}),H,x?S.jsx("button",Object.assign({onClick:()=>R(!1),className:"jv-button"},{children:"..."})):S.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([V,U])=>S.jsx(_h,{indexOrName:V,value:U,depth:t,parent:e,deleteHandle:_,editHandle:M,parentPath:E},String(n)+String(V)))})),S.jsx("span",{children:"}"}),x&&$s(y,t,x)&&S.jsxs("span",Object.assign({onClick:()=>R(!1),className:"jv-size"},{children:[Qi(e)," Items"]}))]}):S.jsx("span",{children:String(e)})}const f9=Ht.forwardRef(({str:e,className:t,ctrlClick:n},r)=>{let{collapseStringMode:o,collapseStringsAfterLength:l,customizeCollapseStringUI:s}=d.useContext(al);const[i,a]=d.useState(!0),u=d.useRef(null);l=l>0?l:0;const c=e.replace(/\s+/g," "),f=typeof s=="function"?s(c,i):typeof s=="string"?s:"...",p=v=>{var g;if((v.ctrlKey||v.metaKey)&&n)n(v);else{const C=window.getSelection();if(C&&C.anchorOffset!==C.focusOffset&&((g=C.anchorNode)===null||g===void 0?void 0:g.parentElement)===u.current)return;a(!i)}};if(e.length<=l)return S.jsxs("span",Object.assign({ref:u,className:t,onClick:n},{children:['"',e,'"']}));if(o==="address")return e.length<=10?S.jsxs("span",Object.assign({ref:u,className:t,onClick:n},{children:['"',e,'"']})):S.jsxs("span",Object.assign({ref:u,onClick:p,className:t+" cursor-pointer"},{children:['"',i?[c.slice(0,6),f,c.slice(-4)]:e,'"']}));if(o==="directly")return S.jsxs("span",Object.assign({ref:u,onClick:p,className:t+" cursor-pointer"},{children:['"',i?[c.slice(0,l),f]:e,'"']}));if(o==="word"){let v=l,g=l+1,C=c,k=1;for(;;){if(/\W/.test(e[v])){C=e.slice(0,v);break}if(/\W/.test(e[g])){C=e.slice(0,g);break}if(k===6){C=e.slice(0,l);break}k++,v--,g++}return S.jsxs("span",Object.assign({ref:u,onClick:p,className:t+" cursor-pointer"},{children:['"',i?[C,f]:e,'"']}))}return S.jsxs("span",Object.assign({ref:u,className:t},{children:['"',e,'"']}))});var yC;function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nh.apply(this,arguments)}var p9=function(t){return d.createElement("svg",Nh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),yC||(yC=d.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"})))},bC,CC;function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zh.apply(this,arguments)}var h9=function(t){return d.createElement("svg",zh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),bC||(bC=d.createElement("path",{fill:"currentColor",d:"M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"})),CC||(CC=d.createElement("path",{fill:"currentColor",d:"M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"})))};function QP({node:e,depth:t,deleteHandle:n,indexOrName:r,parent:o,editHandle:l,parentPath:s}){const{collapseStringsAfterLength:i,enableClipboard:a,editable:u,src:c,onDelete:f,onChange:p,customizeNode:v,matchesURL:g,urlRegExp:C,EditComponent:k,DoneComponent:b,CancelComponent:m,CustomOperation:y}=d.useContext(al);let w;if(typeof v=="function"&&(w=lv(v,[{node:e,depth:t,indexOrName:r}])),w){if(d.isValidElement(w))return w;if(o9(w)){const E=w;return S.jsx(E,{node:e,depth:t,indexOrName:r})}}if(Array.isArray(e)||il(e))return S.jsx(d9,{parent:o,node:e,depth:t,indexOrName:r,deleteHandle:n,parentPath:s,customOptions:typeof w=="object"?w:void 0});{const E=typeof e,P=typeof r<"u"?[...s,String(r)]:s,[x,I]=d.useState(!1),[R,M]=d.useState(!1),_=d.useRef(null),L=()=>{I(!0),setTimeout(()=>{var V,U;(V=window.getSelection())===null||V===void 0||V.selectAllChildren(_.current),(U=_.current)===null||U===void 0||U.focus()})},F=d.useCallback(()=>{let V=_.current.innerText;try{const U=JSON.parse(V);l&&l(r,U,e,s)}catch{const q=s9(E,V);l&&l(r,q,e,s)}I(!1)},[l,r,e,s,E]),$=()=>{I(!1),M(!1)},T=()=>{M(!1),n&&n(r,s),f&&f({value:e,depth:t,src:c,indexOrName:r,parentType:Array.isArray(o)?"array":"object",parentPath:s}),p&&p({depth:t,src:c,indexOrName:r,parentType:Array.isArray(o)?"array":"object",type:"delete",parentPath:s})},D=d.useCallback(V=>{V.key==="Enter"?(V.preventDefault(),F()):V.key==="Escape"&&$()},[F]),A=x||R,O=!A&&oC(u)&&lC(w)&&l?V=>{(V.ctrlKey||V.metaKey)&&L()}:void 0,j=S.jsxs(S.Fragment,{children:[A&&(typeof b=="function"?S.jsx(b,{className:"json-view--edit",style:{display:"inline-block"},onClick:R?T:F}):S.jsx(cv,{className:"json-view--edit",style:{display:"inline-block"},onClick:R?T:F})),A&&(typeof m=="function"?S.jsx(m,{className:"json-view--edit",style:{display:"inline-block"},onClick:$}):S.jsx(dv,{className:"json-view--edit",style:{display:"inline-block"},onClick:$})),!A&&a&&uf(w)&&S.jsx(cf,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:o,parentPath:s,currentPath:P}}),!A&&g&&E==="string"&&C.test(e)&&l9(w)&&S.jsx("a",Object.assign({href:e,target:"_blank",className:"json-view--link"},{children:S.jsx(h9,{})})),!A&&oC(u)&&lC(w)&&l&&(typeof k=="function"?S.jsx(k,{className:"json-view--edit",onClick:L}):S.jsx(p9,{className:"json-view--edit",onClick:L})),!A&&sv(u)&&iv(w)&&n&&S.jsx(uv,{className:"json-view--edit",onClick:()=>M(!0)}),typeof y=="function"?S.jsx(y,{node:e}):null]});let N="json-view--string";switch(E){case"number":case"bigint":N="json-view--number";break;case"boolean":N="json-view--boolean";break;case"object":N="json-view--null";break}typeof(w==null?void 0:w.className)=="string"&&(N+=" "+w.className),R&&(N+=" json-view--deleting");let B=String(e);E==="bigint"&&(B+="n");const H=d.useMemo(()=>S.jsx("span",{contentEditable:!0,className:N,dangerouslySetInnerHTML:{__html:E==="string"?`"${B}"`:B},ref:_,onKeyDown:D}),[B,E,D]);return E==="string"?S.jsxs(S.Fragment,{children:[x?H:e.length>i?S.jsx(f9,{str:e,ref:_,className:N,ctrlClick:O}):S.jsxs("span",Object.assign({className:N,onClick:O},{children:['"',B,'"']})),j]}):S.jsxs(S.Fragment,{children:[x?H:S.jsx("span",Object.assign({className:N,onClick:O},{children:B})),j]})}}const XP=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,al=d.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,onCollapse:void 0,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,displayArrayIndex:!0,matchesURL:!1,urlRegExp:XP,ignoreLargeArray:!1,CopyComponent:void 0,CopiedComponent:void 0,EditComponent:void 0,CancelComponent:void 0,DoneComponent:void 0,CustomOperation:void 0});function m9({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",customizeCollapseStringUI:r,collapseObjectsAfterLength:o=99,collapsed:l,onCollapse:s,enableClipboard:i=!0,editable:a=!1,onEdit:u,onDelete:c,onAdd:f,onChange:p,dark:v=!1,theme:g="default",customizeNode:C,customizeCopy:k=$=>n9($),displaySize:b,displayArrayIndex:m=!0,style:y,className:w,matchesURL:E=!1,urlRegExp:P=XP,ignoreLargeArray:x=!1,CopyComponent:I,CopiedComponent:R,EditComponent:M,CancelComponent:_,DoneComponent:L,CustomOperation:F}){const[$,T]=d.useState(0),D=d.useCallback(()=>T(j=>++j),[]),[A,O]=d.useState(e);return d.useEffect(()=>O(e),[e]),S.jsx(al.Provider,Object.assign({value:{src:A,collapseStringsAfterLength:t,collapseStringMode:n,customizeCollapseStringUI:r,collapseObjectsAfterLength:o,collapsed:l,onCollapse:s,enableClipboard:i,editable:a,onEdit:u,onDelete:c,onAdd:f,onChange:p,forceUpdate:D,customizeNode:C,customizeCopy:k,displaySize:b,displayArrayIndex:m,matchesURL:E,urlRegExp:P,ignoreLargeArray:x,CopyComponent:I,CopiedComponent:R,EditComponent:M,CancelComponent:_,DoneComponent:L,CustomOperation:F}},{children:S.jsx("code",Object.assign({className:"json-view"+(v?" dark":"")+(g&&g!=="default"?" json-view_"+g:"")+(w?" "+w:""),style:y},{children:S.jsx(QP,{node:A,depth:1,editHandle:(j,N,B,H)=>{O(N),u&&u({newValue:N,oldValue:B,depth:1,src:A,indexOrName:j,parentType:null,parentPath:H}),p&&p({type:"edit",depth:1,src:A,indexOrName:j,parentType:null,parentPath:H})},deleteHandle:(j,N)=>{O(void 0),c&&c({value:A,depth:1,src:A,indexOrName:j,parentType:null,parentPath:N}),p&&p({depth:1,src:A,indexOrName:j,parentType:null,type:"delete",parentPath:N})},parentPath:[]})}))}))}const ZP=d.createContext(null);function g9(){const[e,t]=d.useState(null);return d.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function v9(e){const{children:t,value:n}=e,r=g9(),o=d.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return S.jsx(ZP.Provider,{value:o,children:t})}function JP(){return d.useContext(ZP)}function ek(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function tk(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const y9=["children"],b9=d.forwardRef(function(t,n){const{children:r}=t,o=K(t,y9),l=JP();if(l===null)throw new TypeError("No TabContext provided");const s=d.Children.map(r,i=>d.isValidElement(i)?d.cloneElement(i,{"aria-controls":ek(l,i.props.value),id:tk(l,i.props.value)}):null);return S.jsx(CN,h({},o,{ref:n,value:l.value,children:s}))});function C9(e){return _e("MuiTabPanel",e)}$e("MuiTabPanel",["root"]);const x9=["children","className","value"],w9=e=>{const{classes:t}=e;return de({root:["root"]},C9,t)},S9=Y("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),xC=d.forwardRef(function(t,n){const r=z1({props:t,name:"MuiTabPanel"}),{children:o,className:l,value:s}=r,i=K(r,x9),a=h({},r),u=w9(a),c=JP();if(c===null)throw new TypeError("No TabContext provided");const f=ek(c,s),p=tk(c,s);return S.jsx(S9,h({"aria-labelledby":p,className:Z(u.root,l),hidden:s!==c.value,id:f,ref:n,role:"tabpanel",ownerState:a},i,{children:s===c.value&&o}))});var fv={},P9=bo;Object.defineProperty(fv,"__esModule",{value:!0});var nk=fv.default=void 0,k9=P9(Vl()),I9=S;nk=fv.default=(0,k9.default)((0,I9.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var pv={},E9=bo;Object.defineProperty(pv,"__esModule",{value:!0});var rk=pv.default=void 0,M9=E9(Vl()),R9=S;rk=pv.default=(0,M9.default)((0,R9.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var hv={},T9=bo;Object.defineProperty(hv,"__esModule",{value:!0});var ok=hv.default=void 0,$9=T9(Vl()),O9=S;ok=hv.default=(0,$9.default)((0,O9.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");var mv={},F9=bo;Object.defineProperty(mv,"__esModule",{value:!0});var Hh=mv.default=void 0,_9=F9(Vl()),D9=S;Hh=mv.default=(0,_9.default)((0,D9.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var gv={},j9=bo;Object.defineProperty(gv,"__esModule",{value:!0});var lk=gv.default=void 0,L9=j9(Vl()),A9=S;lk=gv.default=(0,L9.default)((0,A9.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"DoDisturbOn");const N9=5e3,wC="$$colyseus$type",SC="$$colyseus$data";class z9 extends d.Component{constructor(){super(...arguments),this.state={roomId:void 0,state:{},clients:[],maxClients:0,stateSize:0,locked:!1,currentTab:"1",sendDialogTitle:"",sendDialogOpen:!1,sendToClient:void 0,sendType:localStorage.getItem(wC)||"message_type",sendData:JSON.parse(localStorage.getItem(SC)||"{}")},this.updateSendType=t=>{const n=t.target.value;localStorage.setItem(wC,n),this.setState({sendType:n})},this.updateSendData=t=>{localStorage.setItem(SC,JSON.stringify(t)),this.state.sendData=t},this.handleCloseSend=()=>{this.setState({sendDialogOpen:!1})},this.handleSend=()=>{(this.state.sendToClient?this.roomCall("_sendMessageToClient",this.state.sendToClient,this.state.sendType,this.state.sendData):this.roomCall("broadcast",this.state.sendType,this.state.sendData)).then(()=>this.handleCloseSend())},this.handleTabChange=(t,n)=>{this.setState({currentTab:n})}}componentDidMount(){this.fetchRoomData()}fetchRoomData(){const t=this.props.match.params.roomId;TN(t).then(n=>this.setState(n)).catch(n=>console.error(n)),clearInterval(this.updateDataInterval),this.updateDataInterval=window.setInterval(()=>this.fetchRoomData(),N9)}roomCall(t,...n){const r=this.props.match.params.roomId;return FS(r,t,...n).then(o=>console.log(o)).catch(o=>console.error(o))}componentWillUnmount(){clearInterval(this.updateDataInterval)}sendMessage(t){const n=t||void 0;let r=t?`Send message to client (${t})`:"Broadcast message to all clients";this.setState({sendToClient:n,sendDialogTitle:r,sendDialogOpen:!0})}disconnectClient(t){this.roomCall("_forceClientDisconnect",t).then(()=>this.fetchRoomData())}disposeRoom(){this.roomCall("disconnect").then(()=>{this.props.history.push("/")})}goBack(){window.history.back()}render(){const t=[{field:"sessionId",headerName:"sessionId",flex:1},{field:"elapsedTime",headerName:"elapsedTime",flex:1,valueFormatter:UP.elapsedTime,sortComparator:Oa},{field:"actions",headerName:"actions",flex:1,renderCell:r=>S.jsxs(S.Fragment,{children:[S.jsx(no,{variant:"text",startIcon:S.jsx(Hh,{}),onClick:this.sendMessage.bind(this,r.id),children:"Send"}),S.jsx(no,{variant:"text",color:"error",startIcon:S.jsx(lk,{}),onClick:this.disconnectClient.bind(this,r.id),children:"Disconnect"})]})}],n=this.state.clients.map(r=>({id:r.sessionId,sessionId:r.sessionId,elapsedTime:r.elapsedTime,actions:r.sessionId}));return S.jsxs("div",{children:[S.jsx(W1,{position:"static",children:S.jsxs(Og,{children:[S.jsx(so,{"aria-label":"delete",onClick:this.goBack.bind(this),children:S.jsx(nk,{})}),S.jsx(er,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Room "+this.state.roomId})]})}),S.jsx(MS,{component:kr,children:S.jsx(ES,{"aria-label":"simple table",children:S.jsx(RS,{children:S.jsxs(OS,{children:[S.jsxs(Zn,{align:"center",children:[this.state.locked?S.jsx(rk,{}):S.jsx(ok,{}),this.state.locked?"Locked":"Unlocked"]}),S.jsxs(Zn,{align:"center",children:["Clients",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:`${this.state.clients.length}${this.state.maxClients?" / "+this.state.maxClients:""}`})]}),S.jsxs(Zn,{align:"center",children:["State Size",S.jsx(No,{sx:{marginLeft:"6px"},size:"small",color:"primary",label:`${this.state.stateSize} bytes`})]}),S.jsx(Zn,{align:"center",children:S.jsx(no,{variant:"text",startIcon:S.jsx(Hh,{}),onClick:this.sendMessage.bind(this,void 0),children:"Broadcast"})}),S.jsx(Zn,{align:"center",children:S.jsx(no,{variant:"text",color:"error",startIcon:S.jsx(ov,{}),onClick:this.disposeRoom.bind(this),children:"Dispose room"})})]})})})}),S.jsxs(v9,{value:this.state.currentTab,children:[S.jsx(nD,{sx:{borderBottom:1,borderColor:"divider"},children:S.jsxs(b9,{onChange:this.handleTabChange,"aria-label":"lab API tabs example",variant:"fullWidth",children:[S.jsx(u0,{label:"Clients",value:"1"}),S.jsx(u0,{label:"State",value:"2"})]})}),S.jsx(xC,{value:"1",children:S.jsx(VP,{columns:t,rows:n,sx:{overflow:"hidden"},disableRowSelectionOnClick:!0,hideFooter:!0,hideFooterPagination:!0,hideFooterSelectedRowCount:!0})}),S.jsx(xC,{value:"2",children:S.jsx(m9,{src:this.state.state,theme:"default"})})]}),S.jsxs(y5,{open:this.state.sendDialogOpen,onClose:this.handleCloseSend,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[S.jsx(_5,{id:"alert-dialog-title",children:this.state.sendDialogTitle}),S.jsxs(T5,{children:[S.jsx("h2",{children:"Message type:"}),S.jsx("input",{type:"text",value:this.state.sendType,onChange:this.updateSendType}),S.jsx("h2",{children:"Message payload"}),S.jsx(q7.JsonEditor,{value:this.state.sendData,propagateChanges:this.updateSendData})]}),S.jsxs(S5,{children:[S.jsx(no,{variant:"text",color:"error",onClick:this.handleCloseSend,children:"Cancel"}),S.jsx(no,{variant:"text",onClick:this.handleSend,children:"Send"})]})]})]})}}const H9=DE();function B9(){const e=zR("(prefers-color-scheme: dark)"),t=Ht.useMemo(()=>hg({palette:{mode:e?"dark":"light"}}),[e]);return S.jsx(id,{history:H9,children:S.jsxs(j$,{theme:t,children:[S.jsx(GD,{}),S.jsx(EN,{}),S.jsx(ha,{exact:!0,path:"/",component:K7}),S.jsx(ha,{path:"/room/:roomId",component:z9})]})})}jw(document.getElementById("app")).render(S.jsx(B9,{}));
248
+ //# sourceMappingURL=index-C04kxnxy.js.map