Mercurial > repos > fubar > jbrowse2
comparison x/static/js/5676.818528e8.chunk.js @ 125:49f3d3878413 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author | fubar |
---|---|
date | Sat, 05 Oct 2024 23:58:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
124:137e08517410 | 125:49f3d3878413 |
---|---|
1 (globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5676],{84421:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(7552),o=r(93878),l=r(70799),i=r(72639),a=r(93876),s=r(64761),c=r(51148),u=r(60129),d=r(58520),p=r(4785),f=r(15622),g=r(50077),m=r(69500);const h=s.i7` | |
2 0% { | |
3 left: -35%; | |
4 right: 100%; | |
5 } | |
6 | |
7 60% { | |
8 left: 100%; | |
9 right: -90%; | |
10 } | |
11 | |
12 100% { | |
13 left: 100%; | |
14 right: -90%; | |
15 } | |
16 `,b="string"!=typeof h?s.AH` | |
17 animation: ${h} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; | |
18 `:null,w=s.i7` | |
19 0% { | |
20 left: -200%; | |
21 right: 100%; | |
22 } | |
23 | |
24 60% { | |
25 left: 107%; | |
26 right: -8%; | |
27 } | |
28 | |
29 100% { | |
30 left: 107%; | |
31 right: -8%; | |
32 } | |
33 `,C="string"!=typeof w?s.AH` | |
34 animation: ${w} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; | |
35 `:null,v=s.i7` | |
36 0% { | |
37 opacity: 1; | |
38 background-position: 0 -23px; | |
39 } | |
40 | |
41 60% { | |
42 opacity: 0; | |
43 background-position: 0 -23px; | |
44 } | |
45 | |
46 100% { | |
47 opacity: 1; | |
48 background-position: -200px -23px; | |
49 } | |
50 `,x="string"!=typeof v?s.AH` | |
51 animation: ${v} 3s infinite linear; | |
52 `: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[`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[`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:{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",`barColor${(0,f.A)(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","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","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(72639),s=r(64761),c=r(51148),u=r(60129),d=r(4785),p=r(76819),f=r(69500);const g=s.i7` | |
53 0% { | |
54 opacity: 1; | |
55 } | |
56 | |
57 50% { | |
58 opacity: 0.4; | |
59 } | |
60 | |
61 100% { | |
62 opacity: 1; | |
63 } | |
64 `,m=s.i7` | |
65 0% { | |
66 transform: translateX(-100%); | |
67 } | |
68 | |
69 50% { | |
70 /* +0.5s of delay between each loop */ | |
71 transform: translateX(100%); | |
72 } | |
73 | |
74 100% { | |
75 transform: translateX(100%); | |
76 } | |
77 `,h="string"!=typeof g?s.AH` | |
78 animation: ${g} 2s ease-in-out 0.5s infinite; | |
79 `:null,b="string"!=typeof m?s.AH` | |
80 &::after { | |
81 animation: ${m} 2s linear 0.5s infinite; | |
82 } | |
83 `: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"])},85676:(e,t,r)=>{"use strict";r.d(t,{z:()=>Xt});var n=r(6614),o=r(7552),l=r(15152),i=r.n(l),a=r(48335),s=r(1074),c=r(71173),u=r(98114),d=r(80163),p=r(12274),f=r(64565),g=r(8751),m=r(4394),h=r(71115),b=r(41222),w=r(2220),C=r(82188),v=r(61311),x=r(93876),y=r(58766),A=r(99270);const R=(0,y.s3)()&&null!=window.localStorage.getItem("DEBUG"),S=()=>{},I={debug:S,info:S,warn:S,error:S},M=["debug","info","warn","error"];function k(e,t,r=console){const n=M.indexOf(t);if(-1===n)throw new Error(`MUI X: Log level ${t} not recognized.`);return M.reduce(((t,o,l)=>(t[o]=l>=n?(...t)=>{const[n,...l]=t;r[o](`MUI X: ${e} - ${n}`,...l)}:S,t)),{})}class P{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 E{static create(e){return new E(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 F=r(89148);const H=Symbol("mui.api_private");let O=0;var T=r(83673);function D(e){return D="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},D(e)}function z(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}const L="none",$={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},j=(e,t)=>{const r=function(e,t){const r=o.useRef(),n=o.useRef();n.current||(n.current=function(e){const t=e.current?.[H];if(t)return t;const r={},n={state:r,store:E.create(r),instanceId:{id:O}};return O+=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 P}),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},[H]: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===F.HV.DataGridPro||t.signature===F.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,A.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);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:r,virtualScrollerRef:n,columnHeadersContainerRef:l})})(r),(e=>{const t=(0,x.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=>R?k(e,"debug",t.logger):t.logLevel?k(e,t.logLevel.toString(),t.logger):I),[t.logLevel,t.logger]);(0,A.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,y.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,A.P)(e,s,"public"),(0,A.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,T.A)(n,[r].map(z));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,A.P)(e,l,"private"),(0,A.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,T.A)(e,[t].map(z));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($[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),l):l}),[e]),applyStrategyProcessor:o.useCallback(((t,n)=>{const o=e.current.getActiveStrategy($[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]??L}),[]),setStrategyAvailability:o.useCallback(((r,n,o)=>{t.current.set(n,{group:r,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e])};(0,A.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},N=(e,t,r)=>{const n=o.useRef(!1);n.current||(t.current.state=e(t.current.state,r,t),n.current=!0)};var V=r(47434),B=r(3247),G=r(92179);function W(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 _=(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 W(o,r)};class U{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}}function q(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 K=r(65111),X=r(83182);const Y=e=>(0,n.A)({},e,{columnMenu:{open:!1}});var Z=r(20849);const Q=(e,t,r)=>{const n=o.useRef(),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,Z.g)((()=>{i()}));const a=o.useRef(!0);o.useEffect((()=>(a.current?a.current=!1:i(),()=>{n.current&&(n.current(),n.current=null)})),[i])},J=(e,t,r)=>{const n=o.useRef(),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,Z.g)((()=>{i()}));const a=o.useRef(!0);o.useEffect((()=>(a.current?a.current=!1:i(),()=>{n.current&&(n.current(),n.current=null)})),[i])};var ee=r(36155),te=r(60378),re=r(48534),ne=r(69500);const oe=(e,t,r)=>{const o=(0,te.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??ee.u})};function le(e){return t=>(0,n.A)({},t,{columns:e})}var ie=r(52535),ae=r(33658);const se=(e,t)=>(0,n.A)({},e,{density:t.initialState?.density??t.density??"standard"}),ce=({apiRef:e,options:t})=>{const r=(0,d.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,d.iv)(e)).filter((e=>!e.disableExport))},ue=({apiRef:e})=>{const t=(0,w.qA)(e),r=(0,m.qj)(e),n=e.current.getSelectedRows(),o=t.filter((e=>"footer"!==r[e].type)),l=(0,m.$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 de=r(38175);const pe=(e,t)=>{const r=(0,K.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 U({csvOptions:n});return t.forEach((t=>{const i=r(e,t.field);l.addValue(_(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!==G.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 U({csvOptions:n,sanitizeCellValue:W});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 U({csvOptions:n,sanitizeCellValue:W});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:ce({apiRef:e,options:t}),rowIds:(t.getRowsToExport??ue)({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,A.P)(e,s,"public");const c=o.useCallback(((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:(0,ne.jsx)(de.jX,{options:t.csvOptions}),componentName:"csvExport"}]),[]);Q(e,"exportMenu",c)};var fe=r(75041),ge=r(76959),me=r(69639),he=r(59458),be=r(24940),we=r(92268);const Ce=(e,t,r)=>{let o=e.paginationModel;const l=e.rowCount,i=r?.pageSize??o.pageSize,a=r?.page??o.page,s=(0,we.$_)(l,i,a);!r||r?.page===o.page&&r?.pageSize===o.pageSize||(o=r);const c=(0,we.m6)(o.page,s);return c!==o.page&&(o=(0,n.A)({},o,{page:c})),(0,we.RW)(o.pageSize,t),o};var ve=r(47198),xe=r(40053),ye=r(49891),Ae=r(15060);const Re=(e,t,r,n)=>{const l=o.useCallback((()=>{e.current.registerStrategyProcessor(t,r,n)}),[e,n,r,t]);(0,Z.g)((()=>{l()}));const i=o.useRef(!0);o.useEffect((()=>{i.current?i.current=!1:l()}),[l])};var Se=r(43905);const Ie=(e,t,r)=>{const o=t.filterModel??t.initialState?.filter?.filterModel??(0,Ae.T)();return(0,n.A)({},e,{filter:{filterModel:(0,Se.L5)(o,t.disableMultipleColumnsFiltering,r),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Me=e=>e.filteredRowsLookup;function ke(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Pe(){return(0,ve.i5)(Object.values)}var Ee=r(67129),Fe=r(23392);const He=e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});var Oe=r(10176),Te=r(59340),De=r(10365),ze=r(10930),Le=r(92442);const $e=({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},je=({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},Ne=(e,t)=>{const r=(0,n.A)({},(0,we.N0)(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);(0,we.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:{paginationModel:r,rowCount:o,meta:l}})};var Ve=r(38577);const Be=(e,t)=>(0,n.A)({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}});var Ge=r(62185),We=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""}},Ue=["id","field"],qe=["id","field"];var Ke=r(89037),Xe=r(65325);const Ye=["id"],Ze=["id"],Qe=e=>(0,n.A)({},e,{editRows:{}});var Je=r(87795),et=r(43026);const tt=(e,t,r)=>{const o=!!t.unstable_dataSource;return r.current.caches.rows=(0,he.Z)({rows:o?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,n.A)({},e,{rows:(0,he.TW)({apiRef:r,rowCountProp:t.rowCount,loadingProp:!!o||t.loading,previousTree:null,previousTreeDepths:null})})},rt=e=>"full"===e.updates.type?(e=>{const t={[he.OL]:(0,n.A)({},(0,he.Mk)(),{children:e})};for(let r=0;r<e.length;r+=1){const n=e[r];t[n]={id:n,depth:0,parent:he.OL,type:"leaf",groupingKey:null}}return{groupingName:L,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:he.OL,type:"leaf",groupingKey:null}}const l=r[he.OL];let i=[...l.children,...t.insert];return Object.values(o).length&&(i=i.filter((e=>!o[e]))),r[he.OL]=(0,n.A)({},l,{children:i}),{groupingName:L,tree:r,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions});var nt=r(15665);const ot=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],lt=(e,t)=>(0,n.A)({},e,{rowSelection:t.rowSelection?ot(t.rowSelectionModel)??[]:[]});var it=r(88519);var at=r(14298);const st=(e,t)=>{const r=t.sortModel??t.initialState?.sorting?.sortModel??[];return(0,n.A)({},e,{sorting:{sortModel:(0,at.Zx)(r,t.disableMultipleColumnsSorting),sortedRows:[]}})};var ct=r(29641);function ut(e){const{clientHeight:t,scrollTop:r,offsetHeight:n,offsetTop:o}=e,l=o+n;return n>t?o:l-t>r?l-t:o<r?o:void 0}var dt=r(35281);const pt={width:0,height:0},ft={isReady:!1,root:pt,viewportOuterSize:pt,viewportInnerSize:pt,contentSize:pt,minimumSize:pt,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},gt=e=>{const t=ft;return(0,n.A)({},e,{dimensions:t})};function mt(e,t){return e.width===t.width&&e.height===t.height}var ht=r(33693),bt=r(35378);const wt=e=>(0,n.A)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Ct=(e,t,r)=>"number"==typeof e&&e>0?e:t;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}["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\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,y.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,T.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,d.JR)(r),l=(0,d.TI)(r),i=Mt(t.columnGroupingModel??[]),a=Rt(t.columnGroupingModel??[]),s=St(o,a,r.current.state.pinnedColumns??{}),c=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:c}})};var Pt=r(55730),Et=r(32125),Ft=r(58329);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,x.I)(),l=(0,K.q)(e,"useGridColumnResize"),i=(0,ye.A)(zt).current,a=o.useRef(),s=o.useRef(),c=(0,Je.A)(),u=o.useRef(),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,a=i.initialTotalWidth+o;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${a}px`),i.colDef.computedWidth=t,i.colDef.width=t,i.colDef.flex=0,i.columnHeaderElement.style.width=`${t}px`;const s=i.headerFilterElement;s&&(s.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 c=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);c===ee.K.LEFT&&($t(i.fillerLeft,"width",n),i.leftPinnedCellsAfter.forEach((e=>{$t(e,"left",n)})),i.leftPinnedHeadersAfter.forEach((e=>{$t(e,"left",n)}))),c===ee.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,d.em)(e.current.state);i.groupHeaderElements.forEach((e=>{const r=e,n=`${(0,ze.Rv)(e).reduce(((e,r)=>!1!==t.columnVisibilityModel[r]?e+t.lookup[r].computedWidth:e),0)}px`;r.style.width=n}))}c.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,ze.Bx)(e.current.columnHeadersContainerRef.current,t.field);const c=l.querySelector(`.${ge.x.headerFilterRow} [data-field="${(0,ze.AP)(t.field)}"]`);c&&(i.headerFilterElement=c),i.groupHeaderElements=(0,ze.Rb)(e.current.columnHeadersContainerRef?.current,t.field),i.cellElements=(0,ze.Dq)(i.columnHeaderElement,e.current),i.fillerLeft=(0,ze.YI)(e.current,r?"filler--pinnedRight":"filler--pinnedLeft"),i.fillerRight=(0,ze.YI)(e.current,r?"filler--pinnedLeft":"filler--pinnedRight");const u=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);i.leftPinnedCellsAfter=u!==ee.K.LEFT?[]:(0,ze.iF)(e.current,i.columnHeaderElement,r),i.rightPinnedCellsBefore=u!==ee.K.RIGHT?[]:(0,ze.mH)(e.current,i.columnHeaderElement,r),i.leftPinnedHeadersAfter=u!==ee.K.LEFT?[]:(0,ze.Zw)(e.current,i.columnHeaderElement,r),i.rightPinnedHeadersBefore=u!==ee.K.RIGHT?[]:(0,ze.$c)(e.current,i.columnHeaderElement,r),s.current=function(e,t){const r=e.classList.contains(ge.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,ie.A)(g),b=(0,ie.A)((t=>{if(0===t.buttons)return void h(t);let r=Ot(a.current,t.clientX,i.columnHeaderElement.getBoundingClientRect(),s.current);r=(0,y.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,ie.A)((e=>{Ht(e,u.current)&&g(e)})),C=(0,ie.A)((t=>{const r=Ht(t,u.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,y.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)})),v=(0,ie.A)((t=>{const r=(0,ze.fl)(t.target,ge.x["columnSeparator--resizable"]);if(!r)return;const n=t.changedTouches[0];null!=n&&(u.current=n.identifier);const o=(0,ze.fl)(t.target,ge.x.columnHeader),i=(0,ze.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,fe.A)(t.currentTarget);s.addEventListener("touchmove",C),s.addEventListener("touchend",w)})),R=o.useCallback((()=>{const t=(0,fe.A)(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",b),t.removeEventListener("mouseup",h),t.removeEventListener("touchmove",C),t.removeEventListener("touchend",w),setTimeout((()=>{t.removeEventListener("click",Tt,!0)}),100),i.columnHeaderElement&&(i.columnHeaderElement.style.pointerEvents="unset")}),[e,i,b,h,C,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,ie.A)((({colDef:t},r)=>{if(0!==r.button)return;if(!r.currentTarget.classList.contains(ge.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,fe.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,ie.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,{columns:[l.field]}))})),P=function(e){const t=o.useRef(),r=()=>(0,dt.m5)(e),n=(0,p.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),E=o.useRef(!1),H=o.useCallback((async t=>{const r=e.current.rootElementRef?.current;if(!r)return;if(E.current)return;E.current=!0;const o=(0,d.em)(e.current.state),l=(0,n.A)({},Et.N,t,{columns:t?.columns??o.orderedFields});l.columns=l.columns.filter((e=>!1!==o.columnVisibilityModel[e]));const i=l.columns.map((t=>e.current.state.columns.lookup[t]));try{e.current.unstable_setColumnVirtualization(!1),await P();const t=function(e,t,r){const n={},o=e.current.rootElementRef.current;return o.classList.add(ge.x.autosizing),r.forEach((r=>{const o=(0,ze.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,ze.dL)(e.current,r.field);if(t){const e=t.querySelector(`.${ge.x.columnHeaderTitle}`),r=t.querySelector(`.${ge.x.columnHeaderTitleContainerContent}`),n=t.querySelector(`.${ge.x.iconButtonContainer}`),o=t.querySelector(`.${ge.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,y.qE)(u,s,c)})),o.classList.remove(ge.x.autosizing),n}(e,l,i),r=i.map((e=>(0,n.A)({},e,{width:t[e.field],computedWidth:t[e.field]})));if(l.expand){const n=o.orderedFields.map((e=>o.lookup[e])).filter((e=>!1!==o.columnVisibilityModel[e.field])).reduce(((e,r)=>e+(t[r.field]??r.computedWidth??r.width)),0),l=e.current.getRootDimensions().viewportInnerSize.width-n;if(l>0){const e=l/(r.length||1);r.forEach((t=>{t.width+=e,t.computedWidth+=e}))}}e.current.updateColumns(r),r.forEach(((t,r)=>{if(t.width!==i[r].width){const r=t.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t.field),colDef:t,width:r})}}))}finally{e.current.unstable_setColumnVirtualization(!0),E.current=!1}}),[e,P]);o.useEffect((()=>R),[R]),(0,Ft.A)((()=>{t.autosizeOnMount&&Promise.resolve().then((()=>{e.current.autosizeColumns(t.autosizeOptions)}))})),(0,V.h)(e,(()=>e.current.columnHeadersContainerRef?.current),"touchstart",v,{passive:!0}),(0,A.P)(e,{autosizeColumns:H},"public"),(0,F.cz)(e,"columnResizeStop",I),(0,F.cz)(e,"columnResizeStart",S),(0,F.cz)(e,"columnSeparatorMouseDown",M),(0,F.cz)(e,"columnSeparatorDoubleClick",k),(0,F.re)(e,"columnResize",t.onColumnResize),(0,F.re)(e,"columnWidthChange",t.onColumnWidthChange)};function $t(e,t,r){e&&(e.style[t]=`${parseInt(e.style[t],10)+r}px`)}function jt(e,t){return e.firstRowIndex!==t.firstRowIndex||e.lastRowIndex!==t.lastRowIndex}const Nt=(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(["__check__","__reorder__","__detail_panel_toggle__"]),Wt=(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=Nt(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&&Nt(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]&&Nt(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}},_t=(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(19,Math.max(t.length-1,0))},c=t.map((e=>({id:e,model:l[e]}))),u=o.map((e=>i[e])),{spannedCells:d,hiddenCells:p,hiddenCellOriginMap:f}=Wt(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})},Ut=(e,t)=>{const r=j(e,t);return((e,t)=>{const r=(e=>{const{classes:t}=e;return o.useMemo((()=>(0,it.A)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ge.B,t)),[t])})({classes:t.classes}),l=o.useCallback((o=>{const l=(0,n.A)({},G.f,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=null!=o.lookup[G.t];return i&&!a?(o.lookup[G.t]=l,o.orderedFields=[G.t,...o.orderedFields]):!i&&a?(delete o.lookup[G.t],o.orderedFields=o.orderedFields.filter((e=>e!==G.t))):i&&a&&(o.lookup[G.t]=(0,n.A)({},l,o.lookup[G.t])),o}),[e,r,t.checkboxSelection]);Q(e,"hydrateColumns",l)})(r,t),(e=>{Re(e,L,"rowTreeCreation",rt)})(r),N(gt,r,t),N(lt,r,t),N(oe,r,t),N(tt,r,t),N(Qe,r,t),N(He,r,t),N(st,r,t),N(Be,r,t),N(Ie,r,t),N(_t,r,t),N(se,r,t),N(Dt,r,t),N(Ne,r,t),N(wt,r,t),N(Y,r,t),N(kt,r,t),N(Pt.nu,r,t),((e,t)=>{const r=(0,K.q)(e,"useGridKeyboardNavigation"),n=(0,Fe.h)(e,t).rows,l=(0,x.I)(),i=o.useMemo((()=>function(e,t){const r=(0,m.$2)(e)||{};return[...r.top||[],...t,...r.bottom||[]]}(e,n)),[e,n]),a="DataGrid"!==t.signature&&t.headerFilters,s=o.useCallback(((t,n,o="left",l="up")=>{const i=(0,w.em)(e),a=e.current.unstable_getCellColSpanInfo(n,t);a&&a.spannedByColSpan&&("left"===o?t=a.leftVisibleCellIndex:"right"===o&&(t=a.rightVisibleCellIndex));const s=(0,d.TI)(e)[t],c=function(e,t,r,n){const o=(0,Le.xX)(e);if(!o[t]?.[r])return t;const l=(0,w.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,s,l),u=i.findIndex((e=>e.id===c));r.debug(`Navigating to cell row ${u}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:u}),e.current.setCellFocus(c,s)}),[e,r]),c=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]),u=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]),p=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]),f=o.useCallback((e=>i[e]?.id),[i]),h=o.useCallback(((t,r)=>{const n=r.currentTarget.querySelector(`.${ge.x.columnHeaderTitleContainerContent}`);if(n&&n.contains(r.target)&&t.field!==G.f.field)return;const o=e.current.getViewportPageSize(),m=t.field?e.current.getColumnIndex(t.field):0,h=i.length>0?0:null,b=i.length-1,w=(0,d.iv)(e).length-1,C=(0,g.aC)(e);let v=!0;switch(r.key){case"ArrowDown":null!==h&&(a?u(m,r):s(m,f(h)));break;case"ArrowRight":{const e=je({currentColIndex:m,firstColIndex:0,lastColIndex:w,isRtl:l});null!==e&&c(e,r);break}case"ArrowLeft":{const e=$e({currentColIndex:m,firstColIndex:0,lastColIndex:w,isRtl:l});null!==e&&c(e,r);break}case"ArrowUp":C>0&&p(m,C-1,r);break;case"PageDown":null!==h&&null!==b&&s(m,f(Math.min(h+o,b)));break;case"Home":c(0,r);break;case"End":c(w,r);break;case"Enter":(r.ctrlKey||r.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:v=!1}v&&r.preventDefault()}),[e,i.length,a,u,s,f,l,c,p]),b=o.useCallback(((t,r)=>{const n=(0,De.B$)(e)===t.field,o=(0,De.K8)(e)===t.field;if(n||o||!(0,Ee.q9)(r.key))return;const a=e.current.getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,g=i.length-1,m=(0,d.iv)(e).length-1;let h=!0;switch(r.key){case"ArrowDown":{const e=f(0);null!=e&&s(p,e);break}case"ArrowRight":{const e=je({currentColIndex:p,firstColIndex:0,lastColIndex:m,isRtl:l});null!==e&&u(e,r);break}case"ArrowLeft":{const n=$e({currentColIndex:p,firstColIndex:0,lastColIndex:m,isRtl:l});null!==n?u(n,r):e.current.setColumnHeaderFilterFocus(t.field,r);break}case"ArrowUp":c(p,r);break;case"PageDown":null!==g&&s(p,f(Math.min(0+a,g)));break;case"Home":u(0,r);break;case"End":u(m,r);break;case" ":break;default:h=!1}h&&r.preventDefault()}),[e,i.length,u,l,c,s,f]),C=o.useCallback(((t,r)=>{const n=(0,B.WO)(e);if(null===n)return;const{field:o,depth:l}=n,{fields:a,depth:u,maxDepth:g}=t,m=e.current.getViewportPageSize(),h=e.current.getColumnIndex(o),b=o?e.current.getColumnIndex(o):0,w=i.length-1,C=(0,d.iv)(e).length-1;let v=!0;switch(r.key){case"ArrowDown":u===g-1?c(h,r):p(h,l+1,r);break;case"ArrowUp":u>0&&p(h,l-1,r);break;case"ArrowRight":{const e=a.length-a.indexOf(o)-1;h+e+1<=C&&p(h+e+1,l,r);break}case"ArrowLeft":{const e=a.indexOf(o);h-e-1>=0&&p(h-e-1,l,r);break}case"PageDown":null!==w&&s(b,f(Math.min(0+m,w)));break;case"Home":p(0,l,r);break;case"End":p(C,l,r);break;case" ":break;default:v=!1}v&&r.preventDefault()}),[e,i.length,c,p,s,f]),v=o.useCallback(((t,r)=>{if((0,ze.TA)(r))return;const n=e.current.getCellParams(t.id,t.field);if(n.cellMode===Oe.bs.Edit||!(0,Ee.q9)(r.key))return;if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:r,cell:n}))return;if(0===i.length)return;const o=e.current.getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,g=i.findIndex((e=>e.id===t.id)),m=i.length-1,h=(0,d.iv)(e).length-1;let b=!0;switch(r.key){case"ArrowDown":g<m&&s(p,f(g+1),l?"right":"left","down");break;case"ArrowUp":g>0?s(p,f(g-1)):a?u(p,r):c(p,r);break;case"ArrowRight":{const e=je({currentColIndex:p,firstColIndex:0,lastColIndex:h,isRtl:l});null!==e&&s(e,f(g),l?"left":"right");break}case"ArrowLeft":{const e=$e({currentColIndex:p,firstColIndex:0,lastColIndex:h,isRtl:l});null!==e&&s(e,f(g),l?"right":"left");break}case"Tab":r.shiftKey&&p>0?s(p-1,f(g),"left"):!r.shiftKey&&p<h&&s(p+1,f(g),"right");break;case" ":{if(t.field===Te.U)break;const e=t.colDef;if(e&&"__tree_data_group__"===e.field)break;!r.shiftKey&&g<m&&s(p,f(Math.min(g+o,m)));break}case"PageDown":g<m&&s(p,f(Math.min(g+o,m)));break;case"PageUp":{const e=Math.max(g-o,0);e!==g&&e>=0?s(p,f(e)):c(p,r);break}case"Home":r.ctrlKey||r.metaKey||r.shiftKey?s(0,f(0)):s(0,f(g));break;case"End":r.ctrlKey||r.metaKey||r.shiftKey?s(h,f(m)):s(h,f(g));break;default:b=!1}b&&r.preventDefault()}),[e,i,l,s,f,a,u,c]),y=o.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);Q(e,"canStartEditing",y),(0,F.cz)(e,"columnHeaderKeyDown",h),(0,F.cz)(e,"headerFilterKeyDown",b),(0,F.cz)(e,"columnGroupHeaderKeyDown",C),(0,F.cz)(e,"cellKeyDown",v)})(r,t),((e,t)=>{const r=(0,K.q)(e,"useGridSelection"),l=e=>(...r)=>{t.rowSelection&&e(...r)},i=o.useMemo((()=>ot(t.rowSelectionModel,(0,C.Bi)(e.current.state))),[e,t.rowSelectionModel]),a=o.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:C.Bi,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=(0,b.c)(t),p=(0,Fe.h)(e,t),f=o.useCallback((t=>{let r=t;const n=a.current??t,o=e.current.isRowSelected(t);if(o){const t=(0,w.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]}a.current=t,e.current.selectRowRange({startId:n,endId:r},!o)}),[e]),g=o.useCallback((o=>{if(t.signature===F.HV.DataGrid&&!d&&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,C.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,d]),h=o.useCallback((t=>(0,C.Bi)(e.current.state).includes(t)),[e]),v=o.useCallback((r=>{if(!1===t.rowSelection)return!1;if(u&&!u(e.current.getRowParams(r)))return!1;const n=e.current.getRowNode(r);return"footer"!==n?.type&&"pinnedRow"!==n?.type}),[e,t.rowSelection,u]),x=o.useCallback((()=>(0,C.gt)(e)),[e]),y=o.useCallback(((t,n=!0,o=!1)=>{if(e.current.isRowSelectable(t))if(a.current=t,o)r.debug(`Setting selection for row ${t}`),e.current.setRowSelectionModel(n?[t]:[]);else{r.debug(`Toggling selection for row ${t}`);const o=(0,C.Bi)(e.current.state).filter((e=>e!==t));n&&o.push(t),(o.length<2||d)&&e.current.setRowSelectionModel(o)}}),[e,r,d]),R=o.useCallback(((t,o=!0,l=!1)=>{r.debug("Setting selection for several rows");const i=t.filter((t=>e.current.isRowSelectable(t)));let a;if(l)a=o?i:[];else{const t=(0,n.A)({},(0,C.Zk)(e));i.forEach((e=>{o?t[e]=e:delete t[e]})),a=Object.values(t)}(a.length<2||d)&&e.current.setRowSelectionModel(a)}),[e,r,d]),S=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,w.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]),I={selectRow:y,setRowSelectionModel:g,getSelectedRows:x,isRowSelected:h,isRowSelectable:v},M={selectRows:R,selectRowRange:S};(0,A.P)(e,I,"public"),(0,A.P)(e,M,t.signature===F.HV.DataGrid?"private":"public");const k=o.useCallback((()=>{if(t.keepNonExistentRowsSelected)return;const r=(0,C.Bi)(e.current.state),o=(0,m.rI)(e),l=(0,n.A)({},(0,C.Zk)(e));let i=!1;r.forEach((e=>{o[e]||(delete l[e],i=!0)})),i&&e.current.setRowSelectionModel(Object.values(l))}),[e,t.keepNonExistentRowsSelected]),P=o.useCallback(((t,r)=>{const n=r.metaKey||r.ctrlKey,o=!s&&!n&&!(0,Ee.kx)(r),l=!d||o,i=e.current.isRowSelected(t);l?e.current.selectRow(t,!!o||!i,!0):e.current.selectRow(t,!i,!1)}),[e,d,s]),E=o.useCallback(((t,r)=>{if(c)return;const n=r.target.closest(`.${ge.x.cell}`)?.getAttribute("data-field");if(n!==G.f.field&&n!==Te.U){if(n){const t=e.current.getColumn(n);if(t?.type===Xe.D)return}"pinnedRow"!==e.current.getRowNode(t.id).type&&(r.shiftKey&&d?f(t.id):P(t.id,r))}}),[c,d,e,f,P]),H=o.useCallback(((e,t)=>{d&&t.shiftKey&&window.getSelection()?.removeAllRanges()}),[d]),O=o.useCallback(((t,r)=>{d&&r.nativeEvent.shiftKey?f(t.id):e.current.selectRow(t.id,t.value,!d)}),[e,f,d]),T=o.useCallback((r=>{const n=t.pagination&&t.checkboxSelectionVisibleOnly&&"client"===t.paginationMode?(0,be.ee)(e):(0,w.ux)(e),o=(0,w.ZI)(e);e.current.selectRows(n,r.value,o?.items.length>0)}),[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),D=o.useCallback(((t,r)=>{if(e.current.getCellMode(t.id,t.field)!==Oe.bs.Edit&&!(0,ze.TA)(r)){if((0,Ee.q9)(r.key)&&r.shiftKey){const n=(0,B.MO)(e);if(n&&n.id!==t.id){r.preventDefault();const o=e.current.isRowSelected(n.id);if(!d)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=p.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 P(t.id,r);"a"===r.key&&(r.ctrlKey||r.metaKey)&&(r.preventDefault(),R(e.current.getAllRowIds(),!0))}}),[e,P,R,p.rows,d]);(0,F.cz)(e,"sortedRowsSet",l(k)),(0,F.cz)(e,"rowClick",l(E)),(0,F.cz)(e,"rowSelectionCheckboxChange",l(O)),(0,F.cz)(e,"headerSelectionCheckboxChange",T),(0,F.cz)(e,"cellMouseDown",l(H)),(0,F.cz)(e,"cellKeyDown",l(D)),o.useEffect((()=>{void 0!==i&&e.current.setRowSelectionModel(i)}),[e,i,t.rowSelection]),o.useEffect((()=>{t.rowSelection||e.current.setRowSelectionModel([])}),[e,t.rowSelection]);const z=null!=i;o.useEffect((()=>{if(z||!t.rowSelection)return;const r=(0,C.Bi)(e.current.state);if(v){const t=r.filter((e=>v(e)));t.length<r.length&&e.current.setRowSelectionModel(t)}}),[e,v,z,t.rowSelection]),o.useEffect((()=>{if(!t.rowSelection||z)return;const r=(0,C.Bi)(e.current.state);!d&&r.length>1&&e.current.setRowSelectionModel([])}),[e,d,s,z,t.rowSelection])})(r,t),function(e,t){const r=(0,K.q)(e,"useGridColumns"),l=o.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:d.FY,changeEvent:"columnVisibilityModelChange"});const i=o.useCallback((t=>{r.debug("Updating columns state."),e.current.setState(le(t)),e.current.publishEvent("columnsChange",t.orderedFields),e.current.updateRenderContext?.(),e.current.forceUpdate()}),[r,e]),a=o.useCallback((t=>(0,d.gv)(e)[t]),[e]),s=o.useCallback((()=>(0,d.OV)(e)),[e]),c=o.useCallback((()=>(0,d.iv)(e)),[e]),u=o.useCallback(((t,r=!0)=>(r?(0,d.iv)(e):(0,d.OV)(e)).findIndex((e=>e.field===t))),[e]),p=o.useCallback((t=>{const r=u(t);return(0,d.Sw)(e)[r]}),[e,u]),f=o.useCallback((t=>{(0,d.FY)(e)!==t&&(e.current.setState((r=>(0,n.A)({},r,{columns:(0,te.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,te.Pd)({apiRef:e,columnsToUpsert:t,initialState:void 0,keepOnlyColumnsToUpsert:!1});i(r)}),[e,i]),m=o.useCallback(((t,r)=>{const o=(0,d.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,d.JR)(e).findIndex((e=>e===t))),[e]),b=o.useCallback(((t,o)=>{const l=(0,d.JR)(e),a=h(t);if(a===o)return;r.debug(`Moving column ${t} to index ${o}`);const s=[...l],c=s.splice(a,1)[0];s.splice(o,0,c),i((0,n.A)({},(0,d.em)(e.current.state),{orderedFields:s}));const u={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:a};e.current.publishEvent("columnIndexChange",u)}),[e,r,i,h]),w=o.useCallback(((t,o)=>{r.debug(`Updating column ${t} width to ${o}`);const l=(0,d.em)(e.current.state),a=l.lookup[t],s=(0,n.A)({},a,{width:o,hasBeenResized:!0});i((0,te.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:u,getColumnPosition:p,getVisibleColumns:c,getColumnIndexRelativeToVisibleColumns:h,updateColumns:g,setColumnVisibilityModel:f,setColumnVisibility:m,setColumnWidth:w},v={setColumnIndex:b};(0,A.P)(e,C,"public"),(0,A.P)(e,v,t.signature===F.HV.DataGrid?"private":"public");const x=o.useCallback(((r,o)=>{const l={},i=(0,d.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,d.JR)(e);const a=(0,d.OV)(e),s={};return a.forEach((e=>{if(e.hasBeenResized){const t={};te.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]),y=o.useCallback(((t,r)=>{const n=r.stateToRestore.columns?.columnVisibilityModel,o=r.stateToRestore.columns;if(null==n&&null==o)return t;const l=(0,te.Pd)({apiRef:e,columnsToUpsert:[],initialState:o,columnVisibilityModel:n,keepOnlyColumnsToUpsert:!1});return e.current.setState(le(l)),null!=o&&e.current.publishEvent("columnsChange",l.orderedFields),t}),[e]),R=o.useCallback(((e,r)=>{if(r===re.y.columns){const e=t.slots.columnsPanel;return(0,ne.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]);Q(e,"columnMenu",S),Q(e,"exportState",x),Q(e,"restoreState",y),Q(e,"preferencePanel",R);const I=o.useRef(null);(0,F.cz)(e,"viewportInnerSizeChange",(t=>{I.current!==t.width&&(I.current=t.width,i((0,te.LN)((0,d.em)(e.current.state),e.current.getRootDimensions())))}));const M=o.useCallback((()=>{r.info("Columns pipe processing have changed, regenerating the columns");const t=(0,te.Pd)({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});i(t)}),[e,r,i]);J(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,te.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,K.q)(e,"useGridRows"),l=(0,Fe.h)(e,t),i=o.useRef(Date.now()),a=o.useRef(t.rowCount),s=(0,Je.A)(),c=o.useCallback((t=>{const r=(0,m.rI)(e)[t];if(r)return r;const n=e.current.getRowNode(t);return n&&(0,he.nF)(n)?{[he.gb]:t}:null}),[e]),u=t.getRowId,d=o.useCallback((e=>he.gb in e?e[he.gb]:u?u(e):e.id),[u]),p=o.useMemo((()=>l.rows.reduce(((e,{id:t},r)=>(e[t]=r,e)),{})),[l.rows]),f=o.useCallback((({cache:r,throttle:o})=>{const l=()=>{i.current=Date.now(),e.current.setState((r=>(0,n.A)({},r,{rows:(0,he.TW)({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:(0,m.qj)(e),previousTreeDepths:(0,m.Mz)(e),previousGroupsToFetch:(0,m.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]),g=o.useCallback((n=>{r.debug(`Updating all rows, new length ${n.length}`);const o=(0,he.Z)({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),l=e.current.caches.rows;o.rowsBeforePartialUpdates=l.rowsBeforePartialUpdates,f({cache:o,throttle:!0})}),[r,t.getRowId,t.loading,t.rowCount,f,e]),h=o.useCallback((r=>{if(t.signature===F.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,he.ro)(e,r,t.getRowId),o=(0,he.Ze)({updates:n,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:o,throttle:!0})}),[t.signature,t.getRowId,f,e]),b=o.useCallback(((r,n)=>{const o=(0,he.ro)(e,r,t.getRowId),l=(0,he.Ze)({updates:o,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:n??[]});f({cache:l,throttle:!1})}),[t.getRowId,f,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,m.A6)(e),r=(0,m.rI)(e);return new Map(t.map((e=>[e,r[e]??{}])))}),[e]),x=o.useCallback((()=>(0,m.H0)(e)),[e]),y=o.useCallback((()=>(0,m.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,m.qj)(e)[t]??null),[e]),M=o.useCallback((({skipAutoGeneratedRows:t=!0,groupId:r,applySorting:n,applyFiltering:o})=>{const l=(0,m.qj)(e);let i;if(n){const n=l[r];if(!n)return[];const o=(0,et.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,he.nF)(l[r])||i.push(r)}}else i=(0,he.l_)(l,r,t);if(o){const t=(0,w.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!==he.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,m.qj)(l,e.current.instanceId)[he.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,{[he.OL]:(0,n.A)({},i,{children:c})})})})})),e.current.publishEvent("rowsSet")}),[e,r]),P={getRow:c,setLoading:C,getRowId:d,getRowModels:v,getRowsCount:x,getAllRowIds:y,setRows:g,updateRows:h,getRowNode:I,getRowIndexRelativeToVisibleRows:R,unstable_replaceRows:o.useCallback(((r,o)=>{if(t.signature===F.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,m.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,m.qj)(e)),i=(0,n.A)({},(0,m.rI)(e)),a=(0,n.A)({},(0,m.gk)(e)),s=l[he.OL],c=[...s.children],u=new Set;for(let e=0;e<o.length;e+=1){const n=o[e],s=(0,he.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:he.OL,type:"leaf",groupingKey:null};i[s]=n,a[s]=s,l[s]=p,u.add(s)}l[he.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])},E={setRowIndex:k,setRowChildrenExpansion:S,getRowGroupChildren:M},H={updateServerRows:b},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,m.A6)(e)}}):(0,he.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:o,throttle:!1})}),[r,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),T=o.useCallback((e=>{"rowTreeCreation"===e&&O()}),[O]),D=o.useCallback((()=>{e.current.getActiveStrategy("rowTree")!==(0,m.Y1)(e)&&O()}),[e,O]);(0,F.cz)(e,"activeStrategyProcessorChange",T),(0,F.cz)(e,"strategyAvailabilityChange",D);const z=o.useCallback((()=>{e.current.setState((r=>{const o=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:(0,m.qj)(r,e.current.instanceId),treeDepths:(0,m.Mz)(r,e.current.instanceId),dataRowIds:(0,m.A6)(r,e.current.instanceId),dataRowIdToModelLookup:(0,m.rI)(r,e.current.instanceId),dataRowIdToIdLookup:(0,m.gk)(r,e.current.instanceId)});return(0,n.A)({},r,{rows:(0,n.A)({},r.rows,o,{totalTopLevelRowCount:(0,he.fS)({tree:o.tree,rowCountProp:t.rowCount})})})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e,t.rowCount]);J(e,"hydrateRows",z),(0,A.P)(e,P,"public"),(0,A.P)(e,E,t.signature===F.HV.DataGrid?"private":"public"),(0,A.P)(e,H,"private");const L=o.useRef(!0);o.useEffect((()=>{if(L.current)return void(L.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}`),f({cache:(0,he.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))}),[t.rows,t.rowCount,t.getRowId,t.loading,r,f,e])})(r,t),((e,t)=>{const{range:r,rows:l}=(0,Fe.h)(e,t),i=(0,p.Nc)(e,dt.nZ),a=(0,p.Nc)(e,d.iv),s=(0,ye.A)((()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(19,Math.max(e.current.state.rows.dataRowIds.length-1,0))}:Bt)),c=o.useRef(Bt),u=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&&(s.current=Bt);const c=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:i.lastRowIndex-1},s.current);if(null===c)return;const{spannedCells:u,hiddenCells:d,hiddenCellOriginMap:p,processedRange:f}=Wt(e,a,l,r,c,o,s.current);s.current=f;const g=Object.keys(u).length,m=Object.keys(d).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:u,hiddenCells:d,hiddenCellOriginMap:p}})))}),[e,t.unstable_rowSpanning,r,i,l,a,s]),f=o.useRef(i),g=o.useRef(!0),m=o.useRef(!1);o.useEffect((()=>{const e=g.current;if(g.current&&(g.current=!1),r&&c.current&&jt(r,c.current)&&(c.current=r,m.current=!0),!e&&f.current!==i)return jt(f.current,i)&&(u(m.current),m.current=!1),void(f.current=i);u()}),[u,i,r,c])})(r,t),(0,nt.s)(r),(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,A.P)(e,n,"public"),(0,A.P)(e,l,"private"),(0,F.cz)(e,"columnOrderChange",r)})(r),((e,t)=>{const r={getColumnGroupPath:o.useCallback((t=>(0,g.TQ)(e)[t]??[]),[e]),getAllGroupDetails:o.useCallback((()=>(0,g.ED)(e)),[e])};(0,A.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,d.JR)(e),l=(0,d.TI)(e),i=Mt(t??[]),a=Rt(t??[]),s=St(o,a,r),c=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:c}})))}),[e]);(0,F.cz)(e,"columnIndexChange",l),(0,F.cz)(e,"columnsChange",(()=>{i(t.columnGroupingModel)})),(0,F.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===Oe.RL.Cell&&e(...r)},f=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]),g=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===Oe.bs.Edit)return;const o=(0,n.A)({},t,{reason:We.a.cellDoubleClick});e.current.publishEvent("cellEditStart",o,r)}),[e]),b=o.useCallback(((t,r)=>{if(t.cellMode===Oe.bs.View)return;if(e.current.getCellMode(t.id,t.field)===Oe.bs.View)return;const o=(0,n.A)({},t,{reason:We.Q.cellFocusOut});e.current.publishEvent("cellEditStop",o,r)}),[e]),w=o.useCallback(((t,r)=>{if(t.cellMode===Oe.bs.Edit){if(229===r.which)return;let o;if("Escape"===r.key?o=We.Q.escapeKeyDown:"Enter"===r.key?o=We.Q.enterKeyDown:"Tab"===r.key&&(o=r.shiftKey?We.Q.shiftTabKeyDown:We.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,Ee.TW)(r)?o=We.a.printableKeyDown:(0,Ee.IA)(r)?o=We.a.pasteKeyDown:"Enter"===r.key?o=We.a.enterKeyDown:"Backspace"!==r.key&&"Delete"!==r.key||(o=We.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!==We.a.printableKeyDown&&o!==We.a.deleteKeyDown&&o!==We.a.pasteKeyDown||(l.deleteValue=!0),e.current.startCellEditMode(l)}),[e]),v=o.useCallback((t=>{const{id:r,field:n,reason:o}=t;let l;e.current.runPendingEditCellValueMutation(r,n),o===We.Q.enterKeyDown?l="below":o===We.Q.tabKeyDown?l="right":o===We.Q.shiftTabKeyDown&&(l="left");const i="escapeKeyDown"===o;e.current.stopCellEditMode({id:r,field:n,ignoreModifications:i,cellToFocusAfter:l})}),[e]);var x;(0,F.cz)(e,"cellDoubleClick",p(h)),(0,F.cz)(e,"cellFocusOut",p(b)),(0,F.cz)(e,"cellKeyDown",p(w)),(0,F.cz)(e,"cellEditStart",p(C)),(0,F.cz)(e,"cellEditStop",p(v)),(0,F.re)(e,"cellEditStart",t.onCellEditStart),(0,F.re)(e,"cellEditStop",(x=t.onCellEditStop,async(...t)=>{if(x){const{id:r,field:n}=t[0],o=e.current.state.editRows,l=o[r][n]?.error;l||x(...t)}}));const R=o.useCallback(((t,r)=>{const n=(0,Ge.w)(e.current.state);return n[t]&&n[t][r]?Oe.bs.Edit:Oe.bs.View}),[e]),S=(0,ie.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,T.A)(r,[t].map(z));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,T.A)(e,Ue);f(t,r),g(t,r,Oe.bs.View),I(t,r,(0,n.A)({mode:Oe.bs.Edit},o))}),[f,g,I]),P=(0,ie.A)((t=>{const{id:r,field:n,deleteValue:o,initialValue:l}=t;let i=e.current.getCellValue(r,n);o?i=_e(e.current.getColumn(n)):l&&(i=l),M(r,n,{value:i,error:!1,isProcessingProps:!1}),e.current.setCellFocus(r,n)})),E=o.useCallback((e=>{const{id:t,field:r}=e,o=(0,T.A)(e,qe);g(t,r,Oe.bs.Edit),I(t,r,(0,n.A)({mode:Oe.bs.View},o))}),[g,I]),H=(0,ie.A)((async t=>{const{id:r,field:n,ignoreModifications:o,cellToFocusAfter:l="none"}=t;g(r,n,Oe.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,Ge.w)(e.current.state),{error:d,isProcessingProps:p}=u[r][n];if(d||p)return a.current[r][n].mode=Oe.bs.Edit,void I(r,n,{mode:Oe.bs.Edit});const f=e.current.getRowWithUpdatedValuesFromCellEditing(r,n);if(s){const t=e=>{a.current[r][n].mode=Oe.bs.Edit,I(r,n,{mode:Oe.bs.Edit}),c&&c(e)};try{const n=e.current.getRow(r);Promise.resolve(s(f,n)).then((t=>{e.current.updateRows([t]),i()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([f]),i()})),O={getCellMode:R,startCellEditMode:k,stopCellEditMode:E},D={setCellEditingEditCellValue:o.useCallback((async t=>{const{id:r,field:o,value:l,debounceMs:i,unstable_skipValueParser:a}=t;f(r,o),g(r,o,Oe.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,Ge.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)!==Oe.bs.View&&(d=(0,Ge.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,Ge.w)(e.current.state),!d[r]?.[o]?.error)}),[e,f,g,M]),getRowWithUpdatedValuesFromCellEditing:o.useCallback(((t,r)=>{const o=e.current.getColumn(r),l=(0,Ge.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,A.P)(e,O,"public"),(0,A.P)(e,D,"private"),o.useEffect((()=>{u&&S(u)}),[u,S]),(0,xe.A)((()=>{const t=(0,m.gk)(e),o=a.current;a.current=(0,y.Go)(r),Object.entries(r).forEach((([e,r])=>{Object.entries(r).forEach((([r,l])=>{const i=o[e]?.[r]?.mode||Oe.bs.View,a=t[e]??e;l.mode===Oe.bs.Edit&&i===Oe.bs.View?P((0,n.A)({id:a,field:r},l)):l.mode===Oe.bs.View&&i===Oe.bs.Edit&&H((0,n.A)({id:a,field:r},l))}))}))}),[e,r,P,H])})(e,t),((e,t)=>{const[r,l]=o.useState({}),i=o.useRef(r),a=o.useRef({}),s=o.useRef(),c=o.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:p,rowModesModel:f,onRowModesModelChange:g}=t,h=e=>(...r)=>{t.editMode===Oe.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,Ge.w)(e.current.state);return Object.values(r[t]).some((e=>e.error))}),[e]),v=o.useCallback(((t,r)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===Oe.V_.Edit)return;const o=e.current.getRowParams(t.id),l=(0,n.A)({},o,{field:t.field,reason:Ke.a.cellDoubleClick});e.current.publishEvent("rowEditStart",l,r)}),[e]),x=o.useCallback((e=>{c.current=e}),[]),R=o.useCallback(((t,r)=>{t.isEditable&&e.current.getRowMode(t.id)!==Oe.V_.View&&(c.current=null,s.current=setTimeout((()=>{if(c.current?.id!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===Oe.V_.View)return;if(C(t.id))return;const o=e.current.getRowParams(t.id),l=(0,n.A)({},o,{field:t.field,reason:Ke.q.rowFocusOut});e.current.publishEvent("rowEditStop",l,r)}})))}),[e,C]);o.useEffect((()=>()=>{clearTimeout(s.current)}),[]);const S=o.useCallback(((t,r)=>{if(t.cellMode===Oe.V_.Edit){if(229===r.which)return;let o;if("Escape"===r.key)o=Ke.q.escapeKeyDown;else if("Enter"===r.key)o=Ke.q.enterKeyDown;else if("Tab"===r.key){const n=(0,d.TI)(e).filter((r=>e.current.getColumn(r).type===Xe.D||e.current.isCellEditable(e.current.getCellParams(t.id,r))));if(r.shiftKey?t.field===n[0]&&(o=Ke.q.shiftTabKeyDown):t.field===n[n.length-1]&&(o=Ke.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!==Ke.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,Ee.TW)(r)||(0,Ee.IA)(r)?o=Ke.a.printableKeyDown:"Enter"===r.key?o=Ke.a.enterKeyDown:"Backspace"!==r.key&&"Delete"!==r.key||(o=Ke.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!==Ke.a.printableKeyDown&&o!==Ke.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===Ke.q.enterKeyDown?l="below":n===Ke.q.tabKeyDown?l="right":n===Ke.q.shiftTabKeyDown&&(l="left");const i="escapeKeyDown"===n;e.current.stopRowEditMode({id:r,ignoreModifications:i,field:o,cellToFocusAfter:l})}),[e]);(0,F.cz)(e,"cellDoubleClick",h(v)),(0,F.cz)(e,"cellFocusIn",h(x)),(0,F.cz)(e,"cellFocusOut",h(R)),(0,F.cz)(e,"cellKeyDown",h(S)),(0,F.cz)(e,"rowEditStart",h(I)),(0,F.cz)(e,"rowEditStop",h(M)),(0,F.re)(e,"rowEditStart",t.onRowEditStart),(0,F.re)(e,"rowEditStop",t.onRowEditStop);const k=o.useCallback((r=>{if(t.editMode===Oe.RL.Cell)return Oe.V_.View;const n=(0,Ge.w)(e.current.state);return n[r]&&Object.keys(n[r]).length>0?Oe.V_.Edit:Oe.V_.View}),[e,t.editMode]),P=(0,ie.A)((r=>{const n=r!==t.rowModesModel;g&&n&&g(r,{api:e.current}),t.rowModesModel&&n||(l(r),i.current=r,e.current.publishEvent("rowModesModelChange",r))})),E=o.useCallback(((e,t)=>{const r=(0,n.A)({},i.current);null!==t?r[e]=(0,n.A)({},t):delete r[e],P(r)}),[P]),H=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]),O=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]),D=o.useCallback((e=>{const{id:t}=e,r=(0,T.A)(e,Ye);w(t,Oe.V_.View),E(t,(0,n.A)({mode:Oe.V_.Edit},r))}),[w,E]),L=(0,ie.A)((t=>{const{id:r,fieldToFocus:n,deleteValue:o,initialValue:l}=t,i=(0,d.JR)(e).reduce(((t,i)=>{if(!e.current.getCellParams(r,i).isEditable)return t;let a=e.current.getCellValue(r,i);return n===i&&(o||l)&&(o?a=_e(e.current.getColumn(i)):l&&(a=l)),t[i]={value:a,error:!1,isProcessingProps:!1},t}),{});H(r,i),n&&e.current.setCellFocus(r,n)})),$=o.useCallback((e=>{const{id:t}=e,r=(0,T.A)(e,Ze);w(t,Oe.V_.Edit),E(t,(0,n.A)({mode:Oe.V_.View},r))}),[w,E]),j=(0,ie.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),H(r,null),E(r,null)};if(n)return void i();const s=(0,Ge.w)(e.current.state),c=e.current.getRow(r);if(Object.values(s[r]).some((e=>e.isProcessingProps)))return void(a.current[r].mode=Oe.V_.Edit);if(C(r))return a.current[r].mode=Oe.V_.Edit,void E(r,{mode:Oe.V_.Edit});const d=e.current.getRowWithUpdatedValuesFromRowEditing(r);if(u){const t=e=>{a.current[r].mode=Oe.V_.Edit,E(r,{mode:Oe.V_.Edit}),p&&p(e)};try{Promise.resolve(u(d,c)).then((t=>{e.current.updateRows([t]),i()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([d]),i()})),N={getRowMode:k,startRowEditMode:D,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,Ge.w)(e.current.state),p=(0,n.A)({},d[r][o],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return s.preProcessEditCellProps||O(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}),O(r,o,p);const a=d[r],f=(0,T.A)(a,[o].map(z)),g=Promise.resolve(s.preProcessEditCellProps({id:r,row:c,props:p,hasChanged:i,otherFieldsProps:f})).then((l=>{e.current.getRowMode(r)!==Oe.V_.View?(d=(0,Ge.w)(e.current.state),(l=(0,n.A)({},l,{isProcessingProps:!1})).value=s.preProcessEditCellProps?d[r][o].value:u,O(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}),O(r,i,a),d=(0,Ge.w)(e.current.state);const u=d[r],p=(0,T.A)(u,[i].map(z)),f=Promise.resolve(s.preProcessEditCellProps({id:r,row:c,props:a,hasChanged:!1,otherFieldsProps:p})).then((o=>{e.current.getRowMode(r)!==Oe.V_.View?(o=(0,n.A)({},o,{isProcessingProps:!1}),O(r,i,o)):t(!1)}));l.push(f)})),Promise.all(l).then((()=>{e.current.getRowMode(r)===Oe.V_.Edit?(d=(0,Ge.w)(e.current.state),t(!d[r][o].error)):t(!1)}))}))}),[e,b,O]),getRowWithUpdatedValuesFromRowEditing:o.useCallback((t=>{const r=(0,Ge.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,A.P)(e,N,"public"),(0,A.P)(e,V,"private"),o.useEffect((()=>{f&&P(f)}),[f,P]),(0,xe.A)((()=>{const t=(0,m.gk)(e),o=a.current;a.current=(0,y.Go)(r);const l=new Set([...Object.keys(r),...Object.keys(o)]);Array.from(l).forEach((e=>{const l=r[e]??{mode:Oe.V_.View},i=o[e]?.mode||Oe.V_.View,a=t[e]??e;l.mode===Oe.V_.Edit&&i===Oe.V_.View?L((0,n.A)({id:a},l)):l.mode===Oe.V_.View&&i===Oe.V_.Edit&&j((0,n.A)({id:a},l))}))}),[e,r,L,j])})(e,t);const r=o.useRef({}),{isCellEditable:l}=t,i=o.useCallback((e=>!(0,he.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===Oe.RL.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(o,l)===Oe.bs.Edit){const e=await r(n);a(e)}}))}))}),[e,t.editMode]),getRowWithUpdatedValues:o.useCallback(((r,n)=>t.editMode===Oe.RL.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(r,n):e.current.getRowWithUpdatedValuesFromRowEditing(r)),[e,t.editMode]),unstable_getEditCellMeta:o.useCallback(((t,r)=>{const n=(0,Ge.w)(e.current.state);return n[t]?.[r]??null}),[e])},c={runPendingEditCellValueMutation:a};(0,A.P)(e,s,"public"),(0,A.P)(e,c,"private")})(r,t),((e,t)=>{const r=(0,K.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,B.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]),c=o.useCallback(((t,o={})=>{const l=(0,B.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]),u=o.useCallback(((t,o={})=>{const l=(0,B.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,B.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]),f=o.useCallback((()=>(0,B.WO)(e)),[e]),g=o.useCallback(((r,n,o)=>{let l=e.current.getColumnIndex(n);const i=(0,d.iv)(e),a=(0,Fe.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode}),s=(0,m.$2)(e),c=[].concat(s.top||[],a.rows,s.bottom||[]);let u=c.findIndex((e=>e.id===r));"right"===o?l+=1:"left"===o?l-=1:u+=1,l>=i.length?(u+=1,u<c.length&&(l=0)):l<0&&(u-=1,u>=0&&(l=i.length-1)),u=(0,y.qE)(u,0,c.length-1);const p=c[u];if(!p)return;const f=e.current.unstable_getCellColSpanInfo(p.id,l);f&&f.spannedByColSpan&&("left"===o||"below"===o?l=f.leftVisibleCellIndex:"right"===o&&(l=f.rightVisibleCellIndex)),l=(0,y.qE)(l,0,i.length-1);const g=i[l];e.current.setCellFocus(p.id,g.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,Ee.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,B.WO)(e);null!==o&&o.depth===r&&t.includes(o.field)||e.current.setColumnGroupHeaderFocus(t[0],r,n)}),[e]),v=o.useCallback(((t,o)=>{o.relatedTarget?.getAttribute("class")?.includes(ge.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]),x=o.useCallback((e=>{l.current=e}),[]),R=o.useCallback((t=>{const r=l.current;l.current=null;const o=(0,B.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,B.MO)(e);r?.id===t.id&&r?.field===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),I=o.useCallback((()=>{const t=(0,B.MO)(e);t&&!e.current.getRow(t.id)&&e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}),[e]),M=(0,ie.A)((()=>{const r=(0,B.MO)(e);if(!r)return;const o=(0,Fe.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(o.rows.find((e=>e.id===r.id)))return;const l=(0,d.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:c,setColumnHeaderFilterFocus:u},P={moveFocusToRelativeCell:g,setColumnGroupHeaderFocus:p,getColumnGroupHeaderFocus:f};(0,A.P)(e,k,"public"),(0,A.P)(e,P,"private"),o.useEffect((()=>{const t=(0,fe.A)(e.current.rootElementRef.current);return t.addEventListener("mouseup",R),()=>{t.removeEventListener("mouseup",R)}}),[e,i,R]),(0,F.cz)(e,"columnHeaderBlur",v),(0,F.cz)(e,"cellDoubleClick",h),(0,F.cz)(e,"cellMouseDown",x),(0,F.cz)(e,"cellKeyDown",b),(0,F.cz)(e,"cellModeChange",S),(0,F.cz)(e,"columnHeaderFocus",w),(0,F.cz)(e,"columnGroupHeaderFocus",C),(0,F.cz)(e,"rowsSet",I),(0,F.cz)(e,"paginationModelChange",M)})(r,t),((e,t)=>{const r=(0,K.q)(e,"useGridPreferencesPanel"),l=o.useRef(),i=o.useRef(),a=o.useCallback((()=>{r.debug("Hiding Preferences Panel");const t=(0,Ve._)(e.current.state);t.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:t.openedPanelValue}),e.current.setState((e=>(0,n.A)({},e,{preferencePanel:{open:!1}}))),e.current.forceUpdate()}),[e,r]),s=o.useCallback((()=>{i.current=setTimeout((()=>clearTimeout(l.current)),0)}),[]),c=o.useCallback((()=>{l.current=setTimeout(a,100)}),[a]),u=o.useCallback(((t,o,l)=>{r.debug("Opening Preferences Panel"),s(),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}),e.current.forceUpdate()}),[r,s,e]);(0,A.P)(e,{showPreferences:u,hidePreferences:c},"public");const d=o.useCallback(((r,o)=>{const l=(0,Ve._)(e.current.state);return!o.exportOnlyDirtyModels||null!=t.initialState?.preferencePanel||l.open?(0,n.A)({},r,{preferencePanel:l}):r}),[e,t.initialState?.preferencePanel]),p=o.useCallback(((t,r)=>{const o=r.stateToRestore.preferencePanel;return null!=o&&e.current.setState((e=>(0,n.A)({},e,{preferencePanel:o}))),t}),[e]);Q(e,"exportState",d),Q(e,"restoreState",p),o.useEffect((()=>()=>{clearTimeout(l.current),clearTimeout(i.current)}),[])})(r,t),((e,t)=>{const r=(0,K.q)(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:w.ZI,changeEvent:"filterModelChange"});const l=o.useCallback((()=>{e.current.setState((t=>{const r=(0,w.ZI)(t,e.current.instanceId),o=e.current.getFilterState(r),l=(0,n.A)({},t,{filter:(0,n.A)({},t.filter,o)}),i=ke(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,w.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]),c=o.useCallback((t=>{const r=(0,w.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]),u=o.useCallback((t=>{const r=(0,w.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,w.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,Se.zk)({field:o,operator:s.filterOperators[0].value},e)]:[...l,(0,Se.zk)({field:o,operator:s.filterOperators[0].value},e)],e.current.setFilterModel((0,n.A)({},r,{items:i}))}e.current.showPreferences(re.y.filters,l,i)}),[e,r,t.disableMultipleColumnsFiltering]),f=o.useCallback((()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,r]),g=o.useCallback((t=>{const r=(0,w.ZI)(e);r.logicOperator!==t&&e.current.setFilterModel((0,n.A)({},r,{logicOperator:t}),"changeLogicOperator")}),[e]),h=o.useCallback((t=>{const r=(0,w.ZI)(e);(0,y.Hv)(r.quickFilterValues,t)||e.current.setFilterModel((0,n.A)({},r,{quickFilterValues:[...t]}))}),[e]),b=o.useCallback(((n,o)=>{(0,w.ZI)(e)!==n&&(r.debug("Setting filter model"),e.current.updateControlState("filter",(0,Se.zU)(n,t.disableMultipleColumnsFiltering,e),o),e.current.unstable_applyFilters())}),[e,r,t.disableMultipleColumnsFiltering]),C=o.useCallback((r=>{const o=(0,Se.L5)(r,t.disableMultipleColumnsFiltering,e),l="client"===t.filterMode?(0,Se.Fv)(o,e,t.disableEval):null,i=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:l,filterModel:o??(0,Ae.T)()});return(0,n.A)({},i,{filterModel:o})}),[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),v={setFilterLogicOperator:g,unstable_applyFilters:a,deleteFilterItem:u,upsertFilterItem:s,upsertFilterItems:c,setFilterModel:b,showFilterPanel:p,hideFilterPanel:f,setQuickFilterValues:h,ignoreDiacritics:t.ignoreDiacritics,getFilterState:C};(0,A.P)(e,v,"public");const x=o.useCallback(((r,o)=>{const l=(0,w.ZI)(e);return o.exportOnlyDirtyModels&&null==t.filterModel&&null==t.initialState?.filter?.filterModel&&(0,y.Hv)(l,(0,Ae.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,Se.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===re.y.filters){const e=t.slots.filterPanel;return(0,ne.jsx)(e,(0,n.A)({},t.slotProps?.filterPanel))}return e}),[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:I}=t,M=(0,ye.A)(Pe),k=o.useCallback((r=>{if("client"!==t.filterMode||!r.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const n=(0,m.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,Se.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]);Q(e,"columnMenu",i),Q(e,"exportState",x),Q(e,"restoreState",R),Q(e,"preferencePanel",S),Re(e,L,"filtering",k),Re(e,L,"visibleRowsLookupCreation",Me);const P=o.useCallback((()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const t=(0,w.ZI)(e),o=(0,d.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]),E=o.useCallback((t=>{"filtering"===t&&e.current.unstable_applyFilters()}),[e]),H=o.useCallback((()=>{e.current.setState((t=>(0,n.A)({},t,{visibleRowsLookup:ke(e,t)}))),e.current.forceUpdate()}),[e]);(0,F.cz)(e,"rowsSet",l),(0,F.cz)(e,"columnsChange",P),(0,F.cz)(e,"activeStrategyProcessorChange",E),(0,F.cz)(e,"rowExpansionChange",H),(0,F.cz)(e,"columnVisibilityModelChange",(()=>{const t=(0,w.ZI)(e);t.quickFilterValues&&(0,Se.kO)(t)&&e.current.unstable_applyFilters()})),(0,Z.g)((()=>{e.current.unstable_applyFilters()})),(0,xe.A)((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,r,t.filterModel])})(r,t),((e,t)=>{const r=(0,K.q)(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:et.XU,changeEvent:"sortModelChange"});const l=o.useCallback(((t,r)=>{const n=(0,et.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,et.XU)(e).find((e=>e.field===r.field));if(l){const e=void 0===o?(0,at.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,at.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,he.l_)((0,m.qj)(e),he.OL,!1)})});const l=(0,et.XU)(o,e.current.instanceId),i=(0,at.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]),c=o.useCallback((n=>{(0,et.XU)(e)!==n&&(r.debug("Setting sort model"),e.current.setState((0,at.ps)(n,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,r,t.disableMultipleColumnsSorting]),u=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,et.XU)(e)),[e]),getSortedRows:o.useCallback((()=>(0,et.J6)(e).map((e=>e.model))),[e]),getSortedRowIds:o.useCallback((()=>(0,et.RJ)(e)),[e]),getRowIdFromRowIndex:o.useCallback((t=>e.current.getSortedRowIds()[t]),[e]),setSortModel:c,sortColumn:u,applySorting:s};(0,A.P)(e,p,"public");const f=o.useCallback(((r,o)=>{const l=(0,et.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]),g=o.useCallback(((r,o)=>{const l=o.stateToRestore.sorting?.sortModel;return null==l?r:(e.current.setState((0,at.ps)(l,t.disableMultipleColumnsSorting)),(0,n.A)({},r,{callbacks:[...r.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),h=o.useCallback((t=>{const r=(0,m.qj)(e),n=r[he.OL],o=t.sortRowList?t.sortRowList(n.children.map((e=>r[e]))):[...n.children];return null!=n.footerId&&o.push(n.footerId),o}),[e]);Q(e,"exportState",f),Q(e,"restoreState",g),Re(e,L,"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;u(e,void 0,o)}),[u,t.disableColumnSorting]),w=o.useCallback((({field:e,colDef:r},n)=>{r.sortable&&!t.disableColumnSorting&&("Enter"!==n.key||n.ctrlKey||n.metaKey||u(e,void 0,n.shiftKey))}),[u,t.disableColumnSorting]),C=o.useCallback((()=>{const t=(0,et.XU)(e),r=(0,d.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]);Q(e,"columnMenu",a),(0,F.cz)(e,"columnHeaderClick",b),(0,F.cz)(e,"columnHeaderKeyDown",w),(0,F.cz)(e,"rowsSet",e.current.applySorting),(0,F.cz)(e,"columnsChange",C),(0,F.cz)(e,"activeStrategyProcessorChange",v),(0,Z.g)((()=>{e.current.applySorting()})),(0,xe.A)((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(r,t),((e,t)=>{const r=(0,K.q)(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:ae._v,changeEvent:"densityChange"});const l={setDensity:(0,ie.A)((t=>{(0,ae._v)(e.current.state)!==t&&(r.debug(`Set grid density to ${t}`),e.current.setState((e=>(0,n.A)({},e,{density:t}))))}))};(0,A.P)(e,l,"public");const i=o.useCallback(((r,o)=>{const l=(0,ae._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,ae._v)(e.current.state);return e.current.setState((e=>(0,n.A)({},e,{density:o}))),t}),[e]);Q(e,"exportState",i),Q(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,K.q)(e,"useGridPaginationMeta"),l=(0,p.Nc)(e,be.py);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:be.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,A.P)(e,i,"public");const a=o.useCallback(((r,o)=>{const l=(0,be.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,be.py)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{meta:o})}))),t}),[e]);Q(e,"exportState",a),Q(e,"restoreState",s),o.useEffect((()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)}),[e,t.paginationMeta])})(e,t),((e,t)=>{const r=(0,K.q)(e,"useGridPaginationModel"),l=(0,p.Nc)(e,ae.rf),i=Math.floor(t.rowHeight*l);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:be.lN,changeEvent:"paginationModelChange"});const a={setPage:o.useCallback((t=>{const n=(0,be.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,be.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,be.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:Ce(e.pagination,t.signature,o)})}))))}),[e,r,t.signature])};(0,A.P)(e,a,"public");const s=o.useCallback(((r,o)=>{const l=(0,be.lN)(e);return!o.exportOnlyDirtyModels||null!=t.paginationModel||null!=t.initialState?.pagination?.paginationModel||0!==l.page&&l.pageSize!==(0,we.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,we.N0)(t.autoPageSize),o.stateToRestore.pagination?.paginationModel):(0,be.lN)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:Ce(e.pagination,t.signature,l)})}))),r}),[e,t.autoPageSize,t.signature]);Q(e,"exportState",s),Q(e,"restoreState",c);const u=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]),d=o.useCallback((t=>{if(null==t)return;const r=(0,be.lN)(e),n=(0,be.O)(e);r.page>n-1&&e.current.setPage(Math.max(0,n-1))}),[e]);(0,F.cz)(e,"viewportInnerSizeChange",u),(0,F.cz)(e,"paginationModelChange",(()=>{const t=(0,be.lN)(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:t.page*t.pageSize})})),(0,F.cz)(e,"rowCountChange",d),o.useEffect((()=>{e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:Ce(e.pagination,t.signature,t.paginationModel)})})))}),[e,t.paginationModel,t.paginationMode,t.signature]),o.useEffect(u,[u])})(e,t),((e,t)=>{const r=(0,K.q)(e,"useGridRowCount"),l=(0,p.Nc)(e,w.RN),i=(0,p.Nc)(e,be.H2),a=(0,p.Nc)(e,be.py),s=(0,p.Nc)(e,be.lN),c=(0,ye.A)((()=>(0,be.lN)(e).pageSize));e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:be.H2,changeEvent:"rowCountChange"});const u={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,A.P)(e,u,"public");const d=o.useCallback(((r,o)=>{const l=(0,be.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,be.H2)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{rowCount:o})}))),t}),[e]);Q(e,"exportState",d),Q(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,F.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=o.useRef(Object.create(null)),s=o.useRef(-1),c=o.useRef(!1),u=(0,p.Nc)(e,ae.rf),d=(0,p.Nc)(e,w.ZI),f=(0,p.Nc)(e,be.M5),g=(0,p.Nc)(e,et.XU),h=(0,Fe.h)(e,t),b=(0,p.Nc)(e,m.$2),C=Ct(t.rowHeight,bt.E.rowHeight),v=Math.floor(C*u),x=o.useCallback((()=>{c.current=!1;const t=t=>{a.current[t.id]||(a.current[t.id]={sizes:{baseCenter:v},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:o,needsFirstMeasurement:s,sizes:d}=a.current[t.id];let p="number"==typeof v&&v>0?v:52;const f=d.baseCenter;if(o)p=f;else if(r){const e=r((0,n.A)({},t,{densityFactor:u}));"auto"===e?(p=s?(i?i((0,n.A)({},t,{densityFactor:u})):v)??v:f,c.current=!0,a.current[t.id].autoHeight=!0):(p=Ct(e,v),a.current[t.id].needsFirstMeasurement=!1,a.current[t.id].autoHeight=!1)}else a.current[t.id].needsFirstMeasurement=!1;const g={baseCenter:p};if(l){const r=e.current.getRowIndexRelativeToVisibleRows(t.id),o=l((0,n.A)({},t,{isFirstVisible:0===r,isLastVisible:r===h.rows.length-1,indexRelativeToCurrentPage:r}));g.spacingTop=o.top??0,g.spacingBottom=o.bottom??0}const m=e.current.unstable_applyPipeProcessors("rowHeight",g,t);return a.current[t.id].sizes=m,m},o=[],d=h.rows.reduce(((e,r)=>{o.push(e);let n=0;const l=t(r);for(const e in l){const t=l[e];"baseCenter"!==e&&(n+=t)}return e+l.baseCenter+n}),0);b?.top?.forEach((e=>{t(e)})),b?.bottom?.forEach((e=>{t(e)})),e.current.setState((e=>(0,n.A)({},e,{rowsMeta:{currentPageTotalHeight:d,positions:o}}))),c.current||(s.current=1/0),e.current.forceUpdate()}),[e,h.rows,v,r,l,i,b,u]),y=o.useCallback((e=>{const t=a.current[e];return t?t.sizes.baseCenter:v}),[v]),R=o.useCallback(((e,t)=>{a.current[e].sizes.baseCenter=t,a.current[e].isResized=!0,a.current[e].needsFirstMeasurement=!1,x()}),[x]),S=o.useMemo((()=>(0,ht.A)(x,t.rowPositionsDebounceMs)),[x,t.rowPositionsDebounceMs]),I=o.useCallback(((e,t)=>{if(!a.current[e]||!a.current[e].autoHeight)return;const r=a.current[e].sizes.baseCenter!==t;a.current[e].needsFirstMeasurement=!1,a.current[e].sizes.baseCenter=t,r&&S()}),[S]),M=o.useCallback((e=>a.current[e]?.autoHeight||!1),[]),k=o.useCallback((()=>s.current),[]),P=o.useCallback((e=>{c.current&&e>s.current&&(s.current=e)}),[]),E=o.useCallback((()=>{a.current={},x()}),[x]);o.useEffect((()=>{x()}),[v,d,f,g,x]),J(e,"rowHeight",x);const F={unstable_setLastMeasuredRowIndex:P,unstable_getRowHeight:y,unstable_getRowInternalSizes:e=>a.current[e]?.sizes,unstable_setRowHeight:R,unstable_storeRowHeightMeasurement:I,resetRowHeights:E},H={getLastMeasuredRowIndex:k,rowHasAutoHeight:M};(0,A.P)(e,F,"public"),(0,A.P)(e,H,"private")})(r,t),((e,t)=>{const r=(0,x.I)(),n=(0,K.q)(e,"useGridScroll"),l=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=(0,p.Nc)(e,w.em),s=o.useCallback((r=>{const o=(0,ct.z)(e.current.state),l=(0,m.H0)(e),s=(0,d.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 c={};if(void 0!==r.colIndex){const t=(0,d.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),c.left=ut({clientHeight:o.viewportInnerSize.width,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:n,offsetTop:t[r.colIndex]})}if(void 0!==r.rowIndex){const n=(0,me.E)(e.current.state),l=(0,be.$i)(e),a=(0,be.ij)(e),s=t.pagination?r.rowIndex-l*a:r.rowIndex,u=n.positions[s+1]?n.positions[s+1]-n.positions[s]:n.currentPageTotalHeight-n.positions[s];c.top=ut({clientHeight:o.viewportInnerSize.height,scrollTop:i.current.scrollTop,offsetHeight:u,offsetTop:n.positions[s]})}return c=e.current.unstable_applyPipeProcessors("scrollToIndexes",c,r),(void 0!==typeof c.left||void 0!==typeof c.top)&&(e.current.scroll(c),!0)}),[n,e,i,t.pagination,a]),c={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,A.P)(e,c,"public")})(r,t),(e=>{const t=(0,K.q)(e,"useGridColumnMenu"),r=o.useCallback((r=>{const o=(0,X.$)(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.current.forceUpdate())}),[e,t]),l=o.useCallback((()=>{const r=(0,X.$)(e.current.state);if(r.field){const t=(0,d.gv)(e),n=(0,d.FY)(e),o=(0,d.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.current.forceUpdate())}),[e,t]),i=o.useCallback((n=>{t.debug("Toggle Column Menu");const o=(0,X.$)(e.current.state);o.open&&o.field===n?l():r(n)}),[e,t,r,l]),a={showColumnMenu:r,hideColumnMenu:l,toggleColumnMenu:i};(0,A.P)(e,a,"public"),(0,F.cz)(e,"columnResizeStart",l),(0,F.cz)(e,"virtualScrollerWheel",e.current.hideColumnMenu),(0,F.cz)(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(r),pe(r,t),((e,t)=>{const r=null!==e.current.rootElementRef.current,l=(0,K.q)(e,"useGridPrintExport"),i=o.useRef(null),a=o.useRef(null),s=o.useRef({}),c=o.useRef([]),u=o.useRef();o.useEffect((()=>{i.current=(0,fe.A)(e.current.rootElementRef.current)}),[e,r]);const p=o.useCallback(((t,r,n)=>new Promise((o=>{const l=ce({apiRef:e,options:{fields:t,allColumns:r}}).map((e=>e.field)),i=(0,d.OV)(e),a={};i.forEach((e=>{a[e.field]=l.includes(e.field)})),n&&(a[G.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[he.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,me.E)(e.current.state),c=e.current.rootElementRef.current,u=c.cloneNode(!0);u.querySelector(`.${ge.x.main}`).style.overflow="visible",u.style.contain="size";let d=c.querySelector(`.${ge.x.toolbarContainer}`)?.offsetHeight||0,p=c.querySelector(`.${ge.x.footerContainer}`)?.offsetHeight||0;l.hideToolbar&&(u.querySelector(`.${ge.x.toolbarContainer}`)?.remove(),d=0),l.hideFooter&&(u.querySelector(`.${ge.x.footerContainer}`)?.remove(),p=0);const f=s.currentPageTotalHeight+(0,te.pe)(e,t)+d+p;if(u.style.height=`${f}px`,u.style.boxSizing="content-box",!l.hideFooter){const e=u.querySelector(`.${ge.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:u.current}))),e.current.setRows(c.current),a.current=null,s.current={},c.current=[]}),[e]),h={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,d.FY)(e),c.current=e.current.getSortedRows().filter((e=>!e[he.gb])),t.pagination){const t={page:0,pageSize:(0,w.O7)(e)};e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:Ce(e.pagination,"DataGridPro",t)})})))}u.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??ue),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,A.P)(e,h,"public");const b=o.useCallback(((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,ne.jsx)(de.ME,{options:t.printOptions}),componentName:"printExport"}]),[]);Q(e,"exportMenu",b)})(r,t),((e,t)=>{const r=t.ignoreValueFormatterDuringExport,n=("object"==typeof r?r?.clipboardExport:r)||!1,l=t.clipboardCopyCellDelimiter,i=o.useCallback((t=>{if(!t.ctrlKey&&!t.metaKey||"c"!==t.key.toLowerCase()||t.shiftKey||t.altKey)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,B.MO)(e);if(t){const r=e.current.getCellParams(t.id,t.field);o=_(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((()=>{q(i)})):q(i),e.current.publishEvent("clipboardCopy",o))}),[e,n,l]);(0,V.h)(e,e.current.rootElementRef,"keydown",i),(0,F.re)(e,"clipboardCopy",t.onClipboardCopy)})(r,t),function(e,t){const r=(0,K.q)(e,"useResizeContainer"),l=o.useRef(!1),i=o.useRef(pt),a=(0,p.Nc)(e,ct.z),s=(0,p.Nc)(e,me.E),c=(0,p.Nc)(e,d.Q1),u=(0,p.Nc)(e,ae.rf),f=Math.floor(t.rowHeight*u),g=Math.floor(t.columnHeaderHeight*u),m=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*u),h=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*u),b=(w=(0,d.fc)(e),Math.round(w*10**6)/10**6);var w;const C=(0,te.pe)(e,t),v=c.left.reduce(((e,t)=>e+t.computedWidth),0),x=c.right.reduce(((e,t)=>e+t.computedWidth),0),[y,R]=o.useState(),S=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}(R,t.resizeThrottleMs)),[t.resizeThrottleMs]),I=o.useRef(),M=(0,ie.A)((t=>{e.current.setState((e=>(0,n.A)({},e,{dimensions:t})))})),k=o.useCallback((()=>{const t=e.current.mainElementRef.current;if(!t)return;const r=(n=t,(0,fe.A)(n).defaultView||window).getComputedStyle(t);var n;const o={width:parseFloat(r.width)||0,height:parseFloat(r.height)||0};I.current&&mt(I.current,o)||(e.current.publishEvent("resize",o),I.current=o)}),[e]),P=o.useCallback((()=>{const r=(0,ct.z)(e.current.state);if(!r.isReady)return 0;const n=(0,Fe.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/f);return Math.min(o,n.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight,f]),E=o.useCallback((()=>{const r=e.current.rootElementRef.current,n=(0,he.zo)(e),o=function(e,t,r){if(void 0!==r)return r;if(null===e||0===t)return 0;const n=(0,fe.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,b,t.scrollbarSize),l=C+n.top,a=n.bottom,c={width:b-v-x,height:s.currentPageTotalHeight};let u,d,p=!1,w=!1;if(t.autoHeight)w=!1,p=Math.round(b)>Math.round(i.current.width),u={width:i.current.width,height:l+a+c.height},d={width:Math.max(0,u.width-(w?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-v-x),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)&&(w=n,p=e.width+(w?o:0)>t.width,p&&(w=e.height+o>t.height)),w&&(d.width-=o),p&&(d.height-=o)}const y=Math.max(u.width,b+(w?o:0)),A={width:b,height:l+c.height+a},R={isReady:!0,root:i.current,viewportOuterSize:u,viewportInnerSize:d,contentSize:c,minimumSize:A,hasScrollX:p,hasScrollY:w,scrollbarSize:o,headerHeight:g,groupHeaderHeight:m,headerFilterHeight:h,rowWidth:y,rowHeight:f,columnsTotalWidth:b,leftPinnedWidth:v,rightPinnedWidth:x,headersTotalHeight:C,topContainerHeight:l,bottomContainerHeight:a},S=e.current.state.dimensions;M(R),mt(R.viewportInnerSize,S.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",R.viewportInnerSize),e.current.updateRenderContext?.()}),[e,M,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,f,g,m,h,b,C,v,x]),H={resize:k,getRootDimensions:()=>e.current.state.dimensions},O={updateDimensions:E,getViewportPageSize:P};(0,A.P)(e,H,"public"),(0,A.P)(e,O,"private"),(0,xe.A)((()=>{y&&(E(),e.current.publishEvent("debouncedResize",i.current))}),[e,y,E]);const T=e.current.rootElementRef.current;(0,xe.A)((()=>{if(!T)return;const e=(e,t)=>T.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`)}),[T,a]);const D=o.useRef(!0),z=o.useCallback((e=>{i.current=e;const n=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||l.current||t.autoHeight||n||(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||n||(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),D.current)return R(e),void(D.current=!1);S(e)}),[t.autoHeight,S,r]);(0,xe.A)(E,[E]),(0,F.re)(e,"sortedRowsSet",E),(0,F.re)(e,"paginationModelChange",E),(0,F.re)(e,"columnsChange",E),(0,F.cz)(e,"resize",z),(0,F.re)(e,"debouncedResize",t.onResize)}(r,t),function(e,t){(0,F.re)(e,"columnHeaderClick",t.onColumnHeaderClick),(0,F.re)(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),(0,F.re)(e,"columnHeaderOver",t.onColumnHeaderOver),(0,F.re)(e,"columnHeaderOut",t.onColumnHeaderOut),(0,F.re)(e,"columnHeaderEnter",t.onColumnHeaderEnter),(0,F.re)(e,"columnHeaderLeave",t.onColumnHeaderLeave),(0,F.re)(e,"cellClick",t.onCellClick),(0,F.re)(e,"cellDoubleClick",t.onCellDoubleClick),(0,F.re)(e,"cellKeyDown",t.onCellKeyDown),(0,F.re)(e,"preferencePanelClose",t.onPreferencePanelClose),(0,F.re)(e,"preferencePanelOpen",t.onPreferencePanelOpen),(0,F.re)(e,"menuOpen",t.onMenuOpen),(0,F.re)(e,"menuClose",t.onMenuClose),(0,F.re)(e,"rowDoubleClick",t.onRowDoubleClick),(0,F.re)(e,"rowClick",t.onRowClick),(0,F.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,A.P)(e,t,"public")})(r),(0,Pt.lA)(r,t),r},qt={hooks:{useGridAriaAttributes:()=>{const e=(0,h.E)(),t=(0,f.A)(),r=(0,p.Nc)(e,d.iv),n=(0,p.Nc)(e,w.O7),o=(0,p.Nc)(e,g.aC),l=(0,p.Nc)(e,m.OQ);return{role:"grid","aria-colcount":r.length,"aria-rowcount":o+1+l+n,"aria-multiselectable":(0,b.c)(t)}},useGridRowAriaAttributes:()=>{const e=(0,h.E)(),t=(0,p.Nc)(e,C.Zk),r=(0,p.Nc)(e,g.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])}}},Kt=o.forwardRef((function(e,t){const r=(0,bt.Y)(e),o=Ut(r.apiRef,r);return(0,ne.jsx)(v.X,{privateApiRef:o,configuration:qt,props:r,children:(0,ne.jsxs)(a.h,(0,n.A)({className:r.className,style:r.style,sx:r.sx,ref:t},r.forwardedProps,{children:[(0,ne.jsx)(s.k,{}),(0,ne.jsx)(c.S,{}),(0,ne.jsx)(u.r,{})]}))})})),Xt=o.memo(Kt);Kt.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),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,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}},35378:(e,t,r)=>{"use strict";r.d(t,{E:()=>Y,Y:()=>Q});var n=r(6614),o=r(7552),l=r(31049),i=r(52101),a=r(10736),s=r(92765),c=r(30943),u=r(55507),d=r(22987),p=r(29463),f=r(77484),g=r(56384),m=r(51820),h=r(16028),b=r(36014),w=r(63869),C=r(34299),v=r(33360),x=r(79162),y=r(66456),A=r(76404),R=r(1895),S=r(69500);const I=o.forwardRef((function(e,t){const r=(0,A.h)().current.getLocaleText("noResultsOverlayLabel");return(0,S.jsx)(R.$,(0,n.A)({ref:t},e,{children:r}))}));var M=r(32808),k=r(1343),P=r(48171),E=r(98360),F=r(5401),H=r(61723),O=r(93117),T=r(89003),D=r(20350),z=r(17125),L=r(15779),$=r(83673),j=r(64565);const N=["sortingOrder"],V=o.memo((function(e){const{sortingOrder:t}=e,r=(0,$.A)(e,N),o=(0,j.A)(),[l]=t,i="asc"===l?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?(0,S.jsx)(i,(0,n.A)({},r)):null}));var B=r(80170),G=r(29629);const W=["native"],_={booleanCellTrueIcon:B.qb,booleanCellFalseIcon:B.yd,columnMenuIcon:B.A_,openFilterButtonIcon:B.Ui,filterPanelDeleteIcon:B.yd,columnFilteredIcon:B.lj,columnSelectorIcon:B.Gf,columnUnsortedIcon:V,columnSortedAscendingIcon:B.ay,columnSortedDescendingIcon:B.xC,columnResizeIcon:B.r$,densityCompactIcon:B.dc,densityStandardIcon:B.Bn,densityComfortableIcon:B.v$,exportIcon:B.U_,moreActionsIcon:B.c8,treeDataCollapseIcon:B.T5,treeDataExpandIcon:B.fX,groupingCriteriaCollapseIcon:B.T5,groupingCriteriaExpandIcon:B.fX,detailPanelExpandIcon:B.jt,detailPanelCollapseIcon:B.yk,rowReorderIcon:B.Cf,quickFilterIcon:B.Kw,quickFilterClearIcon:B.yd,columnMenuHideIcon:B.j8,columnMenuSortAscendingIcon:B.ay,columnMenuSortDescendingIcon:B.xC,columnMenuFilterIcon:B.lj,columnMenuManageColumnsIcon:B.jS,columnMenuClearIcon:B.hR,loadIcon:B.e2,filterPanelAddIcon:B.jt,filterPanelRemoveAllIcon:B.aC,columnReorderIcon:B.Cf},U=(0,n.A)({},_,{baseCheckbox:M.A,baseTextField:k.A,baseFormControl:P.A,baseSelect:E.A,baseButton:F.A,baseIconButton:H.A,baseInputAdornment:O.A,baseTooltip:T.A,basePopper:D.A,baseInputLabel:z.A,baseSelectOption:function(e){let{native:t}=e,r=(0,$.A)(e,W);return t?(0,S.jsx)("option",(0,n.A)({},r)):(0,S.jsx)(G.A,(0,n.A)({},r))},baseChip:L.A}),q=(0,n.A)({},U,{cell:v.LX,skeletonCell:a.k,columnHeaderFilterIconButton:s.f,columnHeaderSortIcon:c.J,columnMenu:y.aU,columnHeaders:x.f,detailPanels:function(e){return null},footer:u.C,footerRowCount:d.g,toolbar:null,pinnedRows:function(e){return null},loadingOverlay:p.b,noResultsOverlay:I,noRowsOverlay:f.h,pagination:g.h,filterPanel:m.v,columnsPanel:h.G,columnsManagement:b.D,panel:w.F,row:C.T});var K=r(10176);const X={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},Y={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:K.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},Z=q,Q=e=>{const t=(c=(0,l.A)({props:e,name:"MuiDataGrid"}),o.useMemo((()=>function(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}(c)),[c])),r=o.useMemo((()=>(0,n.A)({},i._,t.localeText)),[t.localeText]),a=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:Z,slots:t.slots})),[t.slots]),s=o.useMemo((()=>Object.keys(Y).reduce(((e,r)=>(e[r]=t[r]??Y[r],e)),{})),[t]);var c;return o.useMemo((()=>(0,n.A)({},t,s,{localeText:r,slots:a},X)),[t,r,a,s])}},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=>{if(!e.value)return null;const t="true"===String(e.value);return 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:()=>N});var n=r(6614),o=r(83673),l=r(7552),i=r(46345),a=r(93878),s=r(51148),c=r(93876),u=r(12274),d=r(64565),p=r(71115),f=r(89148),g=r(86775),m=r(29641),h=r(35281),b=r(11591),w=r(88519),C=r(57377),v=r(76959),x=r(8751),y=r(76404),A=r(50796),R=r(10930),S=r(4780),I=r(69500);function M(e){const{groupId:t,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:c,hasFocus:p,tabIndex:f,isLastColumn:g,pinnedPosition:m,style:h,indexInSection:b,sectionLength:M,gridHasFiller:k}=e,P=(0,d.A)(),E=l.useRef(null),F=(0,y.h)(),H=(0,u.Nc)(F,x.ED),O=t?H[t]:{},{headerName:T=t??"",description:D="",headerAlign:z}=O;let L;const $=t&&H[t]?.renderHeaderGroup,j=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=$(j));const N=(0,S.o)(m,b),V=(0,S.L)(m,b,M,P.showColumnVerticalBorder,k),B=(0,n.A)({},e,{classes:P.classes,showLeftBorder:N,showRightBorder:V,headerAlign:z,depth:o,isDragging:!1}),G=T??t,W=(0,C.A)(),_=null===t?`empty-group-cell-${W}`:t,U=(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","left"===s&&"columnHeader--pinnedLeft","right"===s&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,w.A)(c,v.B,t)})(B);l.useLayoutEffect((()=>{if(p){const e=E.current.querySelector('[tabindex="0"]')||E.current;e?.focus()}}),[F,p]);const q=l.useCallback((e=>t=>{(0,R.TA)(t)||F.current.publishEvent(e,j,t)}),[F,j]),K=l.useMemo((()=>({onKeyDown:q("columnGroupHeaderKeyDown"),onFocus:q("columnGroupHeaderFocus"),onBlur:q("columnGroupHeaderBlur")})),[q]),X="function"==typeof O.headerClassName?O.headerClassName(j):O.headerClassName;return(0,I.jsx)(A.a,(0,n.A)({ref:E,classes:U,columnMenuOpen:!1,colIndex:c,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:L,headerClassName:X,description:D,elementId:_,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:G,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,style:h},K))}var k=r(80163),P=r(36155),E=r(85290),F=r(98571),H=r(38975);const O=(0,s.Ay)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"});var T=r(24959);const D=["className"],z=(0,T.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)"}),L=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,D),i=(0,d.A)(),s=(e=>{const{classes:t}=e;return(0,w.A)({root:["columnHeaders"]},v.B,t)})(i);return(0,I.jsx)(z,(0,n.A)({ref:t,className:(0,a.A)(r,s.root),ownerState:i},l,{role:"presentation"}))})),$=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],j=l.forwardRef((function(e,t){const{visibleColumns:r,sortColumnLookup:i,filterColumnLookup:s,columnHeaderTabIndexState:w,columnGroupHeaderTabIndexState:C,columnHeaderFocus:y,columnGroupHeaderFocus:A,headerGroupingMaxDepth:R,columnMenuState:S,columnVisibility:T,columnGroupsHeaderStructure:D,hasOtherElementInTabSequence:z}=e,j=(0,o.A)(e,$),{getInnerProps:N,getColumnHeadersRow:V,getColumnGroupHeadersRows:B}=(e=>{const{visibleColumns:t,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:w,columnGroupHeaderFocus:C,headerGroupingMaxDepth:y,columnMenuState:A,columnVisibility:R,columnGroupsHeaderStructure:S,hasOtherElementInTabSequence:T}=e,[D,z]=l.useState(""),[L,$]=l.useState(""),j=(0,p.E)(),N=(0,c.I)(),V=(0,d.A)(),B=(0,u.Nc)(j,m.z),G=(0,u.Nc)(j,h.m5),W=(0,u.Nc)(j,x.TQ),_=(0,u.Nc)(j,k.Sw),U=(0,u.Nc)(j,h.EG),q=(0,u.Nc)(j,k.Q1),K=(0,u.Nc)(j,k.gv),X=(0,b.Yr)(_,U,q.left.length),Y=B.columnsTotalWidth<B.viewportOuterSize.width;l.useEffect((()=>{j.current.columnHeadersContainerRef.current.scrollLeft=0}),[j]);const Z=l.useCallback((e=>$(e.field)),[]),Q=l.useCallback((()=>$("")),[]),J=l.useCallback((e=>z(e.field)),[]),ee=l.useCallback((()=>z("")),[]),te=l.useMemo((()=>q.left.length?{firstColumnIndex:0,lastColumnIndex:q.left.length}:null),[q.left.length]),re=l.useMemo((()=>q.right.length?{firstColumnIndex:t.length-q.right.length,lastColumnIndex:t.length}:null),[q.right.length,t.length]);(0,f.cz)(j,"columnResizeStart",Z),(0,f.cz)(j,"columnResizeStop",Q),(0,f.cz)(j,"columnHeaderDragStart",J),(0,f.cz)(j,"columnHeaderDragEnd",ee);const ne=e=>{const{renderContext:r=U,maxLastColumn:n=t.length}=e||{},o=r.firstColumnIndex,l=G?r.lastColumnIndex:n;return{renderedColumns:t.slice(o,l),firstColumnToRender:o,lastColumnToRender:l}},oe=(e,t,r,n=!1)=>{const o=e?.position===P.K.RIGHT,i=void 0===e?.position,s=q.right.length>0&&o||0===q.right.length&&i,c=X-r;return(0,I.jsxs)(l.Fragment,{children:[i&&(0,I.jsx)("div",{role:"presentation",style:{width:c}}),t,i&&(0,I.jsx)("div",{role:"presentation",className:(0,a.A)(v.x.filler,n&&v.x["filler--borderBottom"])}),s&&(0,I.jsx)(E.t,{header:!0,pinnedRight:o,borderBottom:n,borderTop:!1})]})},le=({pinnedPosition:e,columnIndex:t,computedWidth:r})=>{let n;const o=e===P.K.LEFT,l=e===P.K.RIGHT;if(o||l){const l=(0,F.Y)(e,r,t,_,B);let i=o?"left":"right";N&&(i=o?"right":"left"),"left"===e&&(n={[i]:l}),"right"===e&&(n={[i]:l})}return n},ie=(e,t={})=>{const{renderedColumns:l,firstColumnToRender:a}=ne(e),s=[];for(let c=0;c<l.length;c+=1){const u=l[c],d=a+c,p=0===d,f=null!==i&&i.field===u.field||p&&!T?0:-1,m=null!==w&&w.field===u.field,h=A.open&&A.field===u.field,b=e?.position,C=le({pinnedPosition:b,columnIndex:d,computedWidth:u.computedWidth}),v=b===P.K.RIGHT?l[c-1]:l[c+1],x=!!v&&null!==w&&w.field===v.field,y=d+1===_.length-q.right.length;s.push((0,I.jsx)(g.d,(0,n.A)({},r[u.field],{columnMenuOpen:h,filterItemsCounter:o[u.field]&&o[u.field].length,headerHeight:B.headerHeight,isDragging:u.field===D,colDef:u,colIndex:d,isResizing:L===u.field,isLast:d===_.length-1,hasFocus:m,tabIndex:f,pinnedPosition:b,style:C,indexInSection:c,sectionLength:l.length,gridHasFiller:Y,isLastUnpinned:y,isSiblingFocused:x},t),u.field))}return oe(e,s,0)},ae=({depth:e,params:r})=>{const o=ne(r);if(0===o.renderedColumns.length)return null;const{renderedColumns:l,firstColumnToRender:i,lastColumnToRender:a}=o,c=S[e],u=t[i].field,d=W[u]?.[e]??null,p=c.findIndex((({groupId:e,columnFields:t})=>e===d&&t.includes(u))),f=t[a-1].field,g=W[f]?.[e]??null,m=c.findIndex((({groupId:e,columnFields:t})=>e===g&&t.includes(f))),h=c.slice(p,m+1).map((e=>(0,n.A)({},e,{columnFields:e.columnFields.filter((e=>!1!==R[e]))}))).filter((e=>e.columnFields.length>0)),b=h[0].columnFields.indexOf(u),w=h[0].columnFields.slice(0,b).reduce(((e,t)=>e+(K[t].computedWidth??0)),0);let v=i;const x=h.map((({groupId:n,columnFields:o},i)=>{const a=null!==C&&C.depth===e&&o.includes(C.field),c=null!==s&&s.depth===e&&o.includes(s.field)?0:-1,u={groupId:n,width:o.reduce(((e,t)=>e+K[t].computedWidth),0),fields:o,colIndex:v,hasFocus:a,tabIndex:c},d=r.position,p=le({pinnedPosition:d,columnIndex:v,computedWidth:u.width});v+=o.length;let f=i;return"left"===d&&(f=v-1),(0,I.jsx)(M,{groupId:n,width:u.width,fields:u.fields,colIndex:u.colIndex,depth:e,isLastColumn:u.colIndex===t.length-u.fields.length,maxDepth:y,height:B.groupHeaderHeight,hasFocus:a,tabIndex:c,pinnedPosition:d,style:p,indexInSection:f,sectionLength:l.length,gridHasFiller:Y},i)}));return oe(r,x,w)};return{renderContext:U,leftRenderContext:te,rightRenderContext:re,pinnedColumns:q,visibleColumns:t,getCellOffsetStyle:le,getFillers:oe,getColumnHeadersRow:()=>(0,I.jsxs)(O,{role:"row","aria-rowindex":y+1,ownerState:V,className:v.x["row--borderBottom"],children:[te&&ie({position:P.K.LEFT,renderContext:te,maxLastColumn:te.lastColumnIndex},{disableReorder:!0}),ie({renderContext:U,maxLastColumn:t.length-q.right.length}),re&&ie({position:P.K.RIGHT,renderContext:re,maxLastColumn:re.lastColumnIndex},{disableReorder:!0,separatorSide:H.j.Left})]}),getColumnsToRender:ne,getColumnGroupHeadersRows:()=>{if(0===y)return null;const e=[];for(let t=0;t<y;t+=1)e.push((0,I.jsxs)(O,{role:"row","aria-rowindex":t+1,ownerState:V,children:[te&&ae({depth:t,params:{position:P.K.LEFT,renderContext:te,maxLastColumn:te.lastColumnIndex}}),ae({depth:t,params:{renderContext:U}}),re&&ae({depth:t,params:{position:P.K.RIGHT,renderContext:re,maxLastColumn:re.lastColumnIndex}})]},t));return e},isDragging:!!D,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:r,sortColumnLookup:i,filterColumnLookup:s,columnHeaderTabIndexState:w,columnGroupHeaderTabIndexState:C,columnHeaderFocus:y,columnGroupHeaderFocus:A,headerGroupingMaxDepth:R,columnMenuState:S,columnVisibility:T,columnGroupsHeaderStructure:D,hasOtherElementInTabSequence:z});return(0,I.jsxs)(L,(0,n.A)({ref:t},j,N(),{children:[B(),V()]}))})),N=(0,i.n)(j)},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),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=o.forwardRef((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)({ref:t},e,{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:()=>H});var n=r(6614),o=r(83673),l=r(7552),i=r(84421),a=r(59705),s=r(1895),c=r(93878),u=r(24959),d=r(92325),p=r(88519),f=r(76404),g=r(64565),m=r(12274),h=r(29641),b=r(80163),w=r(36155),C=r(89148),v=r(76959),x=r(98571),y=r(4780),A=r(10930),R=r(85290),S=r(69500);const I=(0,u.A)("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),M=e=>parseInt(e.getAttribute("data-colindex"),10),k=l.forwardRef((function(e,t){const r=(0,g.A)(),{slots:o}=r,i=(e=>{const{classes:t}=e;return(0,p.A)({root:["skeletonLoadingOverlay"]},v.B,t)})({classes:r.classes}),a=l.useRef(null),s=(0,d.A)(a,t),u=(0,f.h)(),k=(0,m.Nc)(u,h.z),P=k?.viewportInnerSize.height??0,E=Math.ceil(P/k.rowHeight),F=(0,m.Nc)(u,b.fc),H=(0,m.Nc)(u,b.Sw),O=l.useMemo((()=>H.filter((e=>e<=F)).length),[F,H]),T=(0,m.Nc)(u,b.iv),D=l.useMemo((()=>T.slice(0,O)),[T,O]),z=(0,m.Nc)(u,b.Q1),L=l.useCallback(((e,t,r)=>{const n=(0,x.Y)(r,e,t,H,k);return{[r]:n}}),[k,H]),$=l.useCallback((e=>-1!==z.left.findIndex((t=>t.field===e))?w.K.LEFT:-1!==z.right.findIndex((t=>t.field===e))?w.K.RIGHT:void 0),[z.left,z.right]),j=l.useMemo((()=>{const e=[];for(let t=0;t<E;t+=1){const l=[];for(let e=0;e<D.length;e+=1){const i=D[e],a=$(i.field),s=a===w.K.LEFT,u=a===w.K.RIGHT,d=a?z[a].length:D.length-z.left.length-z.right.length,p=a?z[a].findIndex((e=>e.field===i.field)):e-z.left.length,f=a&&L(i.computedWidth,e,a),g=k.columnsTotalWidth<k.viewportOuterSize.width,m=(0,y.L)(a,p,d,r.showCellVerticalBorder,g),h=(0,y.o)(a,p),b=e===D.length-1,C=u&&0===p,x=C&&g,A=b&&!C&&g,I=k.viewportOuterSize.width-k.columnsTotalWidth,M=Math.max(0,I),P=(0,S.jsx)(o.skeletonCell,{width:M,empty:!0},`skeleton-filler-column-${t}`),E=k.hasScrollY?k.scrollbarSize:0,F=b&&0!==E;x&&l.push(P),l.push((0,S.jsx)(o.skeletonCell,{field:i.field,type:i.type,align:i.align,width:"var(--width)",height:k.rowHeight,"data-colindex":e,className:(0,c.A)(s&&v.x["cell--pinnedLeft"],u&&v.x["cell--pinnedRight"],m&&v.x["cell--withRightBorder"],h&&v.x["cell--withLeftBorder"]),style:(0,n.A)({"--width":`${i.computedWidth}px`},f)},`skeleton-column-${t}-${i.field}`)),A&&l.push(P),F&&l.push((0,S.jsx)(R.t,{pinnedRight:z.right.length>0},`skeleton-scrollbar-filler-${t}`))}e.push((0,S.jsx)("div",{className:(0,c.A)(v.x.row,v.x.rowSkeleton,0===t&&v.x["row--firstVisible"]),children:l},`skeleton-row-${t}`))}return e}),[o,D,z,E,r.showCellVerticalBorder,k.columnsTotalWidth,k.viewportOuterSize.width,k.rowHeight,k.hasScrollY,k.scrollbarSize,$,L]);return(0,C.cz)(u,"columnResize",(e=>{const{colDef:t,width:r}=e,n=a.current?.querySelectorAll(`[data-field="${(0,A.AP)(t.field)}"]`);if(!n)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const o=D.findIndex((e=>e.field===t.field)),l=$(t.field),i=l===w.K.LEFT,s=l===w.K.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=a.current?.querySelectorAll(`.${v.x["cell--pinnedLeft"]}`);e?.forEach((e=>{M(e)>o&&(e.style.left=parseInt(getComputedStyle(e).left,10)-u+"px")}))}if(s){const e=a.current?.querySelectorAll(`.${v.x["cell--pinnedRight"]}`);e?.forEach((e=>{M(e)<o&&(e.style.right=`${parseInt(getComputedStyle(e).right,10)+u}px`)}))}})),(0,S.jsx)(I,(0,n.A)({className:i.root,ref:s},e,{children:j}))}));var P=r(4394);const E=["variant","noRowsVariant","style"],F={"circular-progress":{component:a.A,style:{}},"linear-progress":{component:i.A,style:{display:"block"}},skeleton:{component:k,style:{display:"block"}}},H=l.forwardRef((function(e,t){const{variant:r="circular-progress",noRowsVariant:l="circular-progress",style:i}=e,a=(0,o.A)(e,E),c=(0,f.h)(),u=(0,m.Nc)(c,P.H0),d=F[0===u?l:r];return(0,S.jsx)(s.$,(0,n.A)({ref:t,style:(0,n.A)({},d.style,i)},a,{children:(0,S.jsx)(d.component,{})}))}))},77484:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(6614),o=r(7552),l=r(76404),i=r(1895),a=r(69500);const s=o.forwardRef((function(e,t){const r=(0,l.h)().current.getLocaleText("noRowsLabel");return(0,a.jsx)(i.$,(0,n.A)({ref:t},e,{children:r}))}))},56384:(e,t,r)=>{"use strict";r.d(t,{h:()=>m});var n=r(6614),o=r(7552),l=r(51148),i=r(8565),a=r(85663),s=r(12274),c=r(76404),u=r(64565),d=r(24940),p=r(69500);const f=(0,l.Ay)(i.A)((({theme:e})=>({maxHeight:"calc(100% + 1px)",[`& .${a.A.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${a.A.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),g=({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}`}`,m=o.forwardRef((function(e,t){const r=(0,c.h)(),l=(0,u.A)(),i=(0,s.Nc)(r,d.lN),a=(0,s.Nc)(r,d.H2),m=(0,s.Nc)(r,d.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,m-1)),[m]),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||g,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,p.jsx)(f,(0,n.A)({ref:t,component:"div",count:a,page:x,rowsPerPageOptions:R,rowsPerPage:i.pageSize,onPageChange:A,onRowsPerPageChange:y},C,S,{labelDisplayedRows:I},e))}))},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(92325),s=r(46345),c=r(10176),u=r(76404),d=r(76959),p=r(88519),f=r(64565),g=r(80163),m=r(12274),h=r(23392),b=r(10930),w=r(92179),C=r(65325),v=r(59340),x=r(43026),y=r(4394),A=r(62185),R=r(33360),S=r(85290),I=r(98571),M=r(68337),k=r(69500);const P=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function E({width:e}){return e?(0,k.jsx)("div",{role:"presentation",className:(0,i.A)(d.x.cell,d.x.cellEmpty),style:{"--width":`${e}px`}}):null}const F=l.forwardRef((function(e,t){const{selected:r,rowId:s,row:F,index:H,style:O,rowHeight:T,className:D,visibleColumns:z,pinnedColumns:L,offsetLeft:$,dimensions:j,renderContext:N,focusedColumnIndex:V,isFirstVisible:B,isLastVisible:G,isNotVisible:W,showBottomBorder:_,onClick:U,onDoubleClick:q,onMouseEnter:K,onMouseLeave:X,onMouseOut:Y,onMouseOver:Z}=e,Q=(0,o.A)(e,P),J=(0,u.h)(),ee=(0,M.Q)(),te=l.useRef(null),re=(0,f.A)(),ne=(0,h.h)(J,re),oe=(0,m.Nc)(J,x.XU),le=(0,m.Nc)(J,y.V2),ie=(0,m.Nc)(J,g.Sw),ae=(0,m.Nc)(J,A.w),se=(0,a.A)(te,t),ce=J.current.getRowNode(s),ue=j.hasScrollY?j.scrollbarSize:0,de=j.columnsTotalWidth<j.viewportOuterSize.width,pe=J.current.getRowMode(s)===c.V_.Edit,fe=re.editMode===c.RL.Row,ge=void 0!==V,me=ge&&V>=L.left.length&&V<N.firstColumnIndex,he=ge&&V<z.length-L.right.length&&V>=N.lastColumnIndex,be=function(e,t){return(0,p.A)(t,d.B,e)}(re.classes,{root:["row",r&&"selected",fe&&"row--editable",pe&&"row--editing",B&&"row--firstVisible",G&&"row--lastVisible",_&&"row--borderBottom","auto"===T&&"row--dynamicHeight"]}),we=ee.hooks.useGridRowAriaAttributes();l.useLayoutEffect((()=>{if(ne.range){const e=J.current.getRowIndexRelativeToVisibleRows(s);null!=e&&J.current.unstable_setLastMeasuredRowIndex(e)}const e=te.current;if(!e||"auto"!==T||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver((e=>{const[t]=e,r=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;J.current.unstable_storeRowHeightMeasurement(s,r)}));return t.observe(e),()=>t.disconnect()}),[J,ne.range,H,T,s]);const Ce=l.useCallback(((e,t)=>r=>{(0,b.TA)(r)||J.current.getRow(s)&&(J.current.publishEvent(e,J.current.getRowParams(s),r),t&&t(r))}),[J,s]),ve=l.useCallback((e=>{const t=(0,b.fl)(e.target,d.x.cell),r=t?.getAttribute("data-field");if(r){if(r===w.f.field)return;if(r===v.U)return;if("__reorder__"===r)return;if(J.current.getCellMode(s,r)===c.bs.Edit)return;const e=J.current.getColumn(r);if(e?.type===C.D)return}Ce("rowClick",U)(e)}),[J,U,Ce,s]),{slots:xe,slotProps:ye,disableColumnReorder:Ae}=re,Re=re.rowReordering,Se=(0,m.Nc)(J,(()=>(0,n.A)({},J.current.unstable_getRowInternalSizes(s))),m.TJ);let Ie=T;if("auto"===Ie&&Se){const e=1,t=Se.baseCenter??0;t>0&&e>1&&(Ie=t)}const Me=l.useMemo((()=>{if(W)return{opacity:0,width:0,height:0};const e=(0,n.A)({},O,{maxHeight:"auto"===T?"none":T,minHeight:Ie,"--height":"number"==typeof T?`${T}px`:T});if(Se?.spacingTop&&(e["border"===re.rowSpacingType?"borderTopWidth":"marginTop"]=Se.spacingTop),Se?.spacingBottom){const t="border"===re.rowSpacingType?"borderBottomWidth":"marginBottom";let r=e[t];"number"!=typeof r&&(r=parseInt(r||"0",10)),r+=Se.spacingBottom,e[t]=r}return e}),[W,T,O,Ie,Se,re.rowSpacingType]),ke=J.current.unstable_applyPipeProcessors("rowClassName",[],s),Pe=ce?we(ce,H):void 0;if("function"==typeof re.getRowClassName){const e=H-(ne.range?.firstRowIndex||0),t=(0,n.A)({},J.current.getRowParams(s),{isFirstVisible:0===e,isLastVisible:e===ne.rows.length-1,indexRelativeToCurrentPage:e});ke.push(re.getRowClassName(t))}const Ee=(e,t,r,o,l=R.UP.NONE)=>{const i=J.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)(R.gB[l],e.computedWidth,r,ie,j);if("skeletonRow"===ce?.type)return(0,k.jsx)(xe.skeletonCell,{type:e.type,width:a,height:T,field:e.field,align:e.align},e.field);const d=ae[s]?.[e.field]??null,p="__reorder__"===e.field,f=Object.keys(ae).length>0,g=!(Ae||e.disableReorder),m=Re&&!oe.length&&le<=1&&!f,h=!(g||p&&m),b=l===R.UP.VIRTUAL;return(0,k.jsx)(xe.cell,(0,n.A)({column:e,width:a,rowId:s,align:e.align||"left",colIndex:r,colSpan:c,disableDragEvents:h,editCellState:d,isNotVisible:b,pinnedOffset:u,pinnedPosition:l,sectionIndex:t,sectionLength:o,gridHasFiller:de},ye?.cell),e.field)};if(!ce)return null;const Fe=L.left.map(((e,t)=>Ee(e,t,t,L.left.length,R.UP.LEFT))),He=L.right.map(((e,t)=>{const r=z.length-L.right.length+t;return Ee(e,t,r,L.right.length,R.UP.RIGHT)})),Oe=z.length-L.left.length-L.right.length,Te=[];me&&Te.push(Ee(z[V],V-L.left.length,V,Oe,R.UP.VIRTUAL));for(let e=N.firstColumnIndex;e<N.lastColumnIndex;e+=1){const t=z[e],r=e-L.left.length;Te.push(Ee(t,r,e,Oe))}he&&Te.push(Ee(z[V],V-L.left.length,V,Oe,R.UP.VIRTUAL));const De=F?{onClick:ve,onDoubleClick:Ce("rowDoubleClick",q),onMouseEnter:Ce("rowMouseEnter",K),onMouseLeave:Ce("rowMouseLeave",X),onMouseOut:Ce("rowMouseOut",Y),onMouseOver:Ce("rowMouseOver",Z)}:null,ze=j.viewportOuterSize.width-j.columnsTotalWidth-ue,Le=Math.max(0,ze);return(0,k.jsxs)("div",(0,n.A)({ref:se,"data-id":s,"data-rowindex":H,role:"row",className:(0,i.A)(...ke,be.root,D),style:Me},Pe,De,Q,{children:[Fe,(0,k.jsx)("div",{role:"presentation",className:d.x.cellOffsetLeft,style:{width:$}}),Te,Le>0&&(0,k.jsx)(E,{width:Le}),He.length>0&&(0,k.jsx)("div",{role:"presentation",className:d.x.filler}),He,0!==ue&&(0,k.jsx)(S.t,{pinnedRight:L.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),i=r(93878),a=r(88519),s=r(24959),c=r(76404),u=r(76959),d=r(64565),p=r(69500);const f=["className","rowCount","visibleRowCount"],g=(0,s.A)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)}))),m=l.forwardRef((function(e,t){const{className:r,rowCount:l,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,a.A)({root:["rowCount"]},u.B,t)})(b);if(0===l)return null;const C=s<l?h.current.getLocaleText("footerTotalVisibleRows")(s,l):l.toLocaleString();return(0,p.jsxs)(g,(0,n.A)({ref:t,className:(0,i.A)(w.root,r),ownerState:b},m,{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),i=r(93878),a=r(88519),s=r(24959),c=r(76404),u=r(76959),d=r(64565),p=r(69500);const f=["className","selectedRowCount"],g=(0,s.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=l.forwardRef((function(e,t){const{className:r,selectedRowCount:l}=e,s=(0,o.A)(e,f),m=(0,c.h)(),h=(0,d.A)(),b=(e=>{const{classes:t}=e;return(0,a.A)({root:["selectedRowCount"]},u.B,t)})(h),w=m.current.getLocaleText("footerRowSelected")(l);return(0,p.jsx)(g,(0,n.A)({ref:t,className:(0,i.A)(b.root,r),ownerState:h},s,{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:()=>C});var n=r(6614),o=(r(7552),r(24959)),l=r(88519),i=r(93878),a=r(12274),s=r(29641),c=r(76404),u=r(64565),d=r(23392),p=r(59458),f=r(76959),g=r(69500);const m=(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}:{})),h=(0,o.A)("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e,overridesResolver:(e,t)=>t.overlayWrapperInner})({}),b=e=>{const{classes:t}=e;return(0,l.A)({root:["overlayWrapper"],inner:["overlayWrapperInner"]},f.B,t)};function w(e){const t=(0,c.h)(),r=(0,u.A)(),o=(0,d.h)(t,r),l=(0,a.Nc)(t,s.z);let f=l.viewportOuterSize.height-l.topContainerHeight-l.bottomContainerHeight-(l.hasScrollX?l.scrollbarSize:0);(r.autoHeight&&0===o.rows.length||0===f)&&(f=(0,p.OM)(t));const w=b((0,n.A)({},e,{classes:r.classes}));return(0,g.jsx)(m,(0,n.A)({className:(0,i.A)(w.root)},e,{children:(0,g.jsx)(h,(0,n.A)({className:(0,i.A)(w.inner),style:{height:f,width:l.viewportOuterSize.width}},e))}))}function C(e){const{overlayType:t}=e,r=(0,u.A)();if(!t)return null;const o=r.slots?.[t],l=r.slotProps?.[t];return(0,g.jsx)(w,(0,n.A)({},e,{children:(0,g.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(93876),s=r(57377),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)},j=e=>t=>{P.current[e]=t},N=(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:j(t),onClick:N(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:()=>{R(!0),y(L-1),k.current=!0},touchRippleRef:j(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:()=>m,n:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(88519),a=r(76959),s=r(64565),c=r(76404),u=r(59458),d=r(69500);const p=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"];function f(e){const{value:t}=e,r=(0,o.A)(e,p),u=(0,c.h)(),f=(0,s.A)(),g=(e=>{const{classes:t}=e;return(0,i.A)({root:["booleanCell"]},a.B,t)})({classes:f.classes}),m=l.useMemo((()=>t?f.slots.booleanCellTrueIcon:f.slots.booleanCellFalseIcon),[f.slots.booleanCellFalseIcon,f.slots.booleanCellTrueIcon,t]);return(0,d.jsx)(m,(0,n.A)({fontSize:"small",className:g.root,titleAccess:u.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))}const g=l.memo(f),m=e=>"__row_group_by_columns_group__"!==e.field&&(0,u.nF)(e.rowNode)?"":(0,d.jsx)(g,(0,n.A)({},e))},33360:(e,t,r)=>{"use strict";r.d(t,{LX:()=>E,UP:()=>I,gB:()=>M});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(17505),s=r(88519),c=r(92325),u=r(75041),d=r(46345),p=r(93876);let f;var g=r(76959),m=r(10176),h=r(12274),b=r(76404),w=r(64565),C=r(15665),v=r(4780),x=r(36155),y=r(92442),A=r(69500);const R=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],S=["changeReason","unstable_updateValueOnRender"];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}({});const M={[I.LEFT]:x.K.LEFT,[I.RIGHT]:x.K.RIGHT,[I.NONE]:void 0,[I.VIRTUAL]:void 0},k={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:m.bs.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},P=l.forwardRef((function(e,t){const{column:r,rowId:d,editCellState:x,align:P,colIndex:E,width:F,className:H,style:O,colSpan:T,disableDragEvents:D,isNotVisible:z,pinnedOffset:L,pinnedPosition:$,sectionIndex:j,sectionLength:N,gridHasFiller:V,onClick:B,onDoubleClick:G,onMouseDown:W,onMouseUp:_,onMouseOver:U,onKeyDown:q,onKeyUp:K,onDragEnter:X,onDragOver:Y}=e,Z=(0,o.A)(e,R),Q=(0,b.h)(),J=(0,w.A)(),ee=(0,p.I)(),te=r.field,re=(0,h.Nc)(Q,(()=>{try{const e=Q.current.getCellParams(d,te);return e.api=Q.current,e}catch(e){if(e instanceof C.W)return k;throw e}}),h.TJ),ne=(0,h.Nc)(Q,(()=>Q.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:d,field:te}))),oe=(0,h.Nc)(Q,y.xX),le=(0,h.Nc)(Q,y.ET),{cellMode:ie,hasFocus:ae,isEditable:se=!1,value:ce}=re,ue="actions"===r.type&&r.getActions?.(Q.current.getRowParams(d)).some((e=>!e.props.disabled)),de="view"!==ie&&se||ue?-1:re.tabIndex,{classes:pe,getCellClassName:fe}=J,ge=[(0,h.Nc)(Q,(()=>Q.current.unstable_applyPipeProcessors("cellClassName",[],{id:d,field:te}).filter(Boolean).join(" ")))];r.cellClassName&&ge.push("function"==typeof r.cellClassName?r.cellClassName(re):r.cellClassName),"flex"===r.display&&ge.push(g.x["cell--flex"]),fe&&ge.push(fe(re));const me=re.formattedValue??ce,he=l.useRef(null),be=(0,c.A)(t,he),we=l.useRef(null),Ce=J.cellSelection??!1,ve=M[$],xe=(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===I.LEFT&&"cell--pinnedLeft",o===I.RIGHT&&"cell--pinnedRight",c&&!l&&"cell--selectionMode"]};return(0,s.A)(d,g.B,u)})({align:P,showLeftBorder:(0,v.o)(ve,j),showRightBorder:(0,v.L)(ve,j,N,J.showCellVerticalBorder,V),isEditable:se,classes:J.classes,pinnedPosition:$,isSelected:ne,isSelectionMode:Ce}),ye=l.useCallback((e=>t=>{const r=Q.current.getCellParams(d,te||"");Q.current.publishEvent(e,r,t),_&&_(t)}),[Q,te,_,d]),Ae=l.useCallback((e=>t=>{const r=Q.current.getCellParams(d,te||"");Q.current.publishEvent(e,r,t),W&&W(t)}),[Q,te,W,d]),Re=l.useCallback(((e,t)=>r=>{if(!Q.current.getRow(d))return;const n=Q.current.getCellParams(d,te||"");Q.current.publishEvent(e,n,r),t&&t(r)}),[Q,te,d]),Se=oe[d]?.[te]??!1,Ie=le[d]?.[te]??1,Me=l.useMemo((()=>{if(z)return{padding:0,opacity:0,width:0,border:0};const e=(0,n.A)({"--width":`${F}px`},O),t=$===I.LEFT,r=$===I.RIGHT;if(t||r){let r=t?"left":"right";ee&&(r=t?"right":"left"),e[r]=L}return Ie>1&&(e.height=`calc(var(--height) * ${Ie})`,e.zIndex=5),e}),[F,z,O,L,$,ee,Ie]);if(l.useEffect((()=>{if(!ae||ie===m.bs.Edit)return;const e=(0,u.A)(Q.current.rootElementRef.current);if(he.current&&!he.current.contains(e.activeElement)){const e=he.current.querySelector('[tabindex="0"]'),t=we.current||e||he.current;if(void 0===f&&document.createElement("div").focus({get preventScroll(){return f=!0,!1}}),f)t.focus({preventScroll:!0});else{const e=Q.current.getScrollPosition();t.focus(),Q.current.scroll(e)}}}),[ae,ie,Q]),Se)return(0,A.jsx)("div",{"data-colindex":E,role:"presentation",style:(0,n.A)({},Me,{minWidth:"var(--width)",maxWidth:"var(--width)"})});if(re===k)return null;let ke,Pe,Ee=Z.onFocus;if(null===x&&r.renderCell&&(ke=r.renderCell(re)),null!==x&&r.renderEditCell){const e=Q.current.getRowWithUpdatedValues(d,r.field),t=(0,o.A)(x,S),l=r.valueFormatter?r.valueFormatter(x.value,e,r,Q):re.formattedValue,i=(0,n.A)({},re,{row:e,formattedValue:l},t);ke=r.renderEditCell(i),ge.push(g.x["cell--editing"]),ge.push(pe?.["cell--editing"])}if(void 0===ke){const e=me?.toString();ke=e,Pe=e}l.isValidElement(ke)&&ue&&(ke=l.cloneElement(ke,{focusElementRef:we}));const Fe=D?null:{onDragEnter:Re("cellDragEnter",X),onDragOver:Re("cellDragOver",Y)};return(0,A.jsx)("div",(0,n.A)({ref:be,className:(0,i.A)(H,ge,xe.root),role:"gridcell","data-field":te,"data-colindex":E,"aria-colindex":E+1,"aria-colspan":T,"aria-rowspan":Ie,style:Me,title:Pe,tabIndex:de,onClick:Re("cellClick",B),onDoubleClick:Re("cellDoubleClick",G),onMouseOver:Re("cellMouseOver",U),onMouseDown:Ae("cellMouseDown"),onMouseUp:ye("cellMouseUp"),onKeyDown:Re("cellKeyDown",q),onKeyUp:Re("cellKeyUp",K)},Fe,Z,{onFocus:Ee,children:ke}))})),E=(0,d.n)(P)},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(88519),s=r(57377),c=r(40053),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(88519),a=r(40053),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(),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:()=>h,j:()=>b});var n=r(83673),o=r(6614),l=r(7552),i=r(88519),a=r(40053),s=r(51148),c=r(98879),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","isValidating","debounceMs","isProcessingProps","onValueChange"],m=(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%"}}))),h=l.forwardRef(((e,t)=>{const r=(0,d.A)(),{id:s,value:c,field:h,colDef:b,hasFocus:w,debounceMs:C=200,isProcessingProps:v,onValueChange:x}=e,y=(0,n.A)(e,g),A=(0,p.h)(),R=l.useRef(),[S,I]=l.useState(c),M=(e=>{const{classes:t}=e;return(0,i.A)({root:["editInputCell"]},u.B,t)})(r),k=l.useCallback((async e=>{const t=e.target.value;x&&await x(e,t);const r=A.current.getColumn(h);let n=t;r.valueParser&&(n=r.valueParser(t,A.current.getRow(s),r,A)),I(n),A.current.setEditCellValue({id:s,field:h,value:n,debounceMs:C,unstable_skipValueParser:!0},e)}),[A,C,h,s,x]),P=A.current.unstable_getEditCellMeta(s,h);return l.useEffect((()=>{"debouncedSetEditCellValue"!==P?.changeReason&&I(c)}),[P,c]),(0,a.A)((()=>{w&&R.current.focus()}),[w]),(0,f.jsx)(m,(0,o.A)({ref:t,inputRef:R,className:M.root,ownerState:r,fullWidth:!0,type:"number"===b.type?b.type:"text",value:S??"",onChange:k,endAdornment:v?(0,f.jsx)(r.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},y))})),b=e=>(0,f.jsx)(h,(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(40053),a=r(88729),s=r(64565),c=r(10176),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(),I=l.useRef(),[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(17505),c=r(88519),u=r(46345),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:()=>b});var n=r(6614),o=r(7552),l=r(88519),i=r(57377),a=r(84885),s=r(12274),c=r(38577),u=r(48534),d=r(76404),p=r(76959),f=r(64565),g=r(71481),m=r(69500);const h=e=>{const{classes:t}=e;return(0,l.A)({icon:["filterIcon"]},p.B,t)};function b(e){const{counter:t,field:r,onClick:l}=e,p=(0,d.h)(),b=(0,f.A)(),w=(0,n.A)({},e,{classes:b.classes}),C=h(w),v=(0,s.Nc)(p,c._),x=(0,i.A)(),y=(0,i.A)(),A=o.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=(0,c._)(p.current.state);t&&n===u.y.filters?p.current.hideFilterPanel():p.current.showFilterPanel(void 0,y,x),l&&l(p.current.getColumnHeaderParams(r),e)}),[p,r,l,y,x]);if(!t)return null;const R=v.open&&v.labelId===x,S=(0,m.jsx)(b.slots.baseIconButton,(0,n.A)({id:x,onClick:A,color:"default","aria-label":p.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":R,"aria-controls":R?y:void 0},b.slotProps?.baseIconButton,{children:(0,m.jsx)(b.slots.columnFilteredIcon,{className:C.icon,fontSize:"small"})}));return(0,m.jsx)(b.slots.baseTooltip,(0,n.A)({title:p.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},b.slotProps?.baseTooltip,{children:(0,m.jsxs)(g.r,{children:[t>1&&(0,m.jsx)(a.A,{badgeContent:t,color:"default",children:S}),1===t&&S]})}))}},86775:(e,t,r)=>{"use strict";r.d(t,{d:()=>C});var n=r(6614),o=r(7552),l=r(93878),i=r(88519),a=r(57377),s=r(46345),c=r(71115),u=r(76404),d=r(76959),p=r(64565),f=r(69500);const g=o.memo((e=>{const{colDef:t,open:r,columnMenuId:l,columnMenuButtonId:a,iconButtonRef:s}=e,c=(0,u.h)(),g=(0,p.A)(),m=(e=>{const{classes:t,open:r}=e,n={root:["menuIcon",r&&"menuOpen"],button:["menuIconButton"]};return(0,i.A)(n,d.B,t)})((0,n.A)({},e,{classes:g.classes})),h=o.useCallback((e=>{e.preventDefault(),e.stopPropagation(),c.current.toggleColumnMenu(t.field)}),[c,t.field]);return(0,f.jsx)("div",{className:m.root,children:(0,f.jsx)(g.slots.baseTooltip,(0,n.A)({title:c.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},g.slotProps?.baseTooltip,{children:(0,f.jsx)(g.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},g.slotProps?.baseIconButton,{children:(0,f.jsx)(g.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})}));var m=r(42386),h=r(50796),b=r(10930),w=r(4780);const C=(0,s.n)((function(e){const{colDef:t,columnMenuOpen:r,colIndex:s,headerHeight:u,isResizing:C,isLast:v,sortDirection:x,sortIndex:y,filterItemsCounter:A,hasFocus:R,tabIndex:S,disableReorder:I,separatorSide:M,style:k,pinnedPosition:P,indexInSection:E,sectionLength:F,gridHasFiller:H}=e,O=(0,c.E)(),T=(0,p.A)(),D=o.useRef(null),z=(0,a.A)(),L=(0,a.A)(),$=o.useRef(null),[j,N]=o.useState(r),V=o.useMemo((()=>!T.disableColumnReorder&&!I&&!t.disableReorder),[T.disableColumnReorder,I,t.disableReorder]);let B;t.renderHeader&&(B=t.renderHeader(O.current.getColumnHeaderParams(t.field)));const G=(0,w.o)(P,E),W=(0,w.L)(P,E,F,T.showColumnVerticalBorder,H),_=(e=>{const{colDef:t,classes:r,isDragging:n,sortDirection:o,showRightBorder:l,showLeftBorder:a,filterItemsCounter:s,pinnedPosition:c,isLastUnpinned:u,isSiblingFocused:p}=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","left"===c&&"columnHeader--pinnedLeft","right"===c&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",p&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,i.A)(h,d.B,r)})((0,n.A)({},e,{classes:T.classes,showRightBorder:W,showLeftBorder:G})),U=o.useCallback((e=>r=>{(0,b.TA)(r)||O.current.publishEvent(e,O.current.getColumnHeaderParams(t.field),r)}),[O,t.field]),q=o.useMemo((()=>({onClick:U("columnHeaderClick"),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((()=>V?{onDragStart:U("columnHeaderDragStart"),onDragEnter:U("columnHeaderDragEnter"),onDragOver:U("columnHeaderDragOver"),onDragEnd:U("columnHeaderDragEnd")}:{}),[V,U]),X=o.useMemo((()=>({onMouseDown:U("columnSeparatorMouseDown"),onDoubleClick:U("columnSeparatorDoubleClick")})),[U]);o.useEffect((()=>{j||N(r)}),[j,r]);const Y=o.useCallback((()=>{N(!1)}),[]),Z=!T.disableColumnMenu&&!t.disableColumnMenu&&(0,f.jsx)(g,{colDef:t,columnMenuId:z,columnMenuButtonId:L,open:j,iconButtonRef:$}),Q=(0,f.jsx)(m.H,{columnMenuId:z,columnMenuButtonId:L,field:t.field,open:r,target:$.current,ContentComponent:T.slots.columnMenu,contentComponentProps:T.slotProps?.columnMenu,onExited:Y}),J=t.sortingOrder??T.sortingOrder,ee=(t.sortable||null!=x)&&!t.hideSortIcons&&!T.disableColumnSorting,te=(0,f.jsxs)(o.Fragment,{children:[!T.disableColumnFilter&&(0,f.jsx)(T.slots.columnHeaderFilterIconButton,(0,n.A)({field:t.field,counter:A},T.slotProps?.columnHeaderFilterIconButton)),ee&&(0,f.jsx)(T.slots.columnHeaderSortIcon,(0,n.A)({field:t.field,direction:x,index:y,sortingOrder:J,disabled:!t.sortable},T.slotProps?.columnHeaderSortIcon))]});o.useLayoutEffect((()=>{const e=O.current.state.columnMenu;if(R&&!e.open){const e=D.current.querySelector('[tabindex="0"]')||D.current;e?.focus(),O.current.columnHeadersContainerRef?.current&&(O.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[O,R]);const re="function"==typeof t.headerClassName?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,ne=t.headerName??t.field;return(0,f.jsx)(h.a,(0,n.A)({ref:D,classes:_,columnMenuOpen:r,colIndex:s,height:u,isResizing:C,sortDirection:x,hasFocus:R,tabIndex:S,separatorSide:M,isDraggable:V,headerComponent:B,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:Z,columnTitleIconButtons:te,headerClassName:(0,l.A)(re,v&&d.x["columnHeader--last"]),label:ne,resizable:!T.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:Q,draggableContainerProps:K,columnHeaderSeparatorProps:X,style:k},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(17505),a=r(88519),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:()=>m});var n=r(83673),o=r(6614),l=r(7552),i=r(88519),a=r(84885),s=r(76404),c=r(76959),u=r(64565),d=r(71481),p=r(69500);const f=["direction","index","sortingOrder","disabled"];function g(e){const{direction:t,index:r,sortingOrder:l,disabled:g}=e,m=(0,n.A)(e,f),h=(0,s.h)(),b=(0,u.A)(),w=(e=>{const{classes:t}=e;return(0,i.A)({icon:["sortIcon"]},c.B,t)})((0,o.A)({},e,{classes:b.classes})),C=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,p.jsx)(l,(0,o.A)({fontSize:"small",className:r},i)):null}(b.slots,t,w.icon,l);if(!C)return null;const v=(0,p.jsx)(b.slots.baseIconButton,(0,o.A)({tabIndex:-1,"aria-label":h.current.getLocaleText("columnHeaderSortIconLabel"),title:h.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:g},b.slotProps?.baseIconButton,m,{children:C}));return(0,p.jsxs)(d.r,{children:[null!=r&&(0,p.jsx)(a.A,{badgeContent:r,color:"default",overlap:"circular",children:v}),null==r&&v]})}const m=l.memo(g)},87038:(e,t,r)=>{"use strict";r.d(t,{_:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(88519),s=r(24959),c=r(10930),u=r(76959),d=r(64565),p=r(69500);const f=["className","aria-label"],g=(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"}),m=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,f),s=(0,d.A)(),c=(e=>{const{classes:t}=e;return(0,a.A)({root:["columnHeaderTitle"]},u.B,t)})(s);return(0,p.jsx)(g,(0,n.A)({ref:t,className:(0,i.A)(c.root,r),ownerState:s},l))}));function h(e){const{label:t,description:r}=e,o=(0,d.A)(),i=l.useRef(null),[a,s]=l.useState(""),u=l.useCallback((()=>{if(!r&&i?.current){const e=(0,c.Dy)(i.current);s(e?t:"")}}),[r,t]);return(0,p.jsx)(o.slots.baseTooltip,(0,n.A)({title:r||a},o.slotProps?.baseTooltip,{children:(0,p.jsx)(m,{onMouseOver:u,ref:i,children:t})}))}},50796:(e,t,r)=>{"use strict";r.d(t,{a:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(92325),s=r(71115),c=r(87038),u=r(38975),d=r(64565),p=r(69500);const f=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],g=l.forwardRef((function(e,t){const{classes:r,colIndex:g,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,f),D=(0,s.E)(),z=(0,d.A)(),L=l.useRef(null),$=(0,a.A)(L,t);let j="none";return null!=b&&(j="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,p.jsxs)("div",(0,n.A)({ref:$,className:(0,i.A)(r.root,k),style:(0,n.A)({},O,{height:m,width:R}),role:"columnheader",tabIndex:C,"aria-colindex":g+1,"aria-sort":j},T,{children:[(0,p.jsxs)("div",(0,n.A)({className:r.draggableContainer,draggable:x,role:"presentation"},F,{children:[(0,p.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,p.jsx)("div",{className:r.titleContainerContent,children:void 0!==y?y:(0,p.jsx)(c._,{label:P,description:A,columnWidth:R})}),M]}),S]})),(0,p.jsx)(u.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),i=r(93878),a=r(88519),s=r(24959),c=r(76959),u=r(64565),d=r(69500);const p=["className"],f=(0,s.A)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),g=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,p),s=(0,u.A)(),g=(e=>{const{classes:t}=e;return(0,a.A)({root:["iconButtonContainer"]},c.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({ref:t,className:(0,i.A)(g.root,r),ownerState:s},l))}))},17279:(e,t,r)=>{"use strict";r.d(t,{c:()=>f,r:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(88519),a=r(92325),s=r(76404),c=r(64565),u=r(76959),d=r(69500);const p=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],f=l.forwardRef((function(e,t){const{field:r,id:f,value:g,rowNode:m,hasFocus:h,tabIndex:b}=e,w=(0,o.A)(e,p),C=(0,s.h)(),v=(0,c.A)(),x=(e=>{const{classes:t}=e;return(0,i.A)({root:["checkboxInput"]},u.B,t)})({classes:v.classes}),y=l.useRef(null),A=l.useRef(null),R=(0,a.A)(y,t);l.useLayoutEffect((()=>{if(0===b){const e=C.current.getCellElement(f,r);e&&(e.tabIndex=-1)}}),[C,b,f,r]),l.useEffect((()=>{if(h){const e=y.current?.querySelector("input");e?.focus({preventScroll:!0})}else A.current&&A.current.stop({})}),[h]);const S=l.useCallback((e=>{" "===e.key&&e.stopPropagation()}),[]);if("footer"===m.type||"pinnedRow"===m.type)return null;const I=C.current.isRowSelectable(f),M=C.current.getLocaleText(g?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,d.jsx)(v.slots.baseCheckbox,(0,n.A)({ref:R,tabIndex:b,checked:g,onChange:e=>{const t={value:e.target.checked,id:f};C.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:x.root,inputProps:{"aria-label":M},onKeyDown:S,disabled:!I,touchRippleRef:A},v.slotProps?.baseCheckbox,w))})),g=f},83861:(e,t,r)=>{"use strict";r.d(t,{J:()=>w});var n=r(6614),o=r(83673),l=r(7552),i=r(88519),a=r(41222),s=r(12274),c=r(3247),u=r(82188),d=r(76404),p=r(76959),f=r(64565),g=r(2220),m=r(24940),h=r(69500);const b=["field","colDef"],w=l.forwardRef((function(e,t){const r=(0,o.A)(e,b),[,w]=l.useState(!1),C=(0,d.h)(),v=(0,f.A)(),x=(e=>{const{classes:t}=e;return(0,i.A)({root:["checkboxInput"]},p.B,t)})({classes:v.classes}),y=(0,s.Nc)(C,c.Kr),A=(0,s.Nc)(C,u.Bi),R=(0,s.Nc)(C,g.ux),S=(0,s.Nc)(C,m.ee),I=l.useMemo((()=>"function"!=typeof v.isRowSelectable?A:A.filter((e=>!!C.current.getRow(e)&&v.isRowSelectable(C.current.getRowParams(e))))),[C,v.isRowSelectable,A]),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((()=>{w((e=>!e))}),[]);l.useEffect((()=>C.current.subscribeEvent("rowSelectionChange",O)),[C,O]);const T=C.current.getLocaleText(E?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows"),D="select"===v.indeterminateCheckboxAction?E&&!P:E;return(0,h.jsx)(v.slots.baseCheckbox,(0,n.A)({ref:t,indeterminate:P,checked:D,onChange:e=>{const t={value:e.target.checked};C.current.publishEvent("headerSelectionCheckboxChange",t)},className:x.root,inputProps:{"aria-label":T},tabIndex:F,onKeyDown:H,disabled:!(0,a.c)(v)},v.slotProps?.baseCheckbox,r))}))},36014:(e,t,r)=>{"use strict";r.d(t,{D:()=>C});var n=r(6614),o=r(7552),l=r(88519),i=r(33371),a=r(51148),s=r(80163),c=r(12274),u=r(76404),d=r(64565),p=r(76959),f=r(49891);const g=(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},m=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;var h=r(69500);const b=e=>{const{classes:t}=e;return(0,l.A)({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},p.B,t)},w=new Intl.Collator;function C(e){const t=(0,u.h)(),r=o.useRef(null),l=(0,c.Nc)(t,s.OV),a=(0,f.A)((()=>(0,s.FY)(t))).current,p=(0,c.Nc)(t,s.FY),C=(0,d.A)(),[R,S]=o.useState(""),I=b(C),{sort:M,searchPredicate:k=m,autoFocusSearchField:P=!0,disableShowHideToggle:E=!1,disableResetButton:F=!1,toggleAllMode:H="all",getTogglableColumns:O}=e,T=o.useMemo((()=>g(p,a)),[p,a]),D=o.useMemo((()=>{switch(M){case"asc":return[...l].sort(((e,t)=>w.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...l].sort(((e,t)=>-w.compare(e.headerName||e.field,t.headerName||t.field)));default:return l}}),[l,M]),z=e=>{const{name:r}=e.target;t.current.setColumnVisibility(r,!1===p[r])},L=o.useMemo((()=>{const e=O?O(D):null,t=e?D.filter((({field:t})=>e.includes(t))):D;return R?t.filter((e=>k(e,R.toLowerCase()))):t}),[D,R,k,O]),$=o.useCallback((e=>{const r=(0,s.FY)(t),o=(0,n.A)({},r),i=O?O(l):null;return("filteredOnly"===H?L: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,O,H,L]),j=o.useCallback((e=>{S(e.target.value)}),[]),N=o.useMemo((()=>L.filter((e=>e.hideable))),[L]),V=o.useMemo((()=>N.every((e=>null==p[e.field]||!1!==p[e.field]))),[p,N]),B=o.useMemo((()=>N.every((e=>!1===p[e.field]))),[p,N]),G=o.useRef(null);o.useEffect((()=>{P?r.current.focus():G.current&&"function"==typeof G.current.focus&&G.current.focus()}),[P]);let W=!1;const _=e=>!1===W&&!1!==e.hideable&&(W=!0,!0);return(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)(x,{className:I.header,ownerState:C,children:(0,h.jsx)(C.slots.baseTextField,(0,n.A)({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:r,value:R,onChange:j,variant:"outlined",size:"small",InputProps:{startAdornment:(0,h.jsx)(C.slots.baseInputAdornment,{position:"start",children:(0,h.jsx)(C.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},C.slotProps?.baseTextField))}),(0,h.jsxs)(v,{className:I.root,ownerState:C,children:[L.map((e=>(0,h.jsx)(i.A,{className:I.row,control:(0,h.jsx)(C.slots.baseCheckbox,(0,n.A)({disabled:!1===e.hideable,checked:!1!==p[e.field],onClick:z,name:e.field,sx:{p:.5},inputRef:_(e)?G:void 0},C.slotProps?.baseCheckbox)),label:e.headerName||e.field},e.field))),0===L.length&&(0,h.jsx)(A,{ownerState:C,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),E&&F||!(L.length>0)?null:(0,h.jsxs)(y,{ownerState:C,className:I.footer,children:[E?(0,h.jsx)("span",{}):(0,h.jsx)(i.A,{control:(0,h.jsx)(C.slots.baseCheckbox,(0,n.A)({disabled:0===N.length,checked:V,indeterminate:!V&&!B,onClick:()=>$(!V),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},C.slotProps?.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),F?null:(0,h.jsx)(C.slots.baseButton,(0,n.A)({onClick:()=>t.current.setColumnVisibilityModel(a),disabled:T},C.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]})]})}const v=(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"}))),x=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})((({theme:e})=>({padding:e.spacing(1.5,3)}))),y=(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}`}))),A=(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),i=r(93878),a=r(88519),s=r(24959),c=r(76959),u=r(64565),d=r(69500);const p=["className"],f=(0,s.A)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),g=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,p),s=(0,u.A)(),g=(e=>{const{classes:t}=e;return(0,a.A)({root:["footerContainer","withBorderColor"]},c.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({ref:t,className:(0,i.A)(g.root,r),ownerState:s},l))}))},1895:(e,t,r)=>{"use strict";r.d(t,{$:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(88519),s=r(24959),c=r(76959),u=r(64565),d=r(69500);const p=["className"],f=(0,s.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=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,p),s=(0,u.A)(),g=(e=>{const{classes:t}=e;return(0,a.A)({root:["overlay"]},c.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({ref:t,className:(0,i.A)(g.root,r),ownerState:s},l))}))},48335:(e,t,r)=>{"use strict";r.d(t,{h:()=>S});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(17505),s=r(88519),c=r(92325),u=r(40053),d=r(72639),p=r(51148),f=r(76959),g=r(12274),m=r(71115),h=r(29641);const b={[`& .${f.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${f.x.menuIcon}`]:{width:"auto",visibility:"visible"}},w={width:3,rx:1.5,x:10.5},C=(0,p.Ay)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${f.x.autoHeight}`]:t.autoHeight},{[`&.${f.x.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${f.x["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${f.x["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${f.x["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${f.x.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${f.x["root--disableUserSelection"]} .${f.x.cell}`]:t["root--disableUserSelection"]},{[`&.${f.x.autosizing}`]:t.autosizing},{[`& .${f.x.editBooleanCell}`]:t.editBooleanCell},{[`& .${f.x.cell}`]:t.cell},{[`& .${f.x["cell--editing"]}`]:t["cell--editing"]},{[`& .${f.x["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${f.x["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${f.x["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${f.x["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${f.x["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${f.x["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${f.x["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${f.x["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${f.x.cellCheckbox}`]:t.cellCheckbox},{[`& .${f.x.cellSkeleton}`]:t.cellSkeleton},{[`& .${f.x.checkboxInput}`]:t.checkboxInput},{[`& .${f.x["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${f.x["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${f.x["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${f.x["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${f.x["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${f.x["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${f.x["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${f.x["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${f.x["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${f.x.columnHeader}`]:t.columnHeader},{[`& .${f.x.headerFilterRow}`]:t.headerFilterRow},{[`& .${f.x.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${f.x.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${f.x.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${f.x["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${f.x["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${f.x.columnSeparator}`]:t.columnSeparator},{[`& .${f.x.filterIcon}`]:t.filterIcon},{[`& .${f.x.iconSeparator}`]:t.iconSeparator},{[`& .${f.x.menuIcon}`]:t.menuIcon},{[`& .${f.x.menuIconButton}`]:t.menuIconButton},{[`& .${f.x.menuOpen}`]:t.menuOpen},{[`& .${f.x.menuList}`]:t.menuList},{[`& .${f.x["row--editable"]}`]:t["row--editable"]},{[`& .${f.x["row--editing"]}`]:t["row--editing"]},{[`& .${f.x["row--dragging"]}`]:t["row--dragging"]},{[`& .${f.x.row}`]:t.row},{[`& .${f.x.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${f.x.rowReorderCell}`]:t.rowReorderCell},{[`& .${f.x["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${f.x.sortIcon}`]:t.sortIcon},{[`& .${f.x.withBorderColor}`]:t.withBorderColor},{[`& .${f.x.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${f.x.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${f.x.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${f.x.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${f.x["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((({theme:e})=>{const t=(0,m.E)(),r=(0,g.Nc)(t,h.z),o=(l=e).vars?l.vars.palette.TableCell.border:"light"===l.palette.mode?(0,d.a)((0,d.X4)(l.palette.divider,1),.88):(0,d.e$)((0,d.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,d.X4)(e.palette.background.default,e.palette.action.disabledOpacity),u=(e.vars||e).palette.action.hoverOpacity,p=(e.vars||e).palette.action.hover,C=(e.vars||e).palette.action.selectedOpacity,x=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${C})`:(0,d.X4)(e.palette.primary.main,C),y=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(\n ${e.vars.palette.action.selectedOpacity} +\n ${e.vars.palette.action.hoverOpacity}\n ))`:(0,d.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),A=e.vars?p:v(s,p,u),R=e.vars?x:v(s,x,C),S=e.vars?p:v(R,p,u),I={backgroundColor:x,"&:hover":{backgroundColor:y,"@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",[`.${f.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)"},[`&.${f.x.autoHeight}`]:{height:"auto"},[`&.${f.x.autosizing}`]:{[`& .${f.x.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${f.x.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${f.x.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${f.x.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${f.x.groupingCriteriaCell}`]:{width:"unset"},[`& .${f.x.treeDataGroupingCell}`]:{width:"unset"}},[`& .${f.x.columnHeader}, & .${f.x.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${f.x.columnHeader}:focus-within, & .${f.x.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:(0,d.X4)(e.palette.primary.main,.5)} 1px`,outlineOffset:-1},[`& .${f.x.columnHeader}:focus, & .${f.x.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:-1},[`& .${f.x.columnHeader}:focus,\n & .${f.x["columnHeader--withLeftBorder"]},\n & .${f.x["columnHeader--withRightBorder"]},\n & .${f.x["columnHeader--siblingFocused"]},\n & .${f.x["virtualScroller--hasScrollX"]} .${f.x["columnHeader--lastUnpinned"]},\n & .${f.x["virtualScroller--hasScrollX"]} .${f.x["columnHeader--last"]}\n `]:{[`& .${f.x.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${f.x["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${f.x["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${f.x["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${f.x["root--noToolbar"]} [aria-rowindex="1"] .${f.x["columnHeader--last"]}`]:{borderTopRightRadius:!r.hasScrollX||r.hasScrollY&&0!==r.scrollbarSize?void 0:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`& .${f.x.columnHeaderCheckbox}, & .${f.x.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${f.x.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${f.x["virtualScroller--hasScrollX"]} .${f.x["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${f.x["columnHeader--sorted"]} .${f.x.iconButtonContainer}, & .${f.x["columnHeader--filtered"]} .${f.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${f.x.columnHeader}:not(.${f.x["columnHeader--sorted"]}) .${f.x.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${f.x.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${f.x.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${f.x["columnHeader--filledGroup"]} .${f.x.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${f.x.sortIcon}, & .${f.x.filterIcon}`]:{fontSize:"inherit"},[`& .${f.x["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${f.x["columnHeader--alignCenter"]} .${f.x.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${f.x["columnHeader--alignRight"]} .${f.x.columnHeaderDraggableContainer}, & .${f.x["columnHeader--alignRight"]} .${f.x.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${f.x["columnHeader--alignCenter"]} .${f.x.menuIcon}`]:{marginLeft:"auto"},[`& .${f.x["columnHeader--alignRight"]} .${f.x.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${f.x["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${f.x["columnHeader--pinnedLeft"]}, & .${f.x["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${f.x.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:10,color:o},[`& .${f.x.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${f.x.columnHeader}:hover`]:b,[`& .${f.x.columnHeader}:not(.${f.x["columnHeader--sorted"]}):hover .${f.x.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${f.x.columnHeader}`]:b,[`& .${f.x.columnHeader}:focus,\n & .${f.x["columnHeader--siblingFocused"]}`]:{[`.${f.x["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${f.x["columnSeparator--sideLeft"]}`]:{left:-5},[`& .${f.x["columnSeparator--sideRight"]}`]:{right:-5},[`& .${f.x["columnHeader--withRightBorder"]} .${f.x["columnSeparator--sideLeft"]}`]:{left:-5.5},[`& .${f.x["columnHeader--withRightBorder"]} .${f.x["columnSeparator--sideRight"]}`]:{right:-5.5},[`& .${f.x["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${f.x["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${f.x.iconSeparator} rect`]:w},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${f.x.iconSeparator} rect`]:w}},"& svg":{pointerEvents:"none"}},[`& .${f.x.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${f.x.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${f.x.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${f.x.headerFilterRow}`]:{[`& .${f.x.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${f.x["row--borderBottom"]} .${f.x.columnHeader},\n & .${f.x["row--borderBottom"]} .${f.x.filler},\n & .${f.x["row--borderBottom"]} .${f.x.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${f.x["row--borderBottom"]} .${f.x.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${f.x.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${f.x["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${f.x.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":I},[`& .${f.x["container--top"]}, & .${f.x["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${f.x.cell}`]:{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":I},[`& .${f.x["virtualScrollerContent--overflowed"]} .${f.x["row--lastVisible"]} .${f.x.cell}`]:{borderTopColor:"transparent"},[`& .${f.x["pinnedRows--top"]} :first-of-type`]:{[`& .${f.x.cell}, .${f.x.scrollbarFiller}`]:{borderTop:"none"}},[`&.${f.x["root--disableUserSelection"]} .${f.x.cell}`]:{userSelect:"none"},[`& .${f.x["row--dynamicHeight"]} > .${f.x.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${f.x.cellEmpty}`]:{padding:0,height:"unset"},[`& .${f.x.cell}.${f.x["cell--selectionMode"]}`]:{cursor:"default"},[`& .${f.x.cell}.${f.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}},[`& .${f.x["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${f.x["row--editing"]} .${f.x.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${f.x.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${f.x.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${f.x.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${f.x.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${f.x.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${f.x["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${f.x.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${f.x.withBorderColor}`]:{borderColor:o},[`& .${f.x["cell--withLeftBorder"]}, & .${f.x["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${f.x["cell--withRightBorder"]}, & .${f.x["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${f.x["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${f.x["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${f.x["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${f.x["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${f.x["cell--pinnedLeft"]}, & .${f.x["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${f.x.virtualScrollerContent} .${f.x.row}`]:{"&:hover":{[`& .${f.x["cell--pinnedLeft"]}, & .${f.x["cell--pinnedRight"]}`]:{backgroundColor:A}},"&.Mui-selected":{[`& .${f.x["cell--pinnedLeft"]}, & .${f.x["cell--pinnedRight"]}`]:{backgroundColor:R},"&:hover":{[`& .${f.x["cell--pinnedLeft"]}, & .${f.x["cell--pinnedRight"]}`]:{backgroundColor:S}}}},[`& .${f.x.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${f.x.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${f.x.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${f.x.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${f.x["columnHeader--dragging"]}, & .${f.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},[`& .${f.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,[`& .${f.x.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${f.x.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${f.x.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${f.x.treeDataGroupingCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${f.x.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${f.x.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${f.x.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${f.x["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${f.x["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${f.x["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${f.x.filler}`]:{flex:1},[`& .${f.x["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${f.x["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${f.x.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${f.x["scrollbar--vertical"]}, & .${f.x.pinnedRows}, & .${f.x.virtualScroller} > .${f.x.filler}`]:{display:"none"}}})}));function v(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),l=(0,d.rP)(e),i=(0,d.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,d.X0)({type:"rgb",values:a})}var x=r(64565),y=r(33658),A=r(69500);const R=["className"],S=l.forwardRef((function(e,t){const r=(0,x.A)(),{className:d}=e,p=(0,o.A)(e,R),h=(0,m.E)(),b=(0,g.Nc)(h,y._v),w=h.current.rootElementRef,v=(0,c.A)(w,t),S=r,I=((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,f.B,n)})(S,b),[M,k]=l.useState(!1);return(0,u.A)((()=>{k(!0)}),[]),M?(0,A.jsx)(C,(0,n.A)({ref:v,className:(0,i.A)(d,I.root),ownerState:S},p)):null}))},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(88519),c=r(40053),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)(g,I.root),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(52535)),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:()=>m,ep:()=>h,aU:()=>w,HO:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(24387),a=r(71115);const s=["displayOrder"];var c=r(2956),u=r(32745),d=r(32780),p=r(23942),f=r(69500);const g=["defaultSlots","defaultSlotProps","slots","slotProps"],m={columnMenuSortItem:p.H,columnMenuFilterItem:d.r,columnMenuColumnsItem:u.O},h={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},b=l.forwardRef((function(e,t){const{defaultSlots:r,defaultSlotProps:u,slots:d,slotProps:p}=e,m=(0,o.A)(e,g),h=(e=>{const t=(0,a.E)(),{defaultSlots:r,defaultSlotProps:c,slots:u={},slotProps:d={},hideMenu:p,colDef:f,addDividers:g=!0}=e,m=l.useMemo((()=>(0,n.A)({},r,u)),[r,u]),h=l.useMemo((()=>{if(!d||0===Object.keys(d).length)return c;const e=(0,n.A)({},d);return Object.entries(c).forEach((([t,r])=>{e[t]=(0,n.A)({},r,d[t]||{})})),e}),[c,d]),b=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),w=l.useMemo((()=>{const e=Object.keys(r);return Object.keys(u).filter((t=>!e.includes(t)))}),[u,r]);return l.useMemo((()=>{const e=Array.from(new Set([...b,...w])).filter((e=>null!=m[e])).sort(((e,t)=>{const r=h[e],n=h[t];return(Number.isFinite(r?.displayOrder)?r.displayOrder:100)-(Number.isFinite(n?.displayOrder)?n.displayOrder:100)}));return e.reduce(((t,r,l)=>{let a={colDef:f,onClick:p};const c=h[r];if(c){const e=(0,o.A)(c,s);a=(0,n.A)({},a,e)}return g&&l!==e.length-1?[...t,[m[r],a],[i.A,{}]]:[...t,[m[r],a]]}),[])}),[g,f,b,p,m,h,w])})((0,n.A)({},m,{defaultSlots:r,defaultSlotProps:u,slots:d,slotProps:p}));return(0,f.jsx)(c.T,(0,n.A)({ref:t},m,{children:h.map((([e,t],r)=>(0,f.jsx)(e,(0,n.A)({},t),r)))}))})),w=l.forwardRef((function(e,t){return(0,f.jsx)(b,(0,n.A)({},e,{ref:t,defaultSlots:m,defaultSlotProps:h}))}))},2956:(e,t,r)=>{"use strict";r.d(t,{T:()=>g});var n=r(6614),o=r(83673),l=r(93878),i=r(7552),a=r(6679),s=r(51148),c=r(67129),u=r(76959),d=r(69500);const p=["hideMenu","colDef","id","labelledby","className","children","open"],f=(0,s.Ay)(a.A)((()=>({minWidth:248}))),g=i.forwardRef((function(e,t){const{hideMenu:r,id:a,labelledby:s,className:g,children:m,open:h}=e,b=(0,o.A)(e,p),w=i.useCallback((e=>{"Tab"===e.key&&e.preventDefault(),(0,c.HF)(e.key)&&r(e)}),[r]);return(0,d.jsx)(f,(0,n.A)({id:a,ref:t,className:(0,l.A)(u.x.menuList,g),"aria-labelledby":s,onKeyDown:w,autoFocus:h},b,{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:()=>s});var n=r(6614),o=(r(7552),r(98118)),l=r(36014),i=r(64565),a=r(69500);function s(e){const t=(0,i.A)();return(0,a.jsx)(o.G,(0,n.A)({},e,{children:(0,a.jsx)(l.D,(0,n.A)({},t.slotProps?.columnsManagement))}))}},63869:(e,t,r)=>{"use strict";r.d(t,{F:()=>C,x:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(51148),s=r(3865),c=r(88215),u=r(943),d=r(20350),p=r(76404),f=r(64565),g=r(69500);const m=["children","className","classes"],h=(0,s.A)("MuiDataGrid",["panel","paper"]),b=(0,a.Ay)(d.A,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((({theme:e})=>({zIndex:e.zIndex.modal}))),w=(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"}))),C=l.forwardRef(((e,t)=>{const{children:r,className:a}=e,s=(0,o.A)(e,m),u=(0,p.h)(),d=(0,f.A)(),C=h,[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,g.jsx)(b,(0,n.A)({ref:t,placement:"bottom-start",className:(0,i.A)(a,C.panel),ownerState:d,anchorEl:S,modifiers:R},s,{children:(0,g.jsx)(c.x,{mouseEvent:"onMouseUp",onClickAway:y,children:(0,g.jsx)(w,{className:C.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(24959),a=r(88519),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)(t,a.root),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(24959),a=r(88519),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)(t,a.root),ownerState:i},r))}},98118:(e,t,r)=>{"use strict";r.d(t,{G:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(61864),s=r(51148),c=r(88519),u=r(76959),d=r(64565),p=r(69500);const f=["className","slotProps"],g=(0,s.Ay)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),m=()=>!0,h=l.forwardRef((function(e,t){const{className:r,slotProps:l={}}=e,s=(0,o.A)(e,f),h=(0,d.A)(),b=(e=>{const{classes:t}=e;return(0,c.A)({root:["panelWrapper"]},u.B,t)})(h);return(0,p.jsx)(a.A,(0,n.A)({open:!0,disableEnforceFocus:!0,isEnabled:m},l.TrapFocus,{children:(0,p.jsx)(g,(0,n.A)({ref:t,tabIndex:-1,className:(0,i.A)(r,b.root),ownerState:h},s))}))}))},55766:(e,t,r)=>{"use strict";r.d(t,{R:()=>E});var n=r(6614),o=r(83673),l=r(7552),i=r(88519),a=r(57377),s=r(17505),c=r(51148),u=r(93878),d=r(80163),p=r(2220),f=r(12274),g=r(93527),m=r(76404),h=r(64565),b=r(76959),w=r(12003),C=r(69500);const v=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],x=["InputComponentProps"],y=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((({theme:e})=>({display:"flex",padding:e.spacing(1)}))),A=(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)}))),R=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),S=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),I=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),M=(0,c.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),k=e=>e.headerName||e.field,P=new Intl.Collator,E=l.forwardRef((function(e,t){const{item:r,hasMultipleFilters:c,deleteFilter:E,applyFilterChanges:F,showMultiFilterOperators:H,disableMultiFilterOperator:O,applyMultiFilterOperatorChanges:T,focusElementRef:D,logicOperators:z=[g.V.And,g.V.Or],columnsSort:L,filterColumns:$,deleteIconProps:j={},logicOperatorInputProps:N={},operatorInputProps:V={},columnInputProps:B={},valueInputProps:G={},readOnly:W}=e,_=(0,o.A)(e,v),U=(0,m.h)(),q=(0,f.Nc)(U,d.gv),K=(0,f.Nc)(U,d.Oe),X=(0,f.Nc)(U,p.ZI),Y=(0,a.A)(),Z=(0,a.A)(),Q=(0,a.A)(),J=(0,a.A)(),ee=(0,h.A)(),te=(e=>{const{classes:t}=e;return(0,i.A)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},b.B,t)})(ee),re=l.useRef(null),ne=l.useRef(null),oe=X.logicOperator??g.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,x),{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)=>P.compare(k(e),k(t))));case"desc":return pe.sort(((e,t)=>-P.compare(k(e),k(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,w.KJ)(e);Array.isArray(i)?i=i.filter((r=>void 0!==(0,w.Rc)(r,t,e?.getOptionValue))):void 0===(0,w.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===g.V.And.toString()?g.V.And:g.V.Or;T(t)}),[T]);return l.useImperativeHandle(D,(()=>({focus:()=>{he?.InputComponent?re?.current?.focus():ne.current.focus()}})),[he]),(0,C.jsxs)(y,(0,n.A)({ref:t,className:te.root,"data-id":r.id,ownerState:ee},_,{children:[(0,C.jsx)(A,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,j,{className:(0,u.A)(te.deleteIcon,ie.className,j.className),ownerState:ee,children:(0,C.jsx)(ee.slots.baseIconButton,(0,n.A)({"aria-label":U.current.getLocaleText("filterPanelDeleteIconLabel"),title:U.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{E(r)},size:"small",disabled:W},ee.slotProps?.baseIconButton,{children:(0,C.jsx)(ee.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,C.jsx)(R,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,N,{sx:[le?{display:"flex"}:{display:"none"},H?{visibility:"visible"}:{visibility:"hidden"},ie.sx,N.sx],className:(0,u.A)(te.logicOperatorInput,ie.className,N.className),ownerState:ee,children:(0,C.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 g.V.And:return"filterPanelOperatorAnd";case g.V.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))}))})),(0,C.jsxs)(S,(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,C.jsx)(ee.slots.baseInputLabel,(0,n.A)({},se,{htmlFor:Y,id:Z,children:U.current.getLocaleText("filterPanelColumns")})),(0,C.jsx)(ee.slots.baseSelect,(0,n.A)({labelId:Z,id:Y,label:U.current.getLocaleText("filterPanelColumns"),value:fe??"",onChange:be,native:ae,disabled:W},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}),k(e))))}))]})),(0,C.jsxs)(I,(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,C.jsx)(ee.slots.baseInputLabel,(0,n.A)({},se,{htmlFor:Q,id:J,children:U.current.getLocaleText("filterPanelOperator")})),(0,C.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:W},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,C.jsx)(M,(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,C.jsx)(he.InputComponent,(0,n.A)({apiRef:U,item:r,applyValue:F,focusElementRef:re,disabled:W},he.InputComponentProps,ue),r.field):null}))]}))}))},19868:(e,t,r)=>{"use strict";r.d(t,{h:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(57377),a=r(51148),s=r(64565),c=r(69500);const u=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],d=(0,a.Ay)("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function p(e){const{item:t,applyValue:r,apiRef:a,focusElementRef:p,clearButton:f,tabIndex:g,label:m,variant:h="standard"}=e,b=(0,o.A)(e,u),[w,C]=l.useState(t.value||""),v=(0,s.A)(),x=(0,i.A)(),y=(0,i.A)(),A=v.slotProps?.baseSelect||{},R=A.native??!1,S=v.slotProps?.baseSelectOption||{},I=l.useCallback((e=>{const o=e.target.value;C(o),r((0,n.A)({},t,{value:o}))}),[r,t]);l.useEffect((()=>{C(t.value||"")}),[t.value]);const M=m??a.current.getLocaleText("filterPanelInputLabel");return(0,c.jsxs)(d,{children:[(0,c.jsxs)(v.slots.baseFormControl,{fullWidth:!0,children:[(0,c.jsx)(v.slots.baseInputLabel,(0,n.A)({},v.slotProps?.baseInputLabel,{id:x,shrink:!0,variant:h,children:M})),(0,c.jsxs)(v.slots.baseSelect,(0,n.A)({labelId:x,id:y,label:M,value:w,onChange:I,variant:h,notched:"outlined"===h||void 0,native:R,displayEmpty:!0,inputProps:{ref:p,tabIndex:g}},b,A,{children:[(0,c.jsx)(v.slots.baseSelectOption,(0,n.A)({},S,{native:R,value:"",children:a.current.getLocaleText("filterValueAny")})),(0,c.jsx)(v.slots.baseSelectOption,(0,n.A)({},S,{native:R,value:"true",children:a.current.getLocaleText("filterValueTrue")})),(0,c.jsx)(v.slots.baseSelectOption,(0,n.A)({},S,{native:R,value:"false",children:a.current.getLocaleText("filterValueFalse")}))]}))]}),f]})}},22762:(e,t,r)=>{"use strict";r.d(t,{L:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(57377),a=r(87795),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(57377),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(57377),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]}))}),[r,t]);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(57377),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(57377),a=r(87795),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:p,focusElementRef:f,tabIndex:g,disabled:m,clearButton:h,InputProps:b,variant:w="standard"}=e,C=(0,o.A)(e,u),v=(0,a.A)(),[x,y]=l.useState(t.value??""),[A,R]=l.useState(!1),S=(0,i.A)(),I=(0,s.A)(),M=l.useCallback((e=>{const{value:o}=e.target;y(String(o)),R(!0),v.start(I.filterDebounceMs,(()=>{const e=(0,n.A)({},t,{value:o,fromInput:S});r(e),R(!1)}))}),[S,r,t,I.filterDebounceMs,v]);return l.useEffect((()=>{t.fromInput===S&&void 0!==t.value||y(String(t.value??""))}),[S,t]),(0,c.jsx)(I.slots.baseTextField,(0,n.A)({id:S,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:x,onChange:M,variant:w,type:d||"text",InputProps:(0,n.A)({},A||h?{endAdornment:A?(0,c.jsx)(I.slots.loadIcon,{fontSize:"small",color:"action"}):h}:{},{disabled:m},b,{inputProps:(0,n.A)({tabIndex:g},b?.inputProps)}),InputLabelProps:{shrink:!0},inputRef:f},C,I.slotProps?.baseTextField))}},51820:(e,t,r)=>{"use strict";r.d(t,{v:()=>C});var n=r(6614),o=r(83673),l=r(7552),i=r(93527),a=r(76404),s=r(53936),c=r(95126),u=r(98118),d=r(55766),p=r(64565),f=r(12274),g=r(2220),m=r(80163),h=r(69500);const b=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],w=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),C=l.forwardRef((function(e,t){const r=(0,a.h)(),C=(0,p.A)(),v=(0,f.Nc)(r,g.ZI),x=(0,f.Nc)(r,m.Oe),y=(0,f.Nc)(r,m.U8),A=l.useRef(null),R=l.useRef(null),{logicOperators:S=[i.V.And,i.V.Or],columnsSort:I,filterFormProps:M,getColumnForNewFilter:k,disableAddFilterButton:P=!1,disableRemoveAllButton:E=!1}=e,F=(0,o.A)(e,b),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?w(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?w(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:j}=l.useMemo((()=>z.reduce(((e,t)=>(y[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e)),{readOnlyFilters:[],validFilters:[]})),[z,y]),N=l.useCallback((()=>{const e=D();e&&r.current.upsertFilterItems([...z,e])}),[r,D,z]),V=l.useCallback((e=>{const t=1===j.length;r.current.deleteFilterItem(e),t&&r.current.hideFilterPanel()}),[r,j.length]),B=l.useCallback((()=>1===j.length&&void 0===j[0].value?(r.current.deleteFilterItem(j[0]),r.current.hideFilterPanel()):r.current.setFilterModel((0,n.A)({},v,{items:$}),"removeAllFilterItems")),[r,$,v,j]);return l.useEffect((()=>{S.length>0&&v.logicOperator&&!S.includes(v.logicOperator)&&O(S[0])}),[S,O,v.logicOperator]),l.useEffect((()=>{j.length>0&&A.current.focus()}),[j.length]),(0,h.jsxs)(u.G,(0,n.A)({ref:t},F,{children:[(0,h.jsxs)(s.o,{children:[$.map(((e,t)=>(0,h.jsx)(d.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))),j.map(((e,t)=>(0,h.jsx)(d.R,(0,n.A)({item:e,applyFilterChanges:H,deleteFilter:V,hasMultipleFilters:L,showMultiFilterOperators:$.length+t>0,disableMultiFilterOperator:$.length+t!==1,applyMultiFilterOperatorChanges:O,focusElementRef:t===j.length-1?A:null,logicOperators:S,columnsSort:I},M),null==e.id?t+$.length:e.id)))]}),C.disableMultipleColumnsFiltering||P&&E?null:(0,h.jsxs)(c.g,{children:[P?(0,h.jsx)("span",{}):(0,h.jsx)(C.slots.baseButton,(0,n.A)({onClick:N,startIcon:(0,h.jsx)(C.slots.filterPanelAddIcon,{})},C.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!E&&j.length>0?(0,h.jsx)(C.slots.baseButton,(0,n.A)({onClick:B,startIcon:(0,h.jsx)(C.slots.filterPanelRemoveAllIcon,{})},C.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:()=>g,jX:()=>f,qn:()=>m});var n=r(6614),o=r(83673),l=r(7552),i=r(29629),a=r(76404),s=r(75492),c=r(69500);const u=["hideMenu","options"],d=["hideMenu","options"],p=["csvOptions","printOptions","excelOptions"];function f(e){const t=(0,a.h)(),{hideMenu:r,options:l}=e,s=(0,o.A)(e,u);return(0,c.jsx)(i.A,(0,n.A)({onClick:()=>{t.current.exportDataAsCsv(l),r?.()}},s,{children:t.current.getLocaleText("toolbarExportCSV")}))}function g(e){const t=(0,a.h)(),{hideMenu:r,options:l}=e,s=(0,o.A)(e,d);return(0,c.jsx)(i.A,(0,n.A)({onClick:()=>{t.current.exportDataAsPrint(l),r?.()}},s,{children:t.current.getLocaleText("toolbarExportPrint")}))}const m=l.forwardRef((function(e,t){const{csvOptions:r={},printOptions:i={},excelOptions:u}=e,d=(0,o.A)(e,p),f=(0,a.h)().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:u,csvOptions:r,printOptions:i}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===f.length?null:(0,c.jsx)(s.Z,(0,n.A)({},d,{ref:t,children:f.map(((e,t)=>l.cloneElement(e.component,{key:t})))}))}))},75492:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(6614),o=r(7552),l=r(57377),i=r(92325),a=r(6679),s=r(67129),c=r(76404),u=r(83749),d=r(64565),p=r(76959),f=r(69500);const g=o.forwardRef((function(e,t){const{children:r,slotProps:g={}}=e,m=g.button||{},h=g.tooltip||{},b=(0,c.h)(),w=(0,d.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,f.jsxs)(o.Fragment,{children:[(0,f.jsx)(w.slots.baseTooltip,(0,n.A)({title:b.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},h,w.slotProps?.baseTooltip,{children:(0,f.jsx)(w.slots.baseButton,(0,n.A)({ref:R,size:"small",startIcon:(0,f.jsx)(w.slots.exportIcon,{}),"aria-expanded":x,"aria-label":b.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":x?v:void 0,id:C},m,{onClick:e=>{y((e=>!e)),m.onClick?.(e)}},w.slotProps?.baseButton,{children:b.current.getLocaleText("toolbarExport")}))})),(0,f.jsx)(u.U,{open:x,target:A.current,onClose:S,position:"bottom-start",children:(0,f.jsx)(a.A,{id:v,className:p.x.menuList,"aria-labelledby":C,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),(0,s.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(24959),i=r(88519),a=r(93878),s=r(52535),c=r(46345),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(87795),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)})),j=(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",j),M&&P?(0,v.jsx)(x,{ref:r,className:(0,a.A)(O.root),ownerState:H,onDragOver:L,style:z}):null}));var A=r(11591),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===r,l=(0,g.Nc)(e,S.Dl);let i=null,a=null;return!l&&o&&(i="noRowsOverlay"),!l&&r>0&&0===n&&(i="noResultsOverlay"),l&&(i="loadingOverlay",a=t.slotProps?.loadingOverlay?.[o?"noRowsVariant":"variant"]||null),{overlayType:i,loadingOverlayVariant:a}};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,E.H5),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&&null===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(68337);const D=(0,l.A)("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),z=(0,l.A)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden"}),L=o.forwardRef(((e,t)=>{const r=(0,u.A)(),o=(0,T.Q)().hooks.useGridAriaAttributes();return(0,v.jsxs)(z,(0,n.A)({ref:t,ownerState:r,className:e.className,tabIndex:-1},o,{children:[(0,v.jsx)(D,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))})),$=()=>(0,i.A)({root:["topContainer"]},d.B,{}),j=(0,l.A)("div")({position:"sticky",zIndex:4,top:0});function N(e){const t=$();return(0,v.jsx)(j,(0,n.A)({},e,{className:(0,a.A)(t.root,e.className,d.x["container--top"]),role:"presentation"}))}const V=()=>(0,i.A)({root:["bottomContainer"]},d.B,{}),B=(0,l.A)("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function G(e){const t=V();return(0,v.jsx)(B,(0,n.A)({},e,{className:(0,a.A)(t.root,e.className,d.x["container--bottom"]),role:"presentation"}))}const W=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),_=o.forwardRef((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)({ref:t},e,{ownerState:r,className:(0,a.A)(o.root,e.className)}))})),U=(0,l.A)("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),q=(0,l.A)("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),K=(0,l.A)(q)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),X=(0,l.A)(q)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Y=(0,l.A)("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"}),Z=(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-c,f=Math.max(c,u);return 0===f?null:(0,v.jsxs)(U,{className:d.x.filler,role:"presentation",style:{height:f,"--rowBorderColor":0===e?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&(0,v.jsx)(K,{className:d.x["filler--pinnedLeft"],style:{width:a}}),(0,v.jsx)(Y,{}),s>0&&(0,v.jsx)(X,{className:d.x["filler--pinnedRight"],style:{width:s+(l?i:0)}})]})}));var Q=r(83673),J=r(69639),ee=r(35281);const te=["className"],re=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),ne=o.forwardRef((function(e,t){const{className:r}=e,o=(0,Q.A)(e,te),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,ee.nZ)(l);return(0,J.E)(l.current.state).positions[e.firstRowIndex]??0}));return(0,v.jsx)(re,(0,n.A)({ref:t,className:(0,a.A)(c.root,r),ownerState:s,style:{transform:`translate3d(0, ${f}px, 0)`}},o))}));var oe=r(92325),le=r(58329);const ie=(0,l.A)("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),ae=(0,l.A)(ie)({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"}),se=(0,l.A)(ie)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),ce=(0,l.A)("div")({display:"inline-block"}),ue=o.forwardRef((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(e[w]===a.current)return;if(l.current)return void(l.current=!1);l.current=!0;const n=e[w]/x;t[w]=n*y,a.current=e[w]})),R=(0,s.A)((()=>{const e=r.current.virtualScrollerRef.current,t=c.current;if(l.current)return void(l.current=!1);l.current=!0;const n=t[w]/y;e[w]=n*x}));(0,le.A)((()=>{const e=r.current.virtualScrollerRef.current,t=c.current;return e.addEventListener("scroll",A,{capture:!0}),t.addEventListener("scroll",R,{capture:!0}),()=>{e.removeEventListener("scroll",A,{capture:!0}),t.removeEventListener("scroll",R,{capture:!0})}})),o.useEffect((()=>{p.current.style.setProperty(b,`${y}px`)}),[y,b]);const S="vertical"===e.position?ae:se;return(0,v.jsx)(S,{ref:(0,oe.A)(t,c),className:f.root,tabIndex:-1,"aria-hidden":"true",children:(0,v.jsx)(ce,{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%",overflow:"scroll",scrollbarWidth:"none","&::-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)(L,(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)(N,{children:[(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)(_,(0,n.A)({},d(),{children:(0,v.jsxs)(ne,(0,n.A)({},f(),{children:[C,(0,v.jsx)(r.slots.detailPanels,{virtualScroller:a})]}))})),(0,v.jsx)(Z,{rowsLength:C.length}),(0,v.jsx)(G,{children:(0,v.jsx)(r.slots.pinnedRows,{position:"bottom",virtualScroller:a})})]})),o.hasScrollY&&(0,v.jsx)(ue,(0,n.A)({position:"vertical"},h())),o.hasScrollX&&(0,v.jsx)(ue,(0,n.A)({position:"horizontal"},b())),e.children]}))}},76959:(e,t,r)=>{"use strict";r.d(t,{B:()=>o,x:()=>l});var n=r(18943);function o(e){return(0,n.Ay)("MuiDataGrid",e)}const l=(0,r(3865).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","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","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"])},59340:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});const n="__detail_panel_toggle__"},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",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}},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:()=>h,LN:()=>f,Pd:()=>m,Pr:()=>d,pe:()=>b});var n=r(6614),o=r(23987),l=r(59747),i=r(80163),a=r(58766),s=r(33658),c=r(10365),u=r(8751);const d=["maxWidth","minWidth","width","flex"],p=(0,o.Z)(),f=(e,t)=>{const r={};let o=0,i=0;const s=[];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,a.qE)(c.width||l.C.width,c.minWidth||l.C.minWidth,c.maxWidth||l.C.maxWidth),i+=u),c.computedWidth!==u&&(c=(0,n.A)({},c,{computedWidth:u})),d&&s.push(c),r[t]=c}));const c=void 0===t?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),u=Math.max(c-i,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:s});Object.keys(e).forEach((t=>{r[t].computedWidth=e[t].computedWidth}))}return(0,n.A)({},e,{lookup:r})};function g(e){let t=p[o.x];return e&&p[e]&&(t=p[e]),t}const m=({apiRef:e,columnsToUpsert:t,initialState:r,columnVisibilityModel:o=(0,i.FY)(e),keepOnlyColumnsToUpsert:l=!1})=>{const a=!e.current.state.columns;let s;if(a)s={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const t=(0,i.em)(e.current.state);s={orderedFields:l?[]:[...t.orderedFields],lookup:(0,n.A)({},t.lookup),columnVisibilityModel:o}}let c={};l&&!a&&(c=Object.keys(s.lookup).reduce(((e,t)=>(0,n.A)({},e,{[t]:!1})),{}));const u={};t.forEach((e=>{const{field:t}=e;u[t]=!0,c[t]=!0;let r=s.lookup[t];null==r?(r=(0,n.A)({},g(e.type),{field:t,hasBeenResized:!1}),s.orderedFields.push(t)):l&&s.orderedFields.push(t),r&&r.type!==e.type&&(r=(0,n.A)({},g(e.type),{field:t}));let o=r.hasBeenResized;d.forEach((t=>{void 0!==e[t]&&(o=!0,-1===e[t]&&(e[t]=1/0))})),s.lookup[t]=(0,n.A)({},r,e,{hasBeenResized:o})})),l&&!a&&Object.keys(s.lookup).forEach((e=>{c[e]||delete s.lookup[e]}));const p=((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",s),r);return f(p,e.current.getRootDimensions?.()??void 0)};function h({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 b(e,t){const r=(0,s.rf)(e),n=(0,u.aC)(e),o=(0,c.yt)(e);return Math.floor(t.columnHeaderHeight*r)*(1+(n??0))+(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,((e,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))},24940:(e,t,r)=>{"use strict";r.d(t,{$i:()=>d,H2:()=>c,M5:()=>a,O:()=>f,Q8:()=>m,ee:()=>h,ij:()=>p,lN:()=>s,py:()=>u,vd:()=>g});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.paginationModel)),c=(0,n.Mz)(a,(e=>e.rowCount)),u=(0,n.Mz)(a,(e=>e.meta)),d=(0,n.Mz)(s,(e=>e.page)),p=(0,n.Mz)(s,(e=>e.pageSize)),f=(0,n.Mz)(s,c,((e,t)=>(0,i.$_)(t,e.pageSize,e.page))),g=(0,n.S)(s,l.qj,l.V2,o.em,o.tW,((e,t,r,n,o)=>{const l=o.length,i=Math.min(e.pageSize*e.page,l-1),a=Math.min(i+e.pageSize-1,l-1);if(-1===i||-1===a)return null;if(r<2)return{firstRowIndex:i,lastRowIndex:a};const s=o[i],c=a-i+1,u=n.findIndex((e=>e.id===s.id));let d=u,p=0;for(;d<n.length&&p<=c;){const e=n[d],r=t[e.id]?.depth;void 0===r?d+=1:((p<c||r>0)&&(d+=1),0===r&&(p+=1))}return{firstRowIndex:u,lastRowIndex:d-1}})),m=(0,n.S)(o.em,g,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),h=(0,n.S)(o.ux,g,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]))},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,{_:()=>n});const n=e=>e.preferencePanel},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,{c:()=>o});var n=r(89148);function o(e){return e.signature===n.HV.DataGrid?e.checkboxSelection&&!0!==e.disableMultipleRowSelection:!e.disableMultipleRowSelection}},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]+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:()=>c,HZ:()=>u,Mk:()=>s,OL:()=>i,OM:()=>C,TW:()=>f,VO:()=>g,Z:()=>d,Ze:()=>b,fS:()=>p,gb:()=>a,l_:()=>h,nF:()=>m,ro:()=>v,zo:()=>w});var n=r(6614),o=r(4394),l=r(29641);const i="auto-generated-group-node-root",a=Symbol("mui.id_autogenerated"),s=()=>({type:"group",id:i,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function c(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 u=(e,t,r)=>{const n=t?t(e):e.id;return c(n,e,r),n},d=({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=u(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}},p=({tree:e,rowCountProp:t=0})=>{const r=e[i];return Math.max(t,r.children.length+(null==r.footerId?0:1))},f=({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:d,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:p({tree:g.tree,rowCountProp:t}),groupingName:d,loading:r,groupsToFetch:f})},g=e=>a in e,m=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,h=(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&&m(e[l])||o.push(l);const i=h(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},b=({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=u(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),c={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&&(c[r][t]=!0),i.actions.remove.push(t),delete a[t],void delete s[t]}const o=a[t];if(o)return"remove"===r?(c.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?(c.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(c);for(let e=0;e<d.length;e+=1){const t=d[e],r=c[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 w(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}}function C(e){return`var(--DataGrid-overlayHeight, ${2*(0,l.z)(e.current.state).rowHeight}px)`}function v(e,t,r){const o=[];return t.forEach((t=>{const l=u(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}},15665:(e,t,r)=>{"use strict";r.d(t,{W:()=>a,s:()=>s});var n=r(7552),o=r(10930),l=r(99270),i=r(3247);class a extends Error{}function s(e){const t=n.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),r=n.useCallback((t=>{const r=e.current.getRow(t);if(!r)throw new a(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:r}}),[e]),s=n.useCallback(((t,r)=>{const n=e.current.getColumn(r),o=e.current.getRow(t),l=e.current.getRowNode(t);if(!o||!l)throw new a(`No row with id #${t} found`);const s=o[r],c=n?.valueGetter?n.valueGetter(s,o,n,e):s,u=(0,i.MO)(e),d=(0,i.H5)(e),p={id:t,field:r,row:o,rowNode:l,colDef:n,cellMode:e.current.getCellMode(t,r),hasFocus:null!==u&&u.field===r&&u.id===t,tabIndex:d&&d.field===r&&d.id===t?0:-1,value:c,formattedValue:c,isEditable:!1,api:{}};return n&&n.valueFormatter&&(p.formattedValue=n.valueFormatter(c,o,n,e)),p.isEditable=n&&e.current.isCellEditable(p),p}),[e]),c=n.useCallback(((t,r)=>{const n=e.current.getColumn(r),o=e.current.getRow(t);if(!o)throw new a(`No row with id #${t} found`);return n&&n.valueGetter?n.valueGetter(o[n.field],o,n,e):o[r]}),[e]),u=n.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]),d=n.useCallback(((t,r)=>{const n=u(t,r);return r&&r.valueFormatter?r.valueFormatter(n,t,r,e):n}),[e,u]),p=n.useCallback((t=>e.current.rootElementRef.current?(0,o.u)(e.current.rootElementRef.current,t):null),[e]),f=n.useCallback((t=>e.current.rootElementRef.current?(0,o.v_)(e.current.rootElementRef.current,t):null),[e]),g={getCellValue:c,getCellParams:s,getCellElement:n.useCallback(((t,r)=>e.current.rootElementRef.current?(0,o.xE)(e.current.rootElementRef.current,{id:t,field:r}):null),[e]),getRowValue:u,getRowFormattedValue:d,getRowParams:r,getRowElement:f,getColumnHeaderParams:t,getColumnHeaderElement:p};(0,l.P)(e,g,"public")}},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)),{})))},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})))},11591:(e,t,r)=>{"use strict";r.d(t,{Yr:()=>G,j$:()=>L});var n=r(6614),o=r(7552),l=r(28485),i=r(52535),a=r(40053),s=r(49891),c=r(87795);const u="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,d=()=>{};var p=r(93876),f=r(71115),g=r(64565),m=r(12274),h=r(61959),b=r(80163),w=r(29641),C=r(4394),v=r(3247),x=r(23392),y=r(89148);const A=("undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"empty").includes("firefox");var R=r(58766),S=r(82188),I=r(69639),M=r(60378),k=r(59458),P=r(35281),E=r(55730),F=r(92442),H=r(69500),O=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}(O||{});const T={top:0,left:0},D=Object.freeze(new Map);let z=!1;try{"undefined"!=typeof window&&(z=/jsdom/.test(window.navigator.userAgent))}catch(e){}const L=()=>{const e=(0,f.E)(),t=(0,g.A)(),r=(0,m.Nc)(e,b.iv),M=(0,m.Nc)(e,P.Al)&&!z,F=(0,m.Nc)(e,P.m5)&&!z,L=(0,m.Nc)(e,w.z),N=L.viewportOuterSize,V=(0,m.Nc)(e,C.$2),B=(0,m.Nc)(e,b.Q1),_=V.bottom.length>0,[U,q]=o.useState(D),K=(0,p.I)(),X=(0,m.Nc)(e,v.MO),Y=(0,m.Nc)(e,v.H5),Z=(0,m.Nc)(e,I.E),Q=(0,m.Nc)(e,S.Zk),J=(0,x.h)(e,t),ee=e.current.rootElementRef,te=e.current.mainElementRef,re=e.current.virtualScrollerRef,ne=o.useRef(null),oe=o.useRef(null),le=L.contentSize.height,ie=L.columnsTotalWidth,ae=(0,m.Nc)(e,b.kw);!function(t,r,n){const l=o.useRef(null);l.current=()=>e.current.resize(),u((()=>{if("undefined"==typeof ResizeObserver)return d;const e=t.current,r=new ResizeObserver((e=>{l.current(e)}));return e&&r.observe(e),()=>{r.disconnect()}}),[t,n])}(te);const se=o.useRef(T),ce=o.useRef(T),ue=o.useRef(E.$A),de=(0,m.Nc)(e,P.nZ),pe=(0,c.A)(),fe=o.useRef(void 0),ge=(0,s.A)((()=>((e,t,r,n)=>({direction:O.NONE,buffer:W(e,O.NONE,t,r,n,300)}))(K,t.rowBufferPx,t.columnBufferPx,15*L.rowHeight))).current,me={rowIndex:o.useMemo((()=>X?J.rows.findIndex((e=>e.id===X.id)):-1),[X,J.rows]),columnIndex:o.useMemo((()=>X?r.findIndex((e=>e.field===X.field)):-1),[X,r])},he=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!==ue.current.firstRowIndex||t.lastRowIndex!==ue.current.lastRowIndex;e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{renderContext:t})}))),L.isReady&&l&&(ue.current=t,e.current.publishEvent("renderedRowsIntervalChange",t)),ce.current=se.current}),[e,L.isReady]),be=()=>{const r={top:re.current.scrollTop,left:re.current.scrollLeft},n=r.left-se.current.left,o=r.top-se.current.top,i=0!==n||0!==o;se.current=r;const a=i?function(e,t){return 0===e&&0===t?O.NONE:Math.abs(t)>=Math.abs(e)?t>0?O.DOWN:O.UP:e>0?O.RIGHT:O.LEFT}(n,o):O.NONE,s=Math.abs(se.current.top-ce.current.top),c=Math.abs(se.current.left-ce.current.left),u=s>=L.rowHeight||c>=50,d=ge.direction!==a;if(!u&&!d)return de;if(d)switch(a){case O.NONE:case O.LEFT:case O.RIGHT:fe.current=void 0;break;default:fe.current=de}ge.direction=a,ge.buffer=W(K,a,t.rowBufferPx,t.columnBufferPx,15*L.rowHeight,300);const p=j($(e,t,M,F),se.current,ge);return l.flushSync((()=>{he(p)})),pe.start(1e3,be),p},we=()=>{const r=j($(e,t,M,F),se.current,ge);fe.current=void 0,he(r)},Ce=(0,i.A)((t=>{const{scrollTop:r,scrollLeft:n}=t.currentTarget;if(r<0)return;if(!K&&n<0)return;if(K&&n>0)return;const o=be();e.current.publishEvent("scrollPositionChange",{top:r,left:n,renderContext:o})})),ve=(0,i.A)((t=>{e.current.publishEvent("virtualScrollerWheel",{},t)})),xe=(0,i.A)((t=>{e.current.publishEvent("virtualScrollerTouchMove",{},t)})),ye=N.width&&ie>=N.width,Ae=o.useMemo((()=>({overflowX:ye?void 0:"hidden",overflowY:t.autoHeight?"hidden":void 0})),[ye,t.autoHeight]),Re=o.useMemo((()=>{const r={width:ye?ie:"auto",height:le};return t.autoHeight&&0===J.rows.length&&(r.height=(0,k.OM)(e)),r}),[e,ie,le,ye,t.autoHeight,J.rows.length]);return o.useEffect((()=>{e.current.publishEvent("virtualScrollerContentSizeChange")}),[e,Re]),(0,a.A)((()=>{e.current.resize()}),[e,Z.currentPageTotalHeight]),(0,a.A)((()=>{F&&(re.current.scrollLeft=0),M&&(re.current.scrollTop=0)}),[F,M,ee,re]),(0,h.A)(0!==N.width,(()=>{const r=j($(e,t,M,F),se.current,ge);he(r),e.current.publishEvent("scrollPositionChange",{top:se.current.top,left:se.current.left,renderContext:r})})),e.current.register("private",{updateRenderContext:we}),(0,y.cz)(e,"columnsChange",we),(0,y.cz)(e,"filteredRowsSet",we),(0,y.cz)(e,"rowExpansionChange",we),{renderContext:de,setPanels:q,getRows:(o={})=>{if(!o.rows&&!J.range)return[];const l=o.renderContext??de,i=!_&&void 0===o.position||_&&"bottom"===o.position,a=void 0!==o.position;let s;switch(o.position){case"top":s=0;break;case"bottom":s=V.top.length+J.rows.length;break;case void 0:s=V.top.length}const c=o.rows??J.rows,u=l.firstRowIndex,d=Math.min(l.lastRowIndex,c.length),p=o.rows?(0,R.y1)(0,o.rows.length):(0,R.y1)(u,d);let f=-1;a||-1===me.rowIndex||(me.rowIndex<u&&(f=me.rowIndex,p.unshift(f)),me.rowIndex>=d&&(f=me.rowIndex,p.push(f)));const g=[],m=t.slotProps?.row,h=(0,b.Sw)(e);return p.forEach((u=>{const{id:d,model:p}=c[u],b=(J?.range?.firstRowIndex||0)+s+u;if(ae){const t=B.left.length,n=r.length-B.right.length;e.current.calculateColSpan({rowId:d,minFirstColumn:t,maxLastColumn:n,columns:r}),B.left.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:0,maxLastColumn:B.left.length,columns:r}),B.right.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:r.length-B.right.length,maxLastColumn:r.length,columns:r})}const w=X?.id===d,C=e.current.rowHasAutoHeight(d)?"auto":e.current.unstable_getRowHeight(d);let v;v=null!=Q[d]&&e.current.isRowSelectable(d);let x=!1;void 0===o.position&&(x=0===u);let y=!1;const A=u===c.length-1;i&&(a?y=A:u===J.rows.length-1&&(y=!0));const R=u===f;let S=null;null!==Y&&Y.id===d&&(S="view"===e.current.getCellParams(d,Y.field).cellMode?Y.field:null);let I=l;!a&&fe.current&&u>=fe.current.firstRowIndex&&u<fe.current.lastRowIndex&&(I=fe.current);const M=G(h,I,B.left.length),k=A&&"top"===o.position;if(g.push((0,H.jsx)(t.slots.row,(0,n.A)({row:p,rowId:d,index:b,selected:v,offsetTop:o.rows?void 0:Z.positions[u],offsetLeft:M,dimensions:L,rowHeight:C,tabbableCell:S,pinnedColumns:B,visibleColumns:r,renderContext:I,focusedColumnIndex:w?me.columnIndex:void 0,isFirstVisible:x,isLastVisible:y,isNotVisible:R,showBottomBorder:k},m),d)),R)return;const P=U.get(d);P&&g.push(P),void 0===o.position&&A&&g.push(e.current.getInfiniteLoadingTriggerElement?.({lastRowId:d}))})),g},getContainerProps:()=>({ref:te}),getScrollerProps:()=>({ref:re,onScroll:Ce,onWheel:ve,onTouchMove:xe,style:Ae,role:"presentation",tabIndex:A?-1:void 0}),getContentProps:()=>({style:Re,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:ne,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:oe,role:"presentation"})}};function $(e,t,r,n){const o=(0,w.z)(e.current.state),l=(0,x.e)(e,t),i=(0,b.iv)(e),a=(0,F.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,I.E)(e.current.state),columnPositions:(0,b.Sw)(e),rows:l.rows,range:l.range,pinnedColumns:(0,b.Q1)(e),visibleColumns:i,hiddenCellsOriginMap:a}}function j(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(N(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:N(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]=B({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});for(let t=a;t<s&&!l;t+=1){const r=e.rows[t];l=e.apiRef.current.rowHasAutoHeight(r.id)}l||(t=V(i,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),o=V(i+e.viewportInnerWidth,e.columnPositions)),n.firstColumnIndex=t,n.lastColumnIndex=o}const a=function(e,t,r){const[n,o]=B({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]=B({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,M.A8)({firstColumnToRender:l,apiRef:e.apiRef,firstRowToRender:n,lastRowToRender:o,visibleRows:e.rows}),lastColumnIndex:i}}(e,n,r);return a}function N(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,R.qE)(n-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[l]>=t?V(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 V(e,t,n,Math.floor(r/2),Math.min(r,t.length))}(t,e.rowsMeta.positions,l,r)}function V(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?V(e,t,r,n,l):V(e,t,r,l+1,o)}function B({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=V(s,i,{atStart:!0,lastPosition:i[i.length-1]+a}),d=V(c,i);return[(0,R.qE)(u,o,l),(0,R.qE)(d,o,l)]}function G(e,t,r){const n=(e[t.firstColumnIndex]??0)-(e[r]??0);return Math.abs(n)}function W(e,t,r,n,o,l){if(e)switch(t){case O.LEFT:t=O.RIGHT;break;case O.RIGHT:t=O.LEFT}switch(t){case O.NONE:return{rowAfter:r,rowBefore:r,columnAfter:n,columnBefore:n};case O.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:l};case O.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:l,columnBefore:0};case O.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case O.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}},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();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:()=>o});var n=r(7552);function o(e,t,r){const o=n.useRef(!0);n.useEffect((()=>{o.current=!1,e.current.register(r,t)}),[e,r,t]),o.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,{Nc:()=>d,TJ:()=>c});var n=r(7552),o=r(15689),l=r(49891),i=r(58329);function a(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)}const s=Object.is,c=o.v,u=()=>({state:null,equals:null,selector:null}),d=(e,t,r=s)=>{const o=(0,l.A)(u),c=null!==o.current.selector,[d,p]=n.useState(c?null:a(e,t));return o.current.state=d,o.current.equals=r,o.current.selector=t,(0,i.A)((()=>e.current.store.subscribe((()=>{const t=a(e,o.current.selector);o.current.equals(o.current.state,t)||(o.current.state=t,p(t))})))),d}},23392:(e,t,r)=>{"use strict";r.d(t,{e:()=>i,h:()=>a});var n=r(7552),o=r(24940),l=r(2220);const i=(e,t)=>{let r,n;return t.pagination&&"client"===t.paginationMode?(n=(0,o.vd)(e),r=(0,o.Q8)(e)):(r=(0,l.em)(e),n=0===r.length?null:{firstRowIndex:0,lastRowIndex:r.length-1}),{rows:r,range:n}},a=(e,t)=>{const r=i(e,t);return n.useMemo((()=>({rows:r.rows,range:r.range})),[r.rows,r.range])}},61959:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7552),o=r(40053);const l=()=>{},i=(e,t)=>{const r=n.useRef(!1);(0,o.A)((()=>r.current||!e?l:(r.current=!0,t())),[r.current||e])}},98571:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(36155);const o=(e,t,r,o,l)=>{const i=l.hasScrollY?l.scrollbarSize:0;let a;switch(e){case n.K.LEFT:a=o[r];break;case n.K.RIGHT:a=l.columnsTotalWidth-o[r]-t+i;break;default:a=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})},10176:(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||{})},17505:(e,t,r)=>{"use strict";function n(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}r.d(t,{A:()=>n})},88519:(e,t,r)=>{"use strict";function n(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{A:()=>n})},33693:(e,t,r)=>{"use strict";function n(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}r.d(t,{A:()=>n})},18943:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i});const n=e=>e,o=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})(),l={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t,r="Mui"){const n=l[t];return n?`${r}-${n}`:`${o.generate(e)}-${t}`}},3865:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(18943);function o(e,t,r="Mui"){const o={};return t.forEach((t=>{o[t]=(0,n.Ay)(e,t,r)})),o}},75041:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},40053:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7552);const o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},52535:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(7552),o=r(40053);const l=function(e){const t=n.useRef(e);return(0,o.A)((()=>{t.current=e})),n.useRef(((...e)=>(0,t.current)(...e))).current}},92325:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7552);function o(...e){return n.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}},57377:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>a});var o=r(7552);let l=0;const i=(n||(n=r.t(o,2)))["useId".toString()];function a(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&(l+=1,r(`mui-${l}`))}),[t]),n}(e)}},49891:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(7552);const o={};function l(e,t){const r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}},58329:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(7552);const o=[];function l(e){n.useEffect(e,o)}},87795:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(49891),o=r(58329);class l{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new l}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function i(){const e=(0,n.A)(l.create).current;return(0,o.A)(e.disposeEffect),e}},4780:(e,t,r)=>{"use strict";r.d(t,{L:()=>o,o:()=>l});var n=r(36155);const o=(e,t,r,o,l)=>{const i=t===r-1;return!(e!==n.K.LEFT||!i)||!!o&&(e===n.K.LEFT||(e===n.K.RIGHT?!i:!i||l))},l=(e,t)=>e===n.K.RIGHT&&0===t},33642:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>s,S:()=>c});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)=>{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)&&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 n=M(t);return x({api:e,position:r?"left":"right",colIndex:n,filterFn:e=>r?e>n:e<n})}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}},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,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"!==e.key.toLowerCase()||e.shiftKey||e.altKey)}},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,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))}},46345:(e,t,r)=>{"use strict";r.d(t,{n:()=>l});var n=r(7552),o=r(15689);function l(e){return n.memo(e,o.v)}},15689:(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}},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"},47198:(e,t,r)=>{"use strict";r.d(t,{Ad:()=>c,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})}}]); | |
84 //# sourceMappingURL=5676.818528e8.chunk.js.map |