(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8237],{88215:(e,t,r)=>{"use strict";r.d(t,{x:()=>c});var n=r(7552),o=r(29527),l=r(89887),i=r(99305),a=r(87995);function s(e){return e.substring(2).toLowerCase()}function c(e){const{children:t,disableReactTree:r=!1,mouseEvent:c="onClick",onClickAway:u,touchEvent:d="onTouchEnd"}=e,p=n.useRef(!1),f=n.useRef(null),g=n.useRef(!1),m=n.useRef(!1);n.useEffect((()=>(setTimeout((()=>{g.current=!0}),0),()=>{g.current=!1})),[]);const h=(0,o.A)((0,a.A)(t),f),b=(0,l.A)((e=>{const t=m.current;m.current=!1;const n=(0,i.A)(f.current);if(!g.current||!f.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(p.current)return void(p.current=!1);let o;o=e.composedPath?e.composedPath().includes(f.current):!n.documentElement.contains(e.target)||f.current.contains(e.target),o||!r&&t||u(e)})),w=e=>r=>{m.current=!0;const n=t.props[e];n&&n(r)},C={ref:h};return!1!==d&&(C[d]=w(d)),n.useEffect((()=>{if(!1!==d){const e=s(d),t=(0,i.A)(f.current),r=()=>{p.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,b),t.removeEventListener("touchmove",r)}}}),[b,d]),!1!==c&&(C[c]=w(c)),n.useEffect((()=>{if(!1!==c){const e=s(c),t=(0,i.A)(f.current);return t.addEventListener(e,b),()=>{t.removeEventListener(e,b)}}}),[b,c]),n.cloneElement(t,C)}},84421:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(7552),o=r(93878),l=r(70799),i=r(963),a=r(23456),s=r(64761),c=r(51148),u=r(84893),d=r(58520),p=r(4785),f=r(15622),g=r(50077),m=r(69500);const h=s.i7`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`,b="string"!=typeof h?s.AH`
        animation: ${h} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,w=s.i7`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`,C="string"!=typeof w?s.AH`
        animation: ${w} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
      `:null,v=s.i7`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,x="string"!=typeof v?s.AH`
        animation: ${v} 3s infinite linear;
      `:null,y=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,i.a)(e.palette[t].main,.62):(0,i.e$)(e.palette[t].main,.5),A=(0,c.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,f.A)(r.color)}`],t[r.variant]]}})((0,u.A)((({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter((0,d.A)()).map((([t])=>({props:{color:t},style:{backgroundColor:y(e,t)}}))),{props:({ownerState:e})=>"inherit"===e.color&&"buffer"!==e.variant,style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]})))),R=(0,c.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${(0,f.A)(r.color)}`]]}})((0,u.A)((({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter((0,d.A)()).map((([t])=>{const r=y(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}}))]}))),x||{animation:`${v} 3s infinite linear`}),S=(0,c.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar1,t[`barColor${(0,f.A)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((0,u.A)((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter((0,d.A)()).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}}))),{props:{variant:"determinate"},style:{transition:"transform .4s linear"}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .4s linear"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:b||{animation:`${h} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]})))),I=(0,c.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar2,t[`barColor${(0,f.A)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((0,u.A)((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter((0,d.A)()).map((([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}}))),{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"!==e.color,style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"===e.color,style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter((0,d.A)()).map((([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:y(e,t),transition:"transform .4s linear"}}))),{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:C||{animation:`${w} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]})))),M=n.forwardRef((function(e,t){const r=(0,p.b)({props:e,name:"MuiLinearProgress"}),{className:n,color:i="primary",value:s,valueBuffer:c,variant:u="indeterminate",...d}=r,h={...r,color:i,variant:u},b=(e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${(0,f.A)(n)}`,r],dashed:["dashed",`dashedColor${(0,f.A)(n)}`],bar1:["bar","bar1",`barColor${(0,f.A)(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==r&&`barColor${(0,f.A)(n)}`,"buffer"===r&&`color${(0,f.A)(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,l.A)(o,g.l,t)})(h),w=(0,a.I)(),C={},v={bar1:{},bar2:{}};if(("determinate"===u||"buffer"===u)&&void 0!==s){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let e=s-100;w&&(e=-e),v.bar1.transform=`translateX(${e}%)`}if("buffer"===u&&void 0!==c){let e=(c||0)-100;w&&(e=-e),v.bar2.transform=`translateX(${e}%)`}return(0,m.jsxs)(A,{className:(0,o.A)(b.root,n),ownerState:h,role:"progressbar",...C,ref:t,...d,children:["buffer"===u?(0,m.jsx)(R,{className:b.dashed,ownerState:h}):null,(0,m.jsx)(S,{className:b.bar1,ownerState:h,style:v.bar1}),"determinate"===u?null:(0,m.jsx)(I,{className:b.bar2,ownerState:h,style:v.bar2})]})}))},50077:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,l:()=>l});var n=r(33761),o=r(85693);function l(e){return(0,o.Ay)("MuiLinearProgress",e)}const i=(0,n.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"])},27943:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(7552),o=r(93878),l=r(70799),i=r(86259),a=r(963),s=r(64761),c=r(51148),u=r(84893),d=r(4785),p=r(76819),f=r(69500);const g=s.i7`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`,m=s.i7`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`,h="string"!=typeof g?s.AH`
        animation: ${g} 2s ease-in-out 0.5s infinite;
      `:null,b="string"!=typeof m?s.AH`
        &::after {
          animation: ${m} 2s linear 0.5s infinite;
        }
      `:null,w=(0,c.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,u.A)((({theme:e})=>{const t=(0,i.l_)(e.shape.borderRadius)||"px",r=(0,i.db)(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,a.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:h||{animation:`${g} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n                90deg,\n                transparent,\n                ${(e.vars||e).palette.action.hover},\n                transparent\n              )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:b||{"&::after":{animation:`${m} 2s linear 0.5s infinite`}}}]}}))),C=n.forwardRef((function(e,t){const r=(0,d.b)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:i,component:a="span",height:s,style:c,variant:u="text",width:g,...m}=r,h={...r,animation:n,component:a,variant:u,hasChildren:Boolean(m.children)},b=(e=>{const{classes:t,variant:r,animation:n,hasChildren:o,width:i,height:a}=e,s={root:["root",r,n,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]};return(0,l.A)(s,p.E,t)})(h);return(0,f.jsx)(w,{as:a,ref:t,className:(0,o.A)(b.root,i),ownerState:h,...m,style:{width:g,height:s,...c}})}))},76819:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,E:()=>l});var n=r(33761),o=r(85693);function l(e){return(0,o.Ay)("MuiSkeleton",e)}const i=(0,n.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"])},28237:(e,t,r)=>{"use strict";r.d(t,{z:()=>Br});var n=r(6614),o=r(7552),l=r(15152),i=r.n(l),a=r(96746),s=r(48335),c=r(80163),u=r(12274),d=r(64565),p=r(8751),f=r(4394),g=r(71115),m=r(41222),h=r(2220),b=r(82188),w=r(61311),C=r(23456),v=r(58766),x=r(99270);const y=(0,v.s3)()&&null!=window.localStorage.getItem("DEBUG"),A=()=>{},R={debug:A,info:A,warn:A,error:A},S=["debug","info","warn","error"];function I(e,t,r=console){const n=S.indexOf(t);if(-1===n)throw new Error(`MUI X: Log level ${t} not recognized.`);return S.reduce(((t,o,l)=>(t[o]=l>=n?(...t)=>{const[n,...l]=t;r[o](`MUI X: ${e} - ${n}`,...l)}:A,t)),{})}class M{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,r={}){let n=this.events[e];n||(n={highPriority:new Map,regular:new Map},this.events[e]=n),r.isFirst?n.highPriority.set(t,!0):n.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const r=this.events[e];if(!r)return;const n=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let e=n.length-1;e>=0;e-=1){const o=n[e];r.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const n=o[e];r.regular.has(n)&&n.apply(this,t)}}once(e,t){const r=this;this.on(e,(function n(...o){r.removeListener(e,n),t.apply(r,o)}))}}class k{static create(e){return new k(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}var P=r(89148);const E=Symbol("mui.api_private");let F=0;var H=r(83673);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function T(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}const D="none",z={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},L=(e,t)=>{const r=function(e,t){const r=o.useRef(null),n=o.useRef(null);n.current||(n.current=function(e){const t=e.current?.[E];if(t)return t;const r={},n={state:r,store:k.create(r),instanceId:{id:F}};return F+=1,n.getPublicApi=()=>e.current,n.register=(t,r)=>{Object.keys(r).forEach((o=>{const l=r[o],i=n[o];if(!0===i?.spying?i.target=l:n[o]=l,"public"===t){const t=e.current,r=t[o];!0===r?.spying?r.target=l:t[o]=l}}))},n.register("private",{caches:{},eventManager:new M}),n}(r)),r.current||(r.current=function(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[E]:e.current}}(n));const l=o.useCallback(((...e)=>{const[r,o,l={}]=e;if(l.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(l)&&l.isPropagationStopped())return;const i=t.signature===P.HV.DataGridPro||t.signature===P.HV.DataGridPremium?{api:n.current.getPublicApi()}:{};n.current.eventManager.emit(r,o,l,i)}),[n,t.signature]),i=o.useCallback(((e,t,r)=>{n.current.eventManager.on(e,t,r);const o=n.current;return()=>{o.eventManager.removeListener(e,t)}}),[n]);return(0,x.P)(n,{subscribeEvent:i,publishEvent:l},"public"),e&&!e.current?.state&&(e.current=r.current),o.useImperativeHandle(e,(()=>r.current),[r]),o.useEffect((()=>{const e=n.current;return()=>{e.publishEvent("unmount")}}),[n]),n}(e,t);return(e=>{const t=o.useRef(null),r=o.useRef(null),n=o.useRef(null),l=o.useRef(null),i=o.useRef(null),a=o.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:r,virtualScrollerRef:n,virtualScrollbarVerticalRef:l,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})})(r),(e=>{const t=(0,C.I)();void 0===e.current.state.isRtl&&(e.current.state.isRtl=t);const r=o.useRef(!0);o.useEffect((()=>{r.current?r.current=!1:e.current.setState((e=>(0,n.A)({},e,{isRtl:t})))}),[e,t])})(r),((e,t)=>{const r=o.useCallback((e=>y?I(e,"debug",t.logger):t.logLevel?I(e,t.logLevel.toString(),t.logger):R),[t.logLevel,t.logger]);(0,x.P)(e,{getLogger:r},"private")})(r,t),(e=>{const t=o.useRef({}),[,r]=o.useState(),l=o.useCallback((e=>{t.current[e.stateId]=e}),[]),i=o.useCallback(((r,n)=>{let o;if(o=(0,v.Tn)(r)?r(e.current.state):r,e.current.state===o)return!1;let l=!1;const i=[];if(Object.keys(t.current).forEach((r=>{const n=t.current[r],a=n.stateSelector(e.current.state,e.current.instanceId),s=n.stateSelector(o,e.current.instanceId);s!==a&&(i.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(l=!0))})),i.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${i[0].stateId}, therefore, you're not allowed to update ${i.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(l||(e.current.state=o,e.current.publishEvent("stateChange",o),e.current.store.update(o)),1===i.length){const{stateId:r,hasPropChanged:a}=i[0],s=t.current[r],c=s.stateSelector(o,e.current.instanceId);s.propOnChange&&a&&s.propOnChange(c,{reason:n,api:e.current}),l||e.current.publishEvent(s.changeEvent,c,{reason:n})}return!l}),[e]),a=o.useCallback(((t,r,o)=>e.current.setState((e=>(0,n.A)({},e,{[t]:r(e[t])})),o)),[e]),s={setState:i,forceUpdate:o.useCallback((()=>r((()=>e.current.state))),[e])},c={updateControlState:a,registerControlState:l};(0,x.P)(e,s,"public"),(0,x.P)(e,c,"private")})(r),(e=>{const t=o.useRef({}),r=o.useRef(!1),n=o.useCallback((e=>{!r.current&&e&&(r.current=!0,Object.values(e.appliers).forEach((e=>{e()})),r.current=!1)}),[]),l={registerPipeProcessor:o.useCallback(((e,r,o)=>{t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{}});const l=t.current[e];return l.processors.get(r)!==o&&(l.processors.set(r,o),l.processorsAsArray=Array.from(t.current[e].processors.values()),n(l)),()=>{t.current[e].processors.delete(r),t.current[e].processorsAsArray=Array.from(t.current[e].processors.values())}}),[n]),registerPipeApplier:o.useCallback(((e,r,n)=>(t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[e].appliers[r]=n,()=>{const n=t.current[e].appliers,o=(0,H.A)(n,[r].map(T));t.current[e].appliers=o})),[]),requestPipeProcessorsApplication:o.useCallback((e=>{n(t.current[e])}),[n])},i={unstable_applyPipeProcessors:o.useCallback(((...e)=>{const[r,n,o]=e;if(!t.current[r])return n;const l=t.current[r].processorsAsArray;let i=n;for(let e=0;e<l.length;e+=1)i=l[e](i,o);return i}),[])};(0,x.P)(e,l,"private"),(0,x.P)(e,i,"public")})(r),(e=>{const t=o.useRef(new Map),r=o.useRef({}),n={registerStrategyProcessor:o.useCallback(((t,n,o)=>{const l=()=>{const e=r.current[n],o=(0,H.A)(e,[t].map(T));r.current[n]=o};r.current[n]||(r.current[n]={});const i=r.current[n],a=i[t];return i[t]=o,a&&a!==o?(t===e.current.getActiveStrategy(z[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),l):l}),[e]),applyStrategyProcessor:o.useCallback(((t,n)=>{const o=e.current.getActiveStrategy(z[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const l=r.current[t];if(!l||!l[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,l[o])(n)}),[e]),getActiveStrategy:o.useCallback((e=>{const r=Array.from(t.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return r?.[0]??D}),[]),setStrategyAvailability:o.useCallback(((r,n,o)=>{t.current.set(n,{group:r,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e])};(0,x.P)(e,n,"private")})(r),((e,t)=>{const r=o.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText]);e.current.register("public",{getLocaleText:r})})(r,t),r.current.register("private",{rootProps:t}),r},$=(e,t,r)=>{const n=o.useRef(!1);n.current||(t.current.state=e(t.current.state,r,t),n.current=!0)};var N=r(47434),j=r(3247),V=r(92179);function B(e,t){if(null==e)return"";const r="string"==typeof e?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const e=r.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","\t","\r"].includes(e[0])?`"'${e}"`:[t.delimiter,"\n","\r",'"'].some((e=>r.includes(e)))?`"${e}"`:e}return r}const G=(e,t)=>{const{csvOptions:r,ignoreValueFormatter:n}=t;let o;if(n){const t=e.colDef.type;o="number"===t?String(e.value):"date"===t||"dateTime"===t?e.value?.toISOString():"function"==typeof e.value?.toString?e.value.toString():e.value}else o=e.formattedValue;return B(o,r)};class _{constructor(e){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),"function"==typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.csvOptions):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}var W=r(67129);function U(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const r=document.createRange();r.selectNode(t);const n=window.getSelection();n.removeAllRanges(),n.addRange(r);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var q=r(65111),K=r(83182);const X=e=>(0,n.A)({},e,{columnMenu:{open:!1}});var Y=r(20849);const Z=(e,t,r)=>{const n=o.useRef(null),l=o.useRef(`mui-${Math.round(1e9*Math.random())}`),i=o.useCallback((()=>{n.current=e.current.registerPipeProcessor(t,l.current,r)}),[e,r,t]);(0,Y.g)((()=>{i()}));const a=o.useRef(!0);o.useEffect((()=>(a.current?a.current=!1:i(),()=>{n.current&&(n.current(),n.current=null)})),[i])},Q=(e,t,r)=>{const n=o.useRef(null),l=o.useRef(`mui-${Math.round(1e9*Math.random())}`),i=o.useCallback((()=>{n.current=e.current.registerPipeApplier(t,l.current,r)}),[e,r,t]);(0,Y.g)((()=>{i()}));const a=o.useRef(!0);o.useEffect((()=>(a.current?a.current=!1:i(),()=>{n.current&&(n.current(),n.current=null)})),[i])};var J=r(36155),ee=r(60378),te=r(48534),re=r(69500);const ne=(e,t,r)=>{const o=(0,ee.Pd)({apiRef:r,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return(0,n.A)({},e,{columns:o,pinnedColumns:e.pinnedColumns??J.u})};function oe(e){return t=>(0,n.A)({},t,{columns:e})}var le=r(89887),ie=r(33658);const ae=(e,t)=>(0,n.A)({},e,{density:t.initialState?.density??t.density??"standard"}),se=({apiRef:e,options:t})=>{const r=(0,c.OV)(e);return t.fields?t.fields.reduce(((e,t)=>{const n=r.find((e=>e.field===t));return n&&e.push(n),e}),[]):(t.allColumns?r:(0,c.iv)(e)).filter((e=>!e.disableExport))},ce=({apiRef:e})=>{const t=(0,h.qA)(e),r=(0,f.qj)(e),n=e.current.getSelectedRows(),o=t.filter((e=>"footer"!==r[e].type)),l=(0,f.$2)(e),i=l?.top?.map((e=>e.id))||[],a=l?.bottom?.map((e=>e.id))||[];return o.unshift(...i),o.push(...a),n.size>0?o.filter((e=>n.has(e))):o};var ue=r(38175);const de=(e,t)=>{const r=(0,q.q)(e,"useGridCsvExport"),n=t.ignoreValueFormatterDuringExport,l=("object"==typeof n?n?.csvExport:n)||!1,i=o.useCallback(((t={})=>(r.debug("Get data as CSV"),function(e){const{columns:t,rowIds:r,csvOptions:n,ignoreValueFormatter:o,apiRef:l}=e,i=r.reduce(((e,r)=>`${e}${(({id:e,columns:t,getCellParams:r,csvOptions:n,ignoreValueFormatter:o})=>{const l=new _({csvOptions:n});return t.forEach((t=>{const i=r(e,t.field);l.addValue(G(i,{ignoreValueFormatter:o,csvOptions:n}))})),l.getRowString()})({id:r,columns:t,getCellParams:l.current.getCellParams,ignoreValueFormatter:o,csvOptions:n})}\r\n`),"").trim();if(!n.includeHeaders)return i;const a=t.filter((e=>e.field!==V.f.field)),s=[];if(n.includeColumnGroupsHeaders){const e=l.current.getAllGroupDetails();let t=0;const r=a.reduce(((e,r)=>{const n=l.current.getColumnGroupPath(r.field);return e[r.field]=n,t=Math.max(t,n.length),e}),{});for(let o=0;o<t;o+=1){const t=new _({csvOptions:n,sanitizeCellValue:B});s.push(t),a.forEach((n=>{const l=(r[n.field]||[])[o],i=e[l];t.addValue(i?i.headerName||i.groupId:"")}))}}const c=new _({csvOptions:n,sanitizeCellValue:B});return a.forEach((e=>{c.addValue(e.headerName||e.field)})),s.push(c),`${s.map((e=>e.getRowString())).join("\r\n")}\r\n${i}`.trim()}({columns:se({apiRef:e,options:t}),rowIds:(t.getRowsToExport??ce)({apiRef:e}),csvOptions:{delimiter:t.delimiter||",",shouldAppendQuotes:t.shouldAppendQuotes??!0,includeHeaders:t.includeHeaders??!0,includeColumnGroupsHeaders:t.includeColumnGroupsHeaders??!0,escapeFormulas:t.escapeFormulas??!0},ignoreValueFormatter:l,apiRef:e}))),[r,e,l]),a=o.useCallback((e=>{r.debug("Export data as CSV");const t=i(e);!function(e,t="csv",r=document.title||"untitled"){const n=`${r}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),r=document.createElement("a");return r.href=t,r.download=n,r.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI X: exportAs not supported.")}(new Blob([e?.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",e?.fileName)}),[r,i]),s={getDataAsCsv:i,exportDataAsCsv:a};(0,x.P)(e,s,"public");const c=o.useCallback(((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:(0,re.jsx)(ue.jX,{options:t.csvOptions}),componentName:"csvExport"}]),[]);Z(e,"exportMenu",c)};var pe=r(99305),fe=r(76959),ge=r(69639),me=r(59458),he=r(24940),be=r(92268);const we=(e,t,r)=>{let o=e.paginationModel;const l=e.rowCount,i=r?.pageSize??o.pageSize,a=r?.page??o.page,s=(0,be.$_)(l,i,a);!r||r?.page===o.page&&r?.pageSize===o.pageSize||(o=r);const c=(0,be.m6)(o.page,s);return c!==o.page&&(o=(0,n.A)({},o,{page:c})),(0,be.RW)(o.pageSize,t),o};var Ce=r(47198),ve=r(83933),xe=r(53131),ye=r(15060);const Ae=(e,t,r,n)=>{const l=o.useCallback((()=>{e.current.registerStrategyProcessor(t,r,n)}),[e,n,r,t]);(0,Y.g)((()=>{l()}));const i=o.useRef(!0);o.useEffect((()=>{i.current?i.current=!1:l()}),[l])};var Re=r(43905);const Se=(e,t,r)=>{const o=t.filterModel??t.initialState?.filter?.filterModel??(0,ye.T)();return(0,n.A)({},e,{filter:{filterModel:(0,Re.L5)(o,t.disableMultipleColumnsFiltering,r),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Ie=e=>e.filteredRowsLookup;function Me(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function ke(){return(0,Ce.i5)(Object.values)}var Pe=r(23392);const Ee=e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});var Fe=r(89270),He=r(87795),Oe=r(10365),Te=r(10930),De=r(92442);const ze=({currentColIndex:e,firstColIndex:t,lastColIndex:r,isRtl:n})=>{if(n){if(e<r)return e+1}else if(!n&&e>t)return e-1;return null},Le=({currentColIndex:e,firstColIndex:t,lastColIndex:r,isRtl:n})=>{if(n){if(e>t)return e-1}else if(!n&&e<r)return e+1;return null};var $e=r(46593);const Ne=(e,t)=>{const r=(0,n.A)({},(0,be.N0)(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);(0,be.RW)(r.pageSize,t.signature);const o=t.rowCount??t.initialState?.pagination?.rowCount,l=t.paginationMeta??t.initialState?.pagination?.meta??{};return(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:r,rowCount:o,meta:l,enabled:!0===t.pagination,paginationMode:t.paginationMode})})};var je=r(38577);const Ve=(e,t)=>(0,n.A)({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}});var Be=r(62185),Ge=r(88729);const _e=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;default:return""}},We=["id","field"],Ue=["id","field"];var qe=r(89037),Ke=r(65325);const Xe=["id"],Ye=["id"],Ze=e=>(0,n.A)({},e,{editRows:{}});var Qe=r(85659),Je=r(43026);const et=(e,t,r)=>{const o=!!t.unstable_dataSource;return r.current.caches.rows=(0,me.Z)({rows:o?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,n.A)({},e,{rows:(0,me.TW)({apiRef:r,rowCountProp:t.rowCount,loadingProp:!!o||t.loading,previousTree:null,previousTreeDepths:null})})},tt=e=>"full"===e.updates.type?(e=>{const t={[me.OL]:(0,n.A)({},(0,me.Mk)(),{children:e})};for(let r=0;r<e.length;r+=1){const n=e[r];t[n]={id:n,depth:0,parent:me.OL,type:"leaf",groupingKey:null}}return{groupingName:D,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{const r=(0,n.A)({},e),o={};for(let e=0;e<t.remove.length;e+=1){const n=t.remove[e];o[n]=!0,delete r[n]}for(let e=0;e<t.insert.length;e+=1){const n=t.insert[e];r[n]={id:n,depth:0,parent:me.OL,type:"leaf",groupingKey:null}}const l=r[me.OL];let i=[...l.children,...t.insert];return Object.values(o).length&&(i=i.filter((e=>!o[e]))),r[me.OL]=(0,n.A)({},l,{children:i}),{groupingName:D,tree:r,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions});class rt extends Error{}const nt=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],ot=(e,t)=>(0,n.A)({},e,{rowSelection:t.rowSelection?nt(t.rowSelectionModel)??[]:[]});var lt=r(70799);var it=r(14298);const at=(e,t)=>{const r=t.sortModel??t.initialState?.sorting?.sortModel??[];return(0,n.A)({},e,{sorting:{sortModel:(0,it.Zx)(r,t.disableMultipleColumnsSorting),sortedRows:[]}})};var st=r(29641);function ct(e){const{containerSize:t,scrollPosition:r,elementSize:n,elementOffset:o}=e,l=o+n;return n>t?o:l-t>r?l-t:o<r?o:void 0}var ut=r(16849),dt=r(35281),pt=r(53902),ft=r(26630);const gt={width:0,height:0},mt={isReady:!1,root:gt,viewportOuterSize:gt,viewportInnerSize:gt,contentSize:gt,minimumSize:gt,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},ht=e=>{const t=mt;return(0,n.A)({},e,{dimensions:t})};function bt(e,t){return e.width===t.width&&e.height===t.height}const wt=void 0!==globalThis.ResizeObserver?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Ct=(e,t,r)=>(r.current.caches.rowsMeta={heights:new Map},(0,n.A)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}));function vt(e){const{apiRef:t,lookup:r,columnIndex:n,rowId:o,minFirstColumnIndex:l,maxLastColumnIndex:i,columns:a}=e,s=a.length,c=a[n],u=t.current.getRow(o),d=t.current.getRowValue(u,c),p="function"==typeof c.colSpan?c.colSpan(d,u,c,t):c.colSpan;if(!p||1===p)return xt(r,o,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let f=c.computedWidth;for(let e=1;e<p;e+=1){const t=n+e;t>=l&&t<i&&(f+=a[t].computedWidth,xt(r,o,n+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+p,s-1),leftVisibleCellIndex:n})),xt(r,o,n,{spannedByColSpan:!1,cellProps:{colSpan:p,width:f}})}return{colSpan:p}}function xt(e,t,r,n){e[t]||(e[t]={}),e[t][r]=n}var yt=r(20581);const At=(e,t,r)=>{if((0,yt.x)(e)){if(void 0!==r[e.field])throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${r[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(r[e.field]=t)}const{groupId:n,children:o}=e;o.forEach((e=>{At(e,[...t,n],r)}))},Rt=e=>{if(!e)return{};const t={};return e.forEach((e=>{At(e,[],t)})),t},St=(e,t,r)=>{const n=e=>t[e]??[],o=[],l=Math.max(...e.map((e=>n(e).length))),i=(e,t,r)=>(0,v.Hv)(n(e).slice(0,r+1),n(t).slice(0,r+1));for(let t=0;t<l;t+=1){const l=e.reduce(((e,o)=>{const l=n(o)[t]??null;if(0===e.length)return[{columnFields:[o],groupId:l}];const a=e[e.length-1],s=a.columnFields[a.columnFields.length-1];return a.groupId!==l||!i(s,o,t)||(c=s,u=o,r?.left&&r.left.includes(c)&&!r.left.includes(u)||r?.right&&!r.right.includes(c)&&r.right.includes(u))?[...e,{columnFields:[o],groupId:l}]:[...e.slice(0,e.length-1),{columnFields:[...a.columnFields,o],groupId:l}];var c,u}),[]);o.push(l)}return o},It=["groupId","children"],Mt=e=>{let t={};return e.forEach((e=>{if((0,yt.x)(e))return;const{groupId:r,children:o}=e,l=(0,H.A)(e,It);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const i=(0,n.A)({},l,{groupId:r}),a=Mt(o);if(void 0!==a[r]||void 0!==t[r])throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=(0,n.A)({},t,a,{[r]:i})})),(0,n.A)({},t)},kt=(e,t,r)=>{if(!t.columnGroupingModel)return e;const o=(0,c.JR)(r),l=(0,c.TI)(r),i=Mt(t.columnGroupingModel??[]),a=Rt(t.columnGroupingModel??[]),s=St(o,a,r.current.state.pinnedColumns??{}),u=0===l.length?0:Math.max(...l.map((e=>a[e]?.length??0)));return(0,n.A)({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})};var Pt=r(55730),Et=r(32125),Ft=r(8161);function Ht(e,t){if(void 0!==t&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){const n=e.changedTouches[r];if(n.identifier===t)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ot(e,t,r,n){let o=e;return o+="Right"===n?t-r.left:r.right-t,o}function Tt(e){e.preventDefault(),e.stopImmediatePropagation()}const Dt=e=>(0,n.A)({},e,{columnResize:{resizingColumnField:""}});function zt(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const Lt=(e,t)=>{const r=(0,C.I)(),l=(0,q.q)(e,"useGridColumnResize"),i=(0,xe.A)(zt).current,a=o.useRef(null),s=o.useRef(null),d=(0,Qe.A)(),p=o.useRef(void 0),f=t=>{l.debug(`Updating width to ${t} for col ${i.colDef.field}`);const r=i.columnHeaderElement.offsetWidth,n=t-r,o=t-i.initialColWidth;if(o>0){const t=i.initialTotalWidth+o;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${t}px`)}i.colDef.computedWidth=t,i.colDef.width=t,i.colDef.flex=0,i.columnHeaderElement.style.width=`${t}px`;const a=i.headerFilterElement;a&&(a.style.width=`${t}px`),i.groupHeaderElements.forEach((e=>{const r=e;let o;o="1"===r.getAttribute("aria-colspan")?`${t}px`:`${r.offsetWidth+n}px`,r.style.width=o})),i.cellElements.forEach((e=>{const r=e;let o;o="1"===r.getAttribute("aria-colspan")?`${t}px`:`${r.offsetWidth+n}px`,r.style.setProperty("--width",o)}));const s=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);s===J.K.LEFT&&($t(i.fillerLeft,"width",n),i.leftPinnedCellsAfter.forEach((e=>{$t(e,"left",n)})),i.leftPinnedHeadersAfter.forEach((e=>{$t(e,"left",n)}))),s===J.K.RIGHT&&($t(i.fillerRight,"width",n),i.rightPinnedCellsBefore.forEach((e=>{$t(e,"right",n)})),i.rightPinnedHeadersBefore.forEach((e=>{$t(e,"right",n)})))},g=t=>{if(R(),i.previousMouseClickEvent){const r=i.previousMouseClickEvent,n=r.timeStamp,o=r.clientX,l=r.clientY;if(t.timeStamp-n<300&&t.clientX===o&&t.clientY===l)return i.previousMouseClickEvent=void 0,void e.current.publishEvent("columnResizeStop",null,t)}if(i.colDef){e.current.setColumnWidth(i.colDef.field,i.colDef.width),l.debug(`Updating col ${i.colDef.field} with new width: ${i.colDef.width}`);const t=(0,c.em)(e.current.state);i.groupHeaderElements.forEach((e=>{const r=e,n=`${(0,Te.Rv)(e).reduce(((e,r)=>!1!==t.columnVisibilityModel[r]?e+t.lookup[r].computedWidth:e),0)}px`;r.style.width=n}))}d.start(0,(()=>{e.current.publishEvent("columnResizeStop",null,t)}))},m=(t,n,o)=>{const l=e.current.rootElementRef.current;i.initialColWidth=t.computedWidth,i.initialTotalWidth=e.current.getRootDimensions().rowWidth,i.colDef=t,i.columnHeaderElement=(0,Te.Bx)(e.current.columnHeadersContainerRef.current,t.field);const c=l.querySelector(`.${fe.x.headerFilterRow} [data-field="${(0,Te.AP)(t.field)}"]`);c&&(i.headerFilterElement=c),i.groupHeaderElements=(0,Te.Rb)(e.current.columnHeadersContainerRef?.current,t.field),i.cellElements=(0,Te.Dq)(i.columnHeaderElement,e.current),i.fillerLeft=(0,Te.YI)(e.current,r?"filler--pinnedRight":"filler--pinnedLeft"),i.fillerRight=(0,Te.YI)(e.current,r?"filler--pinnedLeft":"filler--pinnedRight");const u=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);i.leftPinnedCellsAfter=u!==J.K.LEFT?[]:(0,Te.iF)(e.current,i.columnHeaderElement,r),i.rightPinnedCellsBefore=u!==J.K.RIGHT?[]:(0,Te.mH)(e.current,i.columnHeaderElement,r),i.leftPinnedHeadersAfter=u!==J.K.LEFT?[]:(0,Te.Zw)(e.current,i.columnHeaderElement,r),i.rightPinnedHeadersBefore=u!==J.K.RIGHT?[]:(0,Te.$c)(e.current,i.columnHeaderElement,r),s.current=function(e,t){const r=e.classList.contains(fe.x["columnSeparator--sideRight"])?"Right":"Left";return t?function(e){return"Right"===e?"Left":"Right"}(r):r}(n,r),a.current=function(e,t,r){return"Left"===r?e-t.left:t.right-e}(o,i.columnHeaderElement.getBoundingClientRect(),s.current)},h=(0,le.A)(g),b=(0,le.A)((t=>{if(0===t.buttons)return void h(t);let r=Ot(a.current,t.clientX,i.columnHeaderElement.getBoundingClientRect(),s.current);r=(0,v.qE)(r,i.colDef.minWidth,i.colDef.maxWidth),f(r);const n={element:i.columnHeaderElement,colDef:i.colDef,width:r};e.current.publishEvent("columnResize",n,t)})),w=(0,le.A)((e=>{Ht(e,p.current)&&g(e)})),y=(0,le.A)((t=>{const r=Ht(t,p.current);if(!r)return;if("mousemove"===t.type&&0===t.buttons)return void w(t);let n=Ot(a.current,r.x,i.columnHeaderElement.getBoundingClientRect(),s.current);n=(0,v.qE)(n,i.colDef.minWidth,i.colDef.maxWidth),f(n);const o={element:i.columnHeaderElement,colDef:i.colDef,width:n};e.current.publishEvent("columnResize",o,t)})),A=(0,le.A)((t=>{const r=(0,Te.fl)(t.target,fe.x["columnSeparator--resizable"]);if(!r)return;const n=t.changedTouches[0];null!=n&&(p.current=n.identifier);const o=(0,Te.fl)(t.target,fe.x.columnHeader),i=(0,Te.Tq)(o),a=e.current.getColumn(i);l.debug(`Start Resize on col ${a.field}`),e.current.publishEvent("columnResizeStart",{field:i},t),m(a,r,n.clientX);const s=(0,pe.A)(t.currentTarget);s.addEventListener("touchmove",y),s.addEventListener("touchend",w)})),R=o.useCallback((()=>{const t=(0,pe.A)(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",b),t.removeEventListener("mouseup",h),t.removeEventListener("touchmove",y),t.removeEventListener("touchend",w),setTimeout((()=>{t.removeEventListener("click",Tt,!0)}),100),i.columnHeaderElement&&(i.columnHeaderElement.style.pointerEvents="unset")}),[e,i,b,h,y,w]),S=o.useCallback((({field:t})=>{e.current.setState((e=>(0,n.A)({},e,{columnResize:(0,n.A)({},e.columnResize,{resizingColumnField:t})}))),e.current.forceUpdate()}),[e]),I=o.useCallback((()=>{e.current.setState((e=>(0,n.A)({},e,{columnResize:(0,n.A)({},e.columnResize,{resizingColumnField:""})}))),e.current.forceUpdate()}),[e]),M=(0,le.A)((({colDef:t},r)=>{if(0!==r.button)return;if(!r.currentTarget.classList.contains(fe.x["columnSeparator--resizable"]))return;r.preventDefault(),l.debug(`Start Resize on col ${t.field}`),e.current.publishEvent("columnResizeStart",{field:t.field},r),m(t,r.currentTarget,r.clientX);const n=(0,pe.A)(e.current.rootElementRef.current);n.body.style.cursor="col-resize",i.previousMouseClickEvent=r.nativeEvent,n.addEventListener("mousemove",b),n.addEventListener("mouseup",h),n.addEventListener("click",Tt,!0)})),k=(0,le.A)(((r,o)=>{if(t.disableAutosize)return;if(0!==o.button)return;const l=e.current.state.columns.lookup[r.field];!1!==l.resizable&&e.current.autosizeColumns((0,n.A)({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[l.field]}))})),E=function(e){const t=o.useRef(void 0),r=()=>(0,dt.m5)(e),n=(0,u.Nc)(e,r);return o.useEffect((()=>{t.current&&!1===n&&(t.current.resolve(),t.current=void 0)})),()=>{if(!t.current){if(!1===r())return Promise.resolve();t.current=function(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));return r.resolve=e,r.reject=t,r}()}return t.current}}(e),F=o.useRef(!1),H=o.useCallback((async r=>{const o=e.current.rootElementRef?.current;if(!o)return;if(F.current)return;F.current=!0;const l=(0,c.em)(e.current.state),i=(0,n.A)({},Et.N,r,{columns:r?.columns??l.orderedFields});i.columns=i.columns.filter((e=>!1!==l.columnVisibilityModel[e]));const a=i.columns.map((t=>e.current.state.columns.lookup[t]));try{!t.disableVirtualization&&i.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await E());const r=function(e,t,r){const n={},o=e.current.rootElementRef.current;return o.classList.add(fe.x.autosizing),r.forEach((r=>{const o=(0,Te.j4)(e.current,r.field).map((e=>e.getBoundingClientRect().width??0)),l=t.includeOutliers?o:function(e,t){if(e.length<4)return e;const r=e.slice();r.sort(((e,t)=>e-t));const n=r[Math.floor(.25*r.length)],o=r[Math.floor(.75*r.length)-1],l=o-n,i=l<5?5:l*t;return r.filter((e=>e>n-i&&e<o+i))}(o,t.outliersFactor);if(t.includeHeaders){const t=(0,Te.dL)(e.current,r.field);if(t){const e=t.querySelector(`.${fe.x.columnHeaderTitle}`),r=t.querySelector(`.${fe.x.columnHeaderTitleContainerContent}`),n=t.querySelector(`.${fe.x.iconButtonContainer}`),o=t.querySelector(`.${fe.x.menuIcon}`),i=e??r,a=window.getComputedStyle(t,null),s=parseInt(a.paddingLeft,10)+parseInt(a.paddingRight,10),c=i.scrollWidth+1+s+(n?.clientWidth??0)+(o?.clientWidth??0);l.push(c)}}const i=r.minWidth!==-1/0&&void 0!==r.minWidth,a=r.maxWidth!==1/0&&void 0!==r.maxWidth,s=i?r.minWidth:0,c=a?r.maxWidth:1/0,u=0===l.length?0:Math.max(...l);n[r.field]=(0,v.qE)(u,s,c)})),o.classList.remove(fe.x.autosizing),n}(e,i,a),o=a.map((e=>(0,n.A)({},e,{width:r[e.field],computedWidth:r[e.field],flex:0})));if(i.expand){const t=l.orderedFields.map((e=>l.lookup[e])).filter((e=>!1!==l.columnVisibilityModel[e.field])).reduce(((e,t)=>e+(r[t.field]??t.computedWidth??t.width)),0),n=e.current.getRootDimensions().viewportInnerSize.width-t;if(n>0){const e=n/(o.length||1);o.forEach((t=>{t.width+=e,t.computedWidth+=e}))}}e.current.updateColumns(o),o.forEach(((t,r)=>{if(t.width!==a[r].width){const r=t.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t.field),colDef:t,width:r})}}))}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),F.current=!1}}),[e,E,t.disableVirtualization]);o.useEffect((()=>R),[R]),(0,Ft.A)((()=>{t.autosizeOnMount&&Promise.resolve().then((()=>{e.current.autosizeColumns(t.autosizeOptions)}))})),(0,N.h)(e,(()=>e.current.columnHeadersContainerRef?.current),"touchstart",A,{passive:!0}),(0,x.P)(e,{autosizeColumns:H},"public"),(0,P.cz)(e,"columnResizeStop",I),(0,P.cz)(e,"columnResizeStart",S),(0,P.cz)(e,"columnSeparatorMouseDown",M),(0,P.cz)(e,"columnSeparatorDoubleClick",k),(0,P.re)(e,"columnResize",t.onColumnResize),(0,P.re)(e,"columnWidthChange",t.onColumnWidthChange)};function $t(e,t,r){e&&(e.style[t]=`${parseInt(e.style[t],10)+r}px`)}function Nt(e,t){return e.firstRowIndex!==t.firstRowIndex||e.lastRowIndex!==t.lastRowIndex}const jt=(e,t,r)=>{if(!e)return null;let n=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(n=o(n,e,t,r)),n},Vt={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Bt={firstRowIndex:0,lastRowIndex:0},Gt=new Set([V.t,"__reorder__",Fe.Ux]),_t=(e,t,r,o,l,i,a)=>{const s=i?{}:(0,n.A)({},e.current.state.rowSpanning.spannedCells),c=i?{}:(0,n.A)({},e.current.state.rowSpanning.hiddenCells),u=i?{}:(0,n.A)({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(a=Bt),t.forEach((t=>{if(!Gt.has(t.field)){for(let n=l.firstRowIndex;n<l.lastRowIndex;n+=1){const i=r[n];if(c[i.id]?.[t.field])continue;const a=jt(i.model,t,e);if(null==a)continue;let d=i.id,p=n,f=0;const g=[];if(n===l.firstRowIndex){let l=n-1;const i=r[l];for(;l>=o.firstRowIndex&&jt(i.model,t,e)===a;){const e=r[l+1];c[e.id]?c[e.id][t.field]=!0:c[e.id]={[t.field]:!0},g.push(n),f+=1,d=i.id,p=l,l-=1}}g.forEach((e=>{u[e]?u[e][t.field]=p:u[e]={[t.field]:p}}));let m=n+1;for(;m<=o.lastRowIndex&&r[m]&&jt(r[m].model,t,e)===a;){const e=r[m];c[e.id]?c[e.id][t.field]=!0:c[e.id]={[t.field]:!0},u[m]?u[m][t.field]=p:u[m]={[t.field]:p},m+=1,f+=1}f>0&&(s[d]?s[d][t.field]=f+1:s[d]={[t.field]:f+1})}a={firstRowIndex:Math.min(a.firstRowIndex,l.firstRowIndex),lastRowIndex:Math.max(a.lastRowIndex,l.lastRowIndex)}}})),{spannedCells:s,hiddenCells:c,hiddenCellOriginMap:u,processedRange:a}},Wt=(e,t,r)=>{if(t.unstable_rowSpanning){const t=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],l=e.rows.dataRowIdToModelLookup,i=e.columns.lookup,a=Boolean(e.filter.filterModel.items.length)||Boolean(e.filter.filterModel.quickFilterValues?.length);if(!t.length||!o.length||!l||!i||a)return(0,n.A)({},e,{rowSpanning:Vt});const s={firstRowIndex:0,lastRowIndex:Math.min(20,Math.max(t.length,0))},c=t.map((e=>({id:e,model:l[e]}))),u=o.map((e=>i[e])),{spannedCells:d,hiddenCells:p,hiddenCellOriginMap:f}=_t(r,u,c,s,s,!0,Bt);return(0,n.A)({},e,{rowSpanning:{spannedCells:d,hiddenCells:p,hiddenCellOriginMap:f}})}return(0,n.A)({},e,{rowSpanning:Vt})};new Set;const Ut=(e,t,r)=>(0,n.A)({},e,{listViewColumn:t.unstable_listColumn?(0,n.A)({},t.unstable_listColumn,{computedWidth:qt(r)}):void 0});function qt(e){return(0,st.z)(e.current.state).viewportInnerSize.width}const Kt=(e,t)=>{const r=L(e,t);return((e,t)=>{const r=(e=>{const{classes:t}=e;return o.useMemo((()=>(0,lt.A)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},fe.B,t)),[t])})({classes:t.classes}),l=o.useCallback((o=>{const l=(0,n.A)({},V.f,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=null!=o.lookup[V.t];return i&&!a?(o.lookup[V.t]=l,o.orderedFields=[V.t,...o.orderedFields]):!i&&a?(delete o.lookup[V.t],o.orderedFields=o.orderedFields.filter((e=>e!==V.t))):i&&a&&(o.lookup[V.t]=(0,n.A)({},l,o.lookup[V.t])),o}),[e,r,t.checkboxSelection]);Z(e,"hydrateColumns",l)})(r,t),(e=>{Ae(e,D,"rowTreeCreation",tt)})(r),$(ht,r,t),$(ot,r,t),$(ne,r,t),$(Ne,r,t),$(et,r,t),$(Ze,r,t),$(Ee,r,t),$(at,r,t),$(Ve,r,t),$(Se,r,t),$(Wt,r,t),$(ae,r,t),$(Dt,r,t),$(Ct,r,t),$(X,r,t),$(kt,r,t),$(Pt.nu,r,t),$(Ut,r,t),((e,t)=>{const r=(0,q.q)(e,"useGridKeyboardNavigation"),n=(0,Pe.h)(e,t).rows,l=(0,C.I)(),i=t.unstable_listView,a=o.useMemo((()=>function(e,t){const r=(0,f.$2)(e)||{};return[...r.top||[],...t,...r.bottom||[]]}(e,n)),[e,n]),s="DataGrid"!==t.signature&&t.headerFilters,u=o.useCallback(((t,n,o="left",l="up")=>{const a=(0,h.em)(e),s=e.current.unstable_getCellColSpanInfo(n,t);s&&s.spannedByColSpan&&("left"===o?t=s.leftVisibleCellIndex:"right"===o&&(t=s.rightVisibleCellIndex));const u=i?(0,$e.W)(e.current.state).field:(0,c.TI)(e)[t],d=function(e,t,r,n){const o=(0,De.xX)(e);if(!o[t]?.[r])return t;const l=(0,h.qA)(e);let i=l.indexOf(t)+("down"===n?1:-1);for(;i>=0&&i<l.length;){const e=l[i];if(!o[e]?.[r])return e;i+="down"===n?1:-1}return t}(e,n,u,l),p=a.findIndex((e=>e.id===d));r.debug(`Navigating to cell row ${p}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:p}),e.current.setCellFocus(d,u)}),[e,r,i]),d=o.useCallback(((t,n)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,n)}),[e,r]),g=o.useCallback(((t,n)=>{r.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(o,n)}),[e,r]),m=o.useCallback(((t,n,o)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const{field:l}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(l,n,o)}),[e,r]),b=o.useCallback((e=>a[e]?.id),[a]),w=o.useCallback(((t,r)=>{const n=r.currentTarget.querySelector(`.${fe.x.columnHeaderTitleContainerContent}`);if(n&&n.contains(r.target)&&t.field!==V.f.field)return;const o=e.current.getViewportPageSize(),i=t.field?e.current.getColumnIndex(t.field):0,f=a.length>0?0:null,h=a.length-1,w=(0,c.iv)(e).length-1,C=(0,p.aC)(e);let v=!0;switch(r.key){case"ArrowDown":null!==f&&(s?g(i,r):u(i,b(f)));break;case"ArrowRight":{const e=Le({currentColIndex:i,firstColIndex:0,lastColIndex:w,isRtl:l});null!==e&&d(e,r);break}case"ArrowLeft":{const e=ze({currentColIndex:i,firstColIndex:0,lastColIndex:w,isRtl:l});null!==e&&d(e,r);break}case"ArrowUp":C>0&&m(i,C-1,r);break;case"PageDown":null!==f&&null!==h&&u(i,b(Math.min(f+o,h)));break;case"Home":d(0,r);break;case"End":d(w,r);break;case"Enter":(r.ctrlKey||r.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:v=!1}v&&r.preventDefault()}),[e,a.length,s,g,u,b,l,d,m]),v=o.useCallback(((t,r)=>{const n=(0,Oe.B$)(e)===t.field,o=(0,Oe.K8)(e)===t.field;if(n||o||!(0,W.q9)(r.key))return;const i=e.current.getViewportPageSize(),s=t.field?e.current.getColumnIndex(t.field):0,p=a.length-1,f=(0,c.iv)(e).length-1;let m=!0;switch(r.key){case"ArrowDown":{const e=b(0);null!=e&&u(s,e);break}case"ArrowRight":{const e=Le({currentColIndex:s,firstColIndex:0,lastColIndex:f,isRtl:l});null!==e&&g(e,r);break}case"ArrowLeft":{const n=ze({currentColIndex:s,firstColIndex:0,lastColIndex:f,isRtl:l});null!==n?g(n,r):e.current.setColumnHeaderFilterFocus(t.field,r);break}case"ArrowUp":d(s,r);break;case"PageDown":null!==p&&u(s,b(Math.min(0+i,p)));break;case"Home":g(0,r);break;case"End":g(f,r);break;case" ":break;default:m=!1}m&&r.preventDefault()}),[e,a.length,g,l,d,u,b]),x=o.useCallback(((t,r)=>{const n=(0,j.WO)(e);if(null===n)return;const{field:o,depth:l}=n,{fields:i,depth:s,maxDepth:p}=t,f=e.current.getViewportPageSize(),g=e.current.getColumnIndex(o),h=o?e.current.getColumnIndex(o):0,w=a.length-1,C=(0,c.iv)(e).length-1;let v=!0;switch(r.key){case"ArrowDown":s===p-1?d(g,r):m(g,l+1,r);break;case"ArrowUp":s>0&&m(g,l-1,r);break;case"ArrowRight":{const e=i.length-i.indexOf(o)-1;g+e+1<=C&&m(g+e+1,l,r);break}case"ArrowLeft":{const e=i.indexOf(o);g-e-1>=0&&m(g-e-1,l,r);break}case"PageDown":null!==w&&u(h,b(Math.min(0+f,w)));break;case"Home":m(0,l,r);break;case"End":m(C,l,r);break;case" ":break;default:v=!1}v&&r.preventDefault()}),[e,a.length,d,m,u,b]),y=o.useCallback(((t,r)=>{if((0,Te.TA)(r))return;const n=e.current.getCellParams(t.id,t.field);if(n.cellMode===He.bs.Edit||!(0,W.q9)(r.key))return;if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:r,cell:n}))return;if(0===a.length)return;const o=e.current.getViewportPageSize(),p=i?()=>0:e.current.getColumnIndex,f=t.field?p(t.field):0,m=a.findIndex((e=>e.id===t.id)),h=a.length-1,w=(i?[(0,$e.W)(e.current.state)]:(0,c.iv)(e)).length-1;let C=!0;switch(r.key){case"ArrowDown":m<h&&u(f,b(m+1),l?"right":"left","down");break;case"ArrowUp":m>0?u(f,b(m-1)):s?g(f,r):d(f,r);break;case"ArrowRight":{const e=Le({currentColIndex:f,firstColIndex:0,lastColIndex:w,isRtl:l});null!==e&&u(e,b(m),l?"left":"right");break}case"ArrowLeft":{const e=ze({currentColIndex:f,firstColIndex:0,lastColIndex:w,isRtl:l});null!==e&&u(e,b(m),l?"right":"left");break}case"Tab":r.shiftKey&&f>0?u(f-1,b(m),"left"):!r.shiftKey&&f<w&&u(f+1,b(m),"right");break;case" ":{if(t.field===Fe.Ux)break;const e=t.colDef;if(e&&(e.field===Fe.it||(v=e.field)===Fe.mH||null!==(e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null})(v)))break;!r.shiftKey&&m<h&&u(f,b(Math.min(m+o,h)));break}case"PageDown":m<h&&u(f,b(Math.min(m+o,h)));break;case"PageUp":{const e=Math.max(m-o,0);e!==m&&e>=0?u(f,b(e)):d(f,r);break}case"Home":r.ctrlKey||r.metaKey||r.shiftKey?u(0,b(0)):u(0,b(m));break;case"End":r.ctrlKey||r.metaKey||r.shiftKey?u(w,b(h)):u(w,b(m));break;default:C=!1}var v;C&&r.preventDefault()}),[e,a,l,u,b,s,g,d,i]),A=o.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);Z(e,"canStartEditing",A),(0,P.cz)(e,"columnHeaderKeyDown",w),(0,P.cz)(e,"headerFilterKeyDown",v),(0,P.cz)(e,"columnGroupHeaderKeyDown",x),(0,P.cz)(e,"cellKeyDown",y)})(r,t),((e,t)=>{const r=(0,q.q)(e,"useGridSelection"),l=o.useCallback((e=>(...r)=>{t.rowSelection&&e(...r)}),[t.rowSelection]),i=t.signature!==P.HV.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants),a=o.useMemo((()=>nt(t.rowSelectionModel,(0,b.Bi)(e.current.state))),[e,t.rowSelectionModel]),s=o.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:a,propOnChange:t.onRowSelectionModelChange,stateSelector:b.Bi,changeEvent:"rowSelectionChange"});const{checkboxSelection:c,disableRowSelectionOnClick:d,isRowSelectable:p}=t,g=(0,m.cv)(t),w=(0,Pe.h)(e,t),C=(0,u.Nc)(e,f.qj),v=(0,u.Nc)(e,f.V2)>1,y=o.useCallback((t=>{let r=t;const n=s.current??t,o=e.current.isRowSelected(t);if(o){const t=(0,h.ux)(e),o=t.findIndex((e=>e===n)),l=t.findIndex((e=>e===r));if(o===l)return;r=o>l?t[l+1]:t[l-1]}s.current=t,e.current.selectRowRange({startId:n,endId:r},!o)}),[e]),A=o.useCallback((o=>{if(t.signature===P.HV.DataGrid&&!g&&Array.isArray(o)&&o.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));(0,b.Bi)(e.current.state)!==o&&(r.debug("Setting selection model"),e.current.setState((e=>(0,n.A)({},e,{rowSelection:t.rowSelection?o:[]}))),e.current.forceUpdate())}),[e,r,t.rowSelection,t.signature,g]),R=o.useCallback((t=>(0,b.Bi)(e.current.state).includes(t)),[e]),S=o.useCallback((r=>{if(!1===t.rowSelection)return!1;if(p&&!p(e.current.getRowParams(r)))return!1;const n=e.current.getRowNode(r);return"footer"!==n?.type&&"pinnedRow"!==n?.type}),[e,t.rowSelection,p]),I=o.useCallback((()=>(0,b.gt)(e)),[e]),M=o.useCallback(((n,o=!0,l=!1)=>{if(e.current.isRowSelectable(n))if(s.current=n,l){r.debug(`Setting selection for row ${n}`);const l=[],a=e=>{l.push(e)};o&&(a(n),i&&(0,m.ul)(e,C,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,a)),e.current.setRowSelectionModel(l)}else{r.debug(`Toggling selection for row ${n}`);const l=(0,b.Bi)(e.current.state),a=new Set(l);a.delete(n);const s=e=>{a.add(e)},c=e=>{a.delete(e)};o?(s(n),i&&(0,m.ul)(e,C,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,s)):i&&(0,m.xm)(e,C,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,c),(a.size<2||g)&&e.current.setRowSelectionModel(Array.from(a))}}),[e,r,i,C,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,g]),k=o.useCallback(((n,o=!0,l=!1)=>{r.debug("Setting selection for several rows");const a=n.filter((t=>e.current.isRowSelectable(t)));let s;if(l){if(o){if(s=new Set(a),i){const r=e=>{s.add(e)};a.forEach((n=>{(0,m.ul)(e,C,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,r)}))}}else s=new Set;const r=(0,b.Zk)(e);if(s.size===Object.keys(r).length&&Array.from(s).every((e=>r[e]===e)))return}else{s=new Set(Object.values((0,b.Zk)(e)));const r=e=>{s.add(e)},n=e=>{s.delete(e)};a.forEach((l=>{o?(s.add(l),i&&(0,m.ul)(e,C,l,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,r)):(n(l),i&&(0,m.xm)(e,C,l,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,n))}))}(s.size<2||g)&&e.current.setRowSelectionModel(Array.from(s))}),[r,i,g,e,C,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents]),E=o.useCallback((({startId:t,endId:n},o=!0,l=!1)=>{if(!e.current.getRow(t)||!e.current.getRow(n))return;r.debug(`Expanding selection from row ${t} to row ${n}`);const i=(0,h.ux)(e),a=i.indexOf(t),s=i.indexOf(n),[c,u]=a>s?[s,a]:[a,s],d=i.slice(c,u+1);e.current.selectRows(d,o,l)}),[e,r]),F={selectRow:M,setRowSelectionModel:A,getSelectedRows:I,isRowSelected:R,isRowSelectable:S},H={selectRows:k,selectRowRange:E};(0,x.P)(e,F,"public"),(0,x.P)(e,H,t.signature===P.HV.DataGrid?"private":"public");const O=o.useCallback(((r=!1)=>{const o=(0,b.Bi)(e.current.state),l=(0,f.rI)(e),i=(0,h.wx)(e),a=(0,n.A)({},(0,b.Zk)(e));let s=!1;o.forEach((e=>{if((e=>"server"===t.filterMode?!l[e]:!0!==i[e])(e)){if(t.keepNonExistentRowsSelected)return;return delete a[e],void(s=!0)}if(!t.rowSelectionPropagation?.parents)return;const r=C[e];if("group"===r.type){if(r.isAutoGenerated)return delete a[e],void(s=!0);r.children.every((e=>!1===i[e]))||(delete a[e],s=!0)}}));const c=v&&t.rowSelectionPropagation?.parents&&Object.keys(a).length>0;if(s||c&&!r){const t=Object.values(a);c?e.current.selectRows(t,!0,!0):e.current.setRowSelectionModel(t)}}),[e,v,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,C]),T=o.useCallback(((t,r)=>{const n=r.metaKey||r.ctrlKey,o=!c&&!n&&!(0,W.kx)(r),l=!g||o,i=e.current.isRowSelected(t);l?e.current.selectRow(t,!!o||!i,!0):e.current.selectRow(t,!i,!1)}),[e,g,c]),D=o.useCallback(((t,r)=>{if(d)return;const n=r.target.closest(`.${fe.x.cell}`)?.getAttribute("data-field");if(n!==V.f.field&&n!==Fe.Ux){if(n){const t=e.current.getColumn(n);if(t?.type===Ke.D)return}"pinnedRow"!==e.current.getRowNode(t.id).type&&(r.shiftKey&&g?y(t.id):T(t.id,r))}}),[d,g,e,y,T]),z=o.useCallback(((e,t)=>{g&&t.shiftKey&&window.getSelection()?.removeAllRanges()}),[g]),L=o.useCallback(((t,r)=>{g&&r.nativeEvent.shiftKey?y(t.id):e.current.selectRow(t.id,t.value,!g)}),[e,y,g]),$=o.useCallback((r=>{const n=t.pagination&&t.checkboxSelectionVisibleOnly&&"client"===t.paginationMode?(0,he.ee)(e):(0,h.ux)(e);e.current.selectRows(n,r.value)}),[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),N=o.useCallback(((t,r)=>{if(e.current.getCellMode(t.id,t.field)!==He.bs.Edit&&!(0,Te.TA)(r)){if((0,W.q9)(r.key)&&r.shiftKey){const n=(0,j.MO)(e);if(n&&n.id!==t.id){r.preventDefault();const o=e.current.isRowSelected(n.id);if(!g)return void e.current.selectRow(n.id,!o,!0);const l=e.current.getRowIndexRelativeToVisibleRows(n.id),i=e.current.getRowIndexRelativeToVisibleRows(t.id);let a,s;l>i?o?(a=i,s=l-1):(a=i,s=l):o?(a=l+1,s=i):(a=l,s=i);const c=w.rows.slice(a,s+1).map((e=>e.id));return void e.current.selectRows(c,!o)}}if(" "===r.key&&r.shiftKey)return r.preventDefault(),void T(t.id,r);"A"===String.fromCharCode(r.keyCode)&&(r.ctrlKey||r.metaKey)&&(r.preventDefault(),k(e.current.getAllRowIds(),!0))}}),[e,T,k,w.rows,g]);(0,P.cz)(e,"sortedRowsSet",l((()=>O(!0)))),(0,P.cz)(e,"filteredRowsSet",l(O)),(0,P.cz)(e,"rowClick",l(D)),(0,P.cz)(e,"rowSelectionCheckboxChange",l(L)),(0,P.cz)(e,"headerSelectionCheckboxChange",$),(0,P.cz)(e,"cellMouseDown",l(z)),(0,P.cz)(e,"cellKeyDown",l(N)),o.useEffect((()=>{void 0!==a&&e.current.setRowSelectionModel(a)}),[e,a,t.rowSelection]),o.useEffect((()=>{t.rowSelection||e.current.setRowSelectionModel([])}),[e,t.rowSelection]);const B=null!=a;o.useEffect((()=>{if(B||!t.rowSelection)return;const r=(0,b.Bi)(e.current.state);if(S){const t=r.filter((e=>S(e)));t.length<r.length&&e.current.setRowSelectionModel(t)}}),[e,S,B,t.rowSelection]),o.useEffect((()=>{if(!t.rowSelection||B)return;const r=(0,b.Bi)(e.current.state);!g&&r.length>1&&e.current.setRowSelectionModel([])}),[e,g,c,B,t.rowSelection]),o.useEffect((()=>{l(O)}),[O,l])})(r,t),function(e,t){const r=(0,q.q)(e,"useGridColumns"),l=o.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:c.FY,changeEvent:"columnVisibilityModelChange"});const i=o.useCallback((t=>{r.debug("Updating columns state."),e.current.setState(oe(t)),e.current.publishEvent("columnsChange",t.orderedFields),e.current.updateRenderContext?.(),e.current.forceUpdate()}),[r,e]),a=o.useCallback((t=>(0,c.gv)(e)[t]),[e]),s=o.useCallback((()=>(0,c.OV)(e)),[e]),u=o.useCallback((()=>(0,c.iv)(e)),[e]),d=o.useCallback(((t,r=!0)=>(r?(0,c.iv)(e):(0,c.OV)(e)).findIndex((e=>e.field===t))),[e]),p=o.useCallback((t=>{const r=d(t);return(0,c.Sw)(e)[r]}),[e,d]),f=o.useCallback((t=>{(0,c.FY)(e)!==t&&(e.current.setState((r=>(0,n.A)({},r,{columns:(0,ee.Pd)({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.updateRenderContext?.(),e.current.forceUpdate())}),[e]),g=o.useCallback((t=>{const r=(0,ee.Pd)({apiRef:e,columnsToUpsert:t,initialState:void 0,keepOnlyColumnsToUpsert:!1});i(r)}),[e,i]),m=o.useCallback(((t,r)=>{const o=(0,c.FY)(e);if(r!==(o[t]??!0)){const l=(0,n.A)({},o,{[t]:r});e.current.setColumnVisibilityModel(l)}}),[e]),h=o.useCallback((t=>(0,c.JR)(e).findIndex((e=>e===t))),[e]),b=o.useCallback(((t,o)=>{const l=(0,c.JR)(e),a=h(t);if(a===o)return;r.debug(`Moving column ${t} to index ${o}`);const s=[...l],u=s.splice(a,1)[0];s.splice(o,0,u),i((0,n.A)({},(0,c.em)(e.current.state),{orderedFields:s}));const d={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:a};e.current.publishEvent("columnIndexChange",d)}),[e,r,i,h]),w=o.useCallback(((t,o)=>{r.debug(`Updating column ${t} width to ${o}`);const l=(0,c.em)(e.current.state),a=l.lookup[t],s=(0,n.A)({},a,{width:o,hasBeenResized:!0});i((0,ee.LN)((0,n.A)({},l,{lookup:(0,n.A)({},l.lookup,{[t]:s})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:s,width:o})}),[e,r,i]),C={getColumn:a,getAllColumns:s,getColumnIndex:d,getColumnPosition:p,getVisibleColumns:u,getColumnIndexRelativeToVisibleColumns:h,updateColumns:g,setColumnVisibilityModel:f,setColumnVisibility:m,setColumnWidth:w},v={setColumnIndex:b};(0,x.P)(e,C,"public"),(0,x.P)(e,v,t.signature===P.HV.DataGrid?"private":"public");const y=o.useCallback(((r,o)=>{const l={},i=(0,c.FY)(e);(!o.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(i).length>0)&&(l.columnVisibilityModel=i),l.orderedFields=(0,c.JR)(e);const a=(0,c.OV)(e),s={};return a.forEach((e=>{if(e.hasBeenResized){const t={};ee.Pr.forEach((r=>{let n=e[r];n===1/0&&(n=-1),t[r]=n})),s[e.field]=t}})),Object.keys(s).length>0&&(l.dimensions=s),(0,n.A)({},r,{columns:l})}),[e,t.columnVisibilityModel,t.initialState?.columns]),A=o.useCallback(((t,r)=>{const n=r.stateToRestore.columns?.columnVisibilityModel,o=r.stateToRestore.columns;if(null==n&&null==o)return t;const l=(0,ee.Pd)({apiRef:e,columnsToUpsert:[],initialState:o,columnVisibilityModel:n,keepOnlyColumnsToUpsert:!1});return e.current.setState(oe(l)),null!=o&&e.current.publishEvent("columnsChange",l.orderedFields),t}),[e]),R=o.useCallback(((e,r)=>{if(r===te.y.columns){const e=t.slots.columnsPanel;return(0,re.jsx)(e,(0,n.A)({},t.slotProps?.columnsPanel))}return e}),[t.slots.columnsPanel,t.slotProps?.columnsPanel]),S=o.useCallback((e=>t.disableColumnSelector?e:[...e,"columnMenuColumnsItem"]),[t.disableColumnSelector]);Z(e,"columnMenu",S),Z(e,"exportState",y),Z(e,"restoreState",A),Z(e,"preferencePanel",R);const I=o.useRef(null);(0,P.cz)(e,"viewportInnerSizeChange",(t=>{I.current!==t.width&&(I.current=t.width,i((0,ee.LN)((0,c.em)(e.current.state),e.current.getRootDimensions())))}));const M=o.useCallback((()=>{r.info("Columns pipe processing have changed, regenerating the columns");const t=(0,ee.Pd)({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});i(t)}),[e,r,i]);Q(e,"hydrateColumns",M);const k=o.useRef(!0);o.useEffect((()=>{if(k.current)return void(k.current=!1);if(r.info(`GridColumns have changed, new length ${t.columns.length}`),l.current===t.columns)return;const n=(0,ee.Pd)({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});l.current=t.columns,i(n)}),[r,e,i,t.columns]),o.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,r,t.columnVisibilityModel])}(r,t),((e,t)=>{const r=(0,q.q)(e,"useGridRows"),l=(0,Pe.e)(e),i=o.useRef(Date.now()),a=o.useRef(t.rowCount),s=(0,Qe.A)(),c=o.useCallback((t=>{const r=(0,f.rI)(e)[t];if(r)return r;const n=e.current.getRowNode(t);return n&&(0,me.nF)(n)?{[me.gb]:t}:null}),[e]),u=t.getRowId,d=o.useCallback((e=>me.gb in e?e[me.gb]:u?u(e):e.id),[u]),p=o.useMemo((()=>l.rows.reduce(((e,{id:t},r)=>(e[t]=r,e)),{})),[l.rows]),g=o.useCallback((({cache:r,throttle:o})=>{const l=()=>{i.current=Date.now(),e.current.setState((r=>(0,n.A)({},r,{rows:(0,me.TW)({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:(0,f.qj)(e),previousTreeDepths:(0,f.Mz)(e),previousGroupsToFetch:(0,f.r)(e)})}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=r,!o)return void l();const a=t.throttleRowsMs-(Date.now()-i.current);a>0?s.start(a,l):l()}),[t.throttleRowsMs,t.rowCount,t.loading,e,s]),m=o.useCallback((n=>{r.debug(`Updating all rows, new length ${n.length}`);const o=(0,me.Z)({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),l=e.current.caches.rows;o.rowsBeforePartialUpdates=l.rowsBeforePartialUpdates,g({cache:o,throttle:!0})}),[r,t.getRowId,t.loading,t.rowCount,g,e]),b=o.useCallback((r=>{if(t.signature===P.HV.DataGrid&&r.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));const n=(0,me.ro)(e,r,t.getRowId),o=(0,me.Ze)({updates:n,getRowId:t.getRowId,previousCache:e.current.caches.rows});g({cache:o,throttle:!0})}),[t.signature,t.getRowId,g,e]),w=o.useCallback(((r,n)=>{const o=(0,me.ro)(e,r,t.getRowId),l=(0,me.Ze)({updates:o,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:n??[]});g({cache:l,throttle:!1})}),[t.getRowId,g,e]),C=o.useCallback((o=>{o!==t.loading&&(r.debug(`Setting loading to ${o}`),e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{loading:o})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=o)}),[t.loading,e,r]),v=o.useCallback((()=>{const t=(0,f.A6)(e),r=(0,f.rI)(e);return new Map(t.map((e=>[e,r[e]??{}])))}),[e]),y=o.useCallback((()=>(0,f.H0)(e)),[e]),A=o.useCallback((()=>(0,f.A6)(e)),[e]),R=o.useCallback((e=>p[e]),[p]),S=o.useCallback(((t,r)=>{const o=e.current.getRowNode(t);if(!o)throw new Error(`MUI X: No row with id #${t} found.`);if("group"!==o.type)throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const l=(0,n.A)({},o,{childrenExpanded:r});e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{tree:(0,n.A)({},e.rows.tree,{[t]:l})})}))),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",l)}),[e]),I=o.useCallback((t=>(0,f.qj)(e)[t]??null),[e]),M=o.useCallback((({skipAutoGeneratedRows:t=!0,groupId:r,applySorting:n,applyFiltering:o})=>{const l=(0,f.qj)(e);let i;if(n){const n=l[r];if(!n)return[];const o=(0,Je.RJ)(e);i=[];for(let e=o.findIndex((e=>e===r))+1;e<o.length&&l[o[e]].depth>n.depth;e+=1){const r=o[e];t&&(0,me.nF)(l[r])||i.push(r)}}else i=(0,me.l_)(l,r,t);if(o){const t=(0,h.wx)(e);i=i.filter((e=>!1!==t[e]))}return i}),[e]),k=o.useCallback(((t,o)=>{const l=e.current.getRowNode(t);if(!l)throw new Error(`MUI X: No row with id #${t} found.`);if(l.parent!==me.OL)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if("leaf"!==l.type)throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState((l=>{const i=(0,f.qj)(l,e.current.instanceId)[me.OL],a=i.children,s=a.findIndex((e=>e===t));if(-1===s||s===o)return l;r.debug(`Moving row ${t} to index ${o}`);const c=[...a];return c.splice(o,0,c.splice(s,1)[0]),(0,n.A)({},l,{rows:(0,n.A)({},l.rows,{tree:(0,n.A)({},l.rows.tree,{[me.OL]:(0,n.A)({},i,{children:c})})})})})),e.current.publishEvent("rowsSet")}),[e,r]),E={getRow:c,setLoading:C,getRowId:d,getRowModels:v,getRowsCount:y,getAllRowIds:A,setRows:m,updateRows:b,getRowNode:I,getRowIndexRelativeToVisibleRows:R,unstable_replaceRows:o.useCallback(((r,o)=>{if(t.signature===P.HV.DataGrid&&o.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===o.length)return;if((0,f.V2)(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const l=(0,n.A)({},(0,f.qj)(e)),i=(0,n.A)({},(0,f.rI)(e)),a=(0,n.A)({},(0,f.gk)(e)),s=l[me.OL],c=[...s.children],u=new Set;for(let e=0;e<o.length;e+=1){const n=o[e],s=(0,me.HZ)(n,t.getRowId,"A row was provided without id when calling replaceRows()."),[d]=c.splice(r+e,1,s);u.has(d)||(delete i[d],delete a[d],delete l[d]);const p={id:s,depth:0,parent:me.OL,type:"leaf",groupingKey:null};i[s]=n,a[s]=s,l[s]=p,u.add(s)}l[me.OL]=(0,n.A)({},s,{children:c});const d=c.filter((e=>"leaf"===l[e]?.type));e.current.caches.rows.dataRowIdToModelLookup=i,e.current.caches.rows.dataRowIdToIdLookup=a,e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{dataRowIdToModelLookup:i,dataRowIdToIdLookup:a,dataRowIds:d,tree:l})}))),e.current.publishEvent("rowsSet")}),[e,t.signature,t.getRowId])},F={setRowIndex:k,setRowChildrenExpansion:S,getRowGroupChildren:M},H={updateServerRows:w},O=o.useCallback((()=>{let o;r.info("Row grouping pre-processing have changed, regenerating the row tree"),o=e.current.caches.rows.rowsBeforePartialUpdates===t.rows?(0,n.A)({},e.current.caches.rows,{updates:{type:"full",rows:(0,f.A6)(e)}}):(0,me.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),g({cache:o,throttle:!1})}),[r,e,t.rows,t.getRowId,t.loading,t.rowCount,g]),T=(0,xe.A)((()=>t.unstable_dataSource)),D=o.useCallback((e=>{t.unstable_dataSource&&t.unstable_dataSource!==T.current?T.current=t.unstable_dataSource:"rowTreeCreation"===e&&O()}),[O,T,t.unstable_dataSource]),z=o.useCallback((()=>{e.current.getActiveStrategy("rowTree")!==(0,f.Y1)(e)&&O()}),[e,O]);(0,P.cz)(e,"activeStrategyProcessorChange",D),(0,P.cz)(e,"strategyAvailabilityChange",z);const L=o.useCallback((()=>{e.current.setState((r=>{const o=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:(0,f.qj)(r,e.current.instanceId),treeDepths:(0,f.Mz)(r,e.current.instanceId),dataRowIds:(0,f.A6)(r,e.current.instanceId),dataRowIdToModelLookup:(0,f.rI)(r,e.current.instanceId),dataRowIdToIdLookup:(0,f.gk)(r,e.current.instanceId)});return(0,n.A)({},r,{rows:(0,n.A)({},r.rows,o,{totalTopLevelRowCount:(0,me.fS)({tree:o.tree,rowCountProp:t.rowCount})})})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e,t.rowCount]);Q(e,"hydrateRows",L),(0,x.P)(e,E,"public"),(0,x.P)(e,F,t.signature===P.HV.DataGrid?"private":"public"),(0,x.P)(e,H,"private");const $=o.useRef(!0);o.useEffect((()=>{if($.current)return void($.current=!1);let o=!1;t.rowCount!==a.current&&(o=!0,a.current=t.rowCount);const l=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,i=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,s=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;l&&(i||(e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{loading:t.loading})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),s||(e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{totalRowCount:Math.max(t.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,e.rows.totalTopLevelRowCount)})}))),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!o)||(r.debug(`Updating all rows, new length ${t.rows?.length}`),g({cache:(0,me.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))}),[t.rows,t.rowCount,t.getRowId,t.loading,r,g,e])})(r,t),((e,t)=>{const{range:r,rows:l}=(0,Pe.h)(e,t),i=(0,u.Nc)(e,dt.nZ),a=(0,u.Nc)(e,c.iv),s=(0,u.Nc)(e,f.qj),d=(0,xe.A)((()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(20,Math.max(e.current.state.rows.dataRowIds.length,0))}:Bt)),p=o.useRef(Bt),g=o.useCallback(((o=!0)=>{if(!t.unstable_rowSpanning)return void(e.current.state.rowSpanning!==Vt&&e.current.setState((e=>(0,n.A)({},e,{rowSpanning:Vt}))));if(null===r||!function(e){return 0!==e.firstRowIndex||0!==e.lastRowIndex}(i))return;o&&(d.current=Bt);const s=function(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}({firstRowIndex:i.firstRowIndex,lastRowIndex:Math.min(i.lastRowIndex,r.lastRowIndex+1)},d.current);if(null===s)return;const{spannedCells:c,hiddenCells:u,hiddenCellOriginMap:p,processedRange:f}=_t(e,a,l,r,s,o,d.current);d.current=f;const g=Object.keys(c).length,m=Object.keys(u).length,h=Object.keys(e.current.state.rowSpanning.spannedCells).length,b=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(o||g!==h||m!==b)&&e.current.setState((e=>(0,n.A)({},e,{rowSpanning:{spannedCells:c,hiddenCells:u,hiddenCellOriginMap:p}})))}),[e,t.unstable_rowSpanning,r,i,l,a,d]),m=o.useRef(i),h=o.useRef(!0),b=o.useRef(!1),w=o.useRef(s);o.useEffect((()=>{const e=h.current;return h.current&&(h.current=!1),s!==w.current?(w.current=s,void g(!0)):(r&&p.current&&Nt(r,p.current)&&(p.current=r,b.current=!0),e||m.current===i?void g():(Nt(m.current,i)&&(g(b.current),b.current=!1),void(m.current=i)))}),[g,i,r,p,s])})(r,t),function(e,t){const r=o.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),n=o.useCallback((t=>{const r=e.current.getRow(t);if(!r)throw new rt(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:r}}),[e]),l=o.useCallback(((r,n)=>{const o=t.unstable_listView?(0,$e.W)(e.current.state):e.current.getColumn(n),l=e.current.getRow(r),i=e.current.getRowNode(r);if(!l||!i)throw new rt(`No row with id #${r} found`);const a=l[n],s=o?.valueGetter?o.valueGetter(a,l,o,e):a,c=(0,j.MO)(e),u=(0,j.H5)(e),d={id:r,field:n,row:l,rowNode:i,colDef:o,cellMode:e.current.getCellMode(r,n),hasFocus:null!==c&&c.field===n&&c.id===r,tabIndex:u&&u.field===n&&u.id===r?0:-1,value:s,formattedValue:s,isEditable:!1,api:{}};return o&&o.valueFormatter&&(d.formattedValue=o.valueFormatter(s,l,o,e)),d.isEditable=o&&e.current.isCellEditable(d),d}),[e,t.unstable_listView]),i=o.useCallback(((t,r)=>{const n=e.current.getColumn(r),o=e.current.getRow(t);if(!o)throw new rt(`No row with id #${t} found`);return n&&n.valueGetter?n.valueGetter(o[n.field],o,n,e):o[r]}),[e]),a=o.useCallback(((t,r)=>{const n=r.field;if(!r||!r.valueGetter)return t[n];const o=t[r.field];return r.valueGetter(o,t,r,e)}),[e]),s=o.useCallback(((t,r)=>{const n=a(t,r);return r&&r.valueFormatter?r.valueFormatter(n,t,r,e):n}),[e,a]),c=o.useCallback((t=>e.current.rootElementRef.current?(0,Te.u)(e.current.rootElementRef.current,t):null),[e]),u=o.useCallback((t=>e.current.rootElementRef.current?(0,Te.v_)(e.current.rootElementRef.current,t):null),[e]),d={getCellValue:i,getCellParams:l,getCellElement:o.useCallback(((t,r)=>e.current.rootElementRef.current?(0,Te.xE)(e.current.rootElementRef.current,{id:t,field:r}):null),[e]),getRowValue:a,getRowFormattedValue:s,getRowParams:n,getRowElement:u,getColumnHeaderParams:r,getColumnHeaderElement:c};(0,x.P)(e,d,"public")}(r,t),(e=>{const t=o.useRef({}),r=()=>{t.current={}},n={unstable_getCellColSpanInfo:(e,r)=>t.current[e]?.[r]},l={resetColSpan:r,calculateColSpan:o.useCallback((({rowId:r,minFirstColumn:n,maxLastColumn:o,columns:l})=>{for(let i=n;i<o;i+=1){const a=vt({apiRef:e,lookup:t.current,columnIndex:i,rowId:r,minFirstColumnIndex:n,maxLastColumnIndex:o,columns:l});a.colSpan>1&&(i+=a.colSpan-1)}}),[e])};(0,x.P)(e,n,"public"),(0,x.P)(e,l,"private"),(0,P.cz)(e,"columnOrderChange",r)})(r),((e,t)=>{const r={getColumnGroupPath:o.useCallback((t=>(0,p.TQ)(e)[t]??[]),[e]),getAllGroupDetails:o.useCallback((()=>(0,p.ED)(e)),[e])};(0,x.P)(e,r,"public");const l=o.useCallback((()=>{const r=Rt(t.columnGroupingModel??[]);e.current.setState((e=>{const t=e.columns?.orderedFields??[],o=e.pinnedColumns??{},l=St(t,r,o);return(0,n.A)({},e,{columnGrouping:(0,n.A)({},e.columnGrouping,{headerStructure:l})})}))}),[e,t.columnGroupingModel]),i=o.useCallback((t=>{const r=e.current.getPinnedColumns?.()??{},o=(0,c.JR)(e),l=(0,c.TI)(e),i=Mt(t??[]),a=Rt(t??[]),s=St(o,a,r),u=0===l.length?0:Math.max(...l.map((e=>a[e]?.length??0)));e.current.setState((e=>(0,n.A)({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})))}),[e]);(0,P.cz)(e,"columnIndexChange",l),(0,P.cz)(e,"columnsChange",(()=>{i(t.columnGroupingModel)})),(0,P.cz)(e,"columnVisibilityModelChange",(()=>{i(t.columnGroupingModel)})),o.useEffect((()=>{i(t.columnGroupingModel)}),[i,t.columnGroupingModel])})(r,t),((e,t)=>{((e,t)=>{const[r,l]=o.useState({}),i=o.useRef(r),a=o.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:c,cellModesModel:u,onCellModesModelChange:d}=t,p=e=>(...r)=>{t.editMode===He.RL.Cell&&e(...r)},g=o.useCallback(((t,r)=>{const n=e.current.getCellParams(t,r);if(!e.current.isCellEditable(n))throw new Error(`MUI X: The cell with id=${t} and field=${r} is not editable.`)}),[e]),m=o.useCallback(((t,r,n)=>{if(e.current.getCellMode(t,r)!==n)throw new Error(`MUI X: The cell with id=${t} and field=${r} is not in ${n} mode.`)}),[e]),h=o.useCallback(((t,r)=>{if(!t.isEditable)return;if(t.cellMode===He.bs.Edit)return;const o=(0,n.A)({},t,{reason:Ge.a.cellDoubleClick});e.current.publishEvent("cellEditStart",o,r)}),[e]),b=o.useCallback(((t,r)=>{if(t.cellMode===He.bs.View)return;if(e.current.getCellMode(t.id,t.field)===He.bs.View)return;const o=(0,n.A)({},t,{reason:Ge.Q.cellFocusOut});e.current.publishEvent("cellEditStop",o,r)}),[e]),w=o.useCallback(((t,r)=>{if(t.cellMode===He.bs.Edit){if(229===r.which)return;let o;if("Escape"===r.key?o=Ge.Q.escapeKeyDown:"Enter"===r.key?o=Ge.Q.enterKeyDown:"Tab"===r.key&&(o=r.shiftKey?Ge.Q.shiftTabKeyDown:Ge.Q.tabKeyDown,r.preventDefault()),o){const l=(0,n.A)({},t,{reason:o});e.current.publishEvent("cellEditStop",l,r)}}else if(t.isEditable){let o;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"cell"}))return;if((0,W.TW)(r)?o=Ge.a.printableKeyDown:(0,W.IA)(r)?o=Ge.a.pasteKeyDown:"Enter"===r.key?o=Ge.a.enterKeyDown:"Backspace"!==r.key&&"Delete"!==r.key||(o=Ge.a.deleteKeyDown),o){const l=(0,n.A)({},t,{reason:o,key:r.key});e.current.publishEvent("cellEditStart",l,r)}}}),[e]),C=o.useCallback((t=>{const{id:r,field:n,reason:o}=t,l={id:r,field:n};o!==Ge.a.printableKeyDown&&o!==Ge.a.deleteKeyDown&&o!==Ge.a.pasteKeyDown||(l.deleteValue=!0),e.current.startCellEditMode(l)}),[e]),y=o.useCallback((t=>{const{id:r,field:n,reason:o}=t;let l;e.current.runPendingEditCellValueMutation(r,n),o===Ge.Q.enterKeyDown?l="below":o===Ge.Q.tabKeyDown?l="right":o===Ge.Q.shiftTabKeyDown&&(l="left");const i="escapeKeyDown"===o;e.current.stopCellEditMode({id:r,field:n,ignoreModifications:i,cellToFocusAfter:l})}),[e]);var A;(0,P.cz)(e,"cellDoubleClick",p(h)),(0,P.cz)(e,"cellFocusOut",p(b)),(0,P.cz)(e,"cellKeyDown",p(w)),(0,P.cz)(e,"cellEditStart",p(C)),(0,P.cz)(e,"cellEditStop",p(y)),(0,P.re)(e,"cellEditStart",t.onCellEditStart),(0,P.re)(e,"cellEditStop",(A=t.onCellEditStop,async(...t)=>{if(A){const{id:r,field:n}=t[0],o=e.current.state.editRows,l=o[r][n]?.error;l||A(...t)}}));const R=o.useCallback(((t,r)=>{const n=(0,Be.w)(e.current.state);return n[t]&&n[t][r]?He.bs.Edit:He.bs.View}),[e]),S=(0,le.A)((r=>{const n=r!==t.cellModesModel;d&&n&&d(r,{api:e.current}),t.cellModesModel&&n||(l(r),i.current=r,e.current.publishEvent("cellModesModelChange",r))})),I=o.useCallback(((e,t,r)=>{const o=(0,n.A)({},i.current);if(null!==r)o[e]=(0,n.A)({},o[e],{[t]:(0,n.A)({},r)});else{const r=o[e],n=(0,H.A)(r,[t].map(T));o[e]=n,0===Object.keys(o[e]).length&&delete o[e]}S(o)}),[S]),M=o.useCallback(((t,r,o)=>{e.current.setState((e=>{const l=(0,n.A)({},e.editRows);return null!==o?l[t]=(0,n.A)({},l[t],{[r]:(0,n.A)({},o)}):(delete l[t][r],0===Object.keys(l[t]).length&&delete l[t]),(0,n.A)({},e,{editRows:l})})),e.current.forceUpdate()}),[e]),k=o.useCallback((e=>{const{id:t,field:r}=e,o=(0,H.A)(e,We);g(t,r),m(t,r,He.bs.View),I(t,r,(0,n.A)({mode:He.bs.Edit},o))}),[g,m,I]),E=(0,le.A)((async t=>{const{id:r,field:o,deleteValue:l,initialValue:i}=t,a=e.current.getCellValue(r,o);let s=a;l?s=_e(e.current.getColumn(o)):i&&(s=i);const c=e.current.getColumn(o),u=!!c.preProcessEditCellProps&&l;let d={value:s,error:!1,isProcessingProps:u};if(M(r,o,d),e.current.setCellFocus(r,o),u&&(d=await Promise.resolve(c.preProcessEditCellProps({id:r,row:e.current.getRow(r),props:d,hasChanged:s!==a})),e.current.getCellMode(r,o)===He.bs.Edit)){const t=(0,Be.w)(e.current.state);M(r,o,(0,n.A)({},d,{value:t[r][o].value,isProcessingProps:!1}))}})),F=o.useCallback((e=>{const{id:t,field:r}=e,o=(0,H.A)(e,Ue);m(t,r,He.bs.Edit),I(t,r,(0,n.A)({mode:He.bs.View},o))}),[m,I]),O=(0,le.A)((async t=>{const{id:r,field:n,ignoreModifications:o,cellToFocusAfter:l="none"}=t;m(r,n,He.bs.Edit),e.current.runPendingEditCellValueMutation(r,n);const i=()=>{M(r,n,null),I(r,n,null),"none"!==l&&e.current.moveFocusToRelativeCell(r,n,l)};if(o)return void i();const u=(0,Be.w)(e.current.state),{error:d,isProcessingProps:p}=u[r][n];if(d||p)return a.current[r][n].mode=He.bs.Edit,void I(r,n,{mode:He.bs.Edit});const f=e.current.getRowWithUpdatedValuesFromCellEditing(r,n);if(s){const t=e=>{a.current[r][n].mode=He.bs.Edit,I(r,n,{mode:He.bs.Edit}),c&&c(e)};try{const n=e.current.getRow(r);Promise.resolve(s(f,n,{rowId:r})).then((t=>{e.current.updateRows([t]),i()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([f]),i()})),D={getCellMode:R,startCellEditMode:k,stopCellEditMode:F},z={setCellEditingEditCellValue:o.useCallback((async t=>{const{id:r,field:o,value:l,debounceMs:i,unstable_skipValueParser:a}=t;g(r,o),m(r,o,He.bs.Edit);const s=e.current.getColumn(o),c=e.current.getRow(r);let u=l;s.valueParser&&!a&&(u=s.valueParser(l,c,s,e));let d=(0,Be.w)(e.current.state),p=(0,n.A)({},d[r][o],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});if(s.preProcessEditCellProps){const e=l!==d[r][o].value;p=(0,n.A)({},p,{isProcessingProps:!0}),M(r,o,p),p=await Promise.resolve(s.preProcessEditCellProps({id:r,row:c,props:p,hasChanged:e}))}return e.current.getCellMode(r,o)!==He.bs.View&&(d=(0,Be.w)(e.current.state),p=(0,n.A)({},p,{isProcessingProps:!1}),p.value=s.preProcessEditCellProps?d[r][o].value:u,M(r,o,p),d=(0,Be.w)(e.current.state),!d[r]?.[o]?.error)}),[e,g,m,M]),getRowWithUpdatedValuesFromCellEditing:o.useCallback(((t,r)=>{const o=e.current.getColumn(r),l=(0,Be.w)(e.current.state),i=e.current.getRow(t);if(!l[t]||!l[t][r])return e.current.getRow(t);const{value:a}=l[t][r];return o.valueSetter?o.valueSetter(a,i,o,e):(0,n.A)({},i,{[r]:a})}),[e])};(0,x.P)(e,D,"public"),(0,x.P)(e,z,"private"),o.useEffect((()=>{u&&S(u)}),[u,S]),(0,ve.A)((()=>{const t=(0,f.gk)(e),o=a.current;a.current=(0,v.Go)(r),Object.entries(r).forEach((([e,r])=>{Object.entries(r).forEach((([r,l])=>{const i=o[e]?.[r]?.mode||He.bs.View,a=t[e]??e;l.mode===He.bs.Edit&&i===He.bs.View?E((0,n.A)({id:a,field:r},l)):l.mode===He.bs.View&&i===He.bs.Edit&&O((0,n.A)({id:a,field:r},l))}))}))}),[e,r,E,O])})(e,t),((e,t)=>{const[r,l]=o.useState({}),i=o.useRef(r),a=o.useRef({}),s=o.useRef(void 0),u=o.useRef(null),{processRowUpdate:d,onProcessRowUpdateError:p,rowModesModel:g,onRowModesModelChange:m}=t,h=e=>(...r)=>{t.editMode===He.RL.Row&&e(...r)},b=o.useCallback(((t,r)=>{const n=e.current.getCellParams(t,r);if(!e.current.isCellEditable(n))throw new Error(`MUI X: The cell with id=${t} and field=${r} is not editable.`)}),[e]),w=o.useCallback(((t,r)=>{if(e.current.getRowMode(t)!==r)throw new Error(`MUI X: The row with id=${t} is not in ${r} mode.`)}),[e]),C=o.useCallback((t=>{const r=(0,Be.w)(e.current.state);return Object.values(r[t]).some((e=>e.error))}),[e]),y=o.useCallback(((t,r)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===He.V_.Edit)return;const o=e.current.getRowParams(t.id),l=(0,n.A)({},o,{field:t.field,reason:qe.a.cellDoubleClick});e.current.publishEvent("rowEditStart",l,r)}),[e]),A=o.useCallback((e=>{u.current=e}),[]),R=o.useCallback(((t,r)=>{t.isEditable&&e.current.getRowMode(t.id)!==He.V_.View&&(u.current=null,s.current=setTimeout((()=>{if(u.current?.id!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===He.V_.View)return;if(C(t.id))return;const o=e.current.getRowParams(t.id),l=(0,n.A)({},o,{field:t.field,reason:qe.q.rowFocusOut});e.current.publishEvent("rowEditStop",l,r)}})))}),[e,C]);o.useEffect((()=>()=>{clearTimeout(s.current)}),[]);const S=o.useCallback(((t,r)=>{if(t.cellMode===He.V_.Edit){if(229===r.which)return;let o;if("Escape"===r.key)o=qe.q.escapeKeyDown;else if("Enter"===r.key)o=qe.q.enterKeyDown;else if("Tab"===r.key){const n=(0,c.TI)(e).filter((r=>e.current.getColumn(r).type===Ke.D||e.current.isCellEditable(e.current.getCellParams(t.id,r))));if(r.shiftKey?t.field===n[0]&&(o=qe.q.shiftTabKeyDown):t.field===n[n.length-1]&&(o=qe.q.tabKeyDown),r.preventDefault(),!o){const o=n.findIndex((e=>e===t.field)),l=n[r.shiftKey?o-1:o+1];e.current.setCellFocus(t.id,l)}}if(o){if(o!==qe.q.escapeKeyDown&&C(t.id))return;const l=(0,n.A)({},e.current.getRowParams(t.id),{reason:o,field:t.field});e.current.publishEvent("rowEditStop",l,r)}}else if(t.isEditable){let o;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"row"}))return;if((0,W.TW)(r)||(0,W.IA)(r)?o=qe.a.printableKeyDown:"Enter"===r.key?o=qe.a.enterKeyDown:"Backspace"!==r.key&&"Delete"!==r.key||(o=qe.a.deleteKeyDown),o){const l=e.current.getRowParams(t.id),i=(0,n.A)({},l,{field:t.field,reason:o});e.current.publishEvent("rowEditStart",i,r)}}}),[e,C]),I=o.useCallback((t=>{const{id:r,field:n,reason:o}=t,l={id:r,fieldToFocus:n};o!==qe.a.printableKeyDown&&o!==qe.a.deleteKeyDown||(l.deleteValue=!!n),e.current.startRowEditMode(l)}),[e]),M=o.useCallback((t=>{const{id:r,reason:n,field:o}=t;let l;e.current.runPendingEditCellValueMutation(r),n===qe.q.enterKeyDown?l="below":n===qe.q.tabKeyDown?l="right":n===qe.q.shiftTabKeyDown&&(l="left");const i="escapeKeyDown"===n;e.current.stopRowEditMode({id:r,ignoreModifications:i,field:o,cellToFocusAfter:l})}),[e]);(0,P.cz)(e,"cellDoubleClick",h(y)),(0,P.cz)(e,"cellFocusIn",h(A)),(0,P.cz)(e,"cellFocusOut",h(R)),(0,P.cz)(e,"cellKeyDown",h(S)),(0,P.cz)(e,"rowEditStart",h(I)),(0,P.cz)(e,"rowEditStop",h(M)),(0,P.re)(e,"rowEditStart",t.onRowEditStart),(0,P.re)(e,"rowEditStop",t.onRowEditStop);const k=o.useCallback((r=>{if(t.editMode===He.RL.Cell)return He.V_.View;const n=(0,Be.w)(e.current.state);return n[r]&&Object.keys(n[r]).length>0?He.V_.Edit:He.V_.View}),[e,t.editMode]),E=(0,le.A)((r=>{const n=r!==t.rowModesModel;m&&n&&m(r,{api:e.current}),t.rowModesModel&&n||(l(r),i.current=r,e.current.publishEvent("rowModesModelChange",r))})),F=o.useCallback(((e,t)=>{const r=(0,n.A)({},i.current);null!==t?r[e]=(0,n.A)({},t):delete r[e],E(r)}),[E]),O=o.useCallback(((t,r)=>{e.current.setState((e=>{const o=(0,n.A)({},e.editRows);return null!==r?o[t]=r:delete o[t],(0,n.A)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),D=o.useCallback(((t,r,o)=>{e.current.setState((e=>{const l=(0,n.A)({},e.editRows);return null!==o?l[t]=(0,n.A)({},l[t],{[r]:(0,n.A)({},o)}):(delete l[t][r],0===Object.keys(l[t]).length&&delete l[t]),(0,n.A)({},e,{editRows:l})})),e.current.forceUpdate()}),[e]),z=o.useCallback((e=>{const{id:t}=e,r=(0,H.A)(e,Xe);w(t,He.V_.View),F(t,(0,n.A)({mode:He.V_.Edit},r))}),[w,F]),L=(0,le.A)((t=>{const{id:r,fieldToFocus:o,deleteValue:l,initialValue:i}=t,a=(0,c.JR)(e),s=a.reduce(((t,n)=>{if(!e.current.getCellParams(r,n).isEditable)return t;const a=e.current.getColumn(n);let s=e.current.getCellValue(r,n);return o===n&&(l||i)&&(l?s=_e(a):i&&(s=i)),t[n]={value:s,error:!1,isProcessingProps:!!a.preProcessEditCellProps&&l},t}),{});O(r,s),o&&e.current.setCellFocus(r,o),a.filter((t=>!!e.current.getColumn(t).preProcessEditCellProps&&l)).forEach((t=>{const o=e.current.getColumn(t),a=e.current.getCellValue(r,t),c=l?_e(o):i??a;Promise.resolve(o.preProcessEditCellProps({id:r,row:e.current.getRow(r),props:s[t],hasChanged:c!==a})).then((o=>{if(e.current.getRowMode(r)===He.V_.Edit){const l=(0,Be.w)(e.current.state);D(r,t,(0,n.A)({},o,{value:l[r][t].value,isProcessingProps:!1}))}}))}))})),$=o.useCallback((e=>{const{id:t}=e,r=(0,H.A)(e,Ye);w(t,He.V_.Edit),F(t,(0,n.A)({mode:He.V_.View},r))}),[w,F]),N=(0,le.A)((t=>{const{id:r,ignoreModifications:n,field:o,cellToFocusAfter:l="none"}=t;e.current.runPendingEditCellValueMutation(r);const i=()=>{"none"!==l&&o&&e.current.moveFocusToRelativeCell(r,o,l),O(r,null),F(r,null)};if(n)return void i();const s=(0,Be.w)(e.current.state),c=e.current.getRow(r);if(Object.values(s[r]).some((e=>e.isProcessingProps)))return void(a.current[r].mode=He.V_.Edit);if(C(r))return a.current[r].mode=He.V_.Edit,void F(r,{mode:He.V_.Edit});const u=e.current.getRowWithUpdatedValuesFromRowEditing(r);if(d){const t=e=>{a.current[r].mode=He.V_.Edit,F(r,{mode:He.V_.Edit}),p&&p(e)};try{Promise.resolve(d(u,c,{rowId:r})).then((t=>{e.current.updateRows([t]),i()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([u]),i()})),j={getRowMode:k,startRowEditMode:z,stopRowEditMode:$},V={setRowEditingEditCellValue:o.useCallback((t=>{const{id:r,field:o,value:l,debounceMs:i,unstable_skipValueParser:a}=t;b(r,o);const s=e.current.getColumn(o),c=e.current.getRow(r);let u=l;s.valueParser&&!a&&(u=s.valueParser(l,c,s,e));let d=(0,Be.w)(e.current.state),p=(0,n.A)({},d[r][o],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return s.preProcessEditCellProps||D(r,o,p),new Promise((t=>{const l=[];if(s.preProcessEditCellProps){const i=p.value!==d[r][o].value;p=(0,n.A)({},p,{isProcessingProps:!0}),D(r,o,p);const a=d[r],f=(0,H.A)(a,[o].map(T)),g=Promise.resolve(s.preProcessEditCellProps({id:r,row:c,props:p,hasChanged:i,otherFieldsProps:f})).then((l=>{e.current.getRowMode(r)!==He.V_.View?(d=(0,Be.w)(e.current.state),(l=(0,n.A)({},l,{isProcessingProps:!1})).value=s.preProcessEditCellProps?d[r][o].value:u,D(r,o,l)):t(!1)}));l.push(g)}Object.entries(d[r]).forEach((([i,a])=>{if(i===o)return;const s=e.current.getColumn(i);if(!s.preProcessEditCellProps)return;a=(0,n.A)({},a,{isProcessingProps:!0}),D(r,i,a),d=(0,Be.w)(e.current.state);const u=d[r],p=(0,H.A)(u,[i].map(T)),f=Promise.resolve(s.preProcessEditCellProps({id:r,row:c,props:a,hasChanged:!1,otherFieldsProps:p})).then((o=>{e.current.getRowMode(r)!==He.V_.View?(o=(0,n.A)({},o,{isProcessingProps:!1}),D(r,i,o)):t(!1)}));l.push(f)})),Promise.all(l).then((()=>{e.current.getRowMode(r)===He.V_.Edit?(d=(0,Be.w)(e.current.state),t(!d[r][o].error)):t(!1)}))}))}),[e,b,D]),getRowWithUpdatedValuesFromRowEditing:o.useCallback((t=>{const r=(0,Be.w)(e.current.state),o=e.current.getRow(t);if(!r[t])return e.current.getRow(t);let l=(0,n.A)({},o);return Object.entries(r[t]).forEach((([t,r])=>{const n=e.current.getColumn(t);n.valueSetter?l=n.valueSetter(r.value,l,n,e):l[t]=r.value})),l}),[e])};(0,x.P)(e,j,"public"),(0,x.P)(e,V,"private"),o.useEffect((()=>{g&&E(g)}),[g,E]),(0,ve.A)((()=>{const t=(0,f.gk)(e),o=a.current;a.current=(0,v.Go)(r);const l=new Set([...Object.keys(r),...Object.keys(o)]);Array.from(l).forEach((e=>{const l=r[e]??{mode:He.V_.View},i=o[e]?.mode||He.V_.View,a=t[e]??e;l.mode===He.V_.Edit&&i===He.V_.View?L((0,n.A)({id:a},l)):l.mode===He.V_.View&&i===He.V_.Edit&&N((0,n.A)({id:a},l))}))}),[e,r,L,N])})(e,t);const r=o.useRef({}),{isCellEditable:l}=t,i=o.useCallback((e=>!(0,me.nF)(e.rowNode)&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!l||l(e))),[l]);o.useEffect((()=>{const e=r.current;return()=>{Object.entries(e).forEach((([t,r])=>{Object.keys(r).forEach((r=>{const[n]=e[t][r];clearTimeout(n),delete e[t][r]}))}))}}),[]);const a=o.useCallback(((e,t)=>{if(r.current[e])if(t){if(r.current[e][t]){const[,n]=r.current[e][t];n()}}else Object.keys(r.current[e]).forEach((t=>{const[,n]=r.current[e][t];n()}))}),[]),s={isCellEditable:i,setEditCellValue:o.useCallback((n=>{const{id:o,field:l,debounceMs:i}=n;return new Promise((a=>{((e,t,n,o)=>{if(!n)return void o();if(r.current[e]||(r.current[e]={}),r.current[e][t]){const[n]=r.current[e][t];clearTimeout(n)}const l=setTimeout((()=>{o(),delete r.current[e][t]}),n);r.current[e][t]=[l,()=>{const[n]=r.current[e][t];clearTimeout(n),o(),delete r.current[e][t]}]})(o,l,i,(async()=>{const r=t.editMode===He.RL.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(o,l)===He.bs.Edit){const e=await r(n);a(e)}}))}))}),[e,t.editMode]),getRowWithUpdatedValues:o.useCallback(((r,n)=>t.editMode===He.RL.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(r,n):e.current.getRowWithUpdatedValuesFromRowEditing(r)),[e,t.editMode]),unstable_getEditCellMeta:o.useCallback(((t,r)=>{const n=(0,Be.w)(e.current.state);return n[t]?.[r]??null}),[e])},u={runPendingEditCellValueMutation:a};(0,x.P)(e,s,"public"),(0,x.P)(e,u,"private")})(r,t),((e,t)=>{const r=(0,q.q)(e,"useGridFocus"),l=o.useRef(null),i=null!==e.current.rootElementRef.current,a=o.useCallback(((t,r)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),r)}),[e]),s=o.useCallback(((t,o)=>{const l=(0,j.MO)(e);l?.id===t&&l?.field===o||(e.current.setState((e=>(r.debug(`Focusing on cell with id=${t} and field=${o}`),(0,n.A)({},e,{tabIndex:{cell:{id:t,field:o},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:t,field:o},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),e.current.forceUpdate(),e.current.getRow(t)&&(l&&a(l,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,o))))}),[e,r,a]),u=o.useCallback(((t,o={})=>{const l=(0,j.MO)(e);a(l,o),e.current.setState((e=>(r.debug(`Focusing on column header with colIndex=${t}`),(0,n.A)({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,r,a]),d=o.useCallback(((t,o={})=>{const l=(0,j.MO)(e);a(l,o),e.current.setState((e=>(r.debug(`Focusing on column header filter with colIndex=${t}`),(0,n.A)({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,r,a]),p=o.useCallback(((t,r,o={})=>{const l=(0,j.MO)(e);l&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(l.id,l.field),o),e.current.setState((e=>(0,n.A)({},e,{tabIndex:{columnGroupHeader:{field:t,depth:r},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:t,depth:r},columnHeader:null,columnHeaderFilter:null,cell:null}}))),e.current.forceUpdate()}),[e]),g=o.useCallback((()=>(0,j.WO)(e)),[e]),m=o.useCallback(((r,n,o)=>{let l=e.current.getColumnIndex(n);const i=(0,c.iv)(e),a=(0,Pe.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode}),s=(0,f.$2)(e),u=[].concat(s.top||[],a.rows,s.bottom||[]);let d=u.findIndex((e=>e.id===r));"right"===o?l+=1:"left"===o?l-=1:d+=1,l>=i.length?(d+=1,d<u.length&&(l=0)):l<0&&(d-=1,d>=0&&(l=i.length-1)),d=(0,v.qE)(d,0,u.length-1);const p=u[d];if(!p)return;const g=e.current.unstable_getCellColSpanInfo(p.id,l);g&&g.spannedByColSpan&&("left"===o||"below"===o?l=g.leftVisibleCellIndex:"right"===o&&(l=g.rightVisibleCellIndex)),l=(0,v.qE)(l,0,i.length-1);const m=i[l];e.current.setCellFocus(p.id,m.field)}),[e,t.pagination,t.paginationMode]),h=o.useCallback((({id:t,field:r})=>{e.current.setCellFocus(t,r)}),[e]),b=o.useCallback(((t,r)=>{"Enter"===r.key||"Tab"===r.key||"Shift"===r.key||(0,W.q9)(r.key)||e.current.setCellFocus(t.id,t.field)}),[e]),w=o.useCallback((({field:t},r)=>{r.target===r.currentTarget&&e.current.setColumnHeaderFocus(t,r)}),[e]),C=o.useCallback((({fields:t,depth:r},n)=>{if(n.target!==n.currentTarget)return;const o=(0,j.WO)(e);null!==o&&o.depth===r&&t.includes(o.field)||e.current.setColumnGroupHeaderFocus(t[0],r,n)}),[e]),y=o.useCallback(((t,o)=>{o.relatedTarget?.getAttribute("class")?.includes(fe.x.columnHeader)||(r.debug("Clearing focus"),e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[r,e]),A=o.useCallback((e=>{l.current=e}),[]),R=o.useCallback((t=>{const r=l.current;l.current=null;const o=(0,j.MO)(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:r}))return;if(!o)return void(r&&e.current.setCellFocus(r.id,r.field));if(r?.id===o.id&&r?.field===o.field)return;const i=e.current.getCellElement(o.id,o.field);i?.contains(t.target)||(r?e.current.setCellFocus(r.id,r.field):(e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),a(o,t)))}),[e,a]),S=o.useCallback((t=>{if("view"===t.cellMode)return;const r=(0,j.MO)(e);r?.id===t.id&&r?.field===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),I=o.useCallback((()=>{const r=(0,j.MO)(e);if(r&&!e.current.getRow(r.id)){const o=(0,j.MO)(e)?.id;let l=null;if(void 0!==o){const r=e.current.getRowIndexRelativeToVisibleRows(o),n=(0,Pe.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode}),i=n.rows[(0,v.qE)(r,0,n.rows.length-1)];l=i?.id??null}e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null===l?null:{id:l,field:r.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}}),[e,t.pagination,t.paginationMode]),M=(0,le.A)((()=>{const r=(0,j.MO)(e);if(!r)return;const o=(0,Pe.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(o.rows.find((e=>e.id===r.id)))return;const l=(0,c.iv)(e);e.current.setState((e=>(0,n.A)({},e,{tabIndex:{cell:{id:o.rows[0].id,field:l[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}})))})),k={setCellFocus:s,setColumnHeaderFocus:u,setColumnHeaderFilterFocus:d},E={moveFocusToRelativeCell:m,setColumnGroupHeaderFocus:p,getColumnGroupHeaderFocus:g};(0,x.P)(e,k,"public"),(0,x.P)(e,E,"private"),o.useEffect((()=>{const t=(0,pe.A)(e.current.rootElementRef.current);return t.addEventListener("mouseup",R),()=>{t.removeEventListener("mouseup",R)}}),[e,i,R]),(0,P.cz)(e,"columnHeaderBlur",y),(0,P.cz)(e,"cellDoubleClick",h),(0,P.cz)(e,"cellMouseDown",A),(0,P.cz)(e,"cellKeyDown",b),(0,P.cz)(e,"cellModeChange",S),(0,P.cz)(e,"columnHeaderFocus",w),(0,P.cz)(e,"columnGroupHeaderFocus",C),(0,P.cz)(e,"rowsSet",I),(0,P.cz)(e,"paginationModelChange",M)})(r,t),((e,t)=>{const r=(0,q.q)(e,"useGridPreferencesPanel"),l=o.useCallback((()=>{e.current.setState((t=>{if(!t.preferencePanel.open)return t;r.debug("Hiding Preferences Panel");const o=(0,je._)(t);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:o.openedPanelValue}),(0,n.A)({},t,{preferencePanel:{open:!1}})}))}),[e,r]),i=o.useCallback(((t,o,l)=>{r.debug("Opening Preferences Panel"),e.current.setState((e=>(0,n.A)({},e,{preferencePanel:(0,n.A)({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:o,labelId:l})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t})}),[r,e]);(0,x.P)(e,{showPreferences:i,hidePreferences:l},"public");const a=o.useCallback(((r,o)=>{const l=(0,je._)(e.current.state);return!o.exportOnlyDirtyModels||null!=t.initialState?.preferencePanel||l.open?(0,n.A)({},r,{preferencePanel:l}):r}),[e,t.initialState?.preferencePanel]),s=o.useCallback(((t,r)=>{const o=r.stateToRestore.preferencePanel;return null!=o&&e.current.setState((e=>(0,n.A)({},e,{preferencePanel:o}))),t}),[e]);Z(e,"exportState",a),Z(e,"restoreState",s)})(r,t),((e,t)=>{const r=(0,q.q)(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:h.ZI,changeEvent:"filterModelChange"});const l=o.useCallback((()=>{e.current.setState((t=>{const r=(0,h.ZI)(t,e.current.instanceId),o=e.current.getFilterState(r),l=(0,n.A)({},t,{filter:(0,n.A)({},t.filter,o)}),i=Me(e,l);return(0,n.A)({},l,{visibleRowsLookup:i})})),e.current.publishEvent("filteredRowsSet")}),[e]),i=o.useCallback(((e,r)=>null==r||!1===r.filterable||t.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[t.disableColumnFilter]),a=o.useCallback((()=>{l(),e.current.forceUpdate()}),[e,l]),s=o.useCallback((t=>{const r=(0,h.ZI)(e),o=[...r.items],l=o.findIndex((e=>e.id===t.id));-1===l?o.push(t):o[l]=t,e.current.setFilterModel((0,n.A)({},r,{items:o}),"upsertFilterItem")}),[e]),u=o.useCallback((t=>{const r=(0,h.ZI)(e),o=[...r.items];t.forEach((e=>{const t=o.findIndex((t=>t.id===e.id));-1===t?o.push(e):o[t]=e})),e.current.setFilterModel((0,n.A)({},r,{items:o}),"upsertFilterItems")}),[e]),d=o.useCallback((t=>{const r=(0,h.ZI)(e),o=r.items.filter((e=>e.id!==t.id));o.length!==r.items.length&&e.current.setFilterModel((0,n.A)({},r,{items:o}),"deleteFilterItem")}),[e]),p=o.useCallback(((o,l,i)=>{if(r.debug("Displaying filter panel"),o){const r=(0,h.ZI)(e),l=r.items.filter((t=>{if(void 0!==t.value)return!Array.isArray(t.value)||0!==t.value.length;const r=e.current.getColumn(t.field),n=r.filterOperators?.find((e=>e.value===t.operator));return!(void 0===n?.requiresFilterValue||n?.requiresFilterValue)}));let i;const a=l.find((e=>e.field===o)),s=e.current.getColumn(o);i=a?l:t.disableMultipleColumnsFiltering?[(0,Re.zk)({field:o,operator:s.filterOperators[0].value},e)]:[...l,(0,Re.zk)({field:o,operator:s.filterOperators[0].value},e)],e.current.setFilterModel((0,n.A)({},r,{items:i}))}e.current.showPreferences(te.y.filters,l,i)}),[e,r,t.disableMultipleColumnsFiltering]),g=o.useCallback((()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,r]),m=o.useCallback((t=>{const r=(0,h.ZI)(e);r.logicOperator!==t&&e.current.setFilterModel((0,n.A)({},r,{logicOperator:t}),"changeLogicOperator")}),[e]),b=o.useCallback((t=>{const r=(0,h.ZI)(e);(0,v.Hv)(r.quickFilterValues,t)||e.current.setFilterModel((0,n.A)({},r,{quickFilterValues:[...t]}))}),[e]),w=o.useCallback(((n,o)=>{(0,h.ZI)(e)!==n&&(r.debug("Setting filter model"),e.current.updateControlState("filter",(0,Re.zU)(n,t.disableMultipleColumnsFiltering,e),o),e.current.unstable_applyFilters())}),[e,r,t.disableMultipleColumnsFiltering]),C=o.useCallback((r=>{const o=(0,Re.L5)(r,t.disableMultipleColumnsFiltering,e),l="client"===t.filterMode?(0,Re.Fv)(o,e,t.disableEval):null,i=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:l,filterModel:o??(0,ye.T)()});return(0,n.A)({},i,{filterModel:o})}),[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),y={setFilterLogicOperator:m,unstable_applyFilters:a,deleteFilterItem:d,upsertFilterItem:s,upsertFilterItems:u,setFilterModel:w,showFilterPanel:p,hideFilterPanel:g,setQuickFilterValues:b,ignoreDiacritics:t.ignoreDiacritics,getFilterState:C};(0,x.P)(e,y,"public");const A=o.useCallback(((r,o)=>{const l=(0,h.ZI)(e);return o.exportOnlyDirtyModels&&null==t.filterModel&&null==t.initialState?.filter?.filterModel&&(0,v.Hv)(l,(0,ye.T)())?r:(0,n.A)({},r,{filter:{filterModel:l}})}),[e,t.filterModel,t.initialState?.filter?.filterModel]),R=o.useCallback(((r,o)=>{const l=o.stateToRestore.filter?.filterModel;return null==l?r:(e.current.updateControlState("filter",(0,Re.zU)(l,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,n.A)({},r,{callbacks:[...r.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),S=o.useCallback(((e,r)=>{if(r===te.y.filters){const e=t.slots.filterPanel;return(0,re.jsx)(e,(0,n.A)({},t.slotProps?.filterPanel))}return e}),[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:I}=t,M=(0,xe.A)(ke),k=o.useCallback((r=>{if("client"!==t.filterMode||!r.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const n=(0,f.rI)(e),o={},{isRowMatchingFilters:l}=r,i={},a={passingFilterItems:null,passingQuickFilterValues:null},s=M.current(e.current.state.rows.dataRowIdToModelLookup);for(let t=0;t<s.length;t+=1){const n=s[t],c=I?I(n):n.id;l(n,void 0,a);const u=(0,Re.Ko)([a.passingFilterItems],[a.passingQuickFilterValues],r.filterModel,e,i);o[c]=u}const c="auto-generated-group-footer-root";return n[c]&&(o[c]=!0),{filteredRowsLookup:o,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}}),[e,t.filterMode,I,M]);Z(e,"columnMenu",i),Z(e,"exportState",A),Z(e,"restoreState",R),Z(e,"preferencePanel",S),Ae(e,D,"filtering",k),Ae(e,D,"visibleRowsLookupCreation",Ie);const E=o.useCallback((()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const t=(0,h.ZI)(e),o=(0,c.gv)(e),l=t.items.filter((e=>e.field&&o[e.field]));l.length<t.items.length&&e.current.setFilterModel((0,n.A)({},t,{items:l}))}),[e,r]),F=o.useCallback((t=>{"filtering"===t&&e.current.unstable_applyFilters()}),[e]),H=o.useCallback((()=>{e.current.setState((t=>(0,n.A)({},t,{visibleRowsLookup:Me(e,t)}))),e.current.forceUpdate()}),[e]);(0,P.cz)(e,"rowsSet",l),(0,P.cz)(e,"columnsChange",E),(0,P.cz)(e,"activeStrategyProcessorChange",F),(0,P.cz)(e,"rowExpansionChange",H),(0,P.cz)(e,"columnVisibilityModelChange",(()=>{const t=(0,h.ZI)(e);t.quickFilterValues&&(0,Re.kO)(t)&&e.current.unstable_applyFilters()})),(0,Y.g)((()=>{e.current.unstable_applyFilters()})),(0,ve.A)((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,r,t.filterModel])})(r,t),((e,t)=>{const r=(0,q.q)(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Je.XU,changeEvent:"sortModelChange"});const l=o.useCallback(((t,r)=>{const n=(0,Je.XU)(e),o=n.findIndex((e=>e.field===t));let l=[...n];return o>-1?null==r?.sort?l.splice(o,1):l.splice(o,1,r):l=[...n,r],l}),[e]),i=o.useCallback(((r,o)=>{const l=(0,Je.XU)(e).find((e=>e.field===r.field));if(l){const e=void 0===o?(0,it.Hm)(r.sortingOrder??t.sortingOrder,l.sort):o;return void 0===e?void 0:(0,n.A)({},l,{sort:e})}return{field:r.field,sort:void 0===o?(0,it.Hm)(r.sortingOrder??t.sortingOrder):o}}),[e,t.sortingOrder]),a=o.useCallback(((e,r)=>null==r||!1===r.sortable||t.disableColumnSorting?e:(r.sortingOrder||t.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[t.sortingOrder,t.disableColumnSorting]),s=o.useCallback((()=>{e.current.setState((o=>{if("server"===t.sortingMode)return r.debug("Skipping sorting rows as sortingMode = server"),(0,n.A)({},o,{sorting:(0,n.A)({},o.sorting,{sortedRows:(0,me.l_)((0,f.qj)(e),me.OL,!1)})});const l=(0,Je.XU)(o,e.current.instanceId),i=(0,it.Lj)(l,e),a=e.current.applyStrategyProcessor("sorting",{sortRowList:i});return(0,n.A)({},o,{sorting:(0,n.A)({},o.sorting,{sortedRows:a})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,r,t.sortingMode]),u=o.useCallback((n=>{(0,Je.XU)(e)!==n&&(r.debug("Setting sort model"),e.current.setState((0,it.ps)(n,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,r,t.disableMultipleColumnsSorting]),d=o.useCallback(((r,n,o)=>{const a=e.current.getColumn(r),s=i(a,n);let c;c=!o||t.disableMultipleColumnsSorting?null==s?.sort?[]:[s]:l(a.field,s),e.current.setSortModel(c)}),[e,l,i,t.disableMultipleColumnsSorting]),p={getSortModel:o.useCallback((()=>(0,Je.XU)(e)),[e]),getSortedRows:o.useCallback((()=>(0,Je.J6)(e).map((e=>e.model))),[e]),getSortedRowIds:o.useCallback((()=>(0,Je.RJ)(e)),[e]),getRowIdFromRowIndex:o.useCallback((t=>e.current.getSortedRowIds()[t]),[e]),setSortModel:u,sortColumn:d,applySorting:s};(0,x.P)(e,p,"public");const g=o.useCallback(((r,o)=>{const l=(0,Je.XU)(e);return!o.exportOnlyDirtyModels||null!=t.sortModel||null!=t.initialState?.sorting?.sortModel||l.length>0?(0,n.A)({},r,{sorting:{sortModel:l}}):r}),[e,t.sortModel,t.initialState?.sorting?.sortModel]),m=o.useCallback(((r,o)=>{const l=o.stateToRestore.sorting?.sortModel;return null==l?r:(e.current.setState((0,it.ps)(l,t.disableMultipleColumnsSorting)),(0,n.A)({},r,{callbacks:[...r.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),h=o.useCallback((t=>{const r=(0,f.qj)(e),n=r[me.OL],o=t.sortRowList?t.sortRowList(n.children.map((e=>r[e]))):[...n.children];return null!=n.footerId&&o.push(n.footerId),o}),[e]);Z(e,"exportState",g),Z(e,"restoreState",m),Ae(e,D,"sorting",h);const b=o.useCallback((({field:e,colDef:r},n)=>{if(!r.sortable||t.disableColumnSorting)return;const o=n.shiftKey||n.metaKey||n.ctrlKey;d(e,void 0,o)}),[d,t.disableColumnSorting]),w=o.useCallback((({field:e,colDef:r},n)=>{r.sortable&&!t.disableColumnSorting&&("Enter"!==n.key||n.ctrlKey||n.metaKey||d(e,void 0,n.shiftKey))}),[d,t.disableColumnSorting]),C=o.useCallback((()=>{const t=(0,Je.XU)(e),r=(0,c.gv)(e);if(t.length>0){const n=t.filter((e=>r[e.field]));n.length<t.length&&e.current.setSortModel(n)}}),[e]),v=o.useCallback((t=>{"sorting"===t&&e.current.applySorting()}),[e]);Z(e,"columnMenu",a),(0,P.cz)(e,"columnHeaderClick",b),(0,P.cz)(e,"columnHeaderKeyDown",w),(0,P.cz)(e,"rowsSet",e.current.applySorting),(0,P.cz)(e,"columnsChange",C),(0,P.cz)(e,"activeStrategyProcessorChange",v),(0,Y.g)((()=>{e.current.applySorting()})),(0,ve.A)((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(r,t),((e,t)=>{const r=(0,q.q)(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:ie._v,changeEvent:"densityChange"});const l={setDensity:(0,le.A)((t=>{(0,ie._v)(e.current.state)!==t&&(r.debug(`Set grid density to ${t}`),e.current.setState((e=>(0,n.A)({},e,{density:t}))))}))};(0,x.P)(e,l,"public");const i=o.useCallback(((r,o)=>{const l=(0,ie._v)(e.current.state);return o.exportOnlyDirtyModels&&null==t.density&&null==t.initialState?.density?r:(0,n.A)({},r,{density:l})}),[e,t.density,t.initialState?.density]),a=o.useCallback(((t,r)=>{const o=r.stateToRestore?.density?r.stateToRestore.density:(0,ie._v)(e.current.state);return e.current.setState((e=>(0,n.A)({},e,{density:o}))),t}),[e]);Z(e,"exportState",i),Z(e,"restoreState",a),o.useEffect((()=>{t.density&&e.current.setDensity(t.density)}),[e,t.density])})(r,t),Lt(r,t),((e,t)=>{((e,t)=>{const r=(0,q.q)(e,"useGridPaginationMeta"),l=(0,u.Nc)(e,he.py);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:he.py,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:o.useCallback((t=>{l!==t&&(r.debug("Setting 'paginationMeta' to",t),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{meta:t})}))))}),[e,r,l])};(0,x.P)(e,i,"public");const a=o.useCallback(((r,o)=>{const l=(0,he.py)(e);return o.exportOnlyDirtyModels&&null==t.paginationMeta&&null==t.initialState?.pagination?.meta?r:(0,n.A)({},r,{pagination:(0,n.A)({},r.pagination,{meta:l})})}),[e,t.paginationMeta,t.initialState?.pagination?.meta]),s=o.useCallback(((t,r)=>{const o=r.stateToRestore.pagination?.meta?r.stateToRestore.pagination.meta:(0,he.py)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{meta:o})}))),t}),[e]);Z(e,"exportState",a),Z(e,"restoreState",s),o.useEffect((()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)}),[e,t.paginationMeta])})(e,t),((e,t)=>{const r=(0,q.q)(e,"useGridPaginationModel"),l=(0,u.Nc)(e,ie.rf),i=Math.floor(t.rowHeight*l);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:he.lN,changeEvent:"paginationModelChange"});const a={setPage:o.useCallback((t=>{const n=(0,he.lN)(e);t!==n.page&&(r.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:n.pageSize}))}),[e,r]),setPageSize:o.useCallback((t=>{const n=(0,he.lN)(e);t!==n.pageSize&&(r.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:n.page}))}),[e,r]),setPaginationModel:o.useCallback((o=>{const l=(0,he.lN)(e);o!==l&&(r.debug("Setting 'paginationModel' to",o),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:we(e.pagination,t.signature,o)})})),"setPaginationModel"))}),[e,r,t.signature])};(0,x.P)(e,a,"public");const s=o.useCallback(((r,o)=>{const l=(0,he.lN)(e);return!o.exportOnlyDirtyModels||null!=t.paginationModel||null!=t.initialState?.pagination?.paginationModel||0!==l.page&&l.pageSize!==(0,be.eW)(t.autoPageSize)?(0,n.A)({},r,{pagination:(0,n.A)({},r.pagination,{paginationModel:l})}):r}),[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),c=o.useCallback(((r,o)=>{const l=o.stateToRestore.pagination?.paginationModel?(0,n.A)({},(0,be.N0)(t.autoPageSize),o.stateToRestore.pagination?.paginationModel):(0,he.lN)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:we(e.pagination,t.signature,l)})})),"stateRestorePreProcessing"),r}),[e,t.autoPageSize,t.signature]);Z(e,"exportState",s),Z(e,"restoreState",c);const d=o.useCallback((()=>{if(!t.autoPageSize)return;const r=e.current.getRootDimensions(),n=Math.floor(r.viewportInnerSize.height/i);e.current.setPageSize(n)}),[e,t.autoPageSize,i]),p=o.useCallback((t=>{if(null==t)return;const r=(0,he.lN)(e),n=(0,he.O)(e);r.page>n-1&&e.current.setPage(Math.max(0,n-1))}),[e]);(0,P.cz)(e,"viewportInnerSizeChange",d),(0,P.cz)(e,"paginationModelChange",(()=>{const t=(0,he.lN)(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:t.page*t.pageSize})})),(0,P.cz)(e,"rowCountChange",p);const f=o.useRef(!0);o.useEffect((()=>{f.current?f.current=!1:t.pagination&&e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:we(e.pagination,t.signature,t.paginationModel)})})))}),[e,t.paginationModel,t.signature,t.pagination]),o.useEffect((()=>{e.current.setState((e=>{const r=!0===t.pagination;return e.pagination.paginationMode===t.paginationMode||e.pagination.enabled===r?e:(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationMode:t.paginationMode,enabled:!0===t.pagination})})}))}),[e,t.paginationMode,t.pagination]),o.useEffect(d,[d])})(e,t),((e,t)=>{const r=(0,q.q)(e,"useGridRowCount"),l=(0,u.Nc)(e,h.RN),i=(0,u.Nc)(e,he.H2),a=(0,u.Nc)(e,he.py),s=(0,u.Nc)(e,he.lN),c=(0,xe.A)((()=>(0,he.lN)(e).pageSize));e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:he.H2,changeEvent:"rowCountChange"});const d={setRowCount:o.useCallback((t=>{i!==t&&(r.debug("Setting 'rowCount' to",t),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{rowCount:t})}))))}),[e,r,i])};(0,x.P)(e,d,"public");const p=o.useCallback(((r,o)=>{const l=(0,he.H2)(e);return o.exportOnlyDirtyModels&&null==t.rowCount&&null==t.initialState?.pagination?.rowCount?r:(0,n.A)({},r,{pagination:(0,n.A)({},r.pagination,{rowCount:l})})}),[e,t.rowCount,t.initialState?.pagination?.rowCount]),f=o.useCallback(((t,r)=>{const o=r.stateToRestore.pagination?.rowCount?r.stateToRestore.pagination.rowCount:(0,he.H2)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{rowCount:o})}))),t}),[e]);Z(e,"exportState",p),Z(e,"restoreState",f);const g=o.useCallback((r=>{"client"!==t.paginationMode&&c.current&&r.pageSize!==c.current&&(c.current=r.pageSize,-1===i&&e.current.setPage(0))}),[t.paginationMode,c,i,e]);(0,P.cz)(e,"paginationModelChange",g),o.useEffect((()=>{"client"===t.paginationMode?e.current.setRowCount(l):null!=t.rowCount&&e.current.setRowCount(t.rowCount)}),[e,t.paginationMode,l,t.rowCount]);const m=!1===a.hasNextPage;o.useEffect((()=>{m&&-1===i&&e.current.setRowCount(s.pageSize*s.page+l)}),[e,l,m,i,s])})(e,t)})(r,t),((e,t)=>{const{getRowHeight:r,getRowSpacing:l,getEstimatedRowHeight:i}=t,a=e.current.caches.rowsMeta.heights,s=o.useRef(-1),c=o.useRef(!1),d=o.useRef(!1),p=(0,u.Nc)(e,ie.rf),g=(0,u.Nc)(e,h.ZI),m=(0,u.Nc)(e,he.M5),b=(0,u.Nc)(e,Je.XU),w=(0,Pe.h)(e,t),C=(0,u.Nc)(e,f.$2),y=(0,u.Nc)(e,(()=>(0,st.z)(e.current.state).rowHeight)),A=o.useCallback((t=>{const o=(0,st.z)(e.current.state).rowHeight;(0,v.I9)(y);const a=e.current.getRowHeightEntry(t.id);if(r){const e=r((0,n.A)({},t,{densityFactor:p}));if("auto"===e){if(a.needsFirstMeasurement){const e=i?i((0,n.A)({},t,{densityFactor:p})):o;a.content=e??o}c.current=!0,a.autoHeight=!0}else a.content=(0,me.Qy)(e,o,me.nW),a.needsFirstMeasurement=!1,a.autoHeight=!1}else a.content=o,a.needsFirstMeasurement=!1;if(l){const r=e.current.getRowIndexRelativeToVisibleRows(t.id),o=l((0,n.A)({},t,{isFirstVisible:0===r,isLastVisible:r===w.rows.length-1,indexRelativeToCurrentPage:r}));a.spacingTop=o.top??0,a.spacingBottom=o.bottom??0}else a.spacingTop=0,a.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",a,t),a}),[e,w.rows.length,r,i,y,l,p]),R=o.useCallback((()=>{c.current=!1,C.top.forEach(A),C.bottom.forEach(A);const t=[],r=w.rows.reduce(((e,r)=>{t.push(e);const n=A(r);return e+(n.content+n.spacingTop+n.spacingBottom+n.detail)}),0);c.current||(s.current=1/0),e.current.setState((e=>(0,n.A)({},e,{rowsMeta:{currentPageTotalHeight:r,positions:t}}))),d.current=!0}),[e,C,w.rows,A]),S=(0,xe.A)((()=>new wt((t=>{for(let r=0;r<t.length;r+=1){const n=t[r],o=n.borderBoxSize&&n.borderBoxSize.length>0?n.borderBoxSize[0].blockSize:n.contentRect.height,l=n.target.__mui_id;e.current.unstable_storeRowHeightMeasurement(l,o)}d.current||e.current.requestPipeProcessorsApplication("rowHeight")})))).current;Q(e,"rowHeight",R),o.useEffect((()=>{R()}),[g,m,b,R]);const I={unstable_getRowHeight:e=>a.get(e)?.content??y,unstable_setLastMeasuredRowIndex:e=>{c.current&&e>s.current&&(s.current=e)},unstable_storeRowHeightMeasurement:(t,r)=>{const n=e.current.getRowHeightEntry(t),o=n.content!==r;n.needsFirstMeasurement=!1,n.content=r,d.current&&=!o},resetRowHeights:()=>{a.clear(),R()}},M={hydrateRowsMeta:R,observeRowHeight:(e,t)=>(e.__mui_id=t,S.observe(e),()=>S.unobserve(e)),rowHasAutoHeight:e=>a.get(e)?.autoHeight??!1,getRowHeightEntry:e=>{let t=a.get(e);return void 0===t&&(t={content:y,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},a.set(e,t)),t},getLastMeasuredRowIndex:()=>s.current};(0,x.P)(e,I,"public"),(0,x.P)(e,M,"private")})(r,t),((e,t)=>{const r=(0,C.I)(),n=(0,q.q)(e,"useGridScroll"),l=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=(0,u.Nc)(e,h.em),s=o.useCallback((r=>{const o=(0,st.z)(e.current.state),l=(0,f.H0)(e),s=t.unstable_listView?[(0,$e.W)(e.current.state)]:(0,c.iv)(e);if(null!=r.rowIndex&&0===l||0===s.length)return!1;n.debug(`Scrolling to cell at row ${r.rowIndex}, col: ${r.colIndex} `);let u={};if(void 0!==r.colIndex){const t=(0,c.Sw)(e);let n;if(void 0!==r.rowIndex){const t=a[r.rowIndex]?.id,o=e.current.unstable_getCellColSpanInfo(t,r.colIndex);o&&!o.spannedByColSpan&&(n=o.cellProps.width)}void 0===n&&(n=s[r.colIndex].computedWidth),u.left=ct({containerSize:o.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:n,elementOffset:t[r.colIndex]})}if(void 0!==r.rowIndex){const n=(0,ge.E)(e.current.state),l=(0,he.$i)(e),a=(0,he.ij)(e),s=t.pagination?r.rowIndex-l*a:r.rowIndex,c=n.positions[s+1]?n.positions[s+1]-n.positions[s]:n.currentPageTotalHeight-n.positions[s];u.top=ct({containerSize:o.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:c,elementOffset:n.positions[s]})}return u=e.current.unstable_applyPipeProcessors("scrollToIndexes",u,r),(void 0!==typeof u.left||void 0!==typeof u.top)&&(e.current.scroll(u),!0)}),[n,e,i,t.pagination,a,t.unstable_listView]),d={scroll:o.useCallback((e=>{if(i.current&&void 0!==e.left&&l.current){const t=r?-1:1;l.current.scrollLeft=e.left,i.current.scrollLeft=t*e.left,n.debug(`Scrolling left: ${e.left}`)}i.current&&void 0!==e.top&&(i.current.scrollTop=e.top,n.debug(`Scrolling top: ${e.top}`)),n.debug("Scrolling, updating container, and viewport")}),[i,r,l,n]),scrollToIndexes:s,getScrollPosition:o.useCallback((()=>i?.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0}),[i])};(0,x.P)(e,d,"public")})(r,t),(e=>{const t=(0,q.q)(e,"useGridColumnMenu"),r=o.useCallback((r=>{const o=(0,K.$)(e.current.state),l=r;(!0!==o.open||l!==o.field)&&(e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===r?e:(t.debug("Opening Column Menu"),(0,n.A)({},e,{columnMenu:{open:!0,field:r}})))),e.current.hidePreferences())}),[e,t]),l=o.useCallback((()=>{const r=(0,K.$)(e.current.state);if(r.field){const t=(0,c.gv)(e),n=(0,c.FY)(e),o=(0,c.JR)(e);let l=r.field;if(t[l]||(l=o[0]),!1===n[l]){const e=o.filter((e=>e===l||!1!==n[e])),t=e.indexOf(l);l=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(l)}const o={open:!1,field:void 0};(o.open!==r.open||o.field!==r.field)&&e.current.setState((e=>(t.debug("Hiding Column Menu"),(0,n.A)({},e,{columnMenu:o}))))}),[e,t]),i=o.useCallback((n=>{t.debug("Toggle Column Menu");const o=(0,K.$)(e.current.state);o.open&&o.field===n?l():r(n)}),[e,t,r,l]),a={showColumnMenu:r,hideColumnMenu:l,toggleColumnMenu:i};(0,x.P)(e,a,"public"),(0,P.cz)(e,"columnResizeStart",l),(0,P.cz)(e,"virtualScrollerWheel",e.current.hideColumnMenu),(0,P.cz)(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(r),de(r,t),((e,t)=>{const r=null!==e.current.rootElementRef.current,l=(0,q.q)(e,"useGridPrintExport"),i=o.useRef(null),a=o.useRef(null),s=o.useRef({}),u=o.useRef([]),d=o.useRef(null);o.useEffect((()=>{i.current=(0,pe.A)(e.current.rootElementRef.current)}),[e,r]);const p=o.useCallback(((t,r,n)=>new Promise((o=>{const l=se({apiRef:e,options:{fields:t,allColumns:r}}).map((e=>e.field)),i=(0,c.OV)(e),a={};i.forEach((e=>{a[e.field]=l.includes(e.field)})),n&&(a[V.f.field]=!0),e.current.setColumnVisibilityModel(a),o()}))),[e]),f=o.useCallback((t=>{const r=t({apiRef:e}).reduce(((t,r)=>{const n=e.current.getRow(r);return n[me.gb]||t.push(n),t}),[]);e.current.setRows(r)}),[e]),g=o.useCallback(((r,o)=>{const l=(0,n.A)({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},o),a=r.contentDocument;if(!a)return;const s=(0,ge.E)(e.current.state),c=e.current.rootElementRef.current,u=c.cloneNode(!0);u.querySelector(`.${fe.x.main}`).style.overflow="visible",u.style.contain="size";let d=c.querySelector(`.${fe.x.toolbarContainer}`)?.offsetHeight||0,p=c.querySelector(`.${fe.x.footerContainer}`)?.offsetHeight||0;l.hideToolbar&&(u.querySelector(`.${fe.x.toolbarContainer}`)?.remove(),d=0),l.hideFooter&&(u.querySelector(`.${fe.x.footerContainer}`)?.remove(),p=0);const f=s.currentPageTotalHeight+(0,ee.pe)(e,t)+d+p;if(u.style.height=`${f}px`,u.style.boxSizing="content-box",!l.hideFooter){const e=u.querySelector(`.${fe.x.footerContainer}`);e.style.position="absolute",e.style.width="100%",e.style.top=f-p+"px"}const g=document.createElement("div");g.appendChild(u),a.body.style.marginTop="0px",a.body.innerHTML=g.innerHTML;const m="function"==typeof l.pageStyle?l.pageStyle():l.pageStyle;if("string"==typeof m){const e=a.createElement("style");e.appendChild(a.createTextNode(m)),a.head.appendChild(e)}l.bodyClassName&&a.body.classList.add(...l.bodyClassName.split(" "));const h=[];if(l.copyStyles){const e=c.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:i.current).querySelectorAll("style, link[rel='stylesheet']");for(let e=0;e<t.length;e+=1){const r=t[e];if("STYLE"===r.tagName){const e=a.createElement(r.tagName),t=r.sheet;if(t){let r="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(r+=`${t.cssRules[e].cssText}\r\n`);e.appendChild(a.createTextNode(r)),a.head.appendChild(e)}}else if(r.getAttribute("href")){const e=a.createElement(r.tagName);for(let t=0;t<r.attributes.length;t+=1){const n=r.attributes[t];n&&e.setAttribute(n.nodeName,n.nodeValue||"")}h.push(new Promise((t=>{e.addEventListener("load",(()=>t()))}))),a.head.appendChild(e)}}}Promise.all(h).then((()=>{r.contentWindow.print()}))}),[e,i,t]),m=o.useCallback((t=>{i.current.body.removeChild(t),e.current.restoreState(a.current||{}),a.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.setState((e=>(0,n.A)({},e,{virtualization:d.current}))),e.current.setRows(u.current),a.current=null,s.current={},u.current=[]}),[e]),b={exportDataAsPrint:o.useCallback((async r=>{if(l.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(a.current=e.current.exportState(),s.current=(0,c.FY)(e),u.current=e.current.getSortedRows().filter((e=>!e[me.gb])),t.pagination){const t={page:0,pageSize:(0,h.O7)(e)};e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:we(e.pagination,"DataGridPro",t)})})))}d.current=e.current.state.virtualization,e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabled:!1,enabledForColumns:!1})}))),await p(r?.fields,r?.allColumns,r?.includeCheckboxes),f(r?.getRowsToExport??ce),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const o=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(r?.fileName);o.onload=()=>{g(o,r),o.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&m(o)}))},i.current.body.appendChild(o)}),[t,l,e,g,m,p,f])};(0,x.P)(e,b,"public");const w=o.useCallback(((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,re.jsx)(ue.ME,{options:t.printOptions}),componentName:"printExport"}]),[]);Z(e,"exportMenu",w)})(r,t),((e,t)=>{const r=t.ignoreValueFormatterDuringExport,n=("object"==typeof r?r?.clipboardExport:r)||!1,l=t.clipboardCopyCellDelimiter,i=o.useCallback((t=>{if(!(0,W._n)(t))return;if(r=t.target,window.getSelection()?.toString()||r&&(r.selectionEnd||0)-(r.selectionStart||0)>0)return;var r;let o="";if(e.current.getSelectedRows().size>0)o=e.current.getDataAsCsv({includeHeaders:!1,delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1});else{const t=(0,j.MO)(e);if(t){const r=e.current.getCellParams(t.id,t.field);o=G(r,{csvOptions:{delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:n})}}var i;o=e.current.unstable_applyPipeProcessors("clipboardCopy",o),o&&(i=o,navigator.clipboard?navigator.clipboard.writeText(i).catch((()=>{U(i)})):U(i),e.current.publishEvent("clipboardCopy",o))}),[e,n,l]);(0,N.h)(e,e.current.rootElementRef,"keydown",i),(0,P.re)(e,"clipboardCopy",t.onClipboardCopy)})(r,t),function(e,t){const r=(0,q.q)(e,"useResizeContainer"),l=o.useRef(!1),i=o.useRef(gt),a=(0,u.Nc)(e,st.z),s=(0,u.Nc)(e,ge.E),d=(0,u.Nc)(e,c.Q1),p=(0,u.Nc)(e,ie.rf),f=o.useMemo((()=>(0,me.Qy)(t.rowHeight,pt.E.rowHeight,me.Oq)),[t.rowHeight]),g=Math.floor(f*p),m=Math.floor(t.columnHeaderHeight*p),h=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*p),b=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*p),w=(C=(0,c.fc)(e),Math.round(C*10**6)/10**6);var C;const v=(0,ee.pe)(e,t),y=d.left.reduce(((e,t)=>e+t.computedWidth),0),A=d.right.reduce(((e,t)=>e+t.computedWidth),0),[R,S]=o.useState(),I=o.useMemo((()=>function(e,t=166){let r,n;const o=()=>{r=void 0,e(...n)};function l(...e){n=e,void 0===r&&(r=setTimeout(o,t))}return l.clear=()=>{clearTimeout(r),r=void 0},l}(S,t.resizeThrottleMs)),[t.resizeThrottleMs]);o.useEffect((()=>I.clear),[I]);const M=o.useRef(void 0),k=(0,le.A)((t=>{e.current.setState((e=>(0,n.A)({},e,{dimensions:t})))})),E=o.useCallback((()=>{const t=e.current.mainElementRef.current;if(!t)return;const r=(0,ut.A)(t).getComputedStyle(t),n={width:parseFloat(r.width)||0,height:parseFloat(r.height)||0};M.current&&bt(M.current,n)||(e.current.publishEvent("resize",n),M.current=n)}),[e]),F=o.useCallback((()=>{const r=(0,st.z)(e.current.state);if(!r.isReady)return 0;const n=(0,Pe.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const t=(0,dt.nZ)(e),r=t.lastRowIndex-t.firstRowIndex;return Math.min(r-1,n.rows.length)}const o=Math.floor(r.viewportInnerSize.height/g);return Math.min(o,n.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight,g]),H=o.useCallback((()=>{const r=e.current.rootElementRef.current,n=(0,me.zo)(e),o=function(e,t,r){if(void 0!==r)return r;if(null===e||0===t)return 0;const n=(0,pe.A)(e).createElement("div");n.style.width="99px",n.style.height="99px",n.style.position="absolute",n.style.overflow="scroll",n.className="scrollDiv",e.appendChild(n);const o=n.offsetWidth-n.clientWidth;return e.removeChild(n),o}(r,w,t.scrollbarSize),l=v+n.top,a=n.bottom,c={width:w-y-A,height:s.currentPageTotalHeight};let u,d,p=!1,f=!1;if(t.autoHeight)f=!1,p=Math.round(w)>Math.round(i.current.width),u={width:i.current.width,height:l+a+c.height},d={width:Math.max(0,u.width-(f?o:0)),height:Math.max(0,u.height-(p?o:0))};else{u={width:i.current.width,height:i.current.height},d={width:Math.max(0,u.width-y-A),height:Math.max(0,u.height-l-a)};const e=c,t=d,r=e.width>t.width,n=e.height>t.height;(r||n)&&(f=n,p=e.width+(f?o:0)>t.width,p&&(f=e.height+o>t.height)),f&&(d.width-=o),p&&(d.height-=o)}const C=Math.max(u.width,w+(f?o:0)),x={width:w,height:l+c.height+a},R={isReady:!0,root:i.current,viewportOuterSize:u,viewportInnerSize:d,contentSize:c,minimumSize:x,hasScrollX:p,hasScrollY:f,scrollbarSize:o,headerHeight:m,groupHeaderHeight:h,headerFilterHeight:b,rowWidth:C,rowHeight:g,columnsTotalWidth:w,leftPinnedWidth:y,rightPinnedWidth:A,headersTotalHeight:v,topContainerHeight:l,bottomContainerHeight:a},S=e.current.state.dimensions;k(R),bt(R.viewportInnerSize,S.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",R.viewportInnerSize),e.current.updateRenderContext?.()}),[e,k,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,g,m,h,b,w,v,y,A]),O={resize:E,getRootDimensions:()=>e.current.state.dimensions},T={updateDimensions:H,getViewportPageSize:F};(0,x.P)(e,O,"public"),(0,x.P)(e,T,"private"),(0,ve.A)((()=>{R&&(H(),e.current.publishEvent("debouncedResize",i.current))}),[e,R,H]);const D=e.current.rootElementRef.current;(0,ve.A)((()=>{if(!D)return;const e=(e,t)=>D.style.setProperty(e,t);e("--DataGrid-width",`${a.viewportOuterSize.width}px`),e("--DataGrid-hasScrollX",`${Number(a.hasScrollX)}`),e("--DataGrid-hasScrollY",`${Number(a.hasScrollY)}`),e("--DataGrid-scrollbarSize",`${a.scrollbarSize}px`),e("--DataGrid-rowWidth",`${a.rowWidth}px`),e("--DataGrid-columnsTotalWidth",`${a.columnsTotalWidth}px`),e("--DataGrid-leftPinnedWidth",`${a.leftPinnedWidth}px`),e("--DataGrid-rightPinnedWidth",`${a.rightPinnedWidth}px`),e("--DataGrid-headerHeight",`${a.headerHeight}px`),e("--DataGrid-headersTotalHeight",`${a.headersTotalHeight}px`),e("--DataGrid-topContainerHeight",`${a.topContainerHeight}px`),e("--DataGrid-bottomContainerHeight",`${a.bottomContainerHeight}px`),e("--height",`${a.rowHeight}px`)}),[D,a]);const z=o.useRef(!0),L=o.useCallback((e=>{if(i.current=e,0!==e.height||l.current||t.autoHeight||ft.K||(r.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("\n")),l.current=!0),0!==e.width||l.current||ft.K||(r.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("\n")),l.current=!0),z.current)return S(e),void(z.current=!1);I(e)}),[t.autoHeight,I,r]);(0,ve.A)(H,[H]),(0,P.re)(e,"sortedRowsSet",H),(0,P.re)(e,"paginationModelChange",H),(0,P.re)(e,"columnsChange",H),(0,P.cz)(e,"resize",L),(0,P.re)(e,"debouncedResize",t.onResize)}(r,t),function(e,t){(0,P.re)(e,"columnHeaderClick",t.onColumnHeaderClick),(0,P.re)(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),(0,P.re)(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),(0,P.re)(e,"columnHeaderOver",t.onColumnHeaderOver),(0,P.re)(e,"columnHeaderOut",t.onColumnHeaderOut),(0,P.re)(e,"columnHeaderEnter",t.onColumnHeaderEnter),(0,P.re)(e,"columnHeaderLeave",t.onColumnHeaderLeave),(0,P.re)(e,"cellClick",t.onCellClick),(0,P.re)(e,"cellDoubleClick",t.onCellDoubleClick),(0,P.re)(e,"cellKeyDown",t.onCellKeyDown),(0,P.re)(e,"preferencePanelClose",t.onPreferencePanelClose),(0,P.re)(e,"preferencePanelOpen",t.onPreferencePanelOpen),(0,P.re)(e,"menuOpen",t.onMenuOpen),(0,P.re)(e,"menuClose",t.onMenuClose),(0,P.re)(e,"rowDoubleClick",t.onRowDoubleClick),(0,P.re)(e,"rowClick",t.onRowClick),(0,P.re)(e,"stateChange",t.onStateChange)}(r,t),(e=>{const t={exportState:o.useCallback(((t={})=>e.current.unstable_applyPipeProcessors("exportState",{},t)),[e]),restoreState:o.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()})),e.current.forceUpdate()}),[e])};(0,x.P)(e,t,"public")})(r),(0,Pt.lA)(r,t),function(e,t){const r=()=>{e.current.setState((t=>t.listViewColumn?(0,n.A)({},t,{listViewColumn:(0,n.A)({},t.listViewColumn,{computedWidth:qt(e)})}):t))},l=o.useRef(null);(0,P.cz)(e,"viewportInnerSizeChange",(e=>{l.current!==e.width&&(l.current=e.width,r())})),(0,P.cz)(e,"columnVisibilityModelChange",r),o.useEffect((()=>{const r=t.unstable_listColumn;r&&e.current.setState((t=>(0,n.A)({},t,{listViewColumn:(0,n.A)({},r,{computedWidth:qt(e)})})))}),[e,t.unstable_listColumn]),o.useEffect((()=>{t.unstable_listView&&t.unstable_listColumn}),[t.unstable_listView,t.unstable_listColumn])}(r,t),r};var Xt=r(31049),Yt=r(52101),Zt=r(10736),Qt=r(92765),Jt=r(30943),er=r(55507),tr=r(22987),rr=r(29463),nr=r(77484),or=r(56384),lr=r(51820),ir=r(16028),ar=r(36014),sr=r(63869),cr=r(34299),ur=r(33360),dr=r(79162),pr=r(66456),fr=r(76404),gr=r(1895);const mr=(0,a.R)((function(e,t){const r=(0,fr.h)().current.getLocaleText("noResultsOverlayLabel");return(0,re.jsx)(gr.$,(0,n.A)({},e,{ref:t,children:r}))}));var hr=r(84885),br=r(32808),wr=r(24387),Cr=r(1343),vr=r(48171),xr=r(98360),yr=r(5401),Ar=r(61723),Rr=r(93117),Sr=r(89003),Ir=r(20350),Mr=r(17125),kr=r(15779);const Pr=["sortingOrder"],Er=o.memo((function(e){const{sortingOrder:t}=e,r=(0,H.A)(e,Pr),o=(0,d.A)(),[l]=t,i="asc"===l?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?(0,re.jsx)(i,(0,n.A)({},r)):null}));var Fr=r(80170),Hr=r(29629);const Or=["native"],Tr={booleanCellTrueIcon:Fr.qb,booleanCellFalseIcon:Fr.yd,columnMenuIcon:Fr.A_,openFilterButtonIcon:Fr.Ui,filterPanelDeleteIcon:Fr.yd,columnFilteredIcon:Fr.lj,columnSelectorIcon:Fr.Gf,columnUnsortedIcon:Er,columnSortedAscendingIcon:Fr.ay,columnSortedDescendingIcon:Fr.xC,columnResizeIcon:Fr.r$,densityCompactIcon:Fr.dc,densityStandardIcon:Fr.Bn,densityComfortableIcon:Fr.v$,exportIcon:Fr.U_,moreActionsIcon:Fr.c8,treeDataCollapseIcon:Fr.T5,treeDataExpandIcon:Fr.fX,groupingCriteriaCollapseIcon:Fr.T5,groupingCriteriaExpandIcon:Fr.fX,detailPanelExpandIcon:Fr.jt,detailPanelCollapseIcon:Fr.yk,rowReorderIcon:Fr.Cf,quickFilterIcon:Fr.Kw,quickFilterClearIcon:Fr.yd,columnMenuHideIcon:Fr.j8,columnMenuSortAscendingIcon:Fr.ay,columnMenuSortDescendingIcon:Fr.xC,columnMenuFilterIcon:Fr.lj,columnMenuManageColumnsIcon:Fr.jS,columnMenuClearIcon:Fr.hR,loadIcon:Fr.e2,filterPanelAddIcon:Fr.jt,filterPanelRemoveAllIcon:Fr.aC,columnReorderIcon:Fr.Cf},Dr=(0,n.A)({},Tr,{baseBadge:hr.A,baseCheckbox:br.A,baseDivider:wr.A,baseTextField:Cr.A,baseFormControl:vr.A,baseSelect:xr.A,baseButton:yr.A,baseIconButton:Ar.A,baseInputAdornment:Rr.A,baseTooltip:Sr.A,basePopper:Ir.A,baseInputLabel:Mr.A,baseSelectOption:function(e){let{native:t}=e,r=(0,H.A)(e,Or);return t?(0,re.jsx)("option",(0,n.A)({},r)):(0,re.jsx)(Hr.A,(0,n.A)({},r))},baseChip:kr.A}),zr=(0,n.A)({},Dr,{cell:ur.L,skeletonCell:Zt.k,columnHeaderFilterIconButton:Qt.f,columnHeaderSortIcon:Jt.J,columnMenu:pr.aU,columnHeaders:dr.f,detailPanels:function(e){return null},footer:er.C,footerRowCount:tr.g,toolbar:null,pinnedRows:function(e){return null},loadingOverlay:rr.b,noResultsOverlay:mr,noRowsOverlay:nr.h,pagination:or.h,filterPanel:lr.v,columnsPanel:ir.G,columnsManagement:ar.D,panel:sr.F,row:cr.T});const Lr={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},$r=zr,Nr=e=>{const t=(a=(0,Xt.A)({props:e,name:"MuiDataGrid"}),o.useMemo((()=>function(e){if(e.slotProps?.root)return e;const t=Object.keys(e);if(!t.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const r={},n=e.forwardedProps??{};for(let o=0;o<t.length;o+=1){const l=t[o];l.startsWith("aria-")||l.startsWith("data-")?n[l]=e[l]:r[l]=e[l]}return r.forwardedProps=n,r}(a)),[a])),r=o.useMemo((()=>(0,n.A)({},Yt._,t.localeText)),[t.localeText]),l=o.useMemo((()=>function({defaultSlots:e,slots:t}){const r=t;if(!r||0===Object.keys(r).length)return e;const o=(0,n.A)({},e);return Object.keys(r).forEach((e=>{const t=e;void 0!==r[t]&&(o[t]=r[t])})),o}({defaultSlots:$r,slots:t.slots})),[t.slots]),i=o.useMemo((()=>Object.keys(pt.E).reduce(((e,r)=>(e[r]=t[r]??pt.E[r],e)),{})),[t]);var a;return o.useMemo((()=>(0,n.A)({},t,i,{localeText:r,slots:l},Lr)),[t,r,l,i])},jr={hooks:{useGridAriaAttributes:()=>{const e=(0,g.E)(),t=(0,d.A)(),r=(0,u.Nc)(e,c.iv),n=(0,u.Nc)(e,h.O7),o=(0,u.Nc)(e,p.aC),l=(0,u.Nc)(e,f.OQ);return{role:"grid","aria-colcount":r.length,"aria-rowcount":o+1+l+n,"aria-multiselectable":(0,m.cv)(t)}},useGridRowAriaAttributes:()=>{const e=(0,g.E)(),t=(0,u.Nc)(e,b.Zk),r=(0,u.Nc)(e,p.aC);return o.useCallback(((n,o)=>{const l={},i=o+r+2;return l["aria-rowindex"]=i,e.current.isRowSelectable(n.id)&&(l["aria-selected"]=void 0!==t[n.id]),l}),[e,t,r])}}},Vr=(0,a.R)((function(e,t){const r=Nr(e),o=Kt(r.apiRef,r);return(0,re.jsx)(w.X,{privateApiRef:o,configuration:jr,props:r,children:(0,re.jsx)(s.h,(0,n.A)({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,r.slotProps?.root,{ref:t}))})})),Br=o.memo(Vr);Vr.propTypes={apiRef:i().shape({current:i().object.isRequired}),"aria-label":i().string,"aria-labelledby":i().string,autoHeight:i().bool,autoPageSize:i().bool,autosizeOnMount:i().bool,autosizeOptions:i().shape({columns:i().arrayOf(i().string),disableColumnVirtualization:i().bool,expand:i().bool,includeHeaders:i().bool,includeOutliers:i().bool,outliersFactor:i().number}),cellModesModel:i().object,checkboxSelection:i().bool,classes:i().object,clipboardCopyCellDelimiter:i().string,columnBufferPx:i().number,columnGroupHeaderHeight:i().number,columnGroupingModel:i().arrayOf(i().object),columnHeaderHeight:i().number,columns:i().arrayOf(i().object).isRequired,columnVisibilityModel:i().object,density:i().oneOf(["comfortable","compact","standard"]),disableAutosize:i().bool,disableColumnFilter:i().bool,disableColumnMenu:i().bool,disableColumnResize:i().bool,disableColumnSelector:i().bool,disableColumnSorting:i().bool,disableDensitySelector:i().bool,disableEval:i().bool,disableMultipleRowSelection:i().bool,disableRowSelectionOnClick:i().bool,disableVirtualization:i().bool,editMode:i().oneOf(["cell","row"]),estimatedRowCount:i().number,experimentalFeatures:i().shape({warnIfFocusStateIsNotSynced:i().bool}),filterDebounceMs:i().number,filterMode:i().oneOf(["client","server"]),filterModel:i().shape({items:i().arrayOf(i().shape({field:i().string.isRequired,id:i().oneOfType([i().number,i().string]),operator:i().string.isRequired,value:i().any})).isRequired,logicOperator:i().oneOf(["and","or"]),quickFilterExcludeHiddenColumns:i().bool,quickFilterLogicOperator:i().oneOf(["and","or"]),quickFilterValues:i().array}),forwardedProps:i().object,getCellClassName:i().func,getDetailPanelContent:i().func,getEstimatedRowHeight:i().func,getRowClassName:i().func,getRowHeight:i().func,getRowId:i().func,getRowSpacing:i().func,hideFooter:i().bool,hideFooterPagination:i().bool,hideFooterSelectedRowCount:i().bool,ignoreDiacritics:i().bool,ignoreValueFormatterDuringExport:i().oneOfType([i().shape({clipboardExport:i().bool,csvExport:i().bool}),i().bool]),indeterminateCheckboxAction:i().oneOf(["deselect","select"]),initialState:i().object,isCellEditable:i().func,isRowSelectable:i().func,keepNonExistentRowsSelected:i().bool,loading:i().bool,localeText:i().object,logger:i().shape({debug:i().func.isRequired,error:i().func.isRequired,info:i().func.isRequired,warn:i().func.isRequired}),logLevel:i().oneOf(["debug","error","info","warn",!1]),nonce:i().string,onCellClick:i().func,onCellDoubleClick:i().func,onCellEditStart:i().func,onCellEditStop:i().func,onCellKeyDown:i().func,onCellModesModelChange:i().func,onClipboardCopy:i().func,onColumnHeaderClick:i().func,onColumnHeaderContextMenu:i().func,onColumnHeaderDoubleClick:i().func,onColumnHeaderEnter:i().func,onColumnHeaderLeave:i().func,onColumnHeaderOut:i().func,onColumnHeaderOver:i().func,onColumnOrderChange:i().func,onColumnResize:i().func,onColumnVisibilityModelChange:i().func,onColumnWidthChange:i().func,onDensityChange:i().func,onFilterModelChange:i().func,onMenuClose:i().func,onMenuOpen:i().func,onPaginationMetaChange:i().func,onPaginationModelChange:i().func,onPreferencePanelClose:i().func,onPreferencePanelOpen:i().func,onProcessRowUpdateError:i().func,onResize:i().func,onRowClick:i().func,onRowCountChange:i().func,onRowDoubleClick:i().func,onRowEditStart:i().func,onRowEditStop:i().func,onRowModesModelChange:i().func,onRowSelectionModelChange:i().func,onSortModelChange:i().func,onStateChange:i().func,pageSizeOptions:i().arrayOf(i().oneOfType([i().number,i().shape({label:i().string.isRequired,value:i().number.isRequired})]).isRequired),pagination:i().oneOf([!0]),paginationMeta:i().shape({hasNextPage:i().bool}),paginationMode:i().oneOf(["client","server"]),paginationModel:i().shape({page:i().number.isRequired,pageSize:i().number.isRequired}),processRowUpdate:i().func,resizeThrottleMs:i().number,rowBufferPx:i().number,rowCount:i().number,rowHeight:i().number,rowModesModel:i().object,rowPositionsDebounceMs:i().number,rows:i().arrayOf(i().object),rowSelection:i().bool,rowSelectionModel:i().oneOfType([i().arrayOf(i().oneOfType([i().number,i().string]).isRequired),i().number,i().string]),rowSpacingType:i().oneOf(["border","margin"]),scrollbarSize:i().number,showCellVerticalBorder:i().bool,showColumnVerticalBorder:i().bool,slotProps:i().object,slots:i().object,sortingMode:i().oneOf(["client","server"]),sortingOrder:i().arrayOf(i().oneOf(["asc","desc"])),sortModel:i().arrayOf(i().shape({field:i().string.isRequired,sort:i().oneOf(["asc","desc"])})),sx:i().oneOfType([i().arrayOf(i().oneOfType([i().func,i().object,i().bool])),i().func,i().object]),unstable_rowSpanning:i().bool,virtualizeColumnsWithAutoRowHeight:i().bool}},65325:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,D:()=>i});var n=r(6614),o=r(59747),l=r(61828);const i="actions",a=(0,n.A)({},o.C,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:l.o,getApplyQuickFilterFn:void 0})},97830:(e,t,r)=>{"use strict";r.d(t,{H:()=>c});var n=r(6614),o=r(59747),l=r(2735),i=r(24411),a=r(14298),s=r(52446);const c=(0,n.A)({},o.C,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:l.b,renderEditCell:i.b,sortComparator:a.Ou,valueFormatter:(e,t,r,n)=>e?n.current.getLocaleText("booleanCellTrueLabel"):n.current.getLocaleText("booleanCellFalseLabel"),filterOperators:(0,s.y)(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)})},52446:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(19868);const o=()=>[{value:"is",getApplyFilterFn:e=>{const t=(0,n.U)(e.value);return void 0===t?null:e=>Boolean(e)===t},InputComponent:n.h}]},92179:(e,t,r)=>{"use strict";r.d(t,{f:()=>u,t:()=>c});var n=r(6614),o=(r(7552),r(17279)),l=r(83861),i=r(82188),a=r(97830),s=r(69500);const c="__check__",u=(0,n.A)({},a.H,{type:"custom",field:c,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,r,n)=>void 0!==(0,i.Zk)(n)[n.current.getRowId(t)],renderHeader:e=>(0,s.jsx)(l.J,(0,n.A)({},e)),renderCell:e=>(0,s.jsx)(o.r,(0,n.A)({},e))})},54310:(e,t,r)=>{"use strict";r.d(t,{Bj:()=>d,SZ:()=>u,mP:()=>p,zT:()=>c});var n=r(6614),o=r(14298),l=r(30430),i=r(59747),a=r(26067);function s({value:e,columnType:t,rowId:r,field:n}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${r}, field: "${n}".`].join("\n"))}const c=(e,t,r,n)=>e?(s({value:e,columnType:"date",rowId:n.current.getRowId(t),field:r.field}),e.toLocaleDateString()):"",u=(e,t,r,n)=>e?(s({value:e,columnType:"dateTime",rowId:n.current.getRowId(t),field:r.field}),e.toLocaleString()):"",d=(0,n.A)({},i.C,{type:"date",sortComparator:o.VE,valueFormatter:c,filterOperators:(0,l.Q)(),renderEditCell:a.z,pastedValueParser:e=>new Date(e)}),p=(0,n.A)({},i.C,{type:"dateTime",sortComparator:o.VE,valueFormatter:u,filterOperators:(0,l.Q)(!0),renderEditCell:a.z,pastedValueParser:e=>new Date(e)})},30430:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(22762);function o(e,t,r,n){if(!e.value)return null;const o=new Date(e.value);r?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const l=o.getTime();return e=>{if(!e)return!1;if(n)return t(e.getTime(),l);const o=new Date(e);return r?o.setSeconds(0,0):o.setHours(0,0,0,0),t(o.getTime(),l)}}const l=e=>[{value:"is",getApplyFilterFn:t=>o(t,((e,t)=>e===t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>o(t,((e,t)=>e!==t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>o(t,((e,t)=>e>t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>o(t,((e,t)=>e>=t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>o(t,((e,t)=>e<t),e,!e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>o(t,((e,t)=>e<=t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1}]},23987:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u,x:()=>c});var n=r(59747),o=r(21605),l=r(54310),i=r(97830),a=r(10830),s=r(65325);const c="string",u=()=>({string:n.C,number:o.g,date:l.Bj,dateTime:l.mP,boolean:i.H,singleSelect:a.m,[s.D]:s.C,custom:n.C})},21605:(e,t,r)=>{"use strict";r.d(t,{g:()=>s});var n=r(6614),o=r(14298),l=r(58766),i=r(81647),a=r(59747);const s=(0,n.A)({},a.C,{type:"number",align:"right",headerAlign:"right",sortComparator:o.Ou,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>(0,l.Et)(e)?e.toLocaleString():e||"",filterOperators:(0,i.J)(),getApplyQuickFilterFn:i.h})},81647:(e,t,r)=>{"use strict";r.d(t,{J:()=>a,h:()=>i});var n=r(31525),o=r(33745);const l=e=>null==e?null:Number(e),i=e=>null==e||Number.isNaN(e)||""===e?null:t=>l(t)===l(e),a=()=>[{value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>l(t)===e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>l(t)!==e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)>e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)>=e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)<e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)<=e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:o.M,InputComponentProps:{type:"number"}}]},10830:(e,t,r)=>{"use strict";r.d(t,{m:()=>c});var n=r(6614),o=r(59747),l=r(57715),i=r(60150),a=r(12003),s=r(58766);const c=(0,n.A)({},o.C,{type:"singleSelect",getOptionLabel:e=>(0,s.Gv)(e)?e.label:String(e),getOptionValue:e=>(0,s.Gv)(e)?e.value:e,valueFormatter(e,t,r,n){const o=n.current.getRowId(t);if(!(0,a._W)(r))return"";const l=(0,a.KJ)(r,{id:o,row:t});if(null==e)return"";if(!l)return e;if("object"!=typeof l[0])return r.getOptionLabel(e);const i=l.find((t=>r.getOptionValue(t)===e));return i?r.getOptionLabel(i):""},renderEditCell:l.j,filterOperators:(0,i.m)(),pastedValueParser:(e,t,r)=>{const n=r,o=(0,a.KJ)(n)||[],l=n.getOptionValue;if(o.find((t=>l(t)===e)))return e}})},60150:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(24634),o=r(57134),l=r(58766);const i=e=>null!=e&&(0,l.Gv)(e)?e.value:e,a=()=>[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>i(t)===i(e.value),InputComponent:n.t},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>i(t)!==i(e.value),InputComponent:n.t},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(i);return e=>t.includes(i(e))},InputComponent:o.B}]},59747:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(3619),o=r(14298),l=r(21721);const i={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:o.Az,type:"string",align:"left",filterOperators:(0,l.n)(),renderEditCell:n.j,getApplyQuickFilterFn:l.X}},21721:(e,t,r)=>{"use strict";r.d(t,{X:()=>a,n:()=>d});var n=r(31525),o=r(58766),l=r(33745),i=r(43905);const a=e=>{if(!e)return null;const t=new RegExp((0,o.Nt)(e),"i");return(e,r,n,o)=>{let l=o.current.getRowFormattedValue(r,n);return o.current.ignoreDiacritics&&(l=(0,i.WL)(l)),null!=l&&t.test(l.toString())}},s=(e,t)=>r=>{if(!r.value)return null;const n=e?r.value:r.value.trim(),l=new RegExp((0,o.Nt)(n),"i");return e=>{if(null==e)return t;const r=l.test(String(e));return t?!r:r}},c=(e,t)=>r=>{if(!r.value)return null;const n=e?r.value:r.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>{if(null==e)return t;const r=0===o.compare(n,e.toString());return t?!r:r}},u=e=>()=>t=>{const r=""===t||null==t;return e?!r:r},d=(e=!1)=>[{value:"contains",getApplyFilterFn:s(e,!1),InputComponent:n.y},{value:"doesNotContain",getApplyFilterFn:s(e,!0),InputComponent:n.y},{value:"equals",getApplyFilterFn:c(e,!1),InputComponent:n.y},{value:"doesNotEqual",getApplyFilterFn:c(e,!0),InputComponent:n.y},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp(`^${(0,o.Nt)(r)}.*$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:n.y},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp(`.*${(0,o.Nt)(r)}$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:n.y},{value:"isEmpty",getApplyFilterFn:u(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:u(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const r=e?t.value:t.value.map((e=>e.trim())),n=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&r.some((t=>0===n.compare(t,e.toString()||"")))},InputComponent:l.M}]},79162:(e,t,r)=>{"use strict";r.d(t,{f:()=>B});var n=r(6614),o=r(83673),l=r(7552),i=r(76117),a=r(96746),s=r(93878),c=r(51148),u=r(12274),d=r(64565),p=r(71115),f=r(89148),g=r(86775),m=r(29641),h=r(35281),b=r(72988),w=r(70799),C=r(50089),v=r(23456),x=r(76959),y=r(8751),A=r(76404),R=r(50796),S=r(10930),I=r(89270),M=r(31922),k=r(69500);function P(e){const{groupId:t,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:c,hasFocus:p,tabIndex:f,isLastColumn:g,pinnedPosition:m,pinnedOffset:h}=e,b=(0,d.A)(),P=(0,v.I)(),E=l.useRef(null),F=(0,A.h)(),H=(0,u.Nc)(F,y.ED),O=t?H[t]:{},{headerName:T=t??"",description:D="",headerAlign:z}=O;let L;const $=t&&H[t]?.renderHeaderGroup,N=l.useMemo((()=>({groupId:t,headerName:T,description:D,depth:o,maxDepth:i,fields:a,colIndex:c,isLastColumn:g})),[t,T,D,o,i,a,c,g]);t&&$&&(L=$(N));const j=(0,n.A)({},e,{classes:b.classes,headerAlign:z,depth:o,isDragging:!1}),V=T??t,B=(0,C.A)(),G=null===t?`empty-group-cell-${B}`:t,_=(e=>{const{classes:t,headerAlign:r,isDragging:n,isLastColumn:o,showLeftBorder:l,showRightBorder:i,groupId:a,pinnedPosition:s}=e,c={root:["columnHeader","left"===r&&"columnHeader--alignLeft","center"===r&&"columnHeader--alignCenter","right"===r&&"columnHeader--alignRight",n&&"columnHeader--moving",i&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder","withBorderColor",null===a?"columnHeader--emptyGroup":"columnHeader--filledGroup",s===I.yL.LEFT&&"columnHeader--pinnedLeft",s===I.yL.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,w.A)(c,x.B,t)})(j);l.useLayoutEffect((()=>{if(p){const e=E.current.querySelector('[tabindex="0"]')||E.current;e?.focus()}}),[F,p]);const W=l.useCallback((e=>t=>{(0,S.TA)(t)||F.current.publishEvent(e,N,t)}),[F,N]),U=l.useMemo((()=>({onKeyDown:W("columnGroupHeaderKeyDown"),onFocus:W("columnGroupHeaderFocus"),onBlur:W("columnGroupHeaderBlur")})),[W]),q="function"==typeof O.headerClassName?O.headerClassName(N):O.headerClassName,K=l.useMemo((()=>(0,M.l)((0,n.A)({},e.style),P,m,h)),[m,h,e.style,P]);return(0,k.jsx)(R.a,(0,n.A)({ref:E,classes:_,columnMenuOpen:!1,colIndex:c,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:L,headerClassName:q,description:D,elementId:G,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:V,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,style:K},U))}var E=r(80163),F=r(85290),H=r(98571),O=r(38975),T=r(4780);const D=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"});var z=r(48467);const L=["className"],$=(0,z.A)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),N=(0,a.R)((function(e,t){const{className:r}=e,l=(0,o.A)(e,L),i=(0,d.A)(),a=(e=>{const{classes:t}=e;return(0,w.A)({root:["columnHeaders"]},x.B,t)})(i);return(0,k.jsx)($,(0,n.A)({className:(0,s.A)(a.root,r),ownerState:i},l,{role:"presentation",ref:t}))})),j=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],V=(0,a.R)((function(e,t){const{visibleColumns:r,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:w,columnHeaderFocus:C,columnGroupHeaderFocus:v,headerGroupingMaxDepth:A,columnMenuState:R,columnVisibility:S,columnGroupsHeaderStructure:M,hasOtherElementInTabSequence:z}=e,L=(0,o.A)(e,j),{getInnerProps:$,getColumnHeadersRow:V,getColumnGroupHeadersRows:B}=(e=>{const{visibleColumns:t,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:w,headerGroupingMaxDepth:C,columnMenuState:v,columnVisibility:A,columnGroupsHeaderStructure:R,hasOtherElementInTabSequence:S}=e,[M,z]=l.useState(""),[L,$]=l.useState(""),N=(0,p.E)(),j=(0,d.A)(),V=(0,u.Nc)(N,m.z),B=(0,u.Nc)(N,y.TQ),G=(0,u.Nc)(N,E.Sw),_=(0,u.Nc)(N,h.EG),W=(0,u.Nc)(N,E.Q1),U=(0,u.Nc)(N,E.gv),q=(0,b.Yr)(G,_,W.left.length),K=V.columnsTotalWidth<V.viewportOuterSize.width;l.useEffect((()=>{N.current.columnHeadersContainerRef.current&&(N.current.columnHeadersContainerRef.current.scrollLeft=0)}),[N]);const X=l.useCallback((e=>$(e.field)),[]),Y=l.useCallback((()=>$("")),[]),Z=l.useCallback((e=>z(e.field)),[]),Q=l.useCallback((()=>z("")),[]),J=l.useMemo((()=>W.left.length?{firstColumnIndex:0,lastColumnIndex:W.left.length}:null),[W.left.length]),ee=l.useMemo((()=>W.right.length?{firstColumnIndex:t.length-W.right.length,lastColumnIndex:t.length}:null),[W.right.length,t.length]);(0,f.cz)(N,"columnResizeStart",X),(0,f.cz)(N,"columnResizeStop",Y),(0,f.cz)(N,"columnHeaderDragStart",Z),(0,f.cz)(N,"columnHeaderDragEnd",Q);const te=e=>{const{renderContext:r=_}=e||{},n=r.firstColumnIndex,o=r.lastColumnIndex;return{renderedColumns:t.slice(n,o),firstColumnToRender:n,lastColumnToRender:o}},re=(e,t,r,n=!1)=>{const o=e?.position===I.yL.RIGHT,i=void 0===e?.position,a=W.right.length>0&&o||0===W.right.length&&i,c=q-r;return(0,k.jsxs)(l.Fragment,{children:[i&&(0,k.jsx)("div",{role:"presentation",style:{width:c}}),t,i&&(0,k.jsx)("div",{role:"presentation",className:(0,s.A)(x.x.filler,n&&x.x["filler--borderBottom"])}),a&&(0,k.jsx)(F.t,{header:!0,pinnedRight:o,borderBottom:n,borderTop:!1})]})},ne=(e,t={})=>{const{renderedColumns:l,firstColumnToRender:a}=te(e),s=[];for(let u=0;u<l.length;u+=1){const d=l[u],p=a+u,f=0===p,m=null!==i&&i.field===d.field||f&&!S?0:-1,h=null!==c&&c.field===d.field,b=v.open&&v.field===d.field,w=e?.position,C=V.hasScrollY?V.scrollbarSize:0,x=(0,H.Y)(w,d.computedWidth,p,G,V.columnsTotalWidth,C),y=w===I.yL.RIGHT?l[u-1]:l[u+1],A=!!y&&null!==c&&c.field===y.field,R=p+1===G.length-W.right.length,P=u,E=l.length,F=(0,T.o)(w,P),O=(0,T.L)(w,P,E,j.showCellVerticalBorder,K);s.push((0,k.jsx)(g.d,(0,n.A)({},r[d.field],{columnMenuOpen:b,filterItemsCounter:o[d.field]&&o[d.field].length,headerHeight:V.headerHeight,isDragging:d.field===M,colDef:d,colIndex:p,isResizing:L===d.field,isLast:p===G.length-1,hasFocus:h,tabIndex:m,pinnedPosition:w,pinnedOffset:x,isLastUnpinned:R,isSiblingFocused:A,showLeftBorder:F,showRightBorder:O},t),d.field))}return re(e,s,0)},oe=({depth:e,params:r})=>{const o=te(r);if(0===o.renderedColumns.length)return null;const{firstColumnToRender:l,lastColumnToRender:i}=o,s=R[e],c=t[l].field,u=B[c]?.[e]??null,d=s.findIndex((({groupId:e,columnFields:t})=>e===u&&t.includes(c))),p=t[i-1].field,f=B[p]?.[e]??null,g=s.findIndex((({groupId:e,columnFields:t})=>e===f&&t.includes(p))),m=s.slice(d,g+1).map((e=>(0,n.A)({},e,{columnFields:e.columnFields.filter((e=>!1!==A[e]))}))).filter((e=>e.columnFields.length>0)),h=m[0].columnFields.indexOf(c),b=m[0].columnFields.slice(0,h).reduce(((e,t)=>e+(U[t].computedWidth??0)),0);let v=l;const x=m.map((({groupId:t,columnFields:n},o)=>{const l=null!==w&&w.depth===e&&n.includes(w.field),i=null!==a&&a.depth===e&&n.includes(a.field)?0:-1,s={groupId:t,width:n.reduce(((e,t)=>e+U[t].computedWidth),0),fields:n,colIndex:v,hasFocus:l,tabIndex:i},c=r.position,u=V.hasScrollY?V.scrollbarSize:0,d=(0,H.Y)(c,s.width,v,G,V.columnsTotalWidth,u);v+=n.length;let p=o;return c===I.yL.LEFT&&(p=v-1),(0,k.jsx)(P,{groupId:t,width:s.width,fields:s.fields,colIndex:s.colIndex,depth:e,isLastColumn:o===m.length-1,maxDepth:C,height:V.groupHeaderHeight,hasFocus:l,tabIndex:i,pinnedPosition:c,pinnedOffset:d,showLeftBorder:(0,T.o)(c,p),showRightBorder:(0,T.L)(c,p,m.length,j.showCellVerticalBorder,K)},o)}));return re(r,x,b)};return{renderContext:_,leftRenderContext:J,rightRenderContext:ee,pinnedColumns:W,visibleColumns:t,columnPositions:G,getFillers:re,getColumnHeadersRow:()=>(0,k.jsxs)(D,{role:"row","aria-rowindex":C+1,ownerState:j,className:x.x["row--borderBottom"],children:[J&&ne({position:I.yL.LEFT,renderContext:J},{disableReorder:!0}),ne({renderContext:_}),ee&&ne({position:I.yL.RIGHT,renderContext:ee},{disableReorder:!0,separatorSide:O.j.Left})]}),getColumnsToRender:te,getColumnGroupHeadersRows:()=>{if(0===C)return null;const e=[];for(let t=0;t<C;t+=1)e.push((0,k.jsxs)(D,{role:"row","aria-rowindex":t+1,ownerState:j,children:[J&&oe({depth:t,params:{position:I.yL.LEFT,renderContext:J,maxLastColumn:J.lastColumnIndex}}),oe({depth:t,params:{renderContext:_}}),ee&&oe({depth:t,params:{position:I.yL.RIGHT,renderContext:ee,maxLastColumn:ee.lastColumnIndex}})]},t));return e},getPinnedCellOffset:H.Y,isDragging:!!M,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:r,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:w,columnHeaderFocus:C,columnGroupHeaderFocus:v,headerGroupingMaxDepth:A,columnMenuState:R,columnVisibility:S,columnGroupsHeaderStructure:M,hasOtherElementInTabSequence:z});return(0,k.jsxs)(N,(0,n.A)({},L,$(),{ref:t,children:[B(),V()]}))})),B=(0,i.n)(V)},35825:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});const n=r(7552).createContext(void 0)},55507:(e,t,r)=>{"use strict";r.d(t,{C:()=>g});var n=r(6614),o=(r(7552),r(96746)),l=r(12274),i=r(4394),a=r(82188),s=r(2220),c=r(76404),u=r(43434),d=r(91681),p=r(64565),f=r(69500);const g=(0,o.R)((function(e,t){const r=(0,c.h)(),o=(0,p.A)(),g=(0,l.Nc)(r,i.O8),m=(0,l.Nc)(r,a.vF),h=(0,l.Nc)(r,s.RN),b=!o.hideFooterSelectedRowCount&&m>0?(0,f.jsx)(u.p,{selectedRowCount:m}):(0,f.jsx)("div",{}),w=o.hideFooterRowCount||o.pagination?null:(0,f.jsx)(o.slots.footerRowCount,(0,n.A)({},o.slotProps?.footerRowCount,{rowCount:g,visibleRowCount:h})),C=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&(0,f.jsx)(o.slots.pagination,(0,n.A)({},o.slotProps?.pagination));return(0,f.jsxs)(d.J,(0,n.A)({},e,{ref:t,children:[b,w,C]}))}))},1074:(e,t,r)=>{"use strict";r.d(t,{k:()=>f});var n=r(6614),o=r(7552),l=r(64565),i=r(80163),a=r(12274),s=r(38577),c=r(48534),u=r(76404),d=r(69500);function p(){const e=(0,u.h)(),t=(0,a.Nc)(e,i.OV),r=(0,l.A)(),o=(0,a.Nc)(e,s._),p=e.current.unstable_applyPipeProcessors("preferencePanel",null,o.openedPanelValue??c.y.filters);return(0,d.jsx)(r.slots.panel,(0,n.A)({as:r.slots.basePopper,open:t.length>0&&o.open,id:o.panelId,"aria-labelledby":o.labelId},r.slotProps?.panel,r.slotProps?.basePopper,{children:p}))}function f(){const e=(0,l.A)();return(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)(p,{}),e.slots.toolbar&&(0,d.jsx)(e.slots.toolbar,(0,n.A)({},e.slotProps?.toolbar))]})}},29463:(e,t,r)=>{"use strict";r.d(t,{b:()=>z});var n=r(6614),o=r(83673),l=r(7552),i=r(84421),a=r(59705),s=r(96746),c=r(1895),u=r(93878),d=r(48467),p=r(29527),f=r(70799),g=r(23456),m=r(76404),h=r(64565),b=r(12274),w=r(29641),C=r(80163),v=r(89148),x=r(89270),y=r(76959),A=r(98571),R=r(4780),S=r(10930),I=r(85290),M=r(88697),k=r(31922),P=r(69500);const E=(0,d.A)("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),F=e=>parseInt(e.getAttribute("data-colindex"),10),H=(0,s.R)((function(e,t){const r=(0,h.A)(),{slots:o}=r,i=(0,g.I)(),a=(e=>{const{classes:t}=e;return(0,f.A)({root:["skeletonLoadingOverlay"]},y.B,t)})({classes:r.classes}),s=l.useRef(null),c=(0,p.A)(s,t),d=(0,m.h)(),H=(0,b.Nc)(d,w.z),O=H?.viewportInnerSize.height??0,T=Math.ceil(O/H.rowHeight),D=(0,b.Nc)(d,C.fc),z=(0,b.Nc)(d,C.Sw),L=l.useMemo((()=>z.filter((e=>e<=D)).length),[D,z]),$=(0,b.Nc)(d,C.iv),N=l.useMemo((()=>$.slice(0,L)),[$,L]),j=(0,b.Nc)(d,C.Q1),V=l.useCallback((e=>-1!==j.left.findIndex((t=>t.field===e))?x.yL.LEFT:-1!==j.right.findIndex((t=>t.field===e))?x.yL.RIGHT:void 0),[j.left,j.right]),B=l.useMemo((()=>{const e=[];for(let t=0;t<T;t+=1){const l=[];for(let e=0;e<N.length;e+=1){const a=N[e],s=V(a.field),c=s===x.yL.LEFT,d=s===x.yL.RIGHT,p=(0,M.p)(s,i),f=p?j[p].length:N.length-j.left.length-j.right.length,g=p?j[p].findIndex((e=>e.field===a.field)):e-j.left.length,m=H.hasScrollY?H.scrollbarSize:0,h=(0,k.l)({},i,s,(0,A.Y)(s,a.computedWidth,e,z,H.columnsTotalWidth,m)),b=H.columnsTotalWidth<H.viewportOuterSize.width,w=(0,R.L)(s,g,f,r.showCellVerticalBorder,b),C=(0,R.o)(s,g),v=e===N.length-1,S=d&&0===g,E=S&&b,F=v&&!S&&b,O=H.viewportOuterSize.width-H.columnsTotalWidth,T=Math.max(0,O),D=(0,P.jsx)(o.skeletonCell,{width:T,empty:!0},`skeleton-filler-column-${t}`),L=v&&0!==m;E&&l.push(D),l.push((0,P.jsx)(o.skeletonCell,{field:a.field,type:a.type,align:a.align,width:"var(--width)",height:H.rowHeight,"data-colindex":e,className:(0,u.A)(c&&y.x["cell--pinnedLeft"],d&&y.x["cell--pinnedRight"],w&&y.x["cell--withRightBorder"],C&&y.x["cell--withLeftBorder"]),style:(0,n.A)({"--width":`${a.computedWidth}px`},h)},`skeleton-column-${t}-${a.field}`)),F&&l.push(D),L&&l.push((0,P.jsx)(I.t,{pinnedRight:j.right.length>0},`skeleton-scrollbar-filler-${t}`))}e.push((0,P.jsx)("div",{className:(0,u.A)(y.x.row,y.x.rowSkeleton,0===t&&y.x["row--firstVisible"]),children:l},`skeleton-row-${t}`))}return e}),[o,N,j,T,r.showCellVerticalBorder,H,z,V,i]);return(0,v.cz)(d,"columnResize",(e=>{const{colDef:t,width:r}=e,n=s.current?.querySelectorAll(`[data-field="${(0,S.AP)(t.field)}"]`);if(!n)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const o=N.findIndex((e=>e.field===t.field)),l=V(t.field),i=l===x.yL.LEFT,a=l===x.yL.RIGHT,c=getComputedStyle(n[0]).getPropertyValue("--width"),u=parseInt(c,10)-r;if(n&&n.forEach((e=>{e.style.setProperty("--width",`${r}px`)})),i){const e=s.current?.querySelectorAll(`.${y.x["cell--pinnedLeft"]}`);e?.forEach((e=>{F(e)>o&&(e.style.left=parseInt(getComputedStyle(e).left,10)-u+"px")}))}if(a){const e=s.current?.querySelectorAll(`.${y.x["cell--pinnedRight"]}`);e?.forEach((e=>{F(e)<o&&(e.style.right=`${parseInt(getComputedStyle(e).right,10)+u}px`)}))}})),(0,P.jsx)(E,(0,n.A)({className:a.root},e,{ref:c,children:B}))}));var O=r(4394);const T=["variant","noRowsVariant","style"],D={"circular-progress":{component:a.A,style:{}},"linear-progress":{component:i.A,style:{display:"block"}},skeleton:{component:H,style:{display:"block"}}},z=(0,s.R)((function(e,t){const{variant:r="circular-progress",noRowsVariant:l="circular-progress",style:i}=e,a=(0,o.A)(e,T),s=(0,m.h)(),u=(0,b.Nc)(s,O.H0),d=D[0===u?l:r];return(0,P.jsx)(c.$,(0,n.A)({style:(0,n.A)({},d.style,i)},a,{ref:t,children:(0,P.jsx)(d.component,{})}))}))},77484:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(6614),o=(r(7552),r(96746)),l=r(76404),i=r(1895),a=r(69500);const s=(0,o.R)((function(e,t){const r=(0,l.h)().current.getLocaleText("noRowsLabel");return(0,a.jsx)(i.$,(0,n.A)({},e,{ref:t,children:r}))}))},56384:(e,t,r)=>{"use strict";r.d(t,{h:()=>h});var n=r(6614),o=r(7552),l=r(51148),i=r(8565),a=r(85663),s=r(96746),c=r(12274),u=r(76404),d=r(64565),p=r(24940),f=r(69500);const g=(0,l.Ay)(i.A)((({theme:e})=>({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${a.A.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${a.A.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),m=({from:e,to:t,count:r,estimated:n})=>n?`${e}–${t} of ${-1!==r?r:`more than ${n>t?n:t}`}`:`${e}–${t} of ${-1!==r?r:`more than ${t}`}`,h=(0,s.R)((function(e,t){const r=(0,u.h)(),l=(0,d.A)(),i=(0,c.Nc)(r,p.lN),a=(0,c.Nc)(r,p.H2),s=(0,c.Nc)(r,p.O),{paginationMode:h,loading:b,estimatedRowCount:w}=l,C=o.useMemo((()=>-1===a&&"server"===h&&b?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{}),[b,h,a]),v=o.useMemo((()=>Math.max(0,s-1)),[s]),x=o.useMemo((()=>-1===a||i.page<=v?i.page:v),[v,i.page,a]),y=o.useCallback((e=>{const t=Number(e.target.value);r.current.setPageSize(t)}),[r]),A=o.useCallback(((e,t)=>{r.current.setPage(t)}),[r]),R=(e=>{for(let t=0;t<l.pageSizeOptions.length;t+=1){const r=l.pageSizeOptions[t];if("number"==typeof r){if(r===e)return!0}else if(r.value===e)return!0}return!1})(i.pageSize)?l.pageSizeOptions:[],S=r.current.getLocaleText("MuiTablePagination"),I=(M=S.labelDisplayedRows||m,k=w,({from:e,to:t,count:r,page:n})=>M({from:e,to:t,count:r,page:n,estimated:k}));var M,k;return(0,f.jsx)(g,(0,n.A)({component:"div",count:a,page:x,rowsPerPageOptions:R,rowsPerPage:i.pageSize,onPageChange:A,onRowsPerPageChange:y},C,S,{labelDisplayedRows:I},e,{ref:t}))}))},34299:(e,t,r)=>{"use strict";r.d(t,{T:()=>H});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(29527),s=r(76117),c=r(96746),u=r(87795),d=r(76959),p=r(70799),f=r(64565),g=r(4780),m=r(80163),h=r(12274),b=r(23392),w=r(10930),C=r(92179),v=r(65325),x=r(89270),y=r(43026),A=r(4394),R=r(62185),S=r(85290),I=r(98571),M=r(68337),k=r(71115),P=r(69500);const E=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],F=(0,c.R)((function(e,t){const{selected:r,rowId:s,row:c,index:F,style:H,rowHeight:O,className:T,visibleColumns:D,pinnedColumns:z,offsetLeft:L,columnsTotalWidth:$,firstColumnIndex:N,lastColumnIndex:j,focusedColumnIndex:V,isFirstVisible:B,isLastVisible:G,isNotVisible:_,showBottomBorder:W,scrollbarWidth:U,gridHasFiller:q,onClick:K,onDoubleClick:X,onMouseEnter:Y,onMouseLeave:Z,onMouseOut:Q,onMouseOver:J}=e,ee=(0,o.A)(e,E),te=(0,k.E)(),re=(0,M.Q)(),ne=l.useRef(null),oe=(0,f.A)(),le=(0,b.h)(te,oe),ie=(0,h.Nc)(te,y.XU),ae=(0,h.Nc)(te,A.V2),se=(0,h.Nc)(te,m.Sw),ce=(0,h.Nc)(te,R.w),ue=(0,a.A)(ne,t),de=te.current.getRowNode(s),pe=te.current.getRowMode(s)===u.V_.Edit,fe=oe.editMode===u.RL.Row,ge=void 0!==V,me=ge&&V>=z.left.length&&V<N,he=ge&&V<D.length-z.right.length&&V>=j,be=function(e,t){return(0,p.A)(t,d.B,e)}(oe.classes,{root:["row",r&&"selected",fe&&"row--editable",pe&&"row--editing",B&&"row--firstVisible",G&&"row--lastVisible",W&&"row--borderBottom","auto"===O&&"row--dynamicHeight"]}),we=re.hooks.useGridRowAriaAttributes();l.useLayoutEffect((()=>{if(le.range){const e=te.current.getRowIndexRelativeToVisibleRows(s);void 0!==e&&te.current.unstable_setLastMeasuredRowIndex(e)}if(ne.current&&"auto"===O)return te.current.observeRowHeight(ne.current,s)}),[te,le.range,O,s]);const Ce=l.useCallback(((e,t)=>r=>{(0,w.TA)(r)||te.current.getRow(s)&&(te.current.publishEvent(e,te.current.getRowParams(s),r),t&&t(r))}),[te,s]),ve=l.useCallback((e=>{const t=(0,w.fl)(e.target,d.x.cell),r=t?.getAttribute("data-field");if(r){if(r===C.f.field)return;if(r===x.Ux)return;if("__reorder__"===r)return;if(te.current.getCellMode(s,r)===u.bs.Edit)return;const e=te.current.getColumn(r);if(e?.type===v.D)return}Ce("rowClick",K)(e)}),[te,K,Ce,s]),{slots:xe,slotProps:ye,disableColumnReorder:Ae}=oe,Re=oe.rowReordering,Se=(0,h.Nc)(te,(()=>(0,n.A)({},te.current.getRowHeightEntry(s))),h.TJ),Ie=l.useMemo((()=>{if(_)return{opacity:0,width:0,height:0};const e=(0,n.A)({},H,{maxHeight:"auto"===O?"none":O,minHeight:O,"--height":"number"==typeof O?`${O}px`:O});if(Se.spacingTop&&(e["border"===oe.rowSpacingType?"borderTopWidth":"marginTop"]=Se.spacingTop),Se.spacingBottom){const t="border"===oe.rowSpacingType?"borderBottomWidth":"marginBottom";let r=e[t];"number"!=typeof r&&(r=parseInt(r||"0",10)),r+=Se.spacingBottom,e[t]=r}return e}),[_,O,H,Se,oe.rowSpacingType]),Me=te.current.unstable_applyPipeProcessors("rowClassName",[],s),ke=de?we(de,F):void 0;if("function"==typeof oe.getRowClassName){const e=F-(le.range?.firstRowIndex||0),t=(0,n.A)({},te.current.getRowParams(s),{isFirstVisible:0===e,isLastVisible:e===le.rows.length-1,indexRelativeToCurrentPage:e});Me.push(oe.getRowClassName(t))}const Pe=(e,t,r,o,l=x.yL.NONE)=>{const i=te.current.unstable_getCellColSpanInfo(s,r);if(i?.spannedByColSpan)return null;const a=i?.cellProps.width??e.computedWidth,c=i?.cellProps.colSpan??1,u=(0,I.Y)(l,e.computedWidth,r,se,$,U);if("skeletonRow"===de?.type)return(0,P.jsx)(xe.skeletonCell,{type:e.type,width:a,height:O,field:e.field,align:e.align},e.field);const d=ce[s]?.[e.field]??null,p="__reorder__"===e.field,f=Object.keys(ce).length>0,m=!(Ae||e.disableReorder),h=Re&&!ie.length&&ae<=1&&!f,b=!(m||p&&h),w=l===x.yL.VIRTUAL,C=(0,g.o)(l,t),v=(0,g.L)(l,t,o,oe.showCellVerticalBorder,q);return(0,P.jsx)(xe.cell,(0,n.A)({column:e,width:a,rowId:s,align:e.align||"left",colIndex:r,colSpan:c,disableDragEvents:b,editCellState:d,isNotVisible:w,pinnedOffset:u,pinnedPosition:l,showLeftBorder:C,showRightBorder:v},ye?.cell),e.field)};if(!de)return null;const Ee=z.left.map(((e,t)=>Pe(e,t,t,z.left.length,x.yL.LEFT))),Fe=z.right.map(((e,t)=>{const r=D.length-z.right.length+t;return Pe(e,t,r,z.right.length,x.yL.RIGHT)})),He=D.length-z.left.length-z.right.length,Oe=[];me&&Oe.push(Pe(D[V],V-z.left.length,V,He,x.yL.VIRTUAL));for(let e=N;e<j;e+=1){const t=D[e],r=e-z.left.length;t&&Oe.push(Pe(t,r,e,He))}he&&Oe.push(Pe(D[V],V-z.left.length,V,He,x.yL.VIRTUAL));const Te=c?{onClick:ve,onDoubleClick:Ce("rowDoubleClick",X),onMouseEnter:Ce("rowMouseEnter",Y),onMouseLeave:Ce("rowMouseLeave",Z),onMouseOut:Ce("rowMouseOut",Q),onMouseOver:Ce("rowMouseOver",J)}:null;return(0,P.jsxs)("div",(0,n.A)({"data-id":s,"data-rowindex":F,role:"row",className:(0,i.A)(...Me,be.root,T),style:Ie},ke,Te,ee,{ref:ue,children:[Ee,(0,P.jsx)("div",{role:"presentation",className:d.x.cellOffsetLeft,style:{width:L}}),Oe,(0,P.jsx)("div",{role:"presentation",className:(0,i.A)(d.x.cell,d.x.cellEmpty)}),Fe,0!==U&&(0,P.jsx)(S.t,{pinnedRight:z.right.length>0})]}))})),H=(0,s.n)(F)},22987:(e,t,r)=>{"use strict";r.d(t,{g:()=>m});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(70799),a=r(48467),s=r(96746),c=r(76404),u=r(76959),d=r(64565),p=r(69500);const f=["className","rowCount","visibleRowCount"],g=(0,a.A)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)}))),m=(0,s.R)((function(e,t){const{className:r,rowCount:a,visibleRowCount:s}=e,m=(0,o.A)(e,f),h=(0,c.h)(),b=(0,d.A)(),w=(e=>{const{classes:t}=e;return(0,i.A)({root:["rowCount"]},u.B,t)})(b);if(0===a)return null;const C=s<a?h.current.getLocaleText("footerTotalVisibleRows")(s,a):a.toLocaleString();return(0,p.jsxs)(g,(0,n.A)({className:(0,l.A)(w.root,r),ownerState:b},m,{ref:t,children:[h.current.getLocaleText("footerTotalRows")," ",C]}))}))},85290:(e,t,r)=>{"use strict";r.d(t,{t:()=>a}),r(7552);var n=r(93878),o=r(76959),l=r(69500);const i={root:o.x.scrollbarFiller,header:o.x["scrollbarFiller--header"],borderTop:o.x["scrollbarFiller--borderTop"],borderBottom:o.x["scrollbarFiller--borderBottom"],pinnedRight:o.x["scrollbarFiller--pinnedRight"]};function a({header:e,borderTop:t=!0,borderBottom:r,pinnedRight:o}){return(0,l.jsx)("div",{role:"presentation",className:(0,n.A)(i.root,e&&i.header,t&&i.borderTop,r&&i.borderBottom,o&&i.pinnedRight)})}},43434:(e,t,r)=>{"use strict";r.d(t,{p:()=>m});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(70799),a=r(48467),s=r(96746),c=r(76404),u=r(76959),d=r(64565),p=r(69500);const f=["className","selectedRowCount"],g=(0,a.A)("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"}}))),m=(0,s.R)((function(e,t){const{className:r,selectedRowCount:a}=e,s=(0,o.A)(e,f),m=(0,c.h)(),h=(0,d.A)(),b=(e=>{const{classes:t}=e;return(0,i.A)({root:["selectedRowCount"]},u.B,t)})(h),w=m.current.getLocaleText("footerRowSelected")(a);return(0,p.jsx)(g,(0,n.A)({className:(0,l.A)(b.root,r),ownerState:h},s,{ref:t,children:w}))}))},98114:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(6614),o=(r(7552),r(64565)),l=r(69500);function i(){const e=(0,o.A)();return e.hideFooter?null:(0,l.jsx)(e.slots.footer,(0,n.A)({},e.slotProps?.footer))}},80677:(e,t,r)=>{"use strict";r.d(t,{I:()=>w});var n=r(6614),o=(r(7552),r(48467)),l=r(70799),i=r(93878),a=r(59458),s=r(12274),c=r(29641),u=r(76404),d=r(64565),p=r(76959),f=r(69500);const g=(0,o.A)("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e,overridesResolver:(e,t)=>t.overlayWrapper})((({overlayType:e,loadingOverlayVariant:t})=>"skeleton"!==t?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:"loadingOverlay"===e?5:4}:{})),m=(0,o.A)("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e,overridesResolver:(e,t)=>t.overlayWrapperInner})({}),h=e=>{const{classes:t}=e;return(0,l.A)({root:["overlayWrapper"],inner:["overlayWrapperInner"]},p.B,t)};function b(e){const t=(0,u.h)(),r=(0,d.A)(),o=(0,s.Nc)(t,c.z);let l=Math.max(o.viewportOuterSize.height-o.topContainerHeight-o.bottomContainerHeight-(o.hasScrollX?o.scrollbarSize:0),0);0===l&&(l=a.SN);const p=h((0,n.A)({},e,{classes:r.classes}));return(0,f.jsx)(g,(0,n.A)({className:(0,i.A)(p.root)},e,{children:(0,f.jsx)(m,(0,n.A)({className:(0,i.A)(p.inner),style:{height:l,width:o.viewportOuterSize.width}},e))}))}function w(e){const{overlayType:t}=e,r=(0,d.A)();if(!t)return null;const o=r.slots?.[t],l=r.slotProps?.[t];return(0,f.jsx)(b,(0,n.A)({},e,{children:(0,f.jsx)(o,(0,n.A)({},l))}))}},61828:(e,t,r)=>{"use strict";r.d(t,{i:()=>h,o:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(6679),a=r(23456),s=r(50089),c=r(76959),u=r(83749),d=r(64565),p=r(76404),f=r(69500);const g=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],m=e=>"function"==typeof e.getActions;function h(e){const{colDef:t,id:r,hasFocus:h,tabIndex:b,position:w="bottom-end",focusElementRef:C}=e,v=(0,o.A)(e,g),[x,y]=l.useState(-1),[A,R]=l.useState(!1),S=(0,p.h)(),I=l.useRef(null),M=l.useRef(null),k=l.useRef(!1),P=l.useRef({}),E=(0,a.I)(),F=(0,s.A)(),H=(0,s.A)(),O=(0,d.A)();if(!m(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const T=t.getActions(S.current.getRowParams(r)),D=T.filter((e=>!e.props.showInMenu)),z=T.filter((e=>e.props.showInMenu)),L=D.length+(z.length?1:0);l.useLayoutEffect((()=>{h||Object.entries(P.current).forEach((([e,t])=>{t?.stop({},(()=>{delete P.current[e]}))}))}),[h]),l.useEffect((()=>{x<0||!I.current||x>=I.current.children.length||I.current.children[x].focus({preventScroll:!0})}),[x]),l.useEffect((()=>{h||(y(-1),k.current=!1)}),[h]),l.useImperativeHandle(C,(()=>({focus(){if(!k.current){const e=T.findIndex((e=>!e.props.disabled));y(e)}}})),[T]),l.useEffect((()=>{x>=L&&y(L-1)}),[x,L]);const $=()=>{R(!1)},N=e=>t=>{P.current[e]=t},j=(e,t)=>r=>{y(e),k.current=!0,t&&t(r)};return(0,f.jsxs)("div",(0,n.A)({role:"menu",ref:I,tabIndex:-1,className:c.x.actionsCell,onKeyDown:e=>{if(L<=1)return;const t=(e,r)=>{if(e<0||e>T.length)return e;const n=("left"===r?-1:1)*(E?-1:1);return T[e+n]?.props.disabled?t(e+n,r):e+n};let r=x;"ArrowRight"===e.key?r=t(x,"right"):"ArrowLeft"===e.key&&(r=t(x,"left")),r<0||r>=L||r!==x&&(e.preventDefault(),e.stopPropagation(),y(r))}},v,{children:[D.map(((e,t)=>l.cloneElement(e,{key:t,touchRippleRef:N(t),onClick:j(t,e.props.onClick),tabIndex:x===t?b:-1}))),z.length>0&&H&&(0,f.jsx)(O.slots.baseIconButton,(0,n.A)({ref:M,id:H,"aria-label":S.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":A,"aria-controls":A?F:void 0,role:"menuitem",size:"small",onClick:()=>{A?$():(R(!0),y(L-1),k.current=!0)},touchRippleRef:N(H),tabIndex:x===D.length?b:-1},O.slotProps?.baseIconButton,{children:(0,f.jsx)(O.slots.moreActionsIcon,{fontSize:"small"})})),z.length>0&&(0,f.jsx)(u.U,{open:A,target:M.current,position:w,onClose:$,children:(0,f.jsx)(i.A,{id:F,className:c.x.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Escape"].includes(e.key)&&$()},"aria-labelledby":H,variant:"menu",autoFocusItem:!0,children:z.map(((e,t)=>l.cloneElement(e,{key:t,closeMenu:$})))})})]}))}const b=e=>(0,f.jsx)(h,(0,n.A)({},e))},2735:(e,t,r)=>{"use strict";r.d(t,{b:()=>w,n:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(70799),a=r(12274),s=r(4394),c=r(76959),u=r(64565),d=r(76404),p=r(59458),f=r(89270),g=r(69500);const m=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"];function h(e){const{value:t,rowNode:r}=e,p=(0,o.A)(e,m),f=(0,d.h)(),h=(0,u.A)(),b=(e=>{const{classes:t}=e;return(0,i.A)({root:["booleanCell"]},c.B,t)})({classes:h.classes}),w=(0,a.Nc)(f,s.V2)>0&&"group"===r.type&&!1===h.treeData,C=l.useMemo((()=>t?h.slots.booleanCellTrueIcon:h.slots.booleanCellFalseIcon),[h.slots.booleanCellFalseIcon,h.slots.booleanCellTrueIcon,t]);return w&&void 0===t?null:(0,g.jsx)(C,(0,n.A)({fontSize:"small",className:b.root,titleAccess:f.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},p))}const b=l.memo(h),w=e=>e.field!==f.mH&&(0,p.nF)(e.rowNode)?"":(0,g.jsx)(b,(0,n.A)({},e))},33360:(e,t,r)=>{"use strict";r.d(t,{L:()=>P});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(33283),s=r(70799),c=r(29527),u=r(99305),d=r(76117),p=r(23456),f=r(96746);let g;var m=r(76959),h=r(87795),b=r(12274),w=r(76404),C=r(64565),v=r(36155),x=r(89270),y=r(92442),A=r(31922),R=r(69500);const S=["column","rowId","editCellState","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],I=["changeReason","unstable_updateValueOnRender"],M=(x.yL.LEFT,v.K.LEFT,x.yL.RIGHT,v.K.RIGHT,x.yL.NONE,x.yL.VIRTUAL,{id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:h.bs.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}}),k=(0,f.R)((function(e,t){const{column:r,rowId:d,editCellState:f,align:v,colIndex:k,width:P,className:E,style:F,colSpan:H,disableDragEvents:O,isNotVisible:T,pinnedOffset:D,pinnedPosition:z,showRightBorder:L,showLeftBorder:$,onClick:N,onDoubleClick:j,onMouseDown:V,onMouseUp:B,onMouseOver:G,onKeyDown:_,onKeyUp:W,onDragEnter:U,onDragOver:q}=e,K=(0,o.A)(e,S),X=(0,w.h)(),Y=(0,C.A)(),Z=(0,p.I)(),Q=r.field,J=(0,b.Nc)(X,(()=>{if(!X.current.getRow(d))return M;const e=X.current.getCellParams(d,Q);return e.api=X.current,e}),b.TJ),ee=(0,b.Nc)(X,(()=>X.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:d,field:Q}))),te=(0,b.Nc)(X,y.xX),re=(0,b.Nc)(X,y.ET),{cellMode:ne,hasFocus:oe,isEditable:le=!1,value:ie}=J,ae="actions"===r.type&&r.getActions?.(X.current.getRowParams(d)).some((e=>!e.props.disabled)),se="view"!==ne&&le||ae?-1:J.tabIndex,{classes:ce,getCellClassName:ue}=Y,de=[(0,b.Nc)(X,(()=>X.current.unstable_applyPipeProcessors("cellClassName",[],{id:d,field:Q}).filter(Boolean).join(" ")))];r.cellClassName&&de.push("function"==typeof r.cellClassName?r.cellClassName(J):r.cellClassName),"flex"===r.display&&de.push(m.x["cell--flex"]),ue&&de.push(ue(J));const pe=J.formattedValue??ie,fe=l.useRef(null),ge=(0,c.A)(t,fe),me=l.useRef(null),he=Y.cellSelection??!1,be=(e=>{const{align:t,showLeftBorder:r,showRightBorder:n,pinnedPosition:o,isEditable:l,isSelected:i,isSelectionMode:c,classes:u}=e,d={root:["cell",`cell--text${(0,a.A)(t)}`,i&&"selected",l&&"cell--editable",r&&"cell--withLeftBorder",n&&"cell--withRightBorder",o===x.yL.LEFT&&"cell--pinnedLeft",o===x.yL.RIGHT&&"cell--pinnedRight",c&&!l&&"cell--selectionMode"]};return(0,s.A)(d,m.B,u)})({align:v,showLeftBorder:$,showRightBorder:L,isEditable:le,classes:Y.classes,pinnedPosition:z,isSelected:ee,isSelectionMode:he}),we=l.useCallback((e=>t=>{const r=X.current.getCellParams(d,Q||"");X.current.publishEvent(e,r,t),B&&B(t)}),[X,Q,B,d]),Ce=l.useCallback((e=>t=>{const r=X.current.getCellParams(d,Q||"");X.current.publishEvent(e,r,t),V&&V(t)}),[X,Q,V,d]),ve=l.useCallback(((e,t)=>r=>{if(!X.current.getRow(d))return;const n=X.current.getCellParams(d,Q||"");X.current.publishEvent(e,n,r),t&&t(r)}),[X,Q,d]),xe=te[d]?.[Q]??!1,ye=re[d]?.[Q]??1,Ae=l.useMemo((()=>{if(T)return{padding:0,opacity:0,width:0,height:0,border:0};const e=(0,A.l)((0,n.A)({"--width":`${P}px`},F),Z,z,D),t=z===x.yL.LEFT,r=z===x.yL.RIGHT;return ye>1&&(e.height=`calc(var(--height) * ${ye})`,e.zIndex=5,(t||r)&&(e.zIndex=6)),e}),[P,T,F,D,z,Z,ye]);if(l.useEffect((()=>{if(!oe||ne===h.bs.Edit)return;const e=(0,u.A)(X.current.rootElementRef.current);if(fe.current&&!fe.current.contains(e.activeElement)){const e=fe.current.querySelector('[tabindex="0"]'),t=me.current||e||fe.current;if(void 0===g&&document.createElement("div").focus({get preventScroll(){return g=!0,!1}}),g)t.focus({preventScroll:!0});else{const e=X.current.getScrollPosition();t.focus(),X.current.scroll(e)}}}),[oe,ne,X]),xe)return(0,R.jsx)("div",{"data-colindex":k,role:"presentation",style:(0,n.A)({width:"var(--width)"},Ae)});if(J===M)return null;let Re,Se,Ie=K.onFocus;if(null===f&&r.renderCell&&(Re=r.renderCell(J)),null!==f&&r.renderEditCell){const e=X.current.getRowWithUpdatedValues(d,r.field),t=(0,o.A)(f,I),l=r.valueFormatter?r.valueFormatter(f.value,e,r,X):J.formattedValue,i=(0,n.A)({},J,{row:e,formattedValue:l},t);Re=r.renderEditCell(i),de.push(m.x["cell--editing"]),de.push(ce?.["cell--editing"])}if(void 0===Re){const e=pe?.toString();Re=e,Se=e}l.isValidElement(Re)&&ae&&(Re=l.cloneElement(Re,{focusElementRef:me}));const Me=O?null:{onDragEnter:ve("cellDragEnter",U),onDragOver:ve("cellDragOver",q)};return(0,R.jsx)("div",(0,n.A)({className:(0,i.A)(be.root,de,E),role:"gridcell","data-field":Q,"data-colindex":k,"aria-colindex":k+1,"aria-colspan":H,"aria-rowspan":ye,style:Ae,title:Se,tabIndex:se,onClick:ve("cellClick",N),onDoubleClick:ve("cellDoubleClick",j),onMouseOver:ve("cellMouseOver",G),onMouseDown:Ce("cellMouseDown"),onMouseUp:we("cellMouseUp"),onKeyDown:ve("cellKeyDown",_),onKeyUp:ve("cellKeyUp",W)},Me,K,{onFocus:Ie,ref:ge,children:Re}))})),P=(0,d.n)(k)},24411:(e,t,r)=>{"use strict";r.d(t,{X:()=>h,b:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(70799),s=r(50089),c=r(83933),u=r(76959),d=r(64565),p=r(76404),f=r(69500);const g=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],m=e=>{const{classes:t}=e;return(0,a.A)({root:["editBooleanCell"]},u.B,t)};function h(e){const{id:t,value:r,field:a,className:u,hasFocus:h,onValueChange:b}=e,w=(0,o.A)(e,g),C=(0,p.h)(),v=l.useRef(null),x=(0,s.A)(),[y,A]=l.useState(r),R=(0,d.A)(),S={classes:R.classes},I=m(S),M=l.useCallback((async e=>{const r=e.target.checked;b&&await b(e,r),A(r),await C.current.setEditCellValue({id:t,field:a,value:r},e)}),[C,a,t,b]);return l.useEffect((()=>{A(r)}),[r]),(0,c.A)((()=>{h&&v.current.focus()}),[h]),(0,f.jsx)("label",(0,n.A)({htmlFor:x,className:(0,i.A)(I.root,u)},w,{children:(0,f.jsx)(R.slots.baseCheckbox,(0,n.A)({id:x,inputRef:v,checked:Boolean(y),onChange:M,size:"small"},R.slotProps?.baseCheckbox))}))}const b=e=>(0,f.jsx)(h,(0,n.A)({},e))},26067:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b,z:()=>w});var n=r(6614),o=r(83673),l=r(7552),i=r(70799),a=r(83933),s=r(98879),c=r(51148),u=r(76959),d=r(64565),p=r(76404),f=r(69500);const g=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],m=(0,c.Ay)(s.Ay)({fontSize:"inherit"}),h=e=>{const{classes:t}=e;return(0,i.A)({root:["editInputCell"]},u.B,t)};function b(e){const{id:t,value:r,field:i,colDef:s,hasFocus:c,inputProps:u,onValueChange:b}=e,w=(0,o.A)(e,g),C="dateTime"===s.type,v=(0,p.h)(),x=l.useRef(null),y=l.useMemo((()=>{let e,t;return e=null==r?null:r instanceof Date?r:new Date((r??"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,C?16:10),{parsed:e,formatted:t}}),[r,C]),[A,R]=l.useState(y),S={classes:(0,d.A)().classes},I=h(S),M=l.useCallback((e=>{if(""===e)return null;const[t,r]=e.split("T"),[n,o,l]=t.split("-"),i=new Date;if(i.setFullYear(Number(n),Number(o)-1,Number(l)),i.setHours(0,0,0,0),r){const[e,t]=r.split(":");i.setHours(Number(e),Number(t),0,0)}return i}),[]),k=l.useCallback((async e=>{const r=e.target.value,n=M(r);b&&await b(e,n),R({parsed:n,formatted:r}),v.current.setEditCellValue({id:t,field:i,value:n},e)}),[v,i,t,b,M]);return l.useEffect((()=>{R((e=>y.parsed!==e.parsed&&y.parsed?.getTime()!==e.parsed?.getTime()?y:e))}),[y]),(0,a.A)((()=>{c&&x.current.focus()}),[c]),(0,f.jsx)(m,(0,n.A)({inputRef:x,fullWidth:!0,className:I.root,type:C?"datetime-local":"date",inputProps:(0,n.A)({max:C?"9999-12-31T23:59":"9999-12-31"},u),value:A.formatted,onChange:k},w))}const w=e=>(0,f.jsx)(b,(0,n.A)({},e))},3619:(e,t,r)=>{"use strict";r.d(t,{B:()=>b,j:()=>w});var n=r(83673),o=r(6614),l=r(7552),i=r(70799),a=r(83933),s=r(51148),c=r(98879),u=r(96746),d=r(76959),p=r(64565),f=r(76404),g=r(69500);const m=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],h=(0,s.Ay)(c.Ay,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>(0,o.A)({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}))),b=(0,u.R)(((e,t)=>{const r=(0,p.A)(),{id:s,value:c,field:u,colDef:b,hasFocus:w,debounceMs:C=200,isProcessingProps:v,onValueChange:x}=e,y=(0,n.A)(e,m),A=(0,f.h)(),R=l.useRef(null),[S,I]=l.useState(c),M=(e=>{const{classes:t}=e;return(0,i.A)({root:["editInputCell"]},d.B,t)})(r),k=l.useCallback((async e=>{const t=e.target.value;x&&await x(e,t);const r=A.current.getColumn(u);let n=t;r.valueParser&&(n=r.valueParser(t,A.current.getRow(s),r,A)),I(n),A.current.setEditCellValue({id:s,field:u,value:n,debounceMs:C,unstable_skipValueParser:!0},e)}),[A,C,u,s,x]),P=A.current.unstable_getEditCellMeta(s,u);return l.useEffect((()=>{"debouncedSetEditCellValue"!==P?.changeReason&&I(c)}),[P,c]),(0,a.A)((()=>{w&&R.current.focus()}),[w]),(0,g.jsx)(h,(0,o.A)({inputRef:R,className:M.root,ownerState:r,fullWidth:!0,type:"number"===b.type?b.type:"text",value:S??"",onChange:k,endAdornment:v?(0,g.jsx)(r.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},y,{ref:t}))})),w=e=>(0,g.jsx)(b,(0,o.A)({},e))},57715:(e,t,r)=>{"use strict";r.d(t,{D:()=>m,j:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(83933),a=r(88729),s=r(64565),c=r(87795),u=r(12003),d=r(76404),p=r(69500);const f=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],g=["MenuProps"];function m(e){const t=(0,s.A)(),{id:r,value:m,field:h,row:b,colDef:w,hasFocus:C,error:v,onValueChange:x,initialOpen:y=t.editMode===c.RL.Cell}=e,A=(0,o.A)(e,f),R=(0,d.h)(),S=l.useRef(null),I=l.useRef(null),[M,k]=l.useState(y),P=(t.slotProps?.baseSelect||{}).native??!1,E=t.slotProps?.baseSelect||{},{MenuProps:F}=E,H=(0,o.A)(E,g);if((0,i.A)((()=>{C&&I.current?.focus()}),[C]),!(0,u._W)(w))return null;const O=(0,u.KJ)(w,{id:r,row:b});if(!O)return null;const T=w.getOptionValue,D=w.getOptionLabel;return O&&w?(0,p.jsx)(t.slots.baseSelect,(0,n.A)({ref:S,inputRef:I,value:m,onChange:async e=>{if(!(0,u._W)(w)||!O)return;k(!1);const t=e.target,n=(0,u.Rc)(t.value,O,T);x&&await x(e,n),await R.current.setEditCellValue({id:r,field:h,value:n},e)},open:M,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||k(!0)},MenuProps:(0,n.A)({onClose:(e,o)=>{if(t.editMode!==c.RL.Row){if("backdropClick"===o||"Escape"===e.key){const t=R.current.getCellParams(r,h);R.current.publishEvent("cellEditStop",(0,n.A)({},t,{reason:"Escape"===e.key?a.Q.escapeKeyDown:a.Q.cellFocusOut}))}}else k(!1)}},F),error:v,native:P,fullWidth:!0},A,H,{children:O.map((e=>{const r=T(e);return(0,l.createElement)(t.slots.baseSelectOption,(0,n.A)({},t.slotProps?.baseSelectOption||{},{native:P,key:r,value:r}),D(e))}))})):null}const h=e=>(0,p.jsx)(m,(0,n.A)({},e))},10736:(e,t,r)=>{"use strict";r.d(t,{k:()=>v});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(27943),s=r(33283),c=r(70799),u=r(76117),d=r(58766),p=r(64565),f=r(76959),g=r(69500);const m=["field","type","align","width","height","empty","style","className"],h="1.3em",b=[40,80],w={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},C=(0,d.E1)(12345),v=(0,u.n)((function(e){const{field:t,type:r,align:u,width:d,height:v,empty:x=!1,style:y,className:A}=e,R=(0,o.A)(e,m),S=(e=>{const{align:t,classes:r,empty:n}=e,o={root:["cell","cellSkeleton",`cell--text${t?(0,s.A)(t):"Left"}`,n&&"cellEmpty"]};return(0,c.A)(o,f.B,r)})({classes:(0,p.A)().classes,align:u,empty:x}),I=l.useMemo((()=>{if("boolean"===r||"actions"===r)return{variant:"circular",width:h,height:h};const[e,t]=r?w[r]??b:b;return{variant:"text",width:`${Math.round(C(e,t))}%`,height:"1.2em"}}),[r]);return(0,g.jsx)("div",(0,n.A)({"data-field":t,className:(0,i.A)(S.root,A),style:(0,n.A)({height:v,maxWidth:d,minWidth:d},y)},R,{children:!x&&(0,g.jsx)(a.A,(0,n.A)({},I))}))}))},92765:(e,t,r)=>{"use strict";r.d(t,{f:()=>h});var n=r(6614),o=r(7552),l=r(70799),i=r(50089),a=r(12274),s=r(38577),c=r(48534),u=r(76404),d=r(76959),p=r(64565),f=r(71481),g=r(69500);const m=e=>{const{classes:t}=e;return(0,l.A)({icon:["filterIcon"]},d.B,t)};function h(e){return e.counter?(0,g.jsx)(b,(0,n.A)({},e)):null}function b(e){const{counter:t,field:r,onClick:l}=e,d=(0,u.h)(),h=(0,p.A)(),b=(0,n.A)({},e,{classes:h.classes}),w=m(b),C=(0,i.A)(),v=(0,a.JR)(d,s.B,C),x=(0,i.A)(),y=o.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=(0,s._)(d.current.state);t&&n===c.y.filters?d.current.hideFilterPanel():d.current.showFilterPanel(void 0,x,C),l&&l(d.current.getColumnHeaderParams(r),e)}),[d,r,l,x,C]);if(!t)return null;const A=(0,g.jsx)(h.slots.baseIconButton,(0,n.A)({id:C,onClick:y,color:"default","aria-label":d.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?x:void 0},h.slotProps?.baseIconButton,{children:(0,g.jsx)(h.slots.columnFilteredIcon,{className:w.icon,fontSize:"small"})}));return(0,g.jsx)(h.slots.baseTooltip,(0,n.A)({title:d.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},h.slotProps?.baseTooltip,{children:(0,g.jsxs)(f.r,{children:[t>1&&(0,g.jsx)(h.slots.baseBadge,{badgeContent:t,color:"default",children:A}),1===t&&A]})}))}},86775:(e,t,r)=>{"use strict";r.d(t,{d:()=>x});var n=r(6614),o=r(7552),l=r(93878),i=r(70799),a=r(50089),s=r(76117),c=r(23456),u=r(71115),d=r(76404),p=r(76959),f=r(64565),g=r(69500);const m=o.memo((e=>{const{colDef:t,open:r,columnMenuId:l,columnMenuButtonId:a,iconButtonRef:s}=e,c=(0,d.h)(),u=(0,f.A)(),m=(e=>{const{classes:t,open:r}=e,n={root:["menuIcon",r&&"menuOpen"],button:["menuIconButton"]};return(0,i.A)(n,p.B,t)})((0,n.A)({},e,{classes:u.classes})),h=o.useCallback((e=>{e.preventDefault(),e.stopPropagation(),c.current.toggleColumnMenu(t.field)}),[c,t.field]);return(0,g.jsx)("div",{className:m.root,children:(0,g.jsx)(u.slots.baseTooltip,(0,n.A)({title:c.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,{children:(0,g.jsx)(u.slots.baseIconButton,(0,n.A)({ref:s,tabIndex:-1,className:m.button,"aria-label":c.current.getLocaleText("columnMenuLabel"),size:"small",onClick:h,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?l:void 0,id:a},u.slotProps?.baseIconButton,{children:(0,g.jsx)(u.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})}));var h=r(42386),b=r(50796),w=r(10930),C=r(89270),v=r(31922);const x=(0,s.n)((function(e){const{colDef:t,columnMenuOpen:r,colIndex:s,headerHeight:d,isResizing:x,isLast:y,sortDirection:A,sortIndex:R,filterItemsCounter:S,hasFocus:I,tabIndex:M,disableReorder:k,separatorSide:P,showLeftBorder:E,showRightBorder:F,pinnedPosition:H,pinnedOffset:O}=e,T=(0,u.E)(),D=(0,f.A)(),z=(0,c.I)(),L=o.useRef(null),$=(0,a.A)(),N=(0,a.A)(),j=o.useRef(null),[V,B]=o.useState(r),G=o.useMemo((()=>!D.disableColumnReorder&&!k&&!t.disableReorder),[D.disableColumnReorder,k,t.disableReorder]);let _;t.renderHeader&&(_=t.renderHeader(T.current.getColumnHeaderParams(t.field)));const W=(e=>{const{colDef:t,classes:r,isDragging:n,sortDirection:o,showRightBorder:l,showLeftBorder:a,filterItemsCounter:s,pinnedPosition:c,isLastUnpinned:u,isSiblingFocused:d}=e,f=null!=o,g=null!=s&&s>0,m="number"===t.type,h={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",n&&"columnHeader--moving",f&&"columnHeader--sorted",g&&"columnHeader--filtered",m&&"columnHeader--numeric","withBorderColor",l&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",c===C.yL.LEFT&&"columnHeader--pinnedLeft",c===C.yL.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",d&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,i.A)(h,p.B,r)})((0,n.A)({},e,{classes:D.classes,showRightBorder:F,showLeftBorder:E})),U=o.useCallback((e=>r=>{(0,w.TA)(r)||T.current.publishEvent(e,T.current.getColumnHeaderParams(t.field),r)}),[T,t.field]),q=o.useMemo((()=>({onClick:U("columnHeaderClick"),onContextMenu:U("columnHeaderContextMenu"),onDoubleClick:U("columnHeaderDoubleClick"),onMouseOver:U("columnHeaderOver"),onMouseOut:U("columnHeaderOut"),onMouseEnter:U("columnHeaderEnter"),onMouseLeave:U("columnHeaderLeave"),onKeyDown:U("columnHeaderKeyDown"),onFocus:U("columnHeaderFocus"),onBlur:U("columnHeaderBlur")})),[U]),K=o.useMemo((()=>G?{onDragStart:U("columnHeaderDragStart"),onDragEnter:U("columnHeaderDragEnter"),onDragOver:U("columnHeaderDragOver"),onDragEnd:U("columnHeaderDragEnd")}:{}),[G,U]),X=o.useMemo((()=>({onMouseDown:U("columnSeparatorMouseDown"),onDoubleClick:U("columnSeparatorDoubleClick")})),[U]);o.useEffect((()=>{V||B(r)}),[V,r]);const Y=o.useCallback((()=>{B(!1)}),[]),Z=!D.disableColumnMenu&&!t.disableColumnMenu&&(0,g.jsx)(m,{colDef:t,columnMenuId:$,columnMenuButtonId:N,open:V,iconButtonRef:j}),Q=(0,g.jsx)(h.H,{columnMenuId:$,columnMenuButtonId:N,field:t.field,open:r,target:j.current,ContentComponent:D.slots.columnMenu,contentComponentProps:D.slotProps?.columnMenu,onExited:Y}),J=t.sortingOrder??D.sortingOrder,ee=(t.sortable||null!=A)&&!t.hideSortIcons&&!D.disableColumnSorting,te=(0,g.jsxs)(o.Fragment,{children:[!D.disableColumnFilter&&(0,g.jsx)(D.slots.columnHeaderFilterIconButton,(0,n.A)({field:t.field,counter:S},D.slotProps?.columnHeaderFilterIconButton)),ee&&(0,g.jsx)(D.slots.columnHeaderSortIcon,(0,n.A)({field:t.field,direction:A,index:R,sortingOrder:J,disabled:!t.sortable},D.slotProps?.columnHeaderSortIcon))]});o.useLayoutEffect((()=>{const e=T.current.state.columnMenu;if(I&&!e.open){const e=L.current.querySelector('[tabindex="0"]')||L.current;e?.focus(),T.current.columnHeadersContainerRef?.current&&(T.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[T,I]);const re="function"==typeof t.headerClassName?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,ne=t.headerName??t.field,oe=o.useMemo((()=>(0,v.l)((0,n.A)({},e.style),z,H,O)),[H,O,e.style,z]);return(0,g.jsx)(b.a,(0,n.A)({ref:L,classes:W,columnMenuOpen:r,colIndex:s,height:d,isResizing:x,sortDirection:A,hasFocus:I,tabIndex:M,separatorSide:P,isDraggable:G,headerComponent:_,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:Z,columnTitleIconButtons:te,headerClassName:(0,l.A)(re,y&&p.x["columnHeader--last"]),label:ne,resizable:!D.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:Q,draggableContainerProps:K,columnHeaderSeparatorProps:X,style:oe},q))}))},38975:(e,t,r)=>{"use strict";r.d(t,{V:()=>g,j:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(33283),a=r(70799),s=r(76959),c=r(64565),u=r(69500);const d=["resizable","resizing","height","side"];var p=function(e){return e.Left="left",e.Right="right",e}(p||{});function f(e){const{height:t,side:r=p.Right}=e,f=(0,o.A)(e,d),g=(0,c.A)(),m=(e=>{const{resizable:t,resizing:r,classes:n,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",r&&"columnSeparator--resizing",o&&`columnSeparator--side${(0,i.A)(o)}`],icon:["iconSeparator"]};return(0,a.A)(l,s.B,n)})((0,n.A)({},e,{side:r,classes:g.classes})),h=l.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,u.jsx)("div",(0,n.A)({className:m.root,style:{minHeight:t}},f,{onClick:h,children:(0,u.jsx)(g.slots.columnResizeIcon,{className:m.icon})}))}const g=l.memo(f)},30943:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var n=r(83673),o=r(6614),l=r(7552),i=r(70799),a=r(76404),s=r(76959),c=r(64565),u=r(71481),d=r(69500);const p=["direction","index","sortingOrder","disabled"];function f(e){const{direction:t,index:r,sortingOrder:l,disabled:f}=e,g=(0,n.A)(e,p),m=(0,a.h)(),h=(0,c.A)(),b=(e=>{const{classes:t}=e;return(0,i.A)({icon:["sortIcon"]},s.B,t)})((0,o.A)({},e,{classes:h.classes})),w=function(e,t,r,n){let l;const i={};return"asc"===t?l=e.columnSortedAscendingIcon:"desc"===t?l=e.columnSortedDescendingIcon:(l=e.columnUnsortedIcon,i.sortingOrder=n),l?(0,d.jsx)(l,(0,o.A)({fontSize:"small",className:r},i)):null}(h.slots,t,b.icon,l);if(!w)return null;const C=(0,d.jsx)(h.slots.baseIconButton,(0,o.A)({tabIndex:-1,"aria-label":m.current.getLocaleText("columnHeaderSortIconLabel"),title:m.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:f},h.slotProps?.baseIconButton,g,{children:w}));return(0,d.jsxs)(u.r,{children:[null!=r&&(0,d.jsx)(h.slots.baseBadge,{badgeContent:r,color:"default",overlap:"circular",children:C}),null==r&&C]})}const g=l.memo(f)},87038:(e,t,r)=>{"use strict";r.d(t,{_:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(70799),s=r(48467),c=r(96746),u=r(10930),d=r(76959),p=r(64565),f=r(69500);const g=["className","aria-label"],m=(0,s.A)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),h=(0,c.R)((function(e,t){const{className:r}=e,l=(0,o.A)(e,g),s=(0,p.A)(),c=(e=>{const{classes:t}=e;return(0,a.A)({root:["columnHeaderTitle"]},d.B,t)})(s);return(0,f.jsx)(m,(0,n.A)({className:(0,i.A)(c.root,r),ownerState:s},l,{ref:t}))}));function b(e){const{label:t,description:r}=e,o=(0,p.A)(),i=l.useRef(null),[a,s]=l.useState(""),c=l.useCallback((()=>{if(!r&&i?.current){const e=(0,u.Dy)(i.current);s(e?t:"")}}),[r,t]);return(0,f.jsx)(o.slots.baseTooltip,(0,n.A)({title:r||a},o.slotProps?.baseTooltip,{children:(0,f.jsx)(h,{onMouseOver:c,ref:i,children:t})}))}},50796:(e,t,r)=>{"use strict";r.d(t,{a:()=>m});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(29527),s=r(96746),c=r(71115),u=r(87038),d=r(38975),p=r(64565),f=r(69500);const g=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],m=(0,s.R)((function(e,t){const{classes:r,colIndex:s,height:m,isResizing:h,sortDirection:b,hasFocus:w,tabIndex:C,separatorSide:v,isDraggable:x,headerComponent:y,description:A,width:R,columnMenuIconButton:S=null,columnMenu:I=null,columnTitleIconButtons:M=null,headerClassName:k,label:P,resizable:E,draggableContainerProps:F,columnHeaderSeparatorProps:H,style:O}=e,T=(0,o.A)(e,g),D=(0,c.E)(),z=(0,p.A)(),L=l.useRef(null),$=(0,a.A)(L,t);let N="none";return null!=b&&(N="asc"===b?"ascending":"descending"),l.useLayoutEffect((()=>{const e=D.current.state.columnMenu;if(w&&!e.open){const e=L.current.querySelector('[tabindex="0"]')||L.current;e?.focus(),D.current.columnHeadersContainerRef?.current&&(D.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[D,w]),(0,f.jsxs)("div",(0,n.A)({className:(0,i.A)(r.root,k),style:(0,n.A)({},O,{height:m,width:R}),role:"columnheader",tabIndex:C,"aria-colindex":s+1,"aria-sort":N},T,{ref:$,children:[(0,f.jsxs)("div",(0,n.A)({className:r.draggableContainer,draggable:x,role:"presentation"},F,{children:[(0,f.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,f.jsx)("div",{className:r.titleContainerContent,children:void 0!==y?y:(0,f.jsx)(u._,{label:P,description:A,columnWidth:R})}),M]}),S]})),(0,f.jsx)(d.V,(0,n.A)({resizable:!z.disableColumnResize&&!!E,resizing:h,height:m,side:v},H)),I]}))}))},71481:(e,t,r)=>{"use strict";r.d(t,{r:()=>g});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(70799),a=r(48467),s=r(96746),c=r(76959),u=r(64565),d=r(69500);const p=["className"],f=(0,a.A)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),g=(0,s.R)((function(e,t){const{className:r}=e,a=(0,o.A)(e,p),s=(0,u.A)(),g=(e=>{const{classes:t}=e;return(0,i.A)({root:["iconButtonContainer"]},c.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({className:(0,l.A)(g.root,r),ownerState:s},a,{ref:t}))}))},17279:(e,t,r)=>{"use strict";r.d(t,{c:()=>h,r:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(70799),a=r(29527),s=r(96746),c=r(76404),u=r(64565),d=r(76959),p=r(12274),f=r(41222),g=r(69500);const m=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],h=(0,s.R)((function(e,t){const{field:r,id:s,rowNode:h,hasFocus:b,tabIndex:w}=e,C=(0,o.A)(e,m),v=(0,c.h)(),x=(0,u.A)(),y=(e=>{const{classes:t}=e;return(0,i.A)({root:["checkboxInput"]},d.B,t)})({classes:x.classes}),A=l.useRef(null),R=l.useRef(null),S=(0,a.A)(A,t);l.useLayoutEffect((()=>{if(0===w){const e=v.current.getCellElement(s,r);e&&(e.tabIndex=-1)}}),[v,w,s,r]),l.useEffect((()=>{if(b){const e=A.current?.querySelector("input");e?.focus({preventScroll:!0})}else R.current&&R.current.stop({})}),[b]);const I=l.useCallback((e=>{" "===e.key&&e.stopPropagation()}),[]),M=v.current.isRowSelectable(s),k=(0,f.h_)(s,x.rowSelectionPropagation?.parents??!1),{isIndeterminate:P,isChecked:E}=(0,p.Nc)(v,k,p.TJ);if("footer"===h.type||"pinnedRow"===h.type)return null;const F="select"===x.indeterminateCheckboxAction?E&&!P:E,H=v.current.getLocaleText(F?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,g.jsx)(x.slots.baseCheckbox,(0,n.A)({tabIndex:w,checked:F,onChange:e=>{const t={value:e.target.checked,id:s};v.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:y.root,inputProps:{"aria-label":H,name:"select_row"},onKeyDown:I,indeterminate:P,disabled:!M,touchRippleRef:R},x.slotProps?.baseCheckbox,C,{ref:S}))})),b=h},83861:(e,t,r)=>{"use strict";r.d(t,{J:()=>C});var n=r(6614),o=r(83673),l=r(7552),i=r(70799),a=r(96746),s=r(41222),c=r(12274),u=r(3247),d=r(82188),p=r(76404),f=r(76959),g=r(64565),m=r(2220),h=r(24940),b=r(69500);const w=["field","colDef"],C=(0,a.R)((function(e,t){const r=(0,o.A)(e,w),[,a]=l.useState(!1),C=(0,p.h)(),v=(0,g.A)(),x=(e=>{const{classes:t}=e;return(0,i.A)({root:["checkboxInput"]},f.B,t)})({classes:v.classes}),y=(0,c.Nc)(C,u.Kr),A=(0,c.Nc)(C,d.Bi),R=(0,c.Nc)(C,m.ux),S=(0,c.Nc)(C,h.ee),I=l.useMemo((()=>"function"!=typeof v.isRowSelectable?A:A.filter((e=>!!v.keepNonExistentRowsSelected||!!C.current.getRow(e)&&v.isRowSelectable(C.current.getRowParams(e))))),[C,v.isRowSelectable,A,v.keepNonExistentRowsSelected]),M=l.useMemo((()=>(v.pagination&&v.checkboxSelectionVisibleOnly?S:R).reduce(((e,t)=>(e[t]=!0,e)),{})),[v.pagination,v.checkboxSelectionVisibleOnly,S,R]),k=l.useMemo((()=>I.filter((e=>M[e])).length),[I,M]),P=k>0&&k<Object.keys(M).length,E=k>0,F=null!==y&&y.field===e.field?0:-1;l.useLayoutEffect((()=>{const t=C.current.getColumnHeaderElement(e.field);0===F&&t&&(t.tabIndex=-1)}),[F,C,e.field]);const H=l.useCallback((e=>{" "===e.key&&C.current.publishEvent("headerSelectionCheckboxChange",{value:!E})}),[C,E]),O=l.useCallback((()=>{a((e=>!e))}),[]);l.useEffect((()=>C.current.subscribeEvent("rowSelectionChange",O)),[C,O]);const T="select"===v.indeterminateCheckboxAction?E&&!P:E,D=C.current.getLocaleText(T?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,b.jsx)(v.slots.baseCheckbox,(0,n.A)({indeterminate:P,checked:T,onChange:e=>{const t={value:e.target.checked};C.current.publishEvent("headerSelectionCheckboxChange",t)},className:x.root,inputProps:{"aria-label":D,name:"select_all_rows"},tabIndex:F,onKeyDown:H,disabled:!(0,s.cv)(v)},v.slotProps?.baseCheckbox,r,{ref:t}))}))},36014:(e,t,r)=>{"use strict";r.d(t,{D:()=>x});var n=r(6614),o=r(7552),l=r(70799),i=r(33371),a=r(51148),s=r(1343),c=r(3275),u=r(80163),d=r(12274),p=r(76404),f=r(64565),g=r(76959),m=r(53131);const h=(e,t)=>{const r=new Set(Object.keys(e).filter((t=>!1===e[t]))),n=new Set(Object.keys(t).filter((e=>!1===t[e])));if(r.size!==n.size)return!1;let o=!0;return r.forEach((e=>{n.has(e)||(o=!1)})),o},b=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;var w=r(69500);const C=e=>{const{classes:t}=e;return(0,l.A)({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},g.B,t)},v=new Intl.Collator;function x(e){const t=(0,p.h)(),r=o.useRef(null),l=(0,d.Nc)(t,u.OV),a=(0,m.A)((()=>(0,u.FY)(t))).current,s=(0,d.Nc)(t,u.FY),c=(0,f.A)(),[g,x]=o.useState(""),M=C(c),{sort:k,searchPredicate:P=b,autoFocusSearchField:E=!0,disableShowHideToggle:F=!1,disableResetButton:H=!1,toggleAllMode:O="all",getTogglableColumns:T,searchInputProps:D}=e,z=o.useMemo((()=>h(s,a)),[s,a]),L=o.useMemo((()=>{switch(k){case"asc":return[...l].sort(((e,t)=>v.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...l].sort(((e,t)=>-v.compare(e.headerName||e.field,t.headerName||t.field)));default:return l}}),[l,k]),$=e=>{const{name:r}=e.target;t.current.setColumnVisibility(r,!1===s[r])},N=o.useMemo((()=>{const e=T?T(L):null,t=e?L.filter((({field:t})=>e.includes(t))):L;return g?t.filter((e=>P(e,g.toLowerCase()))):t}),[L,g,P,T]),j=o.useCallback((e=>{const r=(0,u.FY)(t),o=(0,n.A)({},r),i=T?T(l):null;return("filteredOnly"===O?N:l).forEach((t=>{t.hideable&&(null==i||i.includes(t.field))&&(e?delete o[t.field]:o[t.field]=!1)})),t.current.setColumnVisibilityModel(o)}),[t,l,T,O,N]),V=o.useCallback((e=>{x(e.target.value)}),[]),B=o.useMemo((()=>N.filter((e=>e.hideable))),[N]),G=o.useMemo((()=>B.every((e=>null==s[e.field]||!1!==s[e.field]))),[s,B]),_=o.useMemo((()=>B.every((e=>!1===s[e.field]))),[s,B]),W=o.useRef(null);o.useEffect((()=>{E?r.current.focus():W.current&&"function"==typeof W.current.focus&&W.current.focus()}),[E]);let U=!1;const q=e=>!1===U&&!1!==e.hideable&&(U=!0,!0),K=o.useCallback((()=>{x(""),r.current.focus()}),[]);return(0,w.jsxs)(o.Fragment,{children:[(0,w.jsx)(A,{className:M.header,ownerState:c,children:(0,w.jsx)(R,(0,n.A)({as:c.slots.baseTextField,ownerState:c,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:r,className:M.searchInput,value:g,onChange:V,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:(0,w.jsx)(c.slots.baseInputAdornment,{position:"start",children:(0,w.jsx)(c.slots.quickFilterIcon,{})}),endAdornment:(0,w.jsx)(c.slots.baseIconButton,(0,n.A)({"aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[g?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:K},c.slotProps?.baseIconButton,{children:(0,w.jsx)(c.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},c.slotProps?.baseTextField,D))}),(0,w.jsxs)(y,{className:M.root,ownerState:c,children:[N.map((e=>(0,w.jsx)(i.A,{className:M.row,control:(0,w.jsx)(c.slots.baseCheckbox,(0,n.A)({disabled:!1===e.hideable,checked:!1!==s[e.field],onClick:$,name:e.field,sx:{p:.5},inputRef:q(e)?W:void 0},c.slotProps?.baseCheckbox)),label:e.headerName||e.field},e.field))),0===N.length&&(0,w.jsx)(I,{ownerState:c,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),F&&H||!(N.length>0)?null:(0,w.jsxs)(S,{ownerState:c,className:M.footer,children:[F?(0,w.jsx)("span",{}):(0,w.jsx)(i.A,{control:(0,w.jsx)(c.slots.baseCheckbox,(0,n.A)({disabled:0===B.length,checked:G,indeterminate:!G&&!_,onClick:()=>j(!G),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},c.slotProps?.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),H?null:(0,w.jsx)(c.slots.baseButton,(0,n.A)({onClick:()=>t.current.setColumnVisibilityModel(a),disabled:z},c.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]})]})}const y=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})((({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"}))),A=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})((({theme:e})=>({padding:e.spacing(1.5,3)}))),R=(0,a.Ay)(s.A,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})((({theme:e})=>({[`& .${c.A.root}`]:{padding:e.spacing(0,1.5,0,1.5)},[`& .${c.A.input}::-webkit-search-decoration,\n  & .${c.A.input}::-webkit-search-cancel-button,\n  & .${c.A.input}::-webkit-search-results-button,\n  & .${c.A.input}::-webkit-search-results-decoration`]:{display:"none"}}))),S=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})((({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`}))),I=(0,a.Ay)("div")((({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})))},91681:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(70799),a=r(48467),s=r(96746),c=r(76959),u=r(64565),d=r(69500);const p=["className"],f=(0,a.A)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),g=(0,s.R)((function(e,t){const{className:r}=e,a=(0,o.A)(e,p),s=(0,u.A)(),g=(e=>{const{classes:t}=e;return(0,i.A)({root:["footerContainer","withBorderColor"]},c.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({className:(0,l.A)(g.root,r),ownerState:s},a,{ref:t}))}))},1895:(e,t,r)=>{"use strict";r.d(t,{$:()=>g});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(70799),a=r(48467),s=r(96746),c=r(76959),u=r(64565),d=r(69500);const p=["className"],f=(0,a.A)("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)"}),g=(0,s.R)((function(e,t){const{className:r}=e,a=(0,o.A)(e,p),s=(0,u.A)(),g=(e=>{const{classes:t}=e;return(0,i.A)({root:["overlay"]},c.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({className:(0,l.A)(g.root,r),ownerState:s},a,{ref:t}))}))},48335:(e,t,r)=>{"use strict";r.d(t,{h:()=>O});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(33283),s=r(70799),c=r(29527),u=r(83933),d=r(76117),p=r(96746),f=r(963),g=r(51148),m=r(76959),h=r(12274),b=r(71115),w=r(29641);const C={[`& .${m.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${m.x.menuIcon}`]:{width:"auto",visibility:"visible"}},v={width:3,rx:1.5,x:10.5},x=(0,g.Ay)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${m.x.autoHeight}`]:t.autoHeight},{[`&.${m.x.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${m.x["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${m.x["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${m.x["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${m.x.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${m.x["root--disableUserSelection"]} .${m.x.cell}`]:t["root--disableUserSelection"]},{[`&.${m.x.autosizing}`]:t.autosizing},{[`& .${m.x.editBooleanCell}`]:t.editBooleanCell},{[`& .${m.x.cell}`]:t.cell},{[`& .${m.x["cell--editing"]}`]:t["cell--editing"]},{[`& .${m.x["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${m.x["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${m.x["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${m.x["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${m.x["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${m.x["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${m.x["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${m.x["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${m.x.cellCheckbox}`]:t.cellCheckbox},{[`& .${m.x.cellSkeleton}`]:t.cellSkeleton},{[`& .${m.x.checkboxInput}`]:t.checkboxInput},{[`& .${m.x["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${m.x["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${m.x["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${m.x["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${m.x["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${m.x["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${m.x["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${m.x["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${m.x["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${m.x.columnHeader}`]:t.columnHeader},{[`& .${m.x.headerFilterRow}`]:t.headerFilterRow},{[`& .${m.x.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${m.x.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${m.x.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${m.x["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${m.x["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${m.x.columnSeparator}`]:t.columnSeparator},{[`& .${m.x.filterIcon}`]:t.filterIcon},{[`& .${m.x.iconSeparator}`]:t.iconSeparator},{[`& .${m.x.menuIcon}`]:t.menuIcon},{[`& .${m.x.menuIconButton}`]:t.menuIconButton},{[`& .${m.x.menuOpen}`]:t.menuOpen},{[`& .${m.x.menuList}`]:t.menuList},{[`& .${m.x["row--editable"]}`]:t["row--editable"]},{[`& .${m.x["row--editing"]}`]:t["row--editing"]},{[`& .${m.x["row--dragging"]}`]:t["row--dragging"]},{[`& .${m.x.row}`]:t.row},{[`& .${m.x.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${m.x.rowReorderCell}`]:t.rowReorderCell},{[`& .${m.x["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${m.x.sortIcon}`]:t.sortIcon},{[`& .${m.x.withBorderColor}`]:t.withBorderColor},{[`& .${m.x.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${m.x.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${m.x.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${m.x.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${m.x.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${m.x["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((({theme:e})=>{const t=(0,b.E)(),r=(0,h.Nc)(t,w.z),o=(l=e).vars?l.vars.palette.TableCell.border:"light"===l.palette.mode?(0,f.a)((0,f.X4)(l.palette.divider,1),.88):(0,f.e$)((0,f.X4)(l.palette.divider,1),.68);var l;const i=e.shape.borderRadius,a=e.vars?e.vars.palette.background.default:e.mixins.MuiDataGrid?.containerBackground??e.palette.background.default,s=e.mixins.MuiDataGrid?.pinnedBackground??a,c=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:(0,f.X4)(e.palette.background.default,e.palette.action.disabledOpacity),u=(e.vars||e).palette.action.hoverOpacity,d=(e.vars||e).palette.action.hover,p=(e.vars||e).palette.action.selectedOpacity,g=e.vars?`calc(${u} + ${p})`:u+p,x=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${p})`:(0,f.X4)(e.palette.primary.main,p),A=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${g})`:(0,f.X4)(e.palette.primary.main,g),S=e.vars?R:y,I=e=>({[`& .${m.x["cell--pinnedLeft"]}, & .${m.x["cell--pinnedRight"]}`]:{backgroundColor:e,"&.Mui-selected":{backgroundColor:S(e,x,p),"&:hover":{backgroundColor:S(e,x,g)}}}}),M=I(S(s,d,u)),k=S(s,x,p),P=I(k),E=I(S(s,A,g)),F={backgroundColor:x,"&:hover":{backgroundColor:A,"@media (hover: none)":{backgroundColor:x}}};return(0,n.A)({"--unstable_DataGrid-radius":"number"==typeof i?`${i}px`:i,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":c,"--DataGrid-containerBackground":a,"--DataGrid-pinnedBackground":s,"--DataGrid-rowBorderColor":o,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:o,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${m.x.main} > *:first-child/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${m.x.autoHeight}`]:{height:"auto"},[`&.${m.x.autosizing}`]:{[`& .${m.x.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${m.x.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${m.x.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${m.x.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${m.x.groupingCriteriaCell}`]:{width:"unset"},[`& .${m.x.treeDataGroupingCell}`]:{width:"unset"}},[`& .${m.x.columnHeader}, & .${m.x.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${m.x.columnHeader}:focus-within, & .${m.x.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:(0,f.X4)(e.palette.primary.main,.5)} 1px`,outlineOffset:-1},[`& .${m.x.columnHeader}:focus, & .${m.x.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:-1},[`& .${m.x.columnHeader}:focus,\n      & .${m.x["columnHeader--withLeftBorder"]},\n      & .${m.x["columnHeader--withRightBorder"]},\n      & .${m.x["columnHeader--siblingFocused"]},\n      & .${m.x["virtualScroller--hasScrollX"]} .${m.x["columnHeader--lastUnpinned"]},\n      & .${m.x["virtualScroller--hasScrollX"]} .${m.x["columnHeader--last"]}\n      `]:{[`& .${m.x.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${m.x["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${m.x["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${m.x["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${m.x["root--noToolbar"]} [aria-rowindex="1"] .${m.x["columnHeader--last"]}`]:{borderTopRightRadius:!r.hasScrollX||r.hasScrollY&&0!==r.scrollbarSize?void 0:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`& .${m.x.columnHeaderCheckbox}, & .${m.x.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${m.x.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${m.x["virtualScroller--hasScrollX"]} .${m.x["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${m.x["columnHeader--sorted"]} .${m.x.iconButtonContainer}, & .${m.x["columnHeader--filtered"]} .${m.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${m.x.columnHeader}:not(.${m.x["columnHeader--sorted"]}) .${m.x.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${m.x.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${m.x.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${m.x["columnHeader--filledGroup"]} .${m.x.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${m.x.sortIcon}, & .${m.x.filterIcon}`]:{fontSize:"inherit"},[`& .${m.x["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${m.x["columnHeader--alignCenter"]} .${m.x.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${m.x["columnHeader--alignRight"]} .${m.x.columnHeaderDraggableContainer}, & .${m.x["columnHeader--alignRight"]} .${m.x.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${m.x["columnHeader--alignCenter"]} .${m.x.menuIcon}`]:{marginLeft:"auto"},[`& .${m.x["columnHeader--alignRight"]} .${m.x.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${m.x["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${m.x["columnHeader--pinnedLeft"]}, & .${m.x["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${m.x.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:10,color:o},[`& .${m.x.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${m.x.columnHeader}:hover`]:C,[`& .${m.x.columnHeader}:not(.${m.x["columnHeader--sorted"]}):hover .${m.x.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${m.x.columnHeader}`]:C,[`& .${m.x.columnHeader}:focus,\n        & .${m.x["columnHeader--siblingFocused"]}`]:{[`.${m.x["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${m.x["columnSeparator--sideLeft"]}`]:{left:-5},[`& .${m.x["columnSeparator--sideRight"]}`]:{right:-5},[`& .${m.x["columnHeader--withRightBorder"]} .${m.x["columnSeparator--sideLeft"]}`]:{left:-5.5},[`& .${m.x["columnHeader--withRightBorder"]} .${m.x["columnSeparator--sideRight"]}`]:{right:-5.5},[`& .${m.x["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${m.x["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${m.x.iconSeparator} rect`]:v},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${m.x.iconSeparator} rect`]:v}},"& svg":{pointerEvents:"none"}},[`& .${m.x.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${m.x.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${m.x.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${m.x.headerFilterRow}`]:{[`& .${m.x.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${m.x["row--borderBottom"]} .${m.x.columnHeader},\n      & .${m.x["row--borderBottom"]} .${m.x.filler},\n      & .${m.x["row--borderBottom"]} .${m.x.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${m.x["row--borderBottom"]} .${m.x.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${m.x.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${m.x["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.x.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":F},[`& .${m.x["container--top"]}, & .${m.x["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${m.x.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":F},[`& .${m.x["virtualScrollerContent--overflowed"]} .${m.x["row--lastVisible"]} .${m.x.cell}`]:{borderTopColor:"transparent"},[`& .${m.x["pinnedRows--top"]} :first-of-type`]:{[`& .${m.x.cell}, .${m.x.scrollbarFiller}`]:{borderTop:"none"}},[`&.${m.x["root--disableUserSelection"]} .${m.x.cell}`]:{userSelect:"none"},[`& .${m.x["row--dynamicHeight"]} > .${m.x.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${m.x.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${m.x.cell}.${m.x["cell--selectionMode"]}`]:{cursor:"default"},[`& .${m.x.cell}.${m.x["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`1px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:-1}},[`& .${m.x["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${m.x["row--editing"]} .${m.x.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${m.x.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${m.x.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${m.x.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${m.x.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${m.x.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${m.x["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${m.x.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${m.x.withBorderColor}`]:{borderColor:o},[`& .${m.x["cell--withLeftBorder"]}, & .${m.x["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${m.x["cell--withRightBorder"]}, & .${m.x["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${m.x["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${m.x["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${m.x["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${m.x["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${m.x["cell--pinnedLeft"]}, & .${m.x["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:k}},[`& .${m.x.virtualScrollerContent} .${m.x.row}`]:{"&:hover":M,"&.Mui-selected":P,"&.Mui-selected:hover":E},[`& .${m.x.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${m.x.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${m.x.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${m.x.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${m.x["columnHeader--dragging"]}, & .${m.x["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${m.x["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${m.x.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${m.x.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${m.x.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${m.x.treeDataGroupingCellLoadingContainer}, .${m.x.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${m.x.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${m.x.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${m.x.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${m.x["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${m.x["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${m.x["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${m.x.filler}`]:{flex:"1 0 auto"},[`& .${m.x["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${m.x["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${m.x.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${m.x["scrollbar--vertical"]}, & .${m.x.pinnedRows}, & .${m.x.virtualScroller} > .${m.x.filler}`]:{display:"none"}}})}));function y(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),l=(0,f.rP)(e),i=(0,f.rP)(t),a=[o(l.values[0],i.values[0]),o(l.values[1],i.values[1]),o(l.values[2],i.values[2])];return(0,f.X0)({type:"rgb",values:a})}const A=e=>`rgb(from ${e} r g b / 1)`;function R(e,t,r){return`color-mix(in srgb,${e}, ${A(t)} calc(${r} * 100%))`}var S=r(64565),I=r(33658),M=r(1074),k=r(71173),P=r(98114),E=r(69500);const F=["className","children"],H=(0,p.R)((function(e,t){const r=(0,S.A)(),{className:d,children:p}=e,f=(0,o.A)(e,F),g=(0,b.E)(),w=(0,h.Nc)(g,I._v),C=g.current.rootElementRef,v=(0,c.A)(C,t),y=r,A=((e,t)=>{const{autoHeight:r,classes:n,showCellVerticalBorder:o}=e,l={root:["root",r&&"autoHeight",`root--density${(0,a.A)(t)}`,null===e.slots.toolbar&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return(0,s.A)(l,m.B,n)})(y,w),[R,H]=l.useState(!1);return(0,u.A)((()=>{H(!0)}),[]),R?(0,E.jsxs)(x,(0,n.A)({className:(0,i.A)(A.root,d),ownerState:y},f,{ref:v,children:[(0,E.jsx)(M.k,{}),(0,E.jsx)(k.S,{children:p}),(0,E.jsx)(P.r,{})]})):null})),O=(0,d.n)(H)},83749:(e,t,r)=>{"use strict";r.d(t,{U:()=>y});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(88215),s=r(70799),c=r(83933),u=r(4407),d=r(943),p=r(20350),f=r(51148),g=r(76959),m=r(64565),h=r(76404),b=r(69500);const w=["open","target","onClose","children","position","className","onExited"],C=e=>{const{classes:t}=e;return(0,s.A)({root:["menu"]},g.B,t)},v=(0,f.Ay)(p.A,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${g.x.menuList}`]:{outline:0}}))),x={"bottom-start":"top left","bottom-end":"top right"};function y(e){const{open:t,target:r,onClose:s,children:p,position:f,className:g,onExited:y}=e,A=(0,o.A)(e,w),R=(0,h.h)(),S=(0,m.A)(),I=C(S),M=l.useRef(null);(0,c.A)((()=>{t?M.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(M.current?.focus?.(),M.current=null)}),[t]),l.useEffect((()=>{const e=t?"menuOpen":"menuClose";R.current.publishEvent(e,{target:r})}),[R,t,r]);const k=e=>{e.target&&(r===e.target||r?.contains(e.target))||s(e)};return(0,b.jsx)(v,(0,n.A)({as:S.slots.basePopper,className:(0,i.A)(I.root,g),ownerState:S,open:t,anchorEl:r,transition:!0,placement:f},A,S.slotProps?.basePopper,{children:({TransitionProps:e,placement:t})=>{return(0,b.jsx)(a.x,{onClickAway:k,mouseEvent:"onMouseDown",children:(0,b.jsx)(u.A,(0,n.A)({},e,{style:{transformOrigin:x[t]},onExited:(r=e?.onExited,e=>{r&&r(),y&&y(e)}),children:(0,b.jsx)(d.A,{children:p})}))});var r}}))}},42386:(e,t,r)=>{"use strict";r.d(t,{H:()=>s});var n=r(6614),o=(r(7552),r(89887)),l=r(76404),i=r(83749),a=r(69500);function s({columnMenuId:e,columnMenuButtonId:t,ContentComponent:r,contentComponentProps:s,field:c,open:u,target:d,onExited:p}){const f=(0,l.h)(),g=f.current.getColumn(c),m=(0,o.A)((e=>{e&&(e.stopPropagation(),d?.contains(e.target))||f.current.hideColumnMenu()}));return d&&g?(0,a.jsx)(i.U,{placement:"bottom-"+("right"===g.align?"start":"end"),open:u,target:d,onClose:m,onExited:p,children:(0,a.jsx)(r,(0,n.A)({colDef:g,hideMenu:m,open:u,id:e,labelledby:t},s))}):null}},66456:(e,t,r)=>{"use strict";r.d(t,{ai:()=>h,ep:()=>b,aU:()=>C,HO:()=>w});var n=r(6614),o=r(83673),l=r(7552),i=r(96746),a=r(64565),s=r(71115);const c=["displayOrder"];var u=r(2956),d=r(32745),p=r(32780),f=r(23942),g=r(69500);const m=["defaultSlots","defaultSlotProps","slots","slotProps"],h={columnMenuSortItem:f.H,columnMenuFilterItem:p.r,columnMenuColumnsItem:d.O},b={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},w=(0,i.R)((function(e,t){const{defaultSlots:r,defaultSlotProps:i,slots:d,slotProps:p}=e,f=(0,o.A)(e,m),h=(e=>{const t=(0,s.E)(),r=(0,a.A)(),{defaultSlots:i,defaultSlotProps:u,slots:d={},slotProps:p={},hideMenu:f,colDef:g,addDividers:m=!0}=e,h=l.useMemo((()=>(0,n.A)({},i,d)),[i,d]),b=l.useMemo((()=>{if(!p||0===Object.keys(p).length)return u;const e=(0,n.A)({},p);return Object.entries(u).forEach((([t,r])=>{e[t]=(0,n.A)({},r,p[t]||{})})),e}),[u,p]),w=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),C=l.useMemo((()=>{const e=Object.keys(i);return Object.keys(d).filter((t=>!e.includes(t)))}),[d,i]);return l.useMemo((()=>{const e=Array.from(new Set([...w,...C])).filter((e=>null!=h[e])).sort(((e,t)=>{const r=b[e],n=b[t];return(Number.isFinite(r?.displayOrder)?r.displayOrder:100)-(Number.isFinite(n?.displayOrder)?n.displayOrder:100)}));return e.reduce(((t,l,i)=>{let a={colDef:g,onClick:f};const s=b[l];if(s){const e=(0,o.A)(s,c);a=(0,n.A)({},a,e)}return m&&i!==e.length-1?[...t,[h[l],a],[r.slots.baseDivider,{}]]:[...t,[h[l],a]]}),[])}),[m,g,w,f,h,b,C,r.slots.baseDivider])})((0,n.A)({},f,{defaultSlots:r,defaultSlotProps:i,slots:d,slotProps:p}));return(0,g.jsx)(u.T,(0,n.A)({},f,{ref:t,children:h.map((([e,t],r)=>(0,g.jsx)(e,(0,n.A)({},t),r)))}))})),C=(0,i.R)((function(e,t){return(0,g.jsx)(w,(0,n.A)({},e,{ref:t,defaultSlots:h,defaultSlotProps:b}))}))},2956:(e,t,r)=>{"use strict";r.d(t,{T:()=>m});var n=r(6614),o=r(83673),l=r(93878),i=r(7552),a=r(6679),s=r(51148),c=r(96746),u=r(67129),d=r(76959),p=r(69500);const f=["hideMenu","colDef","id","labelledby","className","children","open"],g=(0,s.Ay)(a.A)((()=>({minWidth:248}))),m=(0,c.R)((function(e,t){const{hideMenu:r,id:a,labelledby:s,className:c,children:m,open:h}=e,b=(0,o.A)(e,f),w=i.useCallback((e=>{"Tab"===e.key&&e.preventDefault(),(0,u.HF)(e.key)&&r(e)}),[r]);return(0,p.jsx)(g,(0,n.A)({id:a,className:(0,l.A)(d.x.menuList,c),"aria-labelledby":s,onKeyDown:w,autoFocus:h},b,{ref:t,children:m}))}))},32745:(e,t,r)=>{"use strict";r.d(t,{O:()=>s});var n=r(6614),o=r(7552),l=r(49158),i=r(61361),a=r(69500);function s(e){return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(l.l,(0,n.A)({},e)),(0,a.jsx)(i.s,(0,n.A)({},e))]})}},32780:(e,t,r)=>{"use strict";r.d(t,{r:()=>u});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(76404),s=r(64565),c=r(69500);function u(e){const{colDef:t,onClick:r}=e,u=(0,a.h)(),d=(0,s.A)(),p=n.useCallback((e=>{r(e),u.current.showFilterPanel(t.field)}),[u,t.field,r]);return d.disableColumnFilter||!t.filterable?null:(0,c.jsxs)(o.A,{onClick:p,children:[(0,c.jsx)(l.A,{children:(0,c.jsx)(d.slots.columnMenuFilterIcon,{fontSize:"small"})}),(0,c.jsx)(i.A,{children:u.current.getLocaleText("columnMenuFilter")})]})}},49158:(e,t,r)=>{"use strict";r.d(t,{l:()=>d});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(76404),s=r(64565),c=r(80163),u=r(69500);function d(e){const{colDef:t,onClick:r}=e,d=(0,a.h)(),p=(0,s.A)(),f=1===(0,c.iv)(d).filter((e=>!0!==e.disableColumnMenu)).length,g=n.useCallback((e=>{f||(d.current.setColumnVisibility(t.field,!1),r(e))}),[d,t.field,r,f]);return p.disableColumnSelector||!1===t.hideable?null:(0,u.jsxs)(o.A,{onClick:g,disabled:f,children:[(0,u.jsx)(l.A,{children:(0,u.jsx)(p.slots.columnMenuHideIcon,{fontSize:"small"})}),(0,u.jsx)(i.A,{children:d.current.getLocaleText("columnMenuHideColumn")})]})}},61361:(e,t,r)=>{"use strict";r.d(t,{s:()=>d});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(48534),s=r(76404),c=r(64565),u=r(69500);function d(e){const{onClick:t}=e,r=(0,s.h)(),d=(0,c.A)(),p=n.useCallback((e=>{t(e),r.current.showPreferences(a.y.columns)}),[r,t]);return d.disableColumnSelector?null:(0,u.jsxs)(o.A,{onClick:p,children:[(0,u.jsx)(l.A,{children:(0,u.jsx)(d.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),(0,u.jsx)(i.A,{children:r.current.getLocaleText("columnMenuManageColumns")})]})}},23942:(e,t,r)=>{"use strict";r.d(t,{H:()=>p});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(12274),s=r(43026),c=r(76404),u=r(64565),d=r(69500);function p(e){const{colDef:t,onClick:r}=e,p=(0,c.h)(),f=(0,a.Nc)(p,s.XU),g=(0,u.A)(),m=n.useMemo((()=>{if(!t)return null;const e=f.find((e=>e.field===t.field));return e?.sort}),[t,f]),h=t.sortingOrder??g.sortingOrder,b=n.useCallback((e=>{r(e);const n=e.currentTarget.getAttribute("data-value")||null;p.current.sortColumn(t.field,n===m?null:n)}),[p,t,r,m]);if(g.disableColumnSorting||!t||!t.sortable||!h.some((e=>!!e)))return null;const w=e=>{const r=p.current.getLocaleText(e);return"function"==typeof r?r(t):r};return(0,d.jsxs)(n.Fragment,{children:[h.includes("asc")&&"asc"!==m?(0,d.jsxs)(o.A,{onClick:b,"data-value":"asc",children:[(0,d.jsx)(l.A,{children:(0,d.jsx)(g.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),(0,d.jsx)(i.A,{children:w("columnMenuSortAsc")})]}):null,h.includes("desc")&&"desc"!==m?(0,d.jsxs)(o.A,{onClick:b,"data-value":"desc",children:[(0,d.jsx)(l.A,{children:(0,d.jsx)(g.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),(0,d.jsx)(i.A,{children:w("columnMenuSortDesc")})]}):null,h.includes(null)&&null!=m?(0,d.jsxs)(o.A,{onClick:b,children:[(0,d.jsx)(l.A,{}),(0,d.jsx)(i.A,{children:p.current.getLocaleText("columnMenuUnsort")})]}):null]})}},16028:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(6614),o=(r(7552),r(98118)),l=r(64565),i=r(69500);function a(e){const t=(0,l.A)();return(0,i.jsx)(o.G,(0,n.A)({},e,{children:(0,i.jsx)(t.slots.columnsManagement,(0,n.A)({},t.slotProps?.columnsManagement))}))}},63869:(e,t,r)=>{"use strict";r.d(t,{F:()=>v,x:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(51148),s=r(33761),c=r(88215),u=r(943),d=r(20350),p=r(96746),f=r(76404),g=r(64565),m=r(69500);const h=["children","className","classes"],b=(0,s.A)("MuiDataGrid",["panel","paper"]),w=(0,a.Ay)(d.A,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((({theme:e})=>({zIndex:e.zIndex.modal}))),C=(0,a.Ay)(u.A,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"}))),v=(0,p.R)(((e,t)=>{const{children:r,className:a}=e,s=(0,o.A)(e,h),u=(0,f.h)(),d=(0,g.A)(),p=b,[v,x]=l.useState(!1),y=l.useCallback((()=>{u.current.hidePreferences()}),[u]),A=l.useCallback((e=>{"Escape"===e.key&&u.current.hidePreferences()}),[u]),R=l.useMemo((()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{x(!0)},effect:()=>()=>{x(!1)}}]),[]),[S,I]=l.useState(null);return l.useEffect((()=>{const e=u.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&I(e)}),[u]),S?(0,m.jsx)(w,(0,n.A)({placement:"bottom-start",className:(0,i.A)(p.panel,a),ownerState:d,anchorEl:S,modifiers:R},s,{ref:t,children:(0,m.jsx)(c.x,{mouseEvent:"onPointerUp",touchEvent:!1,onClickAway:y,children:(0,m.jsx)(C,{className:p.paper,ownerState:d,elevation:8,onKeyDown:A,children:v&&r})})})):null}))},53936:(e,t,r)=>{"use strict";r.d(t,{o:()=>g});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(48467),a=r(70799),s=r(76959),c=r(64565),u=r(69500);const d=["className"],p=e=>{const{classes:t}=e;return(0,a.A)({root:["panelContent"]},s.B,t)},f=(0,i.A)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function g(e){const{className:t}=e,r=(0,o.A)(e,d),i=(0,c.A)(),a=p(i);return(0,u.jsx)(f,(0,n.A)({className:(0,l.A)(a.root,t),ownerState:i},r))}},95126:(e,t,r)=>{"use strict";r.d(t,{g:()=>g});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(48467),a=r(70799),s=r(76959),c=r(64565),u=r(69500);const d=["className"],p=e=>{const{classes:t}=e;return(0,a.A)({root:["panelFooter"]},s.B,t)},f=(0,i.A)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"})));function g(e){const{className:t}=e,r=(0,o.A)(e,d),i=(0,c.A)(),a=p(i);return(0,u.jsx)(f,(0,n.A)({className:(0,l.A)(a.root,t),ownerState:i},r))}},98118:(e,t,r)=>{"use strict";r.d(t,{G:()=>h});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(61864),a=r(51148),s=r(70799),c=r(96746),u=r(76959),d=r(64565),p=r(69500);const f=["className","slotProps"],g=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),m=()=>!0,h=(0,c.R)((function(e,t){const{className:r,slotProps:a={}}=e,c=(0,o.A)(e,f),h=(0,d.A)(),b=(e=>{const{classes:t}=e;return(0,s.A)({root:["panelWrapper"]},u.B,t)})(h);return(0,p.jsx)(i.A,(0,n.A)({open:!0,disableEnforceFocus:!0,isEnabled:m},a.TrapFocus,{children:(0,p.jsx)(g,(0,n.A)({tabIndex:-1,className:(0,l.A)(b.root,r),ownerState:h},c,{ref:t}))}))}))},55766:(e,t,r)=>{"use strict";r.d(t,{R:()=>F});var n=r(6614),o=r(83673),l=r(7552),i=r(70799),a=r(50089),s=r(33283),c=r(51148),u=r(93878),d=r(96746),p=r(80163),f=r(2220),g=r(12274),m=r(93527),h=r(76404),b=r(64565),w=r(76959),C=r(12003),v=r(69500);const x=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],y=["InputComponentProps"],A=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((({theme:e})=>({display:"flex",padding:e.spacing(1)}))),R=(0,c.Ay)("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)}))),S=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),I=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),M=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),k=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),P=e=>e.headerName||e.field,E=new Intl.Collator,F=(0,d.R)((function(e,t){const{item:r,hasMultipleFilters:c,deleteFilter:d,applyFilterChanges:F,showMultiFilterOperators:H,disableMultiFilterOperator:O,applyMultiFilterOperatorChanges:T,focusElementRef:D,logicOperators:z=[m.V.And,m.V.Or],columnsSort:L,filterColumns:$,deleteIconProps:N={},logicOperatorInputProps:j={},operatorInputProps:V={},columnInputProps:B={},valueInputProps:G={},readOnly:_}=e,W=(0,o.A)(e,x),U=(0,h.h)(),q=(0,g.Nc)(U,p.gv),K=(0,g.Nc)(U,p.Oe),X=(0,g.Nc)(U,f.ZI),Y=(0,a.A)(),Z=(0,a.A)(),Q=(0,a.A)(),J=(0,a.A)(),ee=(0,b.A)(),te=(e=>{const{classes:t}=e;return(0,i.A)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},w.B,t)})(ee),re=l.useRef(null),ne=l.useRef(null),oe=X.logicOperator??m.V.And,le=c&&z.length>0,ie=ee.slotProps?.baseFormControl||{},ae=(ee.slotProps?.baseSelect||{}).native??!1,se=ee.slotProps?.baseInputLabel||{},ce=ee.slotProps?.baseSelectOption||{},{InputComponentProps:ue}=G,de=(0,o.A)(G,y),{filteredColumns:pe,selectedField:fe}=l.useMemo((()=>{let e=r.field;const t=!1===q[r.field].filterable?q[r.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(void 0===$||"function"!=typeof $)return{filteredColumns:K,selectedField:e};const n=$({field:r.field,columns:K,currentFilters:X?.items||[]});return{filteredColumns:K.filter((t=>{const o=n.includes(t.field);return t.field!==r.field||o||(e=void 0),o})),selectedField:e}}),[$,X?.items,K,r.field,q]),ge=l.useMemo((()=>{switch(L){case"asc":return pe.sort(((e,t)=>E.compare(P(e),P(t))));case"desc":return pe.sort(((e,t)=>-E.compare(P(e),P(t))));default:return pe}}),[pe,L]),me=r.field?U.current.getColumn(r.field):null,he=l.useMemo((()=>r.operator&&me?me.filterOperators?.find((e=>e.value===r.operator)):null),[r,me]),be=l.useCallback((e=>{const t=e.target.value,o=U.current.getColumn(t);if(o.field===me.field)return;const l=o.filterOperators.find((e=>e.value===r.operator))||o.filterOperators[0];let i=l.InputComponent&&l.InputComponent===he?.InputComponent&&o.type===me.type?r.value:void 0;if("singleSelect"===o.type&&void 0!==i){const e=o,t=(0,C.KJ)(e);Array.isArray(i)?i=i.filter((r=>void 0!==(0,C.Rc)(r,t,e?.getOptionValue))):void 0===(0,C.Rc)(r.value,t,e?.getOptionValue)&&(i=void 0)}F((0,n.A)({},r,{field:t,operator:l.value,value:i}))}),[U,F,r,me,he]),we=l.useCallback((e=>{const t=e.target.value,o=me?.filterOperators.find((e=>e.value===t)),l=!o?.InputComponent||o?.InputComponent!==he?.InputComponent;F((0,n.A)({},r,{operator:t,value:l?void 0:r.value}))}),[F,r,me,he]),Ce=l.useCallback((e=>{const t=e.target.value===m.V.And.toString()?m.V.And:m.V.Or;T(t)}),[T]);return l.useImperativeHandle(D,(()=>({focus:()=>{he?.InputComponent?re?.current?.focus():ne.current.focus()}})),[he]),(0,v.jsxs)(A,(0,n.A)({className:te.root,"data-id":r.id,ownerState:ee},W,{ref:t,children:[(0,v.jsx)(R,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,N,{className:(0,u.A)(te.deleteIcon,ie.className,N.className),ownerState:ee,children:(0,v.jsx)(ee.slots.baseIconButton,(0,n.A)({"aria-label":U.current.getLocaleText("filterPanelDeleteIconLabel"),title:U.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{d(r)},size:"small",disabled:_},ee.slotProps?.baseIconButton,{children:(0,v.jsx)(ee.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,v.jsx)(S,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,j,{sx:[le?{display:"flex"}:{display:"none"},H?{visibility:"visible"}:{visibility:"hidden"},ie.sx,j.sx],className:(0,u.A)(te.logicOperatorInput,ie.className,j.className),ownerState:ee,children:(0,v.jsx)(ee.slots.baseSelect,(0,n.A)({inputProps:{"aria-label":U.current.getLocaleText("filterPanelLogicOperator")},value:oe??"",onChange:Ce,disabled:!!O||1===z.length,native:ae},ee.slotProps?.baseSelect,{children:z.map((e=>(0,l.createElement)(ee.slots.baseSelectOption,(0,n.A)({},ce,{native:ae,key:e.toString(),value:e.toString()}),U.current.getLocaleText((e=>{switch(e){case m.V.And:return"filterPanelOperatorAnd";case m.V.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))}))})),(0,v.jsxs)(I,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,B,{className:(0,u.A)(te.columnInput,ie.className,B.className),ownerState:ee,children:[(0,v.jsx)(ee.slots.baseInputLabel,(0,n.A)({},se,{htmlFor:Y,id:Z,children:U.current.getLocaleText("filterPanelColumns")})),(0,v.jsx)(ee.slots.baseSelect,(0,n.A)({labelId:Z,id:Y,label:U.current.getLocaleText("filterPanelColumns"),value:fe??"",onChange:be,native:ae,disabled:_},ee.slotProps?.baseSelect,{children:ge.map((e=>(0,l.createElement)(ee.slots.baseSelectOption,(0,n.A)({},ce,{native:ae,key:e.field,value:e.field}),P(e))))}))]})),(0,v.jsxs)(M,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,V,{className:(0,u.A)(te.operatorInput,ie.className,V.className),ownerState:ee,children:[(0,v.jsx)(ee.slots.baseInputLabel,(0,n.A)({},se,{htmlFor:Q,id:J,children:U.current.getLocaleText("filterPanelOperator")})),(0,v.jsx)(ee.slots.baseSelect,(0,n.A)({labelId:J,label:U.current.getLocaleText("filterPanelOperator"),id:Q,value:r.operator,onChange:we,native:ae,inputRef:ne,disabled:_},ee.slotProps?.baseSelect,{children:me?.filterOperators?.map((e=>(0,l.createElement)(ee.slots.baseSelectOption,(0,n.A)({},ce,{native:ae,key:e.value,value:e.value}),e.label||U.current.getLocaleText(`filterOperator${(0,s.A)(e.value)}`))))}))]})),(0,v.jsx)(k,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,de,{className:(0,u.A)(te.valueInput,ie.className,de.className),ownerState:ee,children:he?.InputComponent?(0,v.jsx)(he.InputComponent,(0,n.A)({apiRef:U,item:r,applyValue:F,focusElementRef:re,disabled:_},he.InputComponentProps,ue),r.field):null}))]}))}))},19868:(e,t,r)=>{"use strict";r.d(t,{U:()=>d,h:()=>f});var n=r(6614),o=r(83673),l=r(7552),i=r(50089),a=r(51148),s=r(64565),c=r(69500);const u=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],d=e=>"true"===String(e).toLowerCase()||"false"!==String(e).toLowerCase()&&void 0,p=(0,a.Ay)("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function f(e){const{item:t,applyValue:r,apiRef:a,focusElementRef:f,clearButton:g,tabIndex:m,label:h,variant:b="standard"}=e,w=(0,o.A)(e,u),[C,v]=l.useState(d(t.value)),x=(0,s.A)(),y=(0,i.A)(),A=(0,i.A)(),R=x.slotProps?.baseSelect||{},S=R.native??!1,I=x.slotProps?.baseSelectOption||{},M=l.useCallback((e=>{const o=d(e.target.value);v(o),r((0,n.A)({},t,{value:o}))}),[r,t]);l.useEffect((()=>{v(d(t.value))}),[t.value]);const k=h??a.current.getLocaleText("filterPanelInputLabel");return(0,c.jsxs)(p,{children:[(0,c.jsxs)(x.slots.baseFormControl,{fullWidth:!0,children:[(0,c.jsx)(x.slots.baseInputLabel,(0,n.A)({},x.slotProps?.baseInputLabel,{id:y,shrink:!0,variant:b,children:k})),(0,c.jsxs)(x.slots.baseSelect,(0,n.A)({labelId:y,id:A,label:k,value:void 0===C?"":String(C),onChange:M,variant:b,notched:"outlined"===b||void 0,native:S,displayEmpty:!0,inputProps:{ref:f,tabIndex:m}},w,R,{children:[(0,c.jsx)(x.slots.baseSelectOption,(0,n.A)({},I,{native:S,value:"",children:a.current.getLocaleText("filterValueAny")})),(0,c.jsx)(x.slots.baseSelectOption,(0,n.A)({},I,{native:S,value:"true",children:a.current.getLocaleText("filterValueTrue")})),(0,c.jsx)(x.slots.baseSelectOption,(0,n.A)({},I,{native:S,value:"false",children:a.current.getLocaleText("filterValueFalse")}))]}))]}),g]})}},22762:(e,t,r)=>{"use strict";r.d(t,{L:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(50089),a=r(85659),s=r(64565),c=r(69500);const u=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function d(e,t){if(null==e)return"";const r=new Date(e);return Number.isNaN(r.getTime())?"":"date"===t?r.toISOString().substring(0,10):"datetime-local"===t?(r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),r.toISOString().substring(0,19)):r.toISOString().substring(0,10)}function p(e){const{item:t,applyValue:r,type:p,apiRef:f,focusElementRef:g,InputProps:m,clearButton:h,tabIndex:b,disabled:w}=e,C=(0,o.A)(e,u),v=(0,a.A)(),[x,y]=l.useState((()=>d(t.value,p))),[A,R]=l.useState(!1),S=(0,i.A)(),I=(0,s.A)(),M=l.useCallback((e=>{v.clear();const o=e.target.value;y(o),R(!0),v.start(I.filterDebounceMs,(()=>{const e=new Date(o);r((0,n.A)({},t,{value:Number.isNaN(e.getTime())?void 0:e})),R(!1)}))}),[r,t,I.filterDebounceMs,v]);return l.useEffect((()=>{const e=d(t.value,p);y(e)}),[t.value,p]),(0,c.jsx)(I.slots.baseTextField,(0,n.A)({fullWidth:!0,id:S,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:x,onChange:M,variant:"standard",type:p||"text",InputLabelProps:{shrink:!0},inputRef:g,InputProps:(0,n.A)({},A||h?{endAdornment:A?(0,c.jsx)(I.slots.loadIcon,{fontSize:"small",color:"action"}):h}:{},{disabled:w},m,{inputProps:(0,n.A)({max:"datetime-local"===p?"9999-12-31T23:59":"9999-12-31",tabIndex:b},m?.inputProps)})},C,I.slotProps?.baseTextField))}},57134:(e,t,r)=>{"use strict";r.d(t,{B:()=>m});var n=r(6614),o=r(83673),l=r(7552),i=r(25419),a=r(48901),s=r(50089),c=r(12003),u=r(64565),d=r(69500);const p=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],f=["key"],g=(0,i.Z)();function m(e){const{item:t,applyValue:r,apiRef:i,focusElementRef:m,color:h,error:b,helperText:w,size:C,variant:v="standard"}=e,x=(0,o.A)(e,p),y={color:h,error:b,helperText:w,size:C,variant:v},A=(0,s.A)(),R=(0,u.A)();let S=null;if(t.field){const e=i.current.getColumn(t.field);(0,c._W)(e)&&(S=e)}const I=S?.getOptionValue,M=S?.getOptionLabel,k=l.useCallback(((e,t)=>I(e)===I(t)),[I]),P=l.useMemo((()=>(0,c.KJ)(S)||[]),[S]),E=l.useMemo((()=>Array.isArray(t.value)?t.value.reduce(((e,t)=>{const r=P.find((e=>I(e)===t));return null!=r&&e.push(r),e}),[]):[]),[I,t.value,P]),F=l.useCallback(((e,o)=>{r((0,n.A)({},t,{value:o.map(I)}))}),[r,t,I]);return(0,d.jsx)(a.A,(0,n.A)({multiple:!0,options:P,isOptionEqualToValue:k,filterOptions:g,id:A,value:E,onChange:F,getOptionLabel:M,renderTags:(e,t)=>e.map(((e,r)=>{const l=t({index:r}),{key:i}=l,a=(0,o.A)(l,f);return(0,d.jsx)(R.slots.baseChip,(0,n.A)({variant:"outlined",size:"small",label:M(e)},a),i)})),renderInput:e=>(0,d.jsx)(R.slots.baseTextField,(0,n.A)({},e,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,n.A)({},e.InputLabelProps,{shrink:!0}),inputRef:m,type:"singleSelect"},y,R.slotProps?.baseTextField))},x))}},33745:(e,t,r)=>{"use strict";r.d(t,{M:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(48901),a=r(50089),s=r(64565),c=r(69500);const u=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],d=["key"];function p(e){const{item:t,applyValue:r,type:p,apiRef:f,focusElementRef:g,color:m,error:h,helperText:b,size:w,variant:C="standard"}=e,v=(0,o.A)(e,u),x={color:m,error:h,helperText:b,size:w,variant:C},[y,A]=l.useState(t.value||[]),R=(0,a.A)(),S=(0,s.A)();l.useEffect((()=>{const e=t.value??[];A(e.map(String))}),[t.value]);const I=l.useCallback(((e,o)=>{A(o.map(String)),r((0,n.A)({},t,{value:[...o.map((e=>"number"===p?Number(e):e))]}))}),[r,t,p]);return(0,c.jsx)(i.A,(0,n.A)({multiple:!0,freeSolo:!0,options:[],filterOptions:(e,t)=>{const{inputValue:r}=t;return null==r||""===r?[]:[r]},id:R,value:y,onChange:I,renderTags:(e,t)=>e.map(((e,r)=>{const l=t({index:r}),{key:i}=l,a=(0,o.A)(l,d);return(0,c.jsx)(S.slots.baseChip,(0,n.A)({variant:"outlined",size:"small",label:e},a),i)})),renderInput:e=>(0,c.jsx)(S.slots.baseTextField,(0,n.A)({},e,{label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,n.A)({},e.InputLabelProps,{shrink:!0}),inputRef:g,type:p||"text"},x,S.slotProps?.baseTextField))},v))}},24634:(e,t,r)=>{"use strict";r.d(t,{t:()=>g});var n=r(83673),o=r(6614),l=r(7552),i=r(50089),a=r(51148),s=r(64565),c=r(12003),u=r(69500);const d=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],p=({column:e,OptionComponent:t,getOptionLabel:r,getOptionValue:n,isSelectNative:i,baseSelectOptionProps:a})=>["",...(0,c.KJ)(e)||[]].map((e=>{const s=n(e);let c=r(e);return""===c&&(c=" "),(0,l.createElement)(t,(0,o.A)({},a,{native:i,key:s,value:s}),c)})),f=(0,a.Ay)("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function g(e){const{item:t,applyValue:r,type:a,apiRef:g,focusElementRef:m,placeholder:h,tabIndex:b,label:w,variant:C="standard",clearButton:v}=e,x=(0,n.A)(e,d),y=t.value??"",A=(0,i.A)(),R=(0,i.A)(),S=(0,s.A)(),I=S.slotProps?.baseSelect?.native??!1;let M=null;if(t.field){const e=g.current.getColumn(t.field);(0,c._W)(e)&&(M=e)}const k=M?.getOptionValue,P=M?.getOptionLabel,E=l.useMemo((()=>(0,c.KJ)(M)),[M]),F=l.useCallback((e=>{let n=e.target.value;n=(0,c.Rc)(n,E,k),r((0,o.A)({},t,{value:n}))}),[E,k,r,t]);if(!(0,c._W)(M))return null;const H=w??g.current.getLocaleText("filterPanelInputLabel");return(0,u.jsxs)(f,{children:[(0,u.jsxs)(S.slots.baseFormControl,{fullWidth:!0,children:[(0,u.jsx)(S.slots.baseInputLabel,(0,o.A)({},S.slotProps?.baseInputLabel,{id:R,htmlFor:A,shrink:!0,variant:C,children:H})),(0,u.jsx)(S.slots.baseSelect,(0,o.A)({id:A,label:H,labelId:R,value:y,onChange:F,variant:C,type:a||"text",inputProps:{tabIndex:b,ref:m,placeholder:h??g.current.getLocaleText("filterPanelInputPlaceholder")},native:I,notched:"outlined"===C||void 0},x,S.slotProps?.baseSelect,{children:p({column:M,OptionComponent:S.slots.baseSelectOption,getOptionLabel:P,getOptionValue:k,isSelectNative:I,baseSelectOptionProps:S.slotProps?.baseSelectOption})}))]}),v]})}},31525:(e,t,r)=>{"use strict";r.d(t,{y:()=>d});var n=r(6614),o=r(83673),l=r(7552),i=r(50089),a=r(85659),s=r(64565),c=r(69500);const u=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function d(e){const{item:t,applyValue:r,type:d,apiRef:f,focusElementRef:g,tabIndex:m,disabled:h,clearButton:b,InputProps:w,variant:C="standard"}=e,v=(0,o.A)(e,u),x=(0,a.A)(),[y,A]=l.useState(p(t.value)),[R,S]=l.useState(!1),I=(0,i.A)(),M=(0,s.A)(),k=l.useCallback((e=>{const o=p(e.target.value);A(o),S(!0),x.start(M.filterDebounceMs,(()=>{const e=(0,n.A)({},t,{value:"number"!==d||Number.isNaN(Number(o))?o:Number(o),fromInput:I});r(e),S(!1)}))}),[x,M.filterDebounceMs,t,d,I,r]);return l.useEffect((()=>{t.fromInput===I&&null!=t.value||A(p(t.value))}),[I,t]),(0,c.jsx)(M.slots.baseTextField,(0,n.A)({id:I,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:y??"",onChange:k,variant:C,type:d||"text",InputProps:(0,n.A)({},R||b?{endAdornment:R?(0,c.jsx)(M.slots.loadIcon,{fontSize:"small",color:"action"}):b}:{},{disabled:h},w,{inputProps:(0,n.A)({tabIndex:m},w?.inputProps)}),InputLabelProps:{shrink:!0},inputRef:g},v,M.slotProps?.baseTextField))}function p(e){if(null!=e&&""!==e)return String(e)}},51820:(e,t,r)=>{"use strict";r.d(t,{v:()=>v});var n=r(6614),o=r(83673),l=r(7552),i=r(96746),a=r(93527),s=r(76404),c=r(53936),u=r(95126),d=r(98118),p=r(55766),f=r(64565),g=r(12274),m=r(2220),h=r(80163),b=r(69500);const w=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],C=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),v=(0,i.R)((function(e,t){const r=(0,s.h)(),i=(0,f.A)(),v=(0,g.Nc)(r,m.ZI),x=(0,g.Nc)(r,h.Oe),y=(0,g.Nc)(r,h.U8),A=l.useRef(null),R=l.useRef(null),{logicOperators:S=[a.V.And,a.V.Or],columnsSort:I,filterFormProps:M,getColumnForNewFilter:k,disableAddFilterButton:P=!1,disableRemoveAllButton:E=!1}=e,F=(0,o.A)(e,w),H=r.current.upsertFilterItem,O=l.useCallback((e=>{r.current.setFilterLogicOperator(e)}),[r]),T=l.useCallback((()=>{let e;if(k&&"function"==typeof k){const t=k({currentFilters:v?.items||[],columns:x});if(null===t)return null;e=x.find((({field:e})=>e===t))}else e=x.find((e=>e.filterOperators?.length));return e?C(e):null}),[v?.items,x,k]),D=l.useCallback((()=>{if(void 0===k||"function"!=typeof k)return T();const e=v.items.length?v.items:[T()].filter(Boolean),t=k({currentFilters:e,columns:x});if(null===t)return null;const r=x.find((({field:e})=>e===t));return r?C(r):null}),[v.items,x,k,T]),z=l.useMemo((()=>v.items.length?v.items:(R.current||(R.current=T()),R.current?[R.current]:[])),[v.items,T]),L=z.length>1,{readOnlyFilters:$,validFilters:N}=l.useMemo((()=>z.reduce(((e,t)=>(y[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e)),{readOnlyFilters:[],validFilters:[]})),[z,y]),j=l.useCallback((()=>{const e=D();e&&r.current.upsertFilterItems([...z,e])}),[r,D,z]),V=l.useCallback((e=>{const t=1===N.length;r.current.deleteFilterItem(e),t&&r.current.hideFilterPanel()}),[r,N.length]),B=l.useCallback((()=>1===N.length&&void 0===N[0].value?(r.current.deleteFilterItem(N[0]),r.current.hideFilterPanel()):r.current.setFilterModel((0,n.A)({},v,{items:$}),"removeAllFilterItems")),[r,$,v,N]);return l.useEffect((()=>{S.length>0&&v.logicOperator&&!S.includes(v.logicOperator)&&O(S[0])}),[S,O,v.logicOperator]),l.useEffect((()=>{N.length>0&&A.current.focus()}),[N.length]),(0,b.jsxs)(d.G,(0,n.A)({},F,{ref:t,children:[(0,b.jsxs)(c.o,{children:[$.map(((e,t)=>(0,b.jsx)(p.R,(0,n.A)({item:e,applyFilterChanges:H,deleteFilter:V,hasMultipleFilters:L,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:O,focusElementRef:null,readOnly:!0,logicOperators:S,columnsSort:I},M),null==e.id?t:e.id))),N.map(((e,t)=>(0,b.jsx)(p.R,(0,n.A)({item:e,applyFilterChanges:H,deleteFilter:V,hasMultipleFilters:L,showMultiFilterOperators:$.length+t>0,disableMultiFilterOperator:$.length+t!==1,applyMultiFilterOperatorChanges:O,focusElementRef:t===N.length-1?A:null,logicOperators:S,columnsSort:I},M),null==e.id?t+$.length:e.id)))]}),i.disableMultipleColumnsFiltering||P&&E?null:(0,b.jsxs)(u.g,{children:[P?(0,b.jsx)("span",{}):(0,b.jsx)(i.slots.baseButton,(0,n.A)({onClick:j,startIcon:(0,b.jsx)(i.slots.filterPanelAddIcon,{})},i.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!E&&N.length>0?(0,b.jsx)(i.slots.baseButton,(0,n.A)({onClick:B,startIcon:(0,b.jsx)(i.slots.filterPanelRemoveAllIcon,{})},i.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))}))},12003:(e,t,r)=>{"use strict";r.d(t,{KJ:()=>l,Rc:()=>i,_W:()=>o});var n=r(6614);function o(e){return"singleSelect"===e?.type}function l(e,t){if(e)return"function"==typeof e.valueOptions?e.valueOptions((0,n.A)({field:e.field},t)):e.valueOptions}function i(e,t,r){if(void 0===t)return;const n=t.find((t=>{const n=r(t);return String(n)===String(e)}));return r(n)}},38175:(e,t,r)=>{"use strict";r.d(t,{ME:()=>m,jX:()=>g,qn:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(29629),a=r(96746),s=r(76404),c=r(75492),u=r(69500);const d=["hideMenu","options"],p=["hideMenu","options"],f=["csvOptions","printOptions","excelOptions"];function g(e){const t=(0,s.h)(),{hideMenu:r,options:l}=e,a=(0,o.A)(e,d);return(0,u.jsx)(i.A,(0,n.A)({onClick:()=>{t.current.exportDataAsCsv(l),r?.()}},a,{children:t.current.getLocaleText("toolbarExportCSV")}))}function m(e){const t=(0,s.h)(),{hideMenu:r,options:l}=e,a=(0,o.A)(e,p);return(0,u.jsx)(i.A,(0,n.A)({onClick:()=>{t.current.exportDataAsPrint(l),r?.()}},a,{children:t.current.getLocaleText("toolbarExportPrint")}))}const h=(0,a.R)((function(e,t){const r=e,{csvOptions:i={},printOptions:a={},excelOptions:d}=r,p=(0,o.A)(r,f),g=(0,s.h)().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:d,csvOptions:i,printOptions:a}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===g.length?null:(0,u.jsx)(c.Z,(0,n.A)({},p,{ref:t,children:g.map(((e,t)=>l.cloneElement(e.component,{key:t})))}))}))},75492:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(6614),o=r(7552),l=r(50089),i=r(29527),a=r(6679),s=r(96746),c=r(67129),u=r(76404),d=r(83749),p=r(64565),f=r(76959),g=r(69500);const m=(0,s.R)((function(e,t){const{children:r,slotProps:s={}}=e,m=s.button||{},h=s.tooltip||{},b=(0,u.h)(),w=(0,p.A)(),C=(0,l.A)(),v=(0,l.A)(),[x,y]=o.useState(!1),A=o.useRef(null),R=(0,i.A)(t,A),S=()=>y(!1);return null==r?null:(0,g.jsxs)(o.Fragment,{children:[(0,g.jsx)(w.slots.baseTooltip,(0,n.A)({title:b.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},w.slotProps?.baseTooltip,h,{children:(0,g.jsx)(w.slots.baseButton,(0,n.A)({size:"small",startIcon:(0,g.jsx)(w.slots.exportIcon,{}),"aria-expanded":x,"aria-label":b.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":x?v:void 0,id:C,onClick:e=>{y((e=>!e)),m.onClick?.(e)}},w.slotProps?.baseButton,m,{ref:R,children:b.current.getLocaleText("toolbarExport")}))})),(0,g.jsx)(d.U,{open:x,target:A.current,onClose:S,position:"bottom-start",children:(0,g.jsx)(a.A,{id:v,className:f.x.menuList,"aria-labelledby":C,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),(0,c.HF)(e.key)&&S()},autoFocusItem:x,children:o.Children.map(r,(e=>o.isValidElement(e)?o.cloneElement(e,{hideMenu:S}):e))})})]})}))},71173:(e,t,r)=>{"use strict";r.d(t,{S:()=>fe});var n=r(6614),o=r(7552),l=r(48467),i=r(70799),a=r(93878),s=r(89887),c=r(76117),u=r(64565),d=r(76959),p=r(76404),f=r(89148),g=r(12274),m=r(29641),h=r(33658),b=r(80163),w=r(85659),C=r(60378),v=r(69500);const x=(0,l.A)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${d.x["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${d.x["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${d.x["scrollArea--left"]}`]:{left:0},[`&.${d.x["scrollArea--right"]}`]:{right:0}}))),y=(0,c.n)((function(e){const{scrollDirection:t}=e,r=o.useRef(null),l=(0,p.h)(),c=(0,w.A)(),y=(0,g.Nc)(l,h.rf),A=(0,g.Nc)(l,b.fc),R=(0,g.Nc)(l,m.z),S=o.useRef({left:0,top:0}),I=()=>{if("left"===t)return S.current.left>0;if("right"===t){const e=A-R.viewportInnerSize.width;return S.current.left<e}return!1},[M,k]=o.useState(!1),[P,E]=o.useState(I),F=(0,u.A)(),H=(0,n.A)({},F,{scrollDirection:t}),O=(e=>{const{scrollDirection:t,classes:r}=e,n={root:["scrollArea",`scrollArea--${t}`]};return(0,i.A)(n,d.B,r)})(H),T=(0,C.pe)(l,F),D=Math.floor(F.columnHeaderHeight*y),z={height:D,top:T-D};"left"===t?z.left=R.leftPinnedWidth:"right"===t&&(z.right=R.rightPinnedWidth+(R.hasScrollX?R.scrollbarSize:0));const L=(0,s.A)((e=>{let n;if(e.preventDefault(),"left"===t)n=e.clientX-r.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI X: Wrong drag direction");n=Math.max(1,e.clientX-r.current.getBoundingClientRect().left)}n=1.5*(n-1)+1,c.start(0,(()=>{l.current.scroll({left:S.current.left+n,top:S.current.top})}))})),$=(0,s.A)((()=>{k(!0)})),N=(0,s.A)((()=>{k(!1)}));return(0,f.cz)(l,"scrollPositionChange",(e=>{S.current=e,E(I)})),(0,f.cz)(l,"columnHeaderDragStart",$),(0,f.cz)(l,"columnHeaderDragEnd",N),M&&P?(0,v.jsx)(x,{ref:r,className:(0,a.A)(O.root),ownerState:H,onDragOver:L,style:z}):null}));var A=r(72988),R=r(2220),S=r(4394);const I=()=>{const e=(0,p.h)(),t=(0,u.A)(),r=(0,g.Nc)(e,S.H0),n=(0,g.Nc)(e,R.O7),o=(0,g.Nc)(e,S.OQ),l=0===r&&0===o,i=(0,g.Nc)(e,S.Dl);let a=null,s=null;return!i&&l&&(a="noRowsOverlay"),!i&&r>0&&0===n&&(a="noResultsOverlay"),i&&(a="loadingOverlay",s=t.slotProps?.loadingOverlay?.[l?"noRowsVariant":"variant"]||null),{overlayType:a,loadingOverlayVariant:s}};var M=r(80677),k=r(71115),P=r(43026),E=r(3247),F=r(8751),H=r(83182);const O=(0,c.n)((function(){const e=(0,k.E)(),t=(0,u.A)(),r=(0,g.Nc)(e,b.iv),o=(0,g.Nc)(e,R.od),l=(0,g.Nc)(e,P.oF),i=(0,g.Nc)(e,E.Kr),a=(0,g.Nc)(e,(()=>null===(0,E.H5)(e))),s=(0,g.Nc)(e,E.dS),c=(0,g.Nc)(e,E.rj),d=(0,g.Nc)(e,E.WO),p=(0,g.Nc)(e,F.aC),f=(0,g.Nc)(e,H.$),m=(0,g.Nc)(e,b.FY),h=(0,g.Nc)(e,F.GD),w=!(null===s&&null===i&&a),C=e.current.columnHeadersContainerRef;return(0,v.jsx)(t.slots.columnHeaders,(0,n.A)({ref:C,visibleColumns:r,filterColumnLookup:o,sortColumnLookup:l,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:p,columnMenuState:f,columnVisibility:m,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:w},t.slotProps?.columnHeaders))}));var T=r(96746),D=r(68337);const z=(0,l.A)("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),L=(0,l.A)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),$=(0,T.R)(((e,t)=>{const r=(0,u.A)(),o=(0,D.Q)().hooks.useGridAriaAttributes();return(0,v.jsxs)(L,(0,n.A)({ownerState:r,className:e.className,tabIndex:-1},o,r.slotProps?.main,{ref:t,children:[(0,v.jsx)(z,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))})),N=()=>(0,i.A)({root:["topContainer"]},d.B,{}),j=(0,l.A)("div")({position:"sticky",zIndex:4,top:0});function V(e){const t=N();return(0,v.jsx)(j,(0,n.A)({},e,{className:(0,a.A)(t.root,d.x["container--top"]),role:"presentation"}))}const B=()=>(0,i.A)({root:["bottomContainer"]},d.B,{}),G=(0,l.A)("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function _(e){const t=B();return(0,v.jsx)(G,(0,n.A)({},e,{className:(0,a.A)(t.root,d.x["container--bottom"]),role:"presentation"}))}const W=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),U=(0,T.R)((function(e,t){const r=(0,u.A)(),o=((e,t)=>{const{classes:r}=e,n={root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]};return(0,i.A)(n,d.B,r)})(r,!r.autoHeight&&"auto"===e.style?.minHeight);return(0,v.jsx)(W,(0,n.A)({},e,{ownerState:r,className:(0,a.A)(o.root,e.className),ref:t}))})),q=(0,l.A)("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),K=(0,l.A)("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),X=(0,l.A)(K)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),Y=(0,l.A)(K)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Z=(0,l.A)("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"}),Q=(0,c.n)((function({rowsLength:e}){const t=(0,p.h)(),{viewportOuterSize:r,minimumSize:n,hasScrollX:o,hasScrollY:l,scrollbarSize:i,leftPinnedWidth:a,rightPinnedWidth:s}=(0,g.Nc)(t,m.z),c=o?i:0,u=r.height-n.height>0;return 0!==c||u?(0,v.jsxs)(q,{className:d.x.filler,role:"presentation",style:{height:c,"--rowBorderColor":0===e?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&(0,v.jsx)(X,{className:d.x["filler--pinnedLeft"],style:{width:a}}),(0,v.jsx)(Z,{}),s>0&&(0,v.jsx)(Y,{className:d.x["filler--pinnedRight"],style:{width:s+(l?i:0)}})]}):null}));var J=r(83673),ee=r(69639),te=r(35281);const re=["className"],ne=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),oe=(0,T.R)((function(e,t){const{className:r}=e,o=(0,J.A)(e,re),l=(0,p.h)(),s=(0,u.A)(),c=(e=>{const{classes:t}=e;return(0,i.A)({root:["virtualScrollerRenderZone"]},d.B,t)})(s),f=(0,g.Nc)(l,(()=>{const e=(0,te.nZ)(l);return(0,ee.E)(l.current.state).positions[e.firstRowIndex]??0}));return(0,v.jsx)(ne,(0,n.A)({className:(0,a.A)(c.root,r),ownerState:s,style:{transform:`translate3d(0, ${f}px, 0)`}},o,{ref:t}))}));var le=r(29527),ie=r(8161);const ae=(0,l.A)("div")({position:"absolute",display:"inline-block",zIndex:6,"&:hover":{zIndex:7},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),se=(0,l.A)(ae)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),ce=(0,l.A)(ae)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),ue=(0,T.R)((function(e,t){const r=(0,k.E)(),n=(0,u.A)(),l=o.useRef(!1),a=o.useRef(0),c=o.useRef(null),p=o.useRef(null),f=((e,t)=>{const{classes:r}=e,n={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return(0,i.A)(n,d.B,r)})(n,e.position),h=(0,g.Nc)(r,m.z),b="vertical"===e.position?"height":"width",w="vertical"===e.position?"scrollTop":"scrollLeft",C="vertical"===e.position?h.hasScrollX:h.hasScrollY,x=h.minimumSize[b]+(C?h.scrollbarSize:0),y=("vertical"===e.position?h.viewportInnerSize.height:h.viewportOuterSize.width)*(x/h.viewportOuterSize[b]),A=(0,s.A)((()=>{const e=r.current.virtualScrollerRef.current,t=c.current;if(!t)return;if(e[w]===a.current)return;if(a.current=e[w],l.current)return void(l.current=!1);l.current=!0;const n=e[w]/x;t[w]=n*y})),R=(0,s.A)((()=>{const e=r.current.virtualScrollerRef.current,t=c.current;if(!t)return;if(l.current)return void(l.current=!1);l.current=!0;const n=t[w]/y;e[w]=n*x}));(0,ie.A)((()=>{const e=r.current.virtualScrollerRef.current,t=c.current,n={capture:!0,passive:!0};return e.addEventListener("scroll",A,n),t.addEventListener("scroll",R,n),()=>{e.removeEventListener("scroll",A,n),t.removeEventListener("scroll",R,n)}})),o.useEffect((()=>{p.current.style.setProperty(b,`${y}px`)}),[y,b]);const S="vertical"===e.position?se:ce;return(0,v.jsx)(S,{ref:(0,le.A)(t,c),className:f.root,style:"vertical"===e.position&&n.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",children:(0,v.jsx)("div",{ref:p,className:f.content})})})),de=(e,t,r)=>{const{classes:n}=e,o={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight","skeleton"===r&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",t.hasScrollX&&"virtualScroller--hasScrollX"]};return(0,i.A)(o,d.B,n)},pe=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function fe(e){const t=(0,p.h)(),r=(0,u.A)(),o=(0,g.Nc)(t,m.z),l=I(),i=de(r,o,l.loadingOverlayVariant),a=(0,A.j$)(),{getContainerProps:s,getScrollerProps:c,getContentProps:d,getRenderZoneProps:f,getScrollbarVerticalProps:h,getScrollbarHorizontalProps:b,getRows:w}=a,C=w();return(0,v.jsxs)($,(0,n.A)({className:i.root},s(),{children:[(0,v.jsx)(y,{scrollDirection:"left"}),(0,v.jsx)(y,{scrollDirection:"right"}),(0,v.jsxs)(pe,(0,n.A)({className:i.scroller},c(),{ownerState:r,children:[(0,v.jsxs)(V,{children:[!r.unstable_listView&&(0,v.jsx)(O,{}),(0,v.jsx)(r.slots.pinnedRows,{position:"top",virtualScroller:a})]}),(0,v.jsx)(M.I,(0,n.A)({},l)),(0,v.jsx)(U,(0,n.A)({},d(),{children:(0,v.jsxs)(oe,(0,n.A)({},f(),{children:[C,(0,v.jsx)(r.slots.detailPanels,{virtualScroller:a})]}))})),(0,v.jsx)(Q,{rowsLength:C.length}),(0,v.jsx)(_,{children:(0,v.jsx)(r.slots.pinnedRows,{position:"bottom",virtualScroller:a})})]})),o.hasScrollX&&!r.unstable_listView&&(0,v.jsx)(ue,(0,n.A)({position:"horizontal"},b())),o.hasScrollY&&(0,v.jsx)(ue,(0,n.A)({position:"vertical"},h())),e.children]}))}},53902:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});const n={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:"\t",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:r(87795).RL.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,indeterminateCheckboxAction:"deselect",keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1,virtualizeColumnsWithAutoRowHeight:!1}},76959:(e,t,r)=>{"use strict";r.d(t,{B:()=>o,x:()=>l});var n=r(85693);function o(e){return(0,n.Ay)("MuiDataGrid",e)}const l=(0,r(33761).A)("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"])},52101:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});const n={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=>1!==e?`${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",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",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",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",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",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",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=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${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"}},61311:(e,t,r)=>{"use strict";r.d(t,{X:()=>c});var n=r(7552),o=r(92019),l=r(71115),i=r(65568),a=r(35825),s=r(69500);function c({privateApiRef:e,configuration:t,props:r,children:c}){const u=n.useRef(e.current.getPublicApi());return(0,s.jsx)(a.S.Provider,{value:t,children:(0,s.jsx)(i.y.Provider,{value:r,children:(0,s.jsx)(l.z.Provider,{value:e,children:(0,s.jsx)(o.k.Provider,{value:u,children:c})})})})}},8751:(e,t,r)=>{"use strict";r.d(t,{ED:()=>i,GD:()=>a,TQ:()=>l,aC:()=>s,tf:()=>o});var n=r(33642);const o=e=>e.columnGrouping,l=(0,n.S)(o,(e=>e?.unwrappedGroupingModel??{})),i=(0,n.S)(o,(e=>e?.lookup??{})),a=(0,n.S)(o,(e=>e?.headerStructure??[])),s=(0,n.Mz)(o,(e=>e?.maxDepth??0))},83182:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});const n=e=>e.columnMenu},32125:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});const n={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0}},36155:(e,t,r)=>{"use strict";r.d(t,{K:()=>n,u:()=>o});let n=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const o={left:[],right:[]}},80163:(e,t,r)=>{"use strict";r.d(t,{OV:()=>s,JR:()=>i,gv:()=>a,Sw:()=>g,FY:()=>c,em:()=>l,fc:()=>m,Oe:()=>h,U8:()=>b,kw:()=>w,He:()=>p,iv:()=>u,TI:()=>d,Q1:()=>f});var n=r(33642),o=r(36155);const l=e=>e.columns,i=(0,n.Mz)(l,(e=>e.orderedFields)),a=(0,n.Mz)(l,(e=>e.lookup)),s=(0,n.S)(i,a,((e,t)=>e.map((e=>t[e])))),c=(0,n.Mz)(l,(e=>e.columnVisibilityModel)),u=(0,n.S)(s,c,((e,t)=>e.filter((e=>!1!==t[e.field])))),d=(0,n.S)(u,(e=>e.map((e=>e.field)))),p=e=>e.pinnedColumns,f=(0,n.S)(l,p,d,(e=>e.isRtl),((e,t,r,n)=>{const l=function(e,t,r){if(!Array.isArray(e.left)&&!Array.isArray(e.right))return o.u;if(0===e.left?.length&&0===e.right?.length)return o.u;const n=(e,t)=>Array.isArray(e)?e.filter((e=>t.includes(e))):[],l=n(e.left,t),i=t.filter((e=>!l.includes(e))),a=n(e.right,i);return r?{left:a,right:l}:{left:l,right:a}}(t,r,n);return{left:l.left.map((t=>e.lookup[t])),right:l.right.map((t=>e.lookup[t]))}})),g=(0,n.S)(u,(e=>{const t=[];let r=0;for(let n=0;n<e.length;n+=1)t.push(r),r+=e[n].computedWidth;return t})),m=(0,n.Mz)(u,g,((e,t)=>{const r=e.length;return 0===r?0:t[r-1]+e[r-1].computedWidth})),h=(0,n.S)(s,(e=>e.filter((e=>e.filterable)))),b=(0,n.S)(s,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),w=(0,n.S)(s,(e=>e.some((e=>void 0!==e.colSpan))))},60378:(e,t,r)=>{"use strict";r.d(t,{A8:()=>b,LN:()=>g,Pd:()=>h,Pr:()=>p,pe:()=>w});var n=r(6614),o=r(80007),l=r(23987),i=r(59747),a=r(80163),s=r(58766),c=r(33658),u=r(10365),d=r(8751);const p=["maxWidth","minWidth","width","flex"],f=(0,l.Z)(),g=(e,t)=>{const r={};let o=0,l=0;const a=[];e.orderedFields.forEach((t=>{let c=e.lookup[t],u=0,d=!1;!1!==e.columnVisibilityModel[t]&&(c.flex&&c.flex>0?(o+=c.flex,d=!0):u=(0,s.qE)(c.width||i.C.width,c.minWidth||i.C.minWidth,c.maxWidth||i.C.maxWidth),l+=u),c.computedWidth!==u&&(c=(0,n.A)({},c,{computedWidth:u})),d&&a.push(c),r[t]=c}));const c=void 0===t?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),u=Math.max(c-l,0);if(o>0&&c>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:r}){const n=new Set(r.map((e=>e.field))),o={all:{},frozenFields:[],freeze:e=>{const t=o.all[e];t&&!0!==t.frozen&&(o.all[e].frozen=!0,o.frozenFields.push(e))}};return function l(){if(o.frozenFields.length===n.size)return;const i={min:{},max:{}};let a=e,s=t,c=0;o.frozenFields.forEach((e=>{a-=o.all[e].computedWidth,s-=o.all[e].flex}));for(let e=0;e<r.length;e+=1){const t=r[e];if(o.all[t.field]&&!0===o.all[t.field].frozen)continue;let n=a/s*t.flex;n<t.minWidth?(c+=t.minWidth-n,n=t.minWidth,i.min[t.field]=!0):n>t.maxWidth&&(c+=t.maxWidth-n,n=t.maxWidth,i.max[t.field]=!0),o.all[t.field]={frozen:!1,computedWidth:n,flex:t.flex}}c<0?Object.keys(i.max).forEach((e=>{o.freeze(e)})):c>0?Object.keys(i.min).forEach((e=>{o.freeze(e)})):r.forEach((({field:e})=>{o.freeze(e)})),l()}(),o.all}({initialFreeSpace:u,totalFlexUnits:o,flexColumns:a});Object.keys(e).forEach((t=>{r[t].computedWidth=e[t].computedWidth}))}return(0,n.A)({},e,{lookup:r})};function m(e){let t=f[l.x];return e&&f[e]&&(t=f[e]),t}const h=({apiRef:e,columnsToUpsert:t,initialState:r,columnVisibilityModel:l=(0,a.FY)(e),keepOnlyColumnsToUpsert:i=!1})=>{const s=!e.current.state.columns;let c;if(s)c={orderedFields:[],lookup:{},columnVisibilityModel:l};else{const t=(0,a.em)(e.current.state);c={orderedFields:i?[]:[...t.orderedFields],lookup:(0,n.A)({},t.lookup),columnVisibilityModel:l}}let u={};i&&!s&&(u=Object.keys(c.lookup).reduce(((e,t)=>(0,n.A)({},e,{[t]:!1})),{}));const d={};t.forEach((e=>{const{field:t}=e;d[t]=!0,u[t]=!0;let r=c.lookup[t];null==r?(r=(0,n.A)({},m(e.type),{field:t,hasBeenResized:!1}),c.orderedFields.push(t)):i&&c.orderedFields.push(t),r&&r.type!==e.type&&(r=(0,n.A)({},m(e.type),{field:t}));let l=r.hasBeenResized;p.forEach((t=>{void 0!==e[t]&&(l=!0,-1===e[t]&&(e[t]=1/0))})),c.lookup[t]=(0,o.A)(r,(0,n.A)({},e,{hasBeenResized:l}))})),i&&!s&&Object.keys(c.lookup).forEach((e=>{u[e]||delete c.lookup[e]}));const f=((e,t)=>{if(!t)return e;const{orderedFields:r=[],dimensions:o={}}=t,l=Object.keys(o);if(0===l.length&&0===r.length)return e;const i={},a=[];for(let t=0;t<r.length;t+=1){const n=r[t];e.lookup[n]&&(i[n]=!0,a.push(n))}const s=0===a.length?e.orderedFields:[...a,...e.orderedFields.filter((e=>!i[e]))],c=(0,n.A)({},e.lookup);for(let e=0;e<l.length;e+=1){const t=l[e],r=(0,n.A)({},c[t],{hasBeenResized:!0});Object.entries(o[t]).forEach((([e,t])=>{r[e]=-1===t?1/0:t})),c[t]=r}return(0,n.A)({},e,{orderedFields:s,lookup:c})})(e.current.unstable_applyPipeProcessors("hydrateColumns",c),r);return g(f,e.current.getRootDimensions?.()??void 0)};function b({firstColumnToRender:e,apiRef:t,firstRowToRender:r,lastRowToRender:n,visibleRows:o}){let l=e;for(let i=r;i<n;i+=1)if(o[i]){const r=o[i].id,n=t.current.unstable_getCellColSpanInfo(r,e);n&&n.spannedByColSpan&&(l=n.leftVisibleCellIndex)}return l}function w(e,t){if(t.unstable_listView)return 0;const r=(0,c.rf)(e),n=(0,d.aC)(e),o=(0,u.yt)(e);return Math.floor(t.columnHeaderHeight*r)+Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*r)*n+(o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*r):0)}},33658:(e,t,r)=>{"use strict";r.d(t,{Y8:()=>l,_v:()=>a,rf:()=>s,tS:()=>o});var n=r(33642);const o=.7,l=1.3,i={compact:o,comfortable:l,standard:1},a=e=>e.density,s=(0,n.Mz)(a,(e=>i[e]))},29641:(e,t,r)=>{"use strict";r.d(t,{z:()=>n});const n=e=>e.dimensions},62185:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});const n=e=>e.editRows},2220:(e,t,r)=>{"use strict";r.d(t,{Ai:()=>y,O7:()=>w,RN:()=>C,ZI:()=>s,ZP:()=>p,ee:()=>v,em:()=>f,lL:()=>u,oU:()=>m,od:()=>A,q6:()=>c,qA:()=>h,r4:()=>x,tW:()=>b,ux:()=>g,wx:()=>d});var n=r(33642),o=r(43026),l=r(80163),i=r(4394);const a=e=>e.filter,s=(0,n.Mz)(a,(e=>e.filterModel)),c=(0,n.Mz)(s,(e=>e.quickFilterValues)),u=e=>e.visibleRowsLookup,d=(0,n.Mz)(a,(e=>e.filteredRowsLookup)),p=((0,n.Mz)(a,(e=>e.filteredChildrenCountLookup)),(0,n.Mz)(a,(e=>e.filteredDescendantCountLookup))),f=(0,n.S)(u,o.J6,i.V2,s,c,((e,t,r,n,o)=>r<2&&!n.items.length&&!o?.length?t:t.filter((t=>!1!==e[t.id])))),g=(0,n.S)(f,(e=>e.map((e=>e.id)))),m=(0,n.S)(d,o.J6,((e,t)=>t.filter((t=>!1!==e[t.id])))),h=(0,n.S)(m,(e=>e.map((e=>e.id)))),b=((0,n.S)(g,i.qj,((e,t)=>{const r={};let n=0;return e.reduce(((e,o)=>{const l=t[o];return r[l.depth]||(r[l.depth]=0),l.depth>n&&(r[l.depth]=0),n=l.depth,r[l.depth]+=1,e[o]=r[l.depth],e}),{})})),(0,n.S)(f,i.qj,i.V2,((e,t,r)=>r<2?e:e.filter((e=>0===t[e.id]?.depth))))),w=(0,n.Mz)(f,(e=>e.length)),C=(0,n.Mz)(b,(e=>e.length)),v=(0,n.Mz)(m,(e=>e.length)),x=(0,n.Mz)(v,C,((e,t)=>e-t)),y=(0,n.S)(s,l.gv,((e,t)=>e.items?.filter((e=>{if(!e.field)return!1;const r=t[e.field];if(!r?.filterOperators||0===r?.filterOperators?.length)return!1;const n=r.filterOperators.find((t=>t.value===e.operator));return!!n&&(!n.InputComponent||null!=e.value&&""!==e.value?.toString())})))),A=(0,n.S)(y,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{})))},15060:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var n=r(93527);const o=()=>({items:[],logicOperator:n.V.And,quickFilterValues:[],quickFilterLogicOperator:n.V.And})},43905:(e,t,r)=>{"use strict";r.d(t,{Fv:()=>h,zk:()=>c,zU:()=>d,Ko:()=>w,WL:()=>p,L5:()=>u,kO:()=>m});var n=r(6614),o=r(93527),l=r(15060);function i(e){return{current:e.current.getPublicApi()}}var a=r(80163);let s;const c=(e,t)=>{const r=(0,n.A)({},e);if(null==r.id&&(r.id=Math.round(1e5*Math.random())),null==r.operator){const e=(0,a.gv)(t)[r.field];r.operator=e&&e.filterOperators[0].value}return r},u=(e,t,r)=>{const o=e.items.length>1;let l;l=o&&t?[e.items[0]]:e.items;const i=o&&l.some((e=>null==e.id));return l.some((e=>null==e.operator))||i?(0,n.A)({},e,{items:l.map((e=>c(e,r)))}):e.items!==l?(0,n.A)({},e,{items:l}):e},d=(e,t,r)=>o=>(0,n.A)({},o,{filterModel:u(e,t,r)}),p=e=>"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,f=(e,t)=>{if(!e.field||!e.operator)return null;const r=t.current.getColumn(e.field);if(!r)return null;let o;if(r.valueParser){const n=r.valueParser;o=Array.isArray(e.value)?e.value?.map((e=>n(e,void 0,r,t))):n(e.value,void 0,r,t)}else o=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(o=p(o));const a=(0,n.A)({},e,{value:o}),s=r.filterOperators;if(!s?.length)throw new Error(`MUI X: No filter operators found for column '${r.field}'.`);const c=s.find((e=>e.value===a.operator));if(!c)throw new Error(`MUI X: No filter operator found for column '${r.field}' and operator value '${a.operator}'.`);const u=i(t),d=c.getApplyFilterFn(a,r);return"function"!=typeof d?null:{item:a,fn:e=>{let n=t.current.getRowValue(e,r);return l&&(n=p(n)),d(n,e,r,u)}}};let g=1;const m=e=>e.quickFilterExcludeHiddenColumns??!0,h=(e,t,r)=>{const n=((e,t,r)=>{const{items:n}=e,o=n.map((e=>f(e,t))).filter((e=>!!e));if(0===o.length)return null;if(r||!function(){if(void 0!==s)return s;try{s=new Function("return true")()}catch(e){s=!1}return s}())return(e,t)=>{const r={};for(let n=0;n<o.length;n+=1){const l=o[n];t&&!t(l.item.field)||(r[l.item.id]=l.fn(e))}return r};const l=new Function("appliers","row","shouldApplyFilter",`"use strict";\n${o.map(((e,t)=>`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`)).join("\n")}\n\nconst result$$ = {\n${o.map(((e,t)=>`  ${JSON.stringify(String(e.item.id))}: !shouldApply${t} ? false : appliers[${t}].fn(row),`)).join("\n")}\n};\n\nreturn result$$;`.replaceAll("$$",String(g)));return g+=1,(e,t)=>l(o,e,t)})(e,t,r),o=((e,t)=>{const r=e.quickFilterValues?.filter(Boolean)??[];if(0===r.length)return null;const n=m(e)?(0,a.TI)(t):(0,a.JR)(t),o=[],{ignoreDiacritics:l}=t.current.rootProps,s=i(t);return n.forEach((e=>{const n=t.current.getColumn(e),i=n?.getApplyQuickFilterFn;i&&o.push({column:n,appliers:r.map((e=>{const t=l?p(e):e;return{fn:i(t,n,s)}}))})})),function(e,n){const i={};e:for(let a=0;a<r.length;a+=1){const c=r[a];for(let r=0;r<o.length;r+=1){const{column:u,appliers:d}=o[r],{field:f}=u;if(n&&!n(f))continue;const g=d[a];let m=t.current.getRowValue(e,u);if(null!==g.fn&&(l&&(m=p(m)),g.fn(m,e,u,s))){i[c]=!0;continue e}}i[c]=!1}return i}})(e,t);return function(e,t,r){r.passingFilterItems=n?.(e,t)??null,r.passingQuickFilterValues=o?.(e,t)??null}},b=e=>null!=e,w=(e,t,r,n,i)=>{const a=((e,t,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter((e=>null!==f(e,t)))),e.cleanedFilterItems))(i,n,r.items),s=e.filter(b),c=t.filter(b);if(s.length>0){const e=e=>s.some((t=>t[e.id]));if((r.logicOperator??(0,l.T)().logicOperator)===o.V.And){if(!a.every(e))return!1}else if(!a.some(e))return!1}if(c.length>0&&null!=r.quickFilterValues){const e=e=>c.some((t=>t[e]));if((r.quickFilterLogicOperator??(0,l.T)().quickFilterLogicOperator)===o.V.And){if(!r.quickFilterValues.every(e))return!1}else if(!r.quickFilterValues.some(e))return!1}return!0}},3247:(e,t,r)=>{"use strict";r.d(t,{H5:()=>u,IL:()=>p,Kr:()=>d,MO:()=>l,Uh:()=>c,WO:()=>s,XY:()=>a,dS:()=>f,he:()=>o,rj:()=>i});var n=r(33642);const o=e=>e.focus,l=(0,n.Mz)(o,(e=>e.cell)),i=(0,n.Mz)(o,(e=>e.columnHeader)),a=(0,n.Mz)(o,(e=>e.columnHeaderFilter)),s=(0,n.Mz)(o,(e=>e.columnGroupHeader)),c=e=>e.tabIndex,u=(0,n.Mz)(c,(e=>e.cell)),d=(0,n.Mz)(c,(e=>e.columnHeader)),p=(0,n.Mz)(c,(e=>e.columnHeaderFilter)),f=(0,n.Mz)(c,(e=>e.columnGroupHeader))},10365:(e,t,r)=>{"use strict";r.d(t,{B$:()=>i,K8:()=>a,ON:()=>o,yt:()=>l});var n=r(33642);const o=e=>e.headerFiltering,l=(0,n.Mz)(o,(e=>e?.enabled??!1)),i=(0,n.Mz)(o,(e=>e.editing)),a=(0,n.Mz)(o,(e=>e.menuOpen))},46593:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});const n=e=>e.listViewColumn},24940:(e,t,r)=>{"use strict";r.d(t,{$i:()=>p,H2:()=>u,M5:()=>a,O:()=>g,Q8:()=>h,ee:()=>b,f3:()=>w,ij:()=>f,lN:()=>c,py:()=>d,vd:()=>m,xV:()=>s});var n=r(33642),o=r(2220),l=r(4394),i=r(92268);const a=e=>e.pagination,s=(0,n.Mz)(a,(e=>e.enabled&&"client"===e.paginationMode)),c=(0,n.Mz)(a,(e=>e.paginationModel)),u=(0,n.Mz)(a,(e=>e.rowCount)),d=(0,n.Mz)(a,(e=>e.meta)),p=(0,n.Mz)(c,(e=>e.page)),f=(0,n.Mz)(c,(e=>e.pageSize)),g=(0,n.Mz)(c,u,((e,t)=>(0,i.$_)(t,e.pageSize,e.page))),m=(0,n.S)(s,c,l.qj,l.V2,o.em,o.tW,((e,t,r,n,o,l)=>{if(!e)return null;const i=l.length,a=Math.min(t.pageSize*t.page,i-1),s=-1===t.pageSize?i-1:Math.min(a+t.pageSize-1,i-1);if(-1===a||-1===s)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const c=l[a],u=s-a+1,d=o.findIndex((e=>e.id===c.id));let p=d,f=0;for(;p<o.length&&f<=u;){const e=o[p],t=r[e.id]?.depth;void 0===t?p+=1:((f<u||t>0)&&(p+=1),0===t&&(f+=1))}return{firstRowIndex:d,lastRowIndex:p-1}})),h=(0,n.S)(o.em,m,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),b=(0,n.S)(o.ux,m,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),w=(0,n.S)(s,m,h,o.em,((e,t,r,n)=>e?{rows:r,range:t,rowToIndexMap:r.reduce(((e,t,r)=>(e.set(t.model,r),e)),new Map)}:{rows:n,range:0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1},rowToIndexMap:n.reduce(((e,t,r)=>(e.set(t.model,r),e)),new Map)}))},92268:(e,t,r)=>{"use strict";r.d(t,{$_:()=>l,N0:()=>i,RW:()=>s,eW:()=>o,m6:()=>a});var n=r(89148);const o=e=>e?0:100,l=(e,t,r)=>t>0&&e>0?Math.ceil(e/t):-1===e?r+2:0,i=e=>({page:0,pageSize:e?0:100}),a=(e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0),s=(e,t)=>{if(t===n.HV.DataGrid&&e>100)throw new Error(["MUI X: `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("\n"))}},38577:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,_:()=>o});var n=r(33642);const o=e=>e.preferencePanel,l=(0,n.Or)(o,((e,t)=>!(!e.open||e.labelId!==t)))},48534:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});var n=function(e){return e.filters="filters",e.columns="columns",e}(n||{})},82188:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>l,Zk:()=>s,gt:()=>a,vF:()=>i});var n=r(33642),o=r(4394);const l=e=>e.rowSelection,i=(0,n.Mz)(l,(e=>e.length)),a=(0,n.S)(l,o.rI,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),s=(0,n.S)(l,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{})))},41222:(e,t,r)=>{"use strict";r.d(t,{cv:()=>p,h_:()=>d,ul:()=>f,xm:()=>g});var n=r(89148),o=r(59458),l=r(2220),i=r(43026),a=r(82188),s=r(4394),c=r(33642);function u(e,t){const r=(0,s.qj)(e),n=(0,i.RJ)(e),o=(0,l.wx)(e),a=r[t];if(!a||"group"!==a.type)return[];const c=[];for(let l=n.findIndex((e=>e===t))+1;l<n.length&&r[n[l]]?.depth>a.depth;l+=1){const t=n[l];!1!==o[t]&&e.current.isRowSelectable(t)&&c.push(t)}return c}function d(e,t){return(0,c.Mz)(s.qj,i.RJ,l.wx,a.Zk,((r,n,o,l)=>{const i=r[e];if(!i||"group"!==i.type)return{isIndeterminate:!1,isChecked:l[e]===e};if(l[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,s=0;for(let t=n.findIndex((t=>t===e))+1;t<n.length&&r[n[t]]?.depth>i.depth;t+=1){const e=n[t];!1!==o[e]&&(a+=1,void 0!==l[e]&&(s+=1))}return{isIndeterminate:s>0&&(s<a||void 0===l[e]),isChecked:t?s>0:l[e]===e}}))}function p(e){return e.signature===n.HV.DataGrid?e.checkboxSelection&&!0!==e.disableMultipleRowSelection:!e.disableMultipleRowSelection}const f=(e,t,r,n,i,s)=>{const c=(0,l.wx)(e),d=(0,a.Zk)(e),p=new Set([]);if(n||i){if(n){const n=t[r];"group"===n?.type&&u(e,r).forEach((e=>{s(e),p.add(e)}))}if(i){const n=e=>{if(d[e]!==e&&!p.has(e))return!1;const r=t[e];return"group"!==r?.type||r.children.every(n)},l=r=>{const i=((e,t,r)=>{const n=e[r];if(!n)return[];const o=n.parent;return null==o?[]:e[o].children.filter((e=>e!==r&&t[e]))})(t,c,r);if(0===i.length||i.every(n)){const n=t[r].parent;null!=n&&n!==o.OL&&e.current.isRowSelectable(n)&&(s(n),p.add(n),l(n))}};l(r)}}},g=(e,t,r,n,l,i)=>{const s=(0,a.Zk)(e);if(l||n){if(l){const e=((e,t)=>{const r=[];let n=t;for(;null!=n&&n!==o.OL;){const t=e[n];if(!t)return r;r.push(n),n=t.parent}return r})(t,r);e.forEach((e=>{s[e]===e&&i(e)}))}if(n){const n=t[r];"group"===n?.type&&u(e,r).forEach((e=>{i(e)}))}}}},92442:(e,t,r)=>{"use strict";r.d(t,{ET:()=>i,Lq:()=>a,xX:()=>l});var n=r(33642);const o=e=>e.rowSpanning,l=(0,n.Mz)(o,(e=>e.hiddenCells)),i=(0,n.Mz)(o,(e=>e.spannedCells)),a=(0,n.Mz)(o,(e=>e.hiddenCellOriginMap))},69639:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});const n=e=>e.rowsMeta},4394:(e,t,r)=>{"use strict";r.d(t,{$2:()=>b,A6:()=>m,Dl:()=>i,H0:()=>l,Mz:()=>f,O8:()=>a,OQ:()=>w,V2:()=>g,Y1:()=>p,gk:()=>c,qj:()=>u,r:()=>d,rI:()=>s});var n=r(33642);const o=e=>e.rows,l=(0,n.Mz)(o,(e=>e.totalRowCount)),i=(0,n.Mz)(o,(e=>e.loading)),a=(0,n.Mz)(o,(e=>e.totalTopLevelRowCount)),s=(0,n.Mz)(o,(e=>e.dataRowIdToModelLookup)),c=(0,n.Mz)(o,(e=>e.dataRowIdToIdLookup)),u=(0,n.Mz)(o,(e=>e.tree)),d=(0,n.Mz)(o,(e=>e.groupsToFetch)),p=(0,n.Mz)(o,(e=>e.groupingName)),f=(0,n.Mz)(o,(e=>e.treeDepths)),g=(0,n.S)(o,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:(t.filter((([,e])=>e>0)).map((([e])=>Number(e))).sort(((e,t)=>t-e))[0]??0)+1})),m=(0,n.Mz)(o,(e=>e.dataRowIds)),h=(0,n.Mz)(o,(e=>e?.additionalRowGroups)),b=(0,n.S)(h,(e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map((e=>({id:e.id,model:e.model??{}})))??[],top:t?.top?.map((e=>({id:e.id,model:e.model??{}})))??[]}})),w=(0,n.Mz)(b,(e=>(e?.top?.length||0)+(e?.bottom?.length||0)))},59458:(e,t,r)=>{"use strict";r.d(t,{Gh:()=>s,HZ:()=>c,Mk:()=>a,OL:()=>l,Oq:()=>x,Qy:()=>v,SN:()=>w,TW:()=>p,VO:()=>f,Z:()=>u,Ze:()=>h,fS:()=>d,gb:()=>i,l_:()=>m,nF:()=>g,nW:()=>y,ro:()=>C,zo:()=>b});var n=r(6614),o=r(4394);const l="auto-generated-group-node-root",i=Symbol("mui.id_autogenerated"),a=()=>({type:"group",id:l,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function s(e,t,r="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI X: 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.",r,JSON.stringify(t)].join("\n"))}const c=(e,t,r)=>{const n=t?t(e):e.id;return s(n,e,r),n},u=({rows:e,getRowId:t,loading:r,rowCount:n})=>{const o={type:"full",rows:[]},l={},i={};for(let r=0;r<e.length;r+=1){const n=e[r],a=c(n,t);l[a]=n,i[a]=a,o.rows.push(a)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:r,rowCountPropBeforePartialUpdates:n,updates:o,dataRowIdToIdLookup:i,dataRowIdToModelLookup:l}},d=({tree:e,rowCountProp:t=0})=>{const r=e[l];return Math.max(t,r.children.length+(null==r.footerId?0:1))},p=({apiRef:e,rowCountProp:t=0,loadingProp:r,previousTree:o,previousTreeDepths:l,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:s,treeDepths:c,dataRowIds:u,groupingName:p,groupsToFetch:f=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:o,previousTreeDepths:l,updates:a.updates,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),g=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:c,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIds:u,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},(0,n.A)({},g,{totalRowCount:Math.max(t,g.dataRowIds.length),totalTopLevelRowCount:d({tree:g.tree,rowCountProp:t}),groupingName:p,loading:r,groupsToFetch:f})},f=e=>i in e,g=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,m=(e,t,r)=>{const n=e[t];if("group"!==n.type)return[];const o=[];for(let t=0;t<n.children.length;t+=1){const l=n.children[t];r&&g(e[l])||o.push(l);const i=m(e,l,r);for(let e=0;e<i.length;e+=1)o.push(i[e])}return r||null==n.footerId||o.push(n.footerId),o},h=({previousCache:e,getRowId:t,updates:r,groupKeys:o})=>{if("full"===e.updates.type)throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const l=new Map;r.forEach((e=>{const r=c(e,t,"A row was provided without id when calling updateRows():");l.has(r)?l.set(r,(0,n.A)({},l.get(r),e)):l.set(r,e)}));const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:(0,n.A)({},e.updates.idToActionLookup),groupKeys:o},a=(0,n.A)({},e.dataRowIdToModelLookup),s=(0,n.A)({},e.dataRowIdToIdLookup),u={insert:{},modify:{},remove:{}};l.forEach(((e,t)=>{const r=i.idToActionLookup[t];if("delete"===e._action){if("remove"===r||!a[t])return;return null!=r&&(u[r][t]=!0),i.actions.remove.push(t),delete a[t],void delete s[t]}const o=a[t];if(o)return"remove"===r?(u.remove[t]=!0,i.actions.modify.push(t)):null==r&&i.actions.modify.push(t),void(a[t]=(0,n.A)({},o,e));"remove"===r?(u.remove[t]=!0,i.actions.insert.push(t)):null==r&&i.actions.insert.push(t),a[t]=e,s[t]=t}));const d=Object.keys(u);for(let e=0;e<d.length;e+=1){const t=d[e],r=u[t];Object.keys(r).length>0&&(i.actions[t]=i.actions[t].filter((e=>!r[e])))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:s,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function b(e){const t=(0,o.$2)(e);return{top:t?.top?.reduce(((t,r)=>t+e.current.unstable_getRowHeight(r.id)),0)||0,bottom:t?.bottom?.reduce(((t,r)=>t+e.current.unstable_getRowHeight(r.id)),0)||0}}const w="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function C(e,t,r){const o=[];return t.forEach((t=>{const l=c(t,r,"A row was provided without id when calling updateRows():"),i=e.current.getRowNode(l);if("pinnedRow"===i?.type){const r=e.current.caches.pinnedRows,o=r.idLookup[l];o&&(r.idLookup[l]=(0,n.A)({},o,t))}else o.push(t)})),o}const v=(e,t,r)=>"number"==typeof e&&e>0?e:t,x=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),y=["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n")},43026:(e,t,r)=>{"use strict";r.d(t,{J6:()=>s,RJ:()=>a,XU:()=>c,oF:()=>u});var n=r(33642),o=r(4394),l=r(59458);const i=e=>e.sorting,a=(0,n.Mz)(i,(e=>e.sortedRows)),s=(0,n.S)(a,o.rI,o.qj,((e,t,r)=>e.reduce(((e,n)=>{const o=t[n];o&&e.push({id:n,model:o});const i=r[n];return i&&(0,l.nF)(i)&&e.push({id:n,model:{[l.gb]:n}}),e}),[]))),c=(0,n.Mz)(i,(e=>e.sortModel)),u=(0,n.S)(c,(e=>e.reduce(((t,r,n)=>(t[r.field]={sortDirection:r.sort,sortIndex:e.length>1?n+1:void 0},t)),{})));(0,n.S)(a,(e=>e.reduce(((e,t,r)=>(e[t]=r,e)),Object.create(null))))},14298:(e,t,r)=>{"use strict";r.d(t,{Az:()=>u,Hm:()=>a,Lj:()=>i,Ou:()=>d,VE:()=>p,Zx:()=>o,ps:()=>l});var n=r(6614);const o=(e,t)=>t&&e.length>1?[e[0]]:e,l=(e,t)=>r=>(0,n.A)({},r,{sorting:(0,n.A)({},r.sorting,{sortModel:o(e,t)})}),i=(e,t)=>{const r=e.map((e=>((e,t)=>{const r=t.current.getColumn(e.field);if(!r||null===e.sort)return null;let n;return n=r.getSortComparator?r.getSortComparator(e.sort):"desc"===e.sort?(...e)=>-1*r.sortComparator(...e):r.sortComparator,n?{getSortCellParams:e=>({id:e,field:r.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,r.field),api:t.current}),comparator:n}:null})(e,t))).filter((e=>!!e));return 0===r.length?null:e=>e.map((e=>({node:e,params:r.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return n=e,o=t,r.reduce(((e,t,r)=>{if(0!==e)return e;const l=n.params[r],i=o.params[r];return t.comparator(l.value,i.value,l,i)}),0);var n,o})).map((e=>e.node.id))},a=(e,t)=>{const r=e.indexOf(t);return t&&-1!==r&&r+1!==e.length?e[r+1]:e[0]},s=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,c=new Intl.Collator,u=(e,t)=>{const r=s(e,t);return null!==r?r:"string"==typeof e?c.compare(e.toString(),t.toString()):e-t},d=(e,t)=>{const r=s(e,t);return null!==r?r:Number(e)-Number(t)},p=(e,t)=>{const r=s(e,t);return null!==r?r:e>t?1:e<t?-1:0}},35281:(e,t,r)=>{"use strict";r.d(t,{Al:()=>a,EG:()=>c,_U:()=>l,dU:()=>o,m5:()=>i,nZ:()=>s});var n=r(33642);const o=e=>e.virtualization,l=(0,n.Mz)(o,(e=>e.enabled)),i=(0,n.Mz)(o,(e=>e.enabledForColumns)),a=(0,n.Mz)(o,(e=>e.enabledForRows)),s=(0,n.Mz)(o,(e=>e.renderContext)),c=(0,n.S)((e=>e.virtualization.renderContext.firstColumnIndex),(e=>e.virtualization.renderContext.lastColumnIndex),((e,t)=>({firstColumnIndex:e,lastColumnIndex:t})))},72988:(e,t,r)=>{"use strict";r.d(t,{Yr:()=>K,j$:()=>B});var n=r(6614),o=r(7552),l=r(28485),i=r(89887),a=r(83933),s=r(53131),c=r(85659),u=r(23456),d=r(79222),p=r(71115),f=r(64565),g=r(12274),m=r(61959),h=r(80163),b=r(29641),w=r(4394),C=r(23392),v=r(89148);const x=("undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"empty").includes("firefox");var y=r(58766),A=r(82188),R=r(69639),S=r(60378),I=r(35281),M=r(55730),k=r(92442),P=r(46593),E=r(59458),F=r(47198),H=r(33642),O=r(3247),T=r(24940);const D=(0,F.Mz)(O.MO,I.nZ,T.f3,h.iv,w.rI,((e,t,r,n,o)=>{if(!e)return!1;const l=o[e.id];if(!l)return!1;const i=r.rowToIndexMap.get(l),a=n.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex((t=>t.field===e.field));return!(void 0!==i&&-1!==a&&i>=t.firstRowIndex&&i<=t.lastRowIndex)})),z=(0,H.S)(D,h.iv,T.f3,w.rI,O.MO,((e,t,r,o,l)=>{if(!e)return null;const i=o[l.id];if(!i)return null;const a=r.rowToIndexMap.get(i);if(void 0===a)return null;const s=t.findIndex((e=>e.field===l.field));return-1===s?null:(0,n.A)({},l,{rowIndex:a,columnIndex:s})}));var L=r(26630),$=r(69500),N=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(N||{});const j={top:0,left:0},V=Object.freeze(new Map),B=()=>{const e=(0,p.E)(),t=(0,f.A)(),{unstable_listView:r}=t,S=(0,g.Nc)(e,(()=>r?[(0,P.W)(e.current.state)]:(0,h.iv)(e))),k=(0,g.Nc)(e,I.Al)&&!L.K,F=(0,g.Nc)(e,I.m5)&&!L.K,H=(0,g.Nc)(e,b.z),O=H.viewportOuterSize,T=(0,g.Nc)(e,w.$2),D=(0,g.Nc)(e,h.Q1),B=r?{left:[],right:[]}:D,W=T.bottom.length>0,[U,q]=o.useState(V),Z=(0,u.I)(),Q=(0,g.Nc)(e,R.E),J=(0,g.Nc)(e,A.Zk),ee=(0,C.h)(e,t),te=e.current.mainElementRef,re=e.current.virtualScrollerRef,ne=e.current.virtualScrollbarVerticalRef,oe=e.current.virtualScrollbarHorizontalRef,le=H.contentSize.height,ie=H.columnsTotalWidth,ae=(0,g.Nc)(e,h.kw),se=o.useRef(!1),ce=o.useRef(null),ue=o.useCallback((t=>{if(te.current=t,!t)return;let r=Y(t.getBoundingClientRect());if((!ce.current||r.width!==ce.current.width&&r.height!==ce.current.height)&&(ce.current=r,e.current.publishEvent("resize",r)),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver((t=>{const n=t[0];if(!n)return;const o=Y(n.contentRect);o.width===r.width&&o.height===r.height||(e.current.publishEvent("resize",o),r=o)}));return n.observe(t),d.A>=19?()=>{te.current=null,n.disconnect()}:void 0}),[e,te]),de=o.useRef(t.initialState?.scroll??j),pe=o.useRef(!1),fe=o.useRef(j),ge=o.useRef(M.$A),me=(0,g.Nc)(e,I.nZ),he=(0,g.Nc)(e,z),be=(0,c.A)(),we=o.useRef(void 0),Ce=(0,s.A)((()=>((e,t,r,n)=>({direction:N.NONE,buffer:X(e,N.NONE,t,r,n,300)}))(Z,t.rowBufferPx,t.columnBufferPx,15*H.rowHeight))).current,ve=o.useCallback((t=>{if(r=t,o=e.current.state.virtualization.renderContext,r===o||r.firstRowIndex===o.firstRowIndex&&r.lastRowIndex===o.lastRowIndex&&r.firstColumnIndex===o.firstColumnIndex&&r.lastColumnIndex===o.lastColumnIndex)return;var r,o;const l=t.firstRowIndex!==ge.current.firstRowIndex||t.lastRowIndex!==ge.current.lastRowIndex;e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{renderContext:t})}))),H.isReady&&l&&(ge.current=t,e.current.publishEvent("renderedRowsIntervalChange",t)),fe.current=de.current}),[e,H.isReady]),xe=(0,i.A)((()=>{const r=re.current;if(!r)return;const n={top:r.scrollTop,left:r.scrollLeft},o=n.left-de.current.left,i=n.top-de.current.top,a=0!==o||0!==i;de.current=n;const s=a?function(e,t){return 0===e&&0===t?N.NONE:Math.abs(t)>=Math.abs(e)?t>0?N.DOWN:N.UP:e>0?N.RIGHT:N.LEFT}(o,i):N.NONE,c=Math.abs(de.current.top-fe.current.top),u=Math.abs(de.current.left-fe.current.left),d=c>=H.rowHeight||u>=50,p=Ce.direction!==s;if(!d&&!p)return me;if(p)switch(s){case N.NONE:case N.LEFT:case N.RIGHT:we.current=void 0;break;default:we.current=me}Ce.direction=s,Ce.buffer=X(Z,s,t.rowBufferPx,t.columnBufferPx,15*H.rowHeight,300);const f=_(G(e,t,k,F),de.current,Ce);return l.flushSync((()=>{ve(f)})),be.start(1e3,xe),f})),ye=()=>{const r=_(G(e,t,k,F),de.current,Ce);we.current=void 0,ve(r)},Ae=(0,i.A)((t=>{if(pe.current)return void(pe.current=!1);const{scrollTop:r,scrollLeft:n}=t.currentTarget;if(r<0)return;if(!Z&&n<0)return;if(Z&&n>0)return;const o=xe();e.current.publishEvent("scrollPositionChange",{top:r,left:n,renderContext:o})})),Re=(0,i.A)((t=>{e.current.publishEvent("virtualScrollerWheel",{},t)})),Se=(0,i.A)((t=>{e.current.publishEvent("virtualScrollerTouchMove",{},t)})),Ie=O.width&&ie>O.width,Me=o.useMemo((()=>({overflowX:!Ie||r?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0})),[Ie,t.autoHeight,r]),ke=o.useMemo((()=>{const e={width:Ie?ie:"auto",flexBasis:le,flexShrink:0};return 0===e.flexBasis&&(e.flexBasis=E.SN),e}),[ie,le,Ie]),Pe=o.useCallback((t=>{t&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:ie,contentHeight:le})}),[e,ie,le]);return(0,a.A)((()=>{se.current&&e.current.updateRenderContext?.()}),[e,F,k]),(0,a.A)((()=>{r&&(re.current.scrollLeft=0)}),[r,re]),(0,m.A)(0!==O.width,(()=>{const r=_(G(e,t,k,F),de.current,Ce);if(ve(r),e.current.publishEvent("scrollPositionChange",{top:de.current.top,left:de.current.left,renderContext:r}),se.current=!0,t.initialState?.scroll&&re.current){const r=re.current,{top:n,left:o}=t.initialState.scroll,l={top:!(n>0),left:!(o>0)};if(!l.left&&ie&&(r.scrollLeft=o,pe.current=!0,l.left=!0),!l.top&&le&&(r.scrollTop=n,pe.current=!0,l.top=!0),!l.top||!l.left){const t=e.current.subscribeEvent("virtualScrollerContentSizeChange",(e=>{!l.left&&e.columnsTotalWidth&&(r.scrollLeft=o,pe.current=!0,l.left=!0),!l.top&&e.contentHeight&&(r.scrollTop=n,pe.current=!0,l.top=!0),l.left&&l.top&&t()}));return t}}})),e.current.register("private",{updateRenderContext:ye}),(0,v.cz)(e,"columnsChange",ye),(0,v.cz)(e,"filteredRowsSet",ye),(0,v.cz)(e,"rowExpansionChange",ye),{renderContext:me,setPanels:q,getRows:(r={})=>{if(!r.rows&&!ee.range)return[];const o=r.renderContext??me,l=!W&&void 0===r.position||W&&"bottom"===r.position,i=void 0!==r.position;let a;switch(r.position){case"top":a=0;break;case"bottom":a=T.top.length+ee.rows.length;break;case void 0:a=T.top.length}const s=r.rows??ee.rows,c=o.firstRowIndex,u=Math.min(o.lastRowIndex,s.length),d=r.rows?(0,y.y1)(0,r.rows.length):(0,y.y1)(c,u);let p=-1;!i&&he&&(he.rowIndex<c&&(d.unshift(he.rowIndex),p=he.rowIndex),he.rowIndex>u&&(d.push(he.rowIndex),p=he.rowIndex));const f=[],g=t.slotProps?.row,m=(0,h.Sw)(e);return d.forEach((c=>{const{id:u,model:d}=s[c],h=(ee?.range?.firstRowIndex||0)+a+c;if(ae){const t=B.left.length,r=S.length-B.right.length;e.current.calculateColSpan({rowId:u,minFirstColumn:t,maxLastColumn:r,columns:S}),B.left.length>0&&e.current.calculateColSpan({rowId:u,minFirstColumn:0,maxLastColumn:B.left.length,columns:S}),B.right.length>0&&e.current.calculateColSpan({rowId:u,minFirstColumn:S.length-B.right.length,maxLastColumn:S.length,columns:S})}const b=e.current.rowHasAutoHeight(u)?"auto":e.current.unstable_getRowHeight(u);let w;w=null!=J[u]&&e.current.isRowSelectable(u);let C=!1;void 0===r.position&&(C=0===c);let v=!1;const x=c===s.length-1;l&&(i?v=x:c===ee.rows.length-1&&(v=!0));let y=o;!i&&we.current&&c>=we.current.firstRowIndex&&c<we.current.lastRowIndex&&(y=we.current);const A=c===p,R=he?.rowIndex===h,I=K(m,y,B.left.length),M=x&&"top"===r.position,k=y.firstColumnIndex,P=y.lastColumnIndex;if(f.push((0,$.jsx)(t.slots.row,(0,n.A)({row:d,rowId:u,index:h,selected:w,offsetTop:r.rows?void 0:Q.positions[c],offsetLeft:I,columnsTotalWidth:H.columnsTotalWidth,rowHeight:b,pinnedColumns:B,visibleColumns:S,firstColumnIndex:k,lastColumnIndex:P,focusedColumnIndex:R?he.columnIndex:void 0,isFirstVisible:C,isLastVisible:v,isNotVisible:A,showBottomBorder:M,scrollbarWidth:H.hasScrollY?H.scrollbarSize:0,gridHasFiller:H.columnsTotalWidth<H.viewportOuterSize.width},g),u)),A)return;const E=U.get(u);E&&f.push(E),void 0===r.position&&x&&f.push(e.current.getInfiniteLoadingTriggerElement?.({lastRowId:u}))})),f},getContainerProps:()=>({ref:ue}),getScrollerProps:()=>({ref:re,onScroll:Ae,onWheel:Re,onTouchMove:Se,style:Me,role:"presentation",tabIndex:x?-1:void 0}),getContentProps:()=>({style:ke,role:"presentation",ref:Pe}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:ne,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:oe,role:"presentation"})}};function G(e,t,r,n){const o=(0,b.z)(e.current.state),l=(0,C.e)(e,t),i=t.unstable_listView?[(0,P.W)(e.current.state)]:(0,h.iv)(e),a=(0,k.Lq)(e),s=e.current.state.rows.dataRowIds.at(-1),c=i.at(-1);return{enabledForRows:r,enabledForColumns:n,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:void 0!==s?e.current.unstable_getRowHeight(s):0,lastColumnWidth:c?.computedWidth??0,rowsMeta:(0,R.E)(e.current.state),columnPositions:(0,h.Sw)(e),rows:l.rows,range:l.range,pinnedColumns:(0,h.Q1)(e),visibleColumns:i,hiddenCellsOriginMap:a,listView:t.unstable_listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function _(e,t,r){const n={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:l}=t,i=Math.abs(l)+e.leftPinnedWidth;if(e.enabledForRows){let t=Math.min(W(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const r=e.hiddenCellsOriginMap[t];if(r){const e=Math.min(...Object.values(r));t=Math.min(t,e)}const l=e.autoHeight?t+e.rows.length:W(e,o+e.viewportInnerHeight);n.firstRowIndex=t,n.lastRowIndex=l}if(e.enabledForColumns){let t=0,o=e.columnPositions.length,l=!1;const[a,s]=q({firstIndex:n.firstRowIndex,lastIndex:n.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:r.buffer.rowBefore,bufferAfter:r.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let t=a;t<s&&!l;t+=1){const r=e.rows[t];l=e.apiRef.current.rowHasAutoHeight(r.id)}l&&!e.virtualizeColumnsWithAutoRowHeight||(t=U(i,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),o=U(i+e.viewportInnerWidth,e.columnPositions)),n.firstColumnIndex=t,n.lastColumnIndex=o}const a=function(e,t,r){const[n,o]=q({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:r.buffer.rowBefore,bufferAfter:r.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[l,i]=q({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:r.buffer.columnBefore,bufferAfter:r.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth});return{firstRowIndex:n,lastRowIndex:o,firstColumnIndex:(0,S.A8)({firstColumnToRender:l,apiRef:e.apiRef,firstRowToRender:n,lastRowToRender:o,visibleRows:e.rows}),lastColumnIndex:i}}(e,n,r);return a}function W(e,t,r){const n=e.apiRef.current.getLastMeasuredRowIndex();let o=n===1/0;e.range?.lastRowIndex&&!o&&(o=n>=e.range.lastRowIndex);const l=(0,y.qE)(n-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[l]>=t?U(t,e.rowsMeta.positions,r):function(e,t,r,n){let o=1;for(;r<t.length&&Math.abs(t[r])<e;)r+=o,o*=2;return U(e,t,n,Math.floor(r/2),Math.min(r,t.length))}(t,e.rowsMeta.positions,l,r)}function U(e,t,r=void 0,n=0,o=t.length){if(t.length<=0)return-1;if(n>=o)return n;const l=n+Math.floor((o-n)/2),i=t[l];let a;return a=r?.atStart?e-((l===t.length-1?r.lastPosition:t[l+1])-i)<i:e<=i,a?U(e,t,r,n,l):U(e,t,r,l+1,o)}function q({firstIndex:e,lastIndex:t,bufferBefore:r,bufferAfter:n,minFirstIndex:o,maxLastIndex:l,positions:i,lastSize:a}){const s=i[e]-r,c=i[t]+n,u=U(s,i,{atStart:!0,lastPosition:i[i.length-1]+a}),d=U(c,i);return[(0,y.qE)(u,o,l),(0,y.qE)(d,o,l)]}function K(e,t,r){const n=(e[t.firstColumnIndex]??0)-(e[r]??0);return Math.abs(n)}function X(e,t,r,n,o,l){if(e)switch(t){case N.LEFT:t=N.RIGHT;break;case N.RIGHT:t=N.LEFT}switch(t){case N.NONE:return{rowAfter:r,rowBefore:r,columnAfter:n,columnBefore:n};case N.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:l};case N.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:l,columnBefore:0};case N.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case N.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function Y(e){return{width:Math.round(10*e.width)/10,height:Math.round(10*e.height)/10}}},55730:(e,t,r)=>{"use strict";r.d(t,{$A:()=>i,lA:()=>s,nu:()=>a});var n=r(6614),o=r(7552),l=r(99270);const i={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},a=(e,t)=>{const{disableVirtualization:r,autoHeight:o}=t,l={enabled:!r,enabledForColumns:!r,enabledForRows:!r&&!o,renderContext:i};return(0,n.A)({},e,{virtualization:l})};function s(e,t){const r=r=>{e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabled:r,enabledForColumns:r,enabledForRows:r&&!t.autoHeight})})))},i={unstable_setVirtualization:r,unstable_setColumnVirtualization:t=>{e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabledForColumns:t})})))}};(0,l.P)(e,i,"public"),o.useEffect((()=>{r(!t.disableVirtualization)}),[t.disableVirtualization,t.autoHeight])}},20849:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var n=r(7552);const o=e=>{const t=n.useRef(!0);t.current&&(t.current=!1,e())}},89148:(e,t,r)=>{"use strict";r.d(t,{HV:()=>i,s9:()=>s,_7:()=>u,cz:()=>d,re:()=>f});var n=r(7552);class o{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,r){this.timeouts||(this.timeouts=new Map);const n=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(r.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(r.cleanupToken,n)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class l{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,r){this.registry.register(e,t,r)}unregister(e){this.registry.unregister(e)}reset(){}}var i=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(i||{});class a{}function s(e){let t=0;return function(r,i,s,c){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new l:new o);const[u]=n.useState(new a),d=n.useRef(null),p=n.useRef(null);p.current=s;const f=n.useRef(null);if(!d.current&&p.current){const n=(e,t,r)=>{t.defaultMuiPrevented||p.current?.(e,t,r)};d.current=r.current.subscribeEvent(i,n,c),t+=1,f.current={cleanupToken:t},e.registry.register(u,(()=>{d.current?.(),d.current=null,f.current=null}),f.current)}else!p.current&&d.current&&(d.current(),d.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));n.useEffect((()=>{if(!d.current&&p.current){const e=(e,t,r)=>{t.defaultMuiPrevented||p.current?.(e,t,r)};d.current=r.current.subscribeEvent(i,e,c)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{d.current?.(),d.current=null}}),[r,i,c])}}const c={registry:null},u=()=>{c.registry?.reset(),c.registry=null},d=s(c),p={isFirst:!0};function f(e,t,r){d(e,t,r,p)}},99270:(e,t,r)=>{"use strict";r.d(t,{P:()=>l});var n=r(7552),o=r(83933);function l(e,t,r){const l=n.useRef(!0);(0,o.A)((()=>{l.current=!1,e.current.register(r,t)}),[e,r,t]),l.current&&e.current.register(r,t)}},68337:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(7552),o=r(35825);const l=()=>{const e=n.useContext(o.S);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid configuration 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("\n"));return e}},65111:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});var n=r(7552);function o(e,t){const r=n.useRef(null);if(r.current)return r.current;const o=e.current.getLogger(t);return r.current=o,o}},47434:(e,t,r)=>{"use strict";r.d(t,{h:()=>i});var n=r(7552),o=r(58766),l=r(65111);const i=(e,t,r,i,a)=>{const s=(0,l.q)(e,"useNativeEventListener"),[c,u]=n.useState(!1),d=n.useRef(i),p=(0,o.Tn)(t)?t():t?.current??null,f=n.useCallback((e=>d.current&&d.current(e)),[]);n.useEffect((()=>{d.current=i}),[i]),n.useEffect((()=>{if(p&&r&&!c){s.debug(`Binding native ${r} event`),p.addEventListener(r,f,a),u(!0);const t=()=>{s.debug(`Clearing native ${r} event`),p.removeEventListener(r,f,a)};e.current.subscribeEvent("unmount",t)}}),[p,f,r,c,s,a,e])}},71115:(e,t,r)=>{"use strict";r.d(t,{E:()=>l,z:()=>o});var n=r(7552);const o=n.createContext(void 0);function l(){const e=n.useContext(o);if(void 0===e)throw new Error(["MUI X: 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("\n"));return e}},12274:(e,t,r)=>{"use strict";r.d(t,{JR:()=>m,Nc:()=>g,TJ:()=>d});var n=r(7552),o=r(92197),l=r(53131),i=r(8161);function a(e){return e.acceptsApiRef}function s(e,t){return a(t)?t(e):t(e.current.state)}function c(e,t,r,n){return a(t)?t(e,r):t(e.current.state,n)}const u=Object.is,d=o.v,p=(e,t)=>e===t||e.length===t.length&&e.every(((e,r)=>e===t[r])),f=()=>({state:null,equals:null,selector:null,args:null}),g=(e,t,r=u)=>{const o=(0,l.A)(f),a=null!==o.current.selector,[c,d]=n.useState(a?null:s(e,t));return o.current.state=c,o.current.equals=r,o.current.selector=t,(0,i.A)((()=>e.current.store.subscribe((()=>{const t=s(e,o.current.selector);o.current.equals(o.current.state,t)||(o.current.state=t,d(t))})))),c},m=(e,t,r=void 0,o=u)=>{const a=(0,l.A)(f),s=null!==a.current.selector,[g,m]=n.useState(s?null:c(e,t,r,e.current.instanceId));a.current.state=g,a.current.equals=o,a.current.selector=t;const h=a.current.args;if(a.current.args=r,s&&!((e,t)=>{let r=Object.is;return t instanceof Array?r=p:t instanceof Object&&(r=d),r(e,t)})(h,r)){const t=c(e,a.current.selector,a.current.args,e.current.instanceId);a.current.equals(a.current.state,t)||(a.current.state=t,m(t))}return(0,i.A)((()=>e.current.store.subscribe((()=>{const t=c(e,a.current.selector,a.current.args,e.current.instanceId);a.current.equals(a.current.state,t)||(a.current.state=t,m(t))})))),g}},23392:(e,t,r)=>{"use strict";r.d(t,{e:()=>l,h:()=>i});var n=r(24940),o=r(12274);const l=(e,t)=>(0,n.f3)(e),i=(e,t)=>(0,o.Nc)(e,n.f3)},61959:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7552),o=r(83933);const l=()=>{},i=(e,t)=>{const r=n.useRef(!1);(0,o.A)((()=>r.current||!e?l:(r.current=!0,t())),[r.current||e])}},89270:(e,t,r)=>{"use strict";r.d(t,{Ux:()=>l,it:()=>n,mH:()=>o,yL:()=>i});const n="__tree_data_group__",o="__row_group_by_columns_group__",l="__detail_panel_toggle__";let i=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({})},31922:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(88697);function o(e,t,r,o){const l=(0,n.p)(r,t);return l&&void 0!==o?(e[l]=o,e):e}},98571:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(89270);const o=(e,t,r,o,l,i)=>{let a;switch(e){case n.yL.LEFT:a=o[r];break;case n.yL.RIGHT:a=l-o[r]-t+i;break;default:a=void 0}return a}},80170:(e,t,r)=>{"use strict";r.d(t,{$2:()=>p,A_:()=>C,Bn:()=>b,Cf:()=>R,Gf:()=>g,Kw:()=>d,T5:()=>s,U_:()=>S,Ui:()=>c,aC:()=>H,ay:()=>l,c8:()=>M,dc:()=>h,e2:()=>A,fX:()=>a,gC:()=>f,hR:()=>E,j8:()=>k,jS:()=>P,jt:()=>x,jy:()=>F,lj:()=>u,qb:()=>I,r$:()=>m,v$:()=>w,xC:()=>i,yd:()=>v,yk:()=>y}),r(7552);var n=r(74893),o=r(69500);const l=(0,n.A)((0,o.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),i=(0,n.A)((0,o.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),a=(0,n.A)((0,o.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),s=(0,n.A)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),c=(0,n.A)((0,o.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),u=(0,n.A)((0,o.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"),d=(0,n.A)((0,o.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"),p=(0,n.A)((0,o.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),f=(0,n.A)((0,o.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"),g=(0,n.A)((0,o.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"),m=(0,n.A)((0,o.jsx)("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),h=(0,n.A)((0,o.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),b=(0,n.A)((0,o.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),w=(0,n.A)((0,o.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),C=(0,n.A)((0,o.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"),v=(0,n.A)((0,o.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"),x=(0,n.A)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),y=(0,n.A)((0,o.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),A=(0,n.A)((0,o.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"),R=(0,n.A)((0,o.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"),S=(0,n.A)((0,o.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"),I=(0,n.A)((0,o.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),M=(0,n.A)((0,o.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"),k=(0,n.A)((0,o.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"),P=(0,n.A)((0,o.jsx)("g",{children:(0,o.jsx)("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),E=(0,n.A)((0,o.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"),F=(0,n.A)((0,o.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"),H=(0,n.A)((0,o.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")},20581:(e,t,r)=>{"use strict";function n(e){return void 0!==e.field}r.d(t,{x:()=>n})},87795:(e,t,r)=>{"use strict";r.d(t,{RL:()=>n,V_:()=>l,bs:()=>o});var n=function(e){return e.Cell="cell",e.Row="row",e}(n||{}),o=function(e){return e.Edit="edit",e.View="view",e}(o||{}),l=function(e){return e.Edit="edit",e.View="view",e}(l||{})},93527:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});var n=function(e){return e.And="and",e.Or="or",e}(n||{})},88729:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o,a:()=>n});var n=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(n||{}),o=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(o||{})},89037:(e,t,r)=>{"use strict";r.d(t,{a:()=>n,q:()=>o});var n=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(n||{}),o=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(o||{})},4780:(e,t,r)=>{"use strict";r.d(t,{L:()=>o,o:()=>l});var n=r(89270);const o=(e,t,r,o,l)=>{const i=t===r-1;return!(e!==n.yL.LEFT||!i)||!!o&&(e===n.yL.LEFT||(e===n.yL.RIGHT?!i:!i||l))},l=(e,t)=>e===n.yL.RIGHT&&0===t},33642:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>s,Or:()=>c,S:()=>u});var n=r(47198);const o=(0,n.Ad)({memoize:n.i5,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),l=new WeakMap;function i(e){return"current"in e&&"instanceId"in e.current}const a={id:"default"},s=(e,t,r,n,o,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let c;if(e&&t&&r&&n&&o&&l)c=(s,c)=>{const u=i(s),d=c??(u?s.current.instanceId:a),p=u?s.current.state:s,f=e(p,d),g=t(p,d),m=r(p,d),h=n(p,d),b=o(p,d);return l(f,g,m,h,b)};else if(e&&t&&r&&n&&o)c=(l,s)=>{const c=i(l),u=s??(c?l.current.instanceId:a),d=c?l.current.state:l,p=e(d,u),f=t(d,u),g=r(d,u),m=n(d,u);return o(p,f,g,m)};else if(e&&t&&r&&n)c=(o,l)=>{const s=i(o),c=l??(s?o.current.instanceId:a),u=s?o.current.state:o,d=e(u,c),p=t(u,c),f=r(u,c);return n(d,p,f)};else if(e&&t&&r)c=(n,o)=>{const l=i(n),s=o??(l?n.current.instanceId:a),c=l?n.current.state:n,u=e(c,s),d=t(c,s);return r(u,d)};else{if(!e||!t)throw new Error("Missing arguments");c=(r,n)=>{const o=i(r),l=n??(o?r.current.instanceId:a),s=o?r.current.state:r,c=e(s,l);return t(c)}}return c.acceptsApiRef=!0,c},c=(e,t,r,n,o,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let c;if(e&&t&&r&&n&&o&&l)c=(s,c,u)=>{const d=i(s),p=u??(d?s.current.instanceId:a),f=d?s.current.state:s,g=e(f,c,p),m=t(f,c,p),h=r(f,c,p),b=n(f,c,p),w=o(f,c,p);return l(g,m,h,b,w,c)};else if(e&&t&&r&&n&&o)c=(l,s,c)=>{const u=i(l),d=c??(u?l.current.instanceId:a),p=u?l.current.state:l,f=e(p,s,d),g=t(p,s,d),m=r(p,s,d),h=n(p,s,d);return o(f,g,m,h,s)};else if(e&&t&&r&&n)c=(o,l,s)=>{const c=i(o),u=s??(c?o.current.instanceId:a),d=c?o.current.state:o,p=e(d,l,u),f=t(d,l,u),g=r(d,l,u);return n(p,f,g,l)};else if(e&&t&&r)c=(n,o,l)=>{const s=i(n),c=l??(s?n.current.instanceId:a),u=s?n.current.state:n,d=e(u,o,c),p=t(u,o,c);return r(d,p,o)};else{if(!e||!t)throw new Error("Missing arguments");c=(r,n,o)=>{const l=i(r),s=o??(l?r.current.instanceId:a),c=l?r.current.state:r,u=e(c,n,s);return t(u,n)}}return c.acceptsApiRef=!0,c},u=(...e)=>{const t=(t,r)=>{const n=i(t),s=n?t.current.instanceId:r??a,c=n?t.current.state:t,u=l.get(s),d=u??new Map,p=d?.get(e);if(d&&p)return p(c,s);const f=o(...e);return u||l.set(s,d),d.set(e,f),f(c,s)};return t.acceptsApiRef=!0,t}},10930:(e,t,r)=>{"use strict";r.d(t,{$c:()=>A,AP:()=>i,Bx:()=>f,Dq:()=>h,Dy:()=>o,Rb:()=>m,Rv:()=>g,TA:()=>d,Tq:()=>p,YI:()=>b,Zw:()=>y,dL:()=>R,fl:()=>l,iF:()=>C,j4:()=>S,mH:()=>v,u:()=>a,v_:()=>c,xE:()=>u});var n=r(76959);function o(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function l(e,t){return e.closest(`.${t}`)}function i(e){return e.replace(/["\\]/g,"\\$&")}function a(e,t){return e.querySelector(`[role="columnheader"][data-field="${i(t)}"]`)}function s(e){return`.${n.x.row}[data-id="${i(String(e))}"]`}function c(e,t){return e.querySelector(s(t))}function u(e,{id:t,field:r}){const o=`${s(t)} .${n.x.cell}[data-field="${i(r)}"]`;return e.querySelector(o)}function d(e){return 1===e.target.nodeType&&!e.currentTarget.contains(e.target)}function p(e){return e.getAttribute("data-field")}function f(e,t){return e.querySelector(`[data-field="${i(t)}"]`)}function g(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function m(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${i(t)}-|"]`)??[])}function h(e,t){if(!l(e,n.x.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return t.virtualScrollerRef?.current?(I(t).forEach((e=>{const r=e.getAttribute("data-id");if(!r)return;let n=o;const l=t.unstable_getCellColSpanInfo(r,o);l&&l.spannedByColSpan&&(n=l.leftVisibleCellIndex);const a=e.querySelector(`[data-colindex="${n}"]`);a&&i.push(a)})),i):[]}function b(e,t){return e.rootElementRef.current.querySelector(`.${n.x[t]}`)}const w=({api:e,colIndex:t,position:r,filterFn:o})=>{if(null===t)return[];const l=[];return I(e).forEach((e=>{e.getAttribute("data-id")&&e.querySelectorAll(`.${n.x["left"===r?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach((e=>{const t=M(e);null!==t&&o(t)&&l.push(e)}))})),l};function C(e,t,r){const n=M(t);return w({api:e,colIndex:n,position:r?"right":"left",filterFn:e=>r?e<n:e>n})}function v(e,t,r){const n=M(t);return w({api:e,colIndex:n,position:r?"left":"right",filterFn:e=>r?e>n:e<n})}const x=({api:e,colIndex:t,position:r,filterFn:o})=>{if(!e.columnHeadersContainerRef?.current)return[];if(null===t)return[];const l=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${n.x["left"===r?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach((e=>{const t=M(e);null!==t&&o(t,e)&&l.push(e)})),l};function y(e,t,r){const n=M(t);return x({api:e,position:r?"right":"left",colIndex:n,filterFn:e=>r?e<n:e>n})}function A(e,t,r){const o=M(t);return x({api:e,position:r?"left":"right",colIndex:o,filterFn:(e,t)=>!t.classList.contains(n.x["columnHeader--last"])&&(r?e>o:e<o)})}function R(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${i(t)}"][role="columnheader"]`)}function S(e,t){const r=e.virtualScrollerRef.current;return Array.from(r.querySelectorAll(`:scope > div > div > div > [data-field="${i(t)}"][role="gridcell"]`))}function I(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${n.x.row}`)}function M(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}},26630:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});const n="undefined"!=typeof window&&/jsdom|HappyDOM/.test(window.navigator.userAgent)},67129:(e,t,r)=>{"use strict";function n(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}r.d(t,{HF:()=>i,IA:()=>a,TW:()=>n,_n:()=>s,kx:()=>l,q9:()=>o});const o=e=>0===e.indexOf("Arrow")||0===e.indexOf("Page")||" "===e||"Home"===e||"End"===e,l=e=>!!e.key,i=e=>"Tab"===e||"Escape"===e;function a(e){return(e.ctrlKey||e.metaKey)&&"V"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}function s(e){return(e.ctrlKey||e.metaKey)&&"C"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}},88697:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(89270);const o=(e,t)=>{if(e)if(t){if(e===n.yL.LEFT)return"right";if(e===n.yL.RIGHT)return"left"}else{if(e===n.yL.LEFT)return"left";if(e===n.yL.RIGHT)return"right"}}},58766:(e,t,r)=>{"use strict";function n(e){return"number"==typeof e&&!Number.isNaN(e)}function o(e){return"function"==typeof e}function l(e){return"object"==typeof e&&null!==e}function i(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function a(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}r.d(t,{E1:()=>d,Et:()=>n,Go:()=>p,Gv:()=>l,Hv:()=>u,I9:()=>f,Nt:()=>a,Tn:()=>o,qE:()=>s,s3:()=>i,y1:()=>c});const s=(e,t,r)=>Math.max(t,Math.min(r,e));function c(e,t){return Array.from({length:t-e}).map(((t,r)=>e+r))}function u(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n+=1)if(!u(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let e=0;e<r.length;e+=1)if(!t.has(r[e][0]))return!1;for(let e=0;e<r.length;e+=1){const n=r[e];if(!u(n[1],t.get(n[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let e=0;e<r.length;e+=1)if(!t.has(r[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n+=1)if(e[n]!==t[n])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 r=Object.keys(e),n=r.length;if(n!==Object.keys(t).length)return!1;for(let e=0;e<n;e+=1)if(!Object.prototype.hasOwnProperty.call(t,r[e]))return!1;for(let o=0;o<n;o+=1){const n=r[o];if(!u(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function d(e){const t=(r=e,()=>{let e=r+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296});var r;return(e,r)=>e+(r-e)*t()}function p(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}function f(e){}},76117:(e,t,r)=>{"use strict";r.d(t,{n:()=>l});var n=r(7552),o=r(92197);function l(e){return n.memo(e,o.v)}},92197:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});const n=Object.is;function o(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let r=0,o=0;for(const o in e){if(r+=1,!n(e[o],t[o]))return!1;if(!(o in t))return!1}for(const e in t)o+=1;return r===o}},96746:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var n=r(7552);const o=parseInt(n.version,10),l=e=>{if(o>=19){const t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return n.forwardRef(e)}},79222:(e,t,r)=>{"use strict";var n=r(64939).default;t.A=void 0;var o=n(r(7552));t.A=parseInt(o.version,10)},12218:(e,t,r)=>{"use strict";var n=r(905);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,l,i){if(i!==n){var a=new Error("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");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return r.PropTypes=r,r}},15152:(e,t,r)=>{e.exports=r(12218)()},905:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64939:(e,t,r)=>{var n=r(78604).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var l={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(l,a,s):l[a]=e[a]}return l.default=e,r&&r.set(e,l),l},e.exports.__esModule=!0,e.exports.default=e.exports},47198:(e,t,r)=>{"use strict";r.d(t,{Ad:()=>c,Mz:()=>u,i5:()=>i});var n=Symbol("NOT_FOUND");var o=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var l=(e,t)=>e===t;function i(e,t){const r="object"==typeof t?t:{equalityCheck:t},{equalityCheck:o=l,maxSize:i=1,resultEqualityCheck:a}=r,s=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;const{length:n}=t;for(let o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}}(o);let c=0;const u=i<=1?function(e){let t;return{get:r=>t&&e(t.key,r)?t.value:n,put(e,r){t={key:e,value:r}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(s):function(e,t){let r=[];function o(e){const o=r.findIndex((r=>t(e,r.key)));if(o>-1){const e=r[o];return o>0&&(r.splice(o,1),r.unshift(e)),e.value}return n}return{get:o,put:function(t,l){o(t)===n&&(r.unshift({key:t,value:l}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(i,s);function d(){let t=u.get(arguments);if(t===n){if(t=e.apply(null,arguments),c++,a){const e=u.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==c&&c--)}u.put(arguments,t)}return t}return d.clearCache=()=>{u.clear(),d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d}var a="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function s(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let o,l=0;function i(){let t=r;const{length:i}=arguments;for(let e=0,r=i;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t={s:0,v:void 0,o:null,p:null},e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t={s:0,v:void 0,o:null,p:null},e.set(r,t)):t=n}}const s=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),l++,n){const e=o?.deref?.()??o;null!=e&&n(e,c)&&(c=e,0!==l&&l--),o="object"==typeof c&&null!==c||"function"==typeof c?new a(c):c}return s.s=1,s.v=c,c}return i.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},i.resetResultsCount()},i.resultsCount=()=>l,i.resetResultsCount=()=>{l=0},i}function c(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,l=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const c={...r,...i},{memoize:u,memoizeOptions:d=[],argsMemoize:p=s,argsMemoizeOptions:f=[],devModeChecks:g={}}=c,m=o(d),h=o(f),b=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const r=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),w=u((function(){return n++,a.apply(null,arguments)}),...m),C=p((function(){l++;const e=function(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}(b,arguments);return t=w.apply(null,e),t}),...h);return Object.assign(C,{resultFunc:a,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:u,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var u=c(s),d=Object.assign(((e,t=u)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map((t=>e[t])),((...e)=>e.reduce(((e,t,n)=>(e[r[n]]=t,e)),{})))}),{withTypes:()=>d})}}]);
//# sourceMappingURL=8237.83fcb939.chunk.js.map